CN109450765A - A kind of collection method and device of topology information - Google Patents

A kind of collection method and device of topology information Download PDF

Info

Publication number
CN109450765A
CN109450765A CN201811536560.3A CN201811536560A CN109450765A CN 109450765 A CN109450765 A CN 109450765A CN 201811536560 A CN201811536560 A CN 201811536560A CN 109450765 A CN109450765 A CN 109450765A
Authority
CN
China
Prior art keywords
node
message
port
amplifying
information
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.)
Granted
Application number
CN201811536560.3A
Other languages
Chinese (zh)
Other versions
CN109450765B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811536560.3A priority Critical patent/CN109450765B/en
Publication of CN109450765A publication Critical patent/CN109450765A/en
Application granted granted Critical
Publication of CN109450765B publication Critical patent/CN109450765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Abstract

The embodiment of the present application provides the collection method and device of a kind of topology information, is related to field of communication technology.The method is applied to Ethernet ring protection and switches the host node in ERPS looped network, the described method includes: sending the first NR-RB amplifying message, so that other nodes in ERPS looped network add the nodal information of itself in the first NR-RB amplifying message received, and it is forwarded to next node, receive the first NR-RB amplifying message of the nodal information for carrying other nodes of neighbor node forwarding, and according to the nodal information of the nodal information of itself and other nodes, generate the topology information of ERPS looped network, send the 2nd NR-RB amplifying message, so that other nodes obtain topology information according to the 2nd NR-RB amplifying message received.Using the application, each node in ERPS looped network can be collected into the topology information of ERPS looped network.

Description

A kind of collection method and device of topology information
Technical field
This application involves fields of communication technology, more particularly to the collection method and device of a kind of topology information.
Background technique
Ethernet ring protection switches (English: Ethernet Ring Protection Switching, abbreviation: ERPS) association View is a kind of ethernet ring network link layer protocol for having high reliability and stability.It can be prevented when ethernet ring network is complete Broadcast storm caused by data loopback, and when link failure occurs for ethernet ring network, can restore rapidly on looped network each node it Between communication path, have higher convergence rate.
Generally included in ERPS looped network master (Owner) node, neighbours' (Neighbor) node and at least one Commonly (Normal) node.Wherein, each node includes two ports, wherein the port for receiving NR-RB message can be described as message Receiving port, the port for sending NR-RB message can be described as message source mouth;Neighbor node is a section adjacent with host node Point, link between host node and neighbor node be Loop Protection link (English: Ring Protection Link, referred to as: RPL), two ports of RPL chain road are the port RPL, other ports are common port;Host node and neighbor node pass through obstruction With the link switchover for decontroling the port RPL realization ERPS loop.
Based on the prior art, each node in ERPS looped network only saves the nodal information of itself, without saving other sections The nodal information of point, the network management personnel for leading to ERPS looped network can not effectively judge current ERPS looped network scale.
Summary of the invention
The collection method and device for being designed to provide a kind of topology information of the embodiment of the present application, so as in ERPS looped network Each node can be collected into the topology information of ERPS looped network.Specific technical solution is as follows:
In a first aspect, providing a kind of collection method of topology information, the method is switched applied to Ethernet ring protection Host node in ERPS looped network, which comprises
The first link-recovery NR- Loop Protection link obstructions RB amplifying message is sent, so that its in the ERPS looped network His node is the first preset value in the first identifier field for determining the first NR-RB amplifying message received, and the first NR-RB expands When exhibition message does not carry the nodal information of itself, the node letter of itself is added in the first NR-RB amplifying message received Breath, and it is forwarded to next node;
The first NR-RB amplifying message of the nodal information for carrying other nodes of neighbor node forwarding is received, and According to the nodal information of the nodal information of itself and other nodes, the topology information of the ERPS looped network is generated;
The 2nd NR-RB amplifying message is sent, so that other described nodes are determining the 2nd NR-RB extension received The second identifier field of message is the second preset value, and when the 2nd NR-RB amplifying message carries the nodal information of itself, It determines that the 2nd NR-RB amplifying message carries the topology information, and obtains the topology information.
Optionally, the nodal information includes node identification, the port-mark of message receiver mouth and message source mouth Port-mark;First node is host node in the topology information, the last one node is neighbor node;
The method also includes:
If the ERPS state of itself is idle state, by the message receiver of first node in the topology information The port status mark of the message source mouth of mouth and the last one node is set as blocked state, and will be in the topology information The port status mark of other ports is set as forwarding state.
Optionally, the method also includes:
Signal Fail SF that a node is sent when detecting link failure, carrying third identification field is received to expand Message is opened up, the nodal information of one node is included at least in the SF amplifying message, one node is ordinary node Or neighbor node;
If it is determined that the value of the third identification field is third preset value, then according to the node identification of one node With the topology information of the ERPS looped network, the faulty link of one node is determined, by first section in the topology information The port status mark of the message source mouth of the message receiver mouth and the last one node of point is set as forwarding state, and will The port status mark of port corresponding with the faulty link is set as blocked state on one node.
Second aspect, provides a kind of collection method of topology information, and the method is switched applied to Ethernet ring protection First node in ERPS looped network, the first node are ordinary node or neighbor node, further include master in the ERPS looped network Node, which comprises
Receive the first link-recovery NR- Loop Protection link obstructions RB amplifying message that host node is sent;
If it is determined that the first identifier field of the first NR-RB amplifying message received is the first preset value and the first NR-RB Amplifying message does not carry the nodal information of itself, then the node of itself is added in the first NR-RB amplifying message received Information, and it is forwarded to next node;
Receive the second link-recovery NR- Loop Protection link obstructions RB amplifying message that host node is sent;
If it is determined that the second identifier field of the 2nd NR-RB amplifying message received is the second preset value and described 2nd NR-RB amplifying message carries the nodal information of itself, it is determined that the 2nd NR-RB amplifying message carries described open up Information is flutterred, and obtains the topology information.
Optionally, the nodal information includes node identification, the port-mark of message receiver mouth and message source mouth Port-mark;First node is host node in the topology information, the last one node is neighbor node, and the method is also Include:
If the ERPS state of itself is idle state, by the message receiver of first node in the topology information The port status mark of the message source mouth of mouth and the last one node is set as blocked state, and will be in the topology information The port status mark of other ports is set as forwarding state.
Optionally, described before the nodal information for adding itself in the first NR-RB amplifying message received described Method further include:
According to the value of the first identifier field, the nodal information that the first NR-RB amplifying message allows to carry is determined Maximum number;
If it is determined that the number for the nodal information that the first NR-RB amplifying message currently carries is equal to the maximum number, then will The value of the first identifier field increases default value, and the first NR-RB amplifying message is allowed the nodal information of carrying Maximum number increases preset number, executes the step that the nodal information of itself is added in the first NR-RB amplifying message received Suddenly;
If it is determined that the number for the nodal information that the reserved field carries is less than the maximum number, then described connecing is executed The step of adding the nodal information of itself in the first NR-RB amplifying message received.
Optionally, the method also includes:
When the first node detects link failure, the signal mistake for carrying third identification field is sent to host node SF amplifying message is lost, so that receiving the node of the SF amplifying message in the value for determining the third identification field is third When preset value, according to the topology information of the node identification of the first node and the ERPS looped network, the first node is determined Faulty link, by the message source of the message receiver mouth of first node and the last one node in the topology information Mouthful port status mark is set as forwarding state, and by the end of port corresponding with the faulty link on the first node Mouth status indicator is set as blocked state.
The third aspect, provides a kind of collection device of topology information, and described device is switched applied to Ethernet ring protection Host node in ERPS looped network, described device include sending module, receiving module and generation module:
The sending module, for sending the first link-recovery NR- Loop Protection link obstructions RB amplifying message, so that institute It is first default that other nodes in ERPS looped network, which are stated, in the first identifier field for determining the first NR-RB amplifying message received Value, and when the first NR-RB amplifying message does not carry the nodal information of itself, in the first NR-RB amplifying message received The nodal information of itself is added, and is forwarded to next node;
The receiving module is receiving the first of the nodal information for carrying other nodes that neighbor node forwards When NR-RB amplifying message, the generation module is used for according to the nodal information of the host node and the node of other nodes Information generates the topology information of the ERPS looped network;
The sending module is also used to send the 2nd NR-RB amplifying message, so that other described nodes are received in determination The 2nd NR-RB amplifying message second identifier field be the second preset value, and the 2nd NR-RB amplifying message carry When having the nodal information of itself, determine that the 2nd NR-RB amplifying message carries the topology information, and obtain the topology Information.
Optionally, the nodal information includes node identification, the port-mark of message receiver mouth and message source mouth Port-mark;First node is host node in the topology information, the last one node is neighbor node;
Described device further includes setup module:
When the ERPS state of the host node is idle state, the setup module is by first in the topology information The port status mark of the message source mouth of the message receiver mouth and the last one node of a node is set as blocked state, And forwarding state is set by the port status mark of other ports in the topology information.
Optionally, the receiving module, be also used to receive it is that a node is sent when detecting link failure, carry The Signal Fail SF amplifying message of third identification field, the node that one node is included at least in the SF amplifying message are believed Breath, one node is ordinary node or neighbor node;
The setup module is also used to when the value for determining the third identification field is third preset value, according to institute The node identification an of node and the topology information of the ERPS looped network are stated, determines the faulty link of one node, by institute State the port status mark of the message source mouth of the message receiver mouth and the last one node of first node in topology information Knowledge is set as forwarding state, and the port status of port corresponding with the faulty link on one node is identified and is arranged For blocked state.
Fourth aspect, provides a kind of collection device of topology information, and described device is switched applied to Ethernet ring protection First node in ERPS looped network, the first node are ordinary node or neighbor node, further include master in the ERPS looped network Node, described device include receiving module, adding module, sending module and obtain module:
The receiving module, the first link-recovery NR- Loop Protection link obstructions RB for receiving host node transmission expand Open up message;
The adding module, for being first in the first identifier field for determining the first NR-RB amplifying message received Preset value and when the first NR-RB amplifying message does not carry the nodal information of the first node, in the first NR- received The nodal information of the first node is added in RB amplifying message, the sending module is used to turn the first NR-RB amplifying message It is sent to next node;
The receiving module is also used to receive the second link-recovery NR- Loop Protection link obstructions RB of host node transmission Amplifying message;
The acquisition module, for being in the second identifier field of determining the 2nd NR-RB amplifying message received Second preset value and when the 2nd NR-RB amplifying message carries the nodal information of the first node, determines described second NR-RB amplifying message carries the topology information, and obtains the topology information.
Optionally, the nodal information includes node identification, the port-mark of message receiver mouth and message source mouth Port-mark;First node is host node in the topology information, the last one node is neighbor node, and described device is also Including setup module:
It is idle state in the ERPS state of the first node, the setup module is by first in the topology information The port status mark of the message source mouth of the message receiver mouth and the last one node of a node is set as blocked state, And forwarding state is set by the port status mark of other ports in the topology information.
Optionally, described device further includes determining module and increases module:
The determining module determines that the first NR-RB amplifying message allows for the value according to the first identifier field The maximum number of the nodal information of carrying;
The increase module, for being equal in the number for determining nodal information that the first NR-RB amplifying message currently carries When the maximum number, the value of the first identifier field is increased into default value, and the first NR-RB amplifying message is allowed The maximum number of the nodal information of carrying increases preset number, and it is described in first received to trigger the adding module execution The step of nodal information of the first node is added in NR-RB amplifying message;
The determining module is also used to be less than the maximum in the number for the nodal information for determining the reserved field carrying When number, triggers the adding module and execute the section for adding the first node in the first NR-RB amplifying message received The step of point information.
Optionally, the sending module is also used to when the first node detects link failure, is sent to host node The Signal Fail SF amplifying message of third identification field is carried, so as to receive the node of the SF amplifying message determining When the value for stating third identification field is third preset value, according to the node identification of the first node and the ERPS looped network Topology information determines the faulty link of the first node, by the message receiver mouth of first node in the topology information Be set as forwarding state with the port status of the message source mouth of the last one node mark, and by the first node with The port status mark of the corresponding port of the faulty link is set as blocked state.
5th aspect, provides a kind of host node, including processor, communication interface, memory and communication bus, wherein Processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in first aspect.
6th aspect, provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program realizes method and step described in first aspect when the computer program is executed by processor.
7th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes the collection method of topology information described in above-mentioned first aspect.
Eighth aspect provides a kind of network equipment, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in second aspect.
9th aspect, provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium It is stored with computer program in matter, method and step described in second aspect is realized when the computer program is executed by processor.
Tenth aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes the collection method of topology information described in above-mentioned second aspect.
The collection method and device of topology information provided by the embodiments of the present application, applied to the node in ERPS looped network.It is main Node can send the first link-recovery NR- Loop Protection link obstructions RB amplifying message, so that other sections in ERPS looped network Point is the first preset value in the first identifier field for determining the first NR-RB amplifying message received, and the first NR-RB extension is reported When Wen Wei carries the nodal information of itself, the nodal information of itself is added in the first NR-RB amplifying message received, and It is forwarded to next node.Host node can receive the first NR- of the nodal information for carrying other nodes of neighbor node forwarding RB amplifying message, and according to the nodal information of the nodal information of itself and other nodes, the topology information of ERPS looped network is generated, so The 2nd NR-RB amplifying message is sent afterwards, so that other nodes are in the second identifier for determining the 2nd NR-RB amplifying message received Field is the second preset value, and when the 2nd NR-RB amplifying message carries the nodal information of itself, determines that the 2nd NR-RB extends Message carries topology information, and obtains topology information.In this way, ERPS ring can be collected into each node in ERPS looped network The topology information of net, the network management personnel of ERPS looped network can check the topology information of ERPS looped network by any node, from And current ERPS looped network scale is effectively judged.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the architecture diagram of ERPS looped network provided by the embodiments of the present application;
Fig. 2 is provided by the embodiments of the present application be traditional EPRS protocol massages form schematic diagram;
Fig. 3 is a kind of flow chart of the collection method of topology information provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart of the collection method of topology information provided by the embodiments of the present application;
Fig. 5 is a kind of flow chart of the update method of topology information provided by the embodiments of the present application;
Fig. 6 is a kind of flow chart of the update method of topology information provided by the embodiments of the present application;
Fig. 7 is a kind of exemplary flow chart of the collection method of topology information provided by the embodiments of the present application;
Fig. 8 is a kind of flow chart of the update method of topology information provided by the embodiments of the present application;
Fig. 9 is a kind of structural schematic diagram of the collection device of topology information provided by the embodiments of the present application;
Figure 10 is a kind of structural schematic diagram of the collection device of topology information provided by the embodiments of the present application;
Figure 11 is a kind of structural schematic diagram of the collection device of topology information provided by the embodiments of the present application;
Figure 12 is a kind of structural schematic diagram of the collection device of topology information provided by the embodiments of the present application;
Figure 13 is a kind of structural schematic diagram of the collection device of topology information provided by the embodiments of the present application;
Figure 14 is a kind of structural schematic diagram of the network equipment provided by the embodiments of the present application;
Figure 15 is a kind of structural schematic diagram of the network equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of collection method of topology information, and the method can be applied to ERPS looped network. As shown in Figure 1, being a kind of architecture diagram of ERPS looped network provided by the embodiments of the present application.The ERPS looped network includes host node, neighbours Node, the first ordinary node and the second ordinary node.Wherein, host node passes through the second end of first port and the first ordinary node Mouth is connected;First ordinary node is connected by third port with the 4th port of the second ordinary node;Second ordinary node passes through Fifth port is connected with the 6th port of neighbor node;Neighbor node is connected by the 7th port with the 8th port of host node; Link between host node and neighbor node is RPL link, correspondingly, the 7th port and the 8th port port RPL, other ports For common port.Meanwhile according to the routing direction of NR-RB message, first port, third port, fifth port and the 7th port For message source mouth, second port, the 4th port, the 6th port and the 8th port are message receiver mouth.
In order to make it easy to understand, being illustrated first to message format involved in the present embodiment.
As shown in Fig. 2, being traditional EPRS protocol massages, i.e. looped network automatic protection switching is (English: Ring Automatic Protection Switching, referred to as: R-APS) message form schematic diagram.Wherein, as shown in Table 1, in R-APS message Each field is described as follows:
Table one
The embodiment of the present application extends NR-RB message, to realize the collection and update of topology.First, utilize shape State retain (Status Reserved, can be defined as in the application enhancing report (English: Enhanced Report, referred to as: ER)) field is as identification field, to distinguish traditional NR-RB message and NR-RB amplifying message.For example, node receives NR- After RB message, node may determine that whether the er field in NR-RB message is 0.If er field is 0, then it represents that NR-RB report Text is traditional NR-RB message.If er field is non-zero, then it represents that the NR-RB message is NR-RB amplifying message.Second, benefit Nodal information is carried with the reserved field (2 field of Reserved) in NR-RB amplifying message.
Similarly, when a certain node (hereinafter referred to as malfunctioning node) in ERPS looped network detects that local first port is corresponding Link failure when, which can set the first port to blocked state, and by local second port to Other nodes send SF message, so that host node is after receiving the SF message, by the non-faulting port in blocked state Port (i.e. the port RPL) state is set as forwarding state, to realize switching for link.In the embodiment of the present application, to SF message Extension has been carried out to realize topological fault notification.Firstly, distinguishing traditional SF message using er field and for topological failure The SF amplifying message of notice.For example, after node receives SF message, node may determine that whether the er field in SF message is 0. If er field is 0, then it represents that the SF message is traditional SF message.If er field is non-zero, then it represents that the SF message is SF Amplifying message.Secondly, carrying the node of malfunctioning node using the reserved field (2 field of Reserved) in SF amplifying message Information.The particular content that NR-RB amplifying message and SF amplifying message carry is subsequent to will do it detailed description.
Below in conjunction with specific embodiment, to a kind of collection method progress of topology information provided by the embodiments of the present application Detailed description, as shown in Figure 3, the specific steps are as follows:
Step 301, the first NR-RB amplifying message is sent, so that other nodes in ERPS looped network were received in determination The first identifier field of first NR-RB amplifying message is the first preset value, and the first NR-RB amplifying message does not carry itself When nodal information, the nodal information of itself is added in the first NR-RB amplifying message received, and be forwarded to next node.
In practical applications, the host node in ERPS looped network can be according to preset sending cycle, into the ERPS looped network Other nodes send NR-RB message, to detect whether ERPS looped network occurs link failure.
In the embodiment of the present application, every preset number sending cycle, host node can be common to first be attached thereto Node sends the first NR-RB amplifying message (for ease of description, hereinafter referred to as the first integrity measurement (English: Integrity Measurement, referred to as: IM) message).First ordinary node is receiving the first NR-RB amplifying message, and completes corresponding position After reason, by treated, the first NR-RB amplifying message is forwarded to the second ordinary node, until neighbor node expands the first NR-RB Exhibition message is forwarded to host node.First NR-RB amplifying message other than the function of traditional NR-RB message may be implemented, It can be also used for the collection and update of topology information.In the embodiment of the present application, the NR-RB extension report of topology information collection will be used for Text is defined as the first IM message.
Specifically, host node is when sending the first IM message, it can be in reserved field (such as Reserved of the first IM message 2) nodal information of addition itself in, it is of course also possible to send the first IM message of the nodal information for not carrying itself.This Shen It please be introduced so that host node sends the first IM message of the nodal information for carrying itself as an example, other situations in embodiment It is similar therewith.Meanwhile host node can also set the first identifier field (i.e. er field) in the first IM message to first in advance If value.Wherein, the first preset value is non-zero value.It is subsequent, it, can be in the first IM message after other nodes receive the first IM message Reserved field in add the nodal information of itself, to realize the collection of topology information, after specific treatment process extended meeting into Row is described in detail.
For example, as shown in Figure 1, host node sends the first IM message to the first ordinary node.Wherein, the guarantor of the first IM message The nodal information of host node is carried in section of writeeing down characters.As shown in Table 2, the node letter carried for the reserved field of the first IM message The example of breath.
Table two
Serial number Node identification Message receiver mouth Message source mouth
1 Host node 8th port First port
Step 302, the first NR-RB for receiving the nodal information for carrying other nodes of neighbor node forwarding extends report Text, and according to the nodal information of the nodal information of itself and other nodes, generate the topology information of ERPS looped network;
In the embodiment of the present application, host node can receive the first IM message of neighbor node forwarding by RPL link, show So, the nodal information of whole nodes in ERPS looped network is carried in the reserved field of the first IM message, i.e. ERPS looped network Topology information collection finishes.Then, host node can believe the node of each node carried in the reserved field of the first IM message Breath is stored in local, to obtain the topology information of ERPS looped network.
For example, as shown in Figure 1, the first IM message is sent out after the first ordinary node, the second ordinary node by neighbor node Host node is given, at this point, the nodal information of the whole nodes carried in the reserved field for the first IM message that neighbor node is sent, These nodal informations can be stored in local by host node, to obtain ERPS looped network according to the nodal information of whole nodes Topology information.As shown in Table 3, the example of the nodal information carried for the reserved field of the first IM message.
Table three
Serial number Node identification Message receiver mouth Message source mouth
1 Host node 8th port First port
2 First ordinary node Second port Third port
3 Second ordinary node 4th port Fifth port
4 Neighbor node 6th port 7th port
In addition, the case where sending the first IM message of the nodal information for not carrying itself for host node, host node is received After first IM message of the nodal information for carrying other nodes forwarded to neighbor node, need to obtain the node letter of itself Breath.Then, host node can generate the topology letter of ERPS looped network according to the nodal information of the nodal information and other nodes of itself Breath.
Step 303, the 2nd NR-RB amplifying message is sent, so that other nodes are determining the 2nd NR-RB extension received The second identifier field of message is the second preset value, and when the 2nd NR-RB amplifying message carries the nodal information of itself, is determined 2nd NR-RB amplifying message carries topology information, and obtains topology information.
In the embodiment of the present application, the 2nd NR-RB amplifying message for being used for topology information synchronization/update is defined as the 2nd IM Message.
Specifically, in the embodiment of the present application, it, can be to the first common section after host node obtains the topology information of ERPS looped network Point sends the 2nd NR-RB amplifying message (for ease of description, hereinafter referred to as the 2nd IM message), so that other nodes receive the After two IM messages, the nodal information of each node in the topology information that the reserved field of the 2nd IM message of storage carries, to obtain The topology information of ERPS looped network.Wherein, the second identifier field (i.e. er field) in the 2nd IM message is set as the second preset value, Second preset value is non-zero value.
Optionally, in the embodiment of the present application, nodal information may include the port-mark of node identification, message receiver mouth With the port-mark of message source mouth, first node is host node in topology information, the last one node is neighbor node, So, host node, can also be according to the state of ERPS looped network, in topology information after the topology information for obtaining ERPS looped network The port status of each port is identified, the specific process is as follows: if the ERPS state of host node itself is idle state, By the port status of the message receiver mouth of first node in topology information and the message source mouth of the last one node Mark is set as blocked state, and sets forwarding state for the port status mark of other ports in topology information.
In the embodiment of the present application, if the ERPS state of host node is idle state, illustrate the port RPL in ERPS looped network Port status be blocked state, the port status of other ports is forwarding state.Therefore, host node can will be in topology information First node (i.e. host node) message receiver mouth (i.e. the port RPL of host node) and the last one node (i.e. neighbours Node) the port status of message source mouth (i.e. the port RPL of neighbor node) be set as blocked state, and by topology information In the port status of other message receiver mouths (i.e. common port) and other message source mouths (i.e. common port) be set as Forwarding state.
For example, as shown in Figure 1, host node can be by the port status of the port RPL of host node and the port neighbor node RPL It is set as blocked state, and sets forwarding state for the port status of port common in topology information.As shown in Table 4, to open up Flutter the port status of each port in information.
Table four
Serial number Node identification Message receiver mouth/port status Message source mouth/port status
1 Host node Eight ports/blocked state First port/forwarding state
2 First ordinary node Second port/forwarding state Third port/forwarding state
3 Second ordinary node Four ports/forwarding state Fifth port/forwarding state
4 Neighbor node Six ports/forwarding state Seven ports/blocked state
The embodiment of the present application also provides a kind of collection methods of topology information.This method is applied to general in ERPS looped network Logical node and neighbor node.Below in conjunction with specific embodiment, to a kind of receipts of topology information provided by the embodiments of the present application Set method is described in detail, as shown in Figure 4, the specific steps are as follows:
Step 401, the first NR-RB amplifying message that host node is sent is received.
In the embodiment of the present application, first node can receive the first IM report of host node transmission or upper node forwarding Text, it is then possible to be parsed to the first IM message.
Optionally, after first node receives NR-RB message, the node that itself is carried in reserved field is sent in host node In the case where the NR-RB message of information, can by way of judging whether the value of reserved field of NR-RB message is 0 come The type of NR-RB is distinguished, if the value of reserved field is 0, illustrates that reserved field does not carry nodal information, NR-RB report Text is the NR-RB message in traditional R-APS message, which directly can be transmitted to next node by first node. If the value of reserved field is not 0, illustrate to carry nodal information in reserved field, which is for carrying out The NR-RB message (i.e. IM message) that topology information collection or topology information update.In addition, first node can also be according to NR-RB The value of the er field carried in message judges whether the NR-RB message is IM message.Wherein, first node is according to NR-RB The value of the er field carried in message come judge the NR-RB message whether be IM message treatment process, it is subsequent will do it in detail It is thin to introduce.
Step 402, however, it is determined that the first identifier field of the first NR-RB amplifying message received be the first preset value and First NR-RB amplifying message does not carry the nodal information of itself, then adds certainly in the first NR-RB amplifying message received The nodal information of body, and it is forwarded to next node.
In the embodiment of the present application, first node can be previously stored with local node identification (such as the MAC of first node Address).First node receives NR-RB message, it can be determined that the value of the er field (i.e. first identifier field) of NR-RB message It whether is the first preset value.Wherein, the first preset value is non-zero value.If the er field of NR-RB message is the first preset value, Determine the NR-RB message for NR-RB amplifying message.Since NR-RB amplifying message may be above-mentioned first IM message, it is also possible to Above-mentioned 2nd IM message, therefore, first node can inquire the reservation of the NR-RB amplifying message according to the node identification of itself It whether there is the nodal information of itself in field.If the nodal information of itself is not present in reserved field, illustrate the NR-RB Amplifying message is the first IM message for carrying out topology information collection.Correspondingly, first node can be in the first IM message The nodal information that itself is added in reserved field obtains the first IM message of the nodal information for carrying first node.Then, First IM message of the nodal information for carrying first node can be sent to next node by one node.
For example, as shown in Figure 1, first node can be the first ordinary node, the second ordinary node or neighbor node.When When one node is the second ordinary node, as shown in Table 5, received for the second ordinary node,
The example for the nodal information that reserved field carries in first IM message of the first ordinary node forwarding.
Table five
Serial number Node identification Message receiver mouth Message source mouth
1 Host node 8th port First port
2 First ordinary node Second port Third port
After second ordinary node receives the first IM message, it is general that second can be added in the reserved field of the first IM message The nodal information of logical node.The first IM message after obtaining the nodal information of the second ordinary node of addition, and it is general by adding second The first IM message after the nodal information of logical node is sent to neighbor node.It as shown in Table 6, is the second ordinary node of addition The nodal information that reserved field carries in the first IM message after nodal information.
Table six
Serial number Node identification Message receiver mouth Message source mouth
1 Host node 8th port First port
2 First ordinary node Second port Third port
3 Second ordinary node 4th port Fifth port
Neighbor node is after the first IM message for receiving the forwarding of the second ordinary node, according to same rule, by itself Nodal information be added in the reserved field of the first IM message, and be forwarded to host node.
Step 403, the 2nd NR-RB amplifying message that host node is sent is received.
In the embodiment of the present application, first node can receive the 2nd IM report of host node transmission or upper node forwarding Text, it is then possible to be parsed to the 2nd IM message.
Step 404, however, it is determined that the second identifier field of the 2nd NR-RB amplifying message received be the second preset value and 2nd NR-RB amplifying message carries the nodal information of itself, it is determined that and the 2nd NR-RB amplifying message carries topology information, And obtain topology information.
In the embodiment of the present application, first node is after receiving NR-RB message, it can be determined that the ER word of the NR-RB message Whether the value of section (i.e. second identifier field) is the second preset value.Wherein, the second preset value is non-zero value.If NR-RB message Er field be the second preset value, then determine the NR-RB message for NR-RB amplifying message.Since NR-RB amplifying message may be Above-mentioned first IM message, it is also possible to which above-mentioned 2nd IM message, therefore, first node (can compare according to the node identification of itself Such as the MAC Address of first node), judge the nodal information that whether there is itself in reserved field.If existed in reserved field The nodal information of first node then illustrates that the NR-RB amplifying message is for carrying out the 2nd synchronous IM message of topology information.Phase It answers, first node can store the nodal information of each node carried in reserved field, obtain the topology information of ERPS looped network. Then, the 2nd IM message can be transmitted to next node by first node.
For example, as shown in Figure 1, first node can be the first ordinary node, the second ordinary node or neighbor node.When When one node is the second ordinary node, as shown in Table 7, receive the forwarding of the first ordinary node for the second ordinary node second The nodal information that reserved field carries in IM message.
Table seven
Serial number Node identification Message receiver mouth Message source mouth
1 Host node 8th port First port
2 First ordinary node Second port Third port
3 Second ordinary node 4th port Fifth port
4 Neighbor node 6th port 7th port
After second ordinary node receives the 2nd IM message, the node letter of each node carried in reserved field can store Breath, obtains the topology information of ERPS looped network.Then, the 2nd IM message can be transmitted to neighbor node by the second ordinary node.
Optionally, first node, can also be according to ERPS state, to topology after the topology information for obtaining ERPS looped network The port status of each port in information is configured, the specific process is as follows: nodal information includes node identification, message reception The port-mark of port and the port-mark of message source mouth;First node is host node in topology information, the last one Node is neighbor node, if the ERPS state of itself is idle state, the message of first node in topology information is connect The port status mark of the message source mouth of receiving end mouth and the last one node is set as blocked state, and will be in topology information The port status mark of other ports is set as forwarding state.
In the embodiment of the present application, if the ERPS state of first node is idle state, illustrate the end RPL in ERPS looped network The port status of mouth is blocked state, and the port status of other ports is forwarding state.Therefore, first node can believe topology The message receiver mouth (i.e. the port RPL of host node) of first node (i.e. host node) in breath and the last one node is (i.e. Neighbor node) the port status of message source mouth (i.e. the port RPL of neighbor node) be set as blocked state, and will be topological The port status of other message receiver mouths (i.e. common port) and other message source mouths (i.e. common port) is set in information It is set to forwarding state.
For example, as shown in Figure 1, the second ordinary node can be by the end of the port RPL of host node and the port neighbor node RPL Mouth state is set as blocked state, and sets forwarding state for the port status of port common in topology information.Such as eight institute of table Show, is the port status of each port in topology information.
Table eight
Serial number Node identification Message receiver mouth/port status Message source mouth/port status
1 Host node Eight ports/blocked state First port/forwarding state
2 First ordinary node Second port/forwarding state Third port/forwarding state
3 Second ordinary node Four ports/forwarding state Fifth port/forwarding state
4 Neighbor node Six ports/forwarding state Seven ports/blocked state
Optionally, first node can also determine that the first NR-RB amplifying message allows according to the value of first identifier field The maximum number of the nodal information of carrying, however, it is determined that the number for the nodal information that the first NR-RB amplifying message currently carries is equal to The value of first identifier field is then increased default value, and the section that the first NR-RB amplifying message is allowed to carry by maximum number The maximum number of point information increases preset number, and the node letter of itself is added in the first NR-RB amplifying message received Breath;If it is determined that the number for the nodal information that reserved field carries is less than maximum number, then in the first NR-RB extension received The step of nodal information of itself is added in message.
In the embodiment of the present application, the value of first identifier field (i.e. er field) can indicate reserved field byte number and The maximum number for the nodal information that reserved field can carry.It as shown in Table 9, is the value of first identifier field, reserved field Byte number and the maximum number of corresponding relationship of nodal information that can carry of reserved field.Wherein, the section of each node Byte number shared by point information is 12 bytes;The value of first identifier field is often incremented by 1, and the byte number of reserved field increases by 24 words The maximum number of section, the nodal information that reserved field can carry increases by 2;The byte number highest of reserved field can be extended to 744 bytes, the maximum number for the nodal information that reserved field can carry are 62.In addition, the value of first identifier field is often passed Increase 1, the byte number of reserved field can also increase other byte numbers (such as 48 bytes), and the embodiment of the present application is not construed as limiting.
Table nine
After first node obtains first identifier field, reserved field energy can be determined according to the value of first identifier field The maximum number of the nodal information enough carried.Then, first node may determine that the nodal information that current reserved field carries Whether number is equal to maximum number.If the number for the nodal information that current reserved field carries is equal to maximum number, by the The value of one identification field increases default value, so that the maximum number for the nodal information that reserved field is allowed to carry increases in advance If number, and in reserved field add first node nodal information.If the nodal information that current reserved field carries Number is less than maximum number, and the nodal information of first node is added directly in reserved field.
For example, the value of first identifier field is 00010, the number for the nodal information that current reserved field carries is 4.Then First node determines that the maximum number of nodal information that reserved field can carry is 4 according to the value of first identifier field, when The number for the nodal information that preceding reserved field carries is equal to maximum number.Then, first node can be by first identifier field Value increases by 1, the 4th reserved field is increased by 24 bytes, and the nodal information of first node is added in 24 newly-increased bytes.
It should be noted that at this point, before the nodal information of first node only takes up in 24 newly-increased bytes of reserved field 12 bytes.In order to guarantee the integrality of message, first node can be set rear 12 byte in 24 newly-increased bytes of reserved field 0, so that message is aligned.
The embodiment of the present application also provides a kind of update methods of topology information, applied to the ordinary node in ERPS looped network And neighbor node.Below in conjunction with specific embodiment, to a kind of collection method of topology information provided by the embodiments of the present application It is described in detail, as shown in Figure 5, the specific steps are as follows:
Step 501, SF amplifying message is received.
Wherein, SF amplifying message includes reserved field, and the node identification of malfunctioning node is at least carried in reserved field.
In practice, (for ease of description, hereinafter referred to as malfunctioning node can send SF amplifying message to the node of connection 3rd IM message).Wherein, the 3rd IM message includes reserved field, and the node mark of malfunctioning node is at least carried in reserved field Know.Meanwhile malfunctioning node can also set third preset value for the third identification field (i.e. er field) in SF amplifying message. Wherein, third preset value is non-zero value.After first node receives the SF message, it can be determined that er field (the i.e. third of SF message Identification field) value whether be third preset value.Wherein, third preset value is non-zero value.If the er field of SF message is the Three preset values then determine the SF message for SF amplifying message (i.e. the 3rd IM message).Then, first node can be to the 3rd IM Message is parsed, and the node identification of the malfunctioning node carried in the reserved field of the 3rd IM message is obtained.
Optionally, after first node receives SF message, it can be determined that whether the value of the reserved field of SF message is 0, If the value of reserved field is 0, illustrate that reserved field does not carry the node identification of malfunctioning node, which is traditional The SF message directly can be transmitted to next node by SF message, first node.If the value of reserved field is not 0, say The node identification of malfunctioning node is carried in bright reserved field, which is SF amplifying message (i.e. the 3rd IM message).In addition, First node can also judge that the SF message is according to the value of the third identification field (i.e. er field) carried in SF message No is the 3rd IM message.Wherein, first node judges that the SF is reported according to the value of the third identification field carried in SF message Text whether be the 3rd IM message treatment process, subsequent will do it be discussed in detail.
Step 502, according to the topology information of the node identification of malfunctioning node and ERPS looped network, the failure of malfunctioning node is determined Port, by the port shape of the message source mouth of the message receiver mouth and the last one node of first node in topology information State is set as forwarding state, and sets blocked state for the port status of the non-working port of malfunctioning node.
In the embodiment of the present application, first node obtains the node of the malfunctioning node carried in the reserved field of the 3rd IM message After mark, the non-working port of malfunctioning node can be determined according to the node identification of malfunctioning node and the topology information of ERPS looped network. Wherein, first node can determine that the port on malfunctioning node positioned at first node side is normal port according to topology information, Another port is non-working port.
It, can be by first node (i.e. host node) in topology information after first node determines the non-working port of malfunctioning node Message receiver mouth (i.e. the port RPL of host node) and the last one node (i.e. neighbor node) message source mouth (i.e. The port RPL of neighbor node) port status be set as forwarding state, and the port status of the non-working port of malfunctioning node is set It is set to blocked state.In this way, technical staff can determine malfunctioning node and failure according to the topology information stored on first node Port.
For example, as shown in Figure 1, when the link between the first ordinary node and the second ordinary node breaks down, second Ordinary node can send the 3rd IM message to neighbor node.Wherein, the 3rd IM message includes reserved field, in reserved field extremely The node identification of the second ordinary node is carried less.It, can be according to the second common section after neighbor node receives the 3rd IM message The node identification of point and the topology information being locally stored determine that the 4th port of the second ordinary node is non-working port.Then, adjacent The port status of the port RPL of host node and the port RPL of neighbor node can be set to forwarding state by occupying node, and by The port status of 4th port of two ordinary nodes is set as blocked state.It as shown in Table 10, is neighbor node to topology information After update, the 3rd IM message can be forwarded to host node by the port status of each port, neighbor node.
Table ten
Serial number Node identification Message receiver mouth/port status Message source mouth/port status
1 Host node Eight ports/forwarding state First port/forwarding state
2 First ordinary node Second port/forwarding state Third port/forwarding state
3 Second ordinary node Four ports/blocked state Fifth port/forwarding state
4 Neighbor node Six ports/forwarding state Seven ports/forwarding state
Based on above-mentioned same principle, the first ordinary node can send the 3rd IM message to host node by second port, So, host node can be according in the 3rd IM message that the 3rd IM message and the first ordinary node that neighbor node forwards are sent The fault message of carrying can be determined between the third port of the first ordinary node and the 4th port of the second ordinary node Link failure, and the port-mark of third port and the 4th port is set as blocking.
Step 503, SF amplifying message is sent to next node.
It, can after first node is updated topology information according to the 3rd IM message received in the embodiment of the present application The 3rd IM message is sent to next node, so that the next node is according to the 3rd IM message is received, to topology information It is updated.
Optionally, when any first node detects link failure, third identification field is carried to host node transmission SF amplifying message so that receiving the node of SF amplifying message in the value for determining third identification field is third preset value When, it according to the topology information of the node identification of first node and ERPS looped network, determines the faulty link of first node, topology is believed The port status mark of the message source mouth of the message receiver mouth and the last one node of first node is set as in breath Forwarding state, and blocked state is set by the port status of port corresponding with faulty link on first node mark.
In addition, first node can also be by the message receiver mouth of first node (i.e. host node) in topology information (i.e. The port RPL of host node) and the last one node (i.e. neighbor node) message source mouth (i.e. the port RPL of neighbor node) Port status be set as forwarding state, and set blocked state for the port status of non-working port.
The embodiment of the present application also provides a kind of update methods of topology information, applied to the host node in ERPS looped network. Below in conjunction with specific embodiment, a kind of collection method of topology information provided by the embodiments of the present application is carried out specifically It is bright, as shown in Figure 6, the specific steps are as follows:
Step 601, SF that a node is sent when detecting link failure, carrying third identification field is received to expand Message is opened up, the nodal information of a node is included at least in SF amplifying message, a node is ordinary node or neighbor node.
In the embodiment of the present application, when a certain node failure occurs in ERPS looped network, two nodes being connected with the node The 3rd IM message can be sent into ERPS looped network.Alternatively, this two when the link failure in ERPS looped network between two nodes A node can send the 3rd IM message into ERPS looped network.Correspondingly, host node can pass through common port and the port RPL point Two part of the 3rd IM message is not received.Wherein, the 3rd IM message includes reserved field, and faulty section is at least carried in reserved field The node identification of point.For every a 3rd IM message, host node can be parsed the 3rd IM message, obtain the third The node identification of the malfunctioning node carried in the reserved field of IM message.
For example, first is common as shown in Figure 1, the link between the first ordinary node and the second ordinary node breaks down Node can send the 3rd IM message to host node by second port.Wherein, it is carried in the reserved field in the 3rd IM message There is the node identification of the first ordinary node.Similarly, the second ordinary node can also send the to neighbor node by fifth port Three IM messages.The 3rd IM message received can be transmitted to host node by neighbor node, wherein the reserved word in the 3rd IM message The node identification of the second ordinary node is carried in section.
Step 602, however, it is determined that the value of third identification field is third preset value, then according to the node identification of a node With the topology information of ERPS looped network, the faulty link of a node is determined, the message of first node in topology information is received The port status mark of the message source mouth of port and the last one node is set as forwarding state, and by a node with The port status mark of the corresponding port of faulty link is set as blocked state.
In the embodiment of the present application, host node is after receiving SF message, it can be determined that er field (the i.e. third mark of SF message Become literate section) value whether be third preset value.Wherein, third preset value is non-zero value.If the er field of SF message is third Preset value then determines the SF message for SF amplifying message (i.e. the 3rd IM message).Then, host node can to the 3rd IM message into Row parsing, obtains the node identification for the malfunctioning node that reserved field carries in the 3rd IM message.Then, host node can be according to event Hinder the node identification of node and the topology information of ERPS looped network, determines the non-working port of malfunctioning node, and carry out to topology information It updates.Host node determines the non-working port of malfunctioning node according to the node identification of malfunctioning node and the topology information of ERPS looped network, And the treatment process being updated to topology information is similar with the treatment process of step 502.
For example, as shown in Figure 1, host node receives the 3rd IM message that the first ordinary node and the second ordinary node are sent Afterwards, topology information can be updated.It is the port of each port after host node updates topology information as shown in table 11 State.
Table 11
Serial number Node identification Message receiver mouth/port status Message source mouth/port status
1 Host node Eight ports/forwarding state First port/forwarding state
2 First ordinary node Second port/forwarding state Third port/blocked state
3 Second ordinary node Four ports/blocked state Fifth port/forwarding state
4 Neighbor node Six ports/forwarding state Seven ports/forwarding state
As shown in fig. 7, being a kind of exemplary flow chart of the collection method of topology information provided by the embodiments of the present application.Such as Shown in Fig. 7, concrete processing procedure is as follows:
Step 701: host node sends the first NR-RB amplifying message to the first ordinary node.
Wherein, the first NR-RB amplifying message includes reserved field, in the current reserved field of the first NR-RB amplifying message Carry the nodal information of host node.
Step 702, the first ordinary node receives the first NR-RB amplifying message that host node is sent.
Step 703, the first ordinary node adds the node letter of itself in the reserved field of the first NR-RB amplifying message Breath, and the first NR-RB amplifying message after the nodal information for adding itself is transmitted to the second ordinary node.
In practical application, the upper ordinary node in ERPS looped network can carry out phase to the first NR-RB amplifying message is received After should handling, it is forwarded to next ordinary node, until when being forwarded to neighbor node, by neighbor node to the first NR- received After RB amplifying message carries out respective handling, it is forwarded to host node.
Step 704, host node receives each node carried in ERPS looped network in the reserved field that neighbor node forwards First NR-RB amplifying message of nodal information, and the nodal information of each node is stored, obtain the topology information of ERPS looped network.
Step 705, host node sends the 2nd NR-RB amplifying message to the first ordinary node.
Wherein, the topology information of ERPS looped network is carried in the reserved field of the 2nd NR-RB amplifying message.
Step 706, the first ordinary node receives the 2nd NR-RB amplifying message that host node is sent.
Step 707, the nodal information of each node carried in the first ordinary node storage reserved field, obtains ERPS looped network Topology information, and the 2nd NR-RB amplifying message is transmitted to the second ordinary node.
In practical application, the upper ordinary node in ERPS looped network can be obtained from receiving in the 2nd NR-RB amplifying message The topology information of ERPS looped network, and the 2nd NR-RB amplifying message is forwarded to next ordinary node, until being forwarded to neighbours' section When point, the topology information of ERPS looped network is obtained from the 2nd NR-RB amplifying message received by neighbor node.
Step 708, if the ERPS state of the first ordinary node is idle state, by first section in topology information The port status of the message source mouth of the message receiver mouth and the last one node of point is set as blocked state, and will be topological The port status of other message receiver mouths and other message source mouths is set as forwarding state in information.
Certainly, any node and has been locally stored when determining ERPS looped network state is idle state in ERPS looped network When the topology information of ERPS looped network, can it execute the message receiver mouth of first node in topology information and the last one The port status of the message source mouth of node is set as blocked state, and by other message receiver mouths in topology information and its The port status of his message source mouth is set as the operation of forwarding state.
Step 701 to step 708 concrete processing procedure and step 301 to step 303 and step 401 to step 404 Concrete processing procedure it is similar.
As shown in figure 8, being a kind of exemplary flow chart of the update method of topology information provided by the embodiments of the present application.? Link failure in the example, between the first ordinary node and the second ordinary node.As shown in figure 8, concrete processing procedure is as follows:
Step 801, the first ordinary node sends the first SF amplifying message to host node, and the second ordinary node is to neighbor node Send the 2nd SF amplifying message.
Wherein, the first SF amplifying message includes reserved field, and the node identification of the first ordinary node is carried in reserved field, 2nd SF amplifying message includes reserved field, and the node identification of the second ordinary node is carried in reserved field.
Certainly, the first common section can also be carried in the reserved field for the first SF amplifying message that the first ordinary node is sent The nodal information of all nodes between point and host node;And the reserved word for the first SF amplifying message that the second ordinary node is sent The nodal information of the second ordinary node to all nodes between neighbor node can be carried in section;In this way, host node can root The first SF sent according to the topology information for the complete ERPS looped network being locally stored and the first ordinary node and the second ordinary node The partial-topology information for the ERPS looped network that amplifying message carries, determines fault point.Certainly, in the forwarding of the first SF amplifying message In the process, other ordinary nodes, can also be complete according to what is be locally stored when receiving corresponding first SF amplifying message The partial-topology information for the ERPS looped network that the topology information of ERPS looped network and the first SF amplifying message carry determines fault point.
Step 802, host node receives the first SF amplifying message by first port, receives the 2nd SF by the 8th port and expands Open up message.
Step 803, host node is according to the node identification of the first ordinary node, the node identification and ERPS of the second ordinary node The topology information of looped network, the 4th port of the third port and the second ordinary node that determine the first ordinary node are non-working port, The port status of the message source mouth of the message receiver mouth and the last one node of first node in topology information is set It is set to forwarding state, and the port status of the third port of the first ordinary node and the 4th port of the second ordinary node is arranged For blocked state.
Step 801 to step 803 concrete processing procedure and step 501 to step 503 and step 601 to step 602 Concrete processing procedure it is similar.
The collection method and device of topology information provided by the embodiments of the present application, applied to the node in ERPS looped network.It is main Node can send the first NR-RB amplifying message to first node.Wherein, the first NR-RB amplifying message includes the first reserved word Section, the nodal information of host node is carried in the first reserved field.After first node receives the first NR-RB amplifying message, Add the nodal information of itself in first reserved field, and by the first NR-RB amplifying message after the nodal information for adding itself It is transmitted to next node.Subsequent, host node receives to be carried in ERPS looped network in the first reserved field that neighbor node forwards After first NR-RB amplifying message of the nodal information of each node, the nodal information of each node is stored, obtains the topology of ERPS looped network Information.Then, host node sends the 2nd NR-RB amplifying message to first node.Wherein, the second of the 2nd NR-RB amplifying message Reserved field carries the nodal information of each node in the topology information of ERPS looped network.First node receives the 2nd NR-RB expansion After opening up message, the nodal information of each node carried in the second reserved field is stored, the topology information of the ERPS looped network is obtained, And the 2nd NR-RB amplifying message is transmitted to second node.In this way, can be collected into each node in ERPS looped network The topology information of ERPS looped network, the network management personnel of ERPS looped network can check the topology letter of ERPS looped network by any node Breath, to effectively be judged current ERPS looped network scale.
Based on the same technical idea, as shown in figure 9, the embodiment of the present application also provides a kind of collection of topology information dresses It sets, which is applied to Ethernet ring protection and switches the host node in ERPS looped network, which includes sending module 910, receives Module 920 and generation module 930:
Sending module 910, for sending the first link-recovery NR- Loop Protection link obstructions RB amplifying message, so that Other nodes in ERPS looped network are determining that the first identifier field of the first NR-RB amplifying message received is default for first Value, and when the first NR-RB amplifying message does not carry the nodal information of itself, in the first NR-RB amplifying message received The nodal information of itself is added, and is forwarded to next node;
First NR-RB of the receiving module 920 in the nodal information for carrying other nodes for receiving neighbor node forwarding When amplifying message, generation module 920 is used for the nodal information of nodal information and other nodes according to host node, generates ERPS ring The topology information of net;
Sending module 910 is also used to send the 2nd NR-RB amplifying message, so that other nodes are determining the received The second identifier field of two NR-RB amplifying messages is the second preset value, and the 2nd NR-RB amplifying message carries the node of itself When information, determine that the 2nd NR-RB amplifying message carries topology information, and obtain topology information.
Optionally, nodal information includes the end of node identification, the port-mark of message receiver mouth and message source mouth Mouth mark;First node is host node in topology information, the last one node is neighbor node;
As shown in Figure 10, which further includes setup module 940:
When the ERPS state of host node is idle state, setup module 940 is by first node in topology information The port status mark of the message source mouth of message receiver mouth and the last one node is set as blocked state, and will be topological The port status mark of other ports is set as forwarding state in information.
Optionally, receiving module 920, be also used to receive it is that a node is sent when detecting link failure, carry The Signal Fail SF amplifying message of third identification field, includes at least the nodal information of a node in SF amplifying message, and one Node is ordinary node or neighbor node;
Setup module 940 is also used to when the value for determining third identification field is third preset value, according to a node Node identification and ERPS looped network topology information, when determining the faulty link of a node, by topology information first section The port status mark of the message source mouth of the message receiver mouth and the last one node of point is set as forwarding state, and will The port status mark of port corresponding with faulty link is set as blocked state on one node.
Based on the same technical idea, as shown in figure 11, the embodiment of the present application also provides a kind of collections of topology information Device, the device are applied to Ethernet ring protection and switch the first node in ERPS looped network, and first node is ordinary node or neighbour Node is occupied, further includes host node in ERPS looped network, which includes receiving module 1110, adding module 1120, sending module 1130 and obtain module 1140:
Receiving module 1110, the first link-recovery NR- Loop Protection link obstructions RB for receiving host node transmission expand Open up message;
Adding module 1120, for being first in the first identifier field for determining the first NR-RB amplifying message received Preset value and when the first NR-RB amplifying message does not carry the nodal information of first node, expands in the first NR-RB received The nodal information that first node is added in message is opened up, sending module 1130 is next for the first NR-RB amplifying message to be forwarded to Node;
Receiving module 1110 is also used to receive the second link-recovery NR- Loop Protection link obstructions RB of host node transmission Amplifying message;
Module 1140 is obtained, for being second in the second identifier field for determining the 2nd NR-RB amplifying message received Preset value and when the 2nd NR-RB amplifying message carries the nodal information of first node, determines that the 2nd NR-RB amplifying message is taken With topology information, and obtain topology information.
Optionally, nodal information includes the end of node identification, the port-mark of message receiver mouth and message source mouth Mouth mark;First node is host node in topology information, the last one node is neighbor node, as shown in figure 12, the device Further include setup module 1150:
When the ERPS state of first node is idle state, setup module 1150 is by first node in topology information Message receiver mouth and the port status mark of message source mouth of the last one node be set as blocked state, and will open up The port status mark for flutterring other ports in information is set as forwarding state.
Optionally, as shown in figure 13, which further includes determining module 1160 and increases module 1170:
Determining module 1160 determines that the first NR-RB amplifying message allows to carry for the value according to first identifier field Nodal information maximum number;
Increase module 1170, for being equal in the number for determining nodal information that the first NR-RB amplifying message currently carries When maximum number, the value of first identifier field is increased into default value, and the section that the first NR-RB amplifying message is allowed to carry The maximum number of point information increases preset number, and triggering adding module 1120 is executed in the first NR-RB amplifying message received The step of nodal information of middle addition first node;
Determining module 1160 is also used to when determining that the number of nodal information of reserved field carrying is less than maximum number, It triggers adding module 1120 and executes the step for adding the nodal information of first node in the first NR-RB amplifying message received Suddenly.
Optionally, sending module 1130 are also used to when first node detects link failure, are sent and are carried to host node There is the Signal Fail SF amplifying message of third identification field, so that the node for receiving SF amplifying message is determining third identifier word When the value of section is third preset value, according to the topology information of the node identification of first node and ERPS looped network, first segment is determined The faulty link of point, by the message source mouth of the message receiver mouth of first node and the last one node in topology information Port status mark be set as forwarding state, and the port status of port corresponding with faulty link on first node is identified It is set as blocked state.
The collection method of topology information provided by the embodiments of the present application, applied to the node in ERPS looped network.Host node can To send the first NR-RB amplifying message to first node.Wherein, the first NR-RB amplifying message include the first reserved field, first The nodal information of host node is carried in reserved field.After first node receives the first NR-RB amplifying message, retain first The nodal information of first node is added in field, and by the first NR-RB amplifying message after the nodal information for adding first node It is transmitted to second node.Subsequent, host node receives to be carried in ERPS looped network in the first reserved field that neighbor node forwards After first NR-RB amplifying message of the nodal information of each node, the nodal information of each node is stored, obtains the topology of ERPS looped network Information.Then, host node sends the 2nd NR-RB amplifying message to first node.Wherein, the second of the 2nd NR-RB amplifying message Reserved field carries the nodal information of each node in topology information.After first node receives the 2nd NR-RB amplifying message, deposit The nodal information for storing up each node carried in the second reserved field obtains the topology information of ERPS looped network, and the 2nd NR-RB is expanded Exhibition message is transmitted to second node.In this way, the topology information of ERPS looped network can be collected into each node in ERPS looped network, The network management personnel of ERPS looped network can check the topology information of ERPS looped network by any node, thus to current ERPS ring Network planning mould is effectively judged.
The embodiment of the present application also provides a kind of network equipments, as shown in figure 14, including processor 1401, communication interface 1402, memory 1403 and communication bus 1404, wherein processor 1401, communication interface 1402, memory 1403 pass through communication Bus 1404 completes mutual communication,
Memory 1403, for storing computer program;
Processor 1401 when for executing the program stored on memory 1403, realizes following method and step:
The first link-recovery NR- Loop Protection link obstructions RB amplifying message is sent, so that its in the ERPS looped network His node is the first preset value in the first identifier field for determining the first NR-RB amplifying message received, and the first NR-RB expands When exhibition message does not carry the nodal information of itself, the node letter of itself is added in the first NR-RB amplifying message received Breath, and it is forwarded to next node;
The first NR-RB amplifying message of the nodal information for carrying other nodes of neighbor node forwarding is received, and According to the nodal information of the nodal information of itself and other nodes, the topology information of the ERPS looped network is generated;
The 2nd NR-RB amplifying message is sent, so that other described nodes are determining the 2nd NR-RB extension received The second identifier field of message is the second preset value, and when the 2nd NR-RB amplifying message carries the nodal information of itself, It determines that the 2nd NR-RB amplifying message carries the topology information, and obtains the topology information.
Optionally, the nodal information includes node identification, the port-mark of message receiver mouth and message source mouth Port-mark;First node is host node in the topology information, the last one node is neighbor node;
The method also includes:
If the ERPS state of itself is idle state, by the message receiver of first node in the topology information The port status mark of the message source mouth of mouth and the last one node is set as blocked state, and will be in the topology information The port status mark of other ports is set as forwarding state.
Optionally, the method also includes:
Signal Fail SF that a node is sent when detecting link failure, carrying third identification field is received to expand Message is opened up, the nodal information of one node is included at least in the SF amplifying message, one node is ordinary node Or neighbor node;
If it is determined that the value of the third identification field is third preset value, then according to the node identification of one node With the topology information of the ERPS looped network, the faulty link of one node is determined, by first section in the topology information The port status mark of the message source mouth of the message receiver mouth and the last one node of point is set as forwarding state, and will The port status mark of port corresponding with the faulty link is set as blocked state on one node.
The embodiment of the present application also provides a kind of network equipments, as shown in figure 15, including processor 1501, communication interface 1502, memory 1503 and communication bus 1504, wherein processor 1501, communication interface 1502, memory 1503 pass through communication Bus 1504 completes mutual communication,
Memory 1503, for storing computer program;
Processor 1501 when for executing the program stored on memory 1503, realizes following method and step:
Receive the first link-recovery NR- Loop Protection link obstructions RB amplifying message that host node is sent;
If it is determined that the first identifier field of the first NR-RB amplifying message received is the first preset value and the first NR-RB Amplifying message does not carry the nodal information of itself, then the node of itself is added in the first NR-RB amplifying message received Information, and it is forwarded to next node;
Receive the second link-recovery NR- Loop Protection link obstructions RB amplifying message that host node is sent;
If it is determined that the second identifier field of the 2nd NR-RB amplifying message received is the second preset value and described 2nd NR-RB amplifying message carries the nodal information of itself, it is determined that the 2nd NR-RB amplifying message carries described open up Information is flutterred, and obtains the topology information.
Optionally, the nodal information includes node identification, the port-mark of message receiver mouth and message source mouth Port-mark;First node is host node in the topology information, the last one node is neighbor node, and the method is also Include:
If the ERPS state of itself is idle state, by the message receiver of first node in the topology information The port status mark of the message source mouth of mouth and the last one node is set as blocked state, and will be in the topology information The port status mark of other ports is set as forwarding state.
Optionally, described before the nodal information for adding itself in the first NR-RB amplifying message received described Method further include:
According to the value of the first identifier field, the nodal information that the first NR-RB amplifying message allows to carry is determined Maximum number;
If it is determined that the number for the nodal information that the first NR-RB amplifying message currently carries is equal to the maximum number, then will The value of the first identifier field increases default value, and the first NR-RB amplifying message is allowed the nodal information of carrying Maximum number increases preset number, executes the step that the nodal information of itself is added in the first NR-RB amplifying message received Suddenly;
If it is determined that the number for the nodal information that the reserved field carries is less than the maximum number, then described connecing is executed The step of adding the nodal information of itself in the first NR-RB amplifying message received.
Optionally, the method also includes:
When the first node detects link failure, the signal mistake for carrying third identification field is sent to host node SF amplifying message is lost, so that receiving the node of the SF amplifying message in the value for determining the third identification field is third When preset value, according to the topology information of the node identification of the first node and the ERPS looped network, the first node is determined Faulty link, by the message source of the message receiver mouth of first node and the last one node in the topology information Mouthful port status mark is set as forwarding state, and by the end of port corresponding with the faulty link on the first node Mouth status indicator is set as blocked state.
The communication bus that the above-mentioned network equipment is mentioned can be Peripheral Component Interconnect standard (English: Peripheral Component Interconnect, referred to as: PCI) bus or expanding the industrial standard structure (English: Extended Industry Standard Architecture, referred to as: EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total Line.
Communication interface is for the communication between the above-mentioned network equipment and other equipment.
Memory may include random access memory (English: Random Access Memory, abbreviation: RAM), can also To include nonvolatile memory (English: Non-Volatile Memory, abbreviation: NVM), for example, at least a disk storage Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (English: Central Processing Unit, referred to as: CPU), network processing unit (English: Network Processor, referred to as: NP) etc.;It can also be digital signal Processor (English: Digital Signal Processing, abbreviation: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), field programmable gate array (English: Field- Programmable Gate Array, referred to as: FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described topology information when being executed by processor Collection method the step of.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes the collection method of any topology information in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (14)

1. a kind of collection method of topology information, which is characterized in that the method is applied to Ethernet ring protection and switches ERPS ring Host node in net, which comprises
The first link-recovery NR- Loop Protection link obstructions RB amplifying message is sent, so that other sections in the ERPS looped network Point is the first preset value in the first identifier field for determining the first NR-RB amplifying message received, and the first NR-RB extension is reported When Wen Wei carries the nodal information of itself, the nodal information of itself is added in the first NR-RB amplifying message received, and It is forwarded to next node;
First NR-RB amplifying message of the nodal information for carrying other nodes of reception neighbor node forwarding, and according to The nodal information of the nodal information of itself and other nodes generates the topology information of the ERPS looped network;
The 2nd NR-RB amplifying message is sent, so that other described nodes are determining the 2nd NR-RB amplifying message received Second identifier field be the second preset value, and when the 2nd NR-RB amplifying message carries the nodal information of itself, determine The 2nd NR-RB amplifying message carries the topology information, and obtains the topology information.
2. the method according to claim 1, wherein the nodal information includes node identification, message receiver The port-mark of mouth and the port-mark of message source mouth;First node is host node in the topology information, last A node is neighbor node;
The method also includes:
If the ERPS state of itself is idle state, by the message receiver mouth of first node in the topology information and The port status mark of the message source mouth of the last one node is set as blocked state, and by other in the topology information The port status mark of port is set as forwarding state.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Receive Signal Fail SF extension report that a node is sent when detecting link failure, carrying third identification field Text includes at least the nodal information of one node in the SF amplifying message, and one node is ordinary node or neighbour Occupy node;
If it is determined that the value of the third identification field is third preset value, then according to the node identification of one node and institute The topology information for stating ERPS looped network determines the faulty link of one node, by first node in the topology information The port status mark of the message source mouth of message receiver mouth and the last one node is set as forwarding state, and will be described The port status mark of port corresponding with the faulty link is set as blocked state on one node.
4. a kind of collection method of topology information, which is characterized in that the method is applied to Ethernet ring protection and switches ERPS ring First node in net, the first node are ordinary node or neighbor node, further include host node in the ERPS looped network, institute The method of stating includes:
Receive the first link-recovery NR- Loop Protection link obstructions RB amplifying message that host node is sent;
If it is determined that the first identifier field of the first NR-RB amplifying message received is the first preset value and the first NR-RB extends Message does not carry the nodal information of itself, then the nodal information of itself is added in the first NR-RB amplifying message received, And it is forwarded to next node;
Receive the second link-recovery NR- Loop Protection link obstructions RB amplifying message that host node is sent;
If it is determined that the second identifier field of the 2nd NR-RB amplifying message received is the second preset value and described second NR-RB amplifying message carries the nodal information of itself, it is determined that the 2nd NR-RB amplifying message carries the topology letter Breath, and obtain the topology information.
5. according to the method described in claim 4, it is characterized in that, the nodal information includes node identification, message receiver The port-mark of mouth and the port-mark of message source mouth;First node is host node in the topology information, last A node is neighbor node, the method also includes:
If the ERPS state of itself is idle state, by the message receiver mouth of first node in the topology information and The port status mark of the message source mouth of the last one node is set as blocked state, and by other in the topology information The port status mark of port is set as forwarding state.
6. according to the method described in claim 4, it is characterized in that, described add in the first NR-RB amplifying message received Before the nodal information for adding itself, the method also includes:
According to the value of the first identifier field, the maximum for the nodal information that the first NR-RB amplifying message allows to carry is determined Number;
If it is determined that the number for the nodal information that the first NR-RB amplifying message currently carries is equal to the maximum number, then it will be described The value of first identifier field increases default value, and the maximum for the nodal information that the first NR-RB amplifying message is allowed to carry The step of number increases preset number, and execution adds the nodal information of itself in the first NR-RB amplifying message received;
If it is determined that the number for the nodal information that the reserved field carries is less than the maximum number, then described receiving is executed The first NR-RB amplifying message in the step of adding the nodal information of itself.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
When the first node detects link failure, the Signal Fail SF for carrying third identification field is sent to host node Amplifying message, so that the node for receiving the SF amplifying message is determining that the value of the third identification field is default for third When value, according to the topology information of the node identification of the first node and the ERPS looped network, the event of the first node is determined Hinder link, by the message source mouth of the message receiver mouth and the last one node of first node in the topology information Port status mark is set as forwarding state, and by the port shape of port corresponding with the faulty link on the first node State mark is set as blocked state.
8. a kind of collection device of topology information, which is characterized in that described device is applied to Ethernet ring protection and switches ERPS ring Host node in net, described device include sending module, receiving module and generation module:
The sending module, for sending the first link-recovery NR- Loop Protection link obstructions RB amplifying message, so that described Other nodes in ERPS looped network are determining that the first identifier field of the first NR-RB amplifying message received is default for first Value, and when the first NR-RB amplifying message does not carry the nodal information of itself, in the first NR-RB amplifying message received The nodal information of itself is added, and is forwarded to next node;
First NR-RB of the receiving module in the nodal information for carrying other nodes for receiving neighbor node forwarding When amplifying message, the generation module is used for according to the nodal information of the host node and the nodal information of other nodes, Generate the topology information of the ERPS looped network;
The sending module is also used to send the 2nd NR-RB amplifying message, so that other described nodes are determining the institute received The second identifier field for stating the 2nd NR-RB amplifying message is the second preset value, and the 2nd NR-RB amplifying message carries certainly It when the nodal information of body, determines that the 2nd NR-RB amplifying message carries the topology information, and obtains the topology letter Breath.
9. device according to claim 8, which is characterized in that the nodal information includes node identification, message receiver The port-mark of mouth and the port-mark of message source mouth;First node is host node in the topology information, last A node is neighbor node;
Described device further includes setup module:
When the ERPS state of the host node is idle state, the setup module saves first in the topology information The port status mark of the message source mouth of the message receiver mouth and the last one node of point is set as blocked state, and will The port status mark of other ports is set as forwarding state in the topology information.
10. device according to claim 9, which is characterized in that the receiving module is also used to receive a node and is examining Signal Fail SF amplifying message being sent when measuring link failure, carrying third identification field, in the SF amplifying message Including at least the nodal information of one node, one node is ordinary node or neighbor node;
The setup module is also used to when the value for determining the third identification field is third preset value, according to described one The topology information of the node identification of a node and the ERPS looped network, determines the faulty link of one node, opens up described The port status mark for flutterring the message source mouth of the message receiver mouth and the last one node of first node in information is set It is set to forwarding state, and the port status of port corresponding with the faulty link on one node mark is set as hindering Plug-like state.
11. a kind of collection device of topology information, which is characterized in that described device is applied to Ethernet ring protection and switches ERPS ring First node in net, the first node are ordinary node or neighbor node, further include host node in the ERPS looped network, institute Stating device includes receiving module, adding module, sending module and obtains module:
The receiving module, for receiving the first link-recovery NR- Loop Protection link obstructions RB extension report of host node transmission Text;
The adding module, for being first default in the first identifier field for determining the first NR-RB amplifying message received Value and when the first NR-RB amplifying message does not carry the nodal information of the first node, expands in the first NR-RB received The nodal information of the first node is added in exhibition message, the sending module is for the first NR-RB amplifying message to be forwarded to Next node;
The receiving module is also used to receive the second link-recovery NR- Loop Protection link obstructions RB extension of host node transmission Message;
The acquisition module, for being second in the second identifier field for determining the 2nd NR-RB amplifying message received Preset value and when the 2nd NR-RB amplifying message carries the nodal information of the first node, determines the 2nd NR- RB amplifying message carries the topology information, and obtains the topology information.
12. device according to claim 11, which is characterized in that the nodal information includes node identification, message reception The port-mark of port and the port-mark of message source mouth;First node is host node in the topology information, finally One node is neighbor node, and described device further includes setup module:
It is idle state in the ERPS state of the first node, the setup module saves first in the topology information The port status mark of the message source mouth of the message receiver mouth and the last one node of point is set as blocked state, and will The port status mark of other ports is set as forwarding state in the topology information.
13. device according to claim 11, which is characterized in that described device further includes determining module and increases module:
The determining module determines that the first NR-RB amplifying message allows to carry for the value according to the first identifier field Nodal information maximum number;
The increase module, it is described for being equal in the number for determining nodal information that the first NR-RB amplifying message currently carries When maximum number, the value of the first identifier field is increased into default value, and the first NR-RB amplifying message is allowed to carry The maximum number of nodal information increase preset number, trigger the adding module execute it is described in the first NR-RB received The step of nodal information of the first node is added in amplifying message;
The determining module is also used to be less than the maximum number in the number for the nodal information for determining the reserved field carrying When, it triggers the adding module and executes the node letter for adding the first node in the first NR-RB amplifying message received The step of breath.
14. device according to claim 12, which is characterized in that the sending module is also used to when the first node When detecting link failure, the Signal Fail SF amplifying message for carrying third identification field is sent to host node, so as to receive To the SF amplifying message node the value for determining the third identification field be third preset value when, according to described first The topology information of the node identification of node and the ERPS looped network, determines the faulty link of the first node, by the topology The port status of the message source mouth of the message receiver mouth and the last one node of first node identifies setting in information For forwarding state, and the port status of port corresponding with the faulty link on first node mark is set as blocking State.
CN201811536560.3A 2018-12-14 2018-12-14 Method and device for collecting topology information Active CN109450765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811536560.3A CN109450765B (en) 2018-12-14 2018-12-14 Method and device for collecting topology information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811536560.3A CN109450765B (en) 2018-12-14 2018-12-14 Method and device for collecting topology information

Publications (2)

Publication Number Publication Date
CN109450765A true CN109450765A (en) 2019-03-08
CN109450765B CN109450765B (en) 2020-10-27

Family

ID=65559055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811536560.3A Active CN109450765B (en) 2018-12-14 2018-12-14 Method and device for collecting topology information

Country Status (1)

Country Link
CN (1) CN109450765B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187646A (en) * 2020-09-25 2021-01-05 新华三信息安全技术有限公司 Message table item processing method and device
CN113794656A (en) * 2021-08-25 2021-12-14 新华三信息安全技术有限公司 Message forwarding method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1449158A (en) * 2002-03-28 2003-10-15 华为技术有限公司 Network topology information acquisition method
CN101155084A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Method and system for acquiring network topological information
CN101621450A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Method and device for centralized topology control in mesh network and method and device for regulating power
CN101631053A (en) * 2009-08-28 2010-01-20 迈普通信技术股份有限公司 EAPS ring-network topology monitoring method and system
US20100188972A1 (en) * 2009-01-27 2010-07-29 Knapp David J Fault tolerant network utilizing bi-directional point-to-point communications links between nodes
CN104184665A (en) * 2013-05-23 2014-12-03 杭州迪普科技有限公司 Topological collection method and device
CN106060886A (en) * 2016-05-20 2016-10-26 河海大学常州校区 Acoustic sensor network route protocol construction method based on asymmetric links

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1449158A (en) * 2002-03-28 2003-10-15 华为技术有限公司 Network topology information acquisition method
CN101155084A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Method and system for acquiring network topological information
CN101621450A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Method and device for centralized topology control in mesh network and method and device for regulating power
US20100188972A1 (en) * 2009-01-27 2010-07-29 Knapp David J Fault tolerant network utilizing bi-directional point-to-point communications links between nodes
CN101631053A (en) * 2009-08-28 2010-01-20 迈普通信技术股份有限公司 EAPS ring-network topology monitoring method and system
CN104184665A (en) * 2013-05-23 2014-12-03 杭州迪普科技有限公司 Topological collection method and device
CN106060886A (en) * 2016-05-20 2016-10-26 河海大学常州校区 Acoustic sensor network route protocol construction method based on asymmetric links

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯亚超: "《一种无线传感器网络数据收集协议的研究与优化》", 《传感技术学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187646A (en) * 2020-09-25 2021-01-05 新华三信息安全技术有限公司 Message table item processing method and device
CN112187646B (en) * 2020-09-25 2022-07-29 新华三信息安全技术有限公司 Message table item processing method and device
CN113794656A (en) * 2021-08-25 2021-12-14 新华三信息安全技术有限公司 Message forwarding method and device
CN113794656B (en) * 2021-08-25 2023-11-07 新华三信息安全技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN109450765B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
US10484206B2 (en) Path detection method in VxLAN, controller, and network device
EP3817298A1 (en) Data message detection method, device and system
CN104521192B (en) Technology for the flooding optimization of the link-state protocol in network topology structure
US9397911B2 (en) Method of and device for recovering from a root bridge failure
CN110061914B (en) Message forwarding method and device
CN109698788A (en) Flow forwarding method and flow forwarding device
JP2005295209A (en) Layer 2 loop detection system
CN108123824A (en) A kind of network fault detecting method and device
CN109586959A (en) A kind of method and device of fault detection
CN112737871B (en) Link fault detection method and device, computer equipment and storage medium
CN105379201A (en) Path switching method and device
CN106161078B (en) A kind of Ethernet ring protection switching reverse method and node
CN109450765A (en) A kind of collection method and device of topology information
CN109391526A (en) A kind of detection method and device of network loop
CN108234234A (en) Using modified Ethernet connectivity fault management signaling to avoid deadlock
JP2009182430A (en) Packet analysis method
CN109889411A (en) A kind of method and device of data transmission
CN109802879A (en) A kind of flow routing method and device
CN104901829A (en) Method and device for verifying consistency of router data forwarding behaviors based on action codes
US9001646B2 (en) Information transmission device, information transmission system and information transmission method
JP6042549B2 (en) How to run a computer network
JP5333290B2 (en) Network evaluation apparatus, network evaluation system, and network evaluation method
WO2020075587A1 (en) Fault location estimation method and fault location estimation device
JP3431310B2 (en) Ring state reception method and transmission apparatus for ring network
JP5349229B2 (en) Method for identifying fault location in packet ring network and system for executing the method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant