low throughput over High Speed Ethernet

156 views
Skip to first unread message

Zhengchun Liu

unread,
Dec 21, 2016, 10:50:40 AM12/21/16
to ns-3-users
Hi,

I got an issue for several days. Hope anybody could give me a hint. 

I simulate data transfer (using TCP) over high speed ethernet (40 Gbps), but I can only get about 4MBps throughput with NS3. my topology is: client -> switch -> router -> router -> switch -> server. total RTT is 54ms. 

My configuration is:
Config::SetDefault("ns3::TcpSocket::SndBufSize", UintegerValue(67108864));
Config::SetDefault("ns3::TcpSocket::RcvBufSize", UintegerValue(67108864));
Config::SetDefault("ns3::CsmaNetDevice::Mtu", UintegerValue(9000));
Config::SetDefault("ns3::PointToPointNetDevice::Mtu", UintegerValue(9000));
Config::SetDefault("ns3::TcpSocket::SegmentSize", UintegerValue(8930));
Config::SetDefault("ns3::TcpSocket::InitialCwnd", UintegerValue(8));
Config::SetDefault("ns3::TcpL4Protocol::SocketType", StringValue ("ns3::TcpHtcp"));
GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true));

I tried to capture the traffic, I see [TCP Previous segment not captured] when server gets Seq=3679191, then server keeps receiving [TCP Dup Ack] Ack=3688091, it seems that server does not response client's retransmission request. 

I also tried parallel TCP, the performance became worse!  

Thank you very much in advance.

Zhengchun 

Tommaso Pecorella

unread,
Dec 26, 2016, 7:42:55 PM12/26/16
to ns-3-users
Hi,

we're missing too many details to provide an even remotely right suggestion.
Read the posting guidelines for hints on what we need to provide some help.

Thanks,

T.

Zhengchun Liu

unread,
Dec 26, 2016, 8:19:58 PM12/26/16
to ns-3-users
Hi Tommaso,

Thank you so much for your reply. I think I almost figured out the reason, it is mostly because of the csma channel I use, it is not full duplex, can not simulate the modern Ethernet I guess. I saw lots of packets are blocked on the first switch (client send data to server, client connect to a switch). CSMA channel was used to connect client to switch and switch to router. But it is still a little strange why the switch can receive fast but just cannot send as fast as receive. (I already let all the csma channel have the same bandwidth and delay).

Thank you!

Zhengchun
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/AMBoDFLukFM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Jan 2, 2017, 8:05:42 PM1/2/17
to ns-3-users
Hi Zhengchun,

there's a new module for fast ethernet being reviewed. If you want to take a look at it (and eventually provide us some feedback), the link is https://codereview.appspot.com/5615049/

Cheers,

T.

Zhengchun Liu

unread,
Jan 2, 2017, 8:52:44 PM1/2/17
to ns-3-users
Hi Tommaso,

OK, great! Thank you!

Zhengchun 
Reply all
Reply to author
Forward
0 new messages