IPV4 与 IPV6 的 IP其中服务类型对应传输流类型,数据包总长度对应有效载荷长度,生存时间对应跳数限制Bgp:基本头部:Open 报文头部(基本头部+以下部分):Marker(16 byte)Length(2 byte) Type(1 byte)Keepalive 报文头部:只有基本头部Update 报文头部:Notification 报文头部:其中的 error code 为:错误代码123456错误类型消息头错 OPEN 消息错UPDATE消息错保 持 时间超时状态机错 退出Optional Paramenters LengthHold TimeVersionMy Autonomous SystemBGP IdentifierOptional ParamentersWithdrawn RoutesUnfeasible Routes LengthPath Attribute LengthNetwork Layer Reachability InformationPath AttributeDataError CodeError SubcodeISIS:特别 bit:Up/down 比特:从 L2leakig 至 L1 的路由ATT bit:从 L1L2 向 L1 发送的路由包含的该 bit 为 1,L1 根据该 bit 自动计算生成到最近的 L1L2 默认路由。Overload bit:当路由振荡时,BGP 与 ISIS 路由没有达成同步时,isis 发送该 bit 的路由,表明,只能把目的地址是这些路由的数据包转发给我,其他数据包不能转发。Ospf头部:LSA 头部:OSI网络层地址编码方式: NSAPHello 报头:在 option 中有一个 Ebit,表明是否是 stub 区域。假如一个配置,一个没有配置,则无法建立邻居关系802.1q 帧头(以太网帧头 18B,加上 tag 共 22B。801.1ad(QinQ)DASAType/LenDataFCSDASAType/LenDataFCS’TAGEtherType PRIVLAN-IDCFI(Token-Ring Encapsulation Flag)4 Bytes2 Bytes3bits 1bit12bits0-70 - 40950-1Value = 0x81006B6B2B42-1500B4B46-1500BBPDU 的帧格式:N-PE 4Ethernet UNIPWLength/Type (2B)Client Data (38-1500)Ethernet FCS (4B)MAC Dest Addr (6B)MAC SRC Addr (6B)EtherType (0x88A8) (2B) “S-Tag” 802.1Q tag (2B)EtherType (0x8100) (2B) “C-Tag” 802.1Q tag (2B)1514131211109876543210VLAN ID(12 Bit)CFI(1 Bit)Priority(3 Bit)DA is always Multicast Address: 01-80-c2-00-00-00SA is the MAC address of the port that is sending out this BPDU (sh mod output)DSAP=SSAP=0x42 or 01000010. Same in either canonical or non-canonical format# of Octets Configuration Message 2 Protocol Identifier = 0 1 Version = 0 1 Message type = 0 1 (flags) TCA | reserved (6 bits) | TC 8 Root ID 4 Cost of path to root 8 Bridge ID 2 Port ID 2 Message age 2 Max age 2 Hello time 2 Forward Delay SSAPDSAPSADAConfiguration Message