InterPacket interval for OnOff Application

1,106 views
Skip to first unread message

Zoraze Ali

unread,
Mar 15, 2013, 5:08:06 PM3/15/13
to ns-3-...@googlegroups.com
Hello Everyone,

Please anyone can tell me how i can find the inter packet interval for onoff application. If i am configuring the application following way .


OnOffHelper onoff ("ns3::UdpSocketFactory",Address(InetSocketAddress (ueIpIface.GetAddress(j), ueportul+j)));
 
    
   onoff.SetAttribute ("OnTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.352]")); //for ns 3.16
   onoff.SetAttribute ("OffTime",StringValue("ns3::ExponentialRandomVariable[Mean=0.65]")); // for ns 3.16

 
  onoff.SetAttribute("PacketSize", UintegerValue(300));
  onoff.SetAttribute("DataRate",DataRateValue(DataRate("3000bps")));


Regards,
Zoraze Ali

Zoraze Ali

unread,
Mar 16, 2013, 9:07:10 AM3/16/13
to ns-3-...@googlegroups.com

Please Someone help me in this , any suggestions guysss.

Regards,
Zoraze Ali

Larissa Marinho Eglem de Oliveira

unread,
Mar 16, 2013, 9:30:36 AM3/16/13
to ns-3-...@googlegroups.com

Have you checked the Doxygen API?

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, 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 http://groups.google.com/group/ns-3-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Konstantinos

unread,
Mar 16, 2013, 9:34:23 AM3/16/13
to ns-3-...@googlegroups.com
Hi Zoraze,

You have the application that sends packets of size 300B at rate 3kbps when it is ON and nothing when it is OFF. These two stages are governed by the exponential distribution.

The inter-arrival of the packets in ON state is 0 (meaning that the packets are send continuously with no pause), but the overall inter-arrival depends on the OFF duration

Be aware that packet size is on Bytes, so in the ON state you will have 3000/(300*8) = 1.25. So Each new packet is created every 1.25seconds.

Zoraze Ali

unread,
Mar 16, 2013, 9:34:31 AM3/16/13
to ns-3-...@googlegroups.com
Hi Larissa,

Yes i checked it but i couldn't find any thing related to Inter Packet Interval. There is a discription in the Header file but its about transmission start time and and delay .

Regards,
Zoraze

zoraze ali

unread,
Mar 16, 2013, 9:48:17 AM3/16/13
to ns-3-...@googlegroups.com
Hello Kostantinos,

Thank you so much for you detailed reply , But i think it should be ( Packet Size / Data rate) which is (300*8 bits/3000 bits per second) that is 0.8 seconds. Please correct me if i am wrong.

Secondly if i keep my Packet size 300 Bytes and Data Rate 24000 bps that's mean i am sending one packet every 0.1 Seconds in ON state.

Regards,
Zoraze


Konstantinos

unread,
Mar 16, 2013, 12:32:16 PM3/16/13
to ns-3-...@googlegroups.com, zora...@ieee.org


On Saturday, March 16, 2013 1:48:17 PM UTC, zoraze ali wrote:
Hello Kostantinos,

Thank you so much for you detailed reply , But i think it should be ( Packet Size / Data rate) which is (300*8 bits/3000 bits per second) that is 0.8 seconds. Please correct  
me if i am wrong.


We say the same thing by in different way. I calculated the period, you the frequency... 
 
Secondly if i keep my Packet size 300 Bytes and Data Rate 24000 bps that's mean i am sending one packet every 0.1 Seconds in ON state.


Yes.
 
Regards,
Zoraze


ns3c...@gmail.com

unread,
May 18, 2013, 8:16:18 PM5/18/13
to ns-3-...@googlegroups.com
Hi. I was wondering whether it is possible to change the data rate of the onoff application during the simulation by using Scheduling?  Is this possible?  If yes what is the correct way of implementing it please because I keep getting errors.  Thank you, any help is appreciated

zoraze ali

unread,
Mar 16, 2013, 12:59:02 PM3/16/13
to ns-3-...@googlegroups.com
Hello Kostantinos,

Thanks alot for answering. About the first question my answer is in Seconds not Hz i mean ( (bits) / (bits/second) ) give me seconds . How i can take it as frequency ? So sorry if its bit silly i just want to make my concept for this.

Regards,
Zoraze


Tianye

unread,
Aug 3, 2016, 9:06:39 PM8/3/16
to ns-3-users, zora...@ieee.org
Hello Zoraze,

It has been three years since you asked this question. But when I saw your question, I had the same doubt. I thought in OnOffApplication, the time interval between packets is determined by the both the value of packet size/bit rate and the duration of the off time. 

Regards,
Tianye

在 2013年3月16日星期六 UTC-4下午12:59:02,zoraze ali写道:
Reply all
Reply to author
Forward
0 new messages