UDP ShowCase Example with End-End Delay and Throughput

141 views
Skip to first unread message

Ayub Afridi

unread,
May 24, 2022, 7:23:35 AM5/24/22
to omn...@googlegroups.com
Hello Everyone! i have a unique problem in the example as mentioned above in subject line.
i have modified the UDP showcase example and tried to evaluate the results but i could not get the desired results. i am surprised why is it not working as per the given tutorial methods. 
The Details are as follows:
  • i am using a WIFI Handover Model with 6 AP's and 6 Hosts, the hosts are moving and associate with AP in range during the simulation. 
  • I applied the UDP applications (background, best effort, voice, video as used in showcase examples)  for only 1 Host in my network. but when i try to plot the end to end delay and throughput i can not see any Throughput Vector for any application and only 2 End-End delay vector for Application 0 and 1.

Can anyone of you who has more knowledge and experience share and help me out?
i can share my network if needed.

Thanks

Charles Pandian

unread,
May 24, 2022, 7:32:41 AM5/24/22
to omn...@googlegroups.com
The following article was one of such experiences that one faced almost 10 years ago. (of course it is not related with Omnet++ - but it will make you understand things)
https://www.projectguideline.com/will-the-protocols-work-as-per-your-imagination-and-theoretical-expectation/
Understanding the behaviour of a protocol and analysing it will require lot of understanding on it.
There is no simple answer for your question.
You have to understand what you are really doing.

Charles Pandian,



--
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/CAB87mwEABFv4i_-pRkYtOnJXzTV0YqoYt6cp4bo4qW4DgSeAUQ%40mail.gmail.com.

Alfonso Ariza Quintana

unread,
May 24, 2022, 7:50:35 AM5/24/22
to omn...@googlegroups.com
You can modify the node to include the throughput meter
INET Framework for the OMNeT++ discrete event simulator - inetmanet-4.x/ApplicationLayerNodeBase.ned at master · aarizaq/inetmanet-4.x

And in the ini file now you can activate it.
**.hasThrugmeter = true

You will need to modify a bit the  ThruputMeter in inet with this

void ThruputMeter::handleMessage(cMessage *msg)
{
if (msg->isPacket())
       updateStats(simTime(), PK(msg)->getBitLength());
  send(msg, "out");
}


De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Ayub Afridi <ayubaf...@gmail.com>
Enviado: martes, 24 de mayo de 2022 13:23
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: [Omnetpp-l] UDP ShowCase Example with End-End Delay and Throughput
 

Ayub Afridi

unread,
May 24, 2022, 9:45:33 AM5/24/22
to omn...@googlegroups.com
Thank you very much @Alfonso and @Pandian. 
I have one last question! when i have to modify the Inet files just like @Alfonso said,  "You will need to modify a bit the  ThruputMeter in inet..." and "You can modify the node to include the throughput meter". So after I make these changes into Inet files, do the changes apply directly during the execution of my project simulation? I remember in many other simulators when we make changes to libraries we have to re-compile the simulator for the changes to make effects. 


Alfonso Ariza Quintana

unread,
May 24, 2022, 1:05:31 PM5/24/22
to omn...@googlegroups.com
With changes in the source code (cc and h files) is necessary to rebuild the project

Enviado: martes, 24 de mayo de 2022 15:45
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] UDP ShowCase Example with End-End Delay and Throughput
 

Ayub Afridi

unread,
May 25, 2022, 5:18:16 AM5/25/22
to omn...@googlegroups.com
Hello @Alfonso Ariza Quintana and @Charles!!! i have followed the steps and done the addition in Src and Inet files but i got this error. can you please see the attachment?


Screenshot from 2022-05-25 11-13-41.png

Alfonso Ariza Quintana

unread,
May 25, 2022, 5:28:01 AM5/25/22
to omn...@googlegroups.com
This is the reason for the modification in the thrugmeter module, you need to check if is a packet

void ThruputMeter::handleMessage(cMessage *msg)
{
    if (msg->isPacket())
        updateStats(simTime(), PK(msg)->getBitLength());
    send(msg, "out");
}

Enviado: miércoles, 25 de mayo de 2022 11:17

Ayub Afridi

unread,
May 25, 2022, 5:52:44 AM5/25/22
to omn...@googlegroups.com
Thank you @Alfonso for the quick reply!! Indeed, it is a TCP and UDP protocol based application which I am trying to simulate to compare the output results from both. The baseline applications are the same as in showcase tutorials (best effort, background, voice, video). so in both TCP and UDP, the sent and received messages are Packet, am i correct? If not can you please tell me about" This is the reason for the modification in the thrugmeter module, you need to check if it is a packet " so I could do it to get correct data for the plot for analysis.
 

Alfonso Ariza Quintana

unread,
May 25, 2022, 5:57:03 AM5/25/22
to omn...@googlegroups.com
The source layer and transport also send signaling information that is not a packet (open, close, error .... ), you need to filter this from the statistics

Enviado: miércoles, 25 de mayo de 2022 11:52
Reply all
Reply to author
Forward
0 new messages