网络数据流分析(四层网络结构)

来源:互联网 发布:java游戏合集 编辑:程序博客网 时间:2024/05/17 07:18

本文内容不全,分析其中包含部分结构内容信息


数据链路层结构(Ethernet II)总字节数为14Byte:

   目的mac:6 Byte        源mac:6 Byte    Type:2 Byte


对于Ipv6 的Type :ox86dd 

IP 层:

数据段的总大小为40Bytes:其中,Version 占1 Byte 、Destination IP 和 Source IP 个占用了 16 Byte(共32)。

User Datagram Protocol 运输层(主要是端口数据长度等信息的保存):

  Source Port: 2 Bytes 

  Destination Port: 2 Bytes

  Length: 2 Bytes

  Check Sum: 2 Bytes

  Others: 95 Bytes


对于 Ipv4 Type:0x0800 

IP 层 总占字节数为 20 Bytes。

 Version :1 Byte      other :9 Bytes      live:1 Byte   Tcp/Udp: 1 Byte    Source IP: 4 Bytes    Destination IP:4 Bytes


传输层(Transmission Control Protocol ):
 Source Port: 2 bytes  Destination Port:2 Bytes     others:  n Bytes




0 0
原创粉丝点击