The Four Categories of BGP Path Attributes
At 04:06 UTC this morning we asked the RouteViews collector at the University of Oregon for the route to 1.1.1.0/24. The best path came through AS 57866, and under the usual Origin IGP, metric 0, localpref 100 line the router printed something less usual: unknown transitive attribute: flag 0xE0 type 0x20 length 0x3C . Type 0x20 is 32, the Large Community attribute standardised in 2017. This router does not implement it, yet it still accepted the route and kept the 60 unknown bytes. That works because of one byte that comes before every attribute. BGP path attributes are the data BGP uses to describe a route and to choose between routes, and their four categories decide what a router must do with an attribute it has never seen. This is part 5 of our 26-part BGP Deep Dive and the overview for the ten attribute articles that follow. It covers the four categories, the flags byte bit by bit, the type codes, the error rules of RFC 4271 and RFC 7606, a GoBGP lab in which we sent known, u...