UDP throughput calculation in INET

383 views
Skip to first unread message

Foroutan Fami

unread,
Mar 17, 2021, 12:53:04 AM3/17/21
to OMNeT++ Users
This might sounds silly but I was wondering how these speeds have been calculated in the INET wireless QoS showcase:

#-----background - 24Mbps
*.sta*.app[0].messageLength = 900B
*.sta*.app[0].sendInterval = normal(300us,10us)
#-----best effort - 28.8Mbps
*.sta*.app[1].messageLength = 900B
*.sta*.app[1].sendInterval = normal(250us,10us)
#-----video - 5Mbps
*.sta*.app[2].messageLength = 600B
*.sta*.app[2].sendInterval = normal(1ms,10us)
#-----voice - 100kbps
*.sta*.app[3].messageLength = 125B
*.sta*.app[3].sendInterval = normal(10ms,10us)

Any reference or documentation is highly appreciated.
Thanks.

V Balasubramanian

unread,
Mar 17, 2021, 2:44:25 AM3/17/21
to omn...@googlegroups.com
+1
I wasn't able to find a documentation for this.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/67f537fa-6744-4225-805d-5945ad465cf3n%40googlegroups.com.

Foroutan Fami

unread,
Mar 18, 2021, 6:42:50 PM3/18/21
to OMNeT++ Users
Alfonso do you any idea?

Alfonso Ariza Quintana

unread,
Mar 19, 2021, 5:16:45 AM3/19/21
to omn...@googlegroups.com
I don't understand your question.
If it is the bit rate
900B * 8 / 300us = 24 Mb/s

Size in bytes * 8 (bits in a byte) / mean time between two packets = binary bit rate

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Foroutan Fami <forout...@gmail.com>
Enviado: jueves, 18 de marzo de 2021 23:42
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] UDP throughput calculation in INET
 

Foroutan Fami

unread,
Mar 29, 2021, 1:55:09 PM3/29/21
to OMNeT++ Users
I was wondering how they come up with these values? Why " 900B * 8 / 300us = 24 Mb/s "  is there any reference? why not 100us or a different message length?
Or is there any reference for other types?

FEIT

unread,
Sep 19, 2021, 5:11:52 AM9/19/21
to OMNeT++ Users
Hello Alfonso, following the above formula, if i compute the bit rate considering the parameters of sensornetwork>>omnetpp.ini,  (message length 10Byte and sendInterval = 0.5s) the bit rate = 10*8/0.5 = 160 bps.
Would you please say then why the bit rate parameter is set as 19200 bps in the same ini file?
**.radio.transmitter.bitrate = 19200 bps

Thank you.

Alfonso Ariza Quintana

unread,
Sep 20, 2021, 3:57:07 AM9/20/21
to omn...@googlegroups.com
The offered traffic at the application layer, yes, but, for example, UDP includes a header of 8 bytes, and IPv4 20,
Every packet that you are sending of 10 bytes is in reality 38 bytes when this packet arrives at the link layer, now you need to include the link-layer header.

If you are generating a packet of 10 bytes every 0.5 seconds, you are injecting in reality, at least 38*8/0.5 = 608b/s
you can increase the size of the packet or increase the packet frequency to increase the bit rate. If you reduce the time between packets to 0.1 second you are generating 38*8/0.1  = 3040 b/s


De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de FEIT <fei...@gmail.com>
Enviado: domingo, 19 de septiembre de 2021 11:11

Mourad Ouhammou

unread,
Sep 20, 2021, 3:43:58 PM9/20/21
to omn...@googlegroups.com
image.gif

hello please can i use EDCA in this scenarios and how ;
Mailtrack Sender notified by
Mailtrack
20/09/21, 20:43:37



--
Mourad Ouhammou 
Etudiant en master (M2) en systèmes de télécommunication et réseaux informatique
Faculté poly-disciplinaire Béni-Mellal
 0212 670 91 75 73

FEIT

unread,
Sep 20, 2021, 8:42:29 PM9/20/21
to OMNeT++ Users
Hello Alfonso, would you please say why the bitrate is set to 19200 bps then? Is 19200 bps the maximum bit rate the network can handle?
**.radio.transmitter.bitrate = 19200 bps

Many thanks for your explanation.

Alfonso Ariza Quintana

unread,
Sep 21, 2021, 4:11:22 AM9/21/21
to omn...@googlegroups.com
It depends on the radio, if you are using Wi-Fi, the bit rate is set using the standard and you only can use the bit rate in the standards, and this is the peak radio bit rate. The real bit rate is lower, for example, for 802.11g the peak bit rate is 54Mb/s the effective bit rate if more or less 20Mb/s. Depending on the protocol and the header overhead, it can be different.



Enviado: martes, 21 de septiembre de 2021 2:42

FEIT

unread,
Sep 21, 2021, 6:56:12 AM9/21/21
to OMNeT++ Users
Thank you Alfonso. So, this is the peak bit rate for APSKScalarRadio? Can you please refer me any documentation where I can get the details of the standard, so I can understand why it is set to 19200 bps? Thank you again.

Alfonso Ariza Quintana

unread,
Sep 22, 2021, 4:20:27 AM9/22/21
to omn...@googlegroups.com
If you are using wifi, the bit rate is selected from the available bit rate, in the case of other types of radio, it is the peak bit rate of the ratio. If you include a CSMA protocol, ACK, overhead ... the effective bit rate for upper layers is lower, sometimes less than half, even lower with protocols like X-MAC, B-MAC

Enviado: martes, 21 de septiembre de 2021 12:56

FEIT

unread,
Sep 24, 2021, 7:10:56 AM9/24/21
to OMNeT++ Users
Hello Alfonso,

Many thanks for your explanation.

Is it possible to evaluate X-MAC or B-MAC performance considering mixed traffic loads (similar to QoS showcase)?

If yes, do I need to focus on omnetpp.ini file only or I also have to modify cc file?

Thank you.

Alfonso Ariza Quintana

unread,
Sep 28, 2021, 6:07:05 AM9/28/21
to omn...@googlegroups.com
You can, but X-MAC and B-MAC are designed for a very low consumption idea, basically for sensor networks, and the traffic that this type of protocol can support is quite low,

Enviado: viernes, 24 de septiembre de 2021 13:10
Reply all
Reply to author
Forward
0 new messages