• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C 中低端以太网交换机 可靠性典型配置指导-6W100

03-DLDP典型配置指导

本章节下载 03-DLDP典型配置指导  (180.44 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/CE3000/CE3000-EI/Configure/Typical_Configuration_Example/H3C_KKX_CG-6W100/201111/733144_30005_0.htm

03-DLDP典型配置指导


1 DLDP典型配置指导

1.1  DLDP简介

在实际组网中,有时会出现一种特殊的现象——单向链路(即单通)。所谓单向链路是指本端设备可以通过链路层收到对端设备发送的报文,但对端设备不能收到本端设备的报文。单向链路会引起一系列问题,比如生成树拓扑中存在环路等。

以光纤连接为例,单向链路可分为两种类型:一种是光纤交叉相连,另一种是一条光纤未连接或一条光纤断路。如图1-1所示,是正确的光纤连接与上述两种类型单向连接的对比示意。

图1-1 正确与错误的光纤连接对比

 

DLDP(Device Link Detection Protocol,设备链路检测协议)可以监控光纤或铜质双绞线的链路状态。如果发现单向链路存在,DLDP会根据用户配置,自动关闭或通知用户手工关闭相关端口,以防止网络问题的发生。

DLDP是链路层协议,它与物理层协议协同工作来监控设备的链路状态。物理层的自动协商机制进行物理信号和故障的检测;DLDP进行对端设备的识别、单向链路的识别和关闭不可达端口等工作。二者协同工作,可以检测和关闭物理和逻辑的单向连接。如果链路两端在物理层都能独立正常工作,DLDP会在链路层检测这些链路是否正确连接、两端是否可以正确的交互报文。这种检测不能通过物理层的自动协商机制实现。

1.2  DLDP检测并自动关闭单向链路典型配置指导

1.2.1  组网图

图1-2 DLDP检测并自动关闭单向链路典型配置组网图

 

1.2.2  应用要求

l              Device A和Device B各自的端口Gigabitethernet1/0/49和Gigabitethernet1/0/50之间分别通过一对光纤进行连接。

l              要求通过配置,使DLDP检测到单向链路故障后自动关闭故障端口,并在网络管理员排除故障后,故障端口能够自动恢复。

1.2.3  适用产品、版本

表1-1 配置适用的产品与软硬件版本关系

产品

软件版本

S7500E系列以太网交换机

Release 6300系列,Release 6600系列,Release 6610系列

S7600系列以太网交换机

Release 6600系列,Release 6610系列

S5800&S5820X系列以太网交换机

Release 1110,Release 1211

CE3000-32F以太网交换机

Release 1211

S5810系列以太网交换机

Release 1102

S5500-EI系列以太网交换机

Release 2202,Release 2208

S5500-EI-D系列以太网交换机

Release 2208

S5500-SI系列以太网交换机

Release 2202,Release 2208

S5120-EI系列以太网交换机

Release 2202,Release 2208

S5120-EI-D系列以太网交换机

Release 1505

S5120-SI系列以太网交换机

Release 1505

S3610&S5510系列以太网交换机

Release 5301,Release 5303,Release 5306,Release 5309

S3500-EA系列以太网交换机

Release 5303,Release 5309

S3100V2系列以太网交换机

Release 5103

E126B以太网交换机

Release 5103

 

1.2.4  配置过程和解释

(1)        配置Device A

# 全局使能DLDP功能。

<DeviceA> system-view

[DeviceA] dldp enable

# 在端口GigabitEthernet1/0/49和GigabitEthernet1/0/50上配置双工模式为全双工、端口速率为1000Mbps,并使能DLDP功能。

[DeviceA] interface gigabitethernet 1/0/49

[DeviceA-GigabitEthernet1/0/49] duplex full

[DeviceA-GigabitEthernet1/0/49] speed 1000

[DeviceA-GigabitEthernet1/0/49] dldp enable

[DeviceA-GigabitEthernet1/0/49] quit

[DeviceA] interface gigabitethernet 1/0/50

[DeviceA-GigabitEthernet1/0/50] duplex full

[DeviceA-GigabitEthernet1/0/50] speed 1000

[DeviceA-GigabitEthernet1/0/50] dldp enable

[DeviceA-GigabitEthernet1/0/50] quit

# 配置DLDP的工作模式为加强模式,在此模式下,系统可以识别光纤交叉连接和一条光纤未连接或断路这两种类型的单向链路。(可选,缺省情况下工作在普通模式,此时系统只能识别光纤交叉连接这一种类型的单向链路。)

[DeviceA] dldp work-mode enhance

# 配置发现单向链路后端口的关闭模式为自动模式,该模式下,当DLDP协议检测到单通时,除了DLDP状态机迁移到Disable状态并输出Log和Trap信息外,还会自动将端口的状态设置为DLDP Down(可选,缺省情况下发现单向链路后端口的关闭模式为自动模式)。

[DeviceA] dldp unidirectional-shutdown auto

(2)        配置Device B

Device B上的配置与Device A上的配置完全一致,此处不再赘述。

(3)        检验配置效果

配置完成后,通过使用display dldp命令可以查看端口上的DLDP配置信息。例如:

# 查看Device A所有使能了DLDP的端口上的DLDP配置信息。

[DeviceA] display dldp

 DLDP global status : enable

 DLDP interval : 5s

 DLDP work-mode : enhance

 DLDP authentication-mode : none

 DLDP unidirectional-shutdown : auto

 DLDP delaydown-timer : 1s

 The number of enabled ports is 2.

 

Interface GigabitEthernet1/0/49

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

         Neighbor mac address : 0023-8956-3600

         Neighbor port index : 59

         Neighbor state : two way

         Neighbor aged time : 11

 

Interface GigabitEthernet1/0/50

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

         Neighbor mac address : 0023-8956-3600

         Neighbor port index : 60

         Neighbor state : two way

         Neighbor aged time : 12

由此可见,端口GigabitEthernet1/0/49和GigabitEthernet1/0/50上的DLDP状态机均处于Advertisement状态,表明这两个端口所在的链路均处于双通状态。

# 在Device A上打开系统信息监视功能,并分别打开Log和Trap信息的显示功能。

[DeviceA] quit

<DeviceA> terminal monitor

<DeviceA> terminal logging

<DeviceA> terminal trapping

如果连接Device A和Device B的两对光纤被错误地进行了交叉连接,则网络管理员会在Device A上看到如下Log和Trap信息:

<DeviceA>

#Jan 18 17:36:18:798 2010 DeviceA DLDP/1/TrapOfUnidirectional: -Slot=1; Trap 1.3.6.1.4.1.25506.2.43.2.1.1<hh3cDLDPUnidirectionalPort> : DLDP detects a unidirectional link in port 17825792.

 

%Jan 18 17:36:18:799 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/49 link status is DOWN.

%Jan 18 17:36:18:799 2010 DeviceA DLDP/3/DLDP_UNIDIRECTION_AUTO: -Slot=1; DLDP detects a unidirectional link on port GigabitEthernet1/0/49. The transceiver has malfunction in the Tx direction or cross-connected links exist between the local device and its neighbor. The shutdown mode is AUTO. DLDP shuts down the port.

#Jan 18 17:36:20:189 2010 DeviceA DLDP/1/TrapOfUnidirectional: -Slot=1; Trap 1.3.6.1.4.1.25506.2.43.2.1.1<hh3cDLDPUnidirectionalPort> : DLDP detects a unidirectional link in port 17825793.

 

%Jan 18 17:36:20:189 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/50 link status is DOWN.

%Jan 18 17:36:20:190 2010 DeviceA DLDP/3/DLDP_UNIDIRECTION_AUTO: -Slot=1; DLDP detects a unidirectional link on port GigabitEthernet1/0/50. The transceiver has malfunction in the Tx direction or cross-connected links exist between the local device and its neighbor. The shutdown mode is AUTO. DLDP shuts down the port.

 

%Jan 15 16:54:56:040 2010 DeviceA DLDP/3/DLDP_UNIDIRECTION_AUTO_ENHANCE: -Slot=1; In enhanced DLDP mode, port GigabitEthernet1/0/49 cannot detect its aged-out neighbor. The transceiver has malfunction in the Tx direction or cross-connected links exist between the local device and its neighbor. The shutdown mode is AUTO. DLDP shuts down the port.

上述信息表明,端口GigabitEthernet1/0/49和GigabitEthernet1/0/50的链路状态均已变为down;DLDP在这两个端口上都检测到了单向链路,并自动关闭了这两个端口。

网络管理员将这两对光纤重新进行正确连接后,在设备上可以看到如下Log信息:

<DeviceA>

%Jan 18 17:47:33:869 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/49 link status is UP.

%Jan 18 17:47:35:894 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/50 link status is UP.

上述信息表明,端口GigabitEthernet1/0/49和GigabitEthernet1/0/50的链路状态均已重新变为up。

1.2.5  完整配置

l              Device A

#

 dldp enable

 dldp work-mode enhance

#

interface GigabitEthernet1/0/49

 speed 1000

 duplex full

 dldp enable

#

interface GigabitEthernet1/0/50

 speed 1000

 duplex full

 dldp enable

#

l              Device B

Device B上的完整配置与Device A完全一致,此处不再赘述。

1.2.6  配置注意事项

l              只能在以太网端口(包括光口和电口)上使能DLDP功能。

l              DLDP功能只有在物理链路连通后才会起作用,因此在使能DLDP之前,请连接好光纤或铜质双绞线。

l              请确保两端设备上运行的DLDP版本一致,否则DLDP的运行可能出现问题。

l              为确保DLDP能够正常工作,需要将两端端口的双工模式都配置为全双工模式,速率都配置为相同的强制速率。

l              为确保DLDP能够正常工作,要保证两端设备的DLDP功能都处于使能状态,且发送Advertisement报文的时间间隔、DLDP报文的认证方式及口令都相同。

l              DLDP不会处理任何LACP(Link Aggregation Control Protocol,链路聚合控制协议)事件,DLDP会将端口聚合组中的每条链路都视为独立的链路进行处理。

l              如果欲在端口上配置OAM远端环回,建议先将发现单向链路后端口的关闭模式配置为手动模式,否则DLDP收到了由本端口发出的报文后会认为出现单向链路而自动关闭端口,从而导致OAM远端环回失效。

l              当设备业务量较大或CPU利用率较高时,可能会出现DLDP误报的情况。此时建议将发现单向链路后端口的关闭模式配置为手动模式,以减小由于DLDP误报而造成的影响。

1.3  DLDP检测并通知用户手动关闭单向链路典型配置指导

1.3.1  组网图

图1-3 DLDP检测并通知用户手动关闭单向链路典型配置组网图

 

1.3.2  应用要求

l              Device A和Device B各自的端口Gigabitethernet1/0/49和Gigabitethernet1/0/50之间分别通过一对光纤进行连接。

l              要求通过配置,使DLDP检测到单向链路故障后,提示网络管理员手工关闭故障端口。

1.3.3  适用产品、版本

表1-2 配置适用的产品与软硬件版本关系

产品

软件版本

S7500E系列以太网交换机

Release 6300系列,Release 6600系列,Release 6610系列

S7600系列以太网交换机

Release 6600系列,Release 6610系列

S5800&S5820X系列以太网交换机

Release 1110,Release 1211

CE3000-32F以太网交换机

Release 1211

S5810系列以太网交换机

Release 1102

S5500-EI系列以太网交换机

Release 2202,Release 2208

S5500-EI-D系列以太网交换机

Release 2208

S5500-SI系列以太网交换机

Release 2202,Release 2208

S5120-EI系列以太网交换机

Release 2202,Release 2208

S5120-EI-D系列以太网交换机

Release 1505

S5120-SI系列以太网交换机

Release 1505

S3610&S5510系列以太网交换机

Release 5301,Release 5303,Release 5306,Release 5309

S3500-EA系列以太网交换机

Release 5303,Release 5309

S3100V2系列以太网交换机

Release 5103

E126B以太网交换机

Release 5103

 

1.3.4  配置过程和解释

(1)        配置Device A

# 全局使能DLDP功能。

<DeviceA> system-view

[DeviceA] dldp enable

# 在端口GigabitEthernet1/0/49和GigabitEthernet1/0/50上配置双工模式为全双工、端口速率为1000Mbps,并使能DLDP功能。

[DeviceA] interface gigabitethernet 1/0/49

[DeviceA-GigabitEthernet1/0/49] duplex full

[DeviceA-GigabitEthernet1/0/49] speed 1000

[DeviceA-GigabitEthernet1/0/49] dldp enable

[DeviceA-GigabitEthernet1/0/49] quit

[DeviceA] interface gigabitethernet 1/0/50

[DeviceA-GigabitEthernet1/0/50] duplex full

[DeviceA-GigabitEthernet1/0/50] speed 1000

[DeviceA-GigabitEthernet1/0/50] dldp enable

[DeviceA-GigabitEthernet1/0/50] quit

# 配置DLDP的工作模式为加强模式,在此模式下,系统可以识别光纤交叉连接和一条光纤未连接或断路这两种类型的单向链路。(可选,缺省情况下工作在普通模式,此时系统只能识别光纤交叉连接这一种类型的单向链路。)

[DeviceA] dldp work-mode enhance

# 配置发现单向链路后端口的关闭模式为手动模式,该模式下,当DLDP检测到单通时,DLDP状态机只输出Log和Trap信息,建议此时用户使用shutdown命令手工关闭此端口,然后DLDP状态机才会迁移到Disable状态。

[DeviceA] dldp unidirectional-shutdown manual

(2)        配置Device B

Device B上的配置与Device A上的配置完全一致,此处不再赘述。

(3)        检验配置效果

配置完成后,通过使用display dldp命令可以查看端口上的DLDP配置信息。例如:

# 查看Device A所有使能了DLDP的端口上的DLDP配置信息。

[DeviceA] display dldp

 DLDP global status : enable

 DLDP interval : 5s

 DLDP work-mode : enhance

 DLDP authentication-mode : none

 DLDP unidirectional-shutdown : manual

 DLDP delaydown-timer : 1s

 The number of enabled ports is 2.

 

Interface GigabitEthernet1/0/49

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

         Neighbor mac address : 0023-8956-3600

         Neighbor port index : 59

         Neighbor state : two way

         Neighbor aged time : 11

 

Interface GigabitEthernet1/0/50

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

         Neighbor mac address : 0023-8956-3600

         Neighbor port index : 60

         Neighbor state : two way

         Neighbor aged time : 12

由此可见,端口GigabitEthernet1/0/49和GigabitEthernet1/0/50上的DLDP状态机均处于Advertisement状态,表明这两个端口所在的链路均处于双通状态。

# 在Device A上打开系统信息监视功能,并分别打开Log和Trap信息的显示功能。

[DeviceA] quit

<DeviceA> terminal monitor

<DeviceA> terminal logging

<DeviceA> terminal trapping

如果连接Device A和Device B的两对光纤被错误地进行了交叉连接,则网络管理员会在Device A上看到如下Log和Trap信息:

<DeviceA>

#Jan 18 18:10:38:481 2010 DeviceA DLDP/1/TrapOfUnidirectional: -Slot=1; Trap 1.3.6.1.4.1.25506.2.43.2.1.1<hh3cDLDPUnidirectionalPort> : DLDP detects a unidirectional link in port 17825792.

 

%Jan 18 18:10:38:481 2010 DeviceA DLDP/3/DLDP_UNIDIRECTION_MANUAL: -Slot=1; DLDP detects a unidirectional link on port GigabitEthernet1/0/49. The transceiver has malfunction in the Tx direction or cross-connected links exist between the local device and its neighbor. The shutdown mode is MANUAL. The port needs to be shut down by the user.

#Jan 18 18:10:38:618 2010 DeviceA DLDP/1/TrapOfUnidirectional: -Slot=1; Trap 1.3.6.1.4.1.25506.2.43.2.1.1<hh3cDLDPUnidirectionalPort> : DLDP detects a unidirectional link in port 17825793.

 

%Jan 18 18:10:38:618 2010 DeviceA DLDP/3/DLDP_UNIDIRECTION_MANUAL: -Slot=1; DLDP detects a unidirectional link on port GigabitEthernet1/0/50. The transceiver has malfunction in the Tx direction or cross-connected links exist between the local device and its neighbor. The shutdown mode is MANUAL. The port needs to be shut down by the user.

以上信息表明,DLDP在端口GigabitEthernet1/0/49和GigabitEthernet1/0/50上都检测到了单向链路,并提示用户手工关闭故障端口。

经过网络管理员排查,发现连接Device A和Device B的两对光纤被错误地进行了交叉连接。于是,网络管理员将故障端口手工关闭:

# 在Device A上分别关闭端口GigabitEthernet1/0/49和GigabitEthernet1/0/50,并看到如下Log信息:

<DeviceA> system-view

[DeviceA] interface gigabitethernet 1/0/49

[DeviceA-GigabitEthernet1/0/49] shutdown

%Jan 18 18:16:12:044 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/49 link status is DOWN.

[DeviceA-GigabitEthernet1/0/49] quit

[DeviceA] interface gigabitethernet 1/0/50

[DeviceA-GigabitEthernet1/0/50] shutdown

%Jan 18 18:18:03:583 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/50 link status is DOWN.

以上信息表明,端口GigabitEthernet1/0/49和GigabitEthernet1/0/50的链路状态均已变为down。

然后,网络管理员将连接Device A和Device B的两对光纤重新进行了正确连接。检查无误后,网络管理员将已排除故障的端口重新打开:

# 在Device A上分别打开端口GigabitEthernet1/0/50和GigabitEthernet1/0/49,并看到如下Log信息:

[DeviceA-GigabitEthernet1/0/50] undo shutdown

[DeviceA-GigabitEthernet1/0/50]

%Jan 18 18:22:11:698 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/50 link status is UP.

[DeviceA-GigabitEthernet1/0/50] quit

[DeviceA] interface gigabitethernet 1/0/49

[DeviceA-GigabitEthernet1/0/49] undo shutdown

[DeviceA-GigabitEthernet1/0/49]

%Jan 18 18:22:46:065 2010 DeviceA IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/49 link status is UP.

以上信息表明,端口GigabitEthernet1/0/49和GigabitEthernet1/0/50的链路状态均已重新变为up。

1.3.5  完整配置

l              Device A

#

 dldp enable

 dldp work-mode enhance

 dldp unidirectional-shutdown manual

#

interface GigabitEthernet1/0/49

 speed 1000

 duplex full

 dldp enable

#

interface GigabitEthernet1/0/50

 speed 1000

 duplex full

 dldp enable

#

l              Device B

Device B上的完整配置与Device A完全一致,此处不再赘述。

1.3.6  配置注意事项

l              只能在以太网端口(包括光口和电口)上使能DLDP功能。

l              DLDP功能只有在物理链路连通后才会起作用,因此在使能DLDP之前,请连接好光纤或铜质双绞线。

l              为确保DLDP能够正常工作,需要将两端端口的双工模式都配置为全双工模式,速率都配置为相同的强制速率。

l              为确保DLDP能够正常工作,要保证两端设备的DLDP功能都处于使能状态,且发送Advertisement报文的时间间隔、DLDP报文的认证方式及口令都相同。

l              请确保两端设备上运行的DLDP版本一致,否则DLDP的运行可能出现问题。

l              DLDP不会处理任何LACP(Link Aggregation Control Protocol,链路聚合控制协议)事件,DLDP会将端口聚合组中的每条链路都视为独立的链路进行处理。

l              如果欲在端口上配置OAM远端环回,建议先将发现单向链路后端口的关闭模式配置为手动模式,否则DLDP收到了由本端口发出的报文后会认为出现单向链路而自动关闭端口,从而导致OAM远端环回失效。

l              当设备业务量较大或CPU利用率较高时,可能会出现DLDP误报的情况。此时建议将发现单向链路后端口的关闭模式配置为手动模式,以减小由于DLDP误报而造成的影响。

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们