Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

TCP stops after UDP OnOff starts

98 views
Skip to first unread message

Chinmay Naik

unread,
Nov 11, 2024, 10:31:17 AM11/11/24
to ns-3-users
Hello, I am preparing a 5G testbed with 8 different types of traffic as seen in the image attached below. ( Flow 1 is DASH TCP and Flow 8 is UDP On Off )
Flow-wise-throughput.png

However I notice that when UDP constant bitrate (20Mbps) traffic starts in a scenario where bottleneck bandwidth is 100Mbps, all the TCP flows seems to stop after some time  and only UDP continues.

Can you help me figure out the problem. Attaching Code files and modified src files also.


Thanks!
testbed.cc
tcp-socket-base.cc
tcp-socket.cc

Tommaso Pecorella

unread,
Nov 11, 2024, 4:25:42 PM11/11/24
to ns-3-users
What are the simulation results without the UDP traffic ?

Note that you might have found a bug, but unfortunately I can't debug it right now because I don't have NR installed.
My best guess is that BulkSendApplication has a bug. Please activate its logs and let us know what they do tell. In particular I'm interested into the calls to the functions "DataSend" and "SendData".

Thanks.

Kent Huns

unread,
Nov 12, 2024, 8:51:57 AM11/12/24
to ns-3-users
I suppose that the TCP flows may have finished sending all the generated packets.
Could you check if the packets are generated periodically or only once?
(Sorry, I'm not familiar with these settings and how to modify them)

Tommaso Pecorella

unread,
Nov 12, 2024, 5:55:29 PM11/12/24
to ns-3-users
This app is TCP and it should send traffic a) until the end of the simulation, and b) at the maximum achievable rate by TCP:

        BulkSendHelper source3 ("ns3::TcpSocketFactory", InetSocketAddress (ueVoiceIpIface.GetAddress(1),dlPortVoice));
        source3.SetAttribute ("MaxBytes", UintegerValue (0));

I don't know if it's the one identified by the purple line, but it looks like it, and it's indeed anomalous that it's stopping.
That's why I was asking for the logs, I suspect that the app is glitching.

The line to add is:
    LogComponentEnable(
        "BulkSendApplication",
        (LogLevel)(LOG_PREFIX_FUNC | LOG_PREFIX_NODE | LOG_PREFIX_TIME | LOG_LEVEL_ALL));

Thanks.
Reply all
Reply to author
Forward
0 new messages