How to determine the correct protocol to use for pcapRecorder.dumpProtocols

100 views
Skip to first unread message

Collin Kenner

unread,
Jul 26, 2019, 4:51:23 PM7/26/19
to OMNeT++ Users
Hi All,

I am currently using the WirelessInterface module to simulate Wifitraffic between different wireless devices.I am currently also using the CsmaCaMac for the mac header in the packet. However, I am running into an issue when trying to record the layer 2 address information from the packet. I am trying to read and access the CsmaCaMac chunk from the packet, but I cannot determine the correct protocol name. Does anyone know where the resource with the possible inputs for pcapRecorder.dumpProtocols is located? Here is what I currently have in my .ini file. I appreciate any help you can provide!

###########################################################
*.listener*.listenerHost.numApps = 1
*.listener*.listenerHost.app[0].typename = "UdpSink"
*.listener*.listenerHost.app[0].localPort = 5000
*.listener*.listenerHost.forwarding = true

*.listener*.listenerHost.wlan[0].typename = "WirelessInterface"
*.listener*.listenerHost.wlan[0].radio.typename = "UnitDiskRadio"
*.listener*.listenerHost.wlan[0].mac.typename = "CsmaCaMac"
*.listener*.listenerHost.wlan[0].mac.ackTimeout = 300us
*.listener*.listenerHost.wlan[0].mac.useAck = false
*.listener*.listenerHost.wlan[0].mac.fullDuplex = false
*.listener*.listenerHost.wlan[0].radio.transmitter.communicationRange = 250m
*.listener*.listenerHost.wlan[0].radio.receiver.ignoreInterference = false
*.listener*.listenerHost.wlan[0].radio.displayCommunicationRange=true
*.listener*.listenerHost.**.bitrate = 1Mbps
###########################################################
#                    PCAP                                 #
###########################################################
# PCAP Recording
# misc settings
**.crcMode = "computed"
**.fcsMode = "computed"
**.pcapRecorder[*].verbose = true
**.pcapRecorder[*].alwaysFlush = true
# Pcap Recorder settings
*.listener*.listenerHost.numPcapRecorders = 2
*.listener*.listenerHost.pcapRecorder[0].pcapLinkType = 101
*.listener*.listenerHost.pcapRecorder[0].pcapNetwork = 101
*.listener1.listenerHost.pcapRecorder[0].pcapFile = "results/rsu/ipv4_1.pcap"
*.listener2.listenerHost.pcapRecorder[0].pcapFile = "results/rsu/ipv4_2.pcap"
*.listener3.listenerHost.pcapRecorder[0].pcapFile = "results/rsu/ipv4_3.pcap"
*.listener4.listenerHost.pcapRecorder[0].pcapFile = "results/rsu/ipv4_4.pcap"
*.listener5.listenerHost.pcapRecorder[0].pcapFile = "results/rsu/ipv4_5.pcap"
*.listener*.listenerHost.pcapRecorder[0].packetFilter = "UDPData-*"
*.listener*.listenerHost.pcapRecorder[0].dumpProtocols = "ipv4"
*.listener*.listenerHost.pcapRecorder[0].moduleNamePatterns = "ipv4"

# Mac Address
*.listener1.listenerHost.pcapRecorder[1].pcapFile = "results/rsu/mac1.pcap"
*.listener2.listenerHost.pcapRecorder[1].pcapFile = "results/rsu/mac2.pcap"
*.listener3.listenerHost.pcapRecorder[1].pcapFile = "results/rsu/mac3.pcap"
*.listener4.listenerHost.pcapRecorder[1].pcapFile = "results/rsu/mac4.pcap"
*.listener5.listenerHost.pcapRecorder[1].pcapFile = "results/rsu/mac5.pcap"
*.listener*.listenerHost.pcapRecorder[1].helpers = "inet::AckingMacToEthernetPcapRecorderHelper"
*.listener*.listenerHost.pcapRecorder[1].dumpProtocols = "WirelessInterface"
*.listener*.listenerHost.pcapRecorder[1].packetFilter = "UDPData-*"

Levente Mészáros

unread,
Jul 27, 2019, 1:36:17 AM7/27/19
to OMNeT++ Discussion List
CsmaCaMac is a hypothetical protocol, so it has a frame format which is not known for PCAP. Currently it's not possible to use a protocol analyzer such as Wireshark to see what's in a packet. The upcoming INET release will have an option to convert to Ethernet before recording into the PCAP file.

Regards,
levy

--
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/7c555777-226d-4a28-beb6-bb82030f0629%40googlegroups.com.

Collin Kenner

unread,
Jul 28, 2019, 12:29:21 PM7/28/19
to OMNeT++ Users
Thanks,
That definitely explains alot. Appreciate the help!
To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages