Traffic not increasing in TcpBulksendHelper in a 5g scenario

96 views
Skip to first unread message

Shrirang Patil

unread,
Feb 20, 2024, 4:43:40 AM2/20/24
to 5G-LENA-users
I have created a network topology of 1 user equipment UE , 1 Gnb  and 1 remote host .
I am trying to send traffic from remotehost to the UE using Tcp BulksendHelper
I have set the maxbytes attribute for TcpBulksendHelper to 0, so it should send unlimited data as long as the simulation runs.
But the number of packets transferred does not increase at all even after increasing the simulation time .

I am using ns-3 version 3.40  and latest version of nr module.

Case  1:
simulation time = 50 seconds
Packets transferred  = 983
Screenshot from 2024-02-20 15-03-49.png

Case 2:
simulation time = 100 seconds
Packets transferred  =984
Screenshot from 2024-02-20 15-06-53.png

Here is my ns3 file :
temp.cc

Biljana B.

unread,
Feb 20, 2024, 9:47:22 AM2/20/24
to 5G-LENA-users
Hi Shrirang,

Try with: PacketSinkHelper dlPacketSinkHelper("ns3::TcpSocketFactory", InetSocketAddress(Ipv4Address::GetAny(), port));

Kind regards,
Biljana


Shrirang Patil

unread,
Feb 20, 2024, 12:39:11 PM2/20/24
to 5G-LENA-users
Hi Biljana ,
I tried implementing the changes as you suggested , but still the problem exists.
For both cases of 51 seconds and 101 seconds of simulation time , the total packets transferred remains the same (984) .
There seems to be an issue with some other parameter involved in the code .

Screenshot from 2024-02-20 22-44-49.png
Attached below is the source code and Pcap file generated
PCAP-0-2.pcap
temp.cc

Chinmay Naik

unread,
Feb 21, 2024, 9:15:56 AM2/21/24
to 5G-LENA-users
Hello All,
    I have tried running the same above code with TCP Onoffhelper and TCP Dash traffic in the place of TCP Bulksender, and they also have a difference of just one packet between simulation time of 50s and 100s. However UDP Onoffhelper does work perfectly fine. There seems to be a problem with TCP in the above code, could someone help figure it out.

Thanks and Regards,
Chinmay

Biljana B.

unread,
Feb 22, 2024, 5:51:16 AM2/22/24
to 5G-LENA-users
Hi Shrirang and Chinmay, 

try to log a bit IP and TCP to see if there is some warning or some message that could explain what happens. 

Also, when using TCP, would be better to configure RLC AM.

    Config::SetDefault("ns3::LteEnbRrc::EpsBearerToRlcMapping",EnumValue(LteEnbRrc::RLC_AM_ALWAYS));

Kind regards,
Biljana
Reply all
Reply to author
Forward
0 new messages