TCP建立后哪个BGP对等体先发送open消息?

网络工程 路由 bgp 协议理论
2021-07-21 17:43:24

在两个 bgp 对等体之间建立 Tcp 连接后。哪个对等点将首先发送开放消息?主动对等方(正在发起出站连接)或被动对等方?(正在接受入站连接的对等方)。

还是独立于这种主动被动状态?任何一个peer都可以根据调度发送第一个open消息吗?

在本地路由器发出开放消息之前收到开放消息会发生什么?

有没有好的BGP Peer fsm图?RFC4271 没有 fsm 图 :(

1个回答

哪个对等点将首先发送开放消息?

通常,打开套接字的扬声器发送第一个 OPEN 消息。但实际上并不重要(参考DelayOpen 计时器),因为 BGP 还提供了一种延迟 OPEN 消息的方法,以便对端可以先发送:

    选项 1:延迟打开

    描述:DelayOpen 可选会话属性允许
                 要配置为延迟发送的实现
                 特定时间段的 OPEN 消息
                 (延迟打开时间)。延迟允许远程 BGP
                 Peer 发送第一个 OPEN 消息的时间。

         值:TRUE 或 FALSE

如果两个说话者打开重复的 TCP 会话并同时在每个套接字上发送 OPEN 消息,则 BGP 标识符用于确定应关闭哪个套接字。请参阅RFC 4271,第 6.8 节

6.8. BGP Connection Collision Detection

If a pair of BGP speakers try to establish a BGP connection with each other 
simultaneously, then two parallel connections well be formed. If the source IP address 
used by one of these connections is the same as the destination IP address used by the 
other, and the destination IP address used by the first connection is the same as the 
source IP address used by the other, connection collision has occurred. In the event 
of connection collision, one of the connections MUST be closed.

Based on the value of the BGP Identifier, a convention is established for detecting 
which BGP connection is to be preserved when a collision occurs. The convention is to 
compare the BGP Identifiers of the peers involved in the collision and to retain only 
the connection initiated by the BGP speaker with the higher-valued BGP Identifier. 

有没有好的BGP Peer fsm图?

维基百科有这个简化的 BGP FSM