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