Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Hexadecimal Code interpretation of Fragment offset (fragment offset) Field in packet Analysis

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Learning packet analysis encountered as described in the confusion, GOOGLE& whiteness failed. After reading the description of the fragment offset field in RFC791, I can only understand it after thinking and calculation. I hope it will be helpful to children's shoes who have the same confusion. The following starts with the screenshot:

As shown in the picture, the hexadecimal code corresponding to the gray bottom Fragment offset:1480 line is the blue background 0X20b9. At first, I wonder why the decimal 1480 corresponds to the 0x20b6. No matter how wrong it is, I don't know if the reader has encountered such a doubt!

Refer to the description of the relevant field in RFC791 to understand that this 1480 refers to the actual byte of the offset rather than the decimal value corresponding to the bit in the fragment offset field. This field is based on eight "octets", so the value of 1480 in this field is divided by 8, which translates to 0 0000 1011 1001 in binary, because there is a 3-bit Flag field with a value of 0000, so the binary value is 0010 0000 1011 1001 after adding the Flag field, which translates into binary is 20b9. Please do the math for yourself. If you don't understand, you need to master the structure and base of the data packet first.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report