Get the App
SLTechnology News&Howtos  ›  Network Security  › 

BGP's latest AS number: 4-byte-as conversion to decimal and AS number compatibility

Shulou Source: shulou.com Published: 2022-06-01 03:55:56 10月06日 Update

The AS number can be made into dotted decimal like the IP address. If you use the 4-byte AS number bgp 255.255, how to convert it to decimal

First convert 255.255 to hexadecimal: FF.FF

Second, convert it to 4 bytes and remove the middle point: 00FF.00FF = 0x00FF00FF

Finally change it to decimal system: 0x00FF00FF = 16711935

So bgp 255.255 = bgp 16711935, other AS numbers are similar

The following is AS number compatibility:

When the party that supports 4-byte-as sees my as = 23456, it goes to find the real AS number under optional parameters.

When the party that does not support 4-byte-as sees that my as = 23456, it thinks that the negotiation on AS failed and ends by sending notification.

Both parties can negotiate successfully regardless of whether or not the two parties support capability-advertise 4, by by, as, as, between 0 and 65535.

You can also manually turn off the 4-byte-as capability:

Undo peer 2.2.2.2 capability-advertise 4-byte-as

Maybe the time relationship is inaccurate in some places. I hope I can correct it.

Tags: Decimal decimal support one side both sides byte negotiation compatibility success hexadecimal address place manual time capability faceted Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology Xiaomi NVidia Linux