FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
167 views 0 comments
by anonymous
hello. I want to look at where and how much router fragment packets (fragmentation packet counter). How I may do this?

Google show answer as: "netstat -s", but this does not work in RUTX.

Firmware: 7.4.3

1 Answer

0 votes
by anonymous

Hello,

I did not find much in this regard. You can find some details with the following command:

  • cat /proc/net/snmp | grep Ip

The last three columns of the output seem to be related to fragmentation counters.

The command:

  • cat /proc/net/sockstat

has a line with FRAG, which apparently displays the number of fragmented packets currently in use and some memory usage.

If you are interested in capturing fragmented traffic, TCPdump can be used with the following command:

  • tcpdump -i wwan0 -nnvvS 'ip[6] & 0x20 != 0 or ip[6:2] & 0x1fff != 0'

It captures packets with More Fragments flag set or packets, where the fragment offset is not zero.

Best regards,