CN104079462B - Looped network configures detection method and device - Google Patents
Looped network configures detection method and device Download PDFInfo
- Publication number
- CN104079462B CN104079462B CN201410339297.4A CN201410339297A CN104079462B CN 104079462 B CN104079462 B CN 104079462B CN 201410339297 A CN201410339297 A CN 201410339297A CN 104079462 B CN104079462 B CN 104079462B
- Authority
- CN
- China
- Prior art keywords
- node
- identifier
- protocol message
- port
- erps protocol
- 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
Links
- 238000001514 detection method Methods 0.000 title abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000004891 communication Methods 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 7
- 238000007726 management method Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明提供一种环网配置检测方法及装置,该方法包括:邻居节点接收第一节点发送的以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识;所述邻居节点判断所述ERPS协议报文中携带的端口角色标识是否不为主端口标识以及接收方式标识为直连接收标识;若是,则所述邻居节点确定自身的端口角色标识配置错误。本发明实施例克服了现有技术中环网中网管无法获知环网中节点配置是否正确的技术问题,避免了环网因节点的配置错误而造成环网无法通信,保证了环网的通信质量。
The present invention provides a ring network configuration detection method and device, the method comprising: a neighbor node receives an Ethernet automatic protection switching ERPS protocol message sent by a first node, wherein, if the first node is the master node, the The ERPS protocol message carries the primary port identifier and the direct connection receiving identifier. If the first node is a non-primary node, the ERPS protocol packet carries the common port or neighbor port identifier and the forwarding and receiving identifier; the neighbor node judges that the Whether the port role identifier carried in the ERPS protocol message is not the main port identifier and the receiving mode identifier is a direct connection receiving identifier; if so, the neighbor node determines that its own port role identifier is configured incorrectly. The embodiment of the present invention overcomes the technical problem that the network management in the ring network cannot know whether the node configuration in the ring network is correct in the prior art, avoids the communication failure of the ring network caused by wrong configuration of the nodes in the ring network, and ensures the communication quality of the ring network.
Description
技术领域technical field
本发明实施例涉及以太网技术领域,尤其涉及一种环网配置检测方法及装置。The embodiment of the present invention relates to the technical field of Ethernet, and in particular to a ring network configuration detection method and device.
背景技术Background technique
随着以太网在局域网中的广泛应用,二层网络的规模越来越大,常用的生成树技术在扩展和收敛速度上存在不足。Extreme公司在2003年提出了ERPS协议环网保护技术,达到50ms倒换性能。以太环网保护的基本思路:通过简化网络,把网络分解成成环的最基本单元,简化计算,最终达到快速收敛的目的。ERPS技术的出现很好地解决了生成树存在的问题,ERPS以太环网保护协议是一个特殊的链路层协议,专门用于构建环状的以太网拓扑。以太环网保护协议在环网拓扑完整的情况下阻塞一条链路,防止出现数据环路形成广播风暴。在出现链路终端的情况下,协议迅速恢复之前阻断的链路,使环网各节点之间恢复通信。能很好地满足电信级别的收敛速度要求和网络的冗余备份功能。With the widespread application of Ethernet in LANs, the scale of Layer 2 networks is getting larger and larger, and the commonly used spanning tree technology is insufficient in terms of expansion and convergence speed. Extreme company proposed the ERPS protocol ring network protection technology in 2003, achieving 50ms switching performance. The basic idea of Ethernet ring network protection: by simplifying the network, decomposing the network into the most basic unit of the ring, simplifying the calculation, and finally achieving the purpose of fast convergence. The emergence of ERPS technology has solved the problem of spanning tree very well. ERPS Ethernet ring network protection protocol is a special link layer protocol, which is specially used to construct ring-shaped Ethernet topology. The Ethernet ring network protection protocol blocks a link when the ring network topology is complete, preventing data loops from forming broadcast storms. In the event of a link termination, the protocol quickly restores the previously blocked link to restore communication between the nodes of the ring network. It can well meet the convergence speed requirements of the telecom level and the redundant backup function of the network.
ERPS技术根据网络规划来划分单环、多环及非闭合环,在环中以控制VLAN来传递协议报文,都会设置一个主节点和邻居节点,主节点与邻居节点直连构成环网保护链路,正常情况下,该保护链路处于阻塞状态,从而达到破除二层环路的目的。而当链路或节点故障发生时,检测到故障的节点逐级传递故障,当主节点收到故障讯号时,将放开堵塞的链路,把流量的切换到备用链路,从而完成收敛。ERPS technology divides single ring, multi-ring and non-closed ring according to network planning. In the ring, the control VLAN is used to transmit protocol messages. A master node and neighbor nodes will be set up. The master node and neighbor nodes are directly connected to form a ring network protection chain. Under normal circumstances, the protection link is in a blocking state, so as to achieve the purpose of breaking the layer 2 loop. When a link or node failure occurs, the node that detects the failure transmits the failure step by step. When the master node receives the failure signal, it will release the blocked link and switch the traffic to the backup link to complete convergence.
然而,ERPS技术中网管无法获知环网中节点配置是否正确,导致环网因节点的配置错误而造成无法通信。However, in the ERPS technology, the network management cannot know whether the configuration of the nodes in the ring network is correct, which leads to the inability to communicate in the ring network due to the wrong configuration of the nodes.
发明内容Contents of the invention
本发明实施例提供一种环网配置检测方法及装置,以克服现有技术中环网中网管无法获知环网中节点配置是否正确的技术问题,避免了环网因节点的配置错误而造成环网无法通信,保证了环网的通信质量。The embodiment of the present invention provides a ring network configuration detection method and device to overcome the technical problem that the network management in the ring network cannot know whether the node configuration in the ring network is correct in the prior art, and avoid the ring network caused by the wrong configuration of the nodes in the ring network. Unable to communicate, which ensures the communication quality of the ring network.
本发明实施例第一方面提供了一种环网配置检测方法,包括:The first aspect of the embodiment of the present invention provides a ring network configuration detection method, including:
邻居节点接收第一节点发送的以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识;The neighbor node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, wherein, if the first node is the master node, the ERPS protocol message carries the master port identifier and the direct connection receiving identifier, if the The first node is a non-primary node, then the ERPS protocol message carries a common port or neighbor port identifier and a forwarding and receiving identifier;
所述邻居节点判断所述ERPS协议报文中携带的端口角色标识是否不为主端口标识以及接收方式标识为直连接收标识;The neighbor node judges whether the port role identifier carried in the ERPS protocol message is not a master port identifier and whether the receiving mode identifier is a direct connection receiving identifier;
若是,则所述邻居节点确定自身的端口角色标识配置错误。If yes, the neighbor node determines that its own port role identifier is incorrectly configured.
在第一方面的第一种可能的实现方式中,所述邻居节点接收第一节点发送的ERPS协议报文,包括:In a first possible implementation manner of the first aspect, the neighbor node receives the ERPS protocol message sent by the first node, including:
所述邻居节点接收第一节点直接发送的所述ERPS协议报文;The neighbor node receives the ERPS protocol message directly sent by the first node;
或者,or,
所述邻居节点接收所述第一节点通过第二节点转发的所述ERPS协议报文。The neighbor node receives the ERPS protocol message forwarded by the first node through the second node.
结合第一方面或第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,所述ERPS协议报文还携带源MAC地址、目的MAC地址。With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the ERPS protocol message further carries a source MAC address and a destination MAC address.
结合第一方面至第一方面第二种任一种可能实现方式,在第一方面第三种可能实现方式中,所述邻居节点确定自身的端口角色标识配置错误之后,还包括:In combination with any possible implementation manner from the first aspect to the second possible implementation manner of the first aspect, in the third possible implementation manner of the first aspect, after the neighbor node determines that its own port role identifier is incorrectly configured, it further includes:
邻居节点向网管发送所述邻居节点的端口角色标识配置错误消息,所述消息包含所述邻居节点接收的所述ERPS协议报文所携带的源MAC地址。The neighbor node sends a port role identifier configuration error message of the neighbor node to the network manager, where the message includes the source MAC address carried in the ERPS protocol message received by the neighbor node.
本发明实施例第二方面提供了一种环网配置检测方法,包括:The second aspect of the embodiment of the present invention provides a ring network configuration detection method, including:
第二节点接收第一节点发送的ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识、直连接收标识、源MAC地址以及目的地址,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识、转发接收标识、源MAC地址以及目的地址;The second node receives the ERPS protocol message sent by the first node, wherein, if the first node is a master node, the ERPS protocol message carries a master port identifier, a direct connection receiving identifier, a source MAC address and a destination address, If the first node is a non-master node, the ERPS protocol message carries a common port or neighbor port identifier, a forwarding and receiving identifier, a source MAC address, and a destination address;
所述第二节点判断所述ERPS协议报文携带的源MAC地址与所述第二节点本地存储的源MAC地址是否相同以及所述第二节点根据所述ERPS协议报文携带的目的MAC地址确定需要向邻居节点转发所述ERPS协议报文;The second node judges whether the source MAC address carried by the ERPS protocol message is the same as the source MAC address stored locally by the second node, and the second node determines whether the source MAC address carried by the ERPS protocol message The ERPS protocol message needs to be forwarded to neighbor nodes;
若是,则所述第二节点将所述ERPS协议报文携带的所述ERPS协议报文接收方式标识配置为转发接收标识;If so, the second node configures the ERPS protocol message receiving mode identifier carried by the ERPS protocol message as a forwarding and receiving identifier;
所述第二节点向所述邻居节点转发配置后的ERPS协议报文,所述ERPS协议报文用于邻居节点判断自身的端口角色标识配置是否错误。The second node forwards the configured ERPS protocol message to the neighbor node, and the ERPS protocol message is used by the neighbor node to judge whether the port role identifier configuration of itself is wrong.
本发明实施例第三方面提供了一种环网配置检测方法,包括:The third aspect of the embodiment of the present invention provides a ring network configuration detection method, including:
主节点接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带源媒体访问控制MAC地址、端口角色标识,所述端口角色标识包括主端口标识或邻居端口标识或普通端口标识;The master node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, the ERPS protocol message carries a source media access control MAC address and a port role identifier, and the port role identifier includes a master port identifier or a neighbor port identifier or Ordinary port identification;
所述主节点判断所述ERPS协议报文中携带的端口角色标识是否为主端口标识以及所述源MAC地址与主节点本地存储的源MAC地址不同,The master node judges whether the port role identifier carried in the ERPS protocol message is a master port identifier and whether the source MAC address is different from the source MAC address locally stored by the master node,
若是,则所述主节点确定所述主节点端口角色标识重复配置。If yes, the master node determines that the port role identifier of the master node is repeatedly configured.
在第三方面的第一种可能实现方式中,所述主节点确定所述主节点端口角色标识重复配置之后,还包括:In the first possible implementation manner of the third aspect, after the master node determines that the port role identifier of the master node is repeatedly configured, it further includes:
所述主节点向网管发送主节点端口角色标识重复配置消息,所述消息包含所述主节点源MAC地址以及所述接收的ERPS协议报文中携带的源MAC地址。The master node sends a master node port role identifier repeated configuration message to the network manager, and the message includes the source MAC address of the master node and the source MAC address carried in the received ERPS protocol message.
本方面第四方面提供了一种环网配置检测方法,包括:The fourth aspect of this aspect provides a ring network configuration detection method, including:
第二节点接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带控制虚拟局域网VLAN标识、环网RING标识;The second node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, and the ERPS protocol message carries a control virtual local area network VLAN identifier and a ring network RING identifier;
所述第二节点根据所述ERPS协议报文中携带的控制VLAN标识查找所述第二节点本地是否存储有所述控制VLAN标识,若是,则判断所述ERPS协议报文中携带的环网标识是否与所述第二节点本地存储的环网标识相同;The second node searches whether the second node locally stores the control VLAN ID according to the control VLAN ID carried in the ERPS protocol message, and if so, judges the ring network ID carried in the ERPS protocol message Whether it is the same as the ring network identifier stored locally by the second node;
若不同,则所述第二节点确定自身的环网标识与控制VLAN标识配置错误。If they are different, the second node determines that its own ring network identifier and control VLAN identifier are incorrectly configured.
在第四方面的第一种可能实现方式中,所述第二节点确定自身的环网标识与控制VLAN标识配置错误之后,还包括:In the first possible implementation manner of the fourth aspect, after the second node determines that its own ring network identifier and control VLAN identifier are incorrectly configured, it further includes:
所述第二节点向网管发送环网标识与控制VLAN标识配置错误消息,所述消息中包含所述第二节点本地存储的环网标识和控制VLAN标识以及所述第二节点接收的所述ERPS协议报文中所携带的环网标识和控制VLAN标识。The second node sends a ring network identifier and control VLAN identifier configuration error message to the network manager, and the message includes the ring network identifier and the control VLAN identifier locally stored by the second node and the ERPS received by the second node. The ring network identifier and the control VLAN identifier carried in the protocol message.
本发明第五方面提供了一种环网配置检测装置,包括:A fifth aspect of the present invention provides a ring network configuration detection device, including:
接收模块,用于接收第一节点发送以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识;The receiving module is configured to receive the Ethernet automatic protection switching ERPS protocol message sent by the first node, wherein, if the first node is the master node, the ERPS protocol message carries the main port identifier and the direct connection receiving identifier, if The first node is a non-master node, and the ERPS protocol message carries a common port or neighbor port identifier and a forwarding and receiving identifier;
判断模块,用于判断所述ERPS协议报文中携带的端口角色标识是否不为主端口标识以及接收方式标识为直连接收标识;若是,则所述邻居节点确定自身的端口角色标识配置错误。A judging module, configured to judge whether the port role identifier carried in the ERPS protocol message is not the main port identifier and the receiving mode identifier is a direct connection receiving identifier; if so, the neighbor node determines that its own port role identifier is configured incorrectly.
在第五方面的第一种可能实现方式中,所述接收模块,具体用于:In a first possible implementation manner of the fifth aspect, the receiving module is specifically configured to:
所述邻居节点接收第一节点直接发送的所述ERPS协议报文;The neighbor node receives the ERPS protocol message directly sent by the first node;
或者,or,
所述邻居节点接收所述第一节点通过第二节点转发的所述ERPS协议报文。The neighbor node receives the ERPS protocol message forwarded by the first node through the second node.
结合第五方面或第五方面第一种可能实现方式,在第五方面第二种可能实现方式中,所述ERPS协议报文还携带源MAC地址、目的MAC地址。With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in the second possible implementation manner of the fifth aspect, the ERPS protocol message further carries a source MAC address and a destination MAC address.
结合第五方面至第五方面第二种任一种可能实现方式,在第五方面第三种可能实现方式中,还包括:In combination with any possible implementation manner of the fifth aspect to the second aspect of the fifth aspect, the third possible implementation manner of the fifth aspect further includes:
发送模块,用于所述判断模块确定自身的端口角色标识配置错误之后,向网管发送所述邻居节点的端口角色标识配置错误消息,所述消息包含所述邻居节点接收的所述ERPS协议报文所携带的源MAC地址。The sending module is used for sending the port role identifier configuration error message of the neighbor node to the network management after the judging module determines that the port role identifier configuration error of itself, the message includes the ERPS protocol message received by the neighbor node The carried source MAC address.
本发明实施例第六方面提供了一种环网配置检测装置,包括:The sixth aspect of the embodiment of the present invention provides a ring network configuration detection device, including:
接收模块,用于接收第一节点发送的ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识、直连接收标识、源MAC地址以及目的地址,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识、转发接收标识、源MAC地址以及目的地址;A receiving module, configured to receive an ERPS protocol message sent by a first node, wherein, if the first node is a master node, the ERPS protocol message carries a main port identifier, a direct connection receiving identifier, a source MAC address, and a destination address, if the first node is a non-primary node, the ERPS protocol message carries a common port or neighbor port identifier, a forwarding and receiving identifier, a source MAC address, and a destination address;
判断模块,用于判断所述ERPS协议报文携带的源MAC地址与第二节点本地存储的源MAC地址是否相同以及所述第二节点根据所述ERPS协议报文携带的目的MAC地址确定需要向邻居节点转发所述ERPS协议报文;A judging module, configured to judge whether the source MAC address carried by the ERPS protocol message is the same as the source MAC address stored locally by the second node, and whether the second node determines that it needs to send the MAC address according to the destination MAC address carried by the ERPS protocol message. The neighbor node forwards the ERPS protocol message;
若是,则所述第二节点将所述ERPS协议报文携带的所述ERPS协议报文接收方式标识配置为转发接收标识;If so, the second node configures the ERPS protocol message receiving mode identifier carried by the ERPS protocol message as a forwarding and receiving identifier;
发送模块,用于向所述邻居节点转发配置后的ERPS协议报文,所述ERPS协议报文用于邻居节点判断自身的端口角色标识配置是否错误。The sending module is configured to forward the configured ERPS protocol message to the neighbor node, and the ERPS protocol message is used by the neighbor node to judge whether the port role identifier configuration of itself is wrong.
本发明实施例第七方面提供了一种环网配置检测装置,包括:The seventh aspect of the embodiment of the present invention provides a ring network configuration detection device, including:
接收模块,用于接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带源媒体访问控制MAC地址、端口角色标识,所述端口角色标识包括主端口标识或邻居端口标识或普通端口标识;The receiving module is configured to receive the Ethernet automatic protection switching ERPS protocol message sent by the first node, the ERPS protocol message carries a source media access control MAC address and a port role identifier, and the port role identifier includes a master port identifier or a neighbor Port ID or common port ID;
判断模块,用于判断所述ERPS协议报文中携带的端口角色标识是否为主端口标识以及所述源MAC地址与主节点本地存储的源MAC地址不同,A judging module, configured to judge whether the port role identifier carried in the ERPS protocol message is a master port identifier and whether the source MAC address is different from the source MAC address locally stored by the master node,
若是,则所述主节点确定所述主节点端口角色标识重复配置。If yes, the master node determines that the port role identifier of the master node is repeatedly configured.
在第七方面第一种可能实现方式中,还包括:In the first possible implementation manner of the seventh aspect, it also includes:
发送模块,用于判断模块确定所述主节点端口角色标识重复配置之后,向网管发送主节点端口角色标识重复配置消息,所述消息包含所述主节点源MAC地址以及所述接收的ERPS协议报文中携带的源MAC地址。The sending module is used to send the master node port role identifier repeated configuration message to the network management after the judging module determines that the port role identifier of the master node is repeatedly configured, and the message includes the source MAC address of the master node and the received ERPS protocol report The source MAC address carried in the text.
本发明第八方面提供了一种环网配置检测装置,包括:The eighth aspect of the present invention provides a ring network configuration detection device, including:
接收模块,用于接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带控制虚拟局域网VLAN标识、环网标识;The receiving module is used to receive the Ethernet automatic protection switching ERPS protocol message sent by the first node, and the ERPS protocol message carries a control virtual local area network VLAN identifier and a ring network identifier;
判断模块,用于根据所述ERPS协议报文中携带的控制VLAN标识查找所述第二节点本地是否存储有所述控制VLAN标识,若是,则判断所述ERPS协议报文中携带的环网标识是否与所述第二节点本地存储的环网标识相同;A judging module, configured to search whether the second node locally stores the control VLAN ID according to the control VLAN ID carried in the ERPS protocol message, and if so, judge the ring network ID carried in the ERPS protocol message Whether it is the same as the ring network identifier stored locally by the second node;
若不同,则所述第二节点确定自身的环网标识与控制VLAN标识配置错误。If they are different, the second node determines that its own ring network identifier and control VLAN identifier are incorrectly configured.
在第八方面第一种可能实现方式中,还包括:In the first possible implementation manner of the eighth aspect, it also includes:
发送模块,用于判断模块确定自身的环网标识与控制VLAN标识配置错误之后,向网管发送环网标识与控制VLAN标识配置错误消息,所述消息中包含所述第二节点本地存储的环网标识和控制VLAN标识以及所述第二节点接收的所述ERPS协议报文中所携带的环网标识和控制VLAN标识。The sending module is used to send a ring network identifier and control VLAN identifier configuration error message to the network manager after the judging module determines that its own ring network identifier and control VLAN identifier are configured incorrectly, and the message includes the ring network identifier stored locally by the second node. identification and control VLAN identification, and the ring network identification and control VLAN identification carried in the ERPS protocol message received by the second node.
本发明实施例,邻居节点通过接收第一节点发送的以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识,该邻居节点通过所述ERPS协议报文中携带的端口角色标识以及接收方式标识判断自身的端口角色标识配置是否错误。克服了现有技术中环网中网管无法获知环网中节点配置是否正确的技术问题,避免了环网因节点配置错误而造成环网无法通信,保证了环网的通信质量。In the embodiment of the present invention, the neighbor node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, wherein, if the first node is the master node, the ERPS protocol message carries the master port identifier and the direct connection If the first node is a non-primary node, the ERPS protocol packet carries a common port or neighbor port identifier and a forwarding and receiving identifier, and the neighbor node uses the port role identifier and the port role identifier carried in the ERPS protocol packet The receiving mode identifier judges whether the configuration of its own port role identifier is wrong. It overcomes the technical problem that the network management in the ring network cannot know whether the node configuration in the ring network is correct in the prior art, avoids the communication failure of the ring network caused by wrong node configuration in the ring network, and ensures the communication quality of the ring network.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明环网配置检测方法实施例一的流程图;Fig. 1 is the flow chart of Embodiment 1 of the ring network configuration detection method of the present invention;
图2为本发明环网配置检测方法实施例二的流程图;FIG. 2 is a flow chart of Embodiment 2 of the ring network configuration detection method of the present invention;
图3为本发明环网配置检测方法实施例三的流程图;3 is a flow chart of Embodiment 3 of the ring network configuration detection method of the present invention;
图4为本发明环网配置检测方法实施例四的流程图;4 is a flow chart of Embodiment 4 of the ring network configuration detection method of the present invention;
图5为本发明环网配置检测装置实施例一的结构示意图;5 is a schematic structural diagram of Embodiment 1 of the ring network configuration detection device of the present invention;
图6为本发明环网配置检测装置实施例二的结构示意图;6 is a schematic structural diagram of Embodiment 2 of the ring network configuration detection device of the present invention;
图7为本发明环网配置检测装置实施例三的结构示意图;7 is a schematic structural diagram of Embodiment 3 of the ring network configuration detection device of the present invention;
图8为本发明环网配置检测装置实施例四的结构示意图;8 is a schematic structural diagram of Embodiment 4 of the ring network configuration detection device of the present invention;
图9为本发明环网配置检测装置实施例五的结构示意图;9 is a schematic structural diagram of Embodiment 5 of the ring network configuration detection device of the present invention;
图10为本发明环网配置检测装置实施例六的结构示意图;10 is a schematic structural diagram of Embodiment 6 of the ring network configuration detection device of the present invention;
图11为本发明环网配置检测装置实施例七的结构示意图。FIG. 11 is a schematic structural diagram of Embodiment 7 of the ring network configuration detection device of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图1为本发明环网配置检测方法实施例一的流程图,如图1所示,本实施例的方法可以包括:Fig. 1 is the flowchart of Embodiment 1 of the ring network configuration detection method of the present invention, as shown in Fig. 1, the method of this embodiment may include:
步骤101、邻居节点接收第一节点发送或第二节点转发的以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识;Step 101, the neighbor node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node or forwarded by the second node, wherein, if the first node is the master node, the ERPS protocol message carries the master port identifier and A direct connection receiving identifier, if the first node is a non-primary node, the ERPS protocol message carries a common port or neighbor port identifier and a forwarding and receiving identifier;
步骤102、所述邻居节点判断所述ERPS协议报文中携带的端口角色标识是否不为主端口标识以及接收方式标识为直连接收标识,若是,则所述邻居节点确定自身的端口角色标识配置错误。Step 102, the neighbor node judges whether the port role identifier carried in the ERPS protocol message is not the main port identifier and the receiving mode identifier is a direct connection receiving identifier, if so, the neighbor node determines its own port role identifier configuration mistake.
具体来说,邻居节点接收主节点发送的ERPS协议报文,该报文携带主端口标识、直连接收标识;邻居节点接收非主节点发送的ERPS协议报文,当非主节点为传输节点时,该报文携带普通端口,当非主节点为邻居节点时,端口角色为邻居端口标识、ERPS协议报文接收方式标识都为转发接收标识,若邻居节点判断该ERPS协议报文中携带的端口角色标识为主端口标识,且接收方式标识为直连接收标识,则邻居节点确定自身的端口角色标识配置错误。Specifically, the neighbor node receives the ERPS protocol packet sent by the master node, which carries the master port identifier and the direct connection receiving identifier; the neighbor node receives the ERPS protocol packet sent by the non-master node, when the , the message carries a common port. When the non-primary node is a neighbor node, the port role is the neighbor port identifier, and the ERPS protocol message receiving mode identifier is both the forwarding and receiving identifier. If the neighbor node judges the port carried in the ERPS protocol message If the role ID is the main port ID, and the receiving mode ID is the direct connection receiving ID, then the neighbor node determines that its own port role ID is incorrectly configured.
进一步地,所述邻居节点接收第一节点发送的ERPS协议报文,包括:Further, the neighbor node receives the ERPS protocol message sent by the first node, including:
所述邻居节点接收第一节点直接发送的所述ERPS协议报文;The neighbor node receives the ERPS protocol message directly sent by the first node;
或者,or,
所述邻居节点接收所述第一节点通过第二节点转发的所述ERPS协议报文。The neighbor node receives the ERPS protocol message forwarded by the first node through the second node.
进一步地,所述ERPS协议报文还携带源MAC地址、目的MAC地址。Further, the ERPS protocol message also carries a source MAC address and a destination MAC address.
进一步地,所述邻居节点确定自身的端口角色标识配置错误之后,还包括:Further, after the neighbor node determines that its own port role identifier is incorrectly configured, it further includes:
邻居节点向网管发送所述邻居节点的端口角色标识配置错误消息,所述消息包含所述邻居节点接收的所述ERPS协议报文所携带的源MAC地址。The neighbor node sends a port role identifier configuration error message of the neighbor node to the network manager, where the message includes the source MAC address carried in the ERPS protocol message received by the neighbor node.
具体来说,邻居节点确定自身的端口角色标识配置错误之后,可以向网管发送自身的端口角色标识配置错误消息,该消息包含邻居节点接收的ERPS协议报文所携带的源MAC地址,用以网管查找到该地址对应的节点进行重新配置,避免了环网因节点的错误配置而造成的环网无法通信。Specifically, after the neighbor node determines that its own port role identifier is configured incorrectly, it can send its own port role identifier configuration error message to the network management system. The message contains the source MAC address carried in the ERPS protocol message received by the neighbor node for The node corresponding to the address is found to be reconfigured, which prevents the ring network from being unable to communicate due to the wrong configuration of the node.
本发明实施例,邻居节点通过接收第一节点发送的以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识,该邻居节点通过所述ERPS协议报文中携带的端口角色标识以及接收方式标识判断自身的端口角色标识配置是否错误。克服了现有技术中环网中网管无法获知环网中节点配置是否正确的技术问题,避免了环网因节点配置错误而造成环网无法通信,保证了环网的通信质量。In the embodiment of the present invention, the neighbor node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, wherein, if the first node is the master node, the ERPS protocol message carries the master port identifier and the direct connection If the first node is a non-primary node, the ERPS protocol packet carries a common port or neighbor port identifier and a forwarding and receiving identifier, and the neighbor node uses the port role identifier and the port role identifier carried in the ERPS protocol packet The receiving mode identifier judges whether the configuration of its own port role identifier is wrong. It overcomes the technical problem that the network management in the ring network cannot know whether the node configuration in the ring network is correct in the prior art, avoids the communication failure of the ring network caused by wrong node configuration in the ring network, and ensures the communication quality of the ring network.
图2为本发明环网配置检测方法实施例二的流程图,如图2所示,本实施例的方法可以包括:Fig. 2 is the flow chart of Embodiment 2 of the ring network configuration detection method of the present invention, as shown in Fig. 2, the method of this embodiment may include:
步骤201、第二节点接收第一节点发送的太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识、直连接收标识、源MAC地址以及目的地址,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识、转发接收标识、源MAC地址以及目的地址;Step 201, the second node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, wherein, if the first node is the master node, the ERPS protocol message carries the main port identifier and the direct connection receiving identifier , a source MAC address and a destination address, if the first node is a non-master node, the ERPS protocol message carries a common port or neighbor port identifier, a forwarding and receiving identifier, a source MAC address and a destination address;
步骤202、所述第二节点判断所述ERPS协议报文携带的源MAC地址与所述第二节点本地存储的源MAC地址是否相同以及所述第二节点根据所述ERPS协议报文携带的目的MAC地址确定需要向邻居节点转发所述ERPS协议报文,若是,则所述第二节点将所述ERPS协议报文携带的所述ERPS协议报文接收方式标识配置为转发接收标识;Step 202, the second node judges whether the source MAC address carried by the ERPS protocol message is the same as the source MAC address stored locally by the second node and whether the second node carries the purpose according to the ERPS protocol message The MAC address determines that the ERPS protocol message needs to be forwarded to a neighbor node, and if so, the second node configures the ERPS protocol message receiving mode identifier carried by the ERPS protocol message as a forwarding and receiving identifier;
步骤203、所述第二节点向所述邻居节点转发配置后的ERPS协议报文,所述ERPS协议报文用于邻居节点判断自身的端口角色标识配置是否错误。Step 203, the second node forwards the configured ERPS protocol message to the neighbor node, and the ERPS protocol message is used by the neighbor node to judge whether the port role identifier configuration of itself is wrong.
具体来说,本实施例为第一节点通过第二节点向邻居节点转发ERPS协议报文。第二节点接收第一节点发送的ERPS协议报文,该ERPS协议报文除端口角色标识、ERPS协议报文接收方式标识之外,还携带有源MAC地址、目的MAC地址。其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识、直连接收标识、源MAC地址以及目的地址,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识、转发接收标识。第二节点首先判断该ERPS协议报文携带的源MAC地址与本地存储的源MAC地址是否相同,若相同,第二节点根据该ERPS协议报文携带的目的MAC地址确定该ERPS协议报文需要向邻居节点转发,则第二节点将该ERPS协议报文携带的报文接收方式标识配置为转发接收标识,并将配置后的ERPS协议报文转发给邻居节点,用于邻居节点判断自身的端口角色标识配置是否错误。Specifically, in this embodiment, the first node forwards the ERPS protocol message to the neighbor node through the second node. The second node receives the ERPS protocol message sent by the first node, and the ERPS protocol message carries a source MAC address and a destination MAC address in addition to the port role identifier and the ERPS protocol message receiving mode identifier. Wherein, if the first node is a master node, the ERPS protocol message carries a master port identifier, a direct connection receiving identifier, a source MAC address, and a destination address; if the first node is a non-master node, the The ERPS protocol message carries the common port or neighbor port identifier, forwarding and receiving identifier. The second node first judges whether the source MAC address carried by the ERPS protocol message is the same as the locally stored source MAC address, and if identical, the second node determines that the ERPS protocol message needs to be sent to If the neighbor node forwards, the second node configures the message receiving mode identifier carried by the ERPS protocol message as the forwarding and receiving identifier, and forwards the configured ERPS protocol message to the neighbor node for the neighbor node to judge its own port role Indicates whether the configuration is incorrect.
本发明实施例,第二节点转发第一节点向邻居节点发送的ERPS协议报文,第二节点判断该ERPS协议报文携带的源MAC地址与本地存储的源MAC地址是否相同,若相同,第二节点根据该ERPS协议报文携带的目的MAC地址确定该ERPS协议报文需要向邻居节点转发,则第二节点将该ERPS协议报文携带的报文接收方式标识配置为转发接收标识,并将配置后的ERPS协议报文转发给邻居节点,通过第二节点配置报文接收方式标识,提高了ERPS协议报文检测节点配置的准确性。In the embodiment of the present invention, the second node forwards the ERPS protocol message sent by the first node to the neighbor node, and the second node judges whether the source MAC address carried in the ERPS protocol message is the same as the source MAC address stored locally. The second node determines that the ERPS protocol message needs to be forwarded to a neighbor node according to the destination MAC address carried by the ERPS protocol message, then the second node configures the message receiving mode identifier carried by the ERPS protocol message as a forwarding and receiving identifier, and sets The configured ERPS protocol message is forwarded to the neighbor node, and the message receiving mode identifier is configured by the second node, thereby improving the configuration accuracy of the ERPS protocol message detection node.
图3为本发明环网配置检测方法实施例三的流程图,如图3所示,本实施例的方法可以包括:Fig. 3 is a flow chart of Embodiment 3 of the ring network configuration detection method of the present invention. As shown in Fig. 3, the method of this embodiment may include:
步骤301、主节点接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带源媒体访问控制MAC地址、端口角色标识,所述端口角色标识包括主端口标识或邻居端口标识或普通端口标识;Step 301, the master node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, the ERPS protocol message carries the source media access control MAC address, port role identifier, and the port role identifier includes the master port identifier or neighbor Port ID or common port ID;
步骤302、所述主节点判断所述ERPS协议报文中携带的端口角色标识是否为主端口标识以及所述源MAC地址与主节点本地存储的源MAC地址不同,若是,则所述主节点确定所述主节点端口角色标识重复配置。Step 302, the master node judges whether the port role identifier carried in the ERPS protocol message is the master port identifier and the source MAC address is different from the source MAC address locally stored in the master node, and if so, the master node determines The port role identifier of the master node is repeatedly configured.
进一步地,所述主节点确定所述主节点端口角色标识重复配置之后,还包括:Further, after the master node determines that the port role identifier of the master node is repeatedly configured, it further includes:
所述主节点向网管发送主节点端口角色标识重复配置消息,所述消息包含所述主节点源MAC地址以及所述接收的ERPS协议报文中携带的源MAC地址。The master node sends a master node port role identifier repeated configuration message to the network manager, and the message includes the source MAC address of the master node and the source MAC address carried in the received ERPS protocol message.
具体来说,主节点接收第一节点发送的ERPS协议报文,该报文携带源MAC地址、端口角色标识,第一节点可为任意节点,当第一节点为主节点时,所述端口角色标识为主端口标识,当第一节点为邻居节点时,该端口角色标识为邻居端口标识,当第一节点为普通节点时,其端口角色标识为普通端口标识。该主节点判断若端口角色标识为主端口标识,但源MAC地址与主节点本地存储的源MAC地址不同,则主节点确定环网中主节点端口角色标识重复配置。Specifically, the master node receives the ERPS protocol message sent by the first node. The message carries the source MAC address and port role identifier. The first node can be any node. When the first node is the master node, the port role The identifier is a master port identifier. When the first node is a neighbor node, the port role identifier is a neighbor port identifier. When the first node is a common node, its port role identifier is a common port identifier. The master node determines that if the port role identifier is the master port identifier, but the source MAC address is different from the source MAC address stored locally by the master node, the master node determines that the port role identifier of the master node in the ring network is configured repeatedly.
本发明实施例,主节点接收第一节点发送的以太网自动保护切换ERPS协议报文,ERPS协议报文携带源媒体访问控制MAC地址、端口角色标识,端口角色标识包括主端口标识或邻居端口标识或普通端口标识,主节点判断ERPS协议报文中携带的端口角色标识是否为主端口标识以及源MAC地址与主节点本地存储的源MAC地址不同,若是,则主节点确定主节点端口角色标识重复配置。克服了现有技术中环网中网管无法获知环网中节点配置是否正确的技术问题,避免了环网因节点配置错误而造成环网无法通信,保证了环网的通信质量。In the embodiment of the present invention, the master node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, and the ERPS protocol message carries the source media access control MAC address and the port role identifier, and the port role identifier includes the master port identifier or the neighbor port identifier Or ordinary port ID, the master node judges whether the port role ID carried in the ERPS protocol message is the master port ID and the source MAC address is different from the source MAC address stored locally by the master node, if so, the master node determines that the port role ID of the master node is duplicated configure. It overcomes the technical problem that the network manager in the ring network cannot know whether the node configuration in the ring network is correct in the prior art, avoids the failure of communication in the ring network caused by wrong node configuration in the ring network, and ensures the communication quality of the ring network.
图4为本发明环网配置检测方法实施例四的流程图,如图4所示,本实施例的装置包括:Fig. 4 is a flowchart of Embodiment 4 of the ring network configuration detection method of the present invention. As shown in Fig. 4, the device of this embodiment includes:
步骤401、第二节点接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带控制虚拟局域网VLAN标识、环网标识;Step 401, the second node receives the Ethernet automatic protection switching ERPS protocol message sent by the first node, and the ERPS protocol message carries a control virtual local area network VLAN ID and a ring network ID;
步骤402、所述第二节点根据所述ERPS协议报文中携带的控制VLAN标识查找所述第二节点本地是否存储有所述控制VLAN标识,若是,则判断所述ERPS协议报文中携带的环网标识是否与所述第二节点本地存储的环网标识相同,若不同,则所述第二节点确定自身的环网标识与控制VLAN标识配置错误。Step 402, the second node searches whether the second node locally stores the control VLAN identifier according to the control VLAN identifier carried in the ERPS protocol message, and if so, judges whether the control VLAN identifier carried in the ERPS protocol message Whether the ring network identifier is the same as the ring network identifier stored locally by the second node, if not, the second node determines that its own ring network identifier and the control VLAN identifier are incorrectly configured.
具体来说,本实施例第一节点和第二节点可为环网中任一节点,针对于环网中任一节点具有多个控制VLAN,多个环网标识,相对于一个环网标识与之对应的控制VLAN是唯一的,因此,当节点配置的环网标识与控制VLAN不匹配时,会导致环网无法通信,本实施例,第二节点接收第一节点发送的ERPS协议报文,所述ERPS协议报文携带VLAN标识、环网标识,该第二节点首先根据所述ERPS协议报文中携带的控制VLAN标识查找所述第二节点本地是否存储有所述控制VLAN标识,若是,则判断所述ERPS协议报文中携带的环网标识是否与所述第二节点本地存储的环网标识相同,若不同,则所述第二节点确定自身的环网标识与控制VLAN标识配置错误。Specifically, the first node and the second node in this embodiment can be any node in the ring network, and any node in the ring network has multiple control VLANs and multiple ring network identifiers. The corresponding control VLAN is unique. Therefore, when the ring network identifier configured by the node does not match the control VLAN, the ring network cannot communicate. In this embodiment, the second node receives the ERPS protocol message sent by the first node. The ERPS protocol message carries a VLAN identifier and a ring network identifier, and the second node first searches whether the second node locally stores the control VLAN identifier according to the control VLAN identifier carried in the ERPS protocol message, and if so, Then it is judged whether the ring network identification carried in the ERPS protocol message is identical to the ring network identification locally stored by the second node, if different, then the second node determines that the ring network identification and the control VLAN identification configuration error of itself .
进一步地,所述第二节点确定自身的环网标识与控制VLAN标识配置错误之后,还包括:Further, after the second node determines that its own ring network identifier and the control VLAN identifier are configured incorrectly, it further includes:
所述第二节点向网管发送环网标识与控制VLAN标识配置错误消息,所述消息中包含所述第二节点本地存储的环网标识和控制VLAN标识以及所述第二节点接收的所述ERPS协议报文中所携带的环网标识和控制VLAN标识。The second node sends a ring network identifier and control VLAN identifier configuration error message to the network manager, and the message includes the ring network identifier and the control VLAN identifier locally stored by the second node and the ERPS received by the second node. The ring network identifier and the control VLAN identifier carried in the protocol message.
图5为本发明环网配置检测装置实施例一的结构示意图,如图5所示,本实施例装置,包括:Fig. 5 is a schematic structural diagram of Embodiment 1 of the ring network configuration detection device of the present invention. As shown in Fig. 5, the device of this embodiment includes:
接收模块101,用于接收第一节点发送的以太网自动保护切换ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识以及直连接收标识,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识以及转发接收标识;The receiving module 101 is configured to receive an Ethernet automatic protection switching ERPS protocol message sent by a first node, wherein, if the first node is a master node, the ERPS protocol message carries a master port identifier and a direct connection receiving identifier , if the first node is a non-master node, the ERPS protocol message carries a common port or neighbor port identifier and a forwarding and receiving identifier;
判断模块102,用于判断所述ERPS协议报文中携带的端口角色标识是否不为主端口标识以及接收方式标识为直连接收标识;若是,则所述邻居节点确定自身的端口角色标识配置错误。Judging module 102, for judging whether the port role identifier carried in the ERPS protocol message is not the main port identifier and the receiving mode identifier is a direct connection receiving identifier; if so, the neighbor node determines that its own port role identifier is configured incorrectly .
所述接收模块101,具体用于:The receiving module 101 is specifically used for:
所述邻居节点接收第一节点直接发送的所述ERPS协议报文;The neighbor node receives the ERPS protocol message directly sent by the first node;
或者,or,
所述邻居节点接收所述第一节点通过第二节点转发的所述ERPS协议报文。The neighbor node receives the ERPS protocol message forwarded by the first node through the second node.
进一步地,所述ERPS协议报文还携带源MAC地址、目的MAC地址。Further, the ERPS protocol message also carries a source MAC address and a destination MAC address.
本实施例的装置,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and will not be repeated here.
图6为本发明环网配置检测装置实施例二的结构示意图,如图6所示,本实施例的装置在图5所示的装置基础之上,还包括:Fig. 6 is a schematic structural diagram of Embodiment 2 of the ring network configuration detection device of the present invention. As shown in Fig. 6, the device of this embodiment is based on the device shown in Fig. 5 and further includes:
发送模块103,用于所述判断模块确定自身的端口角色标识配置错误之后,向网管发送所述邻居节点的端口角色标识配置错误消息,所述消息包含所述邻居节点接收的所述ERPS协议报文所携带的源MAC地址。The sending module 103 is used for sending the port role identifier configuration error message of the neighbor node to the network manager after the judgment module determines that the port role identifier configuration error of itself, the message includes the ERPS protocol report received by the neighbor node The source MAC address carried in the file.
本实施例的装置,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and will not be repeated here.
图7为本发明环网配置检测装置实施例三的结构示意图,如图7所示,本实施例的装置包括:Fig. 7 is a schematic structural diagram of Embodiment 3 of the ring network configuration detection device of the present invention. As shown in Fig. 7, the device of this embodiment includes:
接收模块201,用于接收第一节点发送的ERPS协议报文,其中,若所述第一节点为主节点,则所述ERPS协议报文携带主端口标识、直连接收标识、源MAC地址以及目的地址,若所述第一节点为非主节点,则所述ERPS协议报文携带普通端口或邻居端口标识、转发接收标识、源MAC地址以及目的地址;The receiving module 201 is configured to receive the ERPS protocol message sent by the first node, wherein, if the first node is the master node, the ERPS protocol message carries the main port identifier, the direct connection receiving identifier, the source MAC address and Destination address, if the first node is a non-master node, the ERPS protocol message carries a common port or neighbor port identifier, a forwarding and receiving identifier, a source MAC address, and a destination address;
判断模块202,用于判断所述ERPS协议报文携带的源MAC地址与第二节点本地存储的源MAC地址是否相同以及所述第二节点根据所述ERPS协议报文携带的目的MAC地址确定需要向邻居节点转发所述ERPS协议报文;Judging module 202, configured to judge whether the source MAC address carried by the ERPS protocol message is the same as the source MAC address stored locally by the second node and whether the second node determines the required MAC address according to the destination MAC address carried by the ERPS protocol message. Forwarding the ERPS protocol message to neighbor nodes;
若是,则所述第二节点将所述ER协议报文携带的所述ERPS协议报文接收方式标识配置为转发接收标识;If so, the second node configures the ERPS protocol message receiving mode identifier carried by the ER protocol message as a forwarding and receiving identifier;
转发模块203,用于向所述邻居节点转发配置后的ERPS协议报文,所述ERPS协议报文用于邻居节点判断自身的端口角色标识配置是否错误。The forwarding module 203 is configured to forward the configured ERPS protocol message to the neighbor node, and the ERPS protocol message is used by the neighbor node to judge whether the port role identifier configuration of itself is wrong.
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2 , and its implementation principle and technical effect are similar, and will not be repeated here.
图8为本发明环网配置检测装置实施例四的结构示意图,如图8所示,本实施例的装置包括:Fig. 8 is a schematic structural diagram of Embodiment 4 of the ring network configuration detection device of the present invention. As shown in Fig. 8, the device of this embodiment includes:
接收模块301,用于接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带源媒体访问控制MAC地址、端口角色标识,所述端口角色标识包括主端口标识或邻居端口标识或普通端口标识;The receiving module 301 is configured to receive the Ethernet automatic protection switching ERPS protocol message sent by the first node, the ERPS protocol message carries a source media access control MAC address and a port role identifier, and the port role identifier includes a master port identifier or Neighbor port ID or normal port ID;
判断模块302,用于判断所述ERPS协议报文中携带的端口角色标识是否为主端口标识以及所述源MAC地址与主节点本地存储的源MAC地址不同,A judging module 302, configured to judge whether the port role identifier carried in the ERPS protocol message is a master port identifier and whether the source MAC address is different from the source MAC address locally stored by the master node,
若是,则所述主节点确定所述主节点端口角色标识重复配置。If yes, the master node determines that the port role identifier of the master node is repeatedly configured.
本实施例的装置,可以用于执行图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 4 , and its implementation principle and technical effect are similar, and details are not repeated here.
图9为本发明环网配置检测装置实施例五的结构示意图,如图9所示,本实施例装置在图8所示的装置的基础之上,还包括:Fig. 9 is a schematic structural diagram of Embodiment 5 of the ring network configuration detection device of the present invention. As shown in Fig. 9, the device of this embodiment is based on the device shown in Fig. 8 and further includes:
发送模块303,用于判断模块确定所述主节点端口角色标识重复配置之后,向网管发送主节点端口角色标识重复配置消息,所述消息包含所述主节点源MAC地址以及所述接收的ERPS协议报文中携带的源MAC地址。The sending module 303 is configured to send a repeated configuration message of the master node port role identifier to the network manager after the judging module determines that the port role identifier of the master node is repeatedly configured, and the message includes the source MAC address of the master node and the received ERPS protocol Source MAC address carried in the packet.
本实施例的装置,可以用于执行图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 4 , and its implementation principle and technical effect are similar, and details are not repeated here.
图10为本发明环网配置检测装置实施例六的结构示意图,如图10所示,本实施例装置包括:Fig. 10 is a schematic structural diagram of Embodiment 6 of the ring network configuration detection device of the present invention. As shown in Fig. 10, the device of this embodiment includes:
接收模块401,用于接收第一节点发送的以太网自动保护切换ERPS协议报文,所述ERPS协议报文携带控制虚拟局域网VLAN标识、环网标识;The receiving module 401 is configured to receive the Ethernet automatic protection switching ERPS protocol message sent by the first node, and the ERPS protocol message carries a control virtual local area network VLAN ID and a ring network ID;
判断模块402,用于根据所述ERPS协议报文中携带的控制VLAN标识查找所述第二节点本地是否存储有所述控制VLAN标识,若是,则判断所述ERPS协议报文中携带的环网标识是否与所述第二节点本地存储的环网标识相同;Judging module 402, configured to search whether the second node locally stores the control VLAN identifier according to the control VLAN identifier carried in the ERPS protocol message, and if so, judge the ring network identifier carried in the ERPS protocol message Whether the identifier is the same as the ring network identifier stored locally by the second node;
若不同,则所述第二节点确定自身的环网标识与控制VLAN标识配置错误。If they are different, the second node determines that its own ring network identifier and control VLAN identifier are incorrectly configured.
本实施例的装置,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 5 , and its implementation principle and technical effect are similar, and will not be repeated here.
图11为本发明环网配置检测装置实施例七的结构示意图,如图11所示,本实施例装置在图10所示的装置基础之上,还包括:Fig. 11 is a schematic structural diagram of Embodiment 7 of the ring network configuration detection device of the present invention. As shown in Fig. 11, the device of this embodiment is based on the device shown in Fig. 10 and further includes:
发送模块403,用于判断模块确定自身的环网标识与控制VLAN标识配置错误之后,向网管发送环网标识与控制VLAN标识配置错误消息,所述消息中包含所述第二节点本地存储的环网标识和控制VLAN标识以及所述第二节点接收的所述ERPS协议报文中所携带的环网标识和控制VLAN标识。The sending module 403 is configured to send a ring network identifier and a control VLAN identifier configuration error message to the network manager after the judging module determines that its own ring network identifier and the control VLAN identifier are configured incorrectly, and the message includes the ring identifier locally stored by the second node. A network identifier and a control VLAN identifier, and a ring network identifier and a control VLAN identifier carried in the ERPS protocol message received by the second node.
本实施例的装置,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 5 , and its implementation principle and technical effect are similar, and will not be repeated here.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410339297.4A CN104079462B (en) | 2014-07-16 | 2014-07-16 | Looped network configures detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410339297.4A CN104079462B (en) | 2014-07-16 | 2014-07-16 | Looped network configures detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104079462A CN104079462A (en) | 2014-10-01 |
CN104079462B true CN104079462B (en) | 2017-10-17 |
Family
ID=51600516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410339297.4A Active CN104079462B (en) | 2014-07-16 | 2014-07-16 | Looped network configures detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104079462B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105790978A (en) * | 2014-12-23 | 2016-07-20 | 中兴通讯股份有限公司 | Network manager communication message processing method and device, server and main control board |
CN106571936A (en) * | 2015-10-08 | 2017-04-19 | 中兴通讯股份有限公司 | Loop network protection data configuration method and device |
CN105897507B (en) * | 2016-03-31 | 2019-09-17 | 杭州数梦工场科技有限公司 | The condition detection method and device of node device |
WO2018090210A1 (en) * | 2016-11-15 | 2018-05-24 | 华为技术有限公司 | Service packet transmission method, and node apparatus |
CN110838943B (en) * | 2019-11-08 | 2023-04-07 | 迈普通信技术股份有限公司 | Ring network configuration method, device, network equipment and storage medium |
CN114401324B (en) * | 2021-12-30 | 2024-03-01 | 华为技术有限公司 | Message forwarding method, network equipment and system |
CN114500117B (en) * | 2022-04-15 | 2022-07-05 | 北京全路通信信号研究设计院集团有限公司 | Looped network Master configuration error judgment method and device based on looped network storm flow characteristics |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5949755A (en) * | 1996-04-12 | 1999-09-07 | Fujitsu Network Communications, Inc. | ATM emulated path protection |
US7099287B1 (en) * | 2001-03-06 | 2006-08-29 | Cisco Systems O.I.A. (1988) Ltd. | Node detection and ring configuration for physical star connected networks |
CN101364890A (en) * | 2007-08-09 | 2009-02-11 | 华为技术有限公司 | Method and device for verifying network configuration information |
CN101958831B (en) * | 2010-06-10 | 2013-03-13 | 福建星网锐捷网络有限公司 | Ethernet ring network failure recovery method, Ethernet ring network and switching equipment |
-
2014
- 2014-07-16 CN CN201410339297.4A patent/CN104079462B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5949755A (en) * | 1996-04-12 | 1999-09-07 | Fujitsu Network Communications, Inc. | ATM emulated path protection |
US7099287B1 (en) * | 2001-03-06 | 2006-08-29 | Cisco Systems O.I.A. (1988) Ltd. | Node detection and ring configuration for physical star connected networks |
CN101364890A (en) * | 2007-08-09 | 2009-02-11 | 华为技术有限公司 | Method and device for verifying network configuration information |
CN101958831B (en) * | 2010-06-10 | 2013-03-13 | 福建星网锐捷网络有限公司 | Ethernet ring network failure recovery method, Ethernet ring network and switching equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104079462A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104079462B (en) | Looped network configures detection method and device | |
CN102232279B (en) | Method for detecting loop position in Ethernet, and Ethernet switching device | |
CN102077521B (en) | Method and system for link aggregation | |
US10708081B2 (en) | Failure protection method based on ring protection link, device, and system | |
EP2555476A1 (en) | Method, system and device for protecting multicast in communication network | |
US10721094B2 (en) | Ethernet ring protection switching method and node | |
CN103053139B (en) | Message processing method and system | |
EP2161880A1 (en) | A method for processing ether rig net message and an ether rig net protection system using the method | |
CN100461739C (en) | RPR bridge redundancy protection method and RPR bridge ring equipment | |
CN102984014A (en) | Data transmission method and network system | |
CN101483571B (en) | RRPP configuring method, system and device | |
WO2016034127A1 (en) | System and method for achieving dual-node interconnection pseudo-wire | |
CN101237343B (en) | Method for quick failure switching and quick switching system | |
CN102487348B (en) | Method and system for realizing looped network uplink protection | |
CN101771705B (en) | Processing method based on RRPP and device | |
CN102957588A (en) | Method and system for protecting looped network from broadcast storm | |
US10489236B2 (en) | Method and system for managing a communication network | |
CN111526078A (en) | Sub-ring network redundancy expansion protocol applied to diversified network topology | |
CN102025561B (en) | Method and system for refreshing MAC (Medium Access Controller) in Ethernet ring | |
CN103746912B (en) | Data message transmission method and equipment based on subring link | |
CN106059824B (en) | fault processing method and device | |
CN104717147B (en) | rapid ring protection protocol load sharing method and device | |
CN103414604B (en) | Based on leakage protection VLAN detection method and device in the ethernet ring network of RRPP | |
CN107070721B (en) | Virtual local area network protection method and device | |
CN104219126A (en) | Automatic learning method and equipment for subring protocol VLAN (virtual local area network) in virtual channel mode |
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 |