「MP-BGP」- 报文格式

VPNv4 | IPv4 (AFI=1) | Labeled VPN Unicast (SAFI=128)

MP_REACH_NLRI and EXTENDED_COMMUNITIES

Frame 273: 289 bytes on wire (2312 bits), 289 bytes captured (2312 bits) on interface -, id 0
Ethernet II, Src: HuaweiTe_f0:4f:dc (00:e0:fc:f0:4f:dc), Dst: HuaweiTe_ed:04:ec (00:e0:fc:ed:04:ec)
MultiProtocol Label Switching Header, Label: 1026, Exp: 6, S: 1, TTL: 255
Internet Protocol Version 4, Src: 10.1.1.1, Dst: 10.4.4.4
Transmission Control Protocol, Src Port: 179, Dst Port: 50565, Seq: 263, Ack: 96, Len: 231
Border Gateway Protocol - UPDATE Message
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 115
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 92
    Path attributes
        Path Attribute - ORIGIN: INCOMPLETE
        Path Attribute - AS_PATH: empty
        Path Attribute - MULTI_EXIT_DISC: 3
        Path Attribute - LOCAL_PREF: 100
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 32
            Carried extended communities: (4 communities)
                Route Target: 100:100 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 100
                    4-Octet AN: 100
                OSPF Domain Identifier: 0:0 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): OSPF Domain Identifier (0x05)
                    2-Octet AS: 0
                    4-Octet AN: 0
                OSPF Route Type: Area: 0.0.0.1, Type: Router [Transitive Opaque]
                    Type: Transitive Opaque (0x03)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (Opaque): OSPF Route Type (0x06)
                    Area ID: 0.0.0.1
                    Route type: Router (1)
                    Options: 0x00 (Metric: Type-1)
                OSPF Router ID: 10.0.61.1:0 [Transitive IPv4-Address-Specific]
                    Type: Transitive IPv4-Address-Specific (0x01)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (IPv4): OSPF Router ID (0x07)
                    Router ID: 10.0.61.1
        Path Attribute - MP_REACH_NLRI
            Flags: 0x90, Optional, Extended-Length, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...1 .... = Extended-Length: Set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 32
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop:  RD=0:0 IPv4=10.1.1.1
                Route Distinguisher: 0:0
                IPv4 Address: 10.1.1.1
            Number of Subnetwork points of attachment (SNPA): 0
            Network Layer Reachability Information (NLRI)
                BGP Prefix
                    Prefix Length: 112
                    Label Stack: 1032 (bottom)
                    Route Distinguisher: 100:1
                    MP Reach NLRI IPv4 prefix: 192.168.1.0

MP_UNREACH_NLRI

Frame 80: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits) on interface -, id 0
Ethernet II, Src: HuaweiTe_f0:4f:dc (00:e0:fc:f0:4f:dc), Dst: HuaweiTe_ed:04:ec (00:e0:fc:ed:04:ec)
MultiProtocol Label Switching Header, Label: 1026, Exp: 6, S: 1, TTL: 255
Internet Protocol Version 4, Src: 10.1.1.1, Dst: 10.4.4.4
Transmission Control Protocol, Src Port: 179, Dst Port: 50565, Seq: 20, Ack: 20, Len: 76
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 76
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 53
    Path attributes
        Path Attribute - MP_UNREACH_NLRI
            Flags: 0x90, Optional, Extended-Length, Non-transitive, Complete
            Type Code: MP_UNREACH_NLRI (15)
            Length: 49
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Withdrawn Routes
                BGP Prefix
                BGP Prefix
                BGP Prefix
                    Prefix Length: 112
                    Label Stack: 0 (bottom)
                    Route Distinguisher: 100:1
                    MP Unreach NLRI IPv4 prefix: 10.0.61.0