You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to calculate some parameters for simulations. For example, I want to calculate the total number of packets sent by a node. The log file contains the following:
INFO 00:00:37.080 [send_packet:41] src:18 dst:22 len:79
INFO 00:00:40.987 [radio_read:97] RECV ret:16 src:18 dst:22 len:1 flags:1
INFO 00:00:37.110 [mac_handle_ack:76] ACK status:ACK_OK retries:2
[INFO: ICMPv6 ] Sending ICMPv6 packet to fe80::302:304:506:0, type 155, code 1, len 72
INFO 00:00:32.821 [send_packet:41] src:18 dst:0 len:79
INFO 00:00:36.702 [radio_read:97] RECV ret:16 src:18 dst:0 len:1 flags:1
INFO 00:00:32.826 [mac_handle_ack:76] ACK status:TX_ERR retries:0
In the calculations, I count the number of lines that contain send_packet or Sending ICMPv6 packet because it represents a ICMPv6 packet that was sent. However, when I see status:ACK_OK retries:2 or TX_ERR I don't know if I need to count retransmissions as extra packets sent.
My goal is to calculate the number of RPL control packets sent and the number of Application layer packet sent. Also, I need to calculate the retransmissions rate for the specific node. Is that possible using a cmd to calculate packets after simulation is finished?
Describe the solution you'd like
For example, If I provide log files I should be able to count the total packets sent and distinguish between RPL control packets and App layer packets. Retransmissions should also be good to calculate.
Describe alternatives you've considered
I calculated the total number by summing up the lines that contain Sending ICMPv6 packet + the retries number and deducted the number of lines that contain the status:TX_ERR word.
Thank you!
The text was updated successfully, but these errors were encountered:
Similarly stats for IPv6/RPL/UDP/ICMP/TCP can be handled by the these OAM commands. These OAM commands depend on the stack's API for statistics. If the stack is not compiled with stats on then it wont work.
Using packet capture
This is a generic and guaranteed way to get the stats. Whitefield creates a pcap on per node basis in pcap/ folder.
To get all RPL packets sent/recv to the node ... tshark -nr pcap/pkt-0-0.pcap -Y "icmpv6.type==155" | wc -l
To get all RPL packets sent from the node ... tshark -nr pcap/pkt-0-0.pcap -Y "icmpv6.type==155 and ipv6.addr == fe80::ff:fe00:1" | wc -l
To get all UDP packets sent/recv to the node .. tshark -nr pcap/pkt-0-0.pcap -Y "udp" | wc -l
Note that I am using node-specific pcap here .. hope this helps.
Is your feature request related to a problem? Please describe.
I am trying to calculate some parameters for simulations. For example, I want to calculate the total number of packets sent by a node. The log file contains the following:
In the calculations, I count the number of lines that contain
send_packet
orSending ICMPv6 packet
because it represents a ICMPv6 packet that was sent. However, when I seestatus:ACK_OK retries:2
orTX_ERR
I don't know if I need to count retransmissions as extra packets sent.My goal is to calculate the number of RPL control packets sent and the number of Application layer packet sent. Also, I need to calculate the retransmissions rate for the specific node. Is that possible using a cmd to calculate packets after simulation is finished?
Describe the solution you'd like
For example, If I provide log files I should be able to count the total packets sent and distinguish between RPL control packets and App layer packets. Retransmissions should also be good to calculate.
Describe alternatives you've considered
I calculated the total number by summing up the lines that contain
Sending ICMPv6 packet
+ theretries
number and deducted the number of lines that contain thestatus:TX_ERR
word.Thank you!
The text was updated successfully, but these errors were encountered: