端到端延迟在静脉 [英] end to end delay in Veins
问题描述
我想计算静脉示例场景中的端到端延迟。
I want to calculate end-to-end delay in Veins example scenario.
我已经读过与这个主题相关的旧邮件,但是他们没有为这个问题提供真正的解决方案。
I have already read old mails that are related to this topic but they don't provide a real solution for the problem.
我使用 getCreationTime()
和 simTime()
功能。产生的延迟约为 1.70 * 10 ^ -4
。
I used getCreationTime()
and simTime()
functions. The resulting delay is about 1.70*10^-4
.
这个延迟对我没有意义。它应该是更多。我需要一些帮助在这一点上。我通过使用 mackPkt-> creationTime()
函数创建时间 macPkt
c> simTime()从中计算端到端延迟。然而,这没有意义。
This delay doesn't make sense for me. It is supposed to be more. I need some help at this point. I take the creation time of macPkt
by using mackPkt->creationTime()
function and i extract simTime()
from it for calculating end-to-end delay. However, it doesn't make sense.
我想 macPkt
不是发送器创建的包。我需要在发送端的包的创建时间。谁能帮助我?计算端到端延迟是许多用户的问题。
I guess macPkt
is not the packet created by transmitter. I need the creation time of the packet at the transmitter side. Can anyone help me? The calculating end to end delay is a problem of many users. I hope this Question help many users.
推荐答案
您可以使用WaveShortMessage的'timestamp'字段来存储创建时间,然后在接收器使用此字段来计算延迟。如果您使用自己的邮件,只需添加自己的邮件。
You can use the ‘timestamp‘ field of a ‘WaveShortMessage‘ to store the creation time, then use this field at the receiver to calculate the delay. If you use your own messages, just add a field of your own.
这篇关于端到端延迟在静脉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!