cannot resolve 'TCP port numbers reused'

95 views
Skip to first unread message

Pascal

unread,
May 10, 2023, 1:58:04 AM5/10/23
to ns-3-users
Hi all

I am trying to set up a number of nodes that send TCP packets to a number of different targets in an alternating manner. The simulation itself executes fine, but when I look at the pcaps, then the TCP handshake only completes for one of the target node connections per sender node.

I have simplified the example down to 3 nodes: 1 sending and 2 receiving, but the problem persists and I can't seem to figure out how to fix it (by e.g., changing the port numbers during configuration of the sink addresses).

I have attached the pcap files and the script so you can get the full picture or try and reproduce the results. (handshake fails in 'alternating_traffic-2-0.pcap').

Any help is much appreciated, thanks in advance,
Pascal
alternating_traffic.cc
alternating_traffic-1-0.pcap
alternating_traffic-2-0.pcap

Tommaso Pecorella

unread,
May 10, 2023, 12:34:49 PM5/10/23
to ns-3-users
53c53
<     ApplicationContainer sinkApps2 = sinkHelper.Install(nodes.Get(2));
---
>     ApplicationContainer sinkApps2 = sinkHelper2.Install(nodes.Get(2));

Pascal

unread,
May 11, 2023, 7:00:18 AM5/11/23
to ns-3-users
I feel silly now. Thanks for your help Tommaso, much appreciated.

Tommaso Pecorella

unread,
May 11, 2023, 6:24:54 PM5/11/23
to ns-3-users
It happens, that's why one should always check for errors after a good sleep.
Reply all
Reply to author
Forward
0 new messages