1. 程式人生 > >網路資料流分析(四層網路結構)

網路資料流分析(四層網路結構)

本文內容不全,分析其中包含部分結構內容資訊

資料鏈路層結構(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