CN114363735B - Route configuration method, network equipment, communication system and storage medium - Google Patents
Route configuration method, network equipment, communication system and storage medium Download PDFInfo
- Publication number
- CN114363735B CN114363735B CN202011090902.0A CN202011090902A CN114363735B CN 114363735 B CN114363735 B CN 114363735B CN 202011090902 A CN202011090902 A CN 202011090902A CN 114363735 B CN114363735 B CN 114363735B
- Authority
- CN
- China
- Prior art keywords
- network device
- configuration message
- message
- transmission path
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 105
- 238000004891 communication Methods 0.000 title claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims abstract description 410
- 230000003287 optical effect Effects 0.000 claims description 45
- 238000012217 deletion Methods 0.000 claims description 32
- 230000037430 deletion Effects 0.000 claims description 32
- 230000004044 response Effects 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 15
- 239000013307 optical fiber Substances 0.000 description 33
- 239000000835 fiber Substances 0.000 description 10
- 239000003999 initiator Substances 0.000 description 10
- 230000011664 signaling Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000002457 bidirectional effect Effects 0.000 description 4
- 108091034117 Oligonucleotide Proteins 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application discloses a routing configuration method, network equipment, a communication system and a storage medium, which are used for improving the routing efficiency of configuring a transmission path. The method is applied to a target transmission path, wherein the target transmission path comprises a first network device, at least one intermediate network device and a last network device which are sequentially connected, and the method comprises the following steps: the method comprises the steps that an intermediate network device receives a first configuration message, and the first configuration message is transmitted along a first transmission direction in a target transmission path; the intermediate network device configures a route between the intermediate network device and the adjacent network device according to the first configuration message; the intermediate network equipment receives a second configuration message, the second configuration message is transmitted along a second transmission direction in a target transmission path, and the first transmission direction is opposite to the second transmission direction; if the intermediate network device determines that the first configuration message and the second configuration message meet the preset conditions, the intermediate network device determines that the route is not configured according to the second configuration message.
Description
Technical Field
The present invention relates to the field of optical fiber communications, and in particular, to a routing configuration method, a network device, a communication system, and a storage medium.
Background
An automatic switched optical network (automatically switched optical network, ASON) has substantially covered a metro area, core backbone wavelength division network. The ASON may automatically establish a transmission path for transmitting traffic through a resource reservation protocol traffic engineering (resource reservation protocol traffic engineering, RSVP-TE) protocol.
The specific process is as follows: the source network device acquires the transmission path and determines each network device included in the transmission path. The source network device sends path messages along the transmission path to each network device included in the transmission path. Each network device establishes a route based on the received path message until the path message is transmitted to a sink network device included in the transmission path. The sink network device sends a response message to the source network device over the transmission path. In the case where the source network device receives the response message, the transmission path configuration is completed.
Therefore, if the number of network devices included in the transmission path is relatively large, the plurality of network devices included in the transmission path need to configure routes one by one according to the path message, which reduces the efficiency of configuring the transmission path.
Disclosure of Invention
The embodiment of the application provides a routing configuration method, network equipment, a communication system and a storage medium, which are used for improving the routing efficiency of configuring a transmission path.
In a first aspect, an embodiment of the present invention provides a method for configuring a route, where the method is applied to a target transmission path, where the target transmission path includes a first network device, at least one intermediate network device, and a last network device that are sequentially connected, and the method includes: the method comprises the steps that an intermediate network device receives a first configuration message, and the first configuration message is transmitted along a first transmission direction in a target transmission path; the intermediate network device configures a route between the intermediate network device and the adjacent network device according to the first configuration message, and in the target transmission path, the intermediate network device and the adjacent network device are adjacent in position and are connected with each other; the intermediate network device receives a second configuration message, the second configuration message is transmitted along a second transmission direction in the target transmission path, and the first transmission direction is opposite to the second transmission direction; if the intermediate network device determines that the first configuration message and the second configuration message meet a preset condition, the intermediate network device determines that the route is not configured according to the second configuration message, the preset condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path, and the target transmission path is used for transmitting target service.
Therefore, the intermediate network device configures the route through one of the first configuration message and the second configuration message, so that the target transmission path can configure the route through the configuration message which is transmitted in two ways simultaneously and in two directions, and the route efficiency of configuring the target transmission path is effectively improved. The two paths of concurrent and bidirectional transmission specifically means that one path of configuration message is transmitted from the first network device to the last network device through the target transmission path, and the other path of configuration message is transmitted from the last network device to the first network device through the target transmission path.
Among all the network devices included in the target transmission path, a part of the network devices configure a route according to the first configuration message, and another part of the network devices configure a route according to the second configuration message. Thus, the duration of configuring the route of the target transmission path is effectively reduced.
The network device shown in this aspect is a transport network device. In the target transmission path, any network device can realize the routing of the first transmission direction and the second transmission direction no matter whether the routing is configured according to the first configuration message or the second configuration message, and the routing of different directions is not required to be configured according to the transmission directions of different services.
Based on the first aspect, in an optional implementation manner, if the first configuration message is from the first network device and the second configuration message is from the last network device, after the intermediate network device configures a route between the intermediate network device and the adjacent network device according to the first configuration message, the method further includes: the intermediate network device sends the first configuration message to the end network device; after the intermediate network device determines that the route is no longer configured according to the second configuration message, the method further includes: the intermediate network device ends the transmission of the second configuration message.
It can be seen that in this implementation, the intermediate network device receives the first configuration message (i.e., the forward configuration message) from the first network device, and then receives the second configuration message (i.e., the reverse configuration message) from the last network device. The intermediate network device only needs to configure the route according to the first configuration message. The routing need not be configured according to the second configuration message. And any network device connected between the head network device and the intermediate network device has completed configuration of the route according to the first configuration message. In order to reduce the amount of data processed by the network device, reduce the possibility of congestion of the network device due to the overlarge amount of data processed by the network device, the intermediate network device ends the transmission of the second configuration message.
Based on the first aspect, in an optional implementation manner, if the first configuration message is from the last network device and the second configuration message is from the first network device, after the intermediate network device configures a route between the intermediate network device and the adjacent network device according to the first configuration message, the method further includes: the intermediate network device sends the first configuration message to the first network device; after the intermediate network device determines that the route is no longer configured according to the second configuration message, the method further includes: the intermediate network device sends the second configuration message to the end network device.
It can be seen that in this implementation, the intermediate network device receives the first configuration message (i.e., the reverse configuration message) from the last network device, and then receives the second configuration message (i.e., the forward configuration message) from the first network device. In order to enable the first network device to confirm that each network device in the target transmission path has successfully configured the route, the intermediate network device sends a second configuration message to the last network device. And under the condition that the last network equipment receives the second configuration message, the last network equipment determines that the routing of the target transmission path is configured. The end network device sends a response message to the head network device via the target transmission path. And under the condition that the first network equipment receives the response message, the first network equipment can determine that the routing of the target transmission path is configured.
Based on the first aspect, in an optional implementation manner, the determining, by the intermediate network device, that the first configuration packet and the second configuration packet meet a preset condition includes: the intermediate network device determines that the first configuration message and the second configuration message meet a first preset sub-condition, wherein the first preset sub-condition is that the first configuration message and the second configuration message both comprise a target identifier of the target service, the first configuration message comprises a first indication message for indicating the first transmission direction, and the second configuration message comprises a second indication message for indicating the second transmission direction; and the intermediate network device determines that the first configuration message and the second configuration message meet a second preset sub-condition, where the second preset sub-condition is that the first configuration message and the second configuration message are both used to configure the route of the target transmission path.
It can be seen that the intermediate network device first parses the first configuration message and part of the second configuration message (i.e. the target identifier, the first indication message and the second indication message). And further analyzing the first configuration message and the second configuration message to determine whether the second preset sub-condition is met or not only if the part of the information meets the first preset sub-condition. Therefore, the analysis amount of the message to be analyzed by the intermediate network equipment is effectively reduced, and the occupation of system resources of the intermediate network equipment is reduced.
Based on the first aspect, in an optional implementation manner, the method further includes: the intermediate network device receives a deletion indication message, where the deletion indication message is used to instruct the intermediate network device to delete the configuration message from the last network device. For example, if the first configuration message is from the last network device, the intermediate network device deletes the first configuration message when receiving the deletion indication message. For another example, if the second configuration message is from the last network device, the intermediate network device deletes the second configuration message when receiving the deletion indication message.
In this implementation manner, when the intermediate network device receives the deletion instruction message, the configuration message from the last network device may be deleted on the control plane according to the deletion instruction message. The data volume stored by the intermediate network equipment is effectively reduced, and the possibility of congestion of the intermediate network equipment is reduced.
In a second aspect, an embodiment of the present invention provides a method for configuring a route, where the method is applied to a target transmission path, where the target transmission path includes a plurality of network devices, and the target transmission path is used to transmit a forward configuration packet to an end network device included in the target transmission path, and the method includes: the network equipment acquires a reverse configuration message, and the reverse configuration message and the forward configuration message are transmitted in the target transmission path along opposite directions; the last network device sends a reverse configuration message to the first network device, where the reverse configuration message is used to instruct the first network device to configure a route between the first network device and the second network device, and the first network device and the second network device are any two network devices that are adjacent and connected to each other in positions and included in the target transmission path.
For the description of the beneficial effects shown in this aspect, please refer to the first aspect, and detailed descriptions thereof are omitted. It should be noted that, the plurality of network devices included in the target transmission path shown in the present aspect also include the first network device and the intermediate network device connected between the first network device and the last network device as shown in the first aspect, and the first network device and the second network device shown in the present aspect are any two network devices included in the target transmission path. For example, the first network device and the second network device may be a head network device and an intermediate network device that are connected to each other. As another example, the first network device and the second network device may be two intermediate network devices that are connected to each other. As another example, the first network device and the second network device may be an intermediate network device and a last network device that are connected to each other.
Based on the second aspect, in an optional implementation manner, the acquiring, by the network device, the reverse configuration packet includes: the end network device obtains a reverse path indication message, wherein the reverse path indication message is used for indicating the connection relation among a plurality of network devices included in the target transmission path along a reverse transmission direction, and the reverse transmission direction is the transmission direction of the reverse configuration message in the target transmission path; and the end network device acquires the reverse configuration message according to the reverse path indication message.
Based on the second aspect, in an optional implementation manner, the acquiring, by the network device, the reverse path indication message includes: the last network device obtains a forward path indication message, wherein the forward path indication message is used for indicating the connection relationship among the plurality of network devices along a forward transmission direction, and the forward transmission direction is the transmission direction of the forward configuration message in the target transmission path; the end network device converts the forward path indication message to the reverse path indication message.
In this implementation manner, the network device may convert the forward path indication message into the reverse path indication message to generate the reverse configuration message when receiving the forward path indication message.
Based on the second aspect, in an optional implementation manner, the method further includes: the last network equipment receives a fault indication message, wherein the fault indication message is used for indicating an initial transmission path to fail, the fault indication message comprises a target identifier of a target service, the initial transmission path and the target transmission path are both used for transmitting the target service, and a plurality of network equipment included in the initial transmission path are the same as a plurality of network equipment included in the target transmission path; the end network device converting the forward path indication message to the reverse path indication message includes: the end network device converts the forward path indication message to the reverse path indication message if it is determined that the forward path indication message and the failure indication message both include a target identification of the target traffic.
Therefore, under the condition that the initial transmission path fails, the routes of the same target transmission path can be configured through two paths of configuration messages which are concurrent and transmitted along two directions, so that the efficiency of configuring the routes of the target transmission path is effectively improved. And then the path for transmitting the target service can be quickly switched from the initial transmission path to the target transmission path, so that the normal transmission of the target service is effectively ensured.
And because the routes of the same target transmission path are configured through two paths of concurrent and bidirectional transmission configuration messages, the duration for configuring the routes of the target transmission path can be effectively reduced under the scene that the number of network devices included in the target transmission path is increased. The situation of performance degradation of reconfiguring the transmission path of the target traffic due to an increase in the number of network devices included in the target transmission path is avoided.
Based on the second aspect, in an optional implementation manner, the method further includes: the end network device receives the forward configuration message; the end network device sends a response message to the head network device via the target transmission path, where the response message is used to indicate that a route between any two network devices that are adjacent and connected to each other and included in the target transmission path has been configured successfully.
Based on the second aspect, in an optional implementation manner, after the last network device sends the reverse configuration message to the first network device, the method further includes: the end network device deletes the reverse configuration message; the last network device sends a deletion indication message to the first network device, where the deletion indication message is used to instruct the first network device to delete the reverse configuration message.
In a third aspect, an embodiment of the present invention provides a network device, where the network device is an intermediate network device connected between a first network device and a last network device in a target transmission path, where the intermediate network device includes a processor, a memory, and an optical transceiver, where the processor, the memory, and the optical transceiver are interconnected by a line; the optical transceiver is used for receiving a first configuration message, and the first configuration message is transmitted along a first transmission direction in the target transmission path; the processor invoking program code in the memory for configuring a route between the intermediate network device and a neighboring network device according to the first configuration message, the intermediate network device and the neighboring network device being located adjacent and interconnected in the target transmission path; the optical transceiver is further configured to receive a second configuration packet, where the second configuration packet is transmitted along a second transmission direction in the target transmission path, and the first transmission direction is opposite to the second transmission direction; the processor is further configured to determine that the route is no longer configured according to the second configuration message if the processor determines that the first configuration message and the second configuration message satisfy a preset condition, where the preset condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path, and the target transmission path is used for transmitting the target service.
The description of the beneficial effects shown in this aspect is shown in the first aspect, and details are not repeated.
Based on the third aspect, in an optional implementation manner, if the first configuration message is from the first network device, the second configuration message is from the last network device; the optical transceiver is further configured to send the first configuration message to the end network device; the processor is further configured to end transmission of the second configuration message.
Based on the third aspect, in an optional implementation manner, if the first configuration packet is from the last network device and the second configuration packet is from the first network device, the optical transceiver is further configured to: sending the first configuration message to the first network device; and sending the second configuration message to the final network equipment.
Based on the third aspect, in an optional implementation manner, the processor is specifically configured to: determining that the first configuration message and the second configuration message meet a first preset sub-condition, wherein the first preset sub-condition is that the first configuration message and the second configuration message both comprise target identifiers of the target service, the first configuration message comprises a first indication message for indicating the first transmission direction, and the second configuration message comprises a second indication message for indicating the second transmission direction; determining that the first configuration message and the second configuration message meet a second preset sub-condition, wherein the second preset sub-condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path.
Based on the third aspect, in an optional implementation manner, the optical transceiver is further configured to: and receiving a deletion instruction message, wherein the deletion instruction message is used for instructing to delete the first configuration message if the first configuration message is from the end network device, or is used for instructing to delete the second configuration message if the second configuration message is from the end network device.
In a fourth aspect, an embodiment of the present invention provides a network device, where the network device includes a plurality of network devices for a target transmission path, where the target transmission path is configured to transmit a forward configuration packet to the end network device, and the end network device includes a processor, a memory, and an optical transceiver, where the processor, the memory, and the optical transceiver are interconnected by a line; the processor calls the program code in the memory to obtain a reverse configuration message, and the reverse configuration message and the forward configuration message are transmitted in opposite directions in the target transmission path; the optical transceiver is further configured to send a reverse configuration message to the first network device, where the reverse configuration message is configured to instruct the first network device to configure a route between the first network device and the second network device, and the first network device and the second network device are any two network devices that are adjacent to each other and are connected to each other in any two positions included in the target transmission path.
The description of the beneficial effects shown in this aspect is shown in the second aspect, and will not be repeated.
Based on the fourth aspect, in an alternative implementation manner, the processor is specifically configured to: acquiring a reverse path indication message, wherein the reverse path indication message is used for indicating the connection relation among the plurality of network devices along a reverse transmission direction, and the reverse transmission direction is the transmission direction of the reverse configuration message in the target transmission path; and acquiring the reverse configuration message according to the reverse path indication message.
Based on the fourth aspect, in an alternative implementation manner, the processor is specifically configured to: acquiring a forward path indication message, wherein the forward path indication message is used for indicating the connection relation among the plurality of network devices along a forward transmission direction, and the forward transmission direction is the transmission direction of the forward configuration message in the target transmission path; the forward path indication message is converted into the reverse path indication message.
Based on the fourth aspect, in an optional implementation manner, the optical transceiver is further configured to receive a fault indication message, where the fault indication message is used to indicate that an initial transmission path fails, the fault indication message includes a target identifier of a target service, where the initial transmission path and the target transmission path are both used to transmit the target service, and a plurality of network devices included in the initial transmission path and a plurality of network devices included in the target transmission path are the same, and part of the network devices are the same; the processor is specifically configured to convert the forward path indication message into the reverse path indication message if it is determined that the forward path indication message and the failure indication message both include the target identity of the target service.
Based on the fourth aspect, in an optional implementation manner, the optical transceiver is further configured to: receiving the forward configuration message; and sending a response message to the first network device via the target transmission path, wherein the response message is used for indicating that the route between any two network devices which are adjacent and connected with each other and are included in the target transmission path is configured successfully.
Based on the fourth aspect, in an optional implementation manner, the processor is further configured to delete the reverse configuration packet; the optical transceiver is further configured to send a deletion indication message to the first network device, where the deletion indication message is configured to instruct the first network device to delete the reverse configuration message.
In a fifth aspect, an embodiment of the present invention provides a communication system, including a target transmission path, where the target transmission path includes a first network device, at least one intermediate network device, and a last network device, where the first network device, the at least one intermediate network device, and the last network device are sequentially connected, where the intermediate network device is as in any one of the third aspect, and the last network device is as in any one of the fourth aspect.
In a sixth aspect, an embodiment of the present invention provides a digital processing chip, where the digital processing chip includes a processor and a memory, where the memory and the processor are interconnected by a line, and where the memory stores instructions, and where the processor is configured to perform any one of the first or second aspects described above.
In a seventh aspect, embodiments of the present invention provide a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform any of the above-described first or second aspects.
In an eighth aspect, embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the first or second aspects described above.
By adopting the route configuration method, the network equipment, the communication system and the storage medium, the routes of the same target transmission path can be configured through the two concurrent and bidirectional transmission configuration messages, and the efficiency of configuring the routes of the target transmission path is effectively improved. And among all the network devices included in the target transmission path, a part of the network devices configure the route according to the first configuration message, and another part of the network devices configure the route according to the second configuration message. Thus, the duration of configuring the route of the target transmission path is effectively reduced.
In addition, in the target transmission path, any network device can realize the routing of the first transmission direction and the second transmission direction no matter whether the routing is configured according to the first configuration message or the second configuration message, and the routing of different directions is not required to be configured according to different transmission directions of the service.
Drawings
Fig. 1 is a structural example diagram of a first embodiment of a communication system provided in the present application;
FIG. 2 is a flowchart illustrating steps of a first embodiment of a method for configuring a route according to the present application;
FIG. 3 is a diagram illustrating an exemplary configuration of a destination transmission path according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating steps of a second embodiment of a method for configuring a route according to the present application;
FIG. 5 is a flowchart illustrating steps of a third embodiment of a method for configuring a route according to the present application;
fig. 6 is a structural example diagram of a second embodiment of a communication system provided in the present application;
fig. 7 is a structural example diagram of an embodiment of a network device provided in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The present application provides a method for configuring a route, for better understanding of the method provided by the present application, and a description will be given below first with reference to fig. 1, where fig. 1 is a structural example diagram of a first embodiment of a communication system provided by the present application.
In fig. 1, the communication system 100 is taken as an ASON for illustration, and it should be understood that the specific network type of the communication system 100 is not limited in this application, and for example, the communication network 100 may be a universal multiprotocol label switching technology (generalized multi-protocol label switching, GMPLS) network.
Wherein the communication system 100 includes a plurality of transmission paths for transmitting traffic. For example, the first transmission path shown in fig. 1 includes a network device a, a network device B, a network device C, and a network device D, which are sequentially connected. It can be seen that the traffic output from the network device a is transmitted to the network device D sequentially via the network device B and the network device C.
Also included in fig. 1 is a second transmission path including network device a, network device E, network device F, network device G, and network device D connected in sequence.
It should be noted that the explanation of the transmission paths included in the communication system 100 according to the present embodiment is an alternative example, and is not limited thereto.
Each network device represents a separate hardware entity in the communication network. This example will be described with respect to each network device as a transport network device. The transport network device may be an optical routing connection device (optical cross connect, OXC) device, an optical add/drop multiplexer (optical add drop multiplexer, OADM), a fixed optical add/drop multiplexer (fixed optical add drop multiplexer, FOADM), or a reconfigurable optical add/drop multiplexer (reconfigurable optical add drop multiplexer, ROADM), among others. The present embodiment is exemplarily described with respect to a network device as a ROADM.
In order to realize that data can be transmitted along the first transmission path, each network device in the first transmission path needs to configure a route, and a specific process of configuring the route of each network device in the first transmission path is described below:
taking the network device E included in the first transmission path shown in fig. 1 as an example, in order to achieve the purpose that data can be transmitted on the first transmission path, the network device E needs to create a route to achieve the purpose that the network device E sends data from the network device a to the network device F, and also achieve the purpose that the network device E sends data from the network device F to the network device a. The data may be services, various RSVP-TE protocol compliant messages, etc.
Specifically, the network device E includes a port 1 and a port 2, which are physical ports for transmitting data. The port 1 is one of a plurality of ports included in the network device E, and the port 1 and the network device a are connected through an optical fiber. Port 2 is one of a plurality of ports included in network device E, and port 1 and port 2 are not identical. The port 2 and the network device F are connected by an optical fiber.
The network device E creating the route refers to creating the correspondence between the port 1 and the port 2. The network device E can implement data interaction between the port 1 and the port 2 based on the correspondence.
It can be seen that in case of acquiring data from network device a through port 1, network device E transmits the data to port 2 based on the created route to be transmitted to network device F via port 2. Likewise, in the case where the network device E acquires data from the network device F through the port 2, the network device E transmits the data to the port 1 based on the created route to be transmitted to the network device a via the port 1.
For a description of the process of creating the route by other network devices included in the first transmission path, please refer to the network device E in detail, and details will not be described.
It can be seen that the traffic can be transmitted on the first transmission path, when the configuration of the route is completed at each network device located on the first transmission path.
If the routing of the first transmission Path is configured by RSVP-TE protocol of the existing scheme, it is required that network device a sequentially transmits Path (Path) messages to network device B, network device C and network device D through the first transmission Path. Wherein the Path message is one of RSVP-TE protocol messages.
Each network device that receives the Path message is configured to configure a route according to the Path message. After the network device D completes the configuration of the route according to the Path message, a response message is transmitted to the network device a.
It can be seen that, if the number of network devices included in the first transmission Path is large, each network device included in the first transmission Path configures a route sequentially according to the Path message. The difficulty of configuring the first transmission path is increased, and the efficiency of configuring the first transmission path is reduced. And the performance of configuring the first transmission path deteriorates as the number of network devices included in the first transmission path increases.
The route configuration method provided by the application can effectively reduce the difficulty of configuring the transmission path and improve the efficiency of configuring the transmission path. The situation that the performance of configuring the transmission path is deteriorated due to the increase of the number of network devices included in the transmission path is avoided.
The following describes a specific implementation procedure of the route configuration method provided in the present application with reference to fig. 2, where fig. 2 is a flowchart illustrating steps of a first embodiment of the route configuration method provided in the present application.
Step 201, the first network device configures a route according to the forward configuration message.
The first network device shown in this embodiment is the first network device in the target transmission path.
For a better understanding, the target transmission path is described below with reference to fig. 3. As shown in fig. 3, the present embodiment takes the example that the target transmission path sequentially includes a network device a, a network device E, a network device F, a network device G, and a network device D. The first network device shown in this embodiment is network device a, and the last network device is network device D. Network device E, network device F, and network device G are intermediate network devices connected between first network device a and last network device D.
The forward configuration message shown in this embodiment is used to instruct each network device on the target transmission path to configure a route. The network device that has received the forward configuration message, after completing configuration of the route based on the forward configuration message, the target service may be transmitted via the network device.
For example, the first network device a needs to configure a route between the first network device a and the intermediate network device E according to the forward configuration message, so that the target traffic can be transmitted between the first network device a and the intermediate network device E.
Several alternative sources of forward configuration messages are described below:
source 1
With continued reference to fig. 1, the communication system 100 shown in the present application further includes a network management device 101. The network management device 101 is connected to each network device. The network management device 101 may obtain the forward configuration message according to an open shortest path first (open shortest path First, OSPF), or a path computation element communication protocol (path computation element communication protocol, PCEP), or the like. The forward configuration message at least comprises a target identifier of a target service to be transmitted and each network device included in a target transmission path for transmitting the target service.
The embodiment does not limit what device the network management equipment specifically obtains the forward configuration message, for example, the network management equipment may obtain the forward configuration message through its path computation unit (path computation element, PCE) control device.
The form of the PCE control device is not limited in this embodiment, for example, the functions of the PCE control device may be partially or completely implemented by software, and for example, the PCE control device may be a chip or an integrated circuit.
And under the condition that the network management equipment acquires the forward configuration message, the network management equipment sends the forward configuration message to the first network equipment in the target transmission path. For example, the network management device 101 transmits the forward configuration message to the network device a.
Source 2
The head network device has configured the PCE control device. The first network device generates the forward configuration message through the PCE control device. For a description of the PCE control device obtaining the forward configuration message, please refer to the source 1 in detail, and details are not repeated.
Source 3
Any network device in the communication system obtains the forward configuration message based on the configured PCE control device thereof, and sends the obtained forward configuration message to the first network device. For a description of the PCE control device obtaining the forward configuration message, please refer to the source 1 in detail, and details are not repeated.
The present embodiment is exemplified by setting the PCE control device in the network management device. If it is required that each network device in the target transmission path can execute the method shown in this embodiment to implement the configuration of the target transmission path, each network device configures the RSVP control device. The RSVP control device is used for realizing the function of configuring the target transmission path based on the RSVP-TE protocol.
Each network device implements the method shown in this embodiment based on RSVP control apparatus. The embodiment does not limit the form of RSVP control device. For example, the functions of the RSVP control device may be implemented in part or in whole in software, and for example, the RSVP control device may be a chip or an integrated circuit.
Alternatively, if the forward configuration message is generated by the first network device, the PCE control device and the RSVP control device included in the first network device may be the same device.
The following is an exemplary illustration of the contents of a forward configuration message conforming to the RSVP-TE protocol. It should be clear that, in this embodiment, the description of the specific content of the forward configuration packet may be an optional example, and is not limited as long as each network device on the target transmission path can configure the route of the target transmission path according to the forward configuration packet.
The forward configuration message at least comprises: the method comprises the steps of target identification of target service, forward path indication message and first indication message.
The forward path indication message includes an identifier of each network device in the target transmission path, and a port identifier included in each network device corresponding to the identifier and used for configuring a route.
The forward path indication message is described below with reference to table 1:
TABLE 1
Identification of network devices | Identification of a first port | Identification of the second port |
Head network equipment A | Port A1 | Port A2 |
Intermediate network equipment E | Port E1 | Port E2 |
Intermediate network device F | Port F1 | Port F2 |
Intermediate network device G | Port G1 | Port G2 |
End network device D | Port D1 | Port D2 |
As shown in table 1, the forward path indication message is used to indicate the target transmission path, and includes network devices A, E, F, G and D, and the connection relationship between the network devices in sequence along the forward transmission direction. The forward transmission direction refers to a direction in which a transmission start point is the first network device a and the transmission is performed sequentially along each network device included in the target transmission path.
When each network device receives the forward configuration message, the identifier of the first port and the identifier of the second port corresponding to the identifier of the network device can be determined according to the forward path indication message included in the forward configuration message, so that the route between the first port and the second port is configured inside the network device.
For example, when the first network device a acquires the forward path indication message, it determines that the identifier of the corresponding first port is A1, and the identifier of the second port is A2. The route configured by the head network device is a route between ports A1 to A2. It can be seen that if the head network device a is acting as an initiator of the target service with the target identifier, the head network device a transmits the target service from the port A1 to the port A2 in the case that the head network device a receives the target service with the target identifier via the port A1.
If the end network device D is acting as the initiator of the target traffic, in case the head network device a receives the target traffic with the target identification via the port A2, the head network device a transmits the target traffic from the port A2 to the port A1.
In this embodiment, the port A2 of the first network device a and the port E1 of the intermediate network device E are already connected by an optical fiber. It is known that, in the case where the head network device has configured the route between the port A1 and the port A2, the route between the port A2 of the head network device and the port E1 of the intermediate network device E is also successfully configured.
For example, in the case where the head network device transmits the target traffic from the port A1 to the port A2, since the port A2 and the port E1 have been connected by the optical fiber, the target traffic via the port A2 is transmitted to the port E1 via the optical fiber to realize configuration of the route between the head network device a and the intermediate network device E.
The first indication message included in the forward configuration message is used for indicating that the forward configuration message is transmitted along the forward transmission direction in the target transmission path.
Specifically, the forward configuration message shown in this embodiment is one of RSVP-TE protocol messages, and in this embodiment, a signaling tag and a service triplet message may be added to an existing RSVP-TE protocol message for configuring routing, so as to generate the forward configuration message shown in this embodiment, and specific description of the signaling tag is shown in the following table 2, and specific description of the service triplet message is shown in the following table 3.
The format of the signaling mark is described below:
see table 2 below for specific formats:
TABLE 2
The newly added signaling tag includes a field "Type" for indicating that the newly added message is a signaling tag, for example, the length of the value of the field may be a 16-bit (bit) value.
The field "Length" is used to indicate the Length of the newly added signaling flag, and the Length of the value of the field may be a 16-bit value.
A field "Protocol Type" for indicating whether the signaling flag is transmitted in the forward transmission direction or the reverse transmission direction. It can be seen that, if the value of this field shown in this example is "0", this field is the first indication message shown in this embodiment. And the configuration message including the signaling mark is used for indicating the forward configuration message.
The format of the service triplet message is described below:
see table 3 below for specific formats:
TABLE 3 Table 3
The newly added service triplet message includes a field "Type" which is used to indicate that the newly added message is a "service triplet message", for example, the length of the value of the field may be a 16bit value.
The field "Length" is used to indicate the Length of the service triplet message, and the Length of the value of the field may be a 16-bit value.
A field "source_router_id" is used to indicate the identity of the first network device included in the configuration message that includes the service triplet message. For example, the length of the value of this field may be a 32bit value.
A field "dst_router_id" for indicating the identity of the last network device included in the configuration message including the service triplet message. For example, the length of the value of this field may be a 32bit value.
A field "Index" for indicating an identification of the target traffic to be transmitted by the target transmission path. For example, the length of the value of this field may be a 32bit value.
Specifically, each intermediate network device included in the target transmission path is set in the existing RSVP-TE protocol packet. Specifically, please refer to the above description of the forward path indication message in detail, the description of the specific format of the forward configuration message in this embodiment is an optional example, and is not limited, as long as the forward configuration message at least includes the target identifier of the target service, the forward path indication message, and the first indication message.
Step 202, the first network device sends a forward configuration message to the first intermediate network device.
The first intermediate network device shown in this embodiment is an intermediate network device, which is adjacent to the first network device and is connected by an optical fiber, among a plurality of intermediate network devices included in the target transmission path. Taking fig. 3 as an example, the first intermediate network device is a network device E connected to the first network device a through an optical fiber.
And 203, the network equipment configures the route according to the reverse configuration message.
The last network device shown in this embodiment is the last network device in the target transmission path (i.e., network device D shown in fig. 3).
The reverse configuration message shown in this embodiment is used to instruct each network device in the target transmission path to configure a route, and after the network device that has received the reverse configuration message completes configuration of the route based on the reverse configuration message, the target service is transmitted via the network device.
Several alternative ways for the end network device to obtain the reverse configuration message are described below:
mode 1
The network device D receives the forward configuration message, and the detailed description of the forward configuration message is shown in step 201, which is not repeated.
Specifically, the end network device D may receive a forward configuration message from the network management device, or the end network device may receive a forward configuration message from the first network device a, or the end network device may receive the forward configuration message sent by any network device in the communication network.
And under the condition that the end network device D receives the forward configuration message, the end network device D generates a reverse configuration message. The reverse configuration message comprises a target identifier of a target service, a reverse path indication message and a second indication message.
Specifically, the network device D inverts the forward path indication message included in the received forward configuration message to obtain a reverse path indication message, and the reverse path indication message is described as shown in table 4 below:
TABLE 4 Table 4
Identification of network devices | Identification of a first port | Identification of the second port |
End network device D | Port D1 | Port D2 |
Intermediate network device G | Port G1 | Port G2 |
Intermediate network device F | Port F1 | Port F2 |
Intermediate network equipment E | Port E1 | Port E2 |
Head network equipment A | Port A1 | Port A2 |
As can be seen from comparison of tables 1 and 4, the reverse path indication information is generated by inverting the forward path indication message, so that the first network device (i.e., the first network device a) in the forward path indication message is inverted to the last network device in the reverse path indication message. The last network device in the forward path indication message (i.e., last network device D) is also reversed to the first network device in the reverse path indication message, and so on.
As shown in table 4, the reverse path indication message is used to indicate the target transmission path, and sequentially includes the connection relationship of the network device D, G, F, E and a along the reverse transmission direction, where the reverse transmission direction is opposite to the forward transmission direction.
When each network device receives the reverse configuration message, the identifier of the first port and the identifier of the second port corresponding to the identifier of the network device are determined according to the reverse path indication message included in the reverse configuration message, so that a route between the first port and the second port is established in the network device, and a specific route establishment process may also refer to a route establishment process for the forward configuration message shown in step 201, which is not described in detail.
The second indication message included in the reverse configuration message is used for indicating the reverse configuration message to be transmitted along the reverse transmission direction in the target transmission path. As shown in fig. 3, the reverse transmission direction refers to that the reverse configuration message uses the last network device D as a transmission starting point, and is sequentially transmitted through each network device included in the target transmission path.
For a description of the specific format of the reverse configuration message, please refer to the description of the format of the forward configuration message, which is not repeated.
Mode 2
The end network device D receives the forward path indication message and the destination identification of the destination traffic.
Specifically, the network management device or the first network device shown in this embodiment may directly send the forward path indication message and the target identifier to the last network device. And the network equipment generates the reverse configuration message according to the forward path indication message and the target identifier.
Mode 3
The network management device or the first network device can directly generate the reverse configuration message and send the generated reverse configuration message to the last network device.
Mode 4
And the end network equipment acquires a reverse path indication message for transmitting the target service according to the OSPF or PCEP and other protocols, and sends the reverse path indication message to the network management equipment. In the case that the network management device has acquired the forward path indication message for transmitting the target service, the network management device determines whether the reverse path indication message and the network device included in the forward path indication message are the same (for example, both the network device A, E, F, G and D are included), and then the network management device sends a success indication message to the last network device. And configuring the reverse configuration message of the reverse path indication message by the network equipment according to the success indication message.
Optionally, the last network device may also send the reverse path indication message to any network device included in the first network device or the communication system, and the network device determines whether the reverse path indication message and the forward path indication message include the same network device.
The execution timing between step 202 and step 203 is not limited in this embodiment.
Step 204, the last network device sends a reverse configuration message to the second intermediate network device.
The second intermediate network device in this embodiment is an intermediate network device, which is adjacent to the last network device D in the plurality of intermediate network devices included in the target transmission path and is connected by an optical fiber. Taking fig. 3 as an example, the second intermediate network device is a network device G connected to the last network device D through an optical fiber.
The execution timing between step 202 and step 204 is not limited in this embodiment.
Step 205, the first intermediate network device receives a forward configuration message from the first network device.
Step 206, the first intermediate network device configures the route according to the forward configuration message.
Continuing with the example shown in fig. 3, the present embodiment is exemplified by the example that the first intermediate network device E only receives the forward configuration message from the network device a, and has not received the reverse configuration message from the last network device D.
In the case that the first intermediate network device E receives a forward configuration message, the first intermediate network device first needs to determine whether to configure a route according to the received forward configuration message, and specifically the determining process is as follows:
the first intermediate network device analyzes the target identifier of the target service included in the forward configuration message, and further judges whether the first intermediate network device has configured the route of the target service with the target identifier. For example, whether the first intermediate network device has configured a routing table comprising a destination identification and a port identification for transmitting the destination traffic with the destination identification.
If so, it is indicated that the first intermediate network device has configured the route of the target traffic with the target identity. If not, the first intermediate network device is not configured with the route of the target service with the target identifier.
The present embodiment is exemplified by taking the example that the first intermediate network device is not configured with the route of the target service having the target identifier. And under the condition that the first intermediate network equipment does not configure the route of the target service with the target identifier, the first intermediate network equipment determines the identifier of the first port corresponding to the first intermediate network equipment E as E1 and the identifier of the second port as E2 according to the forward path indication message included in the forward configuration message.
The first intermediate network device E configures a route between the ports E1 to E2, thereby implementing a route between the first intermediate network device E and the adjacent network devices (i.e., the first network device a and the network device F). Specifically, the first intermediate network device may generate a routing table, where the routing table includes a correspondence between the destination identifier, the port E1, and the port E2.
It can be seen that if the first network device a is acting as an initiator of the target service with the target identifier, in the case that the first intermediate network device E receives the target service with the target identifier via the port E1, the first intermediate network device E transmits the target service from the port E1 to the port E2 by querying the routing table. Thereby enabling the targeted traffic to be transmitted to the intermediate network device F via the optical fiber connected between port E2 and port F1 of the intermediate network device F.
If the end network device D is acting as an initiator of the target service, in the case that the first intermediate network device E receives the target service with the target identifier via the port E2, the first intermediate network device E transmits the target service from the port E2 to the port E1 by querying the routing table. Thereby enabling the targeted traffic to be transmitted to the head network device a via the optical fiber connected between port E1 and port A2 of the head network device a.
The present embodiment is exemplified by taking the number of the first intermediate network devices as one example, and in other examples, the number of the first intermediate network nodes may be plural. For a description of a specific process of configuring the route for each first network device, please refer to a description of a process of configuring the route for the first network device E in this embodiment, which is not repeated in detail.
Step 207, the first intermediate network device sends a forward configuration message to the third intermediate network device.
The third intermediate network device in this embodiment is an intermediate network device, which is adjacent to the first intermediate network device and is connected by an optical fiber, among the plurality of intermediate network devices included in the target transmission path. Taking fig. 3 as an example, the third intermediate network device is a network device F connected to the first intermediate network device E through an optical fiber.
Step 208, the second intermediate network device receives the reverse configuration message from the last network device.
The execution timing between step 205 and step 208 is not limited in this embodiment.
Step 209, the second intermediate network device configures the route according to the reverse configuration message.
Continuing with the example shown in fig. 3, the present embodiment is exemplified by the case that the second intermediate network device G receives only the reverse configuration message from the last network device D, but not yet receives the forward configuration message from the first network device a.
In the case that the second intermediate network device G receives the reverse configuration message, the second intermediate network device G first determines whether to configure a route according to the received reverse configuration message, specifically, the determination process is as follows:
the second intermediate network device G analyzes the target identifier of the target service included in the reverse configuration message, and further determines whether the second intermediate network device has configured the route of the target service with the target identifier. For example, whether the second intermediate network device has configured a routing table comprising a destination identification and a port identification for transmitting the destination traffic with the destination identification.
If so, it is indicated that the second intermediate network device has configured the route of the target traffic with the target identity. If not, the second intermediate network device is not configured with the route of the target service with the target identifier.
The present embodiment is exemplified by the case where the second intermediate network device is not configured with the route of the target service having the target identifier. And under the condition that the second intermediate network equipment does not configure the route of the target service with the target identifier, the second intermediate network equipment determines the identifier of the first port corresponding to the second intermediate network equipment G as G1 and the identifier of the second port as G2 according to the reverse path indication message included in the reverse configuration message.
The second intermediate network device G configures a route between the ports G1 to G2, thereby enabling a route between the second intermediate network device G and the adjacent network devices (i.e., the last network device D and the network device F). Specifically, the second intermediate network device may generate a routing table, where the routing table includes a correspondence between the destination identifier, the port G1, and the port G2.
It can be seen that if the first network device a is acting as an initiator of the target service with the target identifier, in the case that the second intermediate network device G receives the target service with the target identifier via the port G1, the second intermediate network device G transmits the target service from the port G1 to the port G2 by querying the routing table. Thereby enabling the targeted traffic from the intermediate network device F to be transmitted to the end network device D via the optical fiber connected between the port G2 and the end network device D.
If the end network device D is used as an initiation of the target service, in the case that the second intermediate network device G receives the target service with the target identifier through the port G2, the second intermediate network device G transmits the target service from the port G2 to the port G1 by querying the routing table. So that the target traffic from the last network device D can be transmitted to the third intermediate network device F via the optical fiber connected between port G1 and port F2 of the third intermediate network device F.
The present embodiment is exemplified by taking only one example of the number of second intermediate network devices, and in other examples, the number of second intermediate network nodes may be plural. For a description of a specific process of configuring the route for each second intermediate network device, please refer to a description of a process of configuring the route for the second intermediate network device G in this embodiment, which is not repeated in detail.
Step 210, the second intermediate network device sends a reverse configuration message to the third intermediate network device.
The execution timing between step 207 and step 210 is not limited in this embodiment.
Step 211, the third intermediate network device receives the forward configuration message and the reverse configuration message.
Step 212, the third intermediate network device configures the route according to the forward configuration message or the reverse configuration message.
As shown in the above-mentioned non-execution timing defining steps 207 and 210, the first intermediate network device may send a forward configuration message to the third intermediate network device, and the second intermediate network device may send a reverse configuration message to the third intermediate network device, and two optional cases of how the third intermediate network device configures routing specifically are described below:
case 1
In this case, as shown in fig. 3, the third intermediate network device F receives the forward configuration message including the target identifier first, and then receives the reverse configuration message including the target identifier.
In this case, the third intermediate network device F configures the route according to the forward configuration message, and for a description of a specific configuration process, please refer to the configuration process of the route according to the forward configuration message by the first intermediate network device shown in step 206, which is not described in detail.
And after the third intermediate network equipment F completes the route configuration according to the forward configuration message, the third intermediate network equipment F analyzes the received reverse configuration message under the condition that the third intermediate network equipment receives the reverse configuration message again. And the third intermediate network equipment judges whether the forward configuration message and the reverse configuration message meet preset conditions.
The preset condition is that the forward configuration message and the reverse configuration message are both used for configuring the route of the target transmission path. If yes, the route to be configured of the reverse configuration message is indicated, and the configuration of the reverse configuration message is completed according to the forward configuration message. If not, the route to be configured of the reverse configuration message is indicated, and the configuration is not completed. The specific judging process is as follows:
first, the third intermediate network device parses the target identifier and the reverse path indication message included in the reverse configuration message.
And secondly, the third intermediate network device judges whether the forward configuration message and the reverse configuration message meet a first preset sub-condition. The first preset sub-condition is that the forward configuration message and the reverse configuration message both comprise the target identifier, and the forward configuration message comprises a forward path indication message opposite to the transmission direction indicated by the reverse path indication message.
For example, referring to table 2, the value of the field "Protocol Type" included in the forward configuration message is "0", and the value of the field "Protocol Type" of the reverse configuration message is "1".
And thirdly, under the condition that the third intermediate network device judges that the forward configuration message and the reverse configuration message meet the first preset sub-condition, the third intermediate network device further judges whether the forward configuration message and the reverse configuration message meet the second preset sub-condition. The second preset sub-condition is that the forward configuration message and the reverse configuration message are both used for configuring the route of the target transmission path. Specifically, the second preset precondition refers to whether the forward path indication message included in the forward configuration message and the reverse path indication message included in the reverse configuration message are the same.
Specifically, referring to the descriptions in table 1 and table 4, the forward path indication message and the reverse path indication message each include an identifier of each network device in the target transmission path, and a port identifier included in each network device corresponding to the identifier and used for configuring the route. It can be seen that, the forward path indication message and the reverse path indication message shown in this embodiment are the same, that is, the identifiers of the network devices included in the forward path indication message and the reverse path indication message are the same, and the port identifiers for configuring the route included in the network devices corresponding to the identifiers are also the same.
For example, when the target transmission path is the transmission path shown in fig. 3, the forward path indication message and the reverse path indication message both include the identifiers of the network devices A, E, F, G and D, and the port identifiers included in each network device for configuring the route, which indicates that the forward configuration message and the reverse configuration message satisfy the second preset sub-condition.
And thirdly, under the condition that the third intermediate network equipment determines that the forward configuration message and the reverse configuration message meet the first preset sub-condition and the second preset sub-condition, the third intermediate network equipment determines that the forward configuration message and the reverse configuration message meet the preset conditions. The third intermediate network device determines the route to be configured for the reverse configuration message, which has been configured by the third intermediate network device according to the forward configuration message.
In the above-mentioned example, the third intermediate network device first analyzes the target identifier and the reverse path indication message of the reverse configuration message, and further analyzes the reverse configuration message to obtain the reverse path indication message when the target identifier and the reverse path indication message meet the first preset sub-condition. If the target identifier and the reverse path indication message do not meet the first preset sub-condition, the reverse configuration message does not need to be further analyzed. Therefore, the analysis amount of the message is effectively reduced, and the occupation of system resources is reduced.
Optionally, the parsing of the reverse configuration message Wen Yici may be completed, so as to determine whether the reverse configuration message and the forward configuration message meet the preset condition.
In this embodiment, when the third intermediate network device determines that the route to be configured for the reverse configuration packet is configured by the third intermediate network device according to the forward configuration packet, the third intermediate network device may end transmission of the reverse configuration packet.
Specifically, as shown in fig. 3, the routing table configured by the third intermediate network device may indicate that the reverse configuration message is received at the port F2 of the third intermediate network device F, and may be transmitted to the port F1, and further transmitted to the second intermediate network device E through the optical fiber connected between the third intermediate network device F and the second intermediate network device E.
However, because the route indicated by the reverse configuration message, the first network device a and the first intermediate network device E are configured according to the forward configuration message, and the reverse configuration message Wen Xiangdi does not need to be sent by the second intermediate network device E and the first network device a. In order to reduce the information amount processed by each network device and reduce the possibility of network device congestion, the third intermediate network device ends the transmission of the reverse configuration message, and the third network device F does not need to transmit the reverse configuration message to the port F1 any more, so that the processing of the reverse configuration message by the first network device a and the first intermediate network device E is effectively avoided.
Optionally, in other examples, the third intermediate network device may also transmit the reverse configuration message to the head network device via the target transmission path. After the first network device receives the reverse configuration message, the first network device ends the transmission of the reverse configuration message.
Case 2
In this case, the third intermediate network device F receives the reverse configuration message including the target identifier first, and then receives the forward configuration message including the target identifier.
In this case, the third intermediate network device F configures the route according to the reverse configuration message, and for a description of a specific configuration process, please refer to the configuration process of the route according to the reverse configuration message by the second intermediate network device shown in step 209, which is not described in detail.
After the third intermediate network device F completes the route configuration according to the reverse configuration message, if the third intermediate network device receives the forward configuration message again, the third intermediate network device determines whether the forward configuration message and the reverse configuration message meet the preset condition, and the description of the specific determination process is referred to the description of the preset condition shown in the above case 1, which is not repeated in detail.
Step 213, the third intermediate network device sends a forward configuration message to the second network device.
In this embodiment, no matter the sequence in which the third intermediate network device receives the forward configuration message and the reverse configuration message, the third intermediate network device sends the forward configuration message to the second intermediate network device according to the configured route.
Step 214, the second intermediate network device sends a forward configuration message to the end network device.
For the second intermediate network device, the second intermediate network device receives the reverse configuration message first and then receives the forward configuration message, and for a description of a specific processing procedure, please refer to the case 2 of step 212, which is not described in detail in this embodiment.
Specifically, the second intermediate network device may send the forward configuration message to the end network device according to the route configured by the reverse configuration message.
Step 215, the last network device sends a response message to the first network device.
And under the condition that the terminal network equipment receives the forward configuration message, the terminal network equipment determines that the routing between two network equipment which are adjacent at any position and are connected through the optical fiber in the target transmission path is configured. The last network device sends a response message to the first network device over the target transmission path. The response message is used for indicating that the routing between two network devices which are adjacent in any position and connected through the optical fiber is configured to be completed in the target transmission path to the first network device.
As shown in fig. 3, the last network device D sequentially sends the response message to the first network device a through the network devices G, F and E.
Step 216, the last network device transmits the deletion indication message to the target transmission path.
In this embodiment, when the end network device determines that each route in the target transmission path is configured, the end network device may maintain the routing table configured on the data plane for transmitting the target traffic. And the network equipment deletes the reverse configuration message on the control plane.
Alternatively, the end network device may delete the reverse configuration message if it receives the forward configuration message. Still alternatively, the network device may delete the reverse configuration message if it receives the reverse configuration success indication message. For example, after the third intermediate network device F determines that the configuration of the route has been completed according to the forward configuration message, any network device from the first network device to the third intermediate network device F does not need to configure the route for transmitting the target service according to the reverse configuration message, and the third intermediate network device transmits the reverse configuration success indication message to the end network device D.
In this embodiment, the last network device transmits the deletion indication message to the target transmission path. The deletion indication message includes at least a target identification, a deletion instruction, and a reverse path indication message. And the network equipment in the target transmission path acquires the reverse configuration message comprising the target identifier and the reverse path indication message under the condition of receiving the deletion indication message. And the network equipment deletes the reverse configuration message on the control plane according to the deleting instruction.
As shown in fig. 3, the reverse configuration message of the last network device D has been transmitted to the second intermediate network device G and the third intermediate network device F. The third intermediate network device F has finished transmitting the reverse configuration message. It can be seen that, when the second intermediate network device G and the third intermediate network device F receive the deletion instruction message, the reverse configuration message is deleted on the control plane. And the third intermediate network device F ends transmission of the deletion instruction message again, so as to avoid that the first network device a, which does not receive the reverse configuration message, and the first intermediate network device E process the deletion instruction message.
It should be clear that the network device that receives the deletion instruction message deletes only the reverse configuration message on the control plane, and retains the routing table configured on the data plane. Thereby, the transmission of the target service can be realized based on the routing table.
By adopting the method shown in the embodiment, the routes of the same target transmission path are configured through two paths of configuration messages which are concurrent and transmitted along two directions. The two paths of concurrent and bidirectional transmission specifically means that one path of forward configuration message from the first network device is transmitted along the forward transmission direction, and the other path of reverse configuration message from the last network device is transmitted along the reverse transmission direction. The route of the same target transmission path is configured through the forward configuration message and the reverse configuration message which are transmitted in two ways in parallel and along the two directions, so that the efficiency of configuring the route of the target transmission path is effectively improved.
For a better understanding, the following description is made in comparison with the existing schemes:
for example, if the target transmission path includes 10 network devices connected in sequence. If the existing scheme is adopted, the message from the first network device for configuring the route is required to be sequentially transmitted in 10 network devices, so that the 10 network devices sequentially configure the route.
By adopting the method shown in this embodiment, 5 network devices out of 10 network devices included in the target transmission path can configure the route based on the forward configuration message, and the remaining 5 network devices can configure the route according to the reverse configuration message.
It can be seen that if the existing scheme configures the target transmission path, the configuration needs to be performed with a duration of T, but the present embodiment only needs a duration of T/2.
In short, in the target transmission path in the existing scheme, all network devices need to configure routes according to the same configuration message, but in the embodiment shown, some network devices configure routes according to the forward configuration message, and another network device configures routes according to the reverse configuration message. The routing time of the configuration target transmission path is effectively shortened.
In this embodiment, any network device can implement the routing in the forward direction and the reverse direction no matter the routing configured according to the forward configuration message or the reverse configuration message, and no routing in different directions is required to be configured for different transmission directions of the service.
For example, the intermediate network device F has configured the routing of ports F1 to F2 for the target traffic. If the target service is transmitted in the forward transmission direction, the intermediate network device F may transmit the target service to the port F2 after receiving the target service through the port F1, and then transmit the target service to the intermediate network device G through the port F2. If the target service is transmitted in the reverse transmission direction, the intermediate network device F receives the target service through the port F2, and then transmits the target service to the port F1, and then transmits the target service to the intermediate network device E through the port F1.
The embodiment shown in fig. 2 illustrates how the routing of the target transmission path is configured in order to achieve transmission of the target traffic in the target transmission path. While the embodiment shown in fig. 4 illustrates how normal transmission of the target traffic is ensured if the initial transmission path for transmitting the target traffic fails.
Step 401, the first network device receives the fault indication message.
The failure indication message shown in this embodiment is a message conforming to RSVP protocol, and is used to indicate that the initial transmission path of the transmission target service fails. It can be seen that, when the first network device receives the fault indication message, it is determined that the initial transmission path fails, and the target service cannot be continuously transmitted.
Referring specifically to fig. 1, if the initial transmission path includes network devices A, B, C and D. The cause of the failure in this example may be that the optical fiber connected between the network device B and the network device C is broken, so that the target service cannot be transmitted along the initial transmission path, for example, to be described as an example.
In this embodiment, if the network device B has not received the message from the network device C when the preset duration is exceeded, it may be determined that a fiber break occurs between the network device B and the network device C. It should be noted that, the description of the case where the network device B determines that the fiber breakage occurs between the network device B and the network device C in this embodiment is an optional example, and is not limited.
The network device B generates the failure indication message including the target identification and the identification of the initial transmission path. Specifically, the network device B has a plurality of ports, for example, ports B1, B2, … … BN, and the specific value of N is not limited in this embodiment. If the port B1 of the network device B is connected to the network device C through the optical fiber, the network device B determines that a fiber break occurs between the network device B and the network device C, and then the network device B obtains the target identifier of the target service through the port B1. That is, in the case that the optical fiber between the network device B and the network device C is broken, the target service having the target identifier cannot be normally transmitted between the network device B and the network device C.
It should be noted that, in the fault shown in this embodiment, the fiber breakage occurs in the optical fiber connected between the network device B and the network device C, and in other examples, the fiber breakage may occur between any two network devices connected through the optical fiber in the initial transmission path. For example, a fiber break occurs between network device a and network device B.
Alternatively, the fault shown in this embodiment may be any network device that fails, and the present embodiment is not limited specifically.
Step 402, the last network device receives a failure indication message.
The fault indication message received by the last network device in this step may be specifically shown in step 401, which is not described in detail. For example, a failure indication message is sent by the network device B in the initial transmission path to the last network device D.
As another example, in the event that the first network device acquires the failure indication message, the first network device may forward the failure indication message to the last network device. For another example, the first network device may send the fault indication message to the network management device, and then the network management device sends the fault indication message to the last network device.
The execution timing between step 401 and step 402 is not limited in this embodiment.
Step 403, the first network device configures the route according to the forward configuration message.
The forward configuration message shown in this embodiment is used to configure a route of a target transmission path, where the target transmission path is used to transmit the target service. That is, in the case where the initial transmission path for transmitting the target traffic fails, the path for transmitting the target traffic may be switched from the initial transmission path to the target transmission path. For a specific description of the target transmission path, please refer to the embodiment shown in fig. 2, and details are not repeated in this embodiment.
In this embodiment, the first network device generates the forward configuration message as an example. Under the condition that the first network equipment acquires the fault indication message, according to the target identifier included in the fault indication message and the identifier of the initial transmission path, the initial transmission path for transmitting the target service has faults, and the target service cannot be continuously transmitted. The first network device may obtain the forward configuration message according to the protocol such as OSPF or PCEP, and the specific content of the forward configuration message and the description of the configuration process are shown in step 201, which is not repeated.
If the network management equipment acquires the forward configuration message, the first network equipment sends the received fault indication message to the network management equipment, or the network equipment B directly sends the fault indication message to the network management equipment. For the process of configuring the forward configuration message by the network management device, please refer to the process of configuring the forward configuration message by the first network device, which will not be described in detail.
The specific process of configuring the route according to the forward configuration message by the first network device is shown in step 201, and will not be described in detail.
Step 404, the first network device sends a forward configuration message to the first intermediate network device.
For a detailed description of the specific implementation of step 404 shown in this embodiment, please refer to the description of step 202 shown in fig. 2, which is not repeated.
And step 405, the end network device configures the route according to the reverse configuration message.
Specifically, the present embodiment is exemplified by the network device configuring the reverse configuration message according to the received fault indication message. The specific content of the reverse configuration message and the procedure for configuring the reverse configuration message by the network device are shown in step 203, and are not repeated.
In this embodiment, the network management device may also obtain the reverse configuration message, and the specific process is shown in step 203 shown in fig. 2, which is not described in detail.
The specific process of configuring the route according to the reverse configuration message by the network device is shown in step 203 in fig. 2, and will not be described in detail.
Step 406, the last network device sends a reverse configuration message to the second intermediate network device.
Step 407, the first intermediate network device receives the forward configuration message from the first network device.
Step 408, the first intermediate network device configures the route according to the forward configuration message.
Step 409, the first intermediate network device sends a forward configuration message to the third intermediate network device.
Step 410, the second intermediate network device receives the reverse configuration message from the last network device.
Step 411, the second intermediate network device configures a route according to the reverse configuration message.
Step 412, the second intermediate network device sends a reverse configuration message to the third intermediate network device.
Step 413, the third intermediate network device receives the forward configuration message and the reverse configuration message.
Step 414, the third intermediate network device configures the route according to the forward configuration message or the reverse configuration message.
Step 415, the third intermediate network device sends a forward configuration message to the second network device.
Step 416, the second intermediate network device sends a forward configuration message to the end network device.
Step 417, the last network device sends a response message to the first network device.
Step 418, the end network device transmits the deletion indication message to the target transmission path.
In the specific implementation process of steps 406 to 418 shown in the present embodiment, please refer to steps 204 to 216 shown in fig. 2, and the specific implementation process is not described in detail.
By adopting the method shown in the embodiment, the communication system has the function of fault automatic recovery. The head network device re-acquires a target transmission path capable of transmitting the target service based on the failure indication message from the initial transmission path. The head network device transmits a forward configuration message to the target transmission path to configure the route. The end network device also obtains the fault indication message from the initial transmission path, and then sends a reverse configuration message to the target transmission path to configure the route.
Therefore, under the condition that the initial transmission path fails, the route of the same target transmission path can be configured through two paths of configuration messages which are concurrent and transmitted in two directions, and the efficiency of configuring the route of the target transmission path is effectively improved.
Moreover, by adopting the method shown in the embodiment, the routes of the same target transmission path are configured through two paths of configuration messages which are transmitted in parallel and along two directions, so that the duration of configuring the routes of the target transmission path can be effectively reduced under the scene that the number of network devices included in the target transmission path is increased. The situation that the performance of the transmission path of the reconfiguration target service is deteriorated due to the increase of the number of network devices included in the target transmission path is avoided.
In the embodiment shown in fig. 4, it is explained how to configure the target transmission path to ensure the normal transmission of the target traffic if the initial transmission path for transmitting the target traffic fails. Based on the embodiment shown in fig. 4, a description is given below of how to effectively improve the efficiency of configuring the target transmission path, with reference to fig. 5:
step 501, the network management device receives the fault indication message.
For a specific description of the fault indication message, please refer to step 401 shown in fig. 4, and details are not described in detail in this embodiment.
Taking the example shown in fig. 6, the initial transmission path for transmitting the target traffic includes network devices A, B, C and D. In the initial transmission path for transmitting the target service, if the network device B determines that a fiber break occurs between the network device B and the network device C, the network device B sends the failure indication message to the network management device 101.
Step 502, the network management device sends a forward configuration message to the first network device.
The fault indication message shown in this embodiment may be used to indicate a fault event, for example, the fault event shown in this embodiment is that a fiber break occurs between the network device B and the network device C in the initial transmission path.
After the network management equipment determines the fault event, in order to improve the efficiency of configuring the target transmission path, the network management equipment determines the target transmission path.
The target transmission path is a path for transmitting the target traffic, and at least one intermediate network device in the initial transmission path is included in the target transmission path. It can be seen that the plurality of intermediate network devices included in the target transmission path partially overlap with the plurality of intermediate network devices included in the initial transmission path.
In this embodiment, the number of intermediate network devices where the initial transmission path and the target transmission path overlap is not limited, as long as the optical fiber connected between any two adjacent network devices included in the target transmission path is not the optical fiber in which the fiber breakage indicated by the fault indication message occurs.
Continuing with the example shown in fig. 6, the initial transmission path includes network devices A, B, C and D. And the destination transmission path acquired by the network management device includes the network device A, B, E, F, G, C and D. Therefore, the network device B and the network device C are no longer directly connected through the optical fiber 600 with the broken fiber in the target transmission path, so that the target transmission path can normally transmit the target service.
Specifically, the network management device determines that the optical fiber between the network device a and the network device B is in a normal state according to the fault indication message, and the optical fiber between the network device C and the network device D is in a normal state. In order to improve the efficiency of the rerouting configuration of the target traffic, it is not necessary to reconfigure the route between the network device a and the network device B and the route between the network device C and the network device D again.
Comparing the initial transmission path (including network devices A, B, C and D) with the target transmission path (including network devices A, B, E, F, G, C and D), it is known that intermediate network devices B and C in the initial path and the target transmission path are coincident intermediate network devices, so that in the process of configuring the route of the target transmission path, the route between network device a and network device B and the route between network device C and network device D need not be reconfigured.
The network management device determines a section transmission path included in the target transmission path. The section transmission path is a path which needs to be routed among the target transmission paths. The section transmission path includes a first network device and a last network device connected in sequence, and at least one intermediate network device connected between the first network device and the last network device.
In the embodiments shown in fig. 2 and fig. 4, the first network device is a source network device, that is, the first network device is used as an initiator of the target service transmitted by the target transmission path, and the last network device is used as a responder of the target service. Or, the end network device is the sink network device, i.e. the end network device is the initiator of the target traffic transmitted by the target transmission path, and the head network device is the responder of the target traffic.
The first network device in the embodiment is the first network device in the segment transmission path, and the last network device in the segment transmission path.
With continued reference to the above example, in the case where the target transmission path includes the network devices A, B, E, F, G, C and D, it is known that the segment transmission path includes the network devices B, E, F, G and C. I.e. network device a is the source network device of the responder or initiator of the target traffic and network device D is the sink network device of the initiator or responder of the target traffic. The first network device is network device B and the last network device is network device D.
In this example, the configuration of the target transmission path is completed after the routing of the network devices B, E, F, G and C is configured.
It should be noted that, in this embodiment, the network management device determines the segment transmission path according to the fault indication message, and sends the forward configuration message to the first network device of the segment transmission path. In other examples, the forward configuration message may also be sent by a source network device that is a responder or initiator of the target traffic to the head network device of the segment transmission path.
For example, the source network device a in the target transmission path generates a forward configuration message according to the fault indication information. Because the network device B is a network device with coincident initial transmission paths and target transmission paths, the network device a does not need to configure a route for the route between the network device a and the network device B according to the forward configuration message. The network device B is used as a first network device, and is used as a first network device for configuring the route according to the forward configuration message in the section transmission path.
The forward configuration message shown in this embodiment is used for transmission along a forward transmission direction of the segment transmission path, where the forward transmission direction refers to a direction in which the first network device B in the segment transmission path is started and the first network device B sequentially transmits along each network device included in the segment transmission path.
Step 503, the first network device configures a route according to the forward configuration message.
As shown in fig. 6, the head network device shown in the present embodiment is the first network device in the section transmission path, i.e., network device B. And configuring a route according to the forward configuration message so as to realize the interaction of the target service between the network equipment B and the network equipment E. The specific process of configuring the route according to the forward configuration message by the first network device is shown in step 201 in fig. 2, and is not described in detail in this embodiment.
Step 504, the first network device sends a forward configuration message to the first intermediate network device.
In this embodiment, the first intermediate network device is taken as an intermediate network device E as an example for illustration.
For a detailed description of the specific implementation process of step 504 shown in the embodiment, please refer to step 202 shown in fig. 2, and the detailed description of the specific implementation process is omitted.
Step 505, the end network device configures the route according to the reverse configuration message.
As shown in the above step 502, the last network device in the segment transmission path is the last network device in the segment transmission path. I.e. the last network device shown in this embodiment is the network device C in the target transmission path.
For a detailed description of the reverse configuration message shown in the embodiment, please refer to step 203 shown in fig. 2, and details are not repeated.
The present embodiment describes several optional ways for the last network device, which is the last network device in the segment recovery path, to obtain the reverse configuration message:
mode 1
The end network device may receive a forward configuration message from a network management device or a source network device. And the network equipment generates a reverse configuration message according to the forward configuration. The reverse configuration message is used for transmitting along a reverse transmission direction of the section transmission path, where the reverse transmission direction refers to a direction in which the last network device C in the section transmission path is transmitted and the last network device C in the section transmission path is sequentially transmitted along each network device included in the section transmission path. And in the section transmission path, the forward transmission direction and the reverse transmission direction are opposite.
For a description of the specific process of generating the reverse configuration message according to the forward configuration message in this embodiment, please refer to step 203 in the embodiment shown in fig. 2, which is not repeated.
Mode 2
The end network device receives a forward path indication message of the segment transmission path and a destination identification of the destination traffic.
Specifically, the network management device or the first network device shown in this embodiment may send a forward path indication message of the segment transmission path to the last network device C. The forward path indication message of the segment transmission path is used to indicate the segment transmission path, and includes the connection relationship of the network device B, E, F, G and C in sequence along the forward transmission direction.
The network device generates a reverse configuration message according to the forward path indication message of the segment transmission path, and the detailed process is shown in step 203 shown in fig. 2, which is not described in detail.
Mode 3
The network management device or the first network device may directly send the reverse configuration message to the last network device.
Mode 4
The end network device may obtain the reverse configuration message according to the protocol such as OSPF or PCEP, and the specific process may be shown in step 203 in the embodiment shown in fig. 2, which is not described in detail.
Step 506, the last network device sends a reverse configuration message to the second intermediate network device.
The second intermediate network device in this embodiment is an intermediate network device, which is adjacent to the last network device C and is connected by an optical fiber, among the plurality of intermediate network devices included in the segment transmission path. Taking fig. 6 as an example, the second intermediate network device is a network device G connected to the last network device C through an optical fiber.
Step 507, the first intermediate network device receives a forward configuration message from the first network device.
Step 508, the first intermediate network device configures the route according to the forward configuration message.
For a description of the specific execution of steps 507 to 508 in this embodiment, please refer to steps 205 to 206 in fig. 2, which is not described in detail.
Step 509, the first intermediate network device sends a forward configuration message to the third intermediate network device.
The third intermediate network device in this embodiment is an intermediate network device, which is adjacent to the first intermediate network device and is connected by an optical fiber, among the plurality of intermediate network devices included in the segment transmission path. Taking fig. 6 as an example, the third intermediate network device is a network device F connected to the first intermediate network device E through an optical fiber.
Step 510, the second intermediate network device receives the reverse configuration message from the last network device.
Step 511, the second intermediate network device configures the route according to the reverse configuration message.
Step 512, the second intermediate network device sends a reverse configuration message to the third intermediate network device.
Step 513, the third intermediate network device receives the forward configuration message and the reverse configuration message.
Step 514, the third intermediate network device configures the route according to the forward configuration message or the reverse configuration message.
Step 515, the third intermediate network device sends a forward configuration message to the second network device.
Step 516, the second intermediate network device sends a forward configuration message to the end network device.
Step 517, the last network device sends a response message to the first network device.
Step 518, the network device transmits the deletion indication message to the target transmission path.
For a detailed description of the specific execution of steps 510 to 518 in this embodiment, please refer to steps 208 to 216 in fig. 2, and detailed description thereof is omitted.
In this embodiment, after each network device included in the segment transmission path completes configuration of the route, the target transmission path may implement transmission of the target service.
By adopting the method shown in the embodiment, the initial transmission path fails, and the transmission path of the target service can be switched from the initial transmission path to the target transmission path, so as to realize rerouting of the target service. Moreover, the routes of all the network devices included in the target transmission path need not be reconfigured, and only the routes of the network devices included in the segment transmission path included in the target transmission path need to be configured. The routing is not required to be configured for all network devices included in the target transmission path, so that the number of network devices to be configured for routing is reduced, and the efficiency of rerouting the target service is effectively improved. Under the scene that the number of network devices included in the target transmission path is increased, the data quantity processed by a single station of the network device is effectively reduced, and the possibility of congestion of the network device is reduced.
The network device in the present application is described below with reference to fig. 7. The network device includes a processor 701, a memory 702, and an optical transceiver 703. The processor 701, memory 702, and optical transceiver 703 are interconnected by wires. Wherein the memory 702 is used to store program instructions and data.
If the network device shown in the present embodiment is an intermediate network device in the target transmission path, the memory 702 stores program instructions and data for supporting the execution of the program instructions and data by the intermediate network device in the steps shown in fig. 2, 4 and 5, and the processor 701 and the optical transceiver 703 are configured to execute the method steps shown in any embodiment of fig. 2, 4 and 5.
If the network device in this embodiment is a first intermediate network device, in fig. 2, the optical transceiver 703 is configured to execute step 205 and step 207. The processor 701 is configured to execute step 206. In fig. 4, an optical transceiver 703 is used for step 407 as well as step 409. The processor 701 is configured to perform step 408. In fig. 5, an optical transceiver 703 is used for step 507 as well as step 509. The processor 701 is configured to perform step 508.
If the network device in this embodiment is a second intermediate network device, in fig. 2, the optical transceiver 703 is configured to execute step 208 and step 210. The processor 701 is configured to execute step 209. In fig. 4, an optical transceiver 703 is used for step 410 as well as step 412. The processor 701 is configured to perform step 411. In fig. 5, the optical transceiver 703 is used for step 510 and step 512. The processor 701 is configured to perform step 511.
If the network device in this embodiment is a third intermediate network device, in fig. 2, the optical transceiver 703 is configured to execute step 211 and step 213. The processor 701 is configured to execute step 212. In fig. 4, an optical transceiver 703 is used for step 413 and step 415. The processor 701 is configured to perform step 414. In fig. 5, an optical transceiver 703 is used for step 513 and step 515. The processor 701 is configured to perform step 514.
If the network device in this embodiment is a last network device, in fig. 2, the optical transceiver 703 is configured to execute steps 204, 215, and 216. The processor 701 is configured to perform step 203. In fig. 4, an optical transceiver 703 is used for steps 402, 406, 417 and 418. The processor 701 is configured to execute step 405. In fig. 5, the optical transceiver 703 is used for step 506, step 517 and step 518. The processor 701 is configured to execute step 505.
The embodiment of the application also provides a digital processing chip. The digital processing chip has integrated therein circuitry and one or more interfaces for implementing the functions of the processor 701 described above. When the memory is integrated into the digital processing chip, the digital processing chip may perform the method steps of any one or more of the preceding embodiments. When the digital processing chip is not integrated with the memory, the digital processing chip can be connected with the external memory through an interface. The digital processing chip implements any of the embodiments of fig. 2, 4 and 5 described above according to program code stored in an external memory.
Those of ordinary skill in the art will appreciate that all or a portion of the steps implementing the above embodiments may be performed by hardware or may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium, which may be a read-only memory, a random access memory, or the like. Specifically, for example: the processing unit or processor may be a central processing unit, a general purpose processor, a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof.
Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Finally, it should be noted that: the foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (24)
1. A method for configuring a route, the method being applied to a target transmission path, the target transmission path including a first network device, at least one intermediate network device, and a last network device connected in sequence, the method comprising:
the intermediate network equipment receives a first configuration message, and the first configuration message is transmitted along a first transmission direction in the target transmission path;
the intermediate network device configures a route between the intermediate network device and the adjacent network device according to the first configuration message, and in the target transmission path, the intermediate network device and the adjacent network device are adjacent in position and are connected with each other;
the intermediate network equipment receives a second configuration message, the second configuration message is transmitted along a second transmission direction in the target transmission path, and the first transmission direction is opposite to the second transmission direction;
if the intermediate network device determines that the first configuration message and the second configuration message meet a preset condition, the intermediate network device determines that the route is not configured according to the second configuration message, the preset condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path, and the target transmission path is used for transmitting target service.
2. The method of claim 1, wherein if the first configuration message is from the first network device and the second configuration message is from the last network device, the method further comprises, after the intermediate network device configures a route between the intermediate network device and a neighboring network device according to the first configuration message:
the intermediate network device sends the first configuration message to the end network device;
after the intermediate network device determines that the route is no longer configured according to the second configuration message, the method further includes:
and the intermediate network equipment ends the transmission of the second configuration message.
3. The method of claim 1, wherein if the first configuration message is from the last network device and the second configuration message is from the first network device, the method further comprises, after the intermediate network device configures a route between the intermediate network device and a neighboring network device according to the first configuration message:
the intermediate network device sends the first configuration message to the first network device;
after the intermediate network device determines that the route is no longer configured according to the second configuration message, the method further includes:
And the intermediate network equipment sends the second configuration message to the end network equipment.
4. A method according to any one of claims 1 to 3, wherein the intermediate network device determining that the first configuration message and the second configuration message meet a preset condition comprises:
the intermediate network device determines that the first configuration message and the second configuration message meet a first preset sub-condition, wherein the first preset sub-condition is that the first configuration message and the second configuration message both comprise target identifiers of the target service, the first configuration message comprises a first indication message for indicating the first transmission direction, and the second configuration message comprises a second indication message for indicating the second transmission direction;
and the intermediate network device determines that the first configuration message and the second configuration message meet a second preset sub-condition, where the second preset sub-condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path.
5. The method according to claim 1, wherein the method further comprises:
the intermediate network device receives a deletion instruction message, and if the first configuration message is from the last network device, the deletion instruction message is used for instructing to delete the first configuration message, or if the second configuration message is from the last network device, the deletion instruction message is used for instructing to delete the second configuration message.
6. A method for configuring a route, the method being applied to a target transmission path, the target transmission path including a first network device, at least one intermediate network device, and a last network device connected in sequence, the method comprising:
the first network device sends a forward configuration message to the intermediate network device, and the forward configuration message is transmitted along a forward direction in the target transmission path;
the end network device sends a reverse configuration message to the intermediate network device, and the reverse configuration message and the forward configuration message are transmitted in opposite directions in the target transmission path;
and the intermediate network equipment configures the route between the intermediate network equipment and the adjacent network equipment according to one of the forward configuration message or the reverse configuration message, and the intermediate network equipment and the adjacent network equipment are adjacent in position and connected with each other in the target transmission path.
7. The method of claim 6, wherein before the end network device sends a reverse configuration message to the intermediate network device, the method further comprises:
the end network device obtains a reverse path indication message, wherein the reverse path indication message is used for indicating the connection relationship between the first network device and the at least one intermediate network device along a reverse direction, and the reverse transmission direction is the transmission direction of the reverse configuration message in the target transmission path;
And the end network device acquires the reverse configuration message according to the reverse path indication message.
8. The method of claim 7, wherein the last network device obtaining the reverse path indication message comprises:
the last network device obtains a forward path indication message, wherein the forward path indication message is used for indicating the connection relationship between the first network device and the at least one intermediate network device along a forward direction, and the forward direction is the transmission direction of the forward configuration message in the target transmission path;
the end network device converts the forward path indication message to the reverse path indication message.
9. The method of claim 8, wherein the method further comprises:
the last network equipment receives a fault indication message, wherein the fault indication message is used for indicating an initial transmission path to fail, the fault indication message comprises a target identifier of a target service, the initial transmission path and the target transmission path are both used for transmitting the target service, and a plurality of network equipment included in the initial transmission path are the same as a plurality of network equipment included in the target transmission path, and part of network equipment is the same;
The end network device converting the forward path indication message to the reverse path indication message comprises:
the last network device converts the forward path indication message into the reverse path indication message if it is determined that the forward path indication message and the failure indication message both include the target identification of the target traffic.
10. The method according to any one of claims 6 to 9, further comprising:
the end network device receives the forward configuration message;
and the end network device sends a response message to the head network device through the target transmission path, wherein the response message is used for indicating that the routing between any two network devices which are adjacent and connected with each other and included in the target transmission path is configured successfully.
11. The method according to any of claims 6 to 9, wherein after the end network device sends a reverse configuration message to the intermediate network device, the method further comprises:
the end network device deletes the reverse configuration message;
and the end network device sends a deletion indication message to the intermediate network device, wherein the deletion indication message is used for indicating the intermediate network device to delete the reverse configuration message.
12. The network equipment is characterized in that the network equipment is an intermediate network equipment connected between a first network equipment and a last network equipment in a target transmission path, and the intermediate network equipment comprises a processor, a memory and an optical transceiver, wherein the processor, the memory and the optical transceiver are interconnected through a line;
the optical transceiver is configured to receive a first configuration packet, where the first configuration packet is transmitted along a first transmission direction in the target transmission path;
the processor invoking program code in the memory for configuring a route between the intermediate network device and a neighboring network device according to the first configuration message, the intermediate network device and the neighboring network device being adjacently located and interconnected in the target transmission path;
the optical transceiver is further configured to receive a second configuration packet, where the second configuration packet is transmitted along a second transmission direction in the target transmission path, and the first transmission direction is opposite to the second transmission direction;
the processor is further configured to determine that the route is no longer configured according to the second configuration message if the processor determines that the first configuration message and the second configuration message meet a preset condition, where the preset condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path, and the target transmission path is used for transmitting a target service.
13. The network device of claim 12, wherein if the first configuration message is from the head network device, the second configuration message is from the end network device;
the optical transceiver is further configured to send the first configuration packet to the last network device;
the processor is further configured to end transmission of the second configuration message.
14. The network device of claim 12, wherein if the first configuration message is from the last network device and the second configuration message is from the first network device, the optical transceiver is further configured to:
sending the first configuration message to the first network equipment;
and sending the second configuration message to the terminal network equipment.
15. The network device of any one of claims 12 to 14, wherein the processor is specifically configured to:
determining that the first configuration message and the second configuration message meet a first preset sub-condition, wherein the first preset sub-condition is that the first configuration message and the second configuration message both comprise target identifiers of the target service, the first configuration message comprises a first indication message for indicating the first transmission direction, and the second configuration message comprises a second indication message for indicating the second transmission direction;
Determining that the first configuration message and the second configuration message meet a second preset sub-condition, wherein the second preset sub-condition is that the first configuration message and the second configuration message are both used for configuring the route of the target transmission path.
16. The network device of claim 12, wherein the optical transceiver is further configured to:
and receiving a deletion instruction message, wherein the deletion instruction message is used for instructing to delete the first configuration message if the first configuration message is from the last network device, or is used for instructing to delete the second configuration message if the second configuration message is from the last network device.
17. A communication system, comprising a target transmission path comprising a first network device, at least one intermediate network device and a last network device connected in sequence:
the first network device is configured to send a forward configuration message to the intermediate network device, where the forward configuration message is transmitted along a forward direction in the target transmission path;
the end network device is configured to send a reverse configuration message to the intermediate network device, where the reverse configuration message and the forward configuration message are transmitted in opposite directions in the target transmission path;
The intermediate network device is configured to configure a route between the intermediate network device and an adjacent network device according to one of the forward configuration message or the reverse configuration message, and in the target transmission path, the intermediate network device and the adjacent network device are adjacent and connected to each other.
18. The communication system of claim 17, wherein before the end network device is configured to send a reverse configuration message to the intermediate network device, the end network device is further configured to:
acquiring a reverse path indication message, wherein the reverse path indication message is used for indicating the connection relationship between the first network device and the at least one intermediate network device along a reverse direction, and the reverse transmission direction is the transmission direction of the reverse configuration message in the target transmission path;
and acquiring the reverse configuration message according to the reverse path indication message.
19. The communication system according to claim 18, wherein the last network device is configured to, in the process of obtaining the reverse path indication message, specifically:
acquiring a forward path indication message, wherein the forward path indication message is used for indicating the connection relationship between the first network device and the at least one intermediate network device along a forward direction, and the forward direction is the transmission direction of the forward configuration message in the target transmission path;
Converting the forward path indication message into the reverse path indication message.
20. The communication system of claim 19, wherein the plurality of communication devices,
the last network device is further configured to receive a fault indication message, where the fault indication message is used to indicate that an initial transmission path has a fault, and the fault indication message includes a target identifier of a target service, where the initial transmission path and the target transmission path are both used to transmit the target service, and a plurality of network devices included in the initial transmission path and a plurality of network devices included in the target transmission path are the same, where part of network devices are the same;
the last network device is configured to, in a process of converting the forward path indication message into the reverse path indication message, specifically:
in the case that the forward path indication message and the fault indication message both comprise the target identity of the target traffic, the last network device converts the forward path indication message into the reverse path indication message.
21. A communication system according to any of claims 17 to 20, wherein the end network device is further configured to:
Receiving the forward configuration message;
and sending a response message to the first network device via the target transmission path, wherein the response message is used for indicating that the routing between any two network devices which are adjacent and connected with each other and included in the target transmission path is configured successfully.
22. A communication system according to any of claims 17 to 20, wherein after the end network device sends a reverse configuration message to the intermediate network device, the end network device is further configured to:
deleting the reverse configuration message;
and sending a deletion indication message to the intermediate network equipment, wherein the deletion indication message is used for indicating the intermediate network equipment to delete the reverse configuration message.
23. A digital processing chip, characterized in that it comprises a processor and a memory, said memory and said processor being interconnected by means of wires, said memory having instructions stored therein, said processor being adapted to perform the method according to any of claims 1 to 11.
24. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 11.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011090902.0A CN114363735B (en) | 2020-10-13 | 2020-10-13 | Route configuration method, network equipment, communication system and storage medium |
PCT/CN2021/112935 WO2022078051A1 (en) | 2020-10-13 | 2021-08-17 | Route configuration method, network device, communication system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011090902.0A CN114363735B (en) | 2020-10-13 | 2020-10-13 | Route configuration method, network equipment, communication system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114363735A CN114363735A (en) | 2022-04-15 |
CN114363735B true CN114363735B (en) | 2023-05-12 |
Family
ID=81089622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011090902.0A Active CN114363735B (en) | 2020-10-13 | 2020-10-13 | Route configuration method, network equipment, communication system and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114363735B (en) |
WO (1) | WO2022078051A1 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000031978A (en) * | 1998-07-10 | 2000-01-28 | Mitsubishi Electric Corp | Call control system and call control method |
JP2003348107A (en) * | 2002-05-29 | 2003-12-05 | Nec Corp | Two-way linked network, route selecting method used therefor, and program thereof |
DE102007031341A1 (en) * | 2006-11-13 | 2008-05-15 | Siemens Ag | A method of establishing bi-directional data transmission paths in a wireless meshed communication network |
WO2008082638A1 (en) * | 2006-12-29 | 2008-07-10 | Knox Michael E | High isolation signal routing assembly for full duplex communication |
CN104754425A (en) * | 2013-12-27 | 2015-07-01 | 北京创维海通数字技术有限公司 | Method of transmitting unidirectional DVB (Digital Video Broadcasting) network signaling data in double-direction network |
CN105939255A (en) * | 2015-03-02 | 2016-09-14 | 思科技术公司 | Symmetric routing enforcement |
WO2018076949A1 (en) * | 2016-10-31 | 2018-05-03 | 腾讯科技(深圳)有限公司 | Traffic attack protection method and system, controller, router, and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7209978B2 (en) * | 2002-12-13 | 2007-04-24 | Cisco Technology, Inc. | Arrangement in a router of a mobile network for optimizing use of messages carrying reverse routing headers |
US7886075B2 (en) * | 2003-05-16 | 2011-02-08 | Cisco Technology, Inc. | Arrangement for retrieving routing information for establishing a bidirectional tunnel between a mobile router and a correspondent router |
CN101425942A (en) * | 2008-12-09 | 2009-05-06 | 华为技术有限公司 | Method, apparatus and system for bidirectional forwarding detection implementation |
CN101795235B (en) * | 2010-03-18 | 2014-03-19 | 中兴通讯股份有限公司 | Route map treatment method and operator edge device |
US9866476B2 (en) * | 2014-12-17 | 2018-01-09 | Intel Corporation | Parallel direction decode circuits for network-on-chip |
CN111131021B (en) * | 2020-01-17 | 2023-04-07 | 新华三信息安全技术有限公司 | Forwarding method and network equipment for Bidirectional Forwarding Detection (BFD) message |
-
2020
- 2020-10-13 CN CN202011090902.0A patent/CN114363735B/en active Active
-
2021
- 2021-08-17 WO PCT/CN2021/112935 patent/WO2022078051A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000031978A (en) * | 1998-07-10 | 2000-01-28 | Mitsubishi Electric Corp | Call control system and call control method |
JP2003348107A (en) * | 2002-05-29 | 2003-12-05 | Nec Corp | Two-way linked network, route selecting method used therefor, and program thereof |
DE102007031341A1 (en) * | 2006-11-13 | 2008-05-15 | Siemens Ag | A method of establishing bi-directional data transmission paths in a wireless meshed communication network |
WO2008082638A1 (en) * | 2006-12-29 | 2008-07-10 | Knox Michael E | High isolation signal routing assembly for full duplex communication |
CN104754425A (en) * | 2013-12-27 | 2015-07-01 | 北京创维海通数字技术有限公司 | Method of transmitting unidirectional DVB (Digital Video Broadcasting) network signaling data in double-direction network |
CN105939255A (en) * | 2015-03-02 | 2016-09-14 | 思科技术公司 | Symmetric routing enforcement |
WO2018076949A1 (en) * | 2016-10-31 | 2018-05-03 | 腾讯科技(深圳)有限公司 | Traffic attack protection method and system, controller, router, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114363735A (en) | 2022-04-15 |
WO2022078051A1 (en) | 2022-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11228526B2 (en) | Flexible ethernet path establishment method and network device | |
JP5586597B2 (en) | Link diversity and load balancing across digital and optical express-thru nodes | |
US7680029B2 (en) | Transmission apparatus with mechanism for reserving resources for recovery paths in label-switched network | |
JP4199514B2 (en) | Method for interconnecting networks and apparatus therefor | |
US8520685B2 (en) | Signal relay apparatus, node apparatus, network system, virtual-link generating method, path calculating method, and computer product | |
CN113839870B (en) | Path creation method, device and system | |
US7406033B2 (en) | Methods, devices and software for combining protection paths across a communications network | |
US10097909B2 (en) | Systems, apparatus, and methods for segment routing of optical signals | |
US8699342B2 (en) | Transmission device | |
WO2011009494A1 (en) | Methods and arrangement in a mpls-tp telecommunications network for oam functions | |
Lee et al. | Routing and wavelength assignment information model for wavelength switched optical networks | |
EP1755240A1 (en) | Method for performing association in automatic switching optical network | |
US20230232139A1 (en) | Service Protection Method and Network Node | |
EP2410700A1 (en) | Network communication system, communication apparatus, network cooperation method, and program | |
CN113727220B (en) | Service resource pre-configuration method, device and system | |
CN114363735B (en) | Route configuration method, network equipment, communication system and storage medium | |
JP4878536B2 (en) | Communication apparatus and communication system | |
US11490178B2 (en) | Method for establishing service path, network device, and system | |
US7042882B2 (en) | Layer-structured path setup method and node apparatus for implementing same | |
CN113453095B (en) | Method and device for restoring path configuration | |
US20240064111A1 (en) | Service Protection Method and Network Node | |
US20220224640A1 (en) | Apparatuses and methods for restoration of a label-switched path in a network | |
US20130121696A1 (en) | Apparatus and method for photonic networks | |
CN117061052A (en) | Service path control method and device, storage medium and electronic device | |
EP1170904A1 (en) | Communications network and method for routing data packets |
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 |