To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/PR3P192MB0667571F30387DA9A38776D78CBC0%40PR3P192MB0667.EURP192.PROD.OUTLOOK.COM.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/CAEvjFmGC%3D%3DehGkam4ePHVr%3DcjE49cgn9VThnRZ2U6Rw_D3hSsw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/CACjHgM9ef%3DXq4e31%3DGW4qRiE2mgOxsSjbEPr-LTiQo697ds%3DkQ%40mail.gmail.com.
It is not a question with omnet is a question of c++. You need to store the packets in a container, the container can be a STL container or an omnet++ containier. If the container is a stl, you can use the method size(), if the container is an omnetpp container, you can use the method getNumPacket()
Enviado: jueves, 14 de mayo de 2020 11:46
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sorry, I did not understand your question. I am beginner in omnet++. I am thinking of a queue like FIFO queue, where packets are stored and I need to keep track how many packets in the queue in my MAC protocol. Can you please explain a bit so I can understand?
Thank you
On Thu, May 14, 2020 at 5:30 PM Alfonso Ariza Quintana <aari...@hotmail.com> wrote:
And the queue, what type is the container, and STL container?
Enviado: jueves, 14 de mayo de 2020 7:30
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] INET: How to check queue status
--
Hello Everyone,
I am a beginner in OMNET++, trying to work using INET frame work.
I want to keep track the current queue status in my MAC protocol i.e. the number of packets in the data queue.
I have seen the the .cc files in inet>>queueing>>buffer and inet>>queueing>>queue, could not figure it out.
Can anyone kindly suggest me,
1. which function/parameter is actually calculating the no. of packets in the queue?
2. how to add queue status in MAC layer ( for example in bmac.cc file)?
Many thanks.
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 omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/141902ce-2783-4052-9265-5cfc215757dc%40googlegroups.com.
--
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 omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/PR3P192MB0667571F30387DA9A38776D78CBC0%40PR3P192MB0667.EURP192.PROD.OUTLOOK.COM.
--
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 omn...@googlegroups.com.
You can search the energy storage
cModule *en = host->getSubmodule("energyStorage");
if (en != nullptr)energyStorage = check_and_cast<power::IEpEnergyStorage *>(host->getSubmodule("energyStorage"));
J resEnergy;
if (energyStorage)resEnergy = energyStorage->getResidualEnergyCapacity(); // return the energy in Jules
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/986312b6-fffd-4d64-98bc-2b1a8415e155%40googlegroups.com.
You can search the energy storage
cModule *en = host->getSubmodule("energyStorage");
if (en != nullptr)energyStorage = check_and_cast<power::IEpEnergyStorage *>(host->getSubmodule("energyStorage"));
J resEnergy;
if (energyStorage)resEnergy = energyStorage->getResidualEnergyCapacity(); // return the energy in Jules
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/986312b6-fffd-4d64-98bc-2b1a8415e155%40googlegroups.com.
First at all the version of inet, inet 3.x and 4.x are quite different, and the exact code, I don't uderstand what do you want to express, I only indicate a solution to extract the residual energy in inet 4.x
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/d323fde3-19f1-408e-aafa-b9b82edec43c%40googlegroups.com.
You can search the energy storage
cModule *en = host->getSubmodule("energyStorage");
if (en != nullptr)energyStorage = check_and_cast<power::IEpEnergyStorage *>(host->getSubmodule("energyStorage"));
J resEnergy;
if (energyStorage)resEnergy = energyStorage->getResidualEnergyCapacity(); // return the energy in Jules
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/986312b6-fffd-4d64-98bc-2b1a8415e155%40googlegroups.com.
It is a bit complex to compute the energy per packet because the radio is consuming even if the radio doesn’t transmit or receive, if the radio is listening the medium the radio consumes. Two different experiments can have different consumption per packet, in function of the traffic. The consumption is a function of the percentage of time that the radio is active.
Yes and no, you can set the length of the application packets, the total length of the xmac packets will be the length of the application packets plus the overhead introduce by the headers of the other protocols, if the only protocol is the xmac the length is the length of the application packet plus the header of the xmac protocol. If you use UDP, length application + UDP header + ip header+ xmac header…
Enviado desde Correo para Windows 10
It is a bit complex to compute the energy per packet, because the radio is consuming even if the radio doesn’t transmit or receive, if the radio is listening the medium, the radio consumes. The comsuption is not a function of the packets is a function of the time that the radio has been active.
You can control the application size, the link layer size will be the application packet size plus the overhead of the other protocols (UDP+IP+Lik layer)
De: SEDE
Enviado: miércoles, 20 de mayo de 2020 17:36
Para: OMNeT++ Users
Asunto: Re: [Omnetpp-l] INET: How to check queue status
1. Is there any method/parameter in xmac (for example) to estimate energy consumption per packet?
2. How to set the data length in bits or data duration in second in xmac?
Looking forward to hearing from you, Sir.
Regards,
On Friday, May 15, 2020 at 4:10:11 AM UTC+10, Alfonso Ariza Quintana wrote:
You can search the energy storage
cModule *en = host->getSubmodule("energyStorage");
if (en != nullptr)
energyStorage = check_and_cast<power::IEpEnergyStorage *>(host->getSubmodule("energyStorage"));
J resEnergy;
if (energyStorage)
resEnergy = energyStorage->getResidualEnergyCapacity(); // return the energy in Jules
De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
Enviado: jueves, 14 de mayo de 2020 13:12
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Thanks for the explanation, Sir. I am also new in C++.
If i use omnetpp container, can you please tell if the command "txQueue->getNumPacket" will work to get the number of packets in the queue?
Also, would you suggest in INET, which method is to check the residual energy of the battery?
Many thanks.
On Thursday, May 14, 2020 at 8:40:50 PM UTC+10, Alfonso Ariza Quintana wrote:
It is not a question with omnet is a question of c++. You need to store the packets in a container, the container can be a STL container or an omnet++ containier. If the container is a stl, you can use the method size(), if the container is an omnetpp container, you can use the method getNumPacket()
De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Afroz Afroz <afro...@gmail.com>
Enviado: jueves, 14 de mayo de 2020 11:46
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sorry, I did not understand your question. I am beginner in omnet++. I am thinking of a queue like FIFO queue, where packets are stored and I need to keep track how many packets in the queue in my MAC protocol. Can you please explain a bit so I can understand?
Thank you
On Thu, May 14, 2020 at 5:30 PM Alfonso Ariza Quintana <aari...@hotmail.com> wrote:
And the queue, what type is the container, and STL container?
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/a28fa709-3cc0-45a3-95cb-877101b6093c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
To view this discussion on the web visit
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
--
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/ee8a101e-661f-40b3-a4cc-d6e4a1d1c717%40googlegroups.com.
You can set he lenght in bit or bytes if you want
**.app[0].messageLength = 100b
**.app[0].messageLength = 100B
But you use UDP/IP, you will include also the UDP header and ip header (8B and 20B = 28B of overhead).
Enviado: viernes, 22 de mayo de 2020 13:22
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sir, would you please suggest me?
Regards,
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
To view this discussion on the web visit
--
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 omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/ee8a101e-661f-40b3-a4cc-d6e4a1d1c717%40googlegroups.com.
--
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 omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/CACjHgM-CZ3m6J2ZqmyrN%3DCdgpa0s0ThyfT3pgx0MzxSuOtjNog%40mail.gmail.com.
I don't know, but I think that xmax doesn't implement fragmentation, the fragmentation for xmac is in the ip layer.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/8f09f468-9009-44bd-9048-e0c8a453f687%40googlegroups.com.
It is not a question with omnet is a question of c++. You need to store the packets in a container, the container can be a STL container or an omnet++ containier. If the container is a stl, you can use the method size(), if the container is an omnetpp container, you can use the method getNumPacket()
Enviado: jueves, 14 de mayo de 2020 11:46
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sorry, I did not understand your question. I am beginner in omnet++. I am thinking of a queue like FIFO queue, where packets are stored and I need to keep track how many packets in the queue in my MAC protocol. Can you please explain a bit so I can understand?
Thank you
On Thu, May 14, 2020 at 5:30 PM Alfonso Ariza Quintana <aari...@hotmail.com> wrote:
And the queue, what type is the container, and STL container?
Enviado: jueves, 14 de mayo de 2020 7:30
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] INET: How to check queue status
--
Hello Everyone,
I am a beginner in OMNET++, trying to work using INET frame work.
I want to keep track the current queue status in my MAC protocol i.e. the number of packets in the data queue.
I have seen the the .cc files in inet>>queueing>>buffer and inet>>queueing>>queue, could not figure it out.
Can anyone kindly suggest me,
1. which function/parameter is actually calculating the no. of packets in the queue?
2. how to add queue status in MAC layer ( for example in bmac.cc file)?
Many thanks.
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 omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/141902ce-2783-4052-9265-5cfc215757dc%40googlegroups.com.
--
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 omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/PR3P192MB0667571F30387DA9A38776D78CBC0%40PR3P192MB0667.EURP192.PROD.OUTLOOK.COM.
--
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 omn...@googlegroups.com.
The packet generator is the source, you set the packet arrival in the source.If you want to record the number of packets in the queue, I don't know if the statistic is generated, but it is quite easy to include the statistic, in this case, if you want record the evolution in the time, you can use a vector statistic, in the manual you can find how to use it,
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/4b034c58-15c4-4986-ad15-1a1311280c07%40googlegroups.com.
There are several sources, without more information I don't know, the most probably is a udp source applications/udpapp
For udp sources the interarrival packet parameter is "sendInterval"
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/5d0156d8-fae8-4be5-a831-5661dc8a7851%40googlegroups.com.
The packet is a lot of bigger,10+8+20 + mac header = 38+mac header.
The arrival rate to the source is 1 packet per second.Numer of packets per second = 1/inter arrival time
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/1882b237-53e0-4879-9d2d-d67eb3da3f4do%40googlegroups.com.
sendInterval is the time between two consecutives packets.
Number of packets per second = 1 / sendInterval.
Number of packets per second = 1/1s = 1 pk/s
De: SEDE
Enviado: domingo, 14 de junio de 2020 6:59
Para: OMNeT++ Users
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sir, did you mean sendInterval = 1s means the packet arrival rate at the sender node is 1 packet per second?
I am very confused because as per INET web, sendInterval =1s means the following
"Each sensor node will send an UDP packet with a 10-byte payload (“temperature data”) every second to the server"
Can you kindly clarify me Sir? I need to know packet arrival rate at sender node, not at the server.
Thank you for all your answers Sir.
On Thursday, June 11, 2020 at 11:32:12 PM UTC+10, Alfonso Ariza Quintana wrote:
The packet is a lot of bigger,
10+8+20 + mac header = 38+mac header.
The arrival rate to the source is 1 packet per second.
Numer of packets per second = 1/inter arrival time
De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
Enviado: jueves, 11 de junio de 2020 12:27
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sir, for udp source, did you mean sendInterval is the packet interval rate to each node?
In ini file, sendInterval is set as 1s and in INET documentation, it is defined as each sensor node will send an UDP packet with a 10-byte payload every second to the server.
I need to know packet arrival rate to each node ie. how many packets arrive per second to each node that they queue before transmitting them to the receiver. Thank you.
app
*.sensor*.numApps = 1
*.sensor*.app[0].typename = "UdpBasicApp"
*.sensor*.app[0].destAddresses = "server"
*.sensor*.app[0].destPort = 1000
*.sensor*.app[0].sendInterval = 1s*.sensor*.app[0].startTime = exponential(1s)
*.sensor*.app[0].messageLength = 10Byte
On Wednesday, June 3, 2020 at 5:49:00 PM UTC+10, Alfonso Ariza Quintana wrote:
There are several sources, without more information I don't know, the most probably is a udp source applications/udpapp
For udp sources the interarrival packet parameter is "sendInterval"
De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
Enviado: miércoles, 3 de junio de 2020 2:19
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Sorry Sir, can you kindly tell me the file name for packet generation and setting packet arrival time? I still could not figure out which file it is. Thank you
On Wednesday, June 3, 2020 at 1:08:48 AM UTC+10, Alfonso Ariza Quintana wrote:
The packet generator is the source, you set the packet arrival in the source.
If you want to record the number of packets in the queue, I don't know if the statistic is generated, but it is quite easy to include the statistic, in this case, if you want record the evolution in the time, you can use a vector statistic, in the manual you can find how to use it,
De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
Enviado: martes, 2 de junio de 2020 13:20
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Sir,
How I can check the time interval after which the number of packets in the queue is updated?
Where packet arrival rate is defined?
At the beginning and at the end of a time slot I want to check the number of packets in the queue. Can you kindly suggest?
Kind Regards,
On Thursday, May 14, 2020 at 8:40:50 PM UTC+10, Alfonso Ariza Quintana wrote:
It is not a question with omnet is a question of c++. You need to store the packets in a container, the container can be a STL container or an omnet++ containier. If the container is a stl, you can use the method size(), if the container is an omnetpp container, you can use the method getNumPacket()
De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Afroz Afroz <afro...@gmail.com>
Enviado: jueves, 14 de mayo de 2020 11:46
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] INET: How to check queue status
Hello Alfonso,
Sorry, I did not understand your question. I am beginner in omnet++. I am thinking of a queue like FIFO queue, where packets are stored and I need to keep track how many packets in the queue in my MAC protocol. Can you please explain a bit so I can understand?
Thank you
On Thu, May 14, 2020 at 5:30 PM Alfonso Ariza Quintana <aari...@hotmail.com> wrote:
And the queue, what type is the container, and STL container?
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/bf2484ee-3491-4267-9d68-a9d99cfe9660o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/bf2484ee-3491-4267-9d68-a9d99cfe9660o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/bf2484ee-3491-4267-9d68-a9d99cfe9660o%40googlegroups.com.
No necessarily, you need to consider also the network bit rate, loses ... . the arrival rate to the destination can be lower than the sending, if the offered traffic to the network is bigger than the network capacity, the packets will be stored in the queues and some packets will be loss.
No necessarily, you need to consider also the network bit rate, loses ... . the arrival rate to the destination can be lower than the sending, if the offered traffic to the network is bigger than the network capacity, the packets will be stored in the queues and some packets will be loss.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/336c8595-6af0-4fe7-be84-6b8fbf7bd0c6o%40googlegroups.com.