CN107547330B - Method and node equipment for transmitting service data - Google Patents

Method and node equipment for transmitting service data Download PDF

Info

Publication number
CN107547330B
CN107547330B CN201710773097.3A CN201710773097A CN107547330B CN 107547330 B CN107547330 B CN 107547330B CN 201710773097 A CN201710773097 A CN 201710773097A CN 107547330 B CN107547330 B CN 107547330B
Authority
CN
China
Prior art keywords
rpr
node
node device
port
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710773097.3A
Other languages
Chinese (zh)
Other versions
CN107547330A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710773097.3A priority Critical patent/CN107547330B/en
Publication of CN107547330A publication Critical patent/CN107547330A/en
Application granted granted Critical
Publication of CN107547330B publication Critical patent/CN107547330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method for transmitting service data and node equipment, belonging to the technical field of Internet. The method is applied to a node device of a Resilient Packet Ring (RPR) node, a first RPR port of the node device is connected with a neighboring RPR node of the RPR node, a second RPR port of the node device is connected with another node device of the RPR node, and the method comprises the following steps: the node equipment transmits the received service data to another node equipment through the second RPR port so as to carry out upper ring transmission and lower ring transmission; the node device detecting the another node device failure; the node equipment switches the slave equipment state of the equipment into a master equipment state; and the node equipment performs upper ring transmission and lower ring transmission on the service data of the RPR node. By adopting the invention, the stability of data transmission can be improved.

Description

Method and node equipment for transmitting service data
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and a node device for transmitting service data.
Background
With the development of internet technology, the application of RPR (Resilient Packet Ring) technology is becoming more and more widespread. The RPR is a new Media Access Control (MAC) protocol, and has the advantages of high bandwidth utilization, broadcast and multicast support, topology automatic discovery, and support for plug and play of nodes.
The network topology of the RPR protocol is generally a ring structure, and the ring structure includes a plurality of RPR nodes, which are usually a switch or a router, and each RPR node includes two RPR ports and is connected to an adjacent RPR node through its two RPR ports, thereby forming a ring network. Each RPR port can simultaneously transmit and receive data, and based on this, the RPR adopts a reverse dual-ring structure, and is divided into an inner ring and an outer ring, that is, an outer ring (also referred to as a 0 ring) and an inner ring (also referred to as a 1 ring), where data is transmitted in a clockwise direction on the outer ring and in a counterclockwise direction on the inner ring. Other network devices (such as devices of an IP backbone network and a lower-layer switch) can establish connection with an RPR node in a ring network, and further send data to a receiving party through the ring network, thereby implementing data transmission between other network devices.
However, when a single point of failure occurs at a certain RPR node in the ring network (for example, two RPR ports of the RPR node both fail or the RPR node is not in place), the RPR node cannot receive and transmit data, so that all network devices connected to the RPR node cannot transmit data through the ring network, and the stability of data transmission is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a method for transmitting service data and node equipment, so as to improve the stability of data transmission.
In a first aspect, a method for transmitting traffic data is provided, where the method is applied to a node device of a Resilient Packet Ring (RPR) node, a first RPR port of the node device is connected to a neighboring RPR node of the RPR node, a second RPR port of the node device is connected to another node device of the RPR node, and the method includes:
the node equipment transmits the received service data to another node equipment through the second RPR port so as to carry out upper ring transmission and lower ring transmission;
the node device detecting the another node device failure;
the node equipment switches the slave equipment state of the equipment into a master equipment state;
and the node equipment performs upper ring transmission and lower ring transmission on the service data of the RPR node.
A second aspect provides a node apparatus of an RPR node, a first RPR port of the node apparatus connecting neighboring RPR nodes of the RPR node, a second RPR port of the node apparatus connecting another node apparatus of the RPR node, the node apparatus including:
the first transmission unit is used for transmitting the received service data through the second RPR port in the transparent transmission mode;
a detection unit that detects a failure of the other node device;
the switching unit is used for switching the slave equipment state of the equipment to the master equipment state;
and the second transmission unit is used for carrying out upper ring transmission and lower ring transmission on the service data of the RPR node.
In the embodiment of the invention, the node equipment transmits the received service data to another node equipment through a second RPR port so as to carry out upper ring transmission and lower ring transmission, and the node equipment detects the fault of the other node equipment; the node device switches the slave device state of the device to the master device state, and the node device performs upper ring transmission and lower ring transmission on the service data of the RPR node. Therefore, even if another node device has a single point of failure, the network device connected with the RPR node can transmit data through the node device, and the stability of data transmission is improved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a system framework diagram provided by an embodiment of the present invention;
FIG. 2 is a system framework diagram provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an RPR board according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an RPR node according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for transmitting service data according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for switching between a master device and a slave device according to an embodiment of the present invention;
fig. 7a and fig. 7b are schematic diagrams illustrating transmission of service data according to an embodiment of the present invention;
fig. 8a and fig. 8b are schematic diagrams illustrating transmission of service data according to an embodiment of the present invention;
fig. 9a and fig. 9b are schematic diagrams illustrating transmission of service data according to an embodiment of the present invention;
fig. 10a and fig. 10b are schematic diagrams illustrating transmission of service data according to an embodiment of the present invention;
fig. 11a and fig. 11b are schematic diagrams illustrating transmission of service data according to an embodiment of the present invention;
fig. 12 is a flowchart of a method for switching between a master device and a slave device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a node device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
RPR is a new type of MAC (Media Access Control) protocol, and the network topology of RPR protocol is generally a ring structure (also called ring network). The ring network may be formed of a plurality of RPR nodes. The RPR adopts a reverse double-ring structure, and is divided into an inner ring and an outer ring, i.e., an outer ring (also referred to as a 0 ring) and an inner ring (also referred to as a 1 ring), where data is transmitted in a clockwise direction on the outer ring and in a counterclockwise direction on the inner ring. As shown in fig. 1, a network topology diagram of an RPR protocol provided in the embodiment of the present invention includes 4 RPR nodes, i.e., S1, S2, S3, and S4.
In the embodiment of the present invention, an RPR node may include at least two node devices, and in an operation process, one node device may serve as a master device (i.e., a master), other node devices may serve as slave devices (i.e., a slave), and the number of the slave devices may be one or multiple. The embodiment of the present invention is described by taking an example in which an RPR node includes a master device and a slave device, and the other cases are similar to these. As shown in fig. 2, the system framework diagram of this embodiment is an example, where S4 includes two node devices, and the remaining RPR nodes are common RPR nodes in the prior art. It should be noted that, for a plurality of RPR nodes in the ring network, part of RPR nodes (for example, important RPR nodes in the ring network) may adopt the RPR nodes described in the present invention, and the other RPR nodes may adopt common RPR nodes, or all of the RPR nodes described in the present invention, and the specific implementation manner may be set by a technician.
In the embodiment of the present invention, the node devices that the RPR node may include may be devices such as a switch or a router, and the node devices that the RPR node may include may have completely the same functions, and the node devices and the RPR node may be backup devices for each other (i.e., mutual mate), and the mate node may form a redundant backup relationship. The node role of one node device may be a west node (i.e., a west node), the node role of another node device may be an east node (i.e., an east node), and the node roles may be arbitrarily set by a technician.
An RPR interface board may be configured in the node device to implement the relevant functions of the RPR protocol. The general hardware architecture is as follows (the vendors are not exactly the same, but the basic logical framework is the same): the method includes that firstly, messages are mutually forwarded with ETH interface boards on other slot positions, so that the Ethernet message processing chip, namely a PP (Packet Processor) can be included, and the Ethernet message processing chip can also comprise a special RPR processing chip, such as an FPGA (field programmable gate array), the PP and the FPGA can be connected through an ETH port, and the FPGA is responsible for the encapsulation and the decapsulation of RPR messages (for unicast messages, an upper ring after RPR site MAC is encapsulated, for broadcast messages, an upper ring after a broadcast identifier is set) and the realization of other RPR QOS mechanisms. As shown in fig. 3, a schematic diagram of an RPR interface board provided in this embodiment is shown.
Two RPR ports may be respectively disposed in the node device, a first RPR port of the node device may be used to connect with an adjacent node of the RPR node, and the first RPR port may be referred to as an outer port. A second RPR port of a node device may establish a connection (e.g., directly connected via an optical fiber) with an RPR port of another node device, and may be referred to as an inner port. As shown in fig. 4, it is a schematic structural diagram of an RPR node, where a west port of N1 and an east port of N2 are outer ports, where a west port of N1 is connected to an east port of S1, and an east port of N2 is connected to a west port of S3; the east port of N1 and the west port of N2 are inner ports, and the east port of N1 is connected to the west port of N2.
In order to prevent a situation that a single point of failure occurs in a RPR node in a ring network, which results in that the RPR node cannot receive and transmit data, this embodiment provides a method for transmitting service data.
As shown in fig. 5, the processing procedure of the method may include the following steps:
step 501, the node device transparently transmits the received service data to another node device through a second RPR port, so as to perform upper ring transmission and lower ring transmission.
At step 502, a node device detects another node device failure.
In implementation, during the operation process of the node device, the operation state of the node device can be detected in real time, and the operation state comprises the state of the RPR port and the in-place information. The status of the RPR port may be available or unavailable, and the presence information may be present or absent. The detection process of the operation state will be described in detail later. The node device can send the running state of the node device to another node device in real time so as to judge whether the other node device has a single-point fault according to the running state of the other node device. If the state of the RPR port is available and the in-place information is in place, the node equipment does not have single-point failure; otherwise, the node equipment has single point of failure.
In step 503, the node device switches the slave device state of the node device to the master device state.
In an implementation, when the node device detects a single point of failure of another node device, the node device may switch to a master device state. The process of switching the node device to the master device state may be as follows: deleting the transparent transmission mode of the second RPR port; setting a local logic port to be in an enabling state; and setting the working mode of the equipment to be switched into an RPR transmission mode.
The master device state may be that the state of the logical port is an enabled state (i.e., a forward state), and the operating mode is an RPR transmission mode (i.e., a normal mode); the slave state may be a state in which the logical port is in an disabled state (i.e., a down state).
Each node device also includes a logical port, which may be a logical port formed by two RPR ports (i.e., an east port and a west port) of the node device. The node device can perform data transmission with other network devices through the logical port. The logical port has at least two states, namely a forward state (namely, an enabled state) and a down state (namely, a disabled state), and when a node device is in the forward state, the service data of the RPR node to which the node device belongs can be transmitted on an upper ring and a lower ring through the node device; when the node device is in the down state, the service data of the RPR node to which the node device belongs cannot be transmitted in the upper and lower rings through the node device. Based on this, the state of the logical port of the master device is a forward state, and the state of the logical port of the slave device is a down state.
In addition, each node device has two working modes, namely a normal mode (namely, an RPR transmission mode) and a pass through mode (namely, a non-RPR transmission mode), and when the node device is in the normal mode, all protocol functions of the RPR, such as topology sensing, protection switching and the like, can be realized; when the node equipment is in a pass through mode, the RPR protocol is in a pass through state and does not send and receive any RPR protocol message, any message received by the node equipment from the east port is unconditionally passed through to the west port, and any message received by the west port is unconditionally passed through to the east port. Based on this, the operation mode of the master device is normal mode, and the operation mode of the slave device may be pass through mode or other modes, such as isolation mode.
When detecting that another node device has a single point fault, the node device may delete the transparent transmission mode of the second RPR port, set the local logical port to the enabled state, and set the working mode of the device to switch to the RPR transmission mode.
In step 504, the node device performs upper ring transmission and lower ring transmission on the service data of the RPR node.
In practice, after the node device is switched to the master device state, the service data sent by the adjacent node may be received through the first RPR port, or the service data may be sent to the adjacent node through the first RPR port, so as to implement upper ring transmission and lower ring transmission of the service data.
In practice, the specific situation that the node device determines that another node device has a single point of failure may include the following:
in the first case, the node device receives the primary/secondary switching notification through the second RPR port, and detects that another node device fails according to the primary/secondary switching notification.
In case two, the node device detects that both RPR ports of the other node device fail.
And in case three, the node device detects that the in-place information of the other node device is not in place.
For the first situation, as shown in fig. 6, an embodiment of the present invention further provides a flowchart of active/standby switching, where the processing procedure specifically includes the following steps:
step 601, another node device respectively performs physical port detection and neighbor reachability detection on the first RPR port and the second RPR port, and if the result of the physical port detection is unavailable or the result of the neighbor reachability detection is a fault, it determines that the RPR port is the fault.
Step 602, when another node device detects that both local RPR ports have a fault, it sends a master/slave switching notification to the node device.
Step 603, the node device receives the master/slave switching notification through the second RPR port.
Step 604, the node device switches to the master device state.
In implementation, the node device may detect the status of the two RPR ports locally in real time. For each RPR port, the node device may perform physical port detection, that is, detect whether the physical port of the RPR is connected, and if so, determine that a result of the physical port detection is available, and if not, determine that a result of the physical port detection is unavailable.
The node device may also perform neighbor reachability detection on the RPR port. Wherein, the RPR node adjacent to the RPR node may be referred to as an adjacent node of the RPR node, for example, in fig. 2, S1 and S3 are adjacent nodes of S4. The node equipment can send a keep alive message to an adjacent node through the RPR port in real time, wherein the keep alive message is a quick handshake message between the RPR nodes, when the node equipment is main equipment, the keep alive message can be sent and received, and when the node equipment is slave equipment, the message can be transmitted transparently. Based on this, if another node device receives the response message transmitted by the adjacent node from the RPR port, it may be determined that the result of the adjacent reachability detection of the RPR port is normal, and otherwise, it may be determined that the result of the adjacent reachability detection of the RPR port is a failure. When the node device detects that a physical port detection result of a certain RPR port is unavailable or a neighbor reachability detection result of the RPR port is a failure, it may be determined that the RPR port is a failure.
When another node device detects that both local RPR ports are normal, the RPR node may perform network traffic transmission normally, as shown in fig. 7a and 7b, which are schematic diagrams illustrating that another node device transmits traffic data in a normal state.
When another node device detects that there is a RPR port failure locally, the RPR node may switch the flow direction of the service data based on a preset path selection mechanism, so as to perform uplink and downlink data transmission with the network device connected thereto. As shown in fig. 8a, 8b, 9a, 9b, 10a and 10b, fig. 8a, 9a and 10a show the original data flow, and fig. 8b, 9b and 10b show the switched data flow. In fig. 10a and 10b, when the outer port link of N2 fails, the inner port of N1 cannot receive the keep alive message of the neighboring node although the port physical state is normal, and therefore the inner port of N1 also fails.
When another node device detects that both local RPR ports have a failure, the other node device cannot perform upper and lower ring data transmission, and may send a master/slave switching notification to the node device. After receiving the master/slave switching notification, the node device may switch to the master device state, as shown in fig. 11a and 11 b. The active/standby switching notification may be sent through an internal control channel between the node device and another node device.
In addition, the node apparatus may also detect the state of its RPR port. Since the node device is a slave device and cannot receive and transmit the keep alive message, the node device only needs to detect the physical port states of the two RPR ports and can send the states of the RPR ports to another node device. In addition, the node device may also send its presence information to another node device, so that the other node device determines whether the node device has a single point of failure. Correspondingly, when another node device detects that both local RPR ports have a fault, if it is determined that the node device does not currently have a single point fault, a master/slave switching notification is sent to the node device.
Optionally, when the other node device detects that both local RPR ports have a fault, the other node device may further set a transparent transmission mode for the second RPR port; setting a local logic port to be in a non-enabled state; and setting the working mode of the equipment as a non-RPR transmission mode.
In implementation, when another node device detects that both local RPR ports are faulty, the other node device may switch the local logical port to a non-enabled state, switch the working mode of the device to a non-RPR transmission mode, such as an isolation mode or a transparent transmission mode, and set the second RPR port to a transparent transmission mode, so that the other node device will not receive service data sent by other network devices.
For the second case, as described above, another node device may detect the states of the local first RPR port and the local second RPR port in real time, and may then send state information to the node device, such as a normal eastward port and a failure of a westward port. In this way, the node device can know the states of the two RPR ports of the other node device. When the state information received by the node device is that both the east port and the west port are in failure, the node device can be switched to the master device state. In addition, for the case where another node device sends the primary/secondary switching notification, if the node device detects that both RPR ports of another node device have failed and does not receive the primary/secondary switching notification, the primary/secondary switching may be directly performed.
For the third case, the node device and the other node device are both provided with RPR interface boards to implement the related functions of RPR. If the RPR interface board is installed in the node device, the presence information of the node device is present (i.e., mate present), and if the RPR interface board is not installed in the node device (e.g., removed by a technician), the presence information of the node device is absent (i.e., mate present). The node device may receive presence information sent by another node device, and when the received presence information is mate absence, if the node device does not currently have a single point failure, the node device may switch to a master device state. If the in-place information received by the node device is mate present and at least one of the two RPR ports of the other node device is normal, the active/standby switching may not be performed.
In addition, if the node device does not detect that another node device has a single point fault, the node device transparently transmits the received service data. As shown in fig. 11a and 11b, the original service data is sent to N1, then sent out by the east interface of N1, and sent to the neighboring node through N2; after a single point failure of N1, the service data is sent to N2 and sent to the adjacent nodes by the east interface of N2.
Optionally, the logical port of the node device and the logical port of another node device may form a trunk group, and correspondingly, the processing procedure in step 502 may be as follows: the node equipment receives service data sent by network equipment connected with an RPR node through a trunk group, and performs upper ring transmission on the service data; and/or the node equipment receives the service data sent by the adjacent node and performs ring-down transmission on the service data through a trunk group.
In implementation, the process of sending network data to a certain RPR node in the ring network and then forwarding the network data to other RPR nodes by the RPR node may be referred to as upper ring transmission; the process of receiving the service data sent by other RPR nodes and sending the service data to the network device by the RPR node may be referred to as ring down transmission.
The RPR ports of the node device and another node device may aggregate a trunk group on the switch chip, and the trunk group may correspond to a network address (i.e., the network address of the RPR node to which the node device belongs). The network device can only know the trunk group and the corresponding network address, and store the trunk group and the corresponding network address in the service table entry. When a certain network device (which may be called a sender) needs to send data to other network devices (which may be called receivers) through a ring network, the sender may search a trunk group of an RPR node connected to the sender, and then send service data to the RPR node through the trunk group, where the node device may perform upper ring transmission on the service data, and the service data may be transmitted to the receivers through the ring network; when the node device receives the service data sent by the adjacent node, the node device can perform ring-down transmission on the service data through the trunk group.
Because the trunk group is normal (i.e., UP) as long as one logical port is available (i.e., forward) in the trunk group, the trunk group is always in the UP state as long as a master node exists, and even if the master node changes, a service table entry of the network device is always unchanged and cannot be sensed, so that the service data can still be normally transmitted under the condition that a single-point fault occurs in a certain node device.
Optionally, when the RPR node is initialized to operate, the node device with the preset node role may be taken as a master device, for example, the node device with the node role of west node may be taken as a master device. In this case, after the node device is switched to the master device state, if it is detected that the single point failure of the other node device recovers (that is, the other node device is in place and at least one RPR port in the other node device is available), it may be determined whether the local node role is a preset node role, if so, no processing may be performed, and if not, a master/slave switching notification may be sent to the other node device, so that the other node device is switched to the master device state, and the node device switches itself to the slave device.
Optionally, when the node device is in the master device state, for each RPR port in the node device, the node device may also perform physical port detection and adjacent reachability detection on the RPR port, respectively, and if a result of the physical port detection is unavailable or a result of the adjacent reachability detection is a failure, determine that the RPR port is a failure. The specific processing procedure of this step may refer to the related description of step 601, and is not described again.
Optionally, when the node device is in the master device state, the node device detects that the first RPR port and the second RPR port are faulty, and sends a master/slave switching notification to another node device; setting a transparent transmission mode for the second RPR port; setting a local logic port to be in a non-enabled state; and setting the working mode of the equipment as a non-RPR transmission mode. The specific processing procedure of this step may refer to the related description of fig. 6, and is not described again.
Optionally, when the node device is in the master device state, if it is detected that both of the local RPR ports are failed, the node device may further switch the local logical port to the disabled state. The specific processing procedure of this step may refer to the related description of fig. 6, and is not described again.
As shown in fig. 12, taking the node device as the current master device and the preset node role as a west-oriented node as an example, the processing procedure may include the following steps:
in step 1201, the node device enters a master state.
In step 1202, the node device detects whether two RPR ports are failed, if so, step 1203 is executed, otherwise, step 1204 is executed.
Step 1203, sending a master-slave switching notification to mate, and switching the master-slave switching notification to the slave device state.
Step 1204, if it is detected that the mate does not have the single point fault, determining whether the local node role is a west node, if so, executing step 1205, otherwise, executing step 1203 according to a west node priority principle.
And step 1205, keeping the state of the master device unchanged, and transmitting data.
In the slave device state and the local single point failure recovery, step 1206 is executed when the single point failure of mate is detected.
In the embodiment of the invention, the node equipment transmits the received service data to another node equipment through a second RPR port so as to carry out upper ring transmission and lower ring transmission, and the node equipment detects the fault of the other node equipment; the node device switches the slave device state of the device to the master device state, and the node device performs upper ring transmission and lower ring transmission on the service data of the RPR node. Therefore, even if another node device has a single point of failure, the network device connected with the RPR node can transmit data through the node device, and the stability of data transmission is improved.
Based on the same technical concept, an embodiment of the present invention further provides a node device of an RPR node, as shown in fig. 13, where a first RPR port of the node device is connected to an adjacent RPR node of the RPR node, and a second RPR port of the node device is connected to another node device of the RPR node, and the node device includes:
the first transmission unit 1310, configured to send the received service data through the second RPR port in the transparent transmission mode;
a detecting unit 1320 that detects the another node device failure;
a switching unit 1330 configured to switch the slave device state of the device to the master device state;
the second transmitting unit 1340 performs upper ring transmission and lower ring transmission on the service data of the RPR node.
Optionally, the first transmission unit 1310 receives a master/slave switching notification through the second RPR port;
the detecting unit 1320 detects that the another node device fails according to the active/standby switching notification.
Optionally, the detecting unit 1320 determines that the another node device has a failure according to the detection that both RPR ports of the another node device have a failure.
Optionally, the detecting unit 1320 detects that the in-place information of the another node device is not in place, and determines that the another node device has a fault.
Optionally, the switching unit 1330 configured to switch the slave device state of the device to the master device state includes: the switching unit 1330 deletes the transparent transmission mode of the second RPR port, and sets the local logical port to the enabled state; and setting the working mode of the equipment to be switched into an RPR transmission mode.
Optionally, the apparatus further comprises a notification unit 1350,
the detecting unit 1320 detects that the first RPR port and the second RPR port fail;
the notifying unit 1350 sends a main/standby switching notification to the other node device;
the switching unit 1330 sets the second RPR port to transparent transmission mode; setting the local logic port to be in a non-enabling state; and setting the working mode of the equipment to be a non-RPR transmission mode.
In the embodiment of the invention, the node equipment transmits the received service data to another node equipment through a second RPR port so as to carry out upper ring transmission and lower ring transmission, and the node equipment detects the fault of the other node equipment; the node device switches the slave device state of the device to the master device state, and the node device performs upper ring transmission and lower ring transmission on the service data of the RPR node. Therefore, even if another node device has a single point of failure, the network device connected with the RPR node can transmit data through the node device, and the stability of data transmission is improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A method for transmitting service data is applied to a node device of a Resilient Packet Ring (RPR) node, wherein a first RPR port of the node device is connected to an adjacent RPR node of the RPR node, a second RPR port of the node device is connected to another node device of the RPR node, and the node device and the another node device are backup devices for each other to form a redundant backup relationship, and the method comprises:
the node device transparently transmits the received service data to another node device through the second RPR port so as to perform upper ring transmission and lower ring transmission, wherein the upper ring transmission is a process that the network data is transmitted to a certain RPR node in a ring network and then the RPR node transmits the network data to other RPR nodes, and the lower ring transmission is a process that the RPR node receives the service data transmitted by other RPR nodes and transmits the service data to the network device;
the node device detecting the another node device failure;
the node equipment switches the slave equipment state of the equipment into a master equipment state;
and the node equipment performs upper ring transmission and lower ring transmission on the service data of the RPR node.
2. The method of claim 1, wherein the node device detecting the another node device failure comprises:
and the node equipment receives a main/standby switching notification through the second RPR port, and detects that the other node equipment has a fault according to the main/standby switching notification.
3. The method of claim 1, wherein the node device detecting the another node device failure comprises:
the node device detects that both RPR ports of the other node device fail.
4. The method of claim 1, wherein the node device detecting the another node device failure comprises:
the node device detects that the presence information of the other node device is not present.
5. The method according to any one of claims 1 to 4, wherein the node device switches the slave device state of the node device to the master device state, and includes:
deleting the transparent transmission mode of a second RPR port of the node equipment;
setting a local logic port to be in an enabling state;
and setting the working mode of the equipment to be switched into an RPR transmission mode.
6. The method of claim 3, further comprising:
the node device detects that a first RPR port of the node device and a second RPR port of the node device are in fault, and sends a main/standby switching notification to the other node device;
setting a transparent transmission mode for the second RPR port;
setting a local logic port to be in a non-enabled state;
and setting the working mode of the equipment as a non-RPR transmission mode.
7. A node device of an RPR node, wherein a first RPR port of the node device is connected to an adjacent RPR node of the RPR node, a second RPR port of the node device is connected to another node device of the RPR node, the node device and the another node device are backup devices for each other to form a redundant backup relationship, and the node device includes:
the first transmission unit is used for transmitting the received service data through the second RPR port in the transparent transmission mode;
a detection unit that detects a failure of the other node device;
the switching unit is used for switching the slave equipment state of the equipment to the master equipment state;
and the second transmission unit is used for performing upper ring transmission and lower ring transmission on the service data of the RPR node, wherein the upper ring transmission is a process of sending network data to a certain RPR node in a ring network and then forwarding the network data to other RPR nodes by the RPR node, and the lower ring transmission is a process of receiving the service data sent by other RPR nodes by the RPR node and sending the service data to network equipment.
8. The apparatus of claim 7,
the first transmission unit receives a master/standby switching notification through the second RPR port;
and the detection unit is used for detecting that the other node equipment has a fault according to the main/standby switching notification and determining that the other node equipment has the fault.
9. The apparatus of claim 7,
and the detection unit is used for determining that the other node equipment has a fault according to the detection that the two RPR ports of the other node equipment have faults.
10. The apparatus of claim 7,
and the detection unit detects that the in-place information of the other node device is not in place, and determines that the other node device has a fault.
11. The apparatus according to any one of claims 7 to 10, wherein the switching unit switches the slave state of the apparatus to the master state includes: the switching unit deletes the transparent transmission mode of a second RPR port of the node equipment and sets a local logic port as an enabling state; and setting the working mode of the equipment to be switched into an RPR transmission mode.
12. The apparatus according to claim 11, characterized in that the apparatus further comprises a notification unit,
the detection unit detects that a first RPR port of the node device and a second RPR port of the node device fail;
the notification unit sends a master/slave switching notification to the other node device;
the switching unit sets a second RPR port of the node equipment to be in a transparent transmission mode; setting a local logic port to be in a non-enabled state; and setting the working mode of the equipment as a non-RPR transmission mode.
CN201710773097.3A 2017-08-31 2017-08-31 Method and node equipment for transmitting service data Active CN107547330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710773097.3A CN107547330B (en) 2017-08-31 2017-08-31 Method and node equipment for transmitting service data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710773097.3A CN107547330B (en) 2017-08-31 2017-08-31 Method and node equipment for transmitting service data

Publications (2)

Publication Number Publication Date
CN107547330A CN107547330A (en) 2018-01-05
CN107547330B true CN107547330B (en) 2021-05-28

Family

ID=60959158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710773097.3A Active CN107547330B (en) 2017-08-31 2017-08-31 Method and node equipment for transmitting service data

Country Status (1)

Country Link
CN (1) CN107547330B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718267B (en) * 2018-03-13 2021-04-20 新华三技术有限公司 Method and device for transmitting data message in RPR ring
CN113938420B (en) * 2021-10-26 2023-06-20 新华三信息安全技术有限公司 Loop avoidance method and device for RPR (resilient packet ring) intersection loop

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956407A (en) * 2005-10-29 2007-05-02 华为技术有限公司 Method and device for implementing ring configuration in ring network
CN101051983A (en) * 2007-05-11 2007-10-10 杭州华三通信技术有限公司 Construction method for reliable RPR circular net and relative RPR station device
CN101188539A (en) * 2006-11-21 2008-05-28 日本电气株式会社 Resilient packet ring (RPR) network system, RPR node device, and redundancy method for the same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130049A (en) * 2003-10-21 2005-05-19 Fujitsu Ltd Node
CN1780295B (en) * 2004-11-24 2010-06-30 杭州华三通信技术有限公司 Method for realizing redundant router protocol on elastic packet loop
CN100461739C (en) * 2007-03-13 2009-02-11 华为技术有限公司 RPR bidge redundancy protecting method and RPR bridge ring equipment
US8320282B2 (en) * 2009-07-30 2012-11-27 Calix, Inc. Automatic control node selection in ring networks
JP5413503B2 (en) * 2010-03-18 2014-02-12 富士通株式会社 Node and ring information transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956407A (en) * 2005-10-29 2007-05-02 华为技术有限公司 Method and device for implementing ring configuration in ring network
CN101188539A (en) * 2006-11-21 2008-05-28 日本电气株式会社 Resilient packet ring (RPR) network system, RPR node device, and redundancy method for the same
CN101051983A (en) * 2007-05-11 2007-10-10 杭州华三通信技术有限公司 Construction method for reliable RPR circular net and relative RPR station device

Also Published As

Publication number Publication date
CN107547330A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
JP5061748B2 (en) Packet ring network system and packet transfer method
CN100409634C (en) Fast ring network protecting method and system
RU2423008C2 (en) METHOD AND SYSTEM FOR AUTOMATIC PROTECTION OF Ethernet NETWORK
JP4743201B2 (en) Packet ring network system, connection method between packet rings, and connection node between rings
US8179788B2 (en) Protection switching method and apparatus for use in ring network
US20220174006A1 (en) Method for EVPN and VPLS Active-Active Integration, Device, and System
CN102255757B (en) Link switching method and device
CN100454880C (en) Method and system of realizing rig network protection
WO2009111969A1 (en) Method for blocking the edge port in the ethernet, ethernet loop network system and apparatus
JP2007174119A (en) Layer 2 network
JP2003258822A (en) Packet ring network and inter-packet ring network connection method used in the same
CN101714939A (en) Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network
WO2010031295A1 (en) Control method for ethernet failure recovery
US8467286B2 (en) Load balancing and fault protection in aggregation networks
CN107547330B (en) Method and node equipment for transmitting service data
CN112995002B (en) Switch ring network design method, switch and storage medium
CN102238067B (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
JP5618946B2 (en) Communication apparatus and communication system
CN100550812C (en) Improve method, system and the node device of dependability of fast looped network
JP5004758B2 (en) Layer 2 network and network connection device
GB2494385A (en) Transmitting and Forwarding Data
KR101326089B1 (en) Controlling method of the hierarchy system for transmission of the real-time data such as an audio over internet protocol network
WO2011011934A1 (en) Method and apparatus for ethernet tunnel segmentation protection
JPWO2006075402A1 (en) Open loop network node device and open loop network control method
CN109600290A (en) A kind of more main methods coexisted in loop network

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