Veins - Unexpected behavior with lost packets in certain vehicles

☆樱花仙子☆ 提交于 2019-12-12 08:17:06

问题


I'm working with the Veins framework over the OMNeT++ simulator and I'm facing a weird situation where certain few nodes lose all received packets.

To put everybody in context, I'm simulating 100 nodes (4 flows of 25 nodes), all under coverage (apparently), and sending 10 packets per second each. Depending on the moment the nodes enter the network (i.e: are created by SUMO), some of them (usually just 1 but can be 2, 3, 4...) enter in a mode where all packets are marked as lost (SNIRLostPackets) as they receive a packet while another packet is already being received (according to the Decider the NIC is already synced to another frame).

That doesn't suppose to happen in 802.11 unless there are hidden nodes and the senders don't see each other at the moment of sending their respective frames (both see the the channel idle) right?

So, this behavior is not expected at all and destroys the final lost packets statistics. I tuned the transmission powers of transmission and interference range but nothing changes.

It happens too often to ignore it and I would like to know if anybody has experienced this behavior and how it was solved.

Thank you


回答1:


(OK, apparently the issue comes in an special case where a packet is received (started to being received) OK but at the end of the reception, the node has changed to a TX state.

Then, the packet is marked as "received while sending" but the node has already marked this frame as the next correctly reception. So it discards all receiving ones with no end.

It seems a bug and the possible workaround is adding these lines

if (!frame->getWasTransmitting()){
     curSyncFrame = 0;
 }

in the processSignalEnd function (Decider80211p file), inside the "(frame->getWasTransmitting() || phy11p->getRadioState() == Radio::TX)" case.

I'm not quite sure if this is a case that whether should happen or not, as a node should not send a packet while receiving.

Hope it helps.



来源:https://stackoverflow.com/questions/37704166/veins-unexpected-behavior-with-lost-packets-in-certain-vehicles

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!