microsoft / ntttcp-for-linux

A Linux network throughput multiple-thread benchmark tool.
https://github.com/Microsoft/ntttcp-for-linux
MIT License
389 stars 92 forks source link

Receiver stuck forever from the beginning when running UDP protocol in no-sync mode (no issue in sync mode) #57

Closed wilsonNg007 closed 3 years ago

wilsonNg007 commented 3 years ago

ntttcp for linux version: 1.4.0 (latest)

Cmdlines: Sender: ntttcp -s -m 1,, -u -V -t 30 -b 1470 -N # or any -b Receiver: ntttcp -r -m 1,, -u -V -t 30 -N

Sender will completed with output indicating the throughput, cycles/byte, time, etc.

However, the receiver just stuck forever from the beginning (last message: "INFO: 1 threads created").

No issue in TCP protocol (sync/no-sync), and no issue in UDP sync mode.

Impact: We have use case using Windows as ntttcp sender (and Linux as ntttcp receiver), and only no-sync mode is supported in ntttcp between windows and linux.

wilsonNg007 commented 3 years ago

@simonxiaoss , @glima -- could you or someone help look at this issue? Thanks.

wilsonNg007 commented 3 years ago

The issue looks like the receiver did not receive any connection request from the sender, and just keep waiting forever.

santoshx commented 3 years ago

@wilsonNg007 I posted a possible fix for this issue in PR: https://github.com/microsoft/ntttcp-for-linux/pull/61

santoshx commented 3 years ago

Fixed by PR https://github.com/microsoft/ntttcp-for-linux/pull/61 . Closing this issue.