RFC 1771定义AS_PATH的路径属性类型,如下所示:
AS_PATH (Type Code 2):
AS_PATH is a well-known mandatory attribute that is composed
of a sequence of AS path segments. Each AS path segment is
represented by a triple <path segment type, path segment
length, path segment value>.
The path segment type is a 1-octet long field with the
following values defined:
Value Segment Type
1 AS_SET: unordered set of ASs a route in the
UPDATE message has traversed
2 AS_SEQUENCE: ordered set of ASs a route in
the UPDATE message has traversed
使用AS_SEQUENCE的AS_PATH类型对我来说非常有意义:您最终获得了要交叉到特定前缀的ASN的反向列表。
但是,我不知道在您和选择使用AS_SET的AS_PATH时会出现的前缀之间具有无序的ASN列表的目的是什么。
上面的引用来自UPDATE消息格式,因此,大概管理员可以选择向BGP对等方发送有序列表或无序列表。那么我的问题是,发送无序列表的目的是什么?在什么情况下,发送无序列表而不是有序列表会更好?