OnOffApplication with TCP retransmission

72 views
Skip to first unread message

antique refer

unread,
Aug 27, 2017, 7:49:04 AM8/27/17
to ns-3-users
I was doing some experiments.
And i used OnOffApplication to generate the traffic.

However things didn't seem right.

And i use 
MaxBytes to send the amount of traffic that I want.

And the traffic is heavy.
So there will be some packets being dropped.

And it seems OnOffApplication doesn't care about the dropped packets. ( I'm not sure. It's my guess)
It only send the packets until it reaches MaxBytes , and doesn't care about whether the packet is received or not.

Is my guess right?

And, if my guess is right, then is there any alternative choice that I can use.
To generate traffic that each flow has a certain size, and have to re-transmit until all packets in the same flow is received.





My code is in below
OnOffHelper source ("ns3::TcpSocketFactory", Address (InetSocketAddress(r_ipaddr, port)));
source.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
source.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
source.SetAttribute ("DataRate", DataRateValue (DataRate(linkBw))); 
source.SetAttribute("PacketSize",UintegerValue (packetSize));
source.SetAttribute ("MaxBytes", UintegerValue (tempsize*1000));


D G

unread,
Aug 29, 2017, 7:46:50 AM8/29/17
to ns-3-users
I have got a very similar problem with the OnOffApplication.
I am sending to a not responding node but there are no resends or even tries to do so.
Have you some solutions so far?
I am still at the beginning and didn't figure out what's wrong by now.

Vytautas Spokas

unread,
Sep 5, 2017, 8:31:19 AM9/5/17
to ns-3-users
I had a similar issue using OnOffHelper. Ive solved with the help of BulkSendHelper, try it
Reply all
Reply to author
Forward
0 new messages