[go: up one dir, main page]

CN103441940B - The network equipment is by the switching method, device and the network equipment for state to major state - Google Patents

The network equipment is by the switching method, device and the network equipment for state to major state Download PDF

Info

Publication number
CN103441940B
CN103441940B CN201310386013.2A CN201310386013A CN103441940B CN 103441940 B CN103441940 B CN 103441940B CN 201310386013 A CN201310386013 A CN 201310386013A CN 103441940 B CN103441940 B CN 103441940B
Authority
CN
China
Prior art keywords
layer
state
network
layer network
layers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310386013.2A
Other languages
Chinese (zh)
Other versions
CN103441940A (en
Inventor
张耀坤
赵全喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shangge Intellectual Property Service Co ltd
Tongding Interconnection Information Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310386013.2A priority Critical patent/CN103441940B/en
Publication of CN103441940A publication Critical patent/CN103441940A/en
Application granted granted Critical
Publication of CN103441940B publication Critical patent/CN103441940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

一种网络设备由备状态到主状态的切换方法、装置及网络设备,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备和第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,该方法包括:接收到TC报文后,将所述第二三层网络设备由备状态切换为备升主延时状态;若在第一设定时间内未接收到所述三层保护协议的心跳报文,将所述第二三层网络设备由备升主延时状态切换为主状态。该方案可以避免备状态的第二三层网络设备误切换为主状态。

A method, device, and network equipment for switching network equipment from a standby state to a main state, which are applied to a network including a three-layer network and a two-layer ring network. The first three-layer network equipment and the second-layer network equipment in the three-layer network The second and third layer network devices are connected to the second layer network devices in the second layer ring network, and run the third layer protection protocol, the first and third layer network devices are in the master state, and the second and third layer network devices are in the standby state, The method includes: after receiving the TC message, switching the second layer-3 network device from the standby state to the backup main delay state; A heartbeat message, switching the second and third layer network equipment from the backup to the main delay state to the main state. This solution can prevent the second and third layer network devices in the standby state from switching to the master state by mistake.

Description

网络设备由备状态到主状态的切换方法、装置及网络设备Method and device for switching network equipment from standby state to main state, and network equipment

技术领域technical field

本发明涉及通信技术领域,尤指一种网络设备由备状态到主状态的切换方法、装置及网络设备。The invention relates to the technical field of communication, in particular to a method and device for switching network equipment from a standby state to a main state, and the network equipment.

背景技术Background technique

随着互联网技术的发展和网络应用的普及,上网用户的数量呈阶梯式增长,城域网(Metropolitan Area Network,MAN)应运而生,MAN一般为树状或环状结构,二层网络和三层网络分开。如图1所示为环状MAN的示意图,网络设备10、11为MAN的出口节点,为三层网络设备,网络设备10和11上部署三层保护协议,例如虚拟路由冗余协议(Virtual RouterRedundancy Protocol,VRRP)、协议无关组播(Protocol Independent Multicast,PIM)等等;二层环网接入网络设备10、11,二层环网由节点12-17组成,节点12-17为二层网络设备,二层环网中部署多生成树协议(Multiple Spanning Tree Protocol,MSTP)等破环协议,VRRP、PIM等三层保护协议的心跳报文可以在二层环网中穿越,网络设备10为主状态,网络设备11为备状态。With the development of Internet technology and the popularization of network applications, the number of Internet users is increasing step by step, and the Metropolitan Area Network (MAN) emerges as the times require. MAN generally has a tree or ring structure. The layer network is separated. As shown in Figure 1, it is a schematic diagram of a ring-shaped MAN. Network devices 10 and 11 are egress nodes of the MAN, which are layer-3 network devices. Layer-3 protection protocols are deployed on network devices 10 and 11, such as virtual router redundancy protocols (Virtual Router Redundancy Protocol, VRRP), Protocol Independent Multicast (Protocol Independent Multicast, PIM), etc.; Layer 2 ring network access network devices 10, 11, Layer 2 ring network is composed of nodes 12-17, nodes 12-17 are Layer 2 networks For devices, multiple spanning tree protocols (Multiple Spanning Tree Protocol, MSTP) and other ring-breaking protocols are deployed in the layer-2 ring network. Heartbeat packets of layer-3 protection protocols such as VRRP and PIM can traverse the layer-2 ring network. The network device 10 is In the master state, the network device 11 is in the standby state.

二层网络成环且部署MSTP保护,能够起到很好的保护作用。当二层环网中单链路故障时,网络设备10发送的三层保护协议的心跳报文可以到达网络设备11,不必触发网络设备的主备状态切换;当二层环网中出现双点故障时,网络设备10发送的三层保护协议的心跳报文无法到达网络设备11,网络设备11从备状态切换为主状态,这时就会出现双主网络设备的情形,二层环网中的部分节点的流量可以从网络设备11转发。当用户对业务可靠性收敛要求较高时,三层网络协议会部署双向会话检测(Bidirectional ForwardingDetection,BFD),从而在出现双点故障时能够进行快速检测。Layer 2 network forms a loop and deploys MSTP protection, which can play a good role in protection. When a single link fails in the layer 2 ring network, the heartbeat message of the layer 3 protection protocol sent by the network device 10 can reach the network device 11 without triggering the active/standby state switchover of the network device; When a fault occurs, the heartbeat message of the layer-3 protection protocol sent by the network device 10 cannot reach the network device 11, and the network device 11 switches from the standby state to the master state. At this time, a dual-master network device situation will occur. The traffic of some nodes can be forwarded from the network device 11. When users have high requirements for service reliability and convergence, the Layer 3 network protocol will deploy bidirectional session detection (Bidirectional Forwarding Detection, BFD), so as to quickly detect the occurrence of dual-point failures.

并不是二层环网中所有的单链路故障都能满足客户的要求。如图2所示,假设,节点12为根桥,节点13为备份根桥,阻塞端口在节点16连接节点17的接口上,故障1发生后,阻塞端口放开,理论上网络设备10的三层保护协议的心跳报文和BFD报文仍有链路可达,但实际上很有可能造成网络设备11从备状态误切换为主状态。Not all single-link faults in the Layer 2 ring network can meet customer requirements. As shown in Figure 2, it is assumed that node 12 is the root bridge, node 13 is the backup root bridge, and the blocked port is on the interface connecting node 16 to node 17. After fault 1 occurs, the blocked port is released. In theory, three network devices 10 The heartbeat message and the BFD message of the layer protection protocol still have a reachable link, but in fact it is very likely to cause the network device 11 to switch from the standby state to the main state by mistake.

目前可以通过调整网络设备中BFD的检测时间来避免这种误切换的发生,将BFD的检测时间设置为经验值,来保证二层环网单链路故障时BFD不感知,而双点故障能感知。将BFD的检测时间设置为经验值,往往并不可靠。若BFD的检测时间设置过短,就会存在单链路故障时备状态的网络设备误切换的风险;若BFD的检测时间设置过长,在二层环网中出现双点故障或主状态的网络设备故障时备状态的网络设备切换的时间就会拉长,影响用户的体验。At present, you can avoid such false switching by adjusting the detection time of BFD in the network equipment. Set the detection time of BFD as an empirical value to ensure that BFD does not detect the failure of a single link on the Layer 2 ring network, and that double-point failures can perception. It is often unreliable to set the detection time of BFD as an empirical value. If the BFD detection time is set too short, there will be a risk of a network device in the standby state switching over by mistake when a single link fails; if the BFD detection time is set too long, double-point faults or active state When a network device fails, it takes longer to switch the network device in the standby state, which affects user experience.

发明内容Contents of the invention

本发明实施例提供一种网络设备由备状态到主状态的切换方法、装置及网络设备,用以减少备状态的网络设备误切换的问题。Embodiments of the present invention provide a method and device for switching a network device from a standby state to a master state, and a network device, so as to reduce the problem of wrong switching of the network device in the standby state.

第一方面,提供一种网络设备由备状态到主状态的切换方法,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述三层网络中的第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,所述方法包括:In the first aspect, a method for switching a network device from a standby state to a master state is provided, which is applied to a network including a layer-3 network and a layer-2 ring network, and the first layer-3 network device in the layer-3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run a Layer 3 protection protocol, the second Layer 3 network equipment in the Layer 3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run Layer 3 Protection protocol, the first layer-3 network device is in the master state, and the second layer-3 network device is in the standby state, the method includes:

接收到拓扑变化TC报文后,将所述第二三层网络设备由备状态切换为备升主延时状态;After receiving the topology change TC message, switch the second and third-layer network equipment from the standby state to the standby upgrade master delay state;

若在第一设定时间内未接收到所述三层保护协议的心跳报文,将所述第二三层网络设备由备升主延时状态切换为主状态。If the heartbeat message of the layer-3 protection protocol is not received within the first set time, the second layer-3 network device is switched from the backup master delay state to the master state.

结合第一方面,在第一种可能的实现方式中,所述三层保护协议包括虚拟路由冗余协议VRRP和/或协议无关组播PIM。With reference to the first aspect, in a first possible implementation manner, the layer-3 protection protocol includes a virtual routing redundancy protocol VRRP and/or protocol independent multicast PIM.

结合第一方面或者第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述TC报文是所述二层环网的边缘端口发送的;或者In combination with the first aspect or the first possible implementation of the first aspect, in the second possible implementation, the TC message is sent by an edge port of the layer-2 ring network; or

所述TC报文是阻塞端口发送的;或者The TC message is sent by a blocked port; or

所述TC报文是由断开DOWN状态变为正常UP状态的端口发送的。The TC message is sent by a port that is turned off from a DOWN state to a normal UP state.

结合第一方面、第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方式,在第三种可能的实现方式中,将所述第二三层网络设备由备状态切换为备升主延时状态之后,还包括:In combination with the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the second layer-3 network device is After the state is switched to the backup master delay state, it also includes:

若接收到所述三层保护协议的心跳报文或者在第二设定时间内双向转发检测BFD的检测结果为UP状态,将所述第二三层网络设备由备升主延时状态切换为备状态。If the heartbeat message of the three-layer protection protocol is received or the detection result of the two-way forwarding detection BFD is in the UP state within the second set time, the second three-layer network equipment is switched from the backup main delay state to ready status.

第二方面,提供一种网络设备由备状态到主状态的切换方法,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述三层网络中的第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,所述方法包括:In the second aspect, a method for switching a network device from a standby state to a master state is provided, which is applied to a network including a layer-3 network and a layer-2 ring network, and the first layer-3 network device in the layer-3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run a Layer 3 protection protocol, the second Layer 3 network equipment in the Layer 3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run Layer 3 Protection protocol, the first layer-3 network device is in the master state, and the second layer-3 network device is in the standby state, the method includes:

在双向转发检测BFD的检测结果为断开DOWN状态而导致所述第二三层网络设备由备状态切换为主状态后,接收到拓扑变化TC报文时,延时执行所述第二三层网络设备处于主状态的操作;After the detection result of the bidirectional forwarding detection BFD is disconnecting the DOWN state and causing the second and third layer network equipment to switch from the standby state to the main state, when receiving a topology change TC message, delay executing the second and third layers Operations where the network device is in the master state;

若在第三设定时间内未接收到所述三层保护协议的心跳报文,执行所述第二三层网络设备处于主状态的操作。If the heartbeat message of the layer-3 protection protocol is not received within the third set time, perform the operation that the second layer-3 network device is in the master state.

结合第二方面,在第一种可能的实现方式中,所述三层保护协议包括虚拟路由冗余协议VRRP和/或协议无关组播PIM。With reference to the second aspect, in a first possible implementation manner, the layer-3 protection protocol includes a virtual routing redundancy protocol VRRP and/or protocol independent multicast PIM.

结合第二方面或者第二方面的第一种可能的实现方式,在第二种可能的实现方式方式中,所述TC报文是所述二层环网的边缘端口发送的;或者With reference to the second aspect or the first possible implementation of the second aspect, in the second possible implementation, the TC message is sent by an edge port of the layer-2 ring network; or

所述TC报文是阻塞端口发送的;或者The TC message is sent by a blocked port; or

所述TC报文是由DOWN状态变为正常UP状态的端口发送的。The TC message is sent by a port whose DOWN state changes to a normal UP state.

结合第二方面、第二方面的第一种可能的实现方式或者第二方面的第二种可能的实现方式,在第三种可能的实现方式中,延时执行所述第二三层网络设备处于主状态的操作之后,还包括:In combination with the second aspect, the first possible implementation of the second aspect, or the second possible implementation of the second aspect, in a third possible implementation, the execution of the second layer-3 network device is delayed After the operation in the main state, also include:

若接收到所述三层保护协议的心跳报文,则将所述第二三层网络设备由主状态切换为备状态。If the heartbeat message of the layer-3 protection protocol is received, the second layer-3 network device is switched from the main state to the standby state.

第三方面,提供一种网络设备由备状态到主状态的切换装置,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述三层网络中的第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,所述装置包括:In the third aspect, there is provided a device for switching a network device from a standby state to a master state, which is applied to a network including a layer-3 network and a layer-2 ring network, and the first layer-3 network device in the layer-3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run a Layer 3 protection protocol, the second Layer 3 network equipment in the Layer 3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run Layer 3 Protection protocol, the first layer-3 network device is in the master state, the second layer-3 network device is in the standby state, and the device includes:

接收单元,用于接收拓扑变化TC报文;A receiving unit, configured to receive a topology change TC message;

切换单元,用于在所述接收单元接收到所述TC报文后,将所述第二三层网络设备由备状态切换为备升主延时状态;以及,若在第一设定时间内所述接收单元未接收到所述三层保护协议的心跳报文,将所述第二三层网络设备由备升主延时状态切换为主状态。A switching unit, configured to switch the second layer-3 network device from the standby state to the standby main delay state after the receiving unit receives the TC message; and, if within the first set time The receiving unit does not receive the heartbeat message of the layer-3 protection protocol, and switches the second layer-3 network device from the backup master delay state to the master state.

结合第三方面,在第一种可能的实现方式中,所述三层保护协议包括虚拟路由冗余协议VRRP和/或协议无关组播PIM。With reference to the third aspect, in a first possible implementation manner, the layer-3 protection protocol includes a virtual routing redundancy protocol VRRP and/or protocol independent multicast PIM.

结合第三方面或者第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述TC报文是所述二层环网的边缘端口发送的;或者In combination with the third aspect or the first possible implementation of the third aspect, in the second possible implementation, the TC message is sent by an edge port of the layer-2 ring network; or

所述TC报文是阻塞端口发送的;或者The TC message is sent by a blocked port; or

所述TC报文是由断开DOWN状态变为正常UP状态的端口发送的。The TC message is sent by a port that is turned off from a DOWN state to a normal UP state.

结合第三方面、第三方面的第一种可能的实现方式或者第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述切换单元,还用于:With reference to the third aspect, the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in the third possible implementation manner, the switching unit is further configured to:

在将所述第二三层网络设备由备状态切换为备升主延时状态之后,若所述接收单元接收到所述三层保护协议的心跳报文或者在第二设定时间内双向转发检测BFD的检测结果为UP状态,将所述第二三层网络设备由备升主延时状态切换为备状态。After the second layer-3 network device is switched from the standby state to the backup master delay state, if the receiving unit receives the heartbeat message of the layer-3 protection protocol or forwards it bidirectionally within the second set time Detecting that the detection result of the BFD is in the UP state, switching the second and third-layer network equipment from the backup to the main delay state to the backup state.

第四方面,提供一种网络设备由备状态到主状态的切换装置,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述三层网络中的第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,所述装置包括:In the fourth aspect, there is provided a device for switching a network device from a standby state to a master state, which is applied to a network including a layer-3 network and a layer-2 ring network, and the first layer-3 network device in the layer-3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run a Layer 3 protection protocol, the second Layer 3 network equipment in the Layer 3 network is connected to the Layer 2 network equipment in the Layer 2 ring network, and run Layer 3 Protection protocol, the first layer-3 network device is in the master state, the second layer-3 network device is in the standby state, and the device includes:

接收单元,用于接收到拓扑变化TC报文;a receiving unit, configured to receive a topology change TC message;

切换单元,用于在双向转发检测BFD的检测结果为断开DOWN状态而导致所述第二三层网络设备由备状态切换为主状态后,所述接收单元接收到所述TC报文时,延时执行所述第二三层网络设备处于主状态的操作;若在第三设定时间内所述接收单元未接收到所述三层保护协议的心跳报文,执行所述第二三层网络设备处于主状态的操作。The switching unit is configured to switch the second layer-3 network device from the standby state to the main state after the detection result of the bidirectional forwarding detection BFD is in the DOWN state, and when the receiving unit receives the TC message, Delaying the operation of the second and third layer network devices being in the master state; if the receiving unit does not receive the heartbeat message of the third layer protection protocol within the third set time, execute the second and third layer An operation in which a network device is in the master state.

结合第四方面,在第一种可能的实现方式中,所述三层保护协议包括虚拟路由冗余协议VRRP和/或协议无关组播PIM。With reference to the fourth aspect, in a first possible implementation manner, the layer-3 protection protocol includes a virtual routing redundancy protocol VRRP and/or protocol independent multicast PIM.

结合第四方面或者第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述TC报文是所述二层环网的边缘端口发送的;或者With reference to the fourth aspect or the first possible implementation of the fourth aspect, in the second possible implementation, the TC message is sent by an edge port of the layer-2 ring network; or

所述TC报文是阻塞端口发送的;或者The TC message is sent by a blocked port; or

所述TC报文是由DOWN状态变为正常UP状态的端口发送的。The TC message is sent by a port whose DOWN state changes to a normal UP state.

结合第四方面、第四方面的第一种可能的实现方式或者第四方面的第二种可能的实现方式,在第三种可能的实现方式中,所述切换单元,还用于:With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in a third possible implementation manner, the switching unit is further configured to:

在延时执行所述第二三层网络设备处于主状态的操作之后,若所述接收单元接收到所述三层保护协议的心跳报文,则将所述第二三层网络设备由主状态切换为备状态。After delaying the operation of the second layer-3 network device being in the master state, if the receiving unit receives the heartbeat message of the layer-3 protection protocol, the second layer-3 network device is changed from the master state Switch to standby state.

第五方面,提供一种网络设备,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述三层网络中的第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,所述网络设备包括:In a fifth aspect, a network device is provided, which is applied to a network including a layer-3 network and a layer-2 ring network, where the first layer-3 network device in the layer-3 network is connected to the layer-2 in the layer-2 ring network A network device running a layer-3 protection protocol, the second layer-3 network device in the layer-3 network is connected to the layer-2 network device in the layer-2 ring network and running a layer-3 protection protocol, the first layer-3 network device The network equipment is in the master state, and the second and third layer network equipment is in the standby state, and the network equipment includes:

收发器,用于接收拓扑变化TC报文;a transceiver, configured to receive a topology change TC message;

处理器,用于在所述收发器接收到所述TC报文后,将所述第二三层网络设备由备状态切换为备升主延时状态;若在第一设定时间内所述收发器未接收到所述三层保护协议的心跳报文,将所述第二三层网络设备由备升主延时状态切换为主状态。A processor, configured to switch the second layer-3 network device from the standby state to the standby main delay state after the transceiver receives the TC message; The transceiver does not receive the heartbeat message of the layer-3 protection protocol, and switches the second layer-3 network device from the backup master delay state to the master state.

结合第五方面,在第一种可能的实现方式中,所述三层保护协议包括虚拟路由冗余协议VRRP和/或协议无关组播PIM。With reference to the fifth aspect, in a first possible implementation manner, the layer-3 protection protocol includes a virtual routing redundancy protocol VRRP and/or protocol independent multicast PIM.

结合第五方面或者第五方面的第一种可能的实现方式,在第二种可能的实现方式中,所述TC报文是所述二层环网的边缘端口发送的;或者With reference to the fifth aspect or the first possible implementation of the fifth aspect, in the second possible implementation, the TC message is sent by an edge port of the layer-2 ring network; or

所述TC报文是阻塞端口发送的;或者The TC message is sent by a blocked port; or

所述TC报文是由断开DOWN状态变为正常UP状态的端口发送的。The TC message is sent by a port that is turned off from a DOWN state to a normal UP state.

结合第五方面、第五方面的第一种可能的实现方式或者第五方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理器,还用于:With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, or the second possible implementation manner of the fifth aspect, in a third possible implementation manner, the processor is further configured to:

将所述第二三层网络设备由备状态切换为备升主延时状态之后,若所述收发器接收到所述三层保护协议的心跳报文或者在第二设定时间内双向转发检测BFD的检测结果为UP状态,将所述第二三层网络设备由备升主延时状态切换为备状态。After the second layer-3 network device is switched from the standby state to the backup master delay state, if the transceiver receives the heartbeat message of the layer-3 protection protocol or bidirectionally forwards and detects within the second set time The detection result of the BFD is in the UP state, and the second and third layer network devices are switched from the standby state to the standby state.

第六方面,提供一种网络设备,应用于包括三层网络和二层环网的组网中,所述三层网络中的第一三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述三层网络中的第二三层网络设备连接所述二层环网中的二层网络设备、且运行三层保护协议,所述第一三层网络设备处于主状态,所述第二三层网络设备处于备状态,所述网络设备包括:In the sixth aspect, a network device is provided, which is applied to a network including a layer-3 network and a layer-2 ring network, where the first layer-3 network device in the layer-3 network is connected to the layer-2 in the layer-2 ring network A network device running a layer-3 protection protocol, the second layer-3 network device in the layer-3 network is connected to the layer-2 network device in the layer-2 ring network and running a layer-3 protection protocol, the first layer-3 network device The network equipment is in the master state, and the second and third layer network equipment is in the standby state, and the network equipment includes:

收发器,用于接收拓扑变化TC报文;a transceiver, configured to receive a topology change TC message;

处理器,用于在双向转发检测BFD的检测结果为断开DOWN状态而导致所述第二三层网络设备由备状态切换为主状态后,所述收发器接收到所述TC报文时,延时执行所述第二三层网络设备处于主状态的操作;若在第三设定时间内所述收发器未接收到所述三层保护协议的心跳报文,执行所述第二三层网络设备处于主状态的操作。The processor is configured to switch the second layer-3 network device from the standby state to the main state after the detection result of the bidirectional forwarding detection BFD is disconnected from the DOWN state, and when the transceiver receives the TC message, Delaying the operation of the second and third layer network devices being in the master state; if the transceiver does not receive the heartbeat message of the third layer protection protocol within the third set time, execute the second and third layer An operation in which a network device is in the master state.

结合第六方面,在第一种可能的实现方式中,所述三层保护协议包括虚拟路由冗余协议VRRP和/或协议无关组播PIM。With reference to the sixth aspect, in a first possible implementation manner, the layer-3 protection protocol includes a virtual routing redundancy protocol VRRP and/or protocol independent multicast PIM.

结合第六方面或者第六方面的第一种可能的实现方式,在第二种可能的实现方式中,所述TC报文是所述二层环网的边缘端口发送的;或者With reference to the sixth aspect or the first possible implementation of the sixth aspect, in the second possible implementation, the TC message is sent by an edge port of the layer-2 ring network; or

所述TC报文是阻塞端口发送的;或者The TC message is sent by a blocked port; or

所述TC报文是由DOWN状态变为正常UP状态的端口发送的。The TC message is sent by a port whose DOWN state changes to a normal UP state.

结合第六方面、第六方面的第一种可能的实现方式或者第六方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理器,还用于:With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, in a third possible implementation manner, the processor is further configured to:

在延时执行所述第二三层网络设备处于主状态的操作之后,若所述收发器接收到所述三层保护协议的心跳报文,则将所述第二三层网络设备由主状态切换为备状态。After delaying the operation of the second layer-3 network device being in the master state, if the transceiver receives the heartbeat message of the layer-3 protection protocol, the second layer-3 network device is changed from the master state Switch to standby state.

根据第一方面提供的网络设备由备状态到主状态的切换方法、第三方面提供的网络设备由备状态到主状态的切换装置或者第五方面提供的网络设备,在接收到TC报文后,首先将第二三层网络设备由备状态切换为备升主延时状态,若在第一设定时间内未接收到三层保护协议的心跳报文,才会将第二三层网络设备由备升主延时状态切换为主状态,并执行第二三层网络设备处于主状态的操作。可见,处于备状态的第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。According to the method for switching a network device from a standby state to a master state provided in the first aspect, the device for switching a network device from a standby state to a master state provided in the third aspect, or the network device provided in the fifth aspect, after receiving a TC message , first switch the second and third layer network devices from the standby state to the backup master delay state, if the heartbeat message of the layer 3 protection protocol is not received within the first set time, the second and third layer network devices will be switched Switch from the backup to the main delay state to the main state, and perform the operation that the second and third layer network devices are in the main state. It can be seen that the state of the second and third layer network devices in the standby state is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message, which is in the layer 2 ring network topology. change or the state of the port changes from DOWN to UP, the time to send TC packets is much shorter than the convergence time of the Layer 2 ring network, so it can be determined based on the received TC packets The second and third layer network devices are switched to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

根据第二方面提供的网络设备由备状态到主状态的切换方法、第四方面提供的网络设备由备状态到主状态的切换装置或者第六方面提供的网络设备,该方案在BFD的检测结果为断开DOWN状态而导致第二三层网络设备由备状态切换为主状态后,接收到TC报文时,首先延时执行第二三层网络设备处于主状态的操作;若在第三设定时间内未接收到三层保护协议的心跳报文,才会执行第二三层网络设备处于主状态的操作。可见,第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。According to the method for switching a network device from a standby state to a master state provided in the second aspect, the device for switching a network device from a standby state to a master state provided in the fourth aspect, or the network device provided in the sixth aspect, the BFD detection results of this solution After the second and third layer network devices are switched from the standby state to the main state to disconnect the DOWN state, when receiving a TC message, first delay the operation of the second and third layer network devices being in the main state; Only when the heartbeat message of the layer-3 protection protocol is not received within a certain period of time will the second-layer and third-layer network equipment be in the master state. It can be seen that the state of the second and third layer network devices is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message. It is sent when the status changes from DOWN to UP, and the time to send TC messages is much shorter than the convergence time of the Layer 2 ring network. The device switches to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

附图说明Description of drawings

图1为现有技术中的MAN的结构示意图;FIG. 1 is a schematic structural diagram of a MAN in the prior art;

图2为现有技术中的MAN中出现故障时的结构示意图;Fig. 2 is a structural schematic diagram when a fault occurs in the MAN in the prior art;

图3为本发明实施例中第一种网络设备由备状态到主状态的切换方法的流程图;Fig. 3 is the flow chart of the switching method of the first kind of network device from standby state to main state in the embodiment of the present invention;

图4为本发明实施例中第二种网络设备由备状态到主状态的切换方法的流程图;Fig. 4 is the flow chart of the switching method of the second network device from standby state to main state in the embodiment of the present invention;

图5为本发明实施例中针对VRRP的网络设备由备状态到主状态的切换方法示意图;5 is a schematic diagram of a switching method for a VRRP network device from a standby state to a master state in an embodiment of the present invention;

图6为本发明实施例中针对PIM的网络设备由备状态到主状态的切换方法示意图;6 is a schematic diagram of a method for switching a PIM network device from a standby state to a master state in an embodiment of the present invention;

图7为本发明实施例中第一种网络设备由备状态到主状态的切换装置的结构示意图;7 is a schematic structural diagram of a device for switching a first network device from a standby state to a master state in an embodiment of the present invention;

图8为本发明实施例中第二种网络设备由备状态到主状态的切换装置的结构示意图;FIG. 8 is a schematic structural diagram of a switching device for a second network device from a standby state to a master state in an embodiment of the present invention;

图9为本发明实施例中第一种网络设备的结构示意图;FIG. 9 is a schematic structural diagram of a first network device in an embodiment of the present invention;

图10为本发明实施例中第二种网络设备的结构示意图。FIG. 10 is a schematic structural diagram of a second network device in an embodiment of the present invention.

具体实施方式detailed description

针对现有技术中存在的因二层环网收敛速度较慢导致备状态的网络设备误切换的问题,发明人研究发现,发生误切换的原因在于,在如图2所示的组网中,故障1发生后会引发MSTP收敛计算,阻塞端口放开会向全网的节点发送拓扑变化(Topology Change,TC)报文,收到TC报文的节点会清除虚拟局域网(Virtual Local Area Network,VLAN)下的媒质接入控制(Medium Access Control,MAC)地址。MSTP收敛时间在亚秒级,而三层保护协议的BFD检测时间在毫秒级,当MSTP收敛计算尚未完成时,三层保护协议由于BFD检测为断开(Down)已经触发了网络设备11由备状态到主状态的切换,由于二层环网只是单链路故障,MSTP收敛后仍然存在链路可达,这时网络设备11由备状态到主状态的切换就是误切换。Aiming at the problem in the prior art that the network equipment in the standby state is incorrectly switched due to the slow convergence speed of the layer-2 ring network, the inventors found that the reason for the incorrect switching is that in the network shown in Figure 2, After fault 1 occurs, MSTP convergence calculation will be triggered. When the blocked port is released, a topology change (Topology Change, TC) message will be sent to the nodes on the entire network. The node receiving the TC message will clear the virtual local area network (Virtual Local Area Network, VLAN ) under the Medium Access Control (MAC) address. The MSTP convergence time is at the sub-second level, while the BFD detection time of the Layer 3 protection protocol is at the millisecond level. When the MSTP convergence calculation has not been completed, the Layer 3 protection protocol has triggered the network device 11 by the backup because the BFD detection is down. The switch from the state to the master state, because the layer 2 ring network is only a single link failure, there is still a reachable link after MSTP converges, at this time, the switch of the network device 11 from the standby state to the master state is a wrong switch.

网络设备11从备状态误切换为主状态后会触发一系列操作影响正常的流量转发,例如,对于VRRP,会立即发送地址解析协议(Address Resolution Protocol,ARP)报文和心跳报文刷新二层网络设备的MAC表、触发路由更新等;对于PIM,如果同时配置了静态组播组会立即将组播流量转发到二层网络,用户会在瞬间收到双份组播流量。如果MSTP的根桥和备份根桥不是网络设备10、11直连的节点12、13,那么在二层环网中任意链路故障或者MSTP优先级调整时,都会触发这种误切换。After the network device 11 switches from the standby state to the master state by mistake, a series of operations will be triggered to affect the normal traffic forwarding. For example, for VRRP, it will immediately send Address Resolution Protocol (ARP) messages and heartbeat messages to refresh the second layer. MAC tables of network devices, trigger routing updates, etc. For PIM, if a static multicast group is configured at the same time, the multicast traffic will be forwarded to the Layer 2 network immediately, and users will receive double multicast traffic in an instant. If the MSTP root bridge and backup root bridge are not nodes 12, 13 directly connected to the network devices 10, 11, then any link failure or MSTP priority adjustment in the layer 2 ring network will trigger this erroneous switchover.

为了减少备状态的网络设备误切换的问题,本发明实施例提供两种网络设备由备状态到主状态的切换方法,该方法应用于包括三层网络和二层环网的组网中,其中,三层网络中的第一三层网络设备和第二三层网络设备分别与二层环网中的二层网络设备相连,第一三层网络设备和第二三层网络设备之间运行三层保护协议。假定,第一三层网络设备处于主状态,第二三层网络设备处于备状态。In order to reduce the problem of wrong switching of network equipment in the standby state, the embodiment of the present invention provides two methods for switching network equipment from the standby state to the main state. , the first layer-3 network device and the second layer-3 network device in the layer-3 network are respectively connected to the layer-2 network device in the layer-2 ring network, the first layer-3 network device and the second layer-3 network device run three layer protection protocol. It is assumed that the first layer-3 network device is in the master state, and the second layer-3 network device is in the standby state.

一种网络设备由备状态到主状态的切换方法的流程如图3所示,该方法包括:A kind of flow process of the switching method of network equipment from standby state to main state is shown in Figure 3, and this method comprises:

S30:接收到TC报文后,将第二三层网络设备由备状态切换为备升主延时状态。S30: After receiving the TC message, switch the second and third layer network devices from the standby state to the standby upgrade master delay state.

其中,TC报文是二层环网的边缘端口发送的;或者,TC报文是阻塞端口发送的,或者,TC报文是由DOWN状态变为UP状态的端口发送的。Wherein, the TC message is sent by an edge port of the layer 2 ring network; or, the TC message is sent by a blocked port, or, the TC message is sent by a port whose state changes from DOWN to UP.

通常,在网络拓扑变化或者端口的状态由DOWN状态变为UP状态时,由阻塞端口发出TC报文,或者由DOWN状态变为UP状态的端口发出TC报文。TC报文是组播报文,二层环网内的其它节点接收到TC报文后,会在二层环网内转发。Usually, when the network topology changes or the state of a port changes from DOWN to UP, the blocked port sends TC packets, or the port that changes from DOWN to UP sends TC packets. The TC message is a multicast message. After receiving the TC message, other nodes in the layer 2 ring network will forward it in the layer 2 ring network.

而在本发明实施例中,TC报文不仅仅是在二层环网内传输,二层环网的边缘端口、阻塞端口或者由DOWN状态变为UP状态的端口也会将TC报文单播发送给第二三层网络设备,目的地址为第二三层网络设备的接口的MAC地址。In the embodiment of the present invention, the TC message is not only transmitted in the two-layer ring network, but also the edge port, the blocked port or the port that changes from the DOWN state to the UP state of the two-layer ring network will also unicast the TC message. It is sent to the second layer 3 network device, and the destination address is the MAC address of the interface of the second layer 3 network device.

也可以设置向处于主状态的第一三层网络设备发送TC报文,由于主状态的第一三层网络设备不存在误切换的问题,第一三层网络设备接收到TC报文后,可以不做任何处理。It can also be set to send TC messages to the first layer 3 network device in the master state. Since the first layer 3 network device in the master state does not have the problem of false switching, after the first layer 3 network device receives the TC message, it can Do nothing.

当处于备状态的第二三层网络设备接收到TC报文时,并不直接将自身的状态切换为主状态,而是将自身的状态切换为备升主延时状态,这样就可以更加精确地确定是否需要切换为主状态。When the second and third layer network devices in the standby state receive the TC message, they do not directly switch their state to the main state, but switch their own state to the backup master delay state, which can be more accurate to determine whether to switch to the main state.

S31:若在第一设定时间内未接收到三层保护协议的心跳报文,将第二三层网络设备由备升主延时状态切换为主状态。S31: If the heartbeat message of the layer-3 protection protocol is not received within the first set time, switch the second layer-3 network device from the backup master delay state to the master state.

处于主状态的第一三层网络设备会定时向处于备状态的第二三层网络设备发生三层保护协议的心跳报文,若第二三层网络设备在第一设定时间内未收到该心跳报文,则说明出现了双点故障,这时需要将处于备状态的第二三层网络设备切换为主状态了。所以备升主延时的时间就是第一设定时间。The first layer-three network device in the master state will regularly send a heartbeat message of the layer-3 protection protocol to the second layer-three network device in the standby state. If the second layer-three network device does not receive it within the first set time This heartbeat message indicates that a double-point failure has occurred, and at this time, the second and third layer network devices in the standby state need to be switched to the master state. Therefore, the delay time of backup master is the first setting time.

第一设定时间可以根据需要设定,例如根据需要设定为500ms、600ms等等;也可以根据三层保护协议的心跳报文的发送周期设定,例如,VRRP心跳报文的发送周期一般为1s,可以将第一设定时间设定为1s或更短,PIM心跳报文的发送周期为3s,可以将第一设定时间设定为3s或更短。The first setting time can be set according to needs, such as 500ms, 600ms, etc. according to needs; it can also be set according to the sending cycle of the heartbeat message of the three-layer protection protocol, for example, the sending cycle of the VRRP heartbeat message is generally is 1s, the first setting time can be set to 1s or shorter, the sending cycle of the PIM heartbeat message is 3s, and the first setting time can be set to 3s or shorter.

针对不同三层保护协议,第二三层网络设备处于主状态时执行的操作也不同:对于VRRP,需要定时向处于备状态的第二三层网络设备发送VRRP心跳报文、进行组播转发切换、路由优先级切换、发送地址解析协议ARP探测等中的一种或多种;对于PIM,需要定时向处于备状态的第二三层网络设备发送PIM HELLO报文、组播转发切换等等。For different Layer 3 protection protocols, the operations performed when the second and third layer network devices are in the master state are also different: for VRRP, it is necessary to regularly send VRRP heartbeat messages to the second and third layer network devices in the standby state, and perform multicast forwarding switching One or more of routing priority switching, sending address resolution protocol ARP detection, etc.; for PIM, it is necessary to regularly send PIM HELLO messages to the second and third layer network devices in the standby state, multicast forwarding switching, and the like.

该方案在接收到TC报文后,首先将第二三层网络设备由备状态切换为备升主延时状态,若在第一设定时间内未接收到三层保护协议的心跳报文,才会将第二三层网络设备由备升主延时状态切换为主状态,并执行第二三层网络设备处于主状态的操作。In this solution, after receiving the TC message, firstly switch the second and third layer network equipment from the standby state to the backup main delay state. If the heartbeat message of the layer 3 protection protocol is not received within the first set time, Only then will the second and third layer network devices be switched from the backup master delay state to the main state, and the operation that the second and third layer network devices are in the main state will be performed.

可见,处于备状态的第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。It can be seen that the state of the second and third layer network devices in the standby state is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message, which is in the layer 2 ring network topology. change or the state of the port changes from DOWN to UP, the time to send TC packets is much shorter than the convergence time of the Layer 2 ring network, so it can be determined based on the received TC packets The second and third layer network devices are switched to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

可选的,上述S30中的将第二三层网络设备由备状态切换为备升主延时状态之后,还可以包括:若接收到三层保护协议的心跳报文或者在第二设定时间内双向转发检测BFD的检测结果为UP状态,将第二三层网络设备由备升主延时状态切换为备状态。第二设定时间可以根据实际需要进行设定,例如设定为BFD检测周期的二倍、三倍等等。Optionally, after the second layer-3 network device is switched from the standby state to the backup main delay state in the above S30, it may also include: if the heartbeat message of the layer-3 protection protocol is received or the second set time The detection result of the internal bidirectional forwarding detection BFD is in the UP state, and the second and third layer network devices are switched from the standby state to the standby state. The second setting time can be set according to actual needs, for example, it is set to be twice, three times, etc. of the BFD detection period.

当处于备状态的第二三层网络设备切换为备升主延时状态后,若接收到三层保护协议的心跳报文或者在第二设定时间内BFD的检测结果为UP状态,这时说明二层环网中出现的是单链路故障,无需对处于备状态的第二三层网络设备进行切换,可以解除备升主延时状态,将第二三层网络设备由备升主延时状态切换为备状态。When the second and third layer network devices in the standby state are switched to the backup master delay state, if the heartbeat message of the layer 3 protection protocol is received or the detection result of BFD is in the UP state within the second set time, then It shows that a single link failure occurs in the layer 2 ring network, and there is no need to switch the second and third layer network devices in the standby state. The state switches to standby state.

另一种网络设备由备状态到主状态的切换方法的流程如图4所示。该方法应用于包括三层网络和二层环网的组网中,其中,三层网络的第一三层网络设备和第二三层网络设备分别与二层环网中的二层网络设备相连,第一三层网络设备和第二三层网络设备之间运行三层保护协议。假定第一三层网络设备处于主状态,第二三层网络设备处于备状态。该方法包括:The flow of another method for switching a network device from a standby state to a master state is shown in FIG. 4 . The method is applied to a network including a layer-3 network and a layer-2 ring network, wherein the first layer-3 network device and the second layer-3 network device of the layer-3 network are respectively connected to the layer-2 network device in the layer-2 ring network , a layer-3 protection protocol is run between the first layer-3 network device and the second layer-3 network device. Assume that the first layer-3 network device is in the master state, and the second layer-3 network device is in the standby state. The method includes:

S40:在BFD的检测结果为DOWN状态而导致第二三层网络设备由备状态切换为主状态后,接收到TC报文时,延时第三设定时间执行第二三层网络设备处于主状态的操作。S40: After the BFD detection result is in the DOWN state, causing the second and third layer network devices to switch from the standby state to the main state, when receiving the TC message, delay the third set time to execute the second and third layer network devices to be in the main state state operations.

其中,TC报文是二层环网的边缘端口发送的,或者TC报文是阻塞端口发送的,或者TC报文是由断开DOWN状态变为UP状态的端口发送的。也可以设置向处于主状态的第一三层网络设备发送TC报文,由于主状态的第一三层网络设备不存在误切换的问题,第一三层网络设备接收到TC报文后,不做任何处理。Wherein, the TC message is sent by the edge port of the layer 2 ring network, or the TC message is sent by the blocked port, or the TC message is sent by the port whose state is changed from DOWN to UP. It can also be set to send TC messages to the first layer 3 network device in the master state. Since the first layer 3 network device in the master state does not have the problem of false switching, after receiving the TC message, the first layer 3 network device does not do any processing.

第一三层网络设备和第二三层网络设备会定时进行BFD检测,对于第二三层网络设备来说,当BFD的检测结果为DOWN状态,说明二层环网中出现链路故障,需要将处于备状态的第二三层网络设备切换为主状态,若这时接收到TC报文,可以延时执行第二三层网络设备处于主状态的操作,等待二层环网MSTP收敛计算完成后确定需要切换为主状态时再执行。Layer 1 and Layer 3 network devices and Layer 2 and Layer 3 network devices will regularly perform BFD detection. For Layer 2 and Layer 3 network devices, when the BFD detection result is in the DOWN state, it indicates that a link failure occurs in the Layer 2 ring network. Switch the second and third layer network devices in the standby state to the master state. If a TC message is received at this time, the operation of the second and third layer network devices in the master state can be delayed until the MSTP convergence calculation of the layer 2 ring network is completed. Execute it later when it is determined that it needs to switch to the main state.

S41:若在第三设定时间内未接收到三层保护协议的心跳报文,执行第二三层网络设备处于主状态的操作。S41: If the heartbeat message of the layer-3 protection protocol is not received within the third set time, perform an operation that the layer-2 and layer-3 network devices are in the master state.

若在第三设定时间内未接收到三层保护协议的心跳报文,说明这时出现了双点故障,需要立即执行第二三层网络设备处于主状态的操作。所以延时执行第二三层网络设备处于主状态的操作的时间就是第三设定时间。If the heartbeat message of the layer-3 protection protocol is not received within the third set time, it means that a double-point failure occurs at this time, and the operation that the second-layer and layer-3 network equipment is in the master state needs to be performed immediately. Therefore, the time for delaying the execution of the operation that the second and third layer network devices are in the master state is the third set time.

第三设定时间可以根据需要设定,例如根据需要设定为550ms、650ms等等;也可以三层保护协议的心跳报文的发送周期进行设定,例如,VRRP心跳报文的发送周期一般为1s,可以将第三设定时间设定为1s,PIM心跳报文的发送周期为3s,可以将第三设定时间设定为3s。The third setting time can be set according to needs, such as 550ms, 650ms, etc.; the sending period of the heartbeat message of the three-layer protection protocol can also be set, for example, the sending period of the VRRP heartbeat message is generally is 1s, the third setting time can be set as 1s, the sending period of the PIM heartbeat message is 3s, and the third setting time can be set as 3s.

该方案在BFD的检测结果为断开DOWN状态而导致第二三层网络设备由备状态切换为主状态后,接收到TC报文时,首先延时执行第二三层网络设备处于主状态的操作;若在第三设定时间内未接收到三层保护协议的心跳报文,才会执行第二三层网络设备处于主状态的操作。In this solution, after the BFD detection result is disconnected and the Layer 2 and Layer 3 network devices switch from the standby state to the master state, when a TC message is received, the second and third layer network devices that are in the master state are first delayed. Operation; if the heartbeat message of the layer-3 protection protocol is not received within the third set time, the operation that the second-layer and third-layer network equipment is in the master state will be executed.

可见,第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。It can be seen that the state of the second and third layer network devices is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message. It is sent when the status changes from DOWN to UP, and the time to send TC messages is much shorter than the convergence time of the Layer 2 ring network. The device switches to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

可选的,S40中的延时执行第二三层网络设备处于主状态的操作之后,还包括:若接收到三层保护协议的心跳报文,则将第二三层网络设备由主状态切换为备状态。Optionally, after the delay in S40 executes the operation that the second layer-3 network device is in the master state, it also includes: if the heartbeat message of the layer-3 protection protocol is received, switching the second layer-3 network device from the master state For standby.

若延时执行第二三层网络设备处于主状态的操作之后,又接收到三层保护协议的心跳报文,说明这时仅仅出现了单链路故障,无需切换处于备状态的第二三层网络设备,则将第二三层网络设备由主状态切换为备状态。If the heartbeat message of the layer-3 protection protocol is received after delaying the operation of the second- and third-layer network equipment in the main state, it means that only a single link failure occurs at this time, and there is no need to switch the second and third layers in the standby state network equipment, switch the second and third layer network equipment from the main state to the standby state.

下面分别以三层保护协议为VRRP和PIM为例说明上述网络设备由备状态由备到主状态的切换方法。Taking VRRP and PIM as examples of the three-layer protection protocols, the following describes the switching method of the above-mentioned network equipment from the standby state to the active state.

实施例一Embodiment one

如图5所示,三层网络设备可能处于的四种状态:主状态、备状态、备升主延时状态和延时执行三层网络设备处于主状态的操作,对于运行VRRP的三层网络设备来说:As shown in Figure 5, there are four states that a layer-3 network device may be in: main state, standby state, standby upgrade to the main delay state, and delay execution of the operation that the layer-3 network device is in the main state. For a layer-3 network running VRRP For equipment:

处于备状态时,接收到TC报文,切换为备升主延时状态,即使随后BFD的检测结果为DOWN状态,也不切换为主状态;若随后接收到运行VRRP且处于主状态的三层网络设备发送的VRRP的心跳报文或者BFD在两倍检测周期内的检测结果均为UP状态,则解除备升主延时状态,将三层网络设备由备升主延时状态切换为备状态。若未接收到TC报文,而在第一设定时间内未接收到VRRP的心跳报文或者BFD的检测结果为DOWN状态,则直接将三层网络设备由备升主延时状态切换为主状态。When in the standby state, if a TC message is received, it will switch to the standby upgrade master delay state. Even if the BFD detection result is DOWN, it will not switch to the master state; If the VRRP heartbeat message sent by the network device or the detection result of BFD is in the UP state within twice the detection period, the standby state will be released, and the Layer 3 network device will be switched from the standby state to the standby state. . If the TC message is not received, and the VRRP heartbeat message is not received within the first set time or the BFD detection result is in the DOWN state, the Layer 3 network device will be directly switched from the backup master delay state to the master state. state.

因BFD的检测结果为DOWN状态而导致三层网络设备由备状态切换为主状态时,接收到TC报文后,延时执行三层网络设备处于主状态的操作,包括:延时发送VRRP的心跳报文、组播转发切换、路由优先级变化、发送地址解析协议ARP探测等中的一种或多种。When a Layer 3 network device switches from the standby state to the master state because the BFD detection result is in the DOWN state, after receiving a TC packet, delay performing the operations that the Layer 3 network device is in the master state, including: Delaying sending VRRP One or more of heartbeat messages, multicast forwarding switching, routing priority changes, sending address resolution protocol ARP detection, etc.

当三层网络设备处于备升主延时状态时,在第一设定时间内未接收到VRRP心跳报文,则执行备升主操作。当三层网络设备处于延时执行三层网络设备处于主状态的操作时,在第二设定时间内未接收到VRRP心跳报文,立即执行三层网络设备处于主状态的操作。When the three-layer network device is in the delay state of standby upgrade to the master, and does not receive the VRRP heartbeat message within the first set time, the standby upgrade to the master operation is performed. When the layer-3 network device is delaying to execute the operation that the layer-3 network device is in the master state, and does not receive the VRRP heartbeat message within the second set time, immediately execute the operation that the layer-3 network device is in the master state.

三层网络设备处于备升主延时状态或者主状态时,若接收到TC报文,不做处理。When a Layer 3 network device is in the backup master delay state or the master state, if it receives a TC message, it does not process it.

其中,为保障二层环网中的边缘端口、阻塞端口或者由DOWN状态变为UP状态的端口能够向运行VRRP且处于备状态的三层网络设备发送TC报文,VRRP需要部署地址解析协议ARP探测同时因下行有直接从运行VRRP且处于备状态的三层网络设备转发的流量,这样就可以确保二层环网中的各节点上有到运行VRRP且处于备状态的三层网络设备的接口MAC,从而可以确保TC报文的正常发送。Among them, in order to ensure that edge ports, blocked ports, or ports that change from DOWN state to UP state in the Layer 2 ring network can send TC packets to Layer 3 network devices running VRRP and in the standby state, VRRP needs to deploy the address resolution protocol ARP At the same time, because the downlink traffic is directly forwarded from the Layer 3 network device running VRRP and in the standby state, it can ensure that each node in the Layer 2 ring network has an interface to the Layer 3 network device running VRRP and in the standby state. MAC, so as to ensure the normal sending of TC messages.

实施例二Embodiment two

如图6所示,三层网络设备可能处于的四种状态:主状态、备状态、备升主延时状态和延时执行三层网络设备处于主状态的操作,对于运行PIM的三层网络设备来说:As shown in Figure 6, there are four possible states for a layer-3 network device: main state, standby state, standby upgrade to the main delay state, and delay execution of the operation that the layer-3 network device is in the main state. For a layer-3 network running PIM For equipment:

处于备状态时,接收到TC报文,切换为备升主延时状态,即使随后BFD的检测结果为DOWN状态,也不切换为主状态;若随后接收到运行PIM且处于主状态的三层网络设备发送的PIM HELLO报文或者BFD在两倍检测周期内的检测结果均为UP状态,则解除备升主延时状态,将三层网络设备由备升主延时状态切换为备状态。若未接收到TC报文,而且在第一设定时间内未接收到PIM HELLO报文,则直接将三层网络设备由备升主延时状态切换为主状态;或者未接收到TC报文,而且BFD的检测结果为DOWN状态,则直接将三层网络设备由备升主延时状态切换为主状态。When in the standby state, if a TC message is received, it will switch to the standby upgrade master delay state. Even if the subsequent BFD detection result is DOWN state, it will not switch to the master state; If the PIM HELLO message sent by the network device or the detection result of BFD is in the UP state within twice the detection period, the backup master delay state will be released, and the Layer 3 network device will be switched from the backup master delay state to the standby state. If the TC message is not received, and the PIM HELLO message is not received within the first set time, then the Layer 3 network device will be directly switched from the backup master delay state to the master state; or the TC message is not received , and the BFD detection result is in the DOWN state, then directly switch the Layer 3 network device from the backup to the master delay state to the master state.

因BFD的检测结果为DOWN状态而导致三层网络设备由备状态切换为主状态时,接收到TC报文后,延时执行三层网络设备处于主状态的操作,包括:延时发送PIM HELLO报文、组播转发切换等。When the Layer 3 network device switches from the standby state to the master state because the BFD detection result is in the DOWN state, after receiving the TC packet, the layer 3 network device is in the master state with a delay, including: Delayed sending of PIM HELLO packet, multicast forwarding and switching, etc.

当三层网络设备处于备升主延时状态,且在第一设定时间内未接收到PIM HELLO报文,执行三层网络设备备升主操作;当三层网络设备处于延时执行三层网络设备处于主状态的操作时,且在第二设定时间内未接收到PIM HELLO报文,立即执行所述三层网络设备处于主状态的操作。When the Layer 3 network device is in the backup master delay state and does not receive a PIM HELLO message within the first set time, execute the backup master operation of the Layer 3 network device; when the Layer 3 network device is in the delay state, execute the Layer 3 When the network device is in the master state, and the PIM HELLO message is not received within the second set time, immediately execute the operation of the three-layer network device in the master state.

处于备升主延时状态或者主状态,若接收到TC报文,不做处理。If it is in the backup main delay state or the main state, if it receives a TC message, it will not process it.

实施例一和实施例二中的二层网络设备和三层网络设备的配置方式如下所示:The configuration modes of the Layer 2 network equipment and the Layer 3 network equipment in Embodiment 1 and Embodiment 2 are as follows:

(1)二层网络设备配置(1) Layer 2 network device configuration

[HUAWEI-GigabitEthernet1/0/1]stp edged-port enable[HUAWEI-GigabitEthernet1/0/1]stp edged-port enable

[HUAWEI-GigabitEthernet1/0/1]stp edged-port linkage-vrrp-------边缘端口向运行VRRP且处于备状态的三层网络设备发送TC报文[HUAWEI-GigabitEthernet1/0/1]stp edged-port linkage-vrrp-------Edge port sends TC packets to layer 3 network devices running VRRP and in standby state

[HUAWEI-GigabitEthernet1/0/1]stp edged-port linkage-pim-------边缘端口向运行PIM且处于备状态的三层网络设备发送TC报文[HUAWEI-GigabitEthernet1/0/1]stp edged-port linkage-pim-------Edge port sends TC packets to Layer 3 network devices running PIM and in standby state

[HUAWEI]stp instance1linkage-vrrp mac[mac-address]-----------------使能TC报文发送给运行VRRP且处于备状态的三层网络设备的目的mac地址[HUAWEI]stp instance1linkage-vrrp mac[mac-address]-----------------Enable the purpose of sending TC packets to Layer 3 network devices running VRRP and in the standby state mac address

[HUAWEI]stp instance1linkage-pim mac[mac-address]-----------------使能TC报文发送给运行PIM且处于备状态的三层网络设备的目的mac地址[HUAWEI]stp instance1linkage-pim mac[mac-address]-----------------The purpose of enabling TC packets to be sent to Layer 3 network devices running PIM and in the standby state mac address

(2)三层网络设备配置(2) Layer 3 network device configuration

[HUAWEI]interface gigabitethernet2/0/0.1[HUAWEI] interface gigabitethernet2/0/0.1

[HUAWEI-GigabitEthernet2/0/0.1]vrrp vrid10virtual-ip10.1.1.3[HUAWEI-GigabitEthernet2/0/0.1]vrrp vrid10virtual-ip10.1.1.3

[HUAWEI-GigabitEthernet2/0/0.1]vrrp vrid10linkage-tcn-bpdu------VRRP使能处理TC报文[HUAWEI-GigabitEthernet2/0/0.1]vrrp vrid10linkage-tcn-bpdu---Enable VRRP to process TC packets

[HUAWEI-GigabitEthernet2/0/0.1]pim linkage-tcn-bpdu------PIM使能处理TC报文。[HUAWEI-GigabitEthernet2/0/0.1]pim linkage-tcn-bpdu------PIM enables processing of TC packets.

基于同一发明构思,针对第一种网络设备由备状态到主状态的切换方法,本发明实施例提供一种网络设备由备状态到主状态的切换装置,应用于包括三层网络和二层环网的组网中,三层网络中的第一三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,三层网络中的第二三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,第一三层网络设备处于主状态,第二三层网络设备处于备状态,该装置的结构如图7所示,包括:Based on the same inventive concept, aiming at the first method for switching a network device from a standby state to a master state, an embodiment of the present invention provides a device for switching a network device from a standby state to a master state, which is applied to a layer-3 network and a layer-2 ring In the networking of the network, the first and third layer network devices in the three-layer network are connected to the two-layer network devices in the two-layer ring network, and run the three-layer protection protocol, and the second and three-layer network devices in the three-layer network are connected to the two-layer The Layer 2 network equipment in the ring network runs the Layer 3 protection protocol, the first Layer 3 network equipment is in the master state, and the second Layer 3 network equipment is in the standby state. The structure of the device is shown in Figure 7, including:

接收单元70,用于接收TC报文。The receiving unit 70 is configured to receive the TC message.

切换单元71,用于在接收单元70接收到TC报文后,将第二三层网络设备由备状态切换为备升主延时状态;以及,若在第一设定时间内接收单元70未接收到三层保护协议的心跳报文,将第二三层网络设备由备升主延时状态切换为主状态。The switching unit 71 is used to switch the second layer-3 network device from the standby state to the backup main delay state after the receiving unit 70 receives the TC message; and, if the receiving unit 70 fails to After receiving the heartbeat message of the layer-3 protection protocol, the second and third-layer network equipment is switched from the backup to the main delay state to the main state.

该方案在接收到TC报文后,首先将第二三层网络设备由备状态切换为备升主延时状态,若在第一设定时间内未接收到三层保护协议的心跳报文,才会将第二三层网络设备由备升主延时状态切换为主状态,并执行第二三层网络设备处于主状态的操作。In this solution, after receiving the TC message, firstly switch the second and third layer network equipment from the standby state to the backup main delay state. If the heartbeat message of the layer 3 protection protocol is not received within the first set time, Only then will the second and third layer network devices be switched from the backup master delay state to the main state, and the operation that the second and third layer network devices are in the main state will be performed.

可见,处于备状态的第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。It can be seen that the state of the second and third layer network devices in the standby state is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message, which is in the layer 2 ring network topology. change or the state of the port changes from DOWN to UP, the time to send TC packets is much shorter than the convergence time of the Layer 2 ring network, so it can be determined based on the received TC packets The second and third layer network devices are switched to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

具体的,上述三层保护协议包括VRRP和/或PIM。Specifically, the above-mentioned three-layer protection protocol includes VRRP and/or PIM.

具体的,上述TC报文是二层环网的边缘端口发送的;或者Specifically, the above-mentioned TC message is sent by an edge port of a layer 2 ring network; or

上述TC报文是阻塞端口发送的;或者The above TC message is sent by the blocked port; or

上述TC报文是由DOWN状态变为UP状态的端口发送的。The above TC message is sent by the port whose DOWN state changes to UP state.

可选的,上述切换单元71,还用于:Optionally, the above switching unit 71 is also used for:

在将第二三层网络设备由备状态切换为备升主延时状态之后,若接收单元接收到三层保护协议的心跳报文或者在第二设定时间内BFD的检测结果为UP状态,将第二三层网络设备由备升主延时状态切换为备状态。After switching the second and third-layer network equipment from the standby state to the backup main delay state, if the receiving unit receives the heartbeat message of the layer-3 protection protocol or the detection result of BFD is in the UP state within the second set time, Switch the second and third layer network equipment from standby to main delay state to standby state.

基于同一发明构思,针对第二种网络设备由备状态到主状态的切换方法,本发明实施例提供一种网络设备由备状态到主状态的切换装置,应用于包括三层网络和二层环网的组网中,三层网络中的第一三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,三层网络中的第二三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,第一三层网络设备处于主状态,第二三层网络设备处于备状态,该装置的结构如图8所示,包括:Based on the same inventive concept, for the second method for switching network equipment from the standby state to the active state, an embodiment of the present invention provides a device for switching network equipment from the standby state to the active state, which is applied to a layer-3 network and a layer-2 ring In the networking of the network, the first and third layer network devices in the three-layer network are connected to the two-layer network devices in the two-layer ring network, and run the three-layer protection protocol, and the second and three-layer network devices in the three-layer network are connected to the two-layer The layer 2 network equipment in the ring network runs the layer 3 protection protocol, the first layer 3 network equipment is in the master state, and the second layer 3 network equipment is in the standby state. The structure of the device is shown in Figure 8, including:

接收单元80,用于接收到拓扑变化TC报文。The receiving unit 80 is configured to receive a topology change TC message.

切换单元81,用于在BFD的检测结果为DOWN状态而导致第二三层网络设备由备状态切换为主状态后,接收单元80接收到TC报文时,延时执行第二三层网络设备处于主状态的操作;若在第三设定时间内接收单元80未接收到三层保护协议的心跳报文,执行第二三层网络设备处于主状态的操作。The switching unit 81 is configured to execute the second and third layer network devices with a delay when the receiving unit 80 receives the TC message after the BFD detection result is in the DOWN state and the second and third layer network devices are switched from the standby state to the main state. The operation in the main state: if the receiving unit 80 does not receive the heartbeat message of the layer-3 protection protocol within the third set time, perform the operation that the second layer-3 network device is in the main state.

该方案该方案在BFD的检测结果为断开DOWN状态而导致第二三层网络设备由备状态切换为主状态后,接收到TC报文时,首先延时执行第二三层网络设备处于主状态的操作;若在第三设定时间内未接收到三层保护协议的心跳报文,才会执行第二三层网络设备处于主状态的操作。This solution In this solution, after the BFD detection result is disconnected DOWN state, which causes the second and third layer network devices to switch from the standby state to the main state, when receiving a TC message, the second and third layer network devices are first delayed. The operation of the state; if the heartbeat message of the layer-3 protection protocol is not received within the third set time, the operation that the second-layer and layer-3 network equipment is in the master state will be executed.

可见,第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。It can be seen that the state of the second and third layer network devices is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message. It is sent when the status changes from DOWN to UP, and the time to send TC messages is much shorter than the convergence time of the Layer 2 ring network. The device switches to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

具体的,上述三层保护协议包括VRRP和/或PIM。Specifically, the above-mentioned three-layer protection protocol includes VRRP and/or PIM.

具体的,上述TC报文是二层环网的边缘端口发送的;或者Specifically, the above-mentioned TC message is sent by an edge port of a layer 2 ring network; or

上述TC报文是阻塞端口发送的;或者The above TC message is sent by the blocked port; or

上述TC报文是由DOWN状态变为UP状态的端口发送的。The above TC message is sent by the port whose DOWN state changes to UP state.

可选的,上述切换单元81,还用于:Optionally, the above switching unit 81 is also used for:

在延时执行第二三层网络设备处于主状态的操作之后,若接收单元80接收到三层保护协议的心跳报文,则将第二三层网络设备由主状态切换为备状态。After delaying the operation that the second layer 3 network device is in the master state, if the receiving unit 80 receives the heartbeat message of the layer 3 protection protocol, it switches the second layer 3 network device from the master state to the standby state.

基于同一发明构思,针对第一种网络设备由备状态到主状态的切换方法,本发明实施例提供一种网络设备,应用于包括三层网络和二层环网的组网中,三层网络中的第一三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,三层网络中的第二三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,第一三层网络设备处于主状态,第二三层网络设备处于备状态,该网络设备的结构如图9所示,包括:Based on the same inventive concept, and aiming at the first switching method of a network device from a standby state to a master state, an embodiment of the present invention provides a network device, which is applied to a network including a three-layer network and a two-layer ring network. The three-layer network The first and third layer network devices in the layer 2 ring network are connected to the layer 2 network devices in the layer 2 ring network and run the layer 3 protection protocol, and the second layer 3 network devices in the layer 3 network are connected to the layer 2 network devices in the layer 2 ring network, And run the three-layer protection protocol, the first three-layer network equipment is in the master state, the second three-layer network equipment is in the standby state, the structure of the network equipment is shown in Figure 9, including:

收发器90,用于接收TC报文。The transceiver 90 is configured to receive the TC message.

处理器91,用于在收发器90接收到TC报文后,将第二三层网络设备由备状态切换为备升主延时状态;若在第一设定时间内收发器90未接收到三层保护协议的心跳报文,将第二三层网络设备由备升主延时状态切换为主状态。Processor 91, is used for after transceiver 90 receives TC message, the second layer-3 network equipment is switched to backup main delay state by standby state; If transceiver 90 does not receive within the first set time The heartbeat message of the three-layer protection protocol switches the second and third-layer network equipment from the backup to the main delay state to the main state.

上述收发器90与处理器91之间通过总线连接。The transceiver 90 is connected to the processor 91 through a bus.

该方案在接收到TC报文后,首先将第二三层网络设备由备状态切换为备升主延时状态,若在第一设定时间内未接收到三层保护协议的心跳报文,才会将第二三层网络设备由备升主延时状态切换为主状态,并执行第二三层网络设备处于主状态的操作。In this solution, after receiving the TC message, firstly switch the second and third layer network equipment from the standby state to the backup main delay state. If the heartbeat message of the layer 3 protection protocol is not received within the first set time, Only then will the second and third layer network devices be switched from the backup master delay state to the main state, and the operation that the second and third layer network devices are in the main state will be performed.

可见,处于备状态的第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。It can be seen that the state of the second and third layer network devices in the standby state is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message, which is in the layer 2 ring network topology. change or the state of the port changes from DOWN to UP, the time to send TC packets is much shorter than the convergence time of the Layer 2 ring network, so it can be determined based on the received TC packets The second and third layer network devices are switched to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

具体的,上述三层保护协议包括VRRP和/或PIM。Specifically, the above-mentioned three-layer protection protocol includes VRRP and/or PIM.

具体的,上述TC报文是二层环网的边缘端口发送的;或者Specifically, the above-mentioned TC message is sent by an edge port of a layer 2 ring network; or

上述TC报文是阻塞端口发送的;或者The above TC message is sent by the blocked port; or

上述TC报文是由DOWN状态变为UP状态的端口发送的。The above TC message is sent by the port whose DOWN state changes to UP state.

可选的,上述处理器91,还用于:Optionally, the above processor 91 is also used for:

将第二三层网络设备由备状态切换为备升主延时状态之后,若收发器90接收到三层保护协议的心跳报文或者在第二设定时间内BFD的检测结果为UP状态,将第二三层网络设备由备升主延时状态切换为备状态。After the second and third-layer network equipment is switched from the standby state to the backup main delay state, if the transceiver 90 receives the heartbeat message of the three-layer protection protocol or the detection result of the BFD is in the UP state within the second set time, Switch the second and third layer network equipment from standby to main delay state to standby state.

基于同一发明构思,针对第二种网络设备由备状态到主状态的切换方法,本发明实施例提供一种网络设备,应用于包括三层网络和二层环网的组网中,三层网络中的第一三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,三层网络中的第二三层网络设备连接二层环网中的二层网络设备、且运行三层保护协议,第一三层网络设备处于主状态,第二三层网络设备处于备状态,该网络设备的结构如图10所示,包括:Based on the same inventive concept, and aiming at the second switching method of a network device from a standby state to a master state, an embodiment of the present invention provides a network device, which is applied to a network including a three-layer network and a two-layer ring network. The three-layer network The first and third layer network devices in the layer 2 ring network are connected to the layer 2 network devices in the layer 2 ring network and run the layer 3 protection protocol, and the second layer 3 network devices in the layer 3 network are connected to the layer 2 network devices in the layer 2 ring network, And run the three-layer protection protocol, the first three-layer network equipment is in the master state, the second three-layer network equipment is in the standby state, the structure of the network equipment is shown in Figure 10, including:

收发器100,用于接收拓扑变化TC报文。The transceiver 100 is configured to receive a topology change TC message.

处理器101,用于在BFD的检测结果为DOWN状态而导致第二三层网络设备由备状态切换为主状态后,收发器100接收到TC报文时,延时执行第二三层网络设备处于主状态的操作;若在第三设定时间内收发器100未接收到三层保护协议的心跳报文,执行第二三层网络设备处于主状态的操作。The processor 101 is configured to delay executing the second and third layer network devices when the transceiver 100 receives the TC message after the BFD detection result is in the DOWN state and the second and third layer network devices switch from the standby state to the main state. The operation in the master state: if the transceiver 100 does not receive the heartbeat message of the layer-3 protection protocol within the third set time, perform the operation that the second layer-3 network device is in the master state.

上述收发器100与处理器101之间通过总线连接。The transceiver 100 is connected to the processor 101 through a bus.

该方案该方案在BFD的检测结果为断开DOWN状态而导致第二三层网络设备由备状态切换为主状态后,接收到TC报文时,首先延时执行第二三层网络设备处于主状态的操作;若在第三设定时间内未接收到三层保护协议的心跳报文,才会执行第二三层网络设备处于主状态的操作。This solution In this solution, after the BFD detection result is disconnected DOWN state, which causes the second and third layer network devices to switch from the standby state to the main state, when receiving a TC message, the second and third layer network devices are first delayed. The operation of the state; if the heartbeat message of the layer-3 protection protocol is not received within the third set time, the operation that the second-layer and layer-3 network equipment is in the master state will be executed.

可见,第二三层网络设备的状态不仅仅根据三层保护协议的心跳报文和BFD的检测结果进行切换,还需要考虑TC报文,TC报文是在二层环网拓扑变化或者端口的状态由DOWN状态变化为UP状态时发出的,发送TC报文的时间要比二层环网的收敛时间短的多,因此可以根据接收到的TC报文来确定是否需要将第二三层网络设备切换为主状态,这样就可以避免备状态的第二三层网络设备误切换为主状态。It can be seen that the state of the second and third layer network devices is not only switched according to the heartbeat message of the layer 3 protection protocol and the detection result of BFD, but also needs to consider the TC message. It is sent when the status changes from DOWN to UP, and the time to send TC messages is much shorter than the convergence time of the Layer 2 ring network. The device switches to the main state, so that the second and third layer network devices in the standby state can be prevented from accidentally switching to the main state.

具体的,上述三层保护协议包括VRRP和/或PIM。Specifically, the above-mentioned three-layer protection protocol includes VRRP and/or PIM.

具体的,上述TC报文是二层环网的边缘端口发送的;或者Specifically, the above-mentioned TC message is sent by an edge port of a layer 2 ring network; or

上述TC报文是阻塞端口发送的;或者The above TC message is sent by the blocked port; or

上述TC报文是由DOWN状态变为UP状态的端口发送的。The above TC message is sent by the port whose DOWN state changes to UP state.

可选的,上述处理器101,还用于:Optionally, the above processor 101 is also used for:

在延时执行第二三层网络设备处于主状态的操作之后,若收发器100接收到三层保护协议的心跳报文,则将第二三层网络设备由主状态切换为备状态。After delaying the operation that the second layer 3 network device is in the master state, if the transceiver 100 receives the heartbeat message of the layer 3 protection protocol, it switches the second layer 3 network device from the master state to the standby state.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and combinations of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.

尽管已描述了本发明的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本发明范围的所有变更和修改。While alternative embodiments of the present invention have been described, additional changes and modifications can be made to those embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be interpreted to cover alternative embodiments and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. In this way, if the modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (18)

1. a kind of network equipment is arrived the switching method of major state by standby state, it is characterised in that applied to including three-layer network with In the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, the in the three-layer network the 1st Layer network device connects the two-layer network device in two layers of looped network and runs three-layer protection agreement, in the three-layer network The second three-layer network appliance connect two-layer network device and operation three-layer protection agreement in two layers of looped network, described the One three-layer network appliance is in major state, and second three-layer network appliance is in standby state, and methods described includes:
After second three-layer network appliance receives change in topology TC messages, by second three-layer network appliance by standby state Switch to the standby main delay state of liter;
If second three-layer network appliance does not receive the heartbeat message of the three-layer protection agreement in the first setting time, Second three-layer network appliance is main state by the main delay state switching of standby liter;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
2. the method as described in claim 1, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
3. method as claimed in claim 1 or 2, it is characterised in that switch second three-layer network appliance by standby state After the standby main delay state of liter, in addition to:
If second three-layer network appliance receives the heartbeat message of the three-layer protection agreement or in the second setting time Interior two-way converting detection BFD testing result is UP states, and second three-layer network appliance is cut by the standby main delay state of liter It is changed to standby state.
4. a kind of network equipment is arrived the switching method of major state by standby state, it is characterised in that applied to including three-layer network with In the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, the in the three-layer network the 1st Layer network device connects the two-layer network device in two layers of looped network and runs three-layer protection agreement, in the three-layer network The second three-layer network appliance connect two-layer network device and operation three-layer protection agreement in two layers of looped network, described the One three-layer network appliance is in major state, and second three-layer network appliance is in standby state, and methods described includes:
Cause second three-layer network appliance by standby shape in two-way converting detection BFD testing result to disconnect DOWN states After state switching is main state, when second three-layer network appliance receives change in topology TC messages, delay performs described second Three-layer network appliance is in the operation of major state;
If second three-layer network appliance does not receive the heartbeat message of the three-layer protection agreement in the 3rd setting time, Perform the operation that second three-layer network appliance is in major state;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
5. method as claimed in claim 4, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
6. the method as described in claim 4 or 5, it is characterised in that delay performs second three-layer network appliance and is in master After the operation of state, in addition to:
If receiving the heartbeat message of the three-layer protection agreement, second three-layer network appliance is switched to by major state Standby state.
7. a kind of network equipment is arrived the switching device of major state by standby state, it is characterised in that applied to including three-layer network with The second three-layer network appliance in the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, it is described The first three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network and operation three-layer protection association Discuss, second three-layer network appliance in the three-layer network connects the two-layer network device in two layers of looped network and transported Row three-layer protection agreement, first three-layer network appliance are in major state, and second three-layer network appliance is in standby state, Described device includes:
Receiving unit, for receiving change in topology TC messages;
Switch unit, for after the receiving unit receives the TC messages, by second three-layer network appliance by standby State switches to the standby main delay state of liter;And if the receiving unit does not receive described three layers in the first setting time The heartbeat message of agreement is protected, second three-layer network appliance is main state by the main delay state switching of standby liter;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
8. device as claimed in claim 7, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
9. device as claimed in claim 7 or 8, it is characterised in that the switch unit, be additionally operable to:
After second three-layer network appliance is switched into the standby main delay state of liter by standby state, if the receiving unit connects Receive the heartbeat message of the three-layer protection agreement or two-way converting detection BFD testing result is in the second setting time UP states, second three-layer network appliance is switched into standby state by the standby main delay state of liter.
10. a kind of network equipment is arrived the switching device of major state by standby state, it is characterised in that applied to including three-layer network with The second three-layer network appliance in the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, it is described The first three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network and operation three-layer protection association Discuss, second three-layer network appliance in the three-layer network connects the two-layer network device in two layers of looped network and transported Row three-layer protection agreement, first three-layer network appliance are in major state, and second three-layer network appliance is in standby state, Described device includes:
Receiving unit, for receiving change in topology TC messages;
Switch unit, for causing described two or three layer in two-way converting detection BFD testing result to disconnect DOWN states After the network equipment is main state by standby state switching, when the receiving unit receives the TC messages, delay performs described the Two three-layer network appliances are in the operation of major state;If the receiving unit does not receive described three layers in the 3rd setting time The heartbeat message of agreement is protected, performs the operation that second three-layer network appliance is in major state;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
11. device as claimed in claim 10, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
12. the device as described in claim 10 or 11, it is characterised in that the switch unit, be additionally operable to:
After delay execution second three-layer network appliance is in the operation of major state, if the receiving unit receives institute The heartbeat message of three-layer protection agreement is stated, then second three-layer network appliance is switched into standby state by major state.
A kind of 13. second three-layer network appliance, it is characterised in that applied in the networking including three-layer network and two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, described in the first three-layer network appliance connection in the three-layer network Two-layer network device in two layers of looped network and operation three-layer protection agreement, second three-layer network in the three-layer network Equipment connects the two-layer network device in two layers of looped network and operation three-layer protection agreement, first three-layer network appliance In major state, second three-layer network appliance is in standby state, and second three-layer network appliance includes:
Transceiver, for receiving change in topology TC messages;
Processor, for after the transceiver receives the TC messages, by second three-layer network appliance by standby state Switch to the standby main delay state of liter;If the transceiver does not receive the heart of the three-layer protection agreement in the first setting time Message is jumped, second three-layer network appliance is main state by the main delay state switching of standby liter;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
14. the second three-layer network appliance as claimed in claim 13, it is characterised in that the three-layer protection agreement includes virtual Route redundancy protocol VRRP and/or Protocol Independent Multicast PIM.
15. the second three-layer network appliance as described in claim 13 or 14, it is characterised in that the processor, be additionally operable to:
After second three-layer network appliance is switched into the standby main delay state of liter by standby state, if the transceiver receives The heartbeat message of the three-layer protection agreement or the testing result that two-way converting detects BFD in the second setting time are UP shapes State, second three-layer network appliance is switched into standby state by the standby main delay state of liter.
A kind of 16. second three-layer network appliance, it is characterised in that applied in the networking including three-layer network and two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, described in the first three-layer network appliance connection in the three-layer network Two-layer network device in two layers of looped network and operation three-layer protection agreement, second three-layer network in the three-layer network Equipment connects the two-layer network device in two layers of looped network and operation three-layer protection agreement, first three-layer network appliance In major state, second three-layer network appliance is in standby state, and second three-layer network appliance includes:
Transceiver, for receiving change in topology TC messages;
Processor, for causing second three-layer network in two-way converting detection BFD testing result to disconnect DOWN states After network equipment is main state by standby state switching, when the transceiver receives the TC messages, delay performs the described 2nd 3 Layer network device is in the operation of major state;If the transceiver does not receive the three-layer protection association in the 3rd setting time The heartbeat message of view, perform the operation that second three-layer network appliance is in major state;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
17. the second three-layer network appliance as claimed in claim 16, it is characterised in that the three-layer protection agreement includes virtual Route redundancy protocol VRRP and/or Protocol Independent Multicast PIM.
18. the second three-layer network appliance as described in claim 16 or 17, it is characterised in that the processor, be additionally operable to:
Performed in delay after second three-layer network appliance be in the operation of major state, if described in the transceiver receives The heartbeat message of three-layer protection agreement, then second three-layer network appliance is switched into standby state by major state.
CN201310386013.2A 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state Active CN103441940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310386013.2A CN103441940B (en) 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310386013.2A CN103441940B (en) 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state

Publications (2)

Publication Number Publication Date
CN103441940A CN103441940A (en) 2013-12-11
CN103441940B true CN103441940B (en) 2017-12-15

Family

ID=49695606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310386013.2A Active CN103441940B (en) 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state

Country Status (1)

Country Link
CN (1) CN103441940B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162699B (en) * 2015-07-31 2018-09-18 广州供电局有限公司 dynamic routing protocol optimization method and system
CN108430039B (en) * 2017-01-20 2021-12-14 迈普通信技术股份有限公司 Multicast optimization method, multicast equipment and system
US10680944B2 (en) * 2018-01-19 2020-06-09 Juniper Networks, Inc. Arbitrating mastership between redundant control planes of a virtual node
CN112751754B (en) * 2019-10-29 2022-05-13 华为技术有限公司 Method and device for selecting a port to be switched to a working state during dual-homing access
CN113300921A (en) * 2020-02-21 2021-08-24 华为技术有限公司 Information transmission method and equipment
CN114745250B (en) * 2022-03-23 2023-12-12 新华三技术有限公司 Port management method and device
CN115189988A (en) * 2022-07-12 2022-10-14 广东电网有限责任公司 Communication networking system based on power distribution network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968260A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing virtual router redundancy protocol switching between primary/standby devices
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN101945036A (en) * 2009-07-08 2011-01-12 中兴通讯股份有限公司 Judging method for failure of main router of virtual route redundancy protocol and router

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7990852B1 (en) * 2008-08-14 2011-08-02 Tellabs San Jose, Inc. Methods and apparatus for improving network communication using BFD and VRRP tracking system
KR101591102B1 (en) * 2010-01-07 2016-02-02 삼성전자주식회사 Method for router of virtual router redundancy protocol and communication system therefor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968260A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing virtual router redundancy protocol switching between primary/standby devices
CN101945036A (en) * 2009-07-08 2011-01-12 中兴通讯股份有限公司 Judging method for failure of main router of virtual route redundancy protocol and router
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol

Also Published As

Publication number Publication date
CN103441940A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
US10686749B2 (en) Packet sending method and network device
CN103441940B (en) The network equipment is by the switching method, device and the network equipment for state to major state
CN101047601B (en) Implementation method and system of dual-homing network based on VPLS
CN102232279B (en) Method for detecting loop position in Ethernet, and Ethernet switching device
US8102760B2 (en) Method for reconvergence after failure in a dual-homing network environment
CN102638389B (en) The redundancy backup method and system of a kind of TRILL network
CN104168193B (en) A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
CN103684716B (en) For carrying out the method and communication equipment of message transmission in industrial communication network
KR20140019377A (en) Technique for operating a network node
CN101800662A (en) Double-returning protection switching method based on VPLS and system
WO2012028029A1 (en) Switching method and system
US8711681B2 (en) Switch redundancy in systems with dual-star backplanes
CN101374075A (en) Method, device and system for protecting multicast source
US11601335B2 (en) Methods and systems for neighbor-acknowledged graceful insertion/removal protocol
CN101083625B (en) Method and apparatus for expediting link convergence
CN104796339B (en) Quick flood process method and device
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
CN103581025A (en) Method and system for processing routing information and equipment
WO2015196676A1 (en) Networking protection method and device, and main convergence network element in networking
US20140347976A1 (en) Virtual router redundancy protocol for scalable distributed default routing gateway
CN104702431B (en) A kind of method and device of Virtual Private Network double break protection
CN107592259B (en) Flow switching method in a kind of VRRP protection scene
CN103888353A (en) Protection group protection switching cut-back processing method and customer edge equipment
US8514746B1 (en) Priority inversion with spanning tree protocol to trigger path switching
CN102143004B (en) A link protection method and network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201028

Address after: No.8, Xiaoping Avenue, Badu Economic Development Zone, Zhenze Town, Wujiang District, Suzhou City, Jiangsu Province

Patentee after: TONGDING INTERCONNECTION INFORMATION Co.,Ltd.

Address before: 625, room 269, Connaught platinum Plaza, No. 518101, Qianjin Road, Xin'an street, Shenzhen, Guangdong, Baoan District

Patentee before: SHENZHEN SHANGGE INTELLECTUAL PROPERTY SERVICE Co.,Ltd.

Effective date of registration: 20201028

Address after: 625, room 269, Connaught platinum Plaza, No. 518101, Qianjin Road, Xin'an street, Shenzhen, Guangdong, Baoan District

Patentee after: SHENZHEN SHANGGE INTELLECTUAL PROPERTY SERVICE Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.