riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
203 stars 131 forks source link

PCAP recording (GeoNetworking and ITS protocols) #194

Open xrispa-m opened 3 years ago

xrispa-m commented 3 years ago

I'm trying to capture the communication between the vehicles and the RSU at the example that is provided by Artery. I tried to use the PCAP recorder from INET but the file that is created is always empty. According to the documentation the PCAP recorder only captures IPv4/IPv6 packets and any packets that don't contain IP packets are discarded.

Is there any way to capture the messages from the GeoNetwoking and ITS protocols similar to the attached image? Since Vanetza is resposible for the transport layer and the GeoNetworking would it be possible to get the send and received packets from Vanetza?

Geonetworking

riebl commented 3 years ago

Currently, we don't have a ready-to-go PCAP recording facility yet. If you want to record packets per station, the artery.networking.Router module would be my first choice to add such a feature. If you want the whole network traffic in a single log, you should use a global module instead. I think INET's Radio and RadioMedium emit signals which could be captured for this purpose. I cannot say how much effort it would be to extend INET's existing PCAP recorder, though.

xrispa-m commented 3 years ago

Is there any other way to export the communication between vehicles and RSUs, apart from PCAP recording? I can see the messages during the simulation but I don't know how to access and/or export them in a file. During the simulation I can see that some packets are handled from Vanetza. Should I access those to get access to the messages?

riebl commented 3 years ago

Artery includes some mechanisms to cooperate with external components, e.g. the TransfusionService to forward data to an external service implementation back and forth. Also, a HiL-like setup is possible by means of the testbed feature. Recording of raw packets including their content has not been implemented so far. Do you want to record only packets of a specific host/vehicle or all packets ever seen in the whole network?

xrispa-m commented 3 years ago

Ideally, I would like to record all the packets in the network.

raul-parada commented 2 years ago

@xrispa-m could you solve this issue? I would like to receive CAM and DENM content.

maat-team commented 1 week ago

Hello,

Hello I have tried the solution suggested in https://github.com/riebl/artery/issues/105, which involved adding a pcap recorder to all the *.ned files, but no pcap files were generated. I also tried configuring pcap recording in omnetpp.ini, but again, no pcap files were generated.

Do you have any recommendations?

Thank you in advance.

PS: excerpt omnetpp.ini for the highway police example provided in artery

*.node[*].numPcapRecorders = 1.* *.node[*].pcapRecorder[*].pcapLinkType = 105 # 802.11 *.node[0].pcapRecorder[*].pcapFile = "results/node0.pcap" *.node[1].pcapRecorder[*].pcapFile = "results/node1.pcap" *.node[2].pcapRecorder[*].pcapFile = "results/node2.pcap"