Modem 和 BNG 之间建立 PPPoE 会话后谁发起 PPP Keepalives?

网络工程 路由器 pppoe 广告 公私合营 调制解调器
2022-02-08 13:59:51

大家好,

在 DSL Modem 的情况下,服务提供商通常在 Modem 和 BRAS (BNG) 之间使用 PPPoE 连接。我们都知道,Modem 拨号时,会经过 PPPoE 阶段,即 1) PADI 2) PADO 3) PADR 和 4) PADS。

PPPoE 会话建立后,PPP 会话开始建立,它经历了 PPP 阶段,即 1) LCP 2) PAP 或 CHAP 和 3) NCP。

PPP会话建立后,Modem从BRAS获取动态IP,用户开始浏览。然而,对于会话维护/内务管理,PPP keepalives 在预先定义的时间间隔后在调制解调器和 BRAS 之间交换。

请注意,这是独立于供应商的查询,并且与通常所有供应商都遵循的标准实施有关。

The question is Who initiates the PPP keepalives packets? 

以下是三种可能

  1. 是modem发起BRAS应答还是BRAS发起modem应答?

  2. 是不是调制解调器和 BRAS 都相互独立地发送 PPP keepalives 数据包?BRAS 将 PPP keepalives 数据包发送到调制解调器并等待应答。同样,Modem 向 BRAS 发送 PPP keepalive 数据包并等待应答。

如果可能,请分享支持论点的书面证明(标准)。

非常感谢

1个回答

RFC 1661 状态:

"5.8. Echo-Request 和 Echo-Reply

描述

  LCP includes Echo-Request and Echo-Reply Codes in order to provide
  a Data Link Layer loopback mechanism for use in exercising both
  directions of the link.  This is useful as an aid in debugging,
  link quality determination, performance testing, and for numerous
  other functions.

  Upon reception of an Echo-Request in the LCP Opened state, an
  Echo-Reply MUST be transmitted.

  Echo-Request and Echo-Reply packets MUST only be sent in the LCP
  Opened state.  Echo-Request and Echo-Reply packets received in any
  state other than the LCP Opened state SHOULD be silently
  discarded. "

没有行业标准谁发起回显请求以及在什么时间间隔。它取决于硬件/软件/配置变量。一些调制解调器/路由器默认每 30 秒检查一次,有些则每 60 秒检查一次。它从双方发起并运行彼此独立的间隔。有些使用智能算法进行检查,例如接口数据计数器。