CN106941436B - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
CN106941436B
CN106941436B CN201610005843.XA CN201610005843A CN106941436B CN 106941436 B CN106941436 B CN 106941436B CN 201610005843 A CN201610005843 A CN 201610005843A CN 106941436 B CN106941436 B CN 106941436B
Authority
CN
China
Prior art keywords
node
message
packet
receiving
channel
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
CN201610005843.XA
Other languages
Chinese (zh)
Other versions
CN106941436A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610005843.XA priority Critical patent/CN106941436B/en
Priority to PCT/CN2016/093615 priority patent/WO2017118008A1/en
Publication of CN106941436A publication Critical patent/CN106941436A/en
Application granted granted Critical
Publication of CN106941436B publication Critical patent/CN106941436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a message transmission method and a device, wherein the method comprises the following steps: a first node in an optical packet transport network POTN determines a message transmission direction between the first node and a second node to be adjusted; the first node adjusts the message transmission direction; and the first node transmits the message with the second node by utilizing the adjusted message transmission direction. The problems of large configuration workload, complex bandwidth control calculation and excessive occupied link bandwidth of POTN shared ring network protection in the related technology are solved, and the effects of reducing the configuration workload, the bandwidth control calculation complexity and the occupied link bandwidth of the POTN shared ring network protection are achieved.

Description

Message transmission method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for transmitting a packet.
Background
An Optical Packet Transport Network (Packet Optical Transport Network, abbreviated as POTN) technology is a result of continuous evolution of a Packet Transport Network (Packet Transport Network, abbreviated as PTN), and adopts a Transport subset (Multi-Protocol Label Switching-Transport Profile, abbreviated as MPLS-TP) over Optical channel Data Unit (Optical channel Data Unit, abbreviated as ODU) mode based on Multi-Protocol Label Switching to perform MPLS Packet split-loading on a Multi-service Packet and then map the Multi-service Packet to an ODU timeslot channel of an Optical Transport Network (Optical Transport Network, abbreviated as OTN) for transmission, so that advantages of PTN and OTN are combined, and an original PTN Network and OTN node can be fused at the same time.
For MPLS-TP over ODU scenarios, if an ODU is segmented in a pots network, bandwidth can be effectively utilized by using a ring network protection function of an OTN, but since the ODU is segmented, a Label Switched Path (LSP) passing through a node in the pots network cannot be protected by the ring network when the node fails. For MPLS-TP over ODU scenes that small particles such as a base station need to converge services, ODU is deployed in sections in a POTN network, OTN protection is not deployed, and local failure faults can be solved by deploying PTN side shared ring protection.
The PTN side shared ring network is based on a packaging Wrapping ring network technology at present, a plurality of service tunnels can be looped on different nodes, enter the same shared tunnel, and then are looped on the last same node. In a POTN network, this approach can also be used, but it also has some disadvantages: a shared tunnel and a protection tunnel of the shared tunnel need to be configured, for a shared ring network with N node combinations, 4 × N ring network tunnels need to be configured, and the configuration workload is very large; meanwhile, different shared working tunnels correspond to different protection tunnels, so that the calculation on bandwidth control is very complex; the segment needs to be configured, and Operation Administration and Maintenance (OAM) needs to be started on the segment, and the link bandwidth needs to be occupied.
Aiming at the problems of large configuration workload, complex bandwidth control calculation and excessive occupation of link bandwidth of POTN shared ring network protection in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a message transmission method and a message transmission device, which are used for at least solving the problems of large configuration workload, complex bandwidth control calculation and excessive occupation of link bandwidth of POTN (packet optical transport network) shared ring network protection in the related technology.
According to an aspect of the present invention, there is provided a packet transmission method, including: a first node in an optical packet transport network POTN determines a message transmission direction between the first node and a second node to be adjusted; the first node adjusts the message transmission direction; and the first node transmits the message with the second node by using the adjusted message transmission direction.
Optionally, the determining, by the first node in the POTN, that the message transmission direction to the second node needs to be adjusted includes at least one of: the first node detects that a link between the first node and the second node fails; the first node detects that a node between the first node and the second node fails; and the first node receives a switching command for switching message transmission between the first node and the second node.
Optionally, the adjusting, by the first node, the packet transmission direction includes: the first node adjusts message transmission of the first node in a first direction of the first node and a second direction of the first node, wherein the first direction is one of an east direction and a west direction, and the second direction is the other direction.
Optionally, before determining that the message transmission direction needs to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node detects that a link between the first node and the second node fails and/or the first node detects that a node between the first node and the second node fails, the adjusting, by the first node, the message transmission of the first node in the first direction of the first node and the second direction of the first node by the first node includes: when sending a message, the first node sends the message to the first working channel and a second protection channel of the first node in the second direction; and/or, when receiving a packet, the first node performs the following processing on the packet to be received through the first working channel and the first protection channel of the first node in the first direction: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the packet received through a second working channel of the first node in the second direction and a second protection channel of the first node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, after the first node adjusts packet transmission of the first node in the first direction of the first node and the second direction of the first node, the method further includes: after the first node determines that the message transmission direction between the first node and the second node is recovered, the first node transmits the message to the second node in the following mode: when sending a message, sending the message through the first working channel and the second protection channel; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the first protection channel and the second protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; after the second node is determined to be recovered to the normal state, entering the normal state; or, the first node receives an indication message sent by the second node and used for indicating that the message transmission direction between the first node and the second node has been restored; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
Optionally, before determining that the packet transmission direction needs to be adjusted, the first node performs packet transmission with the second node through a first working channel in the first direction of the first node, and when the first node receives a switch command for performing packet transmission switch with the second node, the adjusting, by the first node, packet transmission of the first node in the first direction of the first node and the second direction of the first node by the first node includes: the first node enters a first message transmission state as follows: when sending a message, sending the message through the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet; after entering the first message transmission state, the first node indicates the second node to enter a second message transmission state as follows: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: after receiving the message decoded by the ODUK, performing label processing on the message; after the first node determines that the second node enters the second message transmission state, the first node enters a third message transmission state as follows: when sending a message, the first node sends the message to the first working channel and the second protection channel; and/or, when receiving a message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node processes the messages received through the second working channel and the second protection channel as follows: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, after the first node adjusts packet transmission of the first node in the first direction of the first node and the second direction of the first node, the method further includes: after the first node determines that the switching command is cancelled, the first node enters the first message transmission state; after the first node enters the first message transmission state, indicating the second node to enter a normal state; after the first node determines that the second node enters the normal state, the first node enters the normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
According to another aspect of the present invention, there is provided a packet transmission method, including: a second node in the POTN determines the message transmission direction between the second node and a first node to be adjusted; the second node adjusts the message transmission direction; and the second node transmits the message with the first node by using the adjusted message transmission direction.
Optionally, the determining, by the second node in the POTN, that the message transmission direction to the first node needs to be adjusted includes at least one of: the second node detects that a link between the second node and the first node fails; the second node detects that a node between the second node and the first node fails; and the second node receives an adjusting instruction sent by the first node, wherein the adjusting instruction is used for indicating the second node to adjust the message transmission direction with the first node.
Optionally, the adjusting, by the second node, the packet transmission direction includes: the second node adjusts message transmission of the second node in a first direction of the second node and a second direction of the second node, wherein the first direction is one of an east direction and a west direction, and the second direction is the other direction.
Optionally, before determining that the message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node detects that a link between the second node and the first node fails and/or the second node detects that a node between the second node and the first node fails, the adjusting, by the second node, the message transmission of the second node in the first direction of the second node and the second direction of the second node by the second node includes: when sending a message, the second node sends a message to the fourth working channel and a third protection channel of the second node in the first direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the fourth working channel and a fourth protection channel in the second direction of the second node: before receiving a message solved by an optical data unit ODUK, discarding the message; the second node performs the following processing on the packet received through a third working channel of the second node in the first direction and a third protection channel of the second node in the first direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, the method further includes: after the second node determines that the message transmission direction between the second node and the first node is recovered, the second node transmits the message to the first node in the following mode: when sending a message, sending the message through the fourth working channel and the third protection channel; and/or, when receiving the message, processing the message to be received through the fourth working channel and the third working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the fourth protection channel and the third protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; entering a normal state after the first node is determined to be recovered to the normal state; or, the second node receives an indication message sent by the first node and used for indicating that the message transmission direction between the first node and the second node has been restored; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
Optionally, before the second node determines that the message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node receives an adjustment instruction sent by the first node, the adjusting, by the second node, the message transmission of the second node in the first direction of the second node and the second direction of the second node includes: receiving the adjustment instruction sent by the first node after entering a first message transmission state, wherein the first message transmission state entered by the first node is: when sending a message, sending the message through a first working channel in the first direction of the first node and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet; the second node enters a second message transmission state as follows according to the adjusting instruction: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, the method further includes: the second node receives a first indication message sent by the first node; the second node enters a normal state according to the first indication message; the second node sends a second indication message to the first node, wherein the second indication message is used for indicating the first node to enter a normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
According to another aspect of the present invention, there is provided a packet transmission apparatus, which is applied in a first node in an optical packet transport network POTN, and includes: the first determining module is used for determining the message transmission direction between the first node and the second node to be adjusted; the first adjusting module is used for adjusting the message transmission direction; and the first transmission module is used for transmitting the message between the second node and the adjusted message transmission direction.
Optionally, the first determining module comprises at least one of: a first detection unit, configured to detect that a link between the first node and the second node has failed; a second detection unit configured to detect that a node between the first node and the second node has failed; a first receiving unit, configured to receive a switching command for performing packet transmission switching with the second node.
Optionally, the first adjusting module includes: a first adjusting unit, configured to adjust packet transmission of the first node in a first direction of the first node and a second direction of the first node, where the first direction is one of an east direction and a west direction, and the second direction is the other direction.
Optionally, before the first node determines that the message transmission direction needs to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node detects that a link between the first node and the second node fails, and/or when the first node detects that a node between the first node and the second node fails, the first adjusting unit includes: a first adjusting subunit, configured to send, when sending a packet, the packet to the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and the first protection channel in the first direction of the first node: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the packet received through a second working channel of the first node in the second direction and a second protection channel of the first node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, the apparatus further comprises: a first processing module, configured to, after adjusting packet transmission of the first node in a first direction of the first node and a second direction of the first node, and after determining that a packet transmission direction between the first node and the second node is recovered, perform packet transmission between the first node and the second node in the following manner: when sending a message, sending the message through the first working channel and the second protection channel; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the first protection channel and the second protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; after the second node is determined to be recovered to the normal state, entering the normal state; or receiving an indication message sent by the second node and used for indicating that the message transmission direction between the first node and the second node is recovered; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
Optionally, before the first node determines that the message transmission direction needs to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node receives a switch command for performing message transmission switch with the second node, the first adjusting unit includes: the first processing subunit is configured to enter a first packet transmission state as follows: when sending a message, sending the message through the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet; an indicating subunit, configured to, after entering the first packet transmission state, indicate the second node to enter a second packet transmission state as follows: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: after receiving the message decoded by the ODUK, performing label processing on the message; a second processing subunit, configured to, after determining that the second node enters the second packet transmission state, enter a third packet transmission state as follows by the first node: when sending a message, the first node sends the message to the first working channel and the second protection channel; and/or, when receiving a message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node processes the messages received through the second working channel and the second protection channel as follows: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, the apparatus further comprises: a second processing module, configured to enter the first packet transmission state after adjusting packet transmission of the first node in the first direction of the first node and the second direction of the first node and after determining that the switching command has been cancelled; the indication module is used for indicating the second node to enter a normal state after entering the first message transmission state; the third processing module is used for entering a normal state after the second node is determined to enter the normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
According to another aspect of the present invention, there is provided a packet transmission apparatus, which is applied in a second node in an optical packet transport network POTN, and includes: the second determining module is used for determining the message transmission direction between the first node and the first node to be adjusted; the second adjusting module is used for adjusting the message transmission direction; and the second transmission module is used for transmitting the message between the first node and the adjusted message transmission direction.
Optionally, the second determining module comprises at least one of: a third detecting unit, configured to detect that a link between the second node and the first node has failed; a fourth detection unit, configured to detect that a node between the second node and the first node has failed; a second receiving unit, configured to receive an adjustment instruction sent by the first node, where the adjustment instruction is used to instruct the second node to adjust a packet transmission direction with the first node.
Optionally, the second adjusting module includes: a second adjusting unit, configured to adjust packet transmission of the second node in a first direction of the second node and a second direction of the second node, where the first direction is one of an east direction and a west direction, and the second direction is the other direction.
Optionally, before the second node determines that the message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel of the second node in the second direction, and when the second node detects that a link between the second node and the first node fails, and/or when the second node detects that a node between the second node and the first node fails, the second adjusting unit includes: a second adjusting subunit, configured to send, when sending a packet, the packet to the fourth working channel and a third protection channel of the second node in the first direction; and/or, when receiving a packet, performing the following processing on the packet to be received through the fourth working channel and the fourth protection channel in the second direction of the second node: before receiving a message solved by an optical data unit ODUK, discarding the message; the second node performs the following processing on the packet received through a third working channel of the second node in the first direction and a third protection channel of the second node in the first direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, the apparatus further comprises: a fourth processing module, configured to perform packet transmission with the first node in the following manner after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, and after it is determined that the packet transmission direction with the first node is recovered: when sending a message, sending the message through the fourth working channel and the third protection channel; and/or, when receiving the message, processing the message to be received through the fourth working channel and the third working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the fourth protection channel and the third protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; entering a normal state after the first node is determined to be recovered to the normal state; or receiving an indication message sent by the first node and used for indicating that the message transmission direction between the first node and the second node is recovered; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
Optionally, before the second node determines that the message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node receives an adjustment instruction sent by the first node, the second adjusting unit includes: a receiving subunit, configured to receive the adjustment instruction sent by the first node after entering a first packet transmission state, where the first packet transmission state entered by the first node is: when sending a message, sending the message through a first working channel in the first direction of the first node and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet; a third processing subunit, configured to enter a second packet transmission state according to the adjustment instruction, where: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
Optionally, the apparatus further comprises: a receiving module, configured to receive a first indication message sent by a first node after adjusting packet transmission of a second node in a first direction of the second node and a second direction of the second node; the fifth processing module is used for entering a normal state according to the first indication message; a sending module, configured to send a second indication message to the first node, where the second indication message is used to indicate that the first node enters a normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
According to the invention, a first node in an optical packet transport network POTN is adopted to determine the message transmission direction between the first node and a second node to be adjusted; the first node adjusts the message transmission direction; and the first node transmits the message with the second node by using the adjusted message transmission direction. The problems of large configuration workload, complex bandwidth control calculation and excessive occupied link bandwidth of POTN shared ring network protection in the related technology are solved, and the effects of reducing the configuration workload, the bandwidth control calculation complexity and the occupied link bandwidth of the POTN shared ring network protection are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flow chart of a first message transmission method according to an embodiment of the present invention;
fig. 2 is a flow chart of a second message transmission method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an ODUK ring network service path in a non-switching scenario according to an embodiment of the present invention;
fig. 4 is a schematic diagram of service paths in which ring bridge switching is performed between spans according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a ring-on-ring bridge switching and a ring-on-ring bridge service path between spans according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a normal traffic path with one side ring bridged between spans according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a traffic path in the event of a node failure in accordance with an embodiment of the present invention;
fig. 8 is a block diagram of a first message transmission apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram of a first determining module 82 in the first message transmission apparatus according to the embodiment of the present invention;
fig. 10 is a block diagram of a first adjusting module 84 in a first message transmission apparatus according to an embodiment of the present invention;
fig. 11 is a first block diagram illustrating a first adjusting unit 102 in a first message transmission apparatus according to an embodiment of the present invention;
fig. 12 is a block diagram of a preferred structure of a first message transmission device according to an embodiment of the present invention;
fig. 13 is a block diagram of a first adjusting unit 102 in the first message transmission apparatus according to the embodiment of the present invention;
fig. 14 is a block diagram of a preferred structure of a first message transmission apparatus according to an embodiment of the present invention;
fig. 15 is a block diagram of a second message transmission apparatus according to an embodiment of the present invention;
fig. 16 is a block diagram illustrating a second determining module 152 in the second message transmission apparatus according to the embodiment of the present invention;
fig. 17 is a block diagram of a second adjusting module 154 in the second message transmission apparatus according to the embodiment of the present invention;
fig. 18 is a first block diagram illustrating a second adjusting unit 172 in the second message transmission apparatus according to the embodiment of the present invention;
fig. 19 is a block diagram of a preferred structure of a second message transmission device according to an embodiment of the present invention;
fig. 20 is a block diagram of a second adjusting unit 172 in the second message transmission apparatus according to the embodiment of the present invention;
fig. 21 is a block diagram of a preferred structure of a second message transmission apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a message transmission method is provided, and fig. 1 is a flowchart of a first message transmission method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, a first node in an optical packet transport network POTN determines a message transmission direction between the first node and a second node to be adjusted;
step S104, the first node adjusts the message transmission direction;
and step S106, the first node transmits the message with the second node by using the adjusted message transmission direction.
Through the above steps, the first node in the POTN may adjust the packet transmission direction under a scenario that it is determined that the original transmission path cannot be used to transmit the packet to the second node (the scenario may be of various types, for example, a link failure between the first node and the second node, or a node failure between the first node and the second node, or other situations), so as to implement packet transmission with the second node. The above operation in this embodiment can be implemented by using the original tunnel in the POTN without additionally configuring an excessive number of ring network tunnels, so that the configuration workload of the POTN shared ring network protection, the bandwidth control calculation complexity, and the occupied link bandwidth can be effectively reduced, and the problems of the related art that the configuration workload of the POTN shared ring network protection is large, the bandwidth control calculation complexity, and the occupied link bandwidth is excessive are solved, thereby achieving the effect of reducing the configuration workload of the POTN shared ring network protection, the bandwidth control calculation complexity, and the occupied link bandwidth.
In an optional embodiment, the determining, by the first node in the POTN, that the message transmission direction to the second node needs to be adjusted includes at least one of: a first node detects that a link between the first node and a second node fails; a first node detects that a node between the first node and a second node fails; the first node receives a switching command for switching message transmission with the second node. Of course, the above-mentioned several application scenarios are only examples, and may also be applied to other scenarios, for example, a specific time point is set, and the message transmission direction with the second node needs to be adjusted after the time point is reached, and the message transmission direction may also be adjusted to the original transmission direction after a specific time period has elapsed.
In an optional embodiment, the adjusting, by the first node, the packet transmission direction includes: the first node adjusts message transmission of the first node in a first direction of the first node and a second direction of the first node, wherein the first direction is one of an east direction and a west direction, and the second direction is the other direction. That is, when the first direction is the east direction, the second direction is the west direction; when the first direction is the west direction, the second direction is the east direction.
In an optional embodiment, before determining that the message transmission direction needs to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node detects that a link between the first node and the second node has a fault and/or the first node detects that a node between the first node and the second node has a fault, the first node may enter a ring bridge switching state, and in the ring bridge switching state, the first node may adjust the message transmission of the first node in the first direction of the first node and the second direction of the first node, including: when sending a message, the first node sends the message to the first working channel and a second protection channel in a second direction of the first node; and/or, when receiving the message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel of the first node in the first direction: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the message received through the second working channel in the second direction of the first node and the second protection channel in the second direction of the first node: after receiving the message solved by the ODUK, the label processing is performed on the message.
When the failure between the first node and the second node is recovered, the node that detects the failure recovery can cancel switching to enter the ring bridge state, and when the other node enters the normal state from the ring bridge switching state, the node cancels the ring bridge state to enter the normal state, and the switching operation is described below: in an optional embodiment, after the first node adjusts packet transmission of the first node in the first direction of the first node and the second direction of the first node, the method further includes: after the first node determines that the message transmission direction between the first node and the second node is recovered, the first node transmits the message to the second node in the following mode: when the first node detects the failure recovery node, the first node sends a message through the first working channel and the second protection channel; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel as follows: after receiving a message decoded by an ODUK, performing label processing on the message; the messages to be received through the first protection channel and the second protection channel are processed as follows: before receiving a message solved by an ODUK, discarding the message; after the second node is determined to be recovered to the normal state, entering the normal state;
or, when the second node detects the failure recovery first, the first node receives an indication message sent by the second node and used for indicating that the message transmission direction between the first node and the second node is recovered; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
In an optional embodiment, before determining that the message transmission direction needs to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node receives a switch command for performing message transmission switching with the second node, the first node may enter a ring bridge connection state, and then may notify (for example, notify through an APS command) that the second node enters the ring bridge connection switching state, and after determining that the second node enters the ring bridge connection switching state, the first node enters the bridge connection switching state again. The operation is explained below: the first node adjusting the packet transmission of the first node in the first direction of the first node and the second direction of the first node includes: the first node enters a first message transmission state as follows: when sending a message, sending the message through the first working channel and a second protection channel in a second direction of the first node; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel in the second direction of the first node as follows: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; the method comprises the following steps of processing messages to be received through a first protection channel and a second protection channel in a first direction of a first node as follows: before receiving a message solved by an ODUK, discarding the message; after entering the first message transmission state, the first node indicates the second node to enter a second message transmission state as follows: when sending a message, the second node sends the message to a third working channel in the first direction of the second node and a fourth protection channel in the second direction of the second node; and/or, when receiving the message, the second node performs the following processing on the message to be received through the third working channel and the third protection channel in the first direction of the second node: before receiving a message solved by an ODUK, discarding the message; the second node performs the following processing on the packet received through the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node: after receiving a message decoded by an ODUK, performing label processing on the message; after the first node determines that the second node enters the second message transmission state, the first node enters a third message transmission state as follows: when sending a message, the first node sends the message to a first working channel and a second protection channel; and/or, when receiving the message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the message received through the second working channel and the second protection channel: after receiving the packet resolved by the ODUK, the packet is subjected to label processing (the label processing may include label stripping and/or label switching processing, etc.).
In an optional embodiment, when the switch command is cancelled, the first node may first enter a ring bridge state, and then notify the second node to enter a normal state, and when it is determined that the second node enters the normal state, the first node enters the normal state again. The operation is explained below: after the first node adjusts packet transmission of the first node in the first direction of the first node and the second direction of the first node, the method further includes: after the first node determines that the switching command is cancelled, the first node enters a first message transmission state; after the first node enters a first message transmission state, indicating a second node to enter a normal state; after the first node determines that the second node enters the normal state, the first node enters the normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
In the above-described fig. 1 and the embodiments related to fig. 1, the description is mainly performed from the first node side, and the description is performed from the second node side.
Fig. 2 is a flowchart of a second message transmission method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, a second node in the optical packet transport network POTN determines that the message transmission direction between the second node and a first node needs to be adjusted;
step S204, the second node adjusts the message transmission direction;
step S206, the second node performs packet transmission with the first node by using the adjusted packet transmission direction.
Through the above steps, the second node in the POTN may adjust the packet transmission direction under a scenario that it is determined that the original transmission path cannot be utilized to transmit the packet with the first node (the scenario may be of multiple types, for example, a link failure between the first node and the second node, or a node failure between the first node and the second node, or other situations), so as to implement packet transmission with the first node. The above operation in this embodiment can be implemented by using the original tunnel in the POTN without additionally configuring an excessive number of ring network tunnels, so that the configuration workload of the POTN shared ring network protection, the bandwidth control calculation complexity, and the occupied link bandwidth can be effectively reduced, and the problems of the related art that the configuration workload of the POTN shared ring network protection is large, the bandwidth control calculation complexity, and the occupied link bandwidth is excessive are solved, thereby achieving the effect of reducing the configuration workload of the POTN shared ring network protection, the bandwidth control calculation complexity, and the occupied link bandwidth.
In an optional embodiment, the determining, by the second node in the POTN, that the message transmission direction with the first node needs to be adjusted includes at least one of: the second node detects that a link between the second node and the first node fails; the second node detects that a node between the second node and the first node fails; the second node receives an adjusting instruction sent by the first node, wherein the adjusting instruction is used for indicating the second node to adjust the message transmission direction with the first node. The premise that the first node sends the adjustment instruction may be multiple, for example, the first node receives the switch command. Of course, the above application scenarios are only examples, and may also be applied to other scenarios, for example, the second node receives the switch command, or a specific time point is preset, and when the time point is reached, the message transmission direction with the second node needs to be adjusted, and after a specific time period elapses, the message transmission direction may be adjusted to the original transmission direction.
In an optional embodiment, the adjusting, by the second node, the packet transmission direction includes: the second node adjusts message transmission of the second node in a first direction of the second node and a second direction of the second node, wherein the first direction is one of the east direction and the west direction, and the second direction is the other direction. That is, when the first direction is the east direction, the second direction is the west direction; when the first direction is the west direction, the second direction is the east direction.
In an optional embodiment, before determining that the message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node detects that a link between the second node and the first node fails and/or when the second node detects that a node between the second node and the first node fails, the second node may enter a ring bridge switching state, and in the ring bridge switching state, the adjusting, by the second node, the message transmission of the second node in the first direction of the second node and the second direction of the second node by the second node includes: when sending the message, the second node sends the message to a fourth working channel and a third protection channel in the first direction of the second node; and/or, when receiving the message, the second node performs the following processing on the message to be received through the fourth working channel and a fourth protection channel in the second direction of the second node: before receiving a message solved by an optical data unit ODUK, discarding the message; the second node performs the following processing on the packet received through the third working channel in the first direction of the second node and the third protection channel in the first direction of the second node: after receiving the message solved by the ODUK, the label processing is performed on the message.
When the failure between the first node and the second node is recovered, the node that detects the failure recovery can cancel switching to enter the ring bridge state, and when the other node enters the normal state from the ring bridge switching state, the node cancels the ring bridge state to enter the normal state, and the switching operation is described below: after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, the method further includes: when the second node detects the failure recovery first, the second node determines that the message transmission direction with the first node is recovered, and then performs message transmission with the first node in the following manner: when sending a message, sending the message through the fourth working channel and the third protection channel; and/or, when receiving the message, processing the message to be received through the fourth working channel and the third working channel as follows: after receiving a message decoded by an ODUK, performing label processing on the message; the messages to be received through the fourth protection channel and the third protection channel are processed as follows: before receiving a message solved by an ODUK, discarding the message; after the first node is determined to be recovered to the normal state, entering the normal state; or, when the first node is a node which detects failure recovery first, the second node receives an indication message which is sent by the first node and used for indicating that the message transmission direction between the first node and the second node is recovered; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
In an optional embodiment, before determining that the message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node receives an adjustment instruction sent by the first node, the second node enters a ring bridge switching state, which is described below: the second node adjusting the packet transmission of the second node in the first direction of the second node and the second direction of the second node includes: receiving an adjustment instruction sent by a first node after the first node enters a first message transmission state, wherein the first message transmission state entered by the first node is as follows: when sending a message, sending the message through a first working channel in a first direction of a first node and a second protection channel in a second direction of the first node; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel in the second direction of the first node as follows: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; the method comprises the following steps of processing messages to be received through a first protection channel and a second protection channel in a first direction of a first node as follows: before receiving a message solved by an ODUK, discarding the message; the second node enters a second message transmission state as follows according to the adjustment instruction: when sending a message, the second node sends the message to a third working channel in the first direction of the second node and a fourth protection channel in the second direction of the second node; and/or, when receiving the message, the second node performs the following processing on the message to be received through the third working channel and the third protection channel in the first direction of the second node: before receiving a message solved by an ODUK, discarding the message; the second node performs the following processing on the packet received through the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node: after receiving the packet resolved by the ODUK, the packet is subjected to label processing (the label processing may include label stripping and/or label switching processing, etc.).
In an optional embodiment, when the switch command is cancelled, the first node may first enter a ring bridge state, and then notify the second node to enter a normal state, and when it is determined that the second node enters the normal state, the first node enters the normal state again. The following describes the operation at the second node: after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, the method further includes: the second node receives a first indication message sent by the first node; the second node enters a normal state according to the first indication message; the second node sends a second indication message to the first node, wherein the second indication message is used for indicating the first node to enter a normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
In the above-mentioned fig. 2 and the embodiments related to fig. 2, the description is mainly made from the second node side.
The entire system will be described below with reference to the first node and the second node. In the following embodiments, an example of mapping an ODUK timeslot channel into one virtual port (may be simply referred to as a virtual port or a port) is described as follows:
the embodiment of the invention also provides a POTN shared ring network protection scheme, which can be applied to ring networking for configuring distributed services, and can realize the protection of a plurality of distributed services among all stations by occupying two different ODUK channels.
The POTN shared ring network protection scheme related in the embodiment of the invention comprises the following technologies:
the ODUK timeslot channel may be mapped to a virtual port on the node to the PTN side, so that after the service on the PTN side is encapsulated into an MPLS packet by using MPLS-TP technology, the MPLS packet is directly sent out from the virtual port, that is, the MPLS packet enters a timeslot channel of the OTN, and is encapsulated by a Generic Framing Procedure (GFP). Overhead (OH for short) exists in the ODUK timeslot, and is used to transfer an APS message of the ring network, and the APS protocol is implemented by borrowing g.873.2.
The protection configuration is on the virtual port on the side where the OTN is mapped to the PTN, different tunnels may enter the same ODUK channel, and the switching is also only the switching between virtual ports, that is, the switching between ODUK timeslot channels, and the processing of the tunnels is not seen completely.
The following describes the termination, disable, and pass-through operations implemented on the virtual port of the POTN:
the forbidden entry means that the MPLS message solved from the ODUK is discarded when reaching the virtual port on the PTN side;
terminating means that the MPLS packet needs to be solved from the ODUK, and then processing, such as label stripping or label switching, of the MPLS packet on the PTN side is performed;
the pass-through is to directly pass the MPLS packet resolved from the virtual port through to the virtual port of the opposite end without modification, i.e. the packet is not processed at the PTN side.
The switching action of the POTN shared ring network is the switching action of the virtual port mapped to the PTN side, and includes the following 3 aspects:
ring bridging: sending the action of working in the direction and protecting the virtual port to send at the same time, namely double sending; the virtual ports protected in the receiving direction are forbidden to enter, and the working virtual ports are all terminated. For example, when the east is bridged, the data needs to be sent to an east working port and a west protection port simultaneously; the east and west protection ports are forbidden to enter, and the east and west working ports are required to be terminated.
Ring bridging switching: sending the action of working in the direction and protecting the virtual port at the same time; and in the receiving direction, the bridging switching is carried out to prohibit the working virtual port and the protection virtual port in the receiving direction, and the working virtual port and the protection virtual port in the opposite direction need to be terminated. For example, the east-oriented bridging switching needs to be sent to the east-oriented working port and the west-oriented protection port simultaneously during sending; in the receiving direction, the east working virtual port and the protection virtual port need to be forbidden, and the west working virtual port and the protection virtual port need to be terminated.
Punching through: and sending the MPLS message decoded from the virtual port to the virtual port of the opposite end in an original and intact mode, wherein under the normal condition, the protection channel service is in a through state, and the working channel cannot be in the through state. Thus, the tunnel is not required to be arranged on the protection channel.
The POTN shared ring network protection method in the embodiment of the invention can comprise the following steps:
the first step is as follows: and 4 ODUK time slot channels are selected on each node, and virtual ports mapped to the PTN side are respectively established.
The second step is that: the 4 ports on each node are configured into a ring network protection group, wherein two ports are east working and protection ports, and the other two ports are west working and protection ports.
The third step: and the upper ring point node configures the tunnel to directly go out from a certain working port.
The fourth step: and the pass-through point node is used for configuring a tunnel to enter from a working port in one direction and to pass through from a working port in the other direction.
The fifth step: and the lower ring point node configures the tunnel to be terminated from a certain virtual port.
And a sixth step: and starting the APS protocol of the ring network protection group on each node, and simultaneously configuring the waiting time WTR and the like.
The seventh step: when a fault in a certain direction is detected, both ends of the ring network protection enter a ring bridge connection switching state, when the fault is recovered, the end which detects the disappearance of the fault (namely, the node which detects the disappearance of the fault at first) cancels the switching and enters the ring bridge connection state, and after the opposite end is converted into a normal state from the ring network bridge connection switching, the end cancels the ring bridge connection and enters the normal state.
Eighth step: when switching manual command in a certain direction on a certain node, the home terminal enters a ring bridge state, and after the opposite terminal receives APS command, the opposite terminal enters ring bridge switching, the opposite terminal sends APS message to let the home terminal enter bridge switching.
The ninth step: when the manual switching command is cancelled, the home terminal firstly enters the ring bridge, and after the opposite terminal receives the APS command and the opposite terminal cancels the ring bridge to switch to enter the normal state, the opposite terminal sends an APS message to enable the home terminal to enter the normal state.
The invention is explained in detail below with reference to the figures and with reference to embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 3 is a schematic diagram of an ODUK ring network service path in a non-switching scenario according to an embodiment of the present invention, and as shown in fig. 3, the specific configuration steps are as follows:
the first step is as follows: and respectively selecting 4 ODUK time slot channels on four nodes of A, B, C and D, and respectively establishing virtual ports mapped to the PTN side. In this embodiment, this virtual port is named GFP _ F port. East is a physical link, e.g., a pair of physical fibers; the west direction is also a physical link. The node a may correspond to the first node, and the node B may correspond to the second node.
The second step is that: the 4 GFP _ F ports on each node are configured into a ring network protection group, where two are east working and protection ports, and the other two are west working and protection ports.
The third step: other attributes of these shared ring networks are configured, such as WTR time (default to 5 minutes, or other time), HOLD OFF time (default to 0, or other time), etc.
The fourth step: and on the D node, configuring a working tunnel to go out from the east working port of the ring network.
The fifth step: on the node A, a working tunnel is configured to enter from a western working port of the ring network and penetrate out from an east working port, and incoming and outgoing labels of the tunnel need to be configured consistently.
And a sixth step: at the D node, the configuration tunnel terminates from the West-oriented working port.
The seventh step: the C node is an optional node, and if the C node exists, only the first three steps need to be configured.
Eighth step: the E-node may be a customer-side edge CE device or other network-side edge PE device. If the data is CE equipment, incoming messages on a User Network Interface (UNI) side on the D node are messages, or the E node is configured with local interactive services only, and the incoming messages on the D node are also messages on the UNI side, so that the D node needs to configure services and then enters a working tunnel; if the E node goes out of the MPLS message, the working tunnel configured at the D node is a P node switching type tunnel.
Through the first eight steps, the POTN shared ring network protection networking configuration is established. In a specific example, links need to be detected at four nodes, i.e., a, B, C, and D, and when an alarm occurs in a link, as shown in fig. 4, fig. 4 is a schematic diagram of a service path in which ring bridge switching is performed between spans according to an embodiment of the present invention, a node a and a node B detect an alarm in overhead in an ODUK, and then the node a and the node B enter a ring bridge switching state. The following describes the flows of alarm triggered switching and alarm lost switching. Take the traffic flow in E- > D- > A- > B direction as an example:
the first step is as follows: and alarming occurs on a link between the node A and the node B, for example, the node A has an east fault and a west normal, and the node A and the node B enter a ring bridging switching state. As shown in fig. 3. The node A can send out the hair in a double way, one direction flows to continue to send out towards the east, and the other direction flows to protect and protect the hair towards the west.
The second step is that: the west protection and protection flow reaches the east direction of the D node, and under the normal condition of the D node, the protection GFP _ P port is in a through state, and the message can directly pass through the west protection GFP _ P port. The processing of the node C is the same as that of the node D, and the packet arrives in the east direction of the node B.
The third step: the node B can change the upward protection GFP _ F port into a terminating state due to the western SF, the message is terminated and solved to obtain the MPLS message, then the label of the MPLS message is stripped, and finally the MPLS message is sent out from the node B.
The fourth step: if the fault between the nodes a and B disappears, for example, if the node a detects that the fault disappears first, the east direction of the node a enters a ring bridge state, and the node B is also in a ring bridge switching state, as shown in fig. 5, fig. 5 is a schematic diagram of one-side ring bridge switching and one-side ring bridge service path between spans according to the embodiment of the present invention, and the service flow from E to B is consistent with the service flow of the previous two-end ring bridge switching. Only the business flow from B to E direction, the western protection of A node will be forbidden.
The fifth step: fig. 6 is a schematic diagram of a normal service path while performing ring bridging between spans according to the embodiment of the present invention, where, at this time, messages E- > B are sent in both sides at an a node, but only flows from east to work to reach the B node, and a reverse protection flow is finally forbidden in east of the a node and discarded.
And a sixth step: the node A enters a normal state after receiving the APS message of the node B canceling the ring bridge connection switching, and the node A is recovered to be normal from the ring bridge connection state at the moment.
The above six steps are the traffic flow direction change caused by the failure switching and recovery. In case of manual command switching, for example, a manual switching command is issued from the east of the a node. Then the following steps are followed:
the first step is as follows: the east direction of the node A is changed into a ring bridge state, and other points are in a normal state at present. The flow of the traffic flow at this time is as shown in fig. 4.
The second step is that: after receiving the APS command, the node B changes the westward direction into a ring bridge switching command. The flow of traffic at this time is as shown in fig. 5.
The third step: after the node B changes to ring bridge switching, the node B sends an APS command to the node a, and the node a changes to ring bridge switching, and at this time, the traffic flow changes to the one shown in fig. 4.
The fourth step: and the manual switching command is cancelled at the node A. Node a will become ring bridge state, and node B is also ring bridge switching state, and the traffic flow is as shown in fig. 5.
The fifth step: after receiving the APS command, the node B changes to a normal state, in which the node a is also in a ring bridge state, and the traffic flow is as shown in fig. 6.
And a sixth step: finally point a also cancels the ring bridge state. The traffic flow is now as shown in figure 3.
The above six steps are the implementation process in the case of the manual switch command and the manual switch command cancellation. The following describes steps in the case of node failure and in the case of recovery, taking a network element failure and recovery as an example, and taking a traffic flow in the direction of E- > D- > a- > B, as shown in fig. 7, fig. 7 is a schematic diagram of a traffic path in the case of node failure according to an embodiment of the present invention, and includes the following steps:
the first step is as follows: the node A fails, and the node A is in power failure due to abnormal reset or power failure, the fault is detected in the east direction of the node D, and ring bridge switching is generated in the east direction; the west of point B will detect the failure and also the ring bridge switching will occur.
The second step is that: the D node is subjected to ring bridging switching in the east direction, the D node can send out in double, one direction flow continues to send out towards the east direction work, and the other direction flow towards the west direction protection and hair care.
The third step: the western protection flow from the node D reaches the node C, the C protection channel is through, and the direct service message is transmitted from the east of the node C to the node B.
The fourth step: the node B, due to the western ring bridging switching, the eastern upward protection GFP _ F port becomes a terminating state, the message is terminated and solved to obtain an MPLS message, then the label of the MPLS message is stripped, and finally the MPLS message is sent out from the node B.
The fifth step: when the A node is powered on and recovered, the A node is connected with the D node and the B node, which means that two links are failed and recovered. Separately, when each link failure is recovered, the end which detects the failure disappearance enters the ring bridge, and after the opposite end is normal, the ring bridge is cancelled to enter the normal state. This processing flow is the same as the previous failure recovery flow, and is not described again.
Obviously, each node may be a computing device, and each computing device may be connected by a physical link, and the physical link may be used for service packet transfer. Each node can have a fault detection device for respectively detecting link states in east and west directions, then transmitting the link states to a decision module for switching decision, and then controlling service protection forwarding by setting a forwarding chip.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a message transmission apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a first message transmission apparatus according to an embodiment of the present invention, which may be applied to a first node in an optical packet transport network POTN, and as shown in fig. 8, the apparatus includes a first determining module 82, a first adjusting module 84, and a first transmitting module 86, and the apparatus is described below.
A first determining module 82, configured to determine a message transmission direction to be adjusted with a second node; a first adjusting module 84, connected to the first determining module 82, for adjusting the message transmission direction; a first transmission module 86, connected to the first adjusting module 84, for performing message transmission between the second node and the adjusted message transmission direction.
Fig. 9 is a block diagram of a first determining module 82 in a first message transmission apparatus according to an embodiment of the present invention, and as shown in fig. 9, the first determining module 82 includes at least one of the following units:
a first detecting unit 92, configured to detect that a link between a first node and the second node fails; a second detection unit 94, configured to detect that a node between the first node and the second node has failed; a first receiving unit 96, configured to receive a switching command for performing packet transmission switching with a second node.
Fig. 10 is a block diagram of a first adjusting module 84 in a first message transmission apparatus according to an embodiment of the present invention, and as shown in fig. 10, the first adjusting module 84 includes a first adjusting unit 102, which is described below.
A first adjusting unit 102, configured to adjust packet transmission of a first node in a first direction of the first node and a second direction of the first node, where the first direction is one of an east direction and a west direction, and the second direction is the other direction.
In an optional embodiment, before determining that the message transmission direction needs to be adjusted, the first node performs message transmission with the second node through the first working channel in the first direction of the first node, when the first node detects that a link between the first node and the second node fails, and/or when the first node detects that a node between the first node and the second node fails, the first adjusting unit 102 may include a first adjusting subunit 112, as shown in fig. 11, where fig. 11 is a first structural block diagram of the first adjusting unit 102 in the first message transmission apparatus according to the embodiment of the present invention, and the adjusting subunit 112 is described below:
a first adjusting subunit 112, configured to send, when sending a packet, the packet to the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving the message, processing the message to be received through the first working channel and the first protection channel in the first direction of the first node as follows: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the packet received through the second working channel of the first node in the second direction and the second protection channel of the first node in the second direction: after receiving the message solved by the ODUK, the label processing is performed on the message.
Fig. 12 is a first block diagram of a preferred structure of a first message transmission apparatus according to an embodiment of the present invention, and as shown in fig. 12, the apparatus includes a first processing module 122 in addition to all modules shown in fig. 8, and the apparatus is described below.
A first processing module 122, connected to the first adjusting module 84, configured to perform packet transmission with the second node after adjusting packet transmission of the first node in the first direction of the first node and the second direction of the first node, and after determining that the packet transmission direction with the second node is recovered, by: when sending a message, sending the message through a first working channel and a second protection channel; and/or when receiving the message, processing the message to be received through the first working channel and the second working channel as follows: after receiving a message decoded by an ODUK, performing label processing on the message; the messages to be received through the first protection channel and the second protection channel are processed as follows: before receiving a message solved by an ODUK, discarding the message; after the second node is determined to be recovered to the normal state, entering the normal state; or receiving an indication message sent by a second node and used for indicating that the message transmission direction between the first node and the second node is recovered; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
Fig. 13 is a block diagram of a structure of a first adjusting unit 102 in a first message transmission device according to an embodiment of the present invention, in an optional embodiment, before the first node determines that a message transmission direction needs to be adjusted, the first node performs message transmission with a second node through a first working channel in the first direction of the first node, and when the first node receives a switch command for performing message transmission switching with the second node, the first adjusting unit 102 includes: a first processing subunit 132, an instruction subunit 134, and a second processing subunit 136, which will be described below with respect to the first adjustment unit 102.
The first processing subunit 132 is configured to enter a first message transmission state as follows: when sending a message, sending the message through the first working channel and a second protection channel in a second direction of the first node; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel in the second direction of the first node as follows: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; the method comprises the following steps of processing messages to be received through a first protection channel and a second protection channel in a first direction of a first node as follows: before receiving a message solved by an ODUK, discarding the message; an indicating subunit 134, connected to the first processing subunit 132, configured to, after entering the first packet transmission state, indicate the second node to enter a second packet transmission state as follows: when sending a message, the second node sends the message to a third working channel in the first direction of the second node and a fourth protection channel in the second direction of the second node; and/or, when receiving the message, the second node performs the following processing on the message to be received through the third working channel and the third protection channel in the first direction of the second node: before receiving a message solved by an ODUK, discarding the message; the second node performs the following processing on the packet received through the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node: after receiving a message decoded by an ODUK, performing label processing on the message; a second processing subunit 136, connected to the indicating subunit 134, configured to, after determining that the second node enters the second packet transmission state, enter the following third packet transmission state by the first node: when sending a message, the first node sends the message to the first working channel and the second protection channel; and/or, when receiving the message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node processes the message received by the second working channel and the second protection channel as follows: after receiving the message solved by the ODUK, the label processing is performed on the message.
Fig. 14 is a block diagram of a preferred structure of a first message transmission apparatus according to an embodiment of the present invention, and as shown in fig. 14, the apparatus includes, in addition to all modules shown in fig. 8, a second processing module 142, an indication module 144, and a third processing module 146, which will be described below.
A second processing module 142, connected to the first adjusting module 84, configured to enter a first packet transmission state after adjusting packet transmission of the first node in the first direction of the first node and the second direction of the first node and determining that the switch command has been cancelled; an indicating module 144, connected to the second processing module 142, for indicating the second node to enter a normal state after entering the first packet transmission state; a third processing module 146, connected to the indicating module 144, for entering the normal state after determining that the second node enters the normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
Fig. 15 is a block diagram of a second message transmission apparatus according to an embodiment of the present invention, which may be applied to a second node in an optical packet transport network POTN, and as shown in fig. 15, the apparatus includes a second determining module 152, a second adjusting module 154, and a second transmitting module 156, and the apparatus is described below.
A second determining module 152, configured to determine a message transmission direction to be adjusted with the first node; a second adjusting module 154, connected to the second determining module 152, for adjusting the message transmission direction; a second transmission module 156, connected to the second adjusting module 154, is configured to perform message transmission with the first node by using the adjusted message transmission direction.
Fig. 16 is a block diagram of a second determining module 152 in the second message transmission apparatus according to the embodiment of the present invention, as shown in fig. 16, the module includes at least one of the following units:
a third detecting unit 162, configured to detect that a link between the second node and the first node fails; a fourth detection unit 164, configured to detect that a node between the second node and the first node fails; a second receiving unit 166, configured to receive an adjustment instruction sent by the first node, where the adjustment instruction is used to instruct the second node to adjust a packet transmission direction with the first node.
Fig. 17 is a block diagram of a second adjusting module 154 in the second message transmission apparatus according to the embodiment of the present invention, and as shown in fig. 17, the module includes a second adjusting unit 172, which is explained below.
A second adjusting unit 172, configured to adjust packet transmission of the second node in a first direction of the second node and a second direction of the second node, where the first direction is one of the east direction and the west direction, and the second direction is the other direction.
Fig. 18 is a first structural block diagram of a second adjusting unit 172 in a second message transmission apparatus according to an embodiment of the present invention, in an alternative embodiment, before determining that a message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node detects that a link between the second node and the first node fails and/or the second node detects that a node between the second node and the first node fails, the second adjusting unit 172 includes a second adjusting subunit 182, and the second adjusting subunit 182 is described below.
A second adjusting subunit 182, configured to send, when sending a packet, the packet to a fourth working channel and a third protection channel in the first direction of the second node; and/or, when receiving the message, processing the message to be received through the fourth working channel and the fourth protection channel in the second direction of the second node as follows: before receiving a message solved by an optical data unit ODUK, discarding the message; the second node performs the following processing on the packet received through the third working channel in the first direction of the second node and the third protection channel in the first direction of the second node: after receiving the message solved by the ODUK, the label processing is performed on the message.
Fig. 19 is a first block diagram of a preferred structure of a second message transmission apparatus according to an embodiment of the present invention, and as shown in fig. 19, the apparatus includes a fourth processing module 192 in addition to all modules shown in fig. 15, and the apparatus is described below.
A fourth processing module 192, connected to the second adjusting module 154, configured to perform packet transmission with the first node after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, and after it is determined that the packet transmission direction with the first node is recovered, by: when sending the message, sending the message through a fourth working channel and a third protection channel; and/or when receiving the message, processing the message to be received through the fourth working channel and the third working channel as follows: after receiving a message decoded by an ODUK, performing label processing on the message; the messages to be received through the fourth protection channel and the third protection channel are processed as follows: before receiving a message solved by an ODUK, discarding the message; entering a normal state after the first node is determined to be recovered to the normal state; or receiving an indication message which is sent by the first node and used for indicating that the message transmission direction between the first node and the second node is recovered; entering a normal state according to the indication message; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
Fig. 20 is a block diagram of a second adjusting unit 172 in a second message transmission apparatus according to an embodiment of the present invention, in an alternative embodiment, before determining that a message transmission direction needs to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node receives an adjustment instruction sent by the first node, the second adjusting unit 172 includes a receiving sub-unit 202 and a third processing sub-unit 204, which are described below.
A receiving subunit 202, configured to receive an adjustment instruction sent by a first node after entering a first packet transmission state, where the first packet transmission state entered by the first node is: when sending a message, sending the message through a first working channel in a first direction of a first node and a second protection channel in a second direction of the first node; and/or, when receiving the message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; the following processing is performed on the messages to be received through the first protection channel and the second protection channel in the first direction of the first node: before receiving a message solved by an ODUK, discarding the message; a third processing subunit 204, connected to the receiving subunit 202, configured to enter a second message transmission state according to the adjustment instruction, as follows: when sending a message, the second node sends the message to a third working channel in the first direction of the second node and a fourth protection channel in the second direction of the second node; and/or, when receiving the message, the second node performs the following processing on the message to be received through the third working channel and the third protection channel in the first direction of the second node: before receiving a message solved by an ODUK, discarding the message; the second node performs the following processing on the packet received through the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node: after receiving the message solved by the ODUK, the label processing is performed on the message.
Fig. 21 is a block diagram of a preferred structure of a second message transmission apparatus according to an embodiment of the present invention, and as shown in fig. 21, the apparatus includes, in addition to all modules shown in fig. 15, a receiving module 212, a fifth processing module 214, and a sending module 216, which will be described below.
A receiving module 212, connected to the second adjusting module 154, configured to receive a first indication message sent by the first node after adjusting packet transmission of the second node in the first direction of the second node and the second direction of the second node; a fifth processing module 214, connected to the receiving module 212, for entering a normal state according to the first indication message; a sending module 216, connected to the fifth processing module 214, configured to send a second indication message to the first node, where the second indication message is used to indicate that the first node enters a normal state; wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through the protection channel of the node in the first direction of the node and the protection channel of the node in the second direction.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in a plurality of processors.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s11, the first node in the POTN determines the message transmission direction between the first node and the second node;
s12, the first node adjusts the message transmission direction;
and S13, the first node transmits the message with the second node by using the adjusted message transmission direction.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
s21, the second node in the POTN determines the message transmission direction between the first node and the second node;
s22, the second node adjusts the message transmission direction;
and S23, the second node transmits the message with the first node by using the adjusted message transmission direction.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, in this embodiment, the processor executes the steps in the above method embodiments according to the program code stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
By adopting the method and the device in the embodiment of the invention, the protection of the shared ring network in the POTN network can be realized, the problem that the LSP penetrating through the node can not be protected by the ring network when the node in the POTN network fails is solved, meanwhile, a protection tunnel, a configuration section and a section layer OAM of the ring network are not required to be configured, the configuration is simple, the maintenance efficiency is improved, the expense of OAM bandwidth is reduced, and the like.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (20)

1. A method for packet transmission, comprising:
a first node in an optical packet transport network POTN determines a message transmission mode and a message receiving direction which need to be adjusted with a second node;
the first node adjusts the message transmission mode and the message receiving direction;
the first node transmits the message between the second node and the receiving direction by using the adjusted message transmission mode;
wherein the first node adjusting the message transmission mode and the message receiving direction comprises: the first node adjusts message transmission of the first node in a first direction of the first node and a second direction of the first node, wherein the first direction is one of an east direction and a west direction, and the second direction is the other direction;
wherein, before determining that the message transmission mode and the message receiving direction need to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node detects that a link between the first node and the second node fails and/or the first node detects that a node between the first node and the second node fails, the first node adjusting the message transmission of the first node in the first direction of the first node and the second direction of the first node includes: when sending a message, the first node sends the message to the first working channel and a second protection channel of the first node in the second direction; when receiving a packet, the first node performs the following processing on the packet to be received through the first working channel and the first protection channel in the first direction of the first node: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the packet received through a second working channel of the first node in the second direction and a second protection channel of the first node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
2. The method of claim 1, wherein the determining, by the first node in the POTN, that the transmission and reception directions of the packet with the second node need to be adjusted includes at least one of:
the first node detects that a link between the first node and the second node fails;
the first node detects that a node between the first node and the second node fails;
and the first node receives a switching command for switching message transmission between the first node and the second node.
3. The method of claim 1, wherein after the first node adjusts the first node for packet transmission in the first direction of the first node and the second direction of the first node, the method further comprises:
after the first node determines that the message transmission mode and the receiving direction between the first node and the second node are recovered, the first node transmits the message to the second node in the following mode: when sending a message, sending the message through the first working channel and the second protection channel; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the first protection channel and the second protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; after the second node is determined to be recovered to the normal state, entering the normal state;
alternatively, the first and second electrodes may be,
the first node receives an indication message which is sent by the second node and used for indicating that the message transmission mode and the message receiving direction between the first node and the second node are recovered; entering a normal state according to the indication message;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
4. The method according to claim 1, wherein before the first node determines that the packet transmission mode and the packet reception direction need to be adjusted, the first node performs packet transmission with the second node through a first working channel in the first direction of the first node, and when the first node receives a switch command for performing packet transmission switch with the second node, the adjusting, by the first node, packet transmission of the first node in the first direction of the first node and the second direction of the first node includes: the first node enters a first message transmission state as follows: when sending a message, sending the message through the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet;
after entering the first message transmission state, the first node indicates the second node to enter a second message transmission state as follows: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: after receiving the message decoded by the ODUK, performing label processing on the message;
after the first node determines that the second node enters the second message transmission state, the first node enters a third message transmission state as follows: when sending a message, the first node sends the message to the first working channel and the second protection channel; and/or, when receiving a message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node processes the messages received through the second working channel and the second protection channel as follows: and after receiving the message decoded by the ODUK, performing label processing on the message.
5. The method of claim 4, wherein after the first node adjusts the first node for packet transmission in the first direction of the first node and the second direction of the first node, further comprising:
after the first node determines that the switching command is cancelled, the first node enters the first message transmission state;
after the first node enters the first message transmission state, indicating the second node to enter a normal state;
after the first node determines that the second node enters the normal state, the first node enters the normal state;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
6. A method for packet transmission, comprising:
a second node in the POTN determines the message transmission mode and the message receiving direction between the second node and the first node to be adjusted;
the second node adjusts the message transmission mode and the message receiving direction;
the second node transmits the message between the first node and the receiving direction by using the adjusted message transmission mode;
wherein the second node adjusting the message transmission mode and the message receiving direction comprises: the second node adjusts message transmission of the second node in a first direction of the second node and a second direction of the second node, wherein the first direction is one of an east direction and a west direction, and the second direction is the other direction;
before determining that the message transmission mode and the message receiving direction need to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node detects that a link between the second node and the first node fails and/or the second node detects that a node between the second node and the first node fails, the second node adjusting the message transmission of the second node in the first direction of the second node and the second direction of the second node includes: when sending a message, the second node sends a message to the fourth working channel and a third protection channel of the second node in the first direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the fourth working channel and a fourth protection channel in the second direction of the second node: before receiving a message solved by an optical data unit ODUK, discarding the message; the second node performs the following processing on the packet received through a third working channel of the second node in the first direction and a third protection channel of the second node in the first direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
7. The method of claim 6, wherein the second node determining that the adjustment of the transmission and reception directions of the packet with the first node is required comprises at least one of:
the second node detects that a link between the second node and the first node fails;
the second node detects that a node between the second node and the first node fails;
and the second node receives an adjusting instruction sent by the first node, wherein the adjusting instruction is used for indicating the second node to adjust the message transmission mode and the message receiving direction between the second node and the first node.
8. The method of claim 6, wherein after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, the method further comprises:
after the second node determines that the message transmission mode and the receiving direction between the second node and the first node are recovered, the second node transmits the message to the first node in the following mode: when sending a message, sending the message through the fourth working channel and the third protection channel; and/or, when receiving the message, processing the message to be received through the fourth working channel and the third working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the fourth protection channel and the third protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; entering a normal state after the first node is determined to be recovered to the normal state;
alternatively, the first and second electrodes may be,
the second node receives an indication message which is sent by the first node and used for indicating that the message transmission mode and the message receiving direction between the first node and the second node are recovered; entering a normal state according to the indication message;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
9. The method according to claim 6, wherein before the second node determines that the message transmission manner and the message receiving direction need to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node receives the adjustment instruction sent by the first node, the second node adjusting the message transmission of the second node in the first direction of the second node and the second direction of the second node comprises:
receiving the adjustment instruction sent by the first node after entering a first message transmission state, wherein the first message transmission state entered by the first node is: when sending a message, sending the message through a first working channel in the first direction of the first node and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet;
the second node enters a second message transmission state as follows according to the adjusting instruction: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
10. The method of claim 9, wherein after the second node adjusts the second node for packet transmission in the first direction of the second node and the second direction of the second node, further comprising:
the second node receives a first indication message sent by the first node;
the second node enters a normal state according to the first indication message;
the second node sends a second indication message to the first node, wherein the second indication message is used for indicating the first node to enter a normal state;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
11. A message transmission device is applied to a first node in an optical packet transport network (POTN), and comprises:
the first determining module is used for determining the message transmission mode and the message receiving direction between the first determining module and the second determining module;
the first adjusting module is used for adjusting the message transmission mode and the message receiving direction;
the first transmission module is used for transmitting the message between the second node and the receiving direction by utilizing the adjusted message transmission mode;
wherein the first adjusting module comprises: a first adjusting unit, configured to adjust packet transmission of the first node in a first direction of the first node and a second direction of the first node, where the first direction is one of an east direction and a west direction, and the second direction is the other direction;
wherein, before the first node determines that the message transmission mode and the message receiving direction need to be adjusted, the first node performs message transmission with the second node through a first working channel in the first direction of the first node, and when the first node detects that a link between the first node and the second node fails, and/or when the first node detects that a node between the first node and the second node fails, the first adjusting unit includes: a first adjusting subunit, configured to send, when sending a packet, the packet to the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and the first protection channel in the first direction of the first node: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node performs the following processing on the packet received through a second working channel of the first node in the second direction and a second protection channel of the first node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
12. The apparatus of claim 11, wherein the first determining module comprises at least one of:
a first detection unit, configured to detect that a link between the first node and the second node has failed;
a second detection unit configured to detect that a node between the first node and the second node has failed;
a first receiving unit, configured to receive a switching command for performing packet transmission switching with the second node.
13. The apparatus of claim 11, further comprising:
a first processing module, configured to, after adjusting packet transmission of the first node in a first direction of the first node and a second direction of the first node, and after determining that a packet transmission method and a receiving direction between the first node and the second node are recovered, perform packet transmission between the first node and the second node in the following manner: when sending a message, sending the message through the first working channel and the second protection channel; and/or, when receiving the message, processing the message to be received through the first working channel and the second working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the first protection channel and the second protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; after the second node is determined to be recovered to the normal state, entering the normal state;
alternatively, the first and second electrodes may be,
receiving an indication message sent by the second node and used for indicating that the message transmission mode and the receiving direction between the first node and the second node are recovered; entering a normal state according to the indication message;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
14. The apparatus according to claim 11, wherein before the first node determines that the packet transmission mode and the packet reception direction need to be adjusted, the first node performs packet transmission with the second node through a first working channel in the first direction of the first node, and when the first node receives a switch command for performing packet transmission switch with the second node, the first adjusting unit includes:
the first processing subunit is configured to enter a first packet transmission state as follows: when sending a message, sending the message through the first working channel and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet;
an indicating subunit, configured to, after entering the first packet transmission state, indicate the second node to enter a second packet transmission state as follows: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: after receiving the message decoded by the ODUK, performing label processing on the message;
a second processing subunit, configured to, after determining that the second node enters the second packet transmission state, enter a third packet transmission state as follows by the first node: when sending a message, the first node sends the message to the first working channel and the second protection channel; and/or, when receiving a message, the first node performs the following processing on the message to be received through the first working channel and the first protection channel: before receiving a message solved by an optical data unit ODUK, discarding the message; the first node processes the messages received through the second working channel and the second protection channel as follows: and after receiving the message decoded by the ODUK, performing label processing on the message.
15. The apparatus of claim 14, further comprising:
a second processing module, configured to enter the first packet transmission state after adjusting packet transmission of the first node in the first direction of the first node and the second direction of the first node and after determining that the switching command has been cancelled;
the indication module is used for indicating the second node to enter a normal state after entering the first message transmission state;
the third processing module is used for entering a normal state after the second node is determined to enter the normal state;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
16. A message transmission device is applied to a second node in an optical packet transport network (POTN), and comprises:
the second determining module is used for determining the message transmission mode and the message receiving direction between the first node and the message transmission mode to be adjusted;
the second adjusting module is used for adjusting the message transmission mode and the message receiving direction;
the second transmission module is used for transmitting the message between the first node and the receiving direction by utilizing the adjusted message transmission mode;
wherein the second adjusting module comprises: a second adjusting unit, configured to adjust packet transmission of the second node in a first direction of the second node and a second direction of the second node, where the first direction is one of an east direction and a west direction, and the second direction is the other direction;
wherein, before the second node determines that the message transmission mode and the message receiving direction need to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node detects that a link between the second node and the first node fails, and/or when the second node detects that a node between the second node and the first node fails, the second adjusting unit includes: a second adjusting subunit, configured to send, when sending a packet, the packet to the fourth working channel and a third protection channel of the second node in the first direction; and/or, when receiving a packet, performing the following processing on the packet to be received through the fourth working channel and the fourth protection channel in the second direction of the second node: before receiving a message solved by an optical data unit ODUK, discarding the message; the second node performs the following processing on the packet received through a third working channel of the second node in the first direction and a third protection channel of the second node in the first direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
17. The apparatus of claim 16, wherein the second determining module comprises at least one of:
a third detecting unit, configured to detect that a link between the second node and the first node has failed;
a fourth detection unit, configured to detect that a node between the second node and the first node has failed;
a second receiving unit, configured to receive an adjustment instruction sent by the first node, where the adjustment instruction is used to instruct the second node to adjust a packet transmission manner and a receiving direction with the first node.
18. The apparatus of claim 16, further comprising:
a fourth processing module, configured to perform packet transmission with the first node in the following manner after the second node adjusts packet transmission of the second node in the first direction of the second node and the second direction of the second node, and after it is determined that a packet transmission manner and a receiving direction with the first node are recovered: when sending a message, sending the message through the fourth working channel and the third protection channel; and/or, when receiving the message, processing the message to be received through the fourth working channel and the third working channel as follows: after receiving the message decoded by the ODUK, performing label processing on the message; the messages to be received through the fourth protection channel and the third protection channel are processed as follows: discarding the packet resolved by the ODUK before receiving the packet; entering a normal state after the first node is determined to be recovered to the normal state;
alternatively, the first and second electrodes may be,
receiving an indication message sent by the first node and used for indicating that the message transmission mode and the receiving direction between the first node and the second node are recovered; entering a normal state according to the indication message;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
19. The apparatus according to claim 16, wherein before the second node determines that the message transmission manner and the message receiving direction need to be adjusted, the second node performs message transmission with the first node through a fourth working channel in the second direction of the second node, and when the second node receives the adjustment instruction sent by the first node, the second adjusting unit includes:
a receiving subunit, configured to receive the adjustment instruction sent by the first node after entering a first packet transmission state, where the first packet transmission state entered by the first node is: when sending a message, sending the message through a first working channel in the first direction of the first node and a second protection channel in the second direction of the first node; and/or, when receiving a message, performing the following processing on the message to be received through the first working channel and a second working channel in the second direction of the first node: after receiving a message decoded by an optical data unit ODUK, performing label processing on the message; processing the messages to be received through the first protection channel and the second protection channel of the first node in the first direction as follows: discarding the packet resolved by the ODUK before receiving the packet;
a third processing subunit, configured to enter a second packet transmission state according to the adjustment instruction, where: when sending a message, the second node sends a message to a third working channel of the second node in the first direction and a fourth protection channel of the second node in the second direction; and/or, when receiving a packet, the second node performs the following processing on the packet to be received through the third working channel and a third protection channel in the first direction of the second node: discarding the packet resolved by the ODUK before receiving the packet; the second node performs the following processing on the packet received through a fourth working channel of the second node in the second direction and a fourth protection channel of the second node in the second direction: and after receiving the message decoded by the ODUK, performing label processing on the message.
20. The apparatus of claim 19, further comprising:
a receiving module, configured to receive a first indication message sent by a first node after adjusting packet transmission of a second node in a first direction of the second node and a second direction of the second node;
the fifth processing module is used for entering a normal state according to the first indication message;
a sending module, configured to send a second indication message to the first node, where the second indication message is used to indicate that the first node enters a normal state;
wherein the normal state is: the node has the capability of respectively transmitting the received messages resolved by the ODUK through a protection channel of the node in the first direction of the node and a protection channel of the node in the second direction.
CN201610005843.XA 2016-01-04 2016-01-04 Message transmission method and device Active CN106941436B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610005843.XA CN106941436B (en) 2016-01-04 2016-01-04 Message transmission method and device
PCT/CN2016/093615 WO2017118008A1 (en) 2016-01-04 2016-08-05 Packet transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610005843.XA CN106941436B (en) 2016-01-04 2016-01-04 Message transmission method and device

Publications (2)

Publication Number Publication Date
CN106941436A CN106941436A (en) 2017-07-11
CN106941436B true CN106941436B (en) 2020-06-02

Family

ID=59273242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610005843.XA Active CN106941436B (en) 2016-01-04 2016-01-04 Message transmission method and device

Country Status (2)

Country Link
CN (1) CN106941436B (en)
WO (1) WO2017118008A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162834A (en) * 2020-01-07 2021-07-23 华为技术有限公司 Data transmission method, equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877665A (en) * 2009-04-29 2010-11-03 华为技术有限公司 Ring network protecting method, network node and ring network
CN102014011A (en) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 Method and system for protecting looped network
CN102025437A (en) * 2009-09-22 2011-04-20 ***通信集团公司 Method, system and device for protection switching
CN102571460A (en) * 2012-03-09 2012-07-11 中兴通讯股份有限公司 Single-fiber failure switching method and device
CN103179013A (en) * 2011-12-21 2013-06-26 中兴通讯股份有限公司 Looped network protection achieving method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9917668B2 (en) * 2014-06-13 2018-03-13 Ciena Corporation Systems and methods for detecting and propagating resizability information of oduflex connections

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877665A (en) * 2009-04-29 2010-11-03 华为技术有限公司 Ring network protecting method, network node and ring network
CN102014011A (en) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 Method and system for protecting looped network
CN102025437A (en) * 2009-09-22 2011-04-20 ***通信集团公司 Method, system and device for protection switching
CN103179013A (en) * 2011-12-21 2013-06-26 中兴通讯股份有限公司 Looped network protection achieving method and system
CN102571460A (en) * 2012-03-09 2012-07-11 中兴通讯股份有限公司 Single-fiber failure switching method and device

Also Published As

Publication number Publication date
CN106941436A (en) 2017-07-11
WO2017118008A1 (en) 2017-07-13

Similar Documents

Publication Publication Date Title
US8139478B1 (en) Recovery method for an optical network
US9755957B2 (en) Pseudowire control channel for signaling events
US20110075554A1 (en) E-spring (g.8032) interworking to provide access protection
EP3654664B1 (en) Method for interconnected ring protection, computer-readable storage medium and computer program product
EP2846498B1 (en) Label distribution method and device
CN102571426B (en) Double-homing protection method and device
US8582427B2 (en) Pseudowire protection using a standby Pseudowire
WO2013107356A1 (en) Implementing dual-homed node protection
CN104980372A (en) Relay System And Switching Device
EP2533474A1 (en) Method, apparatus and system for forwarding data
CN109327318B (en) SDN management network architecture and method for establishing SDN management network
US20130163985A1 (en) 1:N Sparing Of Router Resources At Geographically Dispersed Locations
US9647878B2 (en) Announcement method, device and system
CN104025511A (en) Service protection method, optical line terminal and system in passive optical network
US20120014260A1 (en) Communication device in communication network and communication control method
EP3035609B1 (en) Data transmission method and device
CN105207871B (en) Double-cut ring network protection method and device
CN111294669A (en) OTN (optical transport network) network architecture and scheduling method
CN102209001A (en) Ethernet linear protection method and device
CN106941436B (en) Message transmission method and device
EP2573977A1 (en) Subnet protection method and device for transport multi-protocol label switching (tmpls) network
US20130003759A1 (en) Technique for bandwidth effective traffic protection in communication networks
WO2012056711A1 (en) Transmission device, transmission system, and fault notification method
CN109743112B (en) OTN networking method, device, equipment and computer readable storage medium
CN109462500B (en) Packet transport network PTN equipment looped network protection 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