BGP Update信息格式
BGP使用Update消息来发送和撤销路由信息
每个更新消息将所有使用相同单个属性的路由打包发送。
Each Update contains a single set of BGP attributes and all routes using those attributes. This
format reduces the total number of packets routers send between BGP peers when exchanging
routing knowledge.
路由添加消息
Mar 13 10:44:09.974128 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:09.974227 BGP RECV message type 2 (Update) length 50
Mar 13 10:44:09.974233 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:09.974240 BGP RECV flags 0x40 code ASPath(2): 65222 500 600
Mar 13 10:44:09.974246 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:09.974259 BGP RECV 150.233.211.128/25
Mar 13 10:44:09.974293 bgp_rcv_nlri: 150.233.211.128/25
Mar 13 10:44:09.974351 bgp_read_v4_message: done with 172.16.0.14 (External AS 65222) received 50 octets 1 update 1 route
Mar 13 10:44:10.074070
Mar 13 10:44:10.074070 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.074227 BGP RECV message type 2 (Update) length 137
Mar 13 10:44:10.074241 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.074250 BGP RECV flags 0x40 code ASPath(2): 65222 10 20 60
Mar 13 10:44:10.074256 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.074272 BGP RECV 140.233.211.192/26 , 142.233.211.192/26 , 144.233.211.192/26 , 145.233.211.192/26
Mar 13 10:44:10.074282 BGP RECV 146.233.211.192/26 , 147.233.211.192/26 , 148.233.211.192/26 , 149.233.211.192/26
Mar 13 10:44:10.074292 BGP RECV 130.233.211.192/26 , 131.233.211.192/26 , 132.233.211.192/26 , 133.233.211.192/26
Mar 13 10:44:10.074301 BGP RECV 134.233.211.192/26 , 135.233.211.192/26 , 136.233.211.192/26 , 137.233.211.192/26
Mar 13 10:44:10.074309 BGP RECV 138.233.211.192/26 , 129.233.211.192/26
Mar 13 10:44:10.074346 bgp_rcv_nlri: 140.233.211.192/26
Mar 13 10:44:10.074402 bgp_rcv_nlri: 142.233.211.192/26
Mar 13 10:44:10.074418 bgp_rcv_nlri: 144.233.211.192/26
Mar 13 10:44:10.074433 bgp_rcv_nlri: 145.233.211.192/26
Mar 13 10:44:10.074447 bgp_rcv_nlri: 146.233.211.192/26
Mar 13 10:44:10.074461 bgp_rcv_nlri: 147.233.211.192/26
Mar 13 10:44:10.074476 bgp_rcv_nlri: 148.233.211.192/26
Mar 13 10:44:10.074490 bgp_rcv_nlri: 149.233.211.192/26
Mar 13 10:44:10.074505 bgp_rcv_nlri: 130.233.211.192/26
Mar 13 10:44:10.074550 bgp_rcv_nlri: 131.233.211.192/26
Mar 13 10:44:10.074565 bgp_rcv_nlri: 132.233.211.192/26
Mar 13 10:44:10.074579 bgp_rcv_nlri: 133.233.211.192/26
Mar 13 10:44:10.074594 bgp_rcv_nlri: 134.233.211.192/26
Mar 13 10:44:10.074619 bgp_rcv_nlri: 135.233.211.192/26
Mar 13 10:44:10.074633 bgp_rcv_nlri: 136.233.211.192/26
Mar 13 10:44:10.074648 bgp_rcv_nlri: 137.233.211.192/26
Mar 13 10:44:10.074662 bgp_rcv_nlri: 138.233.211.192/26
Mar 13 10:44:10.074677 bgp_rcv_nlri: 129.233.211.192/26
Mar 13 10:44:10.074694
Mar 13 10:44:10.074694 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.074703 BGP RECV message type 2 (Update) length 52
Mar 13 10:44:10.074709 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.074715 BGP RECV flags 0x40 code ASPath(2): 65222 11 20 60
Mar 13 10:44:10.074721 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.074727 BGP RECV 151.233.211.192/26
Mar 13 10:44:10.074743 bgp_rcv_nlri: 151.233.211.192/26
Mar 13 10:44:10.074759
Mar 13 10:44:10.074759 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.074768 BGP RECV message type 2 (Update) length 52
Mar 13 10:44:10.074774 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.074780 BGP RECV flags 0x40 code ASPath(2): 65222 12 20 60
Mar 13 10:44:10.074786 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.074792 BGP RECV 152.233.211.192/26
Mar 13 10:44:10.074805 bgp_rcv_nlri: 152.233.211.192/26
Mar 13 10:44:10.074821
Mar 13 10:44:10.074821 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.074830 BGP RECV message type 2 (Update) length 52
Mar 13 10:44:10.074836 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.074842 BGP RECV flags 0x40 code ASPath(2): 65222 10 23 60
Mar 13 10:44:10.074848 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.074854 BGP RECV 153.233.211.192/26
Mar 13 10:44:10.074866 bgp_rcv_nlri: 153.233.211.192/26
Mar 13 10:44:10.074883
Mar 13 10:44:10.074883 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.074892 BGP RECV message type 2 (Update) length 52
Mar 13 10:44:10.074909 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.074916 BGP RECV flags 0x40 code ASPath(2): 65222 10 67 60
Mar 13 10:44:10.074922 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.074928 BGP RECV 141.233.211.192/26
Mar 13 10:44:10.074940 bgp_rcv_nlri: 141.233.211.192/26
Mar 13 10:44:10.074957
Mar 13 10:44:10.074957 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.074966 BGP RECV message type 2 (Update) length 52
Mar 13 10:44:10.074971 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.074978 BGP RECV flags 0x40 code ASPath(2): 65222 10 29 60
Mar 13 10:44:10.074984 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.074990 BGP RECV 143.233.211.192/26
Mar 13 10:44:10.075003 bgp_rcv_nlri: 143.233.211.192/26
Mar 13 10:44:10.075019
Mar 13 10:44:10.075019 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:44:10.075028 BGP RECV message type 2 (Update) length 52
Mar 13 10:44:10.075033 BGP RECV flags 0x40 code Origin(1): IGP
Mar 13 10:44:10.075040 BGP RECV flags 0x40 code ASPath(2): 65222 10 21 60
Mar 13 10:44:10.075046 BGP RECV flags 0x40 code NextHop(3): 172.16.0.14
Mar 13 10:44:10.075052 BGP RECV 139.233.211.192/26
Mar 13 10:44:10.075064 bgp_rcv_nlri: 139.233.211.192/26
Mar 13 10:44:10.075090 bgp_read_v4_message: done with 172.16.0.14 (External AS 65222) received 449 octets 7 updates 24 routes //一共收到7个更新,24条路由。其中AS-PATH相同的路由被打包发送。
路由撤销消息,则是单个更新,一次发送
ar 13 10:49:02.688581 BGP RECV 172.16.0.14+61098 -> 172.16.0.13+179
Mar 13 10:49:02.688609 BGP RECV message type 2 (Update) length 148
Mar 13 10:49:02.688614 BGP RECV Unreachable prefix data length 125
Mar 13 10:49:02.688628 BGP RECV 150.233.211.128/25 , 151.233.211.192/26 , 152.233.211.192/26 , 153.233.211.192/26
Mar 13 10:49:02.688638 BGP RECV 140.233.211.192/26 , 141.233.211.192/26 , 142.233.211.192/26 , 143.233.211.192/26
Mar 13 10:49:02.688648 BGP RECV 144.233.211.192/26 , 145.233.211.192/26 , 146.233.211.192/26 , 147.233.211.192/26
Mar 13 10:49:02.688658 BGP RECV 148.233.211.192/26 , 149.233.211.192/26 , 130.233.211.192/26 , 131.233.211.192/26
Mar 13 10:49:02.688692 BGP RECV 132.233.211.192/26 , 133.233.211.192/26 , 134.233.211.192/26 , 135.233.211.192/26
Mar 13 10:49:02.688702 BGP RECV 136.233.211.192/26 , 137.233.211.192/26 , 138.233.211.192/26 , 139.233.211.192/26
Mar 13 10:49:02.688708 BGP RECV 129.233.211.192/26
Mar 13 10:49:02.688898 bgp_read_v4_message: done with 172.16.0.14 (External AS 65222) received 148 octets 1 update 0 routes