WO2022078051A1 - Route configuration method, network device, communication system and storage medium - Google Patents

Route configuration method, network device, communication system and storage medium Download PDF

Info

Publication number
WO2022078051A1
WO2022078051A1 PCT/CN2021/112935 CN2021112935W WO2022078051A1 WO 2022078051 A1 WO2022078051 A1 WO 2022078051A1 CN 2021112935 W CN2021112935 W CN 2021112935W WO 2022078051 A1 WO2022078051 A1 WO 2022078051A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
message
configuration
transmission path
target
Prior art date
Application number
PCT/CN2021/112935
Other languages
French (fr)
Chinese (zh)
Inventor
李�浩
罗小林
谢刚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022078051A1 publication Critical patent/WO2022078051A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J14/00Optical multiplex systems
    • H04J14/02Wavelength-division multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Definitions

  • the present invention relates to the field of optical fiber communication, in particular to a routing configuration method, network equipment, communication system and storage medium.
  • the automatically switched optical network has basically covered the metro and core backbone WDM networks.
  • ASON can automatically establish a transmission path for transmitting services through the resource reservation protocol traffic engineering (RSVP-TE) protocol.
  • RSVP-TE resource reservation protocol traffic engineering
  • the source network device acquires the transmission path, and determines each network device included in the transmission path.
  • the source network device sends a path message to each network device included in the transmission path along the transmission path.
  • Each network device establishes a route based on the received path message until the path message is transmitted to the sink network device included in the transmission path.
  • the sink network device sends a response message to the source network device through the transmission path.
  • the transmission path configuration is complete.
  • the multiple 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.
  • Embodiments of the present application provide a routing configuration method, a network device, a communication system, and a storage medium, which are used to improve the routing efficiency of configuring transmission paths.
  • an embodiment of the present invention provides a method for configuring a route.
  • 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 connected in sequence, and the method includes :
  • the intermediate network device receives the first configuration packet, and the first configuration packet is transmitted along the first transmission direction in the target transmission path; the intermediate network device configures the intermediate network device and adjacent network devices according to the first configuration packet
  • the intermediate network device and the adjacent network device are located adjacent to each other and are connected to each other; the intermediate network device receives the second configuration packet, and the second configuration packet is transmitted at the target
  • the path is transmitted along the second transmission direction, and the first transmission direction is opposite to the second transmission direction; if the intermediate network device determines that the first configuration packet and the second configuration packet meet the preset conditions, the intermediate network The device determines to no longer configure a route according to the second configuration message, and the preset condition is that both the first configuration message and the second configuration message are used to
  • the intermediate network device configures the route through one of the first configuration packet and the second configuration packet, so that the target transmission path can configure the route through the configuration packets that are concurrently and transmitted in both directions, which effectively improves the configuration target.
  • Efficiency of routing of transmission paths specifically means that one configuration packet comes from the first network device and is transmitted to the last network device through the target transmission path, and the other configuration packet comes from the last network device and is sent to the first network through the target transmission path. device transfer.
  • some network devices configure routes according to the first configuration message, while other network devices configure routes according to the second configuration message. In this way, the time for configuring the route of the target transmission path is effectively reduced.
  • the network equipment shown in this aspect is a transport network equipment.
  • any network device configures the route according to the first configuration packet or the second configuration packet, it can implement the routing in the first transmission direction and the second transmission direction, and there is no need to configure different transmission directions for services. Routing in different directions.
  • the intermediate network device reports the first configuration packet according to the first configuration. After configuring the route between the intermediate network device and the adjacent network device through the file, the method further includes: the intermediate network device sends the first configuration message to the last network device; the intermediate network device determines that the second After the configuration message configures the route, the method further includes: the intermediate network device ends the transmission of the second configuration message.
  • the intermediate network device first receives the first configuration packet (that is, the forward configuration packet) from the first network device, and then receives the second configuration packet (that is, the reverse configuration packet) from the last network device. to the configuration message).
  • the intermediate network device only needs to configure the route according to the first configuration message. There is no need to configure routing according to the second configuration message.
  • any network device connected between the first network device and the intermediate network device has completed routing configuration according to the first configuration message.
  • the intermediate network device terminates the transmission of the second configuration packet.
  • the intermediate network device reports the first configuration packet according to the first configuration. After configuring the route between the intermediate network device and the adjacent network device through the file, the method further includes: the intermediate network device sends the first configuration message to the first network device; After the configuration message configures the route, the method further includes: the intermediate network device sends the second configuration message to the end network device.
  • the intermediate network device first receives the first configuration packet (ie, the reverse configuration packet) from the last network device, and then receives the second configuration packet (ie, the forward configuration packet) from the first network device. configuration message).
  • the intermediate network device sends a second configuration message to the last network device.
  • the last network device determines that the route of the target transmission path has been configured.
  • the last network device sends a response message to the first network device via the target transmission path.
  • the first network device receives the response message, it can determine that the route of the target transmission path has been configured.
  • the intermediate network device determining that the first configuration packet and the second configuration packet meet a preset condition includes: the intermediate network device determining that the first configuration packet and the second configuration packet meet a preset condition.
  • the second configuration packet satisfies a first preset sub-condition, where the first preset sub-condition is that both the first configuration packet and the second configuration packet include the target identifier of the target service, and the first configuration packet
  • the message includes a first indication message for indicating the first transmission direction
  • the second configuration message includes a second indication message for indicating the second transmission direction
  • the intermediate network device determines that the first configuration message and The second configuration packet satisfies a second preset sub-condition, where the second preset sub-condition is that both the first configuration packet and the second configuration packet are used to configure the route of the target transmission path.
  • the intermediate network device first parses the first configuration message and part of the second configuration message (ie, the target identifier, the first indication message and the second indication message). When only the part of the message satisfies the first preset sub-condition, the first configuration packet and the second configuration packet are further parsed to determine whether the second preset sub-condition is met. It can be seen that the parsing amount of messages to be parsed by the intermediate network device is effectively reduced, and the occupation of system resources of the intermediate network device is reduced.
  • the method further includes: the intermediate network device receiving a deletion instruction message, where the deletion instruction message is used to instruct the intermediate network device to delete the configuration packet from the end network device. For example, if the above-mentioned first configuration packet comes from the last network device, the intermediate network device deletes the first configuration packet when receiving the deletion instruction message. For another example, if the second configuration packet shown above is from the last network device, the intermediate network device deletes the second configuration packet in the case of receiving the deletion instruction message.
  • the intermediate network device when the intermediate network device receives the deletion instruction message, it can delete the configuration message from the end network device on the control plane according to the deletion instruction message.
  • the amount of data stored by the intermediate network device is effectively reduced, and the possibility of congestion of the intermediate network device is reduced.
  • an embodiment of the present invention provides a routing configuration method. 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 route to a terminal included in the target transmission path.
  • the network device transmits a forward configuration message, and the method includes: the last network device obtains 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 last network device sends a reverse configuration packet to the first network device, where the reverse configuration packet 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.
  • the device and the second network device are any two network devices that are adjacent to each other and are connected to each other included in the target transmission path.
  • the multiple network devices included in the target transmission path shown in this aspect also include the first network device shown in the first aspect and the intermediate network device connected between the first network device and the last network device
  • the first network device and the second network device shown in this aspect are any two network devices included in the target transmission path.
  • the first network device and the second network device may be a first network device and an intermediate network device that are connected to each other.
  • the first network device and the second network device may be two intermediate network devices connected to each other.
  • the first network device and the second network device may be intermediate network devices and end network devices that are connected to each other.
  • acquiring the reverse configuration message by the end-network device includes: acquiring, by the end-network device, a reverse path indication message, where the reverse path indication message is used to indicate a reverse transmission direction, the connection relationship between multiple network devices included in the target transmission path, the reverse transmission direction is the transmission direction of the reverse configuration packet in the target transmission path; the last network device according to the reverse path The instruction message obtains the reverse configuration message.
  • acquiring the reverse path indication message by the end-network device includes: acquiring, by the end-network device, a forward path indication message, where the forward path indication message is used to indicate forward transmission direction, the connection relationship between the multiple network devices, the forward transmission direction is the transmission direction of the forward configuration message in the target transmission path; the last network device converts the forward path indication message into the reverse direction Indicates a message to the path.
  • the terminal network device when the terminal network device receives the forward path indication message, it can convert the forward path indication message into a reverse path indication message to generate the reverse configuration message.
  • the method further includes: the terminal network device receives a fault indication message, where the fault indication message is used to indicate that the initial transmission path is faulty, and the fault indication message includes the target of the target service identification, where both the initial transmission path and the target transmission path are used to transmit the target service, and some of the network devices included in the multiple network devices included in the initial transmission path and the multiple network devices included in the target transmission path are the same ;
  • the last network equipment converts the forward path indication message into the reverse path indication message and includes: when the last network equipment determines that the forward path indication message and the fault indication message both include the target identifier of the target service , the end network device converts the forward path indication message into the reverse path indication message.
  • the route of the same target transmission path can be configured through two concurrent and bidirectionally transmitted configuration packets, which effectively improves the efficiency of configuring the route of the target transmission path. Furthermore, the path for transmitting the target service can be quickly switched from the initial transmission path to the target transmission path, effectively ensuring the normal transmission of the target service.
  • the routes of the same target transmission path are configured through two concurrent configuration packets that are transmitted in both directions, in a scenario where the number of network devices included in the target transmission path increases, it is possible to effectively reduce the impact on the target transmission path.
  • the length of time for the route to be configured It is avoided that the performance degradation of reconfiguring the transmission path of the target service occurs due to the increase in the number of network devices included in the target transmission path.
  • the method further includes: the last network device receives the forward configuration message; the last network device sends a response message to the first network device via the target transmission path, The response message is used to indicate that the route between any two adjacent and mutually connected network devices included in the target transmission path has been successfully configured.
  • the method further includes: the last network device deletes the reverse configuration message; the last network device deletes the reverse configuration message; The network device sends a deletion instruction message to the first network device, where the deletion instruction message is used to instruct the first network device to delete the reverse configuration message.
  • 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, and the intermediate network device includes a processor, a memory, and a An optical transceiver, wherein the processor, the memory, and the optical transceiver are interconnected through a line; the optical transceiver is used to receive a first configuration message, and the first configuration message is along the first transmission direction in the target transmission path transmission; the processor invokes the program code in the memory to configure the route between the intermediate network device and the adjacent network device according to the first configuration message, in the target transmission path, the intermediate network device and the adjacent network device The adjacent network devices are located adjacent to each other and connected to each other; the optical transceiver is further configured to receive a second configuration packet, the second configuration packet is transmitted along the second transmission direction in the target transmission path, and the first transmission The direction is opposite to the second transmission direction; the processor is further configured to, if the processor determines that the first configuration
  • the optical transceiver is further configured to send a message to the last network device.
  • the optical transceiver is further configured to: send the first configuration packet to the first network device.
  • the network device sends the first configuration message; and sends the second configuration message to the last network device.
  • the processor is specifically configured to: determine that the first configuration packet and the second configuration packet satisfy a first preset sub-condition, the first preset sub-condition Both the first configuration message and the second configuration message include the target identifier of the target service, and the first configuration message includes a first indication message for indicating the first transmission direction, and the second configuration message The message includes a second indication message for indicating the second transmission direction; it is determined that the first configuration message and the second configuration message satisfy a second preset sub-condition, and the second preset sub-condition is the first configuration Both the message and the second configuration message are used to configure the route of the target transmission path.
  • the optical transceiver is further configured to: receive a deletion instruction message, and if the first configuration packet comes from the end-network device, the deletion instruction message is used to instruct deletion of the The first configuration message, or, if the second configuration message comes from the last network device, the deletion instruction message is used to instruct to delete the second configuration message.
  • an embodiment of the present invention provides a network device.
  • the network device includes a plurality of network devices as a target transmission path, and the target transmission path is used to transmit a forward configuration message to the last network device.
  • the network device includes a processor, a memory, and an optical transceiver, wherein the processor, the memory, and the optical transceiver are interconnected through a line; the processor invokes the program code in the memory to obtain a reverse configuration message, The reverse configuration packet and the forward configuration packet are transmitted in opposite directions in the target transmission path; the optical transceiver is further configured to send a reverse configuration packet to the first network device, the reverse configuration The 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 positions included in the target transmission path. Neighboring and interconnected network devices.
  • the processor is specifically configured to: obtain a reverse path indication message, where the reverse path indication message is used to indicate, along the reverse transmission direction, between the multiple network devices
  • the reverse transmission direction is the transmission direction of the reverse configuration message in the target transmission path; the reverse configuration message is obtained according to the reverse path indication message.
  • the processor is specifically configured to: obtain a forward path indication message, where the forward path indication message is used to indicate that, along the forward transmission direction, between the multiple network devices
  • 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.
  • the optical transceiver is further configured to receive a fault indication message, where the fault indication message is used to indicate that the initial transmission path is faulty, and the fault indication message includes a target identifier of the target service , wherein the initial transmission path and the target transmission path are both used to transmit the target service, and some of the network devices included in the multiple network devices included in the initial transmission path and the multiple network devices included in the target transmission path are the same;
  • the processor is specifically configured to convert the forward path indication message into the reverse path indication message when it is determined that both the forward path indication message and the fault indication message include the target identifier of the target service.
  • the optical transceiver is further configured to: receive the forward configuration message; send a response message to the first network device via the target transmission path, where the response message is used for Indicates that the route between any two adjacent and connected network devices included in the target transmission path has been configured successfully.
  • the processor is further configured to delete the reverse configuration message;
  • the optical transceiver is further configured to send a deletion instruction message to the first network device, the deletion The instruction message is used to instruct the first network device to delete the reverse configuration message.
  • 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 connected in sequence, and the intermediate network device is the same as the third aspect.
  • the end network device is as shown in any of the fourth aspects.
  • an embodiment of the present invention provides a digital processing chip, the digital processing chip includes a processor and a memory, the memory and the processor are interconnected through a line, and instructions are stored in the memory, and the processor is used to execute the above-mentioned Either of the first aspect or the second aspect.
  • an embodiment of the present invention provides a computer-readable storage medium, including instructions, when the instructions are executed on a computer, the computer is made to execute as shown in any one of the first aspect or the second aspect.
  • an embodiment of the present invention provides a computer program product containing instructions, which, when executed on a computer, cause the computer to execute any one of the first aspect or the second aspect.
  • routing configuration method network device, communication system and storage medium provided by the present application, it is possible to configure the routing of the same target transmission path through two concurrent and bidirectionally transmitted configuration messages, which effectively improves the reliability of the target transmission path.
  • the efficiency of routing configuration And among all the network devices included in the target transmission path, some network devices configure routes according to the first configuration message, while other network devices configure routes according to the second configuration message. In this way, the time for configuring the route of the target transmission path is effectively reduced.
  • any network device configures the route according to the first configuration message or the second configuration message, it can implement the routing in the first transmission direction and the second transmission direction, and there is no need for different transmission directions of services. Configure routes in different directions.
  • FIG. 1 is a structural example diagram of a first embodiment of a communication system provided by this application.
  • FIG. 2 is a flow chart of steps of a first embodiment of a route configuration method provided by the present application
  • FIG. 3 is an exemplary structural diagram of an embodiment of a target transmission path provided by the application.
  • Fig. 4 is a flow chart of the steps of the second embodiment of the route configuration method provided by the present application.
  • FIG. 5 is a flowchart of steps of a third embodiment of a route configuration method provided by the present application.
  • FIG. 6 is a schematic structural diagram of a second embodiment of the communication system provided by the present application.
  • FIG. 7 is a schematic structural diagram of an embodiment of a network device provided by the present application.
  • the present application provides a routing configuration method.
  • the following first describes the communication system to which the method provided by the present application is applied with reference to FIG. 1 .
  • the communication system 100 is an ASON as an example for illustration. It should be clearly stated that the specific network type of the communication system 100 is not limited in this application.
  • the communication network 100 may also be a general multi-protocol label Switching technology (generalized multi-protocol label switching, GMPLS) network.
  • GMPLS general multi-protocol label switching
  • the communication system 100 includes multiple transmission paths for transmitting services.
  • 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 that are connected in sequence. It can be known that the service output from the network device A is transmitted to the network device D via the network device B and the network device C in sequence.
  • FIG. 1 also includes a second transmission path, where the second transmission path includes a network device A, a network device E, a network device F, a network device G, and a network device D that are connected in sequence.
  • the description of the transmission path included in the communication system 100 in this embodiment is an optional example, which is not limited.
  • Each network device represents an independent hardware entity in the communication network.
  • each network device is a transport network device as an example for description.
  • the transmission network equipment may be an optical cross connect (OXC) equipment, an optical add drop multiplexer (OADM), a fixed optical add drop multiplexer (fixed optical add drop multiplexer, FOADM) or reconfigurable optical add drop multiplexer (ROADM).
  • OXC optical cross connect
  • OADM optical add drop multiplexer
  • FOADM fixed optical add drop multiplexer
  • ROADM reconfigurable optical add drop multiplexer
  • each network device in the first transmission path needs to configure routes.
  • the following describes the specific process of configuring routes for each network device in the first transmission path:
  • the network device E in order to realize the purpose that data can be transmitted on the first transmission path, the network device E needs to create a route to realize that the network device E transmits data from the network device E.
  • the data of A is sent to the network device F, and the purpose of sending the data from the network device F to the network device A can also be achieved by the network device E.
  • the data may be services, various messages conforming to the RSVP-TE protocol, and the like.
  • the network device E includes a port 1 and a port 2, and the ports are physical ports used to transmit data.
  • the port 1 is one of the multiple ports included in the network device E, and the port 1 and the network device A are connected by an optical fiber.
  • the port 2 is one of the multiple ports included in the network device E, and the port 1 and the port 2 are different.
  • Port 2 and network device F are connected by optical fiber.
  • Creating a route by network device E refers to creating a corresponding relationship between port 1 and port 2.
  • the network device E can implement the data interaction between the port 1 and the port 2 based on the corresponding relationship.
  • the network device E when the network device E obtains data from the network device A through the port 1, the network device E transmits the data to the port 2 based on the created route, so as to transmit the data to the network device F via the port 2. Similarly, when the network device E obtains 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, so as to transmit the data to the network device A via the port 1.
  • each network device located on the first transmission path has completed the routing configuration, and the service can be transmitted on the first transmission path.
  • network device A needs to send Path messages to network device B, network device C, and network device D sequentially through the first transmission path.
  • the Path message is a type of RSVP-TE protocol message.
  • Each network device that receives the Path message is used to configure routing according to the Path message. After the network device D completes the routing configuration according to the Path message, it transmits a response message to the network device A.
  • each network device included in the first transmission path configures routes in sequence according to the Path message. This increases the difficulty of configuring the first transmission path and reduces the efficiency of configuring the first transmission path. Furthermore, the performance of configuring the first transmission path deteriorates as the number of network devices included in the first transmission path increases.
  • the routing configuration method provided by the present application can effectively reduce the difficulty of configuring the transmission path and improve the efficiency of configuring the transmission path. It is avoided that the performance of the configuration transmission path is degraded due to an increase in the number of network devices included in the transmission path.
  • FIG. 2 is a flowchart of steps of the first embodiment of the route configuration method provided by 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.
  • the target transmission path includes network device A, network device E, network device F, network device G, and network device D in sequence as an example.
  • the first network device shown in this embodiment is network device A
  • the last network device is network device D.
  • the network device E, the network device F, and the network device G are intermediate network devices connected between the first network device A and the 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. After the network device that has received the forward configuration message completes the route configuration based on the forward configuration message, the target service can be transmitted via the network device.
  • the first network device A needs to configure the route between the first network device A and the intermediate network device E according to the forward configuration message, so that the target service can be transmitted between the first network device A and the intermediate network device E.
  • the communication system 100 shown in this application further includes a network management device 101 .
  • the network management device 101 is connected to each network device.
  • the network management device 101 can obtain forward configuration messages according to protocols such as open shortest path first (OSPF), or path computation element communication protocol (PCEP).
  • the forward configuration message includes at least the target identifier of the target service to be transmitted, and each network device included in the target transmission path for transmitting the target service.
  • OSPF open shortest path first
  • PCEP path computation element communication protocol
  • This embodiment does not limit the specific device through which the network management device obtains the forward configuration message.
  • the network management device may obtain the forward configuration message through its path computation element (path computation element, PCE) control device.
  • path computation element path computation element, PCE
  • This embodiment does not limit the form of the PCE control device, for example, the functions of the PCE control device may be partially or fully realized by software, and for example, the PCE control device may be a chip or an integrated circuit.
  • the network management device When the network management device acquires the forward configuration message, the network management device sends the forward configuration message to the first network device in the target transmission path. For example, the network management device 101 sends the forward configuration packet to the network device A.
  • the first network device has configured the PCE control device.
  • the first network device generates the forward configuration message through the PCE control device.
  • Any network device in the communication system acquires the forward configuration message based on its configured PCE control device, and sends the acquired forward configuration message to the first network device.
  • PCE control device For the description of the PCE control device acquiring the forward configuration message, please refer to Source 1 for details, and will not be repeated.
  • This embodiment is exemplified by taking the setting of the PCE control apparatus by the network management device as an example. If it is required that each network device in the target transmission path can execute the method shown in this embodiment to realize the configuration of the target transmission path, each network device is configured with an RSVP control apparatus.
  • the RSVP control device is used to realize 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 the RSVP control apparatus.
  • This embodiment does not limit the form of the RSVP control apparatus.
  • the functions of the RSVP control device may be partially or completely implemented by software, and for example, the RSVP control device may be a chip or an integrated circuit.
  • the PCE control device and the RSVP control device included in the first network device may be the same device.
  • the content of the forward configuration packet conforming to the RSVP-TE protocol is exemplarily described below. It should be clear that the description of the specific content of the forward configuration message in this embodiment may be an optional example, and is not limited, as long as each network device on the target transmission path can configure the target according to the forward configuration message. The routing of the transmission path is sufficient.
  • the forward configuration message includes at least: a target identifier of the target service, a forward path indication message and a first indication message.
  • the forward path indication message includes the identifiers of each network device in the target transmission path, and the port identifiers for configuring routes included in each network device corresponding to the identifier.
  • the forward path indication message is used to indicate the target transmission path.
  • the forward transmission direction sequentially includes network devices A, E, F, G, and D, and the connection relationship between network devices.
  • the forward transmission direction refers to the direction in which the transmission starting point is the first network device A, and the transmission is performed sequentially along each network device included in the target transmission path.
  • each network device When each network device receives the forward configuration message, it can determine the first port identifier and the second port corresponding to the identifier of the network device according to the forward path indication message included in the forward configuration message to configure the route between the first port and the second port inside the network device.
  • the first network device A when the first network device A obtains 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 first network device is the route between port A1 and port A2. It can be seen that if the first network device A acts as the initiator of the target service with the target identifier, when the first network device A receives the target service with the target identifier via the port A1, the first network device A will send the target service from the port A1. to port A2.
  • the last network device D is the initiator of the target service
  • the first network device A receives the target service with the target identifier via the port A2
  • the first network device A transmits the target service from the port A2 to the port A1.
  • the port A2 of the first network device A and the port E1 of the intermediate network device E are connected by optical fibers. It can be known that in the case where the route between the port A1 and the port A2 has been configured on the first network device, the route between the port A2 of the first network device and the port E1 of the intermediate network device E is also successfully configured.
  • the first network device transmits the target service from port A1 to port A2
  • port A2 and port E1 are connected by optical fiber
  • the target service via port A2 is transmitted to port E1 via the optical fiber, so as to realize Configuration of the route between the first network device A and the intermediate network device E.
  • the first indication message included in the forward configuration packet is used to indicate that the forward configuration packet is transmitted along the forward transmission direction in the target transmission path.
  • the forward configuration message shown in this embodiment is a type of RSVP-TE protocol message.
  • signaling flags and The service triplet message is used to generate the forward configuration message shown in this embodiment.
  • the signaling flag please refer to the relevant description shown in Table 2 below.
  • the service triplet message please refer to For details, please refer to the relevant descriptions shown in Table 3 below.
  • the newly added signaling tag includes a field "Type", which is used to indicate that the newly added message is a signaling tag.
  • Type the length of the value of this field may be a 16-bit (bit) bit value.
  • the field "Length” is used to indicate the length of the newly added signaling marker, and the length of the value of this field may be a value of 16 bits.
  • This field is used to indicate whether the signaling flag is transmitted in the forward transmission direction or in the reverse transmission direction. It can be seen that if the value of this field shown in this example is "0", then this field is the first indication message shown in this embodiment. It is used to indicate that the configuration packet including the signaling flag is a forward configuration packet.
  • 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".
  • the length of the value of this field may be a 16-bit value.
  • the field "Length" is used to indicate the length of the service triplet message, and the length of the value of this field may be a value of 16 bits.
  • the field "Source_Router_Id" is used to indicate the identifier of the first network device included in the configuration message including the service triplet message.
  • the length of the value of this field may be a 32-bit value.
  • the field "Dst_Router_Id" is used to indicate the identifier of the last network device included in the configuration message including the service triplet message.
  • the length of the value of this field may be a 32-bit value.
  • the field "Index" is used to indicate the identifier of the target service to be transmitted by the target transmission path.
  • the length of the value of this field may be a 32-bit value.
  • each intermediate network device included in the target transmission path has been set in the existing RSVP-TE protocol message.
  • the description of the forward path indication message shown above please refer to the description of the forward path indication message shown above.
  • the description of the specific format of the forward configuration message in this embodiment is an optional example, which is not limited, as long as the forward configuration message It is sufficient to include at least 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 that is adjacent to the first network device and connected by an optical fiber among the multiple intermediate network devices included in the target transmission path.
  • the first intermediate network device is a network device E connected to the first network device A through an optical fiber.
  • Step 203 The final network device configures a 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 (ie, the network device D shown in FIG. 3 ).
  • the reverse configuration packet shown in this embodiment is used to instruct each network device in the target transmission path to configure a route, and the network device that has received the reverse configuration packet completes routing based on the reverse configuration packet. After the configuration, the target service is transmitted via the network device.
  • the network device D receives the forward configuration message.
  • the forward configuration message please refer to step 201 for details, and details are not repeated.
  • the last network device D may receive a forward configuration message from the network management device, or the last network device may receive a forward configuration message from the first network device A, or the last network device may receive a forward configuration message from any communication network device.
  • the forward configuration message sent by a network device.
  • the last network device D When the last network device D receives the forward configuration message, the last network device D generates a reverse configuration message.
  • the reverse configuration message includes a target identifier of the target service, a reverse path indication message and a second indication message.
  • the last network device D inverts the forward path indication message included in the received forward configuration message to obtain the reverse path indication message, and the reverse path indication message is performed as shown in Table 4 below. illustrate:
  • the reverse path indication information is generated by inverting the forward path indication message, so that the first network device (ie the first network device) in the forward path indication message is generated.
  • the last network device (ie, the last network device D) in the forward path indication message is reversed to the first network device in the reverse path indication message, and so on.
  • the reverse path indication message is used to indicate the target transmission path, and along the reverse transmission direction, it sequentially includes the connection relationships of network devices D, G, F, E and A, wherein the reverse transmission direction Opposite of the forward transmission direction.
  • each network device receives the reverse configuration message, according to the reverse path indication message included in the reverse configuration message, determine the identifier of the first port and the identifier of the second port corresponding to the identifier of the network device. ID, so as to establish a route between the first port and the second port inside the network device.
  • ID so as to establish a route between the first port and the second port inside the network device.
  • the second indication message included in the reverse configuration packet is used to indicate that the reverse configuration packet is transmitted along the reverse transmission direction in the target transmission path.
  • the reverse transmission direction means that the reverse configuration message takes the last network device D as the transmission starting point, and is sequentially transmitted through each network device included in the target transmission path.
  • the last network device D receives the forward path indication message and the target identifier of the target service.
  • 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.
  • the final network device generates the reverse configuration message according to the forward path indication message and the target identifier.
  • 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.
  • the final network device obtains the reverse path indication message for transmitting the target service according to protocols such as OSPF or PCEP, and sends the reverse path indication message to the network management device.
  • the network management device determines whether the reverse path indication message and the forward path indication message include the same network devices (for example, both include network devices A, E, F, G and D), the network management device sends a success indication message to the last network device.
  • the last network device configures the reverse configuration message of the reverse path indication message according to the success indication message.
  • the last network device can also send the reverse path indication message to the first network device or any network device included in the communication system, and the network device determines the reverse path indication message and the forward path indication message. Whether the included network devices are the same.
  • This embodiment does not limit the execution sequence between step 202 and step 203 .
  • Step 204 The last network device sends a reverse configuration message to the second intermediate network device.
  • the second intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the last network device D and connected by an optical fiber among the multiple intermediate network devices included in the target transmission path.
  • the second intermediate network device is a network device G that is connected to the last network device D through an optical fiber.
  • This embodiment does not limit the execution sequence between step 202 and step 204 .
  • Step 205 The first intermediate network device receives the forward configuration message from the first network device.
  • Step 206 The first intermediate network device configures a route according to the forward configuration message.
  • 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 as an example. Exemplary illustration.
  • the first intermediate network device E When the first intermediate network device E receives the forward configuration packet, the first intermediate network device first needs to determine whether to configure a route according to the received forward configuration packet, and the specific determination process is as follows:
  • the first intermediate network device parses out the target identifier of the target service included in the forward configuration packet, and further determines 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 been configured with a routing table, where the routing table includes a target identifier and a port identifier for transmitting the target service with the target identifier.
  • the first intermediate network device has configured the route of the target service with the target identifier. If not, it means that the first intermediate network device is not configured with the route of the target service with the target identifier.
  • the first intermediate network device is not configured with the route of the target service with the target identifier as an example for illustrative description.
  • the first intermediate network device determines the first intermediate network device according to the forward path indication message included in the forward configuration packet
  • the identifier of the first port corresponding to E is E1
  • the identifier of the second port is E2.
  • the first intermediate network device E configures the route between the ports E1 and E2, so as to realize the route between the first intermediate network device E and adjacent network devices (ie, 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 the target identifier, the corresponding relationship between the port E1 and the port E2.
  • the first network device A acts as the initiator of the target service with the target identifier
  • the first intermediate network device E searches the The routing table transmits the target service from port E1 to port E2. Therefore, the target service can be transmitted to the intermediate network device F via the optical fiber connected between the port E2 and the port F1 of the intermediate network device F.
  • the first intermediate network device E searches the routing table to send the target service from the target service.
  • the target service of port E2 is transmitted to port E1. Therefore, the target service can be transmitted to the first network device A via the optical fiber connected between the port E1 and the port A2 of the first network device A.
  • This embodiment is exemplified by taking the number of the first intermediate network device as one as an example, and in other examples, the number of the first intermediate network node may be multiple.
  • the description of the specific process of configuring the route by each of the first network devices please refer to the description of the process of configuring the route by the first network device E shown in this embodiment, and details are not repeated.
  • Step 207 The first intermediate network device sends a forward configuration message to the third intermediate network device.
  • the third intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the first intermediate network device and connected by an optical fiber among the plurality of intermediate network devices included in the target transmission path.
  • 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.
  • This embodiment does not limit the execution sequence between step 205 and step 208 .
  • Step 209 The second intermediate network device configures a route according to the reverse configuration message.
  • the second intermediate network device G only receives the reverse configuration message from the last network device D, but has not received the forward configuration message from the first network device A as an example Exemplary description.
  • the second intermediate network device G When the second intermediate network device G receives the reverse configuration message, the second intermediate network device G first determines whether to configure the route according to the received reverse configuration message, and the specific determination process is as follows:
  • the second intermediate network device G parses out the target identifier of the target service included in the reverse configuration packet, 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 been configured with a routing table, where the routing table includes a target identifier and a port identifier for transmitting the target service with the target identifier.
  • the second intermediate network device has configured the route of the target service with the target identifier. If not, it means that the second intermediate network device is not configured with the route of the target service with the target identifier.
  • This embodiment is exemplified by taking as an example that the second intermediate network device is not configured with the route of the target service with the target identifier.
  • the second intermediate network device determines the second intermediate network device according to the reverse path indication message included in the reverse configuration packet
  • the identifier of the first port corresponding to G is G1
  • the identifier of the second port is G2.
  • the second intermediate network device G configures the route between the port G1 and the port G2, so as to realize the route between the second intermediate network device G and adjacent network devices (ie, 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 the target identifier, the corresponding relationship between the port G1 and the port G2.
  • the second intermediate network device G receives the target service with the target identifier from the intermediate network device F via the port G1
  • the second intermediate network device G The network device G transmits the target service from the port G1 to the port G2 by querying the routing table. Therefore, the target service from the intermediate network device F can be transmitted to the last network device D via the optical fiber connected between the port G2 and the last network device D.
  • the second intermediate network device G will query the routing table to send the target service from the target service.
  • the target traffic of port G2 is transmitted to port G1. Therefore, the target service from the last network device D can be transmitted to the third intermediate network device F via the optical fiber connected between the port G1 and the port F2 of the third intermediate network device F.
  • the number of the second intermediate network device is only one example for illustrative description, and in other examples, the number of the second intermediate network node may be multiple.
  • the description of the specific process of configuring the route by each second intermediate network device please refer to the description of the process of configuring the route by the second intermediate network device G shown in this embodiment, and details are not repeated.
  • Step 210 The second intermediate network device sends a reverse configuration packet to the third intermediate network device.
  • This embodiment does not limit the execution sequence between step 207 and step 210 .
  • 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 a route according to the forward configuration message or the reverse configuration message.
  • the first intermediate network device will send a forward configuration packet to the third intermediate network device, and the second intermediate network device will send a reverse configuration message to the third intermediate network device.
  • the third intermediate network device F first receives the forward configuration message including the target identifier, and then receives the reverse configuration message including the target identifier.
  • the third intermediate network device F configures the route according to the forward configuration message.
  • the specific configuration process please refer to the configuration process of the first intermediate network device according to the forward configuration message shown in step 206. , and do not go into details.
  • the third intermediate network device F receives the reverse configuration packet after the third intermediate network device F has completed the routing configuration according to the forward configuration packet, the third intermediate network device F parses the received Reverse configuration message. The third intermediate network device judges whether the forward configuration message and the reverse configuration message satisfy a preset condition.
  • the preset condition is that both the forward configuration message and the reverse configuration message are used to configure the route of the target transmission path. If yes, it means that the route to be configured in the reverse configuration packet has been configured according to the forward configuration packet. If not, it means that the route to be configured in the reverse configuration message has not been configured yet.
  • the specific judgment process is as follows:
  • the third intermediate network device parses the target identifier and the reverse path indication message included in the reverse configuration packet.
  • the third intermediate network device determines whether the forward configuration message and the reverse configuration message satisfy the first preset sub-condition.
  • the first preset sub-condition is that both the forward configuration message and the reverse configuration message include the target identifier, and the forward configuration message includes the same as that indicated by the reverse path indication message.
  • the forward path indication message is transmitted in the opposite direction.
  • the third intermediate network device determines that the forward configuration packet and the reverse configuration packet satisfy the first preset sub-condition
  • the third intermediate network device further determines that the forward configuration packet whether the message and the reverse configuration message satisfy the second preset sub-condition.
  • the second preset sub-condition is that both the forward configuration message and the reverse configuration message are used to configure the route of the target transmission path.
  • the second preset sub-condition 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.
  • the forward path indication message and the reverse path indication message both include the identifier of each network device in the target transmission path, and the identifiers included in each network device corresponding to the identifier.
  • Port ID for configuring routing It can be seen that the same forward path indication message and reverse path indication message shown in this embodiment means that the identifiers of each network device included in the forward path indication message and the reverse path indication message are the same, and the identifiers corresponding to the identifiers are the same.
  • the port identifiers included in each network device for configuring routes are also the same.
  • the forward path indication message and the reverse path indication message both include the identifiers of network devices A, E, F, G, and D, and the The port identifier used to configure the route indicates that the forward configuration message and the reverse configuration message satisfy the second preset sub-condition.
  • the third intermediate network device determines that the forward configuration packet and the reverse configuration packet satisfy the first preset sub-condition and the second preset sub-condition.
  • the third intermediate network device determines that the forward configuration packet and the reverse configuration packet satisfy the first preset sub-condition and the second preset sub-condition.
  • the forward configuration packets and reverse configuration packets meet the preset conditions.
  • the third intermediate network device determines that the route to be configured in the reverse configuration message has been configured by the third intermediate network device according to the forward configuration message.
  • the third intermediate network device first parses the target identifier and the reverse path indication message of the reverse configuration message, and then further parses the target identifier and the reverse path indication message when the target identifier and the reverse path indication message satisfy the first preset sub-condition. Parse the reverse configuration packet to obtain the reverse path indication message. If the target identifier and the reverse path indication message do not meet the first preset sub-conditions, it is not necessary to further parse the reverse configuration message. It can be seen that the amount of message parsing is effectively reduced, and the occupation of system resources is reduced.
  • the reverse configuration packet can also be parsed at one time, so as to determine whether the reverse configuration packet and the forward configuration packet meet the preset conditions.
  • the third intermediate network device when the third intermediate network device determines that the route to be configured in the reverse configuration message has been configured by the third intermediate network device according to the forward configuration message, the third intermediate network device may end the The transmission of the reverse configuration message.
  • the configured routing table of the third intermediate network device shows that the reverse configuration packet received at port F2 of the third network device F can be transmitted to port F1, and then passed through the third intermediate network device F.
  • the optical fiber connected between the network device F and the second intermediate network device E is transmitted to the second intermediate network device E.
  • both the first network device A and the first intermediate network device E are configured according to the forward configuration packet, so there is no need to send the reverse configuration packet to the second intermediate network device. E and the first network device A send.
  • the third intermediate network device ends the transmission of the reverse configuration packet, and the third network device F does not need to transmit the reverse configuration packet to port F1 again. , which effectively avoids the processing of the reverse configuration packet by the first network device A and the first intermediate network device E.
  • the third intermediate network device may also transmit the reverse configuration message to the first 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.
  • the third intermediate network device F first receives the reverse configuration message including the target identifier, and then receives the forward configuration message including the target identifier.
  • the third intermediate network device F configures the route according to the reverse configuration message.
  • the specific configuration process please refer to the configuration process of the second intermediate network device according to the reverse configuration message shown in step 209. , and do not go into details.
  • the third intermediate network device F After the third intermediate network device F has completed the routing configuration according to the reverse configuration packet, and the third intermediate network device receives the forward configuration packet again, the third intermediate network device determines the forward configuration packet.
  • the specific judgment process please refer to the description of the preset condition shown in the above case 1, and details are not repeated.
  • Step 213 The third intermediate network device sends a forward configuration message to the second network device.
  • the third intermediate network device regardless of the order in which the third intermediate network device receives the forward configuration packet and the reverse configuration packet, the third intermediate network device sends a forward configuration packet to the second intermediate network device according to the configured route. arts.
  • Step 214 The second intermediate network device sends a forward configuration message to the last network device.
  • the reverse configuration packet is received first, and then the forward configuration packet is received.
  • the forward configuration packet is received.
  • the specific processing process please refer to Case 2 of step 212. Specifically, in this embodiment, it is not Do repeat.
  • the second intermediate network device may send the forward configuration message to the end network device according to the route configured in the reverse configuration message.
  • Step 215 The last network device sends a response message to the first network device.
  • the last network device determines that in the target transmission path, the route between two network devices that are adjacent at any position and connected by optical fibers has been configured. Then the last network device sends a response message to the first network device through the target transmission path. The response message is used to indicate to the first network device that in the target transmission path, the route between two network devices that are adjacent in any position and connected by an optical fiber has been configured.
  • the last network device D sends the response message to the first network device A through network devices G, F and E in sequence.
  • Step 216 The last network device transmits a deletion instruction message to the target transmission path.
  • the final network device may retain the routing table configured on the data plane for transmitting the target service.
  • the last network device deletes the reverse configuration packet on the control plane.
  • the terminal network device may delete the reverse configuration packet when receiving the forward configuration packet.
  • the terminal network device may delete the reverse configuration message when receiving the reverse configuration success indication message. For example, after the third intermediate network device F determines that the routing configuration has been completed according to the forward configuration message, any network device between the first network device and the third intermediate network device F does not need to report the route according to the reverse configuration message. In the case that the route is configured to transmit the target service, the third intermediate network device transmits the reverse configuration success indication message to the end network device D.
  • the end-network device transmits the deletion instruction message to the target transmission path.
  • the deletion instruction message includes at least a target identifier, a deletion instruction and a reverse path instruction message.
  • the network device in the target transmission path acquires a reverse configuration message including the target identifier and the reverse path indication message when receiving the deletion instruction message.
  • the network device deletes the reverse configuration message on the control plane according to the deletion instruction.
  • 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 the transmission of 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.
  • the third intermediate network device F then ends the transmission of the deletion instruction message, thereby preventing the first network device A and the first intermediate network device E that have not received the reverse configuration message from processing the deletion instruction message.
  • the network device that receives the deletion instruction message only deletes the reverse configuration message on the control plane, and retains the routing table configured on the data plane. Therefore, the transmission of the target service can be realized based on the routing table.
  • a route of the same target transmission path is configured through two configuration packets that are concurrently transmitted in both directions.
  • the two-way concurrent and bidirectional transmission specifically means that one forward configuration packet from the first network device is transmitted in the forward transmission direction, and the other reverse configuration packet from the last network device is transmitted in the reverse transmission direction.
  • the route of the same target transmission path is configured through two concurrent forward configuration packets and reverse configuration packets transmitted in both directions, which effectively improves the efficiency of configuring the route of the target transmission path.
  • the target transmission path includes 10 network devices connected in sequence. If the existing solution is adopted, the packets used for configuring the route from the first network device need to be transmitted in sequence among 10 network devices, so that the 10 network devices can configure routes in sequence.
  • 5 network devices among the 10 network devices included in the target transmission path can configure routes based on forward configuration packets, and the remaining 5 network devices can configure routes according to reverse configuration packets. Configure routing.
  • T duration is required for configuration, and this embodiment only requires T/2 duration.
  • any network device can implement routing in both forward and reverse directions regardless of whether the route is configured according to the forward configuration message or the reverse configuration message, and there is no need to configure different routes for different service transmission directions. route in the direction.
  • the intermediate network device F has configured a route from port F1 to port F2 for the target service. Then, if the target service is transmitted in the forward transmission direction, after receiving the target service via the port F1, the intermediate network device F can transmit the target service to the port F2, and then transmit the target service to the intermediate network device G via the port F2. If the target service is transmitted in the reverse transmission direction, after receiving the target service via the port F2, the intermediate network device F transmits the target service to the port F1, and then transmits the target service to the intermediate network device E via the port F1.
  • the embodiment shown in FIG. 2 illustrates how to configure the route of the target transmission path in order to realize the transmission of the target service in the target transmission path.
  • the embodiment shown in FIG. 4 illustrates how to ensure the normal transmission of the target service if the initial transmission path for transmitting the target service fails.
  • Step 401 The first network device receives a fault indication message.
  • the fault indication message shown in this embodiment is a message conforming to the RSVP protocol, and the fault indication message is used to indicate that the initial transmission path for transmitting the target service is faulty. It can be seen that when the first network device receives the fault indication message, it is determined that the initial transmission path is faulty, and the target service cannot be continuously transmitted.
  • 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 as an example to illustrate.
  • the network device B if the network device B has not yet received a message from the network device C when the preset time period is exceeded, it can be determined that a fiber break occurs between the network device B and the network device C. It should be clearly stated that, in this embodiment, the description of the situation in which the network device B determines that a fiber disconnection occurs between the network device B and the network device C is an optional example, which is not limited.
  • the network device B generates the fault indication message, where the fault indication message includes the target identifier and the identifier of the initial transmission path.
  • the network device B has multiple ports, for example, ports B1, B2, . . . BN, and the specific value of N is not limited in this embodiment. If port B1 of network device B is connected to network device C through an optical fiber, and network device B determines that there is a fiber break between network device B and network device C, network device B obtains the target identifier of the target service via port B1. That is, when the optical fiber between the network device B and the network device C is disconnected, the target service with the target identifier cannot be normally transmitted between the network device B and the network device C.
  • the fault shown in this embodiment is taken as an example where the optical fiber connected between the network device B and the network device C is broken.
  • a fiber break occurs between two connected network devices.
  • a fiber break occurs between network device A and network device B.
  • the failure shown in this embodiment may also be a failure of any network device, etc., which is not specifically limited in this embodiment.
  • Step 402 the last network device receives the fault indication message.
  • the failure indication message is sent by the network device B in the initial transmission path to the last network device D.
  • the first network device may forward the fault indication message to the last network device.
  • 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.
  • This embodiment does not limit the execution sequence between step 401 and step 402 .
  • Step 403 The first network device configures a route according to the forward configuration message.
  • the forward configuration message shown in this embodiment is used to configure the route of the target transmission path, where the target transmission path is used to transmit the target service. That is, when the initial transmission path for transmitting the target service fails, the path for transmitting the target service can be switched from the initial transmission path to the target transmission path.
  • the target transmission path please refer to the embodiment shown in FIG. 2 for details, and details are not repeated in this embodiment.
  • This embodiment takes the generation of the forward configuration packet by the first network device as an example.
  • the first network device obtains the fault indication message, according to the target identifier and the identifier of the initial transmission path included in the fault indication message, it can be known that the initial transmission path used for transmitting the target service has failed, and the target service cannot be continuously transmitted.
  • the first network device can obtain the forward configuration packet according to protocols such as OSPF or PCEP.
  • OSPF operating protocol
  • PCEP PCEP
  • the first network device sends the received fault indication message to the network management device, or the network device B directly sends the fault indication message to the network management device.
  • the process of configuring the forward configuration message on the network management device see the process of configuring the forward configuration message on the first network device, and details are not repeated here.
  • step 201 For the description of the specific process of configuring the route according to the forward configuration message by the first network device, please refer to step 201 for details, and details will not be repeated.
  • Step 404 The first network device sends a forward configuration message to the first intermediate network device.
  • step 404 For the description of the specific execution process of step 404 shown in this embodiment, please refer to the description of step 202 shown in FIG. 2 for details, and details are not repeated.
  • Step 405 The final network device configures a route according to the reverse configuration message.
  • this embodiment is exemplified by taking the last network device configuring the reverse configuration message according to the received fault indication message as an example.
  • the last network device configuring the reverse configuration message according to the received fault indication message.
  • the network management device can also obtain the reverse configuration message.
  • the reverse configuration message For a specific process, please refer to step 203 shown in FIG. 2 , and details are not repeated.
  • step 203 shown in FIG. 2 For the specific process of configuring the route by the network device according to the reverse configuration message, please refer to step 203 shown in FIG. 2 for details, and details will not be repeated.
  • 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 a route according to the forward configuration message.
  • Step 409 The first intermediate network device sends a forward configuration packet 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 packet 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 a 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 last network device.
  • Step 417 The last network device sends a response message to the first network device.
  • Step 418 The last network device transmits a deletion instruction message to the target transmission path.
  • step 406 to step 418 shown in this embodiment please refer to step 204 to step 216 shown in FIG. 2 for details, and the specific execution process will not be repeated.
  • the communication system has the function of automatic recovery from failure.
  • the first network device reacquires a target transmission path capable of transmitting the target service based on the failure indication message from the initial transmission path.
  • the first network device transmits a forward configuration packet to the target transmission path to configure the route.
  • the final network device will also acquire the fault indication message from the initial transmission path, and then send a reverse configuration packet to the target transmission path to configure the route.
  • the route of the same target transmission path can be configured through two configuration packets concurrently transmitted in both directions, which effectively improves the efficiency of configuring the route of the target transmission path.
  • the route of the same target transmission path is configured through two configuration packets that are concurrently transmitted in both directions, in a scenario where the number of network devices included in the target transmission path increases, the route can be effectively to reduce the duration of the route to configure the destination transport path. It is avoided that the performance of the transmission path for reconfiguring the target service is degraded due to the increase in the number of network devices included in the target transmission path.
  • Step 501 The network management device receives a fault indication message.
  • step 401 shown in FIG. 4 for details, and details are not repeated in this embodiment.
  • the initial transmission path for transmitting the target service includes network devices A, B, C and D.
  • the network device B determines that a fiber disconnection 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.
  • the fault event shown in this embodiment is a fiber break between network device B and network device C in the initial transmission path.
  • the network management device determines the target transmission path.
  • the target transmission path is a path for transmitting the target service, and the target transmission path includes at least one intermediate network device in the initial transmission path. It can be seen that the multiple intermediate network devices included in the target transmission path partially overlap with the multiple intermediate network devices included in the initial transmission path.
  • This embodiment does not limit the number of intermediate network devices on which the initial transmission path and the target transmission path overlap, as long as the optical fibers connected between any two adjacent network devices included in the target transmission path are not specified in the fault indication message.
  • the indicated fiber with a broken fiber can be used.
  • the initial transmission path includes network devices A, B, C and D.
  • the target transmission paths acquired by the network management device include network devices A, B, E, F, G, C, and D. It can be seen that in the target transmission path, the network device B and the network device C are no longer directly connected through the optical fiber 600 with the broken fiber, thus ensuring that the target transmission path can transmit the target service normally.
  • the network management device determines, according to the fault indication message, that the optical fiber between network device A and network device B is in a normal state, and the optical fiber between network device C and network device D is in a normal state. In order to improve the efficiency of rerouting configuration for the target service, it is not necessary to reconfigure the route between network device A and network device B, and the route between network device C and network device D again.
  • the network management device determines the segment transmission paths included in the target transmission path.
  • the segment transmission path is a path in the target transmission path that needs to be routed.
  • the segment transmission path includes the first network device and the last network device connected in sequence, and at least one intermediate network device connected between the first network device and the last network device.
  • the first network device is the source network device, that is, the first network device serves as the initiator of the target service transmitted by the target transmission path, and the last network device is the responder of the target service.
  • the last network device is the sink network device, that is, the last network device is the initiator of the target service transmitted by the target transmission path, and the first network device is the responder of the target service.
  • the first network device shown in this embodiment is the first network device in the segment transmission path
  • the last network device is the last network device in the segment transmission path.
  • the target transmission path includes network devices A, B, E, F, G, C, and D
  • the segment transmission path includes network devices B, E, F, G, and C. That is, the network device A is the source network device of the responder or the initiator of the target service, and the network device D is the initiator of the target service or the sink network device of the responder.
  • the first network device is network device B, and the last network device is network device D.
  • the configuration of the target transmission path is completed.
  • this embodiment is exemplified by the network management device determining the segment transmission path according to the fault indication message, and sending a forward configuration message to the first network device of the segment transmission path as an example.
  • the source network device that is the responder or initiator of the target service can also send the forward configuration message to the head network device of the segment transmission path.
  • the source network device A in the target transmission path generates a forward configuration packet according to the fault indication information.
  • network device B is a network device whose initial transmission path and target transmission path overlap, network device A does not need to configure a route for the route between network device A and network device B according to the forward configuration message.
  • Network device B serves as the first network device and is the first network device in the segment transmission path that configures the route according to the forward configuration message.
  • the forward configuration message shown in this embodiment is used for transmission along the forward transmission direction of the segment transmission path.
  • Step 503 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 segment transmission path, that is, the network device B.
  • the route is configured according to the forward configuration message, so that the target service can be exchanged between the network device B and the network device E.
  • step 201 shown in FIG. 2 for the description of the specific process for the first network device to configure the route according to the forward configuration message, and details are not repeated in this embodiment.
  • Step 504 The first network device sends a forward configuration message to the first intermediate network device.
  • the first intermediate network device is an intermediate network device E as an example for illustrative description.
  • step 504 For the description of the specific execution process of step 504 shown in this embodiment, please refer to step 202 shown in FIG. 2 for details, and the specific execution process will not be repeated.
  • Step 505 The final network device configures a route according to the reverse configuration message.
  • the last network device shown in this embodiment is the last network device in the segment transmission path. That is, the last network device shown in this embodiment is the network device C in the target transmission path.
  • step 203 shown in FIG. 2 For the description of the specific content of the reverse configuration packet shown in this embodiment, please refer to step 203 shown in FIG. 2 for details, and details are not repeated.
  • This embodiment describes several optional ways for the last network device, which is the last network device in the segment recovery path, to obtain reverse configuration packets:
  • the last network device can receive the forward configuration message from the network management device or the source network device. Finally, the network device generates a reverse configuration message according to the forward configuration.
  • the reverse configuration message is used for transmission along the reverse transmission direction of the segment transmission path. The direction in which each network device transmits. And in the segment transfer path, the forward transfer direction and the reverse transfer direction are opposite.
  • step 203 in the embodiment shown in FIG. 2 , and details are not repeated.
  • the end network device receives the forward path indication message of the segment transmission path and the target identifier of the target service.
  • the network management device or the first network device shown in this embodiment may send the 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 that the segment transmission path, along the forward transmission direction, sequentially includes the connection relationships of network devices B, E, F, G, and C.
  • the last network device generates a reverse configuration message according to the forward path indication message of the segment transmission path.
  • a reverse configuration message for the specific process, please refer to step 203 shown in FIG. 2 for details, and details are not repeated.
  • the network management device or the first network device may directly send the reverse configuration message to the last network device.
  • the final network device can obtain the reverse configuration message according to protocols such as OSPF or PCEP.
  • protocols such as OSPF or PCEP.
  • Step 506 The last network device sends a reverse configuration message to the second intermediate network device.
  • the second intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the last network device C and connected by an optical fiber among the plurality of intermediate network devices included in the segment transmission path.
  • the second intermediate network device is a network device G that is connected to the last network device C through an optical fiber.
  • Step 507 The first intermediate network device receives the forward configuration message from the first network device.
  • Step 508 The first intermediate network device configures a route according to the forward configuration message.
  • step 507 to step 508 shown in this embodiment please refer to step 205 to step 206 shown in FIG. 2 , and details are not repeated.
  • Step 509 The first intermediate network device sends a forward configuration packet to the third intermediate network device.
  • the third intermediate network device shown in this embodiment is an intermediate network device that 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.
  • 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 a route according to the reverse configuration message.
  • Step 512 The second intermediate network device sends a reverse configuration packet 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 a 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 last network device.
  • Step 517 The last network device sends a response message to the first network device.
  • Step 518 The last network device transmits a deletion instruction message to the target transmission path.
  • steps 510 to 518 shown in this embodiment please refer to steps 208 to 216 shown in FIG. 2 for details, and details are not repeated.
  • the target transmission path can realize the transmission of the target service.
  • 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.
  • it is not necessary to reconfigure the routes of all network devices included in the target transmission path and only the routes of the network devices included in the segment transmission paths included in the target transmission path need to be configured.
  • There is no need to configure routes for all network devices included in the target transmission path which reduces the number of network devices to be configured with routes, and effectively improves the efficiency of rerouting the target service.
  • the number of network devices included in the target transmission path increases, the amount of data 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 this application will be 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, the memory 702 and the optical transceiver 703 are interconnected by wires.
  • the memory 702 is used for storing program instructions and data.
  • the memory 702 stores the program instructions and data that are executed by the intermediate network device in the steps shown in FIG. 2 , FIG. 4 and FIG. 5 .
  • the optical transceiver 701 and the optical transceiver 703 are used to perform the method steps shown in any of the embodiments of FIG. 2 , FIG. 4 and FIG. 5 .
  • the optical transceiver 703 is used to execute step 205 and step 207 .
  • the processor 701 is configured to execute step 206 .
  • optical transceiver 703 is used in step 407 and step 409 .
  • the processor 701 is configured to perform step 408 .
  • optical transceiver 703 is used in step 507 and step 509 .
  • the processor 701 is configured to perform step 508 .
  • the optical transceiver 703 is used to perform step 208 and step 210 .
  • the processor 701 is configured to execute step 209 .
  • optical transceiver 703 is used in step 410 and step 412 .
  • the processor 701 is configured to execute step 411 .
  • optical transceiver 703 is used in step 510 and step 512 .
  • the processor 701 is configured to execute step 511 .
  • the optical transceiver 703 is used to execute step 211 and step 213 .
  • the processor 701 is configured to execute step 212 .
  • optical transceiver 703 is used for step 413 and step 415 .
  • the processor 701 is used to perform step 414 .
  • optical transceiver 703 is used in step 513 and step 515 .
  • the processor 701 is configured to perform step 514 .
  • the optical transceiver 703 is used to execute step 204 , step 215 and step 216 .
  • the processor 701 is configured to execute step 203 .
  • the optical transceiver 703 is used in steps 402 , 406 , 417 and 418 .
  • the processor 701 is configured to execute step 405 .
  • the optical transceiver 703 is used in steps 506 , 517 and 518 .
  • the processor 701 is configured to execute step 505 .
  • the embodiments of the present application also provide a digital processing chip.
  • the digital processing chip integrates a circuit and one or more interfaces for realizing the functions of the above-mentioned processor 701 .
  • the digital processing chip can perform the method steps of any one or more of the foregoing embodiments.
  • no memory is integrated in the digital processing chip, it can be connected with an external memory through an interface.
  • the digital processing chip implements any of the above-mentioned embodiments in FIG. 2 , FIG. 4 and FIG. 5 according to the program code stored in the external memory.
  • the above-mentioned 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 (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array

Landscapes

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

Abstract

Embodiments of the present application disclose a route configuration method, a network device, a communication system and a storage medium, which are used for improving the efficiency in configuring a route of a transmission path. The method is applied to a target transmission path. The target transmission path comprises a first network device, at least one intermediate network device and a last network device connected sequentially. Said method comprises: an intermediate network device receiving a first configuration message, the first configuration message being transmitted along a first transmission direction in a target transmission path; the intermediate network device configuring a route between the intermediate network device and adjacent network devices according to the first configuration message; the intermediate network device receiving a second configuration message, the second configuration message being transmitted along a second transmission direction in the target transmission path, the first transmission direction being opposite to the second transmission direction; and if the intermediate network device determines that the first configuration message and the second configuration message satisfy a preset condition, the intermediate network device determining to no longer configure the route according to the second configuration message.

Description

一种路由的配置方法、网络设备、通信系统以及存储介质A routing configuration method, network device, communication system and storage medium
本申请要求于2020年10月13日提交中国国家知识产权局、申请号为202011090902.0、申请名称为“一种路由的配置方法、网络设备、通信系统以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 13, 2020 with the State Intellectual Property Office of China, the application number is 202011090902.0, and the application name is "a routing configuration method, network equipment, communication system and storage medium", The entire contents of which are incorporated herein by reference.
技术领域technical field
本发明涉及光纤通信领域,尤其涉及一种路由的配置方法、网络设备、通信系统以及存储介质。The present invention relates to the field of optical fiber communication, in particular to a routing configuration method, network equipment, communication system and storage medium.
背景技术Background technique
自动交换光网络(automatically switched optical network,ASON)基本已覆盖城域、核心骨干波分网络。ASON可通过资源预留协议流量工程(resource reservation protocol traffic engineering,RSVP-TE)协议,自动建立用于传输业务的传输路径。The automatically switched optical network (ASON) has basically covered the metro and core backbone WDM networks. ASON can automatically establish a transmission path for transmitting services through the 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 a path message to each network device included in the transmission path along the transmission path. Each network device establishes a route based on the received path message until the path message is transmitted to the sink network device included in the transmission path. The sink network device sends a response message to the source network device through the transmission path. When the source network device receives the response message, the transmission path configuration is complete.
可见,若传输路径所包括的网络设备的数量比较多的情况下,传输路径所包括的多个网络设备需要逐一根据路径消息配置路由,减少了配置该传输路径的效率。It can be seen that if the number of network devices included in the transmission path is relatively large, the multiple 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.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种路由的配置方法、网络设备、通信系统以及存储介质,其用于提高配置传输路径的路由的效率。Embodiments of the present application provide a routing configuration method, a network device, a communication system, and a storage medium, which are used to improve the routing efficiency of configuring transmission paths.
第一方面,本发明实施例提供了一种路由的配置方法,该方法应用于目标传输路径,该目标传输路径包括依次连接的首网络设备、至少一个中间网络设备以及末网络设备,该方法包括:中间网络设备接收第一配置报文,第一配置报文在该目标传输路径中沿第一传输方向传输;该中间网络设备根据该第一配置报文配置该中间网络设备和相邻网络设备之间的路由,在该目标传输路径中,该中间网络设备和该相邻网络设备位置相邻且相互连接;该中间网络设备接收第二配置报文,该第二配置报文在该目标传输路径中沿第二传输方向传输,该第一传输方向和该第二传输方向相反;若该中间网络设备确定该第一配置报文和该第二配置报文满足预设条件,则该中间网络设备确定不再根据该第二配置报文配置路由,该预设条件为该第一配置报文和该第二配置报文均用于配置该目标传输路径的路由,且该目标传输路径用于传输目标业务。In a first aspect, an embodiment of the present invention provides a method for configuring a route. 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 connected in sequence, and the method includes : The intermediate network device receives the first configuration packet, and the first configuration packet is transmitted along the first transmission direction in the target transmission path; the intermediate network device configures the intermediate network device and adjacent network devices according to the first configuration packet In the target transmission path, the intermediate network device and the adjacent network device are located adjacent to each other and are connected to each other; the intermediate network device receives the second configuration packet, and the second configuration packet is transmitted at the target The path is transmitted along the second transmission direction, and the first transmission direction is opposite to the second transmission direction; if the intermediate network device determines that the first configuration packet and the second configuration packet meet the preset conditions, the intermediate network The device determines to no longer configure a route according to the second configuration message, and the preset condition is that both the first configuration message and the second configuration message are used to configure the route of the target transmission path, and the target transmission path is used for Transfer the target business.
可见,中间网络设备通过第一配置报文和第二配置报文中的一个配置路由,从而使得目标传输路径能够通过两路并发且沿双向传输的配置报文配置路由,有效的提高了配置目标传输路径的路由的效率。其中,两路并发且沿双向传输具体是指,一路配置报文来自首网络设备,经由目标传输路径向末网络设备传输,另一路配置报文来自末网络设备,经由 该目标传输路径向首网络设备传输。It can be seen that the intermediate network device configures the route through one of the first configuration packet and the second configuration packet, so that the target transmission path can configure the route through the configuration packets that are concurrently and transmitted in both directions, which effectively improves the configuration target. Efficiency of routing of transmission paths. Among them, the two-way concurrent and bidirectional transmission specifically means that one configuration packet comes from the first network device and is transmitted to the last network device through the target transmission path, and the other configuration packet comes from the last network device and is sent to the first network through the target transmission path. device transfer.
目标传输路径所包括的所有网络设备中,部分网络设备根据第一配置报文配置路由,而另一部分网络设备根据第二配置报文配置路由。这样,有效的减少了配置目标传输路径的路由的时长。Among all the network devices included in the target transmission path, some network devices configure routes according to the first configuration message, while other network devices configure routes according to the second configuration message. In this way, the time for configuring the route of the target transmission path is effectively reduced.
本方面所示的网络设备为传送网设备。目标传输路径中,任一网络设备无论是根据第一配置报文还是根据第二配置报文配置路由,均能够实现第一传输方向和第二传输方向的路由,无需针对业务不同的传输方向配置不同的方向的路由。The network equipment shown in this aspect is a transport network equipment. In the target transmission path, whether any network device configures the route according to the first configuration packet or the second configuration packet, it can implement the routing in the first transmission direction and the second transmission direction, and there is no need to configure different transmission directions for services. Routing in different directions.
基于第一方面,一种可选的实现方式中,若该第一配置报文来自该首网络设备,该第二配置报文来自该末网络设备,则该中间网络设备根据该第一配置报文配置该中间网络设备和相邻网络设备之间的路由之后,该方法还包括:该中间网络设备向该末网络设备发送该第一配置报文;该中间网络设备确定不再根据该第二配置报文配置路由之后,该方法还包括:该中间网络设备结束该第二配置报文的传输。Based on the first aspect, in an optional implementation manner, if the first configuration packet comes from the first network device and the second configuration packet comes from the last network device, the intermediate network device reports the first configuration packet according to the first configuration. After configuring the route between the intermediate network device and the adjacent network device through the file, the method further includes: the intermediate network device sends the first configuration message to the last network device; the intermediate network device determines that the second After the configuration message configures the route, the method further includes: the intermediate network device ends the transmission of the second configuration message.
可见,本实现方式中,该中间网络设备先接收到来自来自首网络设备的第一配置报文(即正向配置报文),后接收到来自末网络设备的第二配置报文(即反向配置报文)。该中间网络设备仅需要根据第一配置报文配置路由。无需根据第二配置报文配置路由。且连接在首网络设备和该中间网络设备之间的任一网络设备已根据该第一配置报文完成了路由的配置。为降低网络设备所处理的数据量,降低网络设备因处理的数据量过大而出现拥塞的可能,该中间网络设备结束该第二配置报文的传输。It can be seen that, in this implementation manner, the intermediate network device first receives the first configuration packet (that is, the forward configuration packet) from the first network device, and then receives the second configuration packet (that is, the reverse configuration packet) from the last network device. to the configuration message). The intermediate network device only needs to configure the route according to the first configuration message. There is no need to configure routing according to the second configuration message. And any network device connected between the first network device and the intermediate network device has completed routing configuration according to the first configuration message. In order to reduce the amount of data processed by the network device and reduce the possibility of congestion due to the excessive amount of data processed by the network device, the intermediate network device terminates the transmission of the second configuration packet.
基于第一方面,一种可选的实现方式中,若该第一配置报文来自该末网络设备,该第二配置报文来自该首网络设备,则该中间网络设备根据该第一配置报文配置该中间网络设备和相邻网络设备之间的路由之后,该方法还包括:该中间网络设备向该首网络设备发送该第一配置报文;该中间网络设备确定不再根据该第二配置报文配置路由之后,该方法还包括:该中间网络设备向该末网络设备发送该第二配置报文。Based on the first aspect, in an optional implementation manner, if the first configuration packet comes from the last network device and the second configuration packet comes from the first network device, the intermediate network device reports the first configuration packet according to the first configuration. After configuring the route between the intermediate network device and the adjacent network device through the file, the method further includes: the intermediate network device sends the first configuration message to the first network device; After the configuration message configures the route, 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 manner, the intermediate network device first receives the first configuration packet (ie, the reverse configuration packet) from the last network device, and then receives the second configuration packet (ie, the forward configuration packet) from the first network device. configuration message). In order to enable the first network device to confirm that each network device in the target transmission path has successfully configured a route, the intermediate network device sends a second configuration message to the last network device. When the last network device receives the second configuration message, the last network device determines that the route of the target transmission path has been configured. The last network device sends a response message to the first network device via the target transmission path. When the first network device receives the response message, it can determine that the route of the target transmission path has been configured.
基于第一方面,一种可选地实现方式中,该中间网络设备确定该第一配置报文和该第二配置报文满足预设条件包括:该中间网络设备确定该第一配置报文和该第二配置报文满足第一预设子条件,该第一预设子条件为该第一配置报文和该第二配置报文均包括该目标业务的目标标识,且该第一配置报文包括用于指示该第一传输方向的第一指示消息,该第二配置报文包括用于指示该第二传输方向的第二指示消息;且该中间网络设备确定该第一配置报文和该第二配置报文满足第二预设子条件,该第二预设子条件为该第一配置报文和该第二配置报文均用于配置该目标传输路径的路由。Based on the first aspect, in an optional implementation manner, the intermediate network device determining that the first configuration packet and the second configuration packet meet a preset condition includes: the intermediate network device determining that the first configuration packet and the second configuration packet meet a preset condition. The second configuration packet satisfies a first preset sub-condition, where the first preset sub-condition is that both the first configuration packet and the second configuration packet include the target identifier of the target service, and the first configuration packet The message includes a first indication message for indicating the first transmission direction, and the second configuration message includes 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 packet satisfies a second preset sub-condition, where the second preset sub-condition is that both the first configuration packet and the second configuration packet are 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 (ie, the target identifier, the first indication message and the second indication message). When only the part of the message satisfies the first preset sub-condition, the first configuration packet and the second configuration packet are further parsed to determine whether the second preset sub-condition is met. It can be seen that the parsing amount of messages to be parsed by the intermediate network device is effectively reduced, and the occupation of system resources of the intermediate network device is reduced.
基于第一方面,一种可选地实现方式中,该方法还包括:该中间网络设备接收删除指示消息,该删除指示消息用于指示该中间网络设备删除来自末网络设备的配置报文。例如,若上述所示的第一配置报文来自末网络设备,则中间网络设备在接收到该删除指示消息的情况下,删除该第一配置报文。又如,若上述所示的第二配置报文来自末网络设备,则中间网络设备在接收到该删除指示消息的情况下,删除该第二配置报文。Based on the first aspect, in an optional implementation manner, the method further includes: the intermediate network device receiving a deletion instruction message, where the deletion instruction message is used to instruct the intermediate network device to delete the configuration packet from the end network device. For example, if the above-mentioned first configuration packet comes from the last network device, the intermediate network device deletes the first configuration packet when receiving the deletion instruction message. For another example, if the second configuration packet shown above is from the last network device, the intermediate network device deletes the second configuration packet in the case of receiving the deletion instruction message.
可见,本实现方式中,中间网络设备接收到该删除指示消息的情况下,即可根据该删除指示消息在控制面删除来自末网络设备的配置报文。有效的降低中间网络设备所存储的数据量,降低该中间网络设备拥塞的可能。It can be seen that, in this implementation manner, when the intermediate network device receives the deletion instruction message, it can delete the configuration message from the end network device on the control plane according to the deletion instruction message. The amount of data stored by the intermediate network device is effectively reduced, and the possibility of congestion of the intermediate network device is reduced.
第二方面,本发明实施例提供了一种路由的配置方法,该方法应用于目标传输路径,该目标传输路径包括多个网络设备,该目标传输路径用于向该目标传输路径所包括的末网络设备传输正向配置报文,该方法包括:该末网络设备获取反向配置报文,该反向配置报文和该正向配置报文在该目标传输路径中,沿相反的方向传输;该末网络设备向第一网络设备发送反向配置报文,该反向配置报文用于指示该第一网络设备配置该第一网络设备和第二网络设备之间的路由,该第一网络设备和该第二网络设备为该目标传输路径所包括的任意两个位置相邻且相互连接的网络设备。In a second aspect, an embodiment of the present invention provides a routing configuration method. 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 route to a terminal included in the target transmission path. The network device transmits a forward configuration message, and the method includes: the last network device obtains 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 last network device sends a reverse configuration packet to the first network device, where the reverse configuration packet 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 The device and the second network device are any two network devices that are adjacent to each other and are connected to each other included in the target transmission path.
本方面所示的有益效果的说明,请参见上述第一方面所示,具体不做赘述。需明确地是,本方面所示的目标传输路径所包括的多个网络设备也包括如上述第一方面所示的首网络设备以及连接在首网络设备和末网络设备之间的中间网络设备,本方面所示的第一网络设备和第二网络设备为目标传输路径所包括的任意两个网络设备。例如,第一网络设备和第二网络设备可为相互连接的首网络设备和中间网络设备。又如,第一网络设备和第二网络设备可为相互连接的两个中间网络设备。又如,第一网络设备和第二网络设备可为相互连接的中间网络设备和末网络设备。For the description of the beneficial effects shown in this aspect, please refer to the description of the above-mentioned first aspect, and details will not be repeated. It should be clear that the multiple network devices included in the target transmission path shown in this aspect also include the first network device shown in the first aspect and the intermediate network device connected between the first network device and the last network device, The first network device and the second network device shown in this 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 first network device and an intermediate network device that are connected to each other. For another example, the first network device and the second network device may be two intermediate network devices connected to each other. For another example, the first network device and the second network device may be intermediate network devices and end network devices that are connected to each other.
基于第二方面,一种可选地实现方式中,该末网络设备获取反向配置报文包括:该末网络设备获取反向路径指示消息,该反向路径指示消息用于指示沿反向传输方向,该目标传输路径所包括的多个网络设备之间的连接关系,该反向传输方向为该反向配置报文在该目标传输路径中的传输方向;该末网络设备根据该反向路径指示消息获取该反向配置报文。Based on the second aspect, in an optional implementation manner, acquiring the reverse configuration message by the end-network device includes: acquiring, by the end-network device, a reverse path indication message, where the reverse path indication message is used to indicate a reverse transmission direction, the connection relationship between multiple network devices included in the target transmission path, the reverse transmission direction is the transmission direction of the reverse configuration packet in the target transmission path; the last network device according to the reverse path The instruction message obtains the reverse configuration message.
基于第二方面,一种可选地实现方式中,该末网络设备获取反向路径指示消息包括:该末网络设备获取正向路径指示消息,该正向路径指示消息用于指示沿正向传输方向,该多个网络设备之间的连接关系,该正向传输方向为该正向配置报文在该目标传输路径中的传输方向;该末网络设备将该正向路径指示消息转换为该反向路径指示消息。Based on the second aspect, in an optional implementation manner, acquiring the reverse path indication message by the end-network device includes: acquiring, by the end-network device, a forward path indication message, where the forward path indication message is used to indicate forward transmission direction, the connection relationship between the multiple network devices, the forward transmission direction is the transmission direction of the forward configuration message in the target transmission path; the last network device converts the forward path indication message into the reverse direction Indicates a message to the path.
可见,本实现方式中,末网络设备在接收到正向路径指示消息的情况下,即可将该正向路径指示消息转换为反向路径指示消息,以生成该反向配置报文。It can be seen that, in this implementation manner, when the terminal network device receives the forward path indication message, it can convert the forward path indication message into a reverse path indication message to generate the reverse configuration message.
基于第二方面,一种可选地实现方式中,该方法还包括:该末网络设备接收故障指示 消息,该故障指示消息用于指示初始传输路径出现故障,该故障指示消息包括目标业务的目标标识,其中,该初始传输路径和该目标传输路径均用于传输该目标业务,该初始传输路径所包括的多个网络设备和该目标传输路径所包括的多个网络设备中,部分网络设备相同;该末网络设备将该正向路径指示消息转换为该反向路径指示消息包括:该末网络设备在确定该正向路径指示消息和该故障指示消息均包括该目标业务的目标标识的情况下,该末网络设备将该正向路径指示消息转换为该反向路径指示消息。Based on the second aspect, in an optional implementation manner, the method further includes: the terminal network device receives a fault indication message, where the fault indication message is used to indicate that the initial transmission path is faulty, and the fault indication message includes the target of the target service identification, where both the initial transmission path and the target transmission path are used to transmit the target service, and some of the network devices included in the multiple network devices included in the initial transmission path and the multiple network devices included in the target transmission path are the same ; The last network equipment converts the forward path indication message into the reverse path indication message and includes: when the last network equipment determines that the forward path indication message and the fault indication message both include the target identifier of the target service , the end network device converts the forward path indication message into the reverse path indication message.
可见,在初始传输路径出现故障的情况下,能够通过两路并发且沿双向传输的配置报文对同一目标传输路径的路由进行配置,有效的提高了对目标传输路径的路由进行配置的效率。进而能够快速将将用于传输目标业务的路径由初始传输路径切换至目标传输路径,有效的保证了目标业务的正常传输。It can be seen that in the case of failure of the initial transmission path, the route of the same target transmission path can be configured through two concurrent and bidirectionally transmitted configuration packets, which effectively improves the efficiency of configuring the route of the target transmission path. Furthermore, the path for transmitting the target service can be quickly switched from the initial transmission path to the target transmission path, effectively ensuring the normal transmission of the target service.
而且因通过两路并发且沿双向传输的配置报文对同一目标传输路径的路由进行配置,所以在目标传输路径所包括的网络设备的数量增加的场景下,能够有效的降低对目标传输路径的路由进行配置的时长。避免因目标传输路径所包括的网络设备的数量增加,而出现对目标业务的传输路径进行重新配置的性能劣化的情况。In addition, because the routes of the same target transmission path are configured through two concurrent configuration packets that are transmitted in both directions, in a scenario where the number of network devices included in the target transmission path increases, it is possible to effectively reduce the impact on the target transmission path. The length of time for the route to be configured. It is avoided that the performance degradation of reconfiguring the transmission path of the target service occurs due to the increase in the number of network devices included in the target transmission path.
基于第二方面,一种可选地实现方式中,该方法还包括:该末网络设备接收该正向配置报文;该末网络设备经由该目标传输路径,向该首网络设备发送响应消息,该响应消息用于指示该目标传输路径所包括的任意两个位置相邻且相互连接的网络设备之间的路由已配置成功。Based on the second aspect, in an optional implementation manner, the method further includes: the last network device receives the forward configuration message; the last network device sends a response message to the first network device via the target transmission path, The response message is used to indicate that the route between any two adjacent and mutually connected network devices included in the target transmission path has been successfully configured.
基于第二方面,一种可选地实现方式中,该末网络设备向第一网络设备发送反向配置报文之后,该方法还包括:该末网络设备删除该反向配置报文;该末网络设备向该第一网络设备发送删除指示消息,该删除指示消息用于指示该第一网络设备删除该反向配置报文。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 last network device deletes the reverse configuration message; the last network device deletes the reverse configuration message; The network device sends a deletion instruction message to the first network device, where the deletion instruction 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, and the intermediate network device includes a processor, a memory, and a An optical transceiver, wherein the processor, the memory, and the optical transceiver are interconnected through a line; the optical transceiver is used to receive a first configuration message, and the first configuration message is along the first transmission direction in the target transmission path transmission; the processor invokes the program code in the memory to configure the route between the intermediate network device and the adjacent network device according to the first configuration message, in the target transmission path, the intermediate network device and the adjacent network device The adjacent network devices are located adjacent to each other and connected to each other; the optical transceiver is further configured to receive a second configuration packet, the second configuration packet is transmitted along the second transmission direction in the target transmission path, and the first transmission The direction is opposite to the second transmission direction; the processor is further configured to, if the processor determines that the first configuration message and the second configuration message meet a preset condition, the processor determines that the second The configuration message configures a route, and the preset condition is that both the first configuration message and the second configuration message are used to configure the route of the target transmission path, and the target transmission path is used to transmit the target service.
本方面所示的有益效果的说明,请详见第一方面所示,具体不做赘述。For the description of the beneficial effects shown in this aspect, please refer to the first aspect for details, and details will not be repeated.
基于第三方面,一种可选地实现方式中,若该第一配置报文来自该首网络设备,该第二配置报文来自该末网络设备;该光收发器还用于,向该末网络设备发送该第一配置报文;该处理器还用于,结束该第二配置报文的传输。Based on the third aspect, in an optional implementation manner, if the first configuration message comes from the first network device, the second configuration message comes from the last network device; the optical transceiver is further configured to send a message to the last network device. The network device sends the first configuration message; the processor is further configured to end the transmission of the second configuration message.
基于第三方面,一种可选地实现方式中,若该第一配置报文来自该末网络设备,该第 二配置报文来自该首网络设备,该光收发器还用于:向该首网络设备发送该第一配置报文;向该末网络设备发送该第二配置报文。Based on the third aspect, in an optional implementation manner, if the first configuration packet comes from the last network device, and the second configuration packet comes from the first network device, the optical transceiver is further configured to: send the first configuration packet to the first network device. The network device sends the first configuration message; and sends the second configuration message to the last network device.
基于第三方面,一种可选地实现方式中,该处理器具体用于:确定该第一配置报文和该第二配置报文满足第一预设子条件,该第一预设子条件为该第一配置报文和该第二配置报文均包括该目标业务的目标标识,且该第一配置报文包括用于指示该第一传输方向的第一指示消息,该第二配置报文包括用于指示该第二传输方向的第二指示消息;确定该第一配置报文和该第二配置报文满足第二预设子条件,该第二预设子条件为该第一配置报文和该第二配置报文均用于配置该目标传输路径的路由。Based on the third aspect, in an optional implementation manner, the processor is specifically configured to: determine that the first configuration packet and the second configuration packet satisfy a first preset sub-condition, the first preset sub-condition Both the first configuration message and the second configuration message include the target identifier of the target service, and the first configuration message includes a first indication message for indicating the first transmission direction, and the second configuration message The message includes a second indication message for indicating the second transmission direction; it is determined that the first configuration message and the second configuration message satisfy a second preset sub-condition, and the second preset sub-condition is the first configuration Both the message and the second configuration message are used to configure the route of the target transmission path.
基于第三方面,一种可选地实现方式中,该光收发器还用于:接收删除指示消息,若该第一配置报文来自该末网络设备,则该删除指示消息用于指示删除该第一配置报文,或,若该第二配置报文来自该末网络设备,则该删除指示消息用于指示删除该第二配置报文。Based on the third aspect, in an optional implementation manner, the optical transceiver is further configured to: receive a deletion instruction message, and if the first configuration packet comes from the end-network device, the deletion instruction message is used to instruct deletion of the The first configuration message, or, if the second configuration message comes from the last network device, the deletion instruction message is used to instruct to delete the second configuration message.
第四方面,本发明实施例提供了一种网络设备,该网络设备为目标传输路径包括多个网络设备,所述目标传输路径用于向所述末网络设备传输正向配置报文,该末网络设备包括处理器、存储器以及光收发器,其中,该处理器、该存储器以及该光收发器通过线路互联;该处理器调用该存储器中的程序代码以用于,获取反向配置报文,该反向配置报文和该正向配置报文在该目标传输路径中,沿相反的方向传输;该光收发器还用于,向第一网络设备发送反向配置报文,该反向配置报文用于指示该第一网络设备配置该第一网络设备和第二网络设备之间的路由,该第一网络设备和该第二网络设备为该目标传输路径所包括的任意两个位置相邻且相互连接的网络设备。In a fourth aspect, an embodiment of the present invention provides a network device. The network device includes a plurality of network devices as a target transmission path, and the target transmission path is used to transmit a forward configuration message to the last network device. The network device includes a processor, a memory, and an optical transceiver, wherein the processor, the memory, and the optical transceiver are interconnected through a line; the processor invokes the program code in the memory to obtain a reverse configuration message, The reverse configuration packet and the forward configuration packet are transmitted in opposite directions in the target transmission path; the optical transceiver is further configured to send a reverse configuration packet to the first network device, the reverse configuration The 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 positions included in the target transmission path. Neighboring and interconnected network devices.
本方面所示的有益效果的说明,请详见第二方面所示,具体不做赘述。For the description of the beneficial effects shown in this aspect, please refer to the second aspect for details, and details will not be repeated.
基于第四方面,一种可选地实现方式中,该处理器具体用于:获取反向路径指示消息,该反向路径指示消息用于指示沿反向传输方向,该多个网络设备之间的连接关系,该反向传输方向为该反向配置报文在该目标传输路径中的传输方向;根据该反向路径指示消息获取该反向配置报文。Based on the fourth aspect, in an optional implementation manner, the processor is specifically configured to: obtain a reverse path indication message, where the reverse path indication message is used to indicate, along the reverse transmission direction, between the multiple network devices The reverse transmission direction is the transmission direction of the reverse configuration message in the target transmission path; the reverse configuration message is obtained according to the reverse path indication message.
基于第四方面,一种可选地实现方式中,该处理器具体用于:获取正向路径指示消息,该正向路径指示消息用于指示沿正向传输方向,该多个网络设备之间的连接关系,该正向传输方向为该正向配置报文在该目标传输路径中的传输方向;将该正向路径指示消息转换为该反向路径指示消息。Based on the fourth aspect, in an optional implementation manner, the processor is specifically configured to: obtain a forward path indication message, where the forward path indication message is used to indicate that, along the forward transmission direction, between the multiple network devices 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 the initial transmission path is faulty, and the fault indication message includes a target identifier of the target service , wherein the initial transmission path and the target transmission path are both used to transmit the target service, and some of the network devices included in the multiple network devices included in the initial transmission path and the multiple network devices included in the target transmission path are the same; The processor is specifically configured to convert the forward path indication message into the reverse path indication message when it is determined that both the forward path indication message and the fault indication message include the target identifier of the target service.
基于第四方面,一种可选地实现方式中,该光收发器还用于:接收该正向配置报文;经由该目标传输路径,向该首网络设备发送响应消息,该响应消息用于指示该目标传输路径所包括的任意两个位置相邻且相互连接的网络设备之间的路由已配置成功。Based on the fourth aspect, in an optional implementation manner, the optical transceiver is further configured to: receive the forward configuration message; send a response message to the first network device via the target transmission path, where the response message is used for Indicates that the route between any two adjacent and connected network devices included in the target transmission path has been configured successfully.
基于第四方面,一种可选地实现方式中,该处理器还用于,删除该反向配置报文;该光收发器还用于,向该第一网络设备发送删除指示消息,该删除指示消息用于指示该第一网络设备删除该反向配置报文。Based on the fourth aspect, in an optional implementation manner, the processor is further configured to delete the reverse configuration message; the optical transceiver is further configured to send a deletion instruction message to the first network device, the deletion The instruction message is used 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 connected in sequence, and the intermediate network device is the same as the third aspect. As shown in any one of the items, the end network device is as shown in any of the fourth aspects.
第六方面,本发明实施例提供了一种数字处理芯片,该数字处理芯片包括处理器和存储器,该存储器和该处理器通过线路互联,该存储器中存储有指令,该处理器用于执行如上述第一方面或第二方面任一项所示。In a sixth aspect, an embodiment of the present invention provides a digital processing chip, the digital processing chip includes a processor and a memory, the memory and the processor are interconnected through a line, and instructions are stored in the memory, and the processor is used to execute the above-mentioned Either of the first aspect or the second aspect.
第七方面,本发明实施例提供了一种计算机可读存储介质,包括指令,当该指令在计算机上运行时,使得该计算机执行如上述第一方面或第二方面任一项所示。In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, including instructions, when the instructions are executed on a computer, the computer is made to execute as shown in any one of the first aspect or the second aspect.
第八方面,本发明实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面任一项所示。In an eighth aspect, an embodiment of the present invention provides a computer program product containing instructions, which, when executed on a computer, cause the computer to execute any one of the first aspect or the second aspect.
采用本申请所提供的路由的配置方法、网络设备、通信系统以及存储介质,能够通过两路并发且沿双向传输的配置报文配置同一目标传输路径的路由,有效的提高了对目标传输路径的路由进行配置的效率。且目标传输路径所包括的所有网络设备中,部分网络设备根据第一配置报文配置路由,而另一部分网络设备根据第二配置报文配置路由。这样,有效的减少了配置目标传输路径的路由的时长。By adopting the routing configuration method, network device, communication system and storage medium provided by the present application, it is possible to configure the routing of the same target transmission path through two concurrent and bidirectionally transmitted configuration messages, which effectively improves the reliability of the target transmission path. The efficiency of routing configuration. And among all the network devices included in the target transmission path, some network devices configure routes according to the first configuration message, while other network devices configure routes according to the second configuration message. In this way, the time for configuring the route of the target transmission path is effectively reduced.
而且目标传输路径中,任一网络设备无论是根据第一配置报文还是根据第二配置报文配置路由,均能够实现第一传输方向和第二传输方向的路由,无需针对业务不同的传输方向配置不同的方向的路由。In addition, in the target transmission path, whether any network device configures the route according to the first configuration message or the second configuration message, it can implement the routing in the first transmission direction and the second transmission direction, and there is no need for different transmission directions of services. Configure routes in different directions.
附图说明Description of drawings
图1为本申请所提供的通信系统的第一种实施例结构示例图;FIG. 1 is a structural example diagram of a first embodiment of a communication system provided by this application;
图2为本申请所提供的路由的配置方法的第一种实施例步骤流程图;FIG. 2 is a flow chart of steps of a first embodiment of a route configuration method provided by the present application;
图3为本申请所提供的目标传输路径的一种实施例结构示例图;FIG. 3 is an exemplary structural diagram of an embodiment of a target transmission path provided by the application;
图4为本申请所提供的路由的配置方法的第二种实施例步骤流程图;Fig. 4 is a flow chart of the steps of the second embodiment of the route configuration method provided by the present application;
图5为本申请所提供的路由的配置方法的第三种实施例步骤流程图;5 is a flowchart of steps of a third embodiment of a route configuration method provided by the present application;
图6为本申请所提供的通信系统的第二种实施例结构示例图;FIG. 6 is a schematic structural diagram of a second embodiment of the communication system provided by the present application;
图7为本申请所提供的网络设备的一种实施例结构示例图。FIG. 7 is a schematic structural diagram of an embodiment of a network device provided by the present application.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
本申请提供了一种路由的配置方法,为更好的理解本申请所提供的方法,以下首先结 合图1所示对本申请所提供的方法所应用的通信系统进行说明,其中,图1为本申请所提供的通信系统的第一种实施例结构示例图。The present application provides a routing configuration method. In order to better understand the method provided by the present application, the following first describes the communication system to which the method provided by the present application is applied with reference to FIG. 1 . A structural example diagram of the first embodiment of the communication system provided by the application.
图1所示以该通信系统100为ASON为例进行示例性说明,需明确地是,本申请对通信系统100的具体网络类型不做限定,例如,该通信网络100还可为通用多协议标签交换技术(generalized multi-protocol label switching,GMPLS)网络。As shown in FIG. 1 , the communication system 100 is an ASON as an example for illustration. It should be clearly stated that the specific network type of the communication system 100 is not limited in this application. For example, the communication network 100 may also be a general multi-protocol label Switching technology (generalized multi-protocol label switching, GMPLS) network.
其中,通信系统100中包括多个用于传输业务的传输路径。例如,图1所示的第一传输路径包括依次连接的网络设备A、网络设备B、网络设备C以及网络设备D。可知,从网络设备A输出的业务,依次经由网络设备B、网络设备C传输至网络设备D。The communication system 100 includes multiple transmission paths for transmitting services. 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 that are connected in sequence. It can be known that the service output from the network device A is transmitted to the network device D via the network device B and the network device C in sequence.
图1所示的还包括第二传输路径,该第二传输路径包括依次连接的网络设备A、网络设备E、网络设备F、网络设备G以及网络设备D。What is shown in FIG. 1 also includes a second transmission path, where the second transmission path includes a network device A, a network device E, a network device F, a network device G, and a network device D that are connected in sequence.
需明确的是,本实施例所通信系统100所包括的传输路径的说明为可选地示例,不做限定。It should be clear that, the description of the transmission path included in the communication system 100 in this embodiment is an optional example, which is not limited.
各网络设备表示通信网络中的一个独立的硬件实体。本示例以各网络设备为传送网设备为例进行说明。其中,该传送网设备可为光路由连接设备(optical cross connect,OXC)设备、光分插复用器(optical add drop multiplexer,OADM)、固定光分插复用器(fixed optical add drop multiplexer,FOADM)或可重构光分插复用器(reconfigurable optical add drop multiplexer,ROADM)。本实施例以网络设备为ROADM为例进行示例性说明。Each network device represents an independent hardware entity in the communication network. In this example, each network device is a transport network device as an example for description. Wherein, the transmission network equipment may be an optical cross connect (OXC) equipment, an optical add drop multiplexer (OADM), a fixed optical add drop multiplexer (fixed optical add drop multiplexer, FOADM) or reconfigurable optical add drop multiplexer (ROADM). This embodiment is exemplified by taking that the network device is a ROADM as an example.
为实现数据能够沿第一传输路径进行传输,则需要第一传输路径中的各个网络设备配置路由,以下对第一传输路径中各个网络设备的配置路由的具体过程进行说明: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 routes. The following describes the specific process of configuring routes for each network device in the first transmission path:
以图1所示的第一传输路径所包括的网络设备E为例,为实现数据能够在第一传输路径上传输的目的,则网络设备E需要创建路由,以实现网络设备E将来自网络设备A的数据向网络设备F发送,还能够实现网络设备E将来自网络设备F的数据向网络设备A发送的目的。其中,该数据可为业务、各种符合RSVP-TE协议的消息等。Taking the network device E included in the first transmission path shown in FIG. 1 as an example, in order to realize the purpose that data can be transmitted on the first transmission path, the network device E needs to create a route to realize that the network device E transmits data from the network device E. The data of A is sent to the network device F, and the purpose of sending the data from the network device F to the network device A can also be achieved by the network device E. The data may be services, various messages conforming to the RSVP-TE protocol, and the like.
具体地,网络设备E包括端口1和端口2,该端口为用于传输数据的物理端口。该端口1为网络设备E所包括的多个端口中的一个,且该端口1和网络设备A之间通过光纤连接。端口2为网络设备E所包括的多个端口中的一个,且端口1和端口2不相同。端口2和网络设备F通过光纤连接。Specifically, the network device E includes a port 1 and a port 2, and the ports are physical ports used to transmit data. The port 1 is one of the multiple ports included in the network device E, and the port 1 and the network device A are connected by an optical fiber. The port 2 is one of the multiple ports included in the network device E, and the port 1 and the port 2 are different. Port 2 and network device F are connected by optical fiber.
网络设备E创建路由是指创建端口1和端口2之间的对应关系。网络设备E即可基于该对应关系,实现端口1和端口2之间的数据交互。Creating a route by network device E refers to creating a corresponding relationship between port 1 and port 2. The network device E can implement the data interaction between the port 1 and the port 2 based on the corresponding relationship.
可见,网络设备E在通过端口1获取到来自网络设备A的数据的情况下,网络设备E基于已创建的路由将该数据传输至端口2,以经由端口2传输至网络设备F。同样的,网络设备E在通过端口2获取到来自网络设备F的数据的情况下,网络设备E基于已创建的路由将该数据传输至端口1,以经由端口1传输至网络设备A。It can be seen that when the network device E obtains data from the network device A through the port 1, the network device E transmits the data to the port 2 based on the created route, so as to transmit the data to the network device F via the port 2. Similarly, when the network device E obtains 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, so as to transmit the data to the network device A via the port 1.
对第一传输路径所包括的其他网络设备创建路由的过程的说明,请详见网络设备E所示,具体不做赘述。For the description of the process of creating routes by other network devices included in the first transmission path, please refer to the network device E for details, and details will not be repeated.
可见,在位于第一传输路径上的各个网络设备均完成了路由的配置,则业务可在第一传输路径上传输。It can be seen that each network device located on the first transmission path has completed the routing configuration, and the service can be transmitted on the first transmission path.
若通过已有方案的RSVP-TE协议配置第一传输路径的路由,则需要网络设备A通过该第一传输路径依次向网络设备B、网络设备C以及网络设备D发送路径(Path)消息。其中,该Path消息为RSVP-TE协议报文的一种。If the route of the first transmission path is configured through the RSVP-TE protocol in the existing solution, network device A needs to send Path messages to network device B, network device C, and network device D sequentially through the first transmission path. The Path message is a type of RSVP-TE protocol message.
接收到该Path消息的各网络设备用于根据该Path消息配置路由。在网络设备D根据该Path消息完成了路由的配置后,向网络设备A传输响应消息。Each network device that receives the Path message is used to configure routing according to the Path message. After the network device D completes the routing configuration according to the Path message, it transmits a response message to the network device A.
可见,若第一传输路径所包括的网络设备的数量较多的情况下,则第一传输路径所包括的各个网络设备,依次根据该Path消息配置路由。会提高配置第一传输路径的难度,降低配置该第一传输路径的效率。而且配置第一传输路径的性能,随着第一传输路径所包括的网络设备的数量的增加而劣化。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 routes in sequence according to the Path message. This increases the difficulty of configuring the first transmission path and reduces the efficiency of configuring the first transmission path. Furthermore, the performance of configuring the first transmission path deteriorates as the number of network devices included in the first transmission path increases.
而本申请所提供的路由的配置方法,能够有效的降低配置传输路径的难度,提高配置传输路径的效率。避免因传输路径所包括的网络设备的数量增多,而导致配置传输路径的性能劣化的情况。The routing configuration method provided by the present application can effectively reduce the difficulty of configuring the transmission path and improve the efficiency of configuring the transmission path. It is avoided that the performance of the configuration transmission path is degraded due to an increase in the number of network devices included in the transmission path.
以下结合图2所示对本申请所提供的路由的配置方法的具体执行过程进行说明,其中,图2为本申请所提供的路由的配置方法的第一种实施例步骤流程图。The specific execution process of the route configuration method provided by the present application will be described below with reference to FIG. 2 , wherein FIG. 2 is a flowchart of steps of the first embodiment of the route configuration method provided by the present application.
步骤201、首网络设备根据正向配置报文配置路由。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.
为更好的理解,以下参见图3所示对目标传输路径进行说明。如图3所示,本实施例以所述目标传输路径依次包括网络设备A、网络设备E、网络设备F、网络设备G以及网络设备D为例。本实施例所示的首网络设备为网络设备A,而末网络设备为网络设备D。网络设备E、网络设备F以及网络设备G为连接在首网络设备A和末网络设备D之间的中间网络设备。For better understanding, the target transmission path will be described below with reference to FIG. 3 . As shown in FIG. 3 , in this embodiment, the target transmission path includes network device A, network device E, network device F, network device G, and network device D in sequence as an example. The first network device shown in this embodiment is network device A, and the last network device is network device D. The network device E, the network device F, and the network device G are intermediate network devices connected between the first network device A and the 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. After the network device that has received the forward configuration message completes the route configuration based on the forward configuration message, the target service can be transmitted via the network device.
例如,首网络设备A需要根据该正向配置报文配置首网络设备A和中间网络设备E之间的路由,从而使得目标业务能够在首网络设备A和中间网络设备E之间传输。For example, the first network device A needs to configure the route between the first network device A and the intermediate network device E according to the forward configuration message, so that the target service can be transmitted between the first network device A and the intermediate network device E.
以下对正向配置报文的几种可选地来源进行说明:Several optional sources of forward configuration packets are described below:
来源1source 1
继续参见图1所示,本申请所示的通信系统100还包括网管设备101。该网管设备101与各网络设备连接。所述网管设备101可根据开放最短路径优先(open shortest path First,OSPF),或,路径计算单元通信协议(path computation element communication protocol,PCEP)等协议获取正向配置报文。该正向配置报文至少包括待传输的目标业务的目标标识,以及用于传输该目标业务的目标传输路径所包括的各个网络设备。Continuing to refer to FIG. 1 , the communication system 100 shown in this application further includes a network management device 101 . The network management device 101 is connected to each network device. The network management device 101 can obtain forward configuration messages according to protocols such as open shortest path first (OSPF), or path computation element communication protocol (PCEP). The forward configuration message includes at least the target identifier of the target service to be transmitted, and each network device included in the target transmission path for transmitting the target service.
本实施例对网管设备具体通过何种装置获取该正向配置报文的不做限定,例如,网管设备可通过其路径计算单元(path computation element,PCE)控制装置获取正向配置报文。This embodiment does not limit the specific device through which the network management device obtains the forward configuration message. For example, the network management device may obtain the forward configuration message through its path computation element (path computation element, PCE) control device.
本实施例对PCE控制装置的形态不做限定,例如,该PCE控制装置的功能可以部分或 全部通过软件实现,又如,PCE控制装置可为芯片或集成电路等。This embodiment does not limit the form of the PCE control device, for example, the functions of the PCE control device may be partially or fully realized by software, and for example, the PCE control device may be a chip or an integrated circuit.
在网管设备获取到该正向配置报文的情况下,所述网管设备向目标传输路径中的首网络设备发送该正向配置报文。例如,网管设备101向网络设备A发送该正向配置报文。When the network management device acquires the forward configuration message, the network management device sends the forward configuration message to the first network device in the target transmission path. For example, the network management device 101 sends the forward configuration packet to the network device A.
来源2source 2
首网络设备已配置该PCE控制装置。首网络设备通过该PCE控制装置生成该正向配置报文。对PCE控制装置获取该正向配置报文的说明,请详见来源1所示,不做赘述。The first network device has configured the PCE control device. The first network device generates the forward configuration message through the PCE control device. For the description of the PCE control device acquiring the forward configuration message, please refer to Source 1 for details, and will not be repeated.
来源3Source 3
通信系统中任一网络设备基于其已配置的PCE控制装置获取该正向配置报文,并将已获取的正向配置报文向该首网络设备发送。对PCE控制装置获取该正向配置报文的说明,请详见来源1所示,不做赘述。Any network device in the communication system acquires the forward configuration message based on its configured PCE control device, and sends the acquired forward configuration message to the first network device. For the description of the PCE control device acquiring the forward configuration message, please refer to Source 1 for details, and will not be repeated.
本实施例以网管设备设置该PCE控制装置为例进行示例性说明。若需要目标传输路径中的各个网络设备均能够执行本实施例所示的方法以实现目标传输路径的配置,则各个网络设备均配置RSVP控制装置。该RSVP控制装置用于实现基于RSVP-TE协议配置目标传输路径的功能。This embodiment is exemplified by taking the setting of the PCE control apparatus by the network management device as an example. If it is required that each network device in the target transmission path can execute the method shown in this embodiment to realize the configuration of the target transmission path, each network device is configured with an RSVP control apparatus. The RSVP control device is used to realize the function of configuring the target transmission path based on the RSVP-TE protocol.
各网络设备基于RSVP控制装置实现本实施例所示的方法。本实施例对RSVP控制装置的形态不做限定。例如,该RSVP控制装置的功能可以部分或全部通过软件实现,又如,RSVP控制装置可为芯片或集成电路等。Each network device implements the method shown in this embodiment based on the RSVP control apparatus. This embodiment does not limit the form of the RSVP control apparatus. For example, the functions of the RSVP control device may be partially or completely implemented by software, and for example, the RSVP control device may be a chip or an integrated circuit.
可选地,若由首网络设备生成该正向配置报文,则该首网络设备所包括的该PCE控制装置和该RSVP控制装置可为同一装置。Optionally, 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.
以下对符合RSVP-TE协议的正向配置报文的内容进行示例性说明。需明确的是,本实施例对正向配置报文的具体内容的说明可为可选的示例,不做限定,只要目标传输路径上的各个网络设备能够根据该正向配置报文配置该目标传输路径的路由即可。The content of the forward configuration packet conforming to the RSVP-TE protocol is exemplarily described below. It should be clear that the description of the specific content of the forward configuration message in this embodiment may be an optional example, and is not limited, as long as each network device on the target transmission path can configure the target according to the forward configuration message. The routing of the transmission path is sufficient.
该正向配置报文至少包括:目标业务的目标标识、正向路径指示消息以及第一指示消息。The forward configuration message includes at least: a target identifier of the target service, a forward path indication message and a first indication message.
其中,该正向路径指示消息包括目标传输路径中各个网络设备的标识,以及与该标识对应的各网络设备所包括的用于配置路由的端口标识。Wherein, the forward path indication message includes the identifiers of each network device in the target transmission path, and the port identifiers for configuring routes included in each network device corresponding to the identifier.
以下参见表1所示对正向路径指示消息进行说明:The forward path indication message is described below with reference to Table 1:
表1Table 1
网络设备的标识Identification of the network device 第一端口的标识ID of the first port 第二端口的标识Identification of the second port
首网络设备AThe first network device A 端口A1port A1 端口A2port A2
中间网络设备EIntermediate network equipment E 端口E1port E1 端口E2port E2
中间网络设备FIntermediate network equipment F 端口F1port F1 端口F2port F2
中间网络设备GIntermediate network equipment G 端口G1port G1 端口G2port G2
末网络设备Dend network device D 端口D1port D1 端口D2port D2
如表1所示可知,该正向路径指示消息用于指示该目标传输路径,沿正向传输方向,依次包括网络设备A、E、F、G以及D,以及网络设备之间的连接关系。其中,该正向传输方向是指传输起点为首网络设备A,并依次沿目标传输路径所包括的各个网络设备进行传 输的方向。As shown in Table 1, the forward path indication message is used to indicate the target transmission path. Along the forward transmission direction, it sequentially includes network devices A, E, F, G, and D, and the connection relationship between network devices. The forward transmission direction refers to the direction in which the transmission starting 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, it can determine the first port identifier and the second port corresponding to the identifier of the network device according to the forward path indication message included in the forward configuration message to configure the route between the first port and the second port inside the network device.
例如,首网络设备A在获取到该正向路径指示消息的情况下,确定对应的第一端口的标识为A1,第二端口的标识为A2。首网络设备所配置的路由为端口A1至端口A2之间的路由。可见,若首网络设备A作为具有目标标识的目标业务的发起方,在首网络设备A经由端口A1接收到具有该目标标识的目标业务的情况下,首网络设备A将来自端口A1的目标业务传输至端口A2。For example, when the first network device A obtains 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 first network device is the route between port A1 and port A2. It can be seen that if the first network device A acts as the initiator of the target service with the target identifier, when the first network device A receives the target service with the target identifier via the port A1, the first network device A will send the target service from the port A1. to port A2.
若末网络设备D作为目标业务的发起方,在首网络设备A经由端口A2接收到具有该目标标识的目标业务的情况下,首网络设备A将来自端口A2的目标业务传输至端口A1。If the last network device D is the initiator of the target service, when the first network device A receives the target service with the target identifier via the port A2, the first network device A transmits the target service from the port A2 to the port A1.
本实施例中,首网络设备A的端口A2和中间网络设备E的端口E1之间已通过光纤连接。可知,在首网络设备已配置端口A1和端口A2之间的路由的情况下,首网络设备的端口A2和中间网络设备E的端口E1之间的路由也成功配置。In this embodiment, the port A2 of the first network device A and the port E1 of the intermediate network device E are connected by optical fibers. It can be known that in the case where the route between the port A1 and the port A2 has been configured on the first network device, the route between the port A2 of the first network device and the port E1 of the intermediate network device E is also successfully configured.
例如,在首网络设备将来自端口A1的目标业务传输至端口A2的情况下,因端口A2和端口E1之间已通过光纤连接,经由端口A2的目标业务经由该光纤传输至端口E1,以实现首网络设备A和中间网络设备E之间的路由的配置。For example, in the case where the first network device transmits the target service from port A1 to port A2, since port A2 and port E1 are connected by optical fiber, the target service via port A2 is transmitted to port E1 via the optical fiber, so as to realize Configuration of the route between the first network device A and the intermediate network device E.
该正向配置报文所包括的第一指示消息用于指示该正向配置报文在目标传输路径中沿正向传输方向传输。The first indication message included in the forward configuration packet is used to indicate that the forward configuration packet is transmitted along the forward transmission direction in the target transmission path.
具体地,本实施例所示的正向配置报文为RSVP-TE协议报文的一种,本实施例可在已有的用于配置路由的RSVP-TE协议报文中增设信令标记和业务三元组消息,以生成本实施例所示的正向配置报文,对信令标记的具体说明请详见下述表2所示的相关说明,对业务三元组消息的具体说明请详见下述表3所示的相关说明。Specifically, the forward configuration message shown in this embodiment is a type of RSVP-TE protocol message. In this embodiment, signaling flags and The service triplet message is used to generate the forward configuration message shown in this embodiment. For the specific description of the signaling flag, please refer to the relevant description shown in Table 2 below. For the specific description of the service triplet message, please refer to For details, please refer to the relevant descriptions shown in Table 3 below.
以下对信令标记的格式进行说明:The format of the signaling flag is described below:
Figure PCTCN2021112935-appb-000001
Figure PCTCN2021112935-appb-000001
具体格式请参见如下表2所示:The specific format is shown in Table 2 below:
表2Table 2
Figure PCTCN2021112935-appb-000002
Figure PCTCN2021112935-appb-000002
其中,新增的信令标记包括字段“Type”,该字段用于指示该新增的消息为信令标记,例如,该字段的取值的长度可为16比特(bit)位数值。The newly added signaling tag includes a field "Type", which is used to indicate that the newly added message is a signaling tag. For example, the length of the value of this field may be a 16-bit (bit) bit value.
字段“Length”用于指示该新增的信令标记的长度,该字段的取值的长度可为16bit位的数值。The field "Length" is used to indicate the length of the newly added signaling marker, and the length of the value of this field may be a value of 16 bits.
字段“Protocol Type”,该字段用于指示信令标记是沿正向传输方向传输,还是沿反向传输方向传输。可见,若本示例所示的该字段的取值为“0”,则该字段为本实施例所示的第一指示消息。用于指示包括该信令标记的配置报文为正向配置报文。Field "Protocol Type", this field is used to indicate whether the signaling flag is transmitted in the forward transmission direction or in the reverse transmission direction. It can be seen that if the value of this field shown in this example is "0", then this field is the first indication message shown in this embodiment. It is used to indicate that the configuration packet including the signaling flag is a forward configuration packet.
以下对业务三元组消息的格式进行说明:The format of the service triplet message is described below:
Figure PCTCN2021112935-appb-000003
Figure PCTCN2021112935-appb-000003
具体格式请参见如下表3所示:The specific format is shown in Table 3 below:
表3table 3
Figure PCTCN2021112935-appb-000004
Figure PCTCN2021112935-appb-000004
其中,新增的业务三元组消息包括字段“Type”,该字段用于指示该新增的消息为“业务三元组消息”,例如,该字段的取值的长度可为16bit数值。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 this field may be a 16-bit value.
字段“Length”用于指示该业务三元组消息的长度,该字段的取值的长度可为16bit位的数值。The field "Length" is used to indicate the length of the service triplet message, and the length of the value of this field may be a value of 16 bits.
字段“Source_Router_Id”,用于指示包括该业务三元组消息的配置报文所包括的首网络设备的标识。例如,该字段的取值的长度可为32bit数值。The field "Source_Router_Id" is used to indicate the identifier of the first 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 32-bit value.
字段“Dst_Router_Id”,用于指示包括该业务三元组消息的配置报文所包括的末网络设备的标识。例如,该字段的取值的长度可为32bit数值。The field "Dst_Router_Id" is used to indicate the identifier 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 32-bit value.
字段“Index”,用于指示该目标传输路径所要传输的目标业务的标识。例如,该字段的取值的长度可为32bit数值。The field "Index" is used to indicate the identifier of the target service to be transmitted by the target transmission path. For example, the length of the value of this field may be a 32-bit value.
具体地,已有RSVP-TE协议报文中已设置该目标传输路径所包括的各个中间网络设备。具体地说明,请详见上述所示的对正向路径指示消息的说明,本实施例对正向配置报文的具体格式的说明为可选地示例,不做限定,只要正向配置报文至少包括目标业务的目标标识、正向路径指示消息以及第一指示消息即可。Specifically, each intermediate network device included in the target transmission path has been set in the existing RSVP-TE protocol message. For a specific description, please refer to the description of the forward path indication message shown above. The description of the specific format of the forward configuration message in this embodiment is an optional example, which is not limited, as long as the forward configuration message It is sufficient to include at least the target identifier of the target service, the forward path indication message and the first indication message.
步骤202、首网络设备向第一中间网络设备发送正向配置报文。Step 202: The first network device sends a forward configuration message to the first intermediate network device.
本实施例所示的第一中间网络设备为目标传输路径所包括的多个中间网络设备中,与所述首网络设备位置相邻且通过光纤连接的中间网络设备。以图3所示为例,该第一中间网络设备为与首网络设备A通过光纤连接的网络设备E。The first intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the first network device and connected by an optical fiber among the multiple intermediate network devices included in the target transmission path. Taking the example shown in FIG. 3 , the first intermediate network device is a network device E connected to the first network device A through an optical fiber.
步骤203、末网络设备根据反向配置报文配置路由。Step 203: The final network device configures a route according to the reverse configuration message.
本实施例所示的末网络设备为所述目标传输路径中的最后一个网络设备(即如图3所示的网络设备D)。The last network device shown in this embodiment is the last network device in the target transmission path (ie, the network device D shown in FIG. 3 ).
本实施例所示的所述反向配置报文用于指示目标传输路径中的各个网络设备配置路由,在已接收到该反向配置报文的网络设备基于反向配置报文完成了对路由的配置后,目标业务经由该网络设备传输。The reverse configuration packet shown in this embodiment is used to instruct each network device in the target transmission path to configure a route, and the network device that has received the reverse configuration packet completes routing based on the reverse configuration packet. After the configuration, the target service is transmitted via the network device.
以下对末网络设备获取反向配置报文的几种可选地方式进行说明:The following describes several optional ways for the terminal network device to obtain reverse configuration packets:
方式1way 1
末网络设备D接收正向配置报文,对正向配置报文的具体说明,请详见步骤201所示,具体不做赘述。At the end, the network device D receives the forward configuration message. For the specific description of the forward configuration message, please refer to step 201 for details, and details are not repeated.
具体地,所述末网络设备D可接收来自网管设备的正向配置报文,或,末网络设备接收来自首网络设备A的正向配置报文,或末网络设备接收来自通信网络中的任一网络设备所发送的该正向配置报文。Specifically, the last network device D may receive a forward configuration message from the network management device, or the last network device may receive a forward configuration message from the first network device A, or the last network device may receive a forward configuration message from any communication network device. The forward configuration message sent by a network device.
在末网络设备D接收到该正向配置报文的情况下,末网络设备D生成反向配置报文。其中,该反向配置报文包括目标业务的目标标识、反向路径指示消息以及第二指示消息。When the last network device D receives the forward configuration message, the last network device D generates a reverse configuration message. The reverse configuration message includes a target identifier of the target service, a reverse path indication message and a second indication message.
具体地,末网络设备D对已接收到的正向配置报文所包括的正向路径指示消息进行反转,以获取反向路径指示消息,以下如表4所示对反向路径指示消息进行说明:Specifically, the last network device D inverts the forward path indication message included in the received forward configuration message to obtain the reverse path indication message, and the reverse path indication message is performed as shown in Table 4 below. illustrate:
表4Table 4
网络设备的标识Identification of the network device 第一端口的标识ID of the first port 第二端口的标识Identification of the second port
末网络设备Dend network device D 端口D1port D1 端口D2port D2
中间网络设备GIntermediate network equipment G 端口G1port G1 端口G2port G2
中间网络设备FIntermediate network equipment F 端口F1port F1 端口F2port F2
中间网络设备EIntermediate network equipment E 端口E1port E1 端口E2port E2
首网络设备AThe first network device A 端口A1port A1 端口A2port A2
对比于表1和表4所示可知,反向路径指示信息为对所述正向路径指示消息进行反转以生成,从而使得在正向路径指示消息中的第一网络设备(即首网络设备A)反转为反向路径指示消息中的最后一个网络设备。还使得正向路径指示消息中的最后一个网络设备(即末网络设备D)反转为反向路径指示消息中的第一个网络设备,依次类推。Compared with Table 1 and Table 4, it can be seen that the reverse path indication information is generated by inverting the forward path indication message, so that the first network device (ie the first network device) in the forward path indication message is generated. A) Reverse to the last network device in the reverse path indication message. Also, the last network device (ie, the last network device D) in the forward path indication message is reversed to the first network device in the reverse path indication message, and so on.
如表4所示可知,该反向路径指示消息用于指示该目标传输路径,沿反向传输方向, 依次包括网络设备D、G、F、E以及A的连接关系,其中,反向传输方向与正向传输方向相反。As shown in Table 4, the reverse path indication message is used to indicate the target transmission path, and along the reverse transmission direction, it sequentially includes the connection relationships of network devices D, G, F, E and A, wherein the reverse transmission direction Opposite of the forward transmission direction.
在各网络设备接收到该反向配置报文的情况下,根据该反向配置报文所包括的反向路径指示消息,确定该网络设备的标识对应的第一端口的标识和第二端口的标识,从而在该网络设备内部建立该第一端口和第二端口之间的路由,具体建立路由的过程,也可参见步骤201所示针对正向配置报文建立路由的过程,具体不做赘述。In the case where each network device receives the reverse configuration message, according to the reverse path indication message included in the reverse configuration message, determine the identifier of the first port and the identifier of the second port corresponding to the identifier of the network device. ID, so as to establish a route between the first port and the second port inside the network device. For the specific process of establishing a route, you can also refer to the process of establishing a route for a forward configuration message shown in step 201, and details are not repeated. .
该反向配置报文所包括的第二指示消息用于指示该反向配置报文在目标传输路径中沿反向传输方向传输。其中,如图3所示,所述反向传输方向是指,该反向配置报文以末网络设备D为传输起点,依次经由目标传输路径所包括的各个网络设备传输。The second indication message included in the reverse configuration packet is used to indicate that the reverse configuration packet is transmitted along the reverse transmission direction in the target transmission path. Wherein, as shown in FIG. 3 , the reverse transmission direction means that the reverse configuration message takes the last network device D as the transmission starting point, and is sequentially transmitted through each network device included in the target transmission path.
对反向配置报文的具体格式的说明,请参见上述对正向配置报文格式的说明,具体不做赘述。For the description of the specific format of the reverse configuration packet, please refer to the above description of the format of the forward configuration packet, and details are not repeated here.
方式2way 2
末网络设备D接收正向路径指示消息以及目标业务的目标标识。The last network device D receives the forward path indication message and the target identifier of the target service.
具体地,本实施例所示的网管设备或首网络设备可向末网络设备直接发送正向路径指示消息以及该目标标识。末网络设备根据该正向路径指示消息和该目标标识生成该反向配置报文。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. The final network device generates the reverse configuration message according to the forward path indication message and the target identifier.
方式3way 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.
方式4way 4
末网络设备根据OSPF或PCEP等协议获取用于传输目标业务的反向路径指示消息,并将该反向路径指示消息向网管设备发送。在网管设备已获取到用于传输目标业务的正向路径指示消息的情况下,由网管设备判断反向路径指示消息和所述正向路径指示消息所包括的网络设备是否相同(例如,均包括网络设备A、E、F、G以及D),则网管设备向末网络设备发送成功指示消息。末网络设备根据该成功指示消息配置报文该反向路径指示消息的反向配置报文。The final network device obtains the reverse path indication message for transmitting the target service according to protocols such as OSPF or PCEP, and sends the reverse path indication message to the network management device. In the case that the network management device has obtained the forward path indication message for transmitting the target service, the network management device determines whether the reverse path indication message and the forward path indication message include the same network devices (for example, both include network devices A, E, F, G and D), the network management device sends a success indication message to the last network device. The last network device configures the reverse configuration message of the reverse path indication message according to the success indication message.
可选地,末网络设备也可向首网络设备或通信系统所包括的任一网络设备发送该反向路径指示消息,并由该网络设备判断反向路径指示消息和所述正向路径指示消息所包括的网络设备是否相同。Optionally, the last network device can also send the reverse path indication message to the first network device or any network device included in the communication system, and the network device determines the reverse path indication message and the forward path indication message. Whether the included network devices are the same.
本实施例对步骤202和步骤203之间的执行时序不做限定。This embodiment does not limit the execution sequence between step 202 and step 203 .
步骤204、末网络设备向第二中间网络设备发送反向配置报文。Step 204: The last network device sends a reverse configuration message to the second intermediate network device.
本实施例所示的第二中间网络设备,为所述目标传输路径所包括的多个中间网络设备中,与所述末网络设备D位置相邻且通过光纤连接的中间网络设备。以图3所示为例,该第二中间网络设备为与末网络设备D通过光纤连接的网络设备G。The second intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the last network device D and connected by an optical fiber among the multiple intermediate network devices included in the target transmission path. Taking the example shown in FIG. 3 , the second intermediate network device is a network device G that is connected to the last network device D through an optical fiber.
本实施例对步骤202和步骤204之间的执行时序不做限定。This embodiment does not limit the execution sequence between step 202 and step 204 .
步骤205、第一中间网络设备接收来自首网络设备的正向配置报文。Step 205: The first intermediate network device receives the forward configuration message from the first network device.
步骤206、第一中间网络设备根据正向配置报文配置路由。Step 206: The first intermediate network device configures a route according to the forward configuration message.
继续以图3所示为例,本实施例以第一中间网络设备E仅接收到来自网络设备A的正向配置报文,尚未接收到来自末网络设备D的反向配置报文为例进行示例性说明。Continuing to take the example shown in FIG. 3 , in this embodiment, 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 as an example. Exemplary illustration.
在所述第一中间网络设备E接收到正向配置报文的情况下,第一中间网络设备首先需要判断是否根据已接收到的该正向配置报文配置路由,具体地判断过程如下:When the first intermediate network device E receives the forward configuration packet, the first intermediate network device first needs to determine whether to configure a route according to the received forward configuration packet, and the specific determination process is as follows:
第一中间网络设备解析出正向配置报文所包括的目标业务的目标标识,进而判断第一中间网络设备是否已配置具有目标标识的目标业务的路由。例如,所述第一中间网络设备是否已配置路由表,该路由表包括目标标识和用于传输具有目标标识的目标业务的端口标识。The first intermediate network device parses out the target identifier of the target service included in the forward configuration packet, and further determines 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 been configured with a routing table, where the routing table includes a target identifier and a port identifier for transmitting the target service with the target identifier.
若是,则说明第一中间网络设备已配置具有目标标识的目标业务的路由。若否,则说明第一中间网络设备未配置具有目标标识的目标业务的路由。If yes, it means that the first intermediate network device has configured the route of the target service with the target identifier. If not, it means that the first intermediate network device is not configured with the route of the target service with the target identifier.
本实施例以第一中间网络设备未配置具有目标标识的目标业务的路由为例进行示例性说明。在所述第一中间网络设备未配置具有目标标识的目标业务的路由的情况下,所述第一中间网络设备根据正向配置报文所包括的正向路径指示消息,确定第一中间网络设备E对应的第一端口的标识为E1,第二端口的标识为E2。In this embodiment, the first intermediate network device is not configured with the route of the target service with the target identifier as an example for illustrative description. In the case that the route of the target service with the target identifier is not configured on the first intermediate network device, the first intermediate network device determines the first intermediate network device according to the forward path indication message included in the forward configuration packet The identifier of the first port corresponding to E is E1, and the identifier of the second port is E2.
所述第一中间网络设备E配置端口E1至端口E2之间的路由,从而实现第一中间网络设备E与相邻网络设备(即首网络设备A和网络设备F)之间的路由。具体地,所述第一中间网络设备可生成路由表,该路由表包括目标标识、端口E1和端口E2的对应关系。The first intermediate network device E configures the route between the ports E1 and E2, so as to realize the route between the first intermediate network device E and adjacent network devices (ie, 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 the target identifier, the corresponding relationship between the port E1 and the port E2.
可见,若首网络设备A作为具有目标标识的目标业务的发起方,在第一中间网络设备E经由端口E1接收到具有该目标标识的目标业务的情况下,第一中间网络设备E通过查询该路由表,将来自端口E1的目标业务传输至端口E2。从而使得目标业务能够经由连接在端口E2和中间网络设备F的端口F1之间的光纤,传输至中间网络设备F。It can be seen that, if the first network device A acts as the initiator of the target service with the target identifier, when the first intermediate network device E receives the target service with the target identifier via the port E1, the first intermediate network device E searches the The routing table transmits the target service from port E1 to port E2. Therefore, the target service can be transmitted to the intermediate network device F via the optical fiber connected between the port E2 and the port F1 of the intermediate network device F.
若末网络设备D作为目标业务的发起发,在第一中间网络设备E经由端口E2接收到具有该目标标识的目标业务的情况下,该第一中间网络设备E通过查询该路由表,将来自端口E2的目标业务传输至端口E1。从而使得目标业务能够经由连接在端口E1和首网络设备A的端口A2之间的光纤,传输至首网络设备A。If the network device D is not used as the originator 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 searches the routing table to send the target service from the target service. The target service of port E2 is transmitted to port E1. Therefore, the target service can be transmitted to the first network device A via the optical fiber connected between the port E1 and the port A2 of the first network device A.
本实施例以该第一中间网络设备的数量为一个为例进行示例性说明,在其他示例中,该第一中间网络节点的数量可为多个。各该第一网络设备配置路由的具体过程的说明,请详见本实施例所示对第一网络设备E配置路由的过程的说明,具体不做赘述。This embodiment is exemplified by taking the number of the first intermediate network device as one as an example, and in other examples, the number of the first intermediate network node may be multiple. For the description of the specific process of configuring the route by each of the first network devices, please refer to the description of the process of configuring the route by the first network device E shown in this embodiment, and details are not repeated.
步骤207、第一中间网络设备向第三中间网络设备发送正向配置报文。Step 207: The first intermediate network device sends a forward configuration message to the third intermediate network device.
本实施例所示的第三中间网络设备,为所述目标传输路径所包括的多个中间网络设备中,与所述第一中间网络设备位置相邻且通过光纤连接的中间网络设备。以图3所示为例,该第三中间网络设备为与第一中间网络设备E通过光纤连接的网络设备F。The third intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the first intermediate network device and connected by an optical fiber among the plurality of intermediate network devices included in the target transmission path. Taking the example shown in FIG. 3 , the third intermediate network device is a network device F connected to the first intermediate network device E through an optical fiber.
步骤208、第二中间网络设备接收来自末网络设备的反向配置报文。Step 208: The second intermediate network device receives the reverse configuration message from the last network device.
本实施例对步骤205和步骤208之间的执行时序不做限定。This embodiment does not limit the execution sequence between step 205 and step 208 .
步骤209、第二中间网络设备根据反向配置报文配置路由。Step 209: The second intermediate network device configures a route according to the reverse configuration message.
继续以图3所示为例,本实施例以第二中间网络设备G仅接收到来自末网络设备D的反向配置报文,尚未接收到来自首网络设备A的正向配置报文为例进行示例性说明。Continuing to take FIG. 3 as an example, in this embodiment, the second intermediate network device G only receives the reverse configuration message from the last network device D, but has not received the forward configuration message from the first network device A as an example Exemplary description.
在所述第二中间网络设备G接收到反向配置报文的情况下,第二中间网络设备G首先判断是否根据已接收到的该反向配置报文配置路由,具体地判断过程如下:When the second intermediate network device G receives the reverse configuration message, the second intermediate network device G first determines whether to configure the route according to the received reverse configuration message, and the specific determination process is as follows:
第二中间网络设备G解析出反向配置报文所包括的目标业务的目标标识,进而判断第二中间网络设备是否已配置具有目标标识的目标业务的路由。例如,所述第二中间网络设备是否已配置路由表,该路由表包括目标标识和用于传输具有目标标识的目标业务的端口标识。The second intermediate network device G parses out the target identifier of the target service included in the reverse configuration packet, 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 been configured with a routing table, where the routing table includes a target identifier and a port identifier for transmitting the target service with the target identifier.
若是,则说明第二中间网络设备已配置具有目标标识的目标业务的路由。若否,则说明第二中间网络设备未配置具有目标标识的目标业务的路由。If yes, it means that the second intermediate network device has configured the route of the target service with the target identifier. If not, it means that the second intermediate network device is not configured with the route of the target service with the target identifier.
本实施例以第二中间网络设备未配置具有目标标识的目标业务的路由为例进行示例性说明。在所述第二中间网络设备未配置具有目标标识的目标业务的路由的情况下,所述第二中间网络设备根据反向配置报文所包括的反向路径指示消息,确定第二中间网络设备G对应的第一端口的标识为G1,第二端口的标识为G2。This embodiment is exemplified by taking as an example that the second intermediate network device is not configured with the route of the target service with the target identifier. In the case where the route of the target service with the target identifier is not configured on the second intermediate network device, the second intermediate network device determines the second intermediate network device according to the reverse path indication message included in the reverse configuration packet The identifier of the first port corresponding to G is G1, and the identifier of the second port is G2.
所述第二中间网络设备G配置端口G1至端口G2之间的路由,从而实现第二中间网络设备G与相邻网络设备(即末网络设备D和网络设备F)之间的路由。具体地,所述第二中间网络设备可生成路由表,该路由表包括目标标识、端口G1和端口G2的对应关系。The second intermediate network device G configures the route between the port G1 and the port G2, so as to realize the route between the second intermediate network device G and adjacent network devices (ie, 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 the target identifier, the corresponding relationship between the port G1 and the port G2.
可见,若首网络设备A作为具有目标标识的目标业务的发起方,在第二中间网络设备G经由端口G1接收到具有该目标标识,来自中间网络设备F的目标业务的情况下,第二中间网络设备G通过查询该路由表,将来自端口G1的目标业务传输至端口G2。从而使得来自中间网络设备F的目标业务能够经由连接在端口G2和末网络设备D之间的光纤,传输至末网络设备D。It can be seen that if the first network device A acts as the initiator of the target service with the target identifier, when the second intermediate network device G receives the target service with the target identifier from the intermediate network device F via the port G1, the second intermediate network device G The network device G transmits the target service from the port G1 to the port G2 by querying the routing table. Therefore, the target service from the intermediate network device F can be transmitted to the last network device D via the optical fiber connected between the port G2 and the last network device D.
若末网络设备D作为目标业务的发起发,在第二中间网络设备G经由端口G2接收到具有该目标标识的目标业务的情况下,该第二中间网络设备G通过查询该路由表,将来自端口G2的目标业务传输至端口G1。从而使得来自末网络设备D的目标业务能够经由连接在端口G1和第三中间网络设备F的端口F2之间的光纤,传输至第三中间网络设备F。If the network device D is not used as the originator of the target service, in the case that the second intermediate network device G receives the target service with the target identifier via the port G2, the second intermediate network device G will query the routing table to send the target service from the target service. The target traffic of port G2 is transmitted to port G1. Therefore, the target service from the last network device D can be transmitted to the third intermediate network device F via the optical fiber connected between the port G1 and the port F2 of the third intermediate network device F.
本实施例以第二中间网络设备的数量仅为一个为例进行示例性说明,在其他示例中,该第二中间网络节点的数量可为多个。各第二中间网络设备配置路由的具体过程的说明,请详见本实施例所示对第二中间网络设备G配置路由的过程的说明,具体不做赘述。In this embodiment, the number of the second intermediate network device is only one example for illustrative description, and in other examples, the number of the second intermediate network node may be multiple. For the description of the specific process of configuring the route by each second intermediate network device, please refer to the description of the process of configuring the route by the second intermediate network device G shown in this embodiment, and details are not repeated.
步骤210、第二中间网络设备向第三中间网络设备发送反向配置报文。Step 210: The second intermediate network device sends a reverse configuration packet to the third intermediate network device.
本实施例对步骤207和步骤210之间的执行时序不做限定。This embodiment does not limit the execution sequence between step 207 and step 210 .
步骤211、第三中间网络设备接收正向配置报文和反向配置报文。Step 211: The third intermediate network device receives the forward configuration message and the reverse configuration message.
步骤212、第三中间网络设备根据正向配置报文或反向配置报文配置路由。Step 212: The third intermediate network device configures a route according to the forward configuration message or the reverse configuration message.
由上述无执行时序限定的步骤207和步骤210所示可知,第一中间网络设备会向第三中间网络设备发送正向配置报文,且第二中间网络设备会向第三中间网络设备发送反向配置报文,以下对第三中间网络设备具体如何配置路由的两种可选地情况进行说明:It can be seen from the above steps 207 and 210 that are not limited by the execution timing, the first intermediate network device will send a forward configuration packet to the third intermediate network device, and the second intermediate network device will send a reverse configuration message to the third intermediate network device. The following describes two optional situations for how the third intermediate network device configures the route:
情况1Case 1
本情况中,如图3所示,第三中间网络设备F先接收到包括目标标识的正向配置报文,后接收到包括该目标标识的反向配置报文。In this case, as shown in FIG. 3 , the third intermediate network device F first receives the forward configuration message including the target identifier, and then receives the reverse configuration message including the target identifier.
在此种情况下,第三中间网络设备F根据正向配置报文配置路由,具体配置过程的说明,请参见步骤206所示的第一中间网络设备根据正向配置报文对路由的配置过程,具体不做赘述。In this case, the third intermediate network device F configures the route according to the forward configuration message. For the description of the specific configuration process, please refer to the configuration process of the first intermediate network device according to the forward configuration message shown in step 206. , and do not go into details.
在第三中间网络设备F根据正向配置报文已对路由配置完成后,第三中间网络设备再接收到反向配置报文的情况下,所述第三中间网络设备F解析已接收到的反向配置报文。所述第三中间网络设备判断正向配置报文和反向配置报文是否满足预设条件。In the case that the third intermediate network device F receives the reverse configuration packet after the third intermediate network device F has completed the routing configuration according to the forward configuration packet, the third intermediate network device F parses the received Reverse configuration message. The third intermediate network device judges whether the forward configuration message and the reverse configuration message satisfy a preset condition.
其中,该预设条件为所述正向配置报文和所述反向配置报文均用于配置所述目标传输路径的路由。若是,则说明该反向配置报文所要配置的路由,已根据正向配置报文配置完成。若否,则说明该反向配置报文所要配置的路由,尚未配置完成。具体判断过程如下:The preset condition is that both the forward configuration message and the reverse configuration message are used to configure the route of the target transmission path. If yes, it means that the route to be configured in the reverse configuration packet has been configured according to the forward configuration packet. If not, it means that the route to be configured in the reverse configuration message has not been configured yet. The specific judgment 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 packet.
其次,该第三中间网络设备判断正向配置报文和反向配置报文是否满足第一预设子条件。所述第一预设子条件为所述正向配置报文和所述反向配置报文均包括所述目标标识,且所述正向配置报文包括与所述反向路径指示消息所指示的传输方向相反的正向路径指示消息。Next, the third intermediate network device determines whether the forward configuration message and the reverse configuration message satisfy the first preset sub-condition. The first preset sub-condition is that both the forward configuration message and the reverse configuration message include the target identifier, and the forward configuration message includes the same as that indicated by the reverse path indication message. The forward path indication message is transmitted in the opposite direction.
例如,参见表2所示可知,正向配置报文所包括的字段“Protocol Type”的取值为“0”,而反向配置报文的字段“Protocol Type”的取值为“1”。For example, as shown in Table 2, the value of the field "Protocol Type" included in the forward configuration packet is "0", while the value of the field "Protocol Type" of the reverse configuration packet is "1".
再次,在该第三中间网络设备判断所述正向配置报文和所述反向配置报文满足该第一预设子条件的情况下,所述第三中间网络设备进一步判断正向配置报文和反向配置报文是否满足第二预设子条件。该第二预设子条件为所述正向配置报文和所述反向配置报文均用于配置所述目标传输路径的路由。具体地,该第二预设子条件是指,所述正向配置报文所包括的正向路径指示消息和反向配置报文所包括的反向路径指示消息是否相同。Again, when the third intermediate network device determines that the forward configuration packet and the reverse configuration packet satisfy the first preset sub-condition, the third intermediate network device further determines that the forward configuration packet whether the message and the reverse configuration message satisfy the second preset sub-condition. The second preset sub-condition is that both the forward configuration message and the reverse configuration message are used to configure the route of the target transmission path. Specifically, the second preset sub-condition 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.
具体的,参见上述表1和表4的说明可知,正向路径指示消息和反向路径指示消息均包括目标传输路径中各个网络设备的标识,以及与该标识对应的各网络设备所包括的用于配置路由的端口标识。可见,本实施例所示的正向路径指示消息和反向路径指示消息相同是指,正向路径指示消息和反向路径指示消息所包括的各个网络设备的标识相同,且与该标识对应的各网络设备所包括的用于配置路由的端口标识也相同。Specifically, referring to the descriptions in Table 1 and Table 4 above, it can be seen that the forward path indication message and the reverse path indication message both include the identifier of each network device in the target transmission path, and the identifiers included in each network device corresponding to the identifier. Port ID for configuring routing. It can be seen that the same forward path indication message and reverse path indication message shown in this embodiment means that the identifiers of each network device included in the forward path indication message and the reverse path indication message are the same, and the identifiers corresponding to the identifiers are the same. The port identifiers included in each network device for configuring routes are also the same.
例如,在目标传输路径为图3所示的传输路径,则正向路径指示消息和反向路径指示消息均包括网络设备A、E、F、G以及D的标识,以及各个网络设备所包括的用于配置路由的端口标识,则说明正向配置报文和反向配置报文满足该第二预设子条件。For example, if 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 network devices A, E, F, G, and D, and the The port identifier used to configure the route indicates that the forward configuration message and the reverse configuration message satisfy the second preset sub-condition.
再次,在该第三中间网络设备确定正向配置报文和反向配置报文满足该第一预设子条件以及该第二预设子条件的情况下,所述第三中间网络设备确定正向配置报文和反向配置报文满足预设条件。该第三中间网络设备确定反向配置报文所要配置的路由,已被第三中间网络设备根据正向配置报文配置完成。Again, when the third intermediate network device determines that the forward configuration packet and the reverse configuration packet satisfy the first preset sub-condition and the second preset sub-condition, the third intermediate network device determines that the forward configuration packet and the reverse configuration packet satisfy the first preset sub-condition and the second preset sub-condition. The forward configuration packets and reverse configuration packets meet the preset conditions. The third intermediate network device determines that the route to be configured in the reverse configuration message has been configured by the third intermediate network device according to the forward configuration message.
上述所示的示例,第三中间网络设备先解析反向配置报文的目标标识以及反向路径指示消息,在目标标识以及反向路径指示消息满足第一预设子条件的情况下,再进一步解析反向配置报文以获取反向路径指示消息。若目标标识以及反向路径指示消息不满足第一预 设子条件,则无需进一步解析反向配置报文。可见,有效的减少了消息的解析量,减少了对系统资源的占用。In the example shown above, the third intermediate network device first parses the target identifier and the reverse path indication message of the reverse configuration message, and then further parses the target identifier and the reverse path indication message when the target identifier and the reverse path indication message satisfy the first preset sub-condition. Parse the reverse configuration packet to obtain the reverse path indication message. If the target identifier and the reverse path indication message do not meet the first preset sub-conditions, it is not necessary to further parse the reverse configuration message. It can be seen that the amount of message parsing is effectively reduced, and the occupation of system resources is reduced.
可选地,也可将反向配置报文一次解析完成,从而判断反向配置报文和正向配置报文是否满足预设条件。Optionally, the reverse configuration packet can also be parsed at one time, so as to determine whether the reverse configuration packet and the forward configuration packet meet the preset conditions.
本实施例中,在第三中间网络设备确定反向配置报文所要配置的路由,已被第三中间网络设备根据正向配置报文配置完成的情况下,所述第三中间网络设备可结束该反向配置报文的传输。In this embodiment, when the third intermediate network device determines that the route to be configured in the reverse configuration message has been configured by the third intermediate network device according to the forward configuration message, the third intermediate network device may end the The transmission of the reverse configuration message.
具体地,如图3所示,第三中间网络设备已配置的路由表可知,在第三网络设备F的端口F2接收到该反向配置报文,可传输至端口F1,进而通过第三中间网络设备F和第二中间网络设备E之间所连接的光纤传输至第二中间网络设备E。Specifically, as shown in FIG. 3 , the configured routing table of the third intermediate network device shows that the reverse configuration packet received at port F2 of the third network device F can be transmitted to port F1, and then passed through the third intermediate network device F. The optical fiber connected between the network device F and the second intermediate network device E is transmitted to the second intermediate network device E.
但是,因反向配置报文所指示的路由,首网络设备A及第一中间网络设备E,均根据正向配置报文配置完成,则无需再将反向配置报文向第二中间网络设备E以及首网络设备A发送。为降低各网络设备所处理的信息量,降低网络设备拥塞的可能,第三中间网络设备结束反向配置报文的传输,第三网络设备F无需再将该反向配置报文向端口F1传输,这样有效的避免首网络设备A以及第一中间网络设备E对反向配置报文的处理。However, due to the route indicated by the reverse configuration packet, both the first network device A and the first intermediate network device E are configured according to the forward configuration packet, so there is no need to send the reverse configuration packet to the second intermediate network device. E and the first network device A send. In order to reduce the amount of information 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 packet, and the third network device F does not need to transmit the reverse configuration packet to port F1 again. , which effectively avoids the processing of the reverse configuration packet by the first network device A and the first intermediate network device E.
可选地,在其他示例中,第三中间网络设备也可将反向配置报文经由目标传输路径向首网络设备传输。在首网络设备接收到该反向配置报文后,再由首网络设备结束反向配置报文的传输。Optionally, in other examples, the third intermediate network device may also transmit the reverse configuration message to the first 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.
情况2Case 2
本情况中,第三中间网络设备F先接收到包括目标标识的反向配置报文,后接收到包括该目标标识的正向配置报文。In this case, the third intermediate network device F first receives the reverse configuration message including the target identifier, and then receives the forward configuration message including the target identifier.
在此种情况下,第三中间网络设备F根据反向配置报文配置路由,具体配置过程的说明,请参见步骤209所示的第二中间网络设备根据反向配置报文对路由的配置过程,具体不做赘述。In this case, the third intermediate network device F configures the route according to the reverse configuration message. For the description of the specific configuration process, please refer to the configuration process of the second intermediate network device according to the reverse configuration message shown in step 209. , and do not go into details.
在第三中间网络设备F根据反向配置报文已对路由配置完成后,第三中间网络设备再接收到正向配置报文的情况下,所述第三中间网络设备判断正向配置报文和反向配置报文是否满足预设条件,具体判断过程的说明,请参见上述情况1所示对预设条件的说明,具体不做赘述。After the third intermediate network device F has completed the routing configuration according to the reverse configuration packet, and the third intermediate network device receives the forward configuration packet again, the third intermediate network device determines the forward configuration packet. For the description of the specific judgment process, please refer to the description of the preset condition shown in the above case 1, and details are not repeated.
步骤213、第三中间网络设备向第二网络设备发送正向配置报文。Step 213: The third intermediate network device sends a forward configuration message to the second network device.
本实施例中,无论第三中间网络设备接收正向配置报文和反向配置报文的先后顺序,第三中间网络设备均根据已配置的路由,向第二中间网络设备发送正向配置报文。In this embodiment, regardless of the order in which the third intermediate network device receives the forward configuration packet and the reverse configuration packet, the third intermediate network device sends a forward configuration packet to the second intermediate network device according to the configured route. arts.
步骤214、第二中间网络设备向末网络设备发送正向配置报文。Step 214: The second intermediate network device sends a forward configuration message to the last network device.
对于第二中间网络设备而言,先接收到反向配置报文,后接收到正向配置报文,具体处理过程的说明,请参见步骤212的情况2所示,具体在本实施例中不做赘述。For the second intermediate network device, the reverse configuration packet is received first, and then the forward configuration packet is received. For the description of the specific processing process, please refer to Case 2 of step 212. Specifically, in this embodiment, it is not Do repeat.
具体地,第二中间网络设备可根据反向配置报文所配置的路由,向末网络设备发送该正向配置报文。Specifically, the second intermediate network device may send the forward configuration message to the end network device according to the route configured in the reverse configuration message.
步骤215、末网络设备向首网络设备发送响应消息。Step 215: The last network device sends a response message to the first network device.
在末网络设备接收到正向配置报文的情况下,所述末网络设备确定目标传输路径中,任意位置相邻且通过光纤连接的两个网络设备之间的路由已配置完成。则所述末网络设备通过目标传输路径向首网络设备发送响应消息。所述响应消息用于向所述首网络设备指示目标传输路径中,任意位置相邻且通过光纤连接的两个网络设备之间的路由已配置完成。When the last network device receives the forward configuration message, the last network device determines that in the target transmission path, the route between two network devices that are adjacent at any position and connected by optical fibers has been configured. Then the last network device sends a response message to the first network device through the target transmission path. The response message is used to indicate to the first network device that in the target transmission path, the route between two network devices that are adjacent in any position and connected by an optical fiber has been configured.
如图3所示,所述末网络设备D,依次通过网络设备G、F以及E向首网络设备A发送该响应消息。As shown in FIG. 3 , the last network device D sends the response message to the first network device A through network devices G, F and E in sequence.
步骤216、末网络设备向目标传输路径传输删除指示消息。Step 216: The last network device transmits a deletion instruction message to the target transmission path.
本实施例中,在末网络设备确定目标传输路径中的各路由已配置完成,则末网络设备可保留数据面已配置的用于传输目标业务的路由表。末网络设备在控制面删除反向配置报文。In this embodiment, after the final network device determines that each route in the target transmission path has been configured, the final network device may retain the routing table configured on the data plane for transmitting the target service. The last network device deletes the reverse configuration packet on the control plane.
可选地,末网络设备可在接收到正向配置报文的情况下,删除该反向配置报文。还可选地,末网络设备可在接收到反向配置成功指示消息的情况下,删除该反向配置报文。例如,在第三中间网络设备F确定已根据正向配置报文完成了路由的配置后,则首网络设备至第三中间网络设备F之间的任一网络设备,均无需根据反向配置报文配置用于传输目标业务的路由的情况下,该第三中间网络设备向末网络设备D传输该反向配置成功指示消息。Optionally, the terminal network device may delete the reverse configuration packet when receiving the forward configuration packet. Optionally, the terminal network device may delete the reverse configuration message when receiving the reverse configuration success indication message. For example, after the third intermediate network device F determines that the routing configuration has been completed according to the forward configuration message, any network device between the first network device and the third intermediate network device F does not need to report the route according to the reverse configuration message. In the case that the route is configured to transmit the target service, the third intermediate network device transmits the reverse configuration success indication message to the end network device D.
本实施例中,所述末网络设备向目标传输路径传输该删除指示消息。该删除指示消息至少包括目标标识、删除指令以及反向路径指示消息。目标传输路径中的网络设备在接收到该删除指示消息的情况下,获取包括该目标标识和反向路径指示消息的反向配置报文。该网络设备根据该删除指令,在控制面删除该反向配置报文。In this embodiment, the end-network device transmits the deletion instruction message to the target transmission path. The deletion instruction message includes at least a target identifier, a deletion instruction and a reverse path instruction message. The network device in the target transmission path acquires a reverse configuration message including the target identifier and the reverse path indication message when receiving the deletion instruction message. The network device deletes the reverse configuration message on the control plane according to the deletion instruction.
如图3所示,末网络设备D的反向配置报文已传输至第二中间网络设备G、以及第三中间网络设备F。第三中间网络设备F已结束反向配置报文的传输。可见,在第二中间网络设备G以及第三中间网络设备F接收到该删除指示消息的情况下,在控制面删除反向配置报文。而第三中间网络设备F再结束删除指示消息的传输,从而避免未接收到反向配置报文的首网络设备A以及第一中间网络设备E处理该删除指示消息。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 the transmission of 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. The third intermediate network device F then ends the transmission of the deletion instruction message, thereby preventing the first network device A and the first intermediate network device E that have not received the reverse configuration message from processing the deletion instruction message.
需明确地是,接收到该删除指示消息的网络设备,仅在控制面删除反向配置报文,而保留数据面所配置的路由表。从而基于该路由表能够实现对目标业务的传输。It should be clearly stated that the network device that receives the deletion instruction message only deletes the reverse configuration message on the control plane, and retains the routing table configured on the data plane. Therefore, the transmission of the target service can be realized based on the routing table.
采用本实施例所示的方法,通过两路并发且沿双向传输的配置报文配置同一目标传输路径的路由。其中,两路并发且沿双向传输具体是指,一路来自首网络设备的正向配置报文沿正向传输方向传输,另一路来自末网络设备的反向配置报文沿反向传输方向传输。通过两路并发且沿双向传输的正向配置报文和反向配置报文,配置同一目标传输路径的路由,有效的提高了配置目标传输路径的路由的效率。By using the method shown in this embodiment, a route of the same target transmission path is configured through two configuration packets that are concurrently transmitted in both directions. The two-way concurrent and bidirectional transmission specifically means that one forward configuration packet from the first network device is transmitted in the forward transmission direction, and the other reverse configuration packet from the last network device is transmitted in the reverse transmission direction. The route of the same target transmission path is configured through two concurrent forward configuration packets and reverse configuration packets transmitted in both directions, which effectively improves the efficiency of configuring the route of the target transmission path.
为更好的理解,以下对比于已有方案进行说明:For a better understanding, the following descriptions are compared with the existing solutions:
例如,若目标传输路径包括依次连接的10个网络设备。若通过已有方案,则需要来自首网络设备的用于配置路由的报文在10个网络设备中依次传输,以使该10个网络设备依次配置路由。For example, if the target transmission path includes 10 network devices connected in sequence. If the existing solution is adopted, the packets used for configuring the route from the first network device need to be transmitted in sequence among 10 network devices, so that the 10 network devices can configure routes in sequence.
而采用本实施例所示的方法,目标传输路径所包括的10个网络设备中的5个网络设备能够基于正向配置报文配置路由,而其余的5个网络设备能够根据反向配置报文配置路由。However, by using the method shown in this embodiment, 5 network devices among the 10 network devices included in the target transmission path can configure routes based on forward configuration packets, and the remaining 5 network devices can configure routes according to reverse configuration packets. Configure routing.
可见,若已有方案配置目标传输路径,则需要T时长进行配置,而本实施例仅需要T/2的时长。It can be seen that if there is an existing solution to configure the target transmission path, T duration is required for configuration, and this embodiment only requires T/2 duration.
简而言之,已有方案中的目标传输路径中,所有网络设备均需要根据同一配置报文配置路由,而本实施例所示中,部分网络设备根据正向配置报文配置路由,而另一部分网络设备根据反向配置报文配置路由。有效的减少了配置目标传输路径的路由的时长。In short, in the target transmission path in the existing solution, all network devices need to configure routes according to the same configuration message, but as shown in this embodiment, some network devices configure routes according to forward configuration messages, while others Some network devices configure routes based on reverse configuration packets. This effectively reduces the time for configuring the route of the target transmission path.
而且本实施例中,任一网络设备无论是根据正向配置报文还是根据反向配置报文所配置的路由,均能够实现正反两个方向的路由,无需针对业务不同的传输方向配置不同的方向的路由。In addition, in this embodiment, any network device can implement routing in both forward and reverse directions regardless of whether the route is configured according to the forward configuration message or the reverse configuration message, and there is no need to configure different routes for different service transmission directions. route in the direction.
例如,中间网络设备F针对目标业务已配置端口F1至端口F2的路由。那么若目标业务沿正向传输方向传输,则中间网络设备F经由端口F1接收到目标业务后,可将该目标业务传输至端口F2,再经由端口F2向中间网络设备G传输。若目标业务沿反向传输方向传输,则中间网络设备F经由端口F2接收到目标业务后,将该目标业务传输至端口F1,再经由端口F1向中间网络设备E传输。For example, the intermediate network device F has configured a route from port F1 to port F2 for the target service. Then, if the target service is transmitted in the forward transmission direction, after receiving the target service via the port F1, the intermediate network device F can transmit the target service to the port F2, and then transmit the target service to the intermediate network device G via the port F2. If the target service is transmitted in the reverse transmission direction, after receiving the target service via the port F2, the intermediate network device F transmits the target service to the port F1, and then transmits the target service to the intermediate network device E via the port F1.
图2所示的实施例说明,为实现对目标业务在目标传输路径中的传输,如何配置目标传输路径的路由。而图4所示的实施例说明若用于传输目标业务的初始传输路径出现故障,则如何保证目标业务的正常传输。The embodiment shown in FIG. 2 illustrates how to configure the route of the target transmission path in order to realize the transmission of the target service in the target transmission path. The embodiment shown in FIG. 4 illustrates how to ensure the normal transmission of the target service if the initial transmission path for transmitting the target service fails.
步骤401、首网络设备接收故障指示消息。Step 401: The first network device receives a fault indication message.
本实施例所示的故障指示消息为符合RSVP协议的消息,且该故障指示消息用于指示传输目标业务的初始传输路径出现故障。可见,在首网络设备接收到该故障指示消息的情况下,确定初始传输路径出现故障,无法继续传输目标业务。The fault indication message shown in this embodiment is a message conforming to the RSVP protocol, and the fault indication message is used to indicate that the initial transmission path for transmitting the target service is faulty. It can be seen that when the first network device receives the fault indication message, it is determined that the initial transmission path is faulty, and the target service cannot be continuously transmitted.
具体参见图1所示,若初始传输路径包括网络设备A、B、C以及D。本示例故障的原因可为网络设备B和网络设备C之间所连接的光纤出现断纤,从而导致目标业务无法沿初始传输路径传输为例进行示例性说明。Specifically, as shown in 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 as an example to illustrate.
本实施例中,若网络设备B在超过预设时长的情况下,还未接收到的来自网络设备C的消息,则可确定网络设备B和网络设备C之间出现断纤。需明确地是,本实施例对网络设备B确定网络设备B和网络设备C之间出现断纤的情况的说明为可选地示例,不做限定。In this embodiment, if the network device B has not yet received a message from the network device C when the preset time period is exceeded, it can be determined that a fiber break occurs between the network device B and the network device C. It should be clearly stated that, in this embodiment, the description of the situation in which the network device B determines that a fiber disconnection occurs between the network device B and the network device C is an optional example, which is not limited.
网络设备B生成该故障指示消息,该故障指示消息包括目标标识以及初始传输路径的标识。具体地,网络设备B具有多个端口,例如端口B1、B2……BN,本实施例对N的具体取值不做限定。若网络设备B的端口B1通过光纤与网络设备C连接,网络设备B确定网络设备B和网络设备C之间出现断纤,则网络设备B获取经由端口B1的目标业务的目标标识。即在网络设备B和网络设备C之间光纤出现断纤的情况下,具有该目标标识的目标业务无法在网络设备B和网络设备C之间正常传输。The network device B generates the fault indication message, where the fault indication message includes the target identifier and the identifier of the initial transmission path. Specifically, the network device B has multiple ports, for example, ports B1, B2, . . . BN, and the specific value of N is not limited in this embodiment. If port B1 of network device B is connected to network device C through an optical fiber, and network device B determines that there is a fiber break between network device B and network device C, network device B obtains the target identifier of the target service via port B1. That is, when the optical fiber between the network device B and the network device C is disconnected, the target service with the target identifier cannot be normally transmitted between the network device B and the network device C.
需明确地是,本实施例所示的故障以网络设备B和网络设备C之间所连接的光纤出现断纤为例,在其他示例中,也可为初始传输路径中,任意两个通过光纤连接的两个网络设备之间出现断纤。例如,网络设备A和网络设备B之间的出现断纤。It should be clearly stated that the fault shown in this embodiment is taken as an example where the optical fiber connected between the network device B and the network device C is broken. A fiber break occurs between two connected network devices. For example, a fiber break occurs between network device A and network device B.
或者,本实施例所示的故障还可为任一网络设备出现故障等,具体在本实施例中不做 限定。Alternatively, the failure shown in this embodiment may also be a failure of any network device, etc., which is not specifically limited in this embodiment.
步骤402、末网络设备接收故障指示消息。Step 402, the last network device receives the fault indication message.
本步骤所示的末网络设备所接收到的故障指示消息具体可参见步骤401所示,具体不做赘述。例如,由初始传输路径中的网络设备B向末网络设备D发送故障指示消息。For details of the fault indication message received by the end network device shown in this step, reference may be made to step 401, and details are not repeated. For example, the failure indication message is sent by the network device B in the initial transmission path to the last network device D.
又如,在首网络设备获取到该故障指示消息的情况下,首网络设备可将该故障指示消息转发至末网络设备。又如,首网络设备可将该故障指示消息发送给网管设备,再由网管设备将该故障指示消息发送给末网络设备。For another example, when the first network device acquires the fault indication message, the first network device may forward the fault 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.
本实施例对步骤401和步骤402之间的执行时序不做限定。This embodiment does not limit the execution sequence between step 401 and step 402 .
步骤403、首网络设备根据正向配置报文配置路由。Step 403: The first network device configures a route according to the forward configuration message.
本实施例所示的正向配置报文用于配置目标传输路径的路由,其中,该目标传输路径用于传输该目标业务。即在用于传输目标业务的初始传输路径出现故障的情况下,可将用于传输目标业务的路径由初始传输路径切换至目标传输路径。对目标传输路径的具体说明,请详见图2所示的实施例,具体在本实施例中不做赘述。The forward configuration message shown in this embodiment is used to configure the route of the target transmission path, where the target transmission path is used to transmit the target service. That is, when the initial transmission path for transmitting the target service fails, the path for transmitting the target service can be switched from the initial transmission path to the target transmission path. For the specific description of the target transmission path, please refer to the embodiment shown in FIG. 2 for details, and details are not repeated in this embodiment.
本实施例以首网络设备生成该正向配置报文为例。在首网络设备获取到该故障指示消息的情况下,根据故障指示消息所包括的目标标识以及初始传输路径的标识可知,用于传输目标业务的初始传输路径已出现故障,无法继续传输目标业务。首网络设备可根据OSPF或PCEP等协议获取正向配置报文,对正向配置报文的具体内容以及配置过程的说明,具体说明请参见步骤201所示,具体不做赘述。This embodiment takes the generation of the forward configuration packet by the first network device as an example. When the first network device obtains the fault indication message, according to the target identifier and the identifier of the initial transmission path included in the fault indication message, it can be known that the initial transmission path used for transmitting the target service has failed, and the target service cannot be continuously transmitted. The first network device can obtain the forward configuration packet according to protocols such as OSPF or PCEP. For the description of the specific content of the forward configuration packet and the configuration process, please refer to step 201 for details, and details are not repeated.
若由网管设备获取该正向配置报文,则首网络设备将已接收到的故障指示消息向网管设备发送,或网络设备B直接将该故障指示消息向网管设备发送。网管设备配置正向配置报文的过程,请参见首网络设备配置正向配置报文的过程,具体不做赘述。If the network management device obtains the forward configuration message, the first network device sends the received fault indication message to the network management device, or the network device B directly sends the fault indication message to the network management device. For the process of configuring the forward configuration message on the network management device, see the process of configuring the forward configuration message on the first network device, and details are not repeated here.
首网络设备根据正向配置报文配置路由的具体过程的说明,请详见步骤201所示,具体不做赘述。For the description of the specific process of configuring the route according to the forward configuration message by the first network device, please refer to step 201 for details, and details will not be repeated.
步骤404、首网络设备向第一中间网络设备发送正向配置报文。Step 404: The first network device sends a forward configuration message to the first intermediate network device.
本实施例所示的步骤404的具体执行过程的说明,请详见图2所示的步骤202的说明,具体不做赘述。For the description of the specific execution process of step 404 shown in this embodiment, please refer to the description of step 202 shown in FIG. 2 for details, and details are not repeated.
步骤405、末网络设备根据反向配置报文配置路由。Step 405: The final network device configures a route according to the reverse configuration message.
具体地,本实施例以末网络设备根据已接收到的故障指示消息配置反向配置报文为例进行示例性说明。对反向配置报文的具体内容以及由末网络设备配置该反向配置报文的过程的说明,具体说明请参见步骤203所示,具体不做赘述。Specifically, this embodiment is exemplified by taking the last network device configuring the reverse configuration message according to the received fault indication message as an example. For the description of the specific content of the reverse configuration message and the process of configuring the reverse configuration message by the last network device, please refer to step 203 for the specific description, which will not be repeated.
本实施例也可由网管设备获取该反向配置报文,具体过程请参见图2所示的步骤203所示,具体不做赘述。In this embodiment, the network management device can also obtain the reverse configuration message. For a specific process, please refer to step 203 shown in FIG. 2 , and details are not repeated.
末网络设备根据反向配置报文配置路由的具体过程,请详见图2所示的步骤203所示,具体不做赘述。For the specific process of configuring the route by the network device according to the reverse configuration message, please refer to step 203 shown in FIG. 2 for details, and details will not be repeated.
步骤406、末网络设备向第二中间网络设备发送反向配置报文。Step 406: The last network device sends a reverse configuration message to the second intermediate network device.
步骤407、第一中间网络设备接收来自首网络设备的正向配置报文。Step 407: The first intermediate network device receives the forward configuration message from the first network device.
步骤408、第一中间网络设备根据正向配置报文配置路由。Step 408: The first intermediate network device configures a route according to the forward configuration message.
步骤409、第一中间网络设备向第三中间网络设备发送正向配置报文。Step 409: The first intermediate network device sends a forward configuration packet to the third intermediate network device.
步骤410、第二中间网络设备接收来自末网络设备的反向配置报文。Step 410: The second intermediate network device receives the reverse configuration message from the last network device.
步骤411、第二中间网络设备根据反向配置报文配置路由。Step 411: The second intermediate network device configures a route according to the reverse configuration message.
步骤412、第二中间网络设备向第三中间网络设备发送反向配置报文。Step 412: The second intermediate network device sends a reverse configuration packet to the third intermediate network device.
步骤413、第三中间网络设备接收正向配置报文和反向配置报文。Step 413: The third intermediate network device receives the forward configuration message and the reverse configuration message.
步骤414、第三中间网络设备根据正向配置报文或反向配置报文配置路由。Step 414: The third intermediate network device configures a route according to the forward configuration message or the reverse configuration message.
步骤415、第三中间网络设备向第二网络设备发送正向配置报文。Step 415: The third intermediate network device sends a forward configuration message to the second network device.
步骤416、第二中间网络设备向末网络设备发送正向配置报文。Step 416: The second intermediate network device sends a forward configuration message to the last network device.
步骤417、末网络设备向首网络设备发送响应消息。Step 417: The last network device sends a response message to the first network device.
步骤418、末网络设备向目标传输路径传输删除指示消息。Step 418: The last network device transmits a deletion instruction message to the target transmission path.
本实施例所示的步骤406至步骤418的具体执行过程,请详见图2所示的步骤204至步骤216所示,具体执行过程不做赘述。For the specific execution process of step 406 to step 418 shown in this embodiment, please refer to step 204 to step 216 shown in FIG. 2 for details, and the specific execution process will not be repeated.
采用本实施例所示的方法,通信系统具有故障自动恢复的功能。首网络设备基于来自初始传输路径的故障指示消息,重新获取能够传输目标业务的目标传输路径。首网络设备向目标传输路径传输正向配置报文以配置路由。末网络设备也会获取来自初始传输路径的该故障指示消息,进而向目标传输路径发送反向配置报文,以配置路由。With the method shown in this embodiment, the communication system has the function of automatic recovery from failure. The first network device reacquires a target transmission path capable of transmitting the target service based on the failure indication message from the initial transmission path. The first network device transmits a forward configuration packet to the target transmission path to configure the route. The final network device will also acquire the fault indication message from the initial transmission path, and then send a reverse configuration packet to the target transmission path to configure the route.
可见,在初始传输路径出现故障的情况下,能够通过两路并发且沿双向传输的配置报文配置同一目标传输路径的路由,有效的提高了配置目标传输路径的路由的效率。It can be seen that in the case of failure of the initial transmission path, the route of the same target transmission path can be configured through two configuration packets concurrently transmitted in both directions, which effectively improves the efficiency of configuring the route of the target transmission path.
而且采用本实施例所示的方法,因通过两路并发且沿双向传输的配置报文配置同一目标传输路径的路由,所以在目标传输路径所包括的网络设备的数量增加的场景下,能够有效的降低配置目标传输路径的路由的时长。避免因目标传输路径所包括的网络设备的数量增加,而出现重新配置目标业务的传输路径性能劣化的情况。In addition, by using the method shown in this embodiment, since the route of the same target transmission path is configured through two configuration packets that are concurrently transmitted in both directions, in a scenario where the number of network devices included in the target transmission path increases, the route can be effectively to reduce the duration of the route to configure the destination transport path. It is avoided that the performance of the transmission path for reconfiguring the target service is degraded due to the increase in the number of network devices included in the target transmission path.
在图4所示的实施例中,说明了若用于传输目标业务的初始传输路径出现故障,如何配置目标传输路径,以保证目标业务的正常传输。基于图4所示的实施例,以下结合图5所示对如何有效的提高配置目标传输路径的效率的过程进行说明:In the embodiment shown in FIG. 4 , if the initial transmission path for transmitting the target service fails, how to configure the target transmission path to ensure the normal transmission of the target service. Based on the embodiment shown in FIG. 4 , the following describes the process of how to effectively improve the efficiency of configuring the target transmission path with reference to FIG. 5 :
步骤501、网管设备接收故障指示消息。Step 501: The network management device receives a fault indication message.
本实施例对故障指示消息的具体说明,请详见图4所示的步骤401所示,具体在本实施例中不做赘述。For a specific description of the fault indication message in this embodiment, please refer to step 401 shown in FIG. 4 for details, and details are not repeated in this embodiment.
以图6所示为例,用于传输目标业务的初始传输路径包括网络设备A、B、C以及D。在用于传输目标业务的初始传输路径中,网络设备B确定网络设备B和网络设备C之间出现断纤,则所述网络设备B向网管设备101发送该故障指示消息。Taking the example shown in FIG. 6 , the initial transmission path for transmitting the target service 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 disconnection 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 .
步骤502、网管设备向首网络设备发送正向配置报文。Step 502: The network management device sends a forward configuration message to the first network device.
本实施例所示的该故障指示消息可用于指示故障事件,例如,本实施例所示的故障事件为初始传输路径中,网络设备B和网络设备C之间出现断纤。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 a fiber break between network device B and network device C in the initial transmission path.
在网管设备确定故障事件后,为提高配置目标传输路径的效率,则网管设备确定目标传输路径。After the network management device determines the fault event, in order to improve the efficiency of configuring the target transmission path, the network management device determines the target transmission path.
该目标传输路径为用于传输目标业务的路径,且所述目标传输路径中,包括初始传输路径中的至少一个中间网络设备。可见,目标传输路径所包括的多个中间网络设备,与初始传输路径所包括的多个中间网络设备中,部分重合。The target transmission path is a path for transmitting the target service, and the target transmission path includes at least one intermediate network device in the initial transmission path. It can be seen that the multiple intermediate network devices included in the target transmission path partially overlap with the multiple intermediate network devices included in the initial transmission path.
本实施例对初始传输路径和目标传输路径所重合的中间网络设备的数量不做限定,只要目标传输路径所包括的任意相邻的两个网络设备之间所连接的光纤,不是故障指示消息所指示的出现断纤的光纤即可。This embodiment does not limit the number of intermediate network devices on which the initial transmission path and the target transmission path overlap, as long as the optical fibers connected between any two adjacent network devices included in the target transmission path are not specified in the fault indication message. The indicated fiber with a broken fiber can be used.
继续以图6所示为例,初始传输路径包括网络设备A、B、C以及D。而网管设备所获取到的目标传输路径包括网络设备A、B、E、F、G、C以及D。可见,因目标传输路径中,网络设备B和网络设备C不再通过出现断纤的光纤600直接连接,从而保证了目标传输路径能够正常传输目标业务。Continuing to take the example shown in FIG. 6 , the initial transmission path includes network devices A, B, C and D. The target transmission paths acquired by the network management device include network devices A, B, E, F, G, C, and D. It can be seen that in the target transmission path, the network device B and the network device C are no longer directly connected through the optical fiber 600 with the broken fiber, thus ensuring that the target transmission path can transmit the target service normally.
具体地,网管设备根据故障指示消息确定网络设备A和网络设备B之间的光纤处于正常状态,网络设备C和网络设备D之间的光纤处于正常状态。为提高对目标业务进行重路由配置的效率,则无需再次对网络设备A和网络设备B之间的路由,以及对网络设备C和网络设备D之间的路由再次进行配置。Specifically, the network management device determines, according to the fault indication message, that the optical fiber between network device A and network device B is in a normal state, and the optical fiber between network device C and network device D is in a normal state. In order to improve the efficiency of rerouting configuration for the target service, it is not necessary to reconfigure the route between network device A and network device B, and the route between network device C and network device D again.
对比初始传输路径(包括网络设备A、B、C以及D)和目标传输路径(包括网络设备A、B、E、F、G、C以及D),可知,初始路径和目标传输路径中的中间网络设备B和C为重合的中间网络设备,从而在配置目标传输路径的路由的过程中,无需再重新配置网络设备A和网络设备B之间路由,以及网络设备C和网络设备D之间的路由。Comparing the initial transmission path (including network devices A, B, C, and D) and the target transmission path (including network devices A, B, E, F, G, C, and D), it can be seen that the initial path and the middle of the target transmission path Network devices B and C are overlapping intermediate network devices, so in the process of configuring the route of the target transmission path, there is no need to reconfigure the route between network device A and network device B, and the route between network device C and network device D. routing.
网管设备确定目标传输路径所包括的区段传输路径。该区段传输路径为所述目标传输路径中,需要进行路由配置的路径。其中,该区段传输路径包括依次连接的首网络设备和末网络设备,以及连接在首网络设备和末网络设备之间的至少一个中间网络设备。The network management device determines the segment transmission paths included in the target transmission path. The segment transmission path is a path in the target transmission path that needs to be routed. Wherein, the segment transmission path includes the first network device and the last network device connected in sequence, and at least one intermediate network device connected between the first network device and the last network device.
在图2和图4所示的实施例中,首网络设备为源网络设备,即首网络设备作为目标传输路径所传输的目标业务的发起方,末网络设备为目标业务的响应方。或,末网络设备为宿网络设备,即末网络设备作为目标传输路径所传输的目标业务的发起方,而首网络设备为目标业务的响应方。In the embodiments shown in FIG. 2 and FIG. 4 , the first network device is the source network device, that is, the first network device serves as the initiator of the target service transmitted by the target transmission path, and the last network device is the responder of the target service. Or, the last network device is the sink network device, that is, the last network device is the initiator of the target service transmitted by the target transmission path, and the first network device is the responder of the target service.
而本实施例所示的首网络设备为区段传输路径中的第一个网络设备,末网络设备为区段传输路径中的最后一个网络设备。The first network device shown in this embodiment is the first network device in the segment transmission path, and the last network device is the last network device in the segment transmission path.
继续参见上述示例,在目标传输路径包括网络设备A、B、E、F、G、C以及D的情况下,可知,区段传输路径包括网络设备B、E、F、G以及C。即网络设备A为目标业务的响应方或发起方的源网络设备,而网络设备D为该目标业务的发起方或响应方的宿网络设备。首网络设备为网络设备B,而末网络设备为网络设备D。Continuing to refer to the above example, where the target transmission path includes network devices A, B, E, F, G, C, and D, it can be known that the segment transmission path includes network devices B, E, F, G, and C. That is, the network device A is the source network device of the responder or the initiator of the target service, and the network device D is the initiator of the target service or the sink network device of the responder. The first network device is network device B, and the last network device is network device D.
本示例中,在配置网络设备B、E、F、G以及C的路由后,即完成目标传输路径的配置。In this example, after the routes of network devices B, E, F, G, and C are configured, the configuration of the target transmission path is completed.
需明确地是,本实施例以网管设备根据故障指示消息确定区段传输路径,并向区段传输路径的首网络设备发送正向配置报文为例进行示例性说明。在其他示例中,也可由作为目标业务的响应方或发起方的源网络设备向区段传输路径的首网络设备发送正向配置报文。It should be clearly stated that this embodiment is exemplified by the network management device determining the segment transmission path according to the fault indication message, and sending a forward configuration message to the first network device of the segment transmission path as an example. In other examples, the source network device that is the responder or initiator of the target service can also send the forward configuration message to the head network device of the segment transmission path.
例如,目标传输路径中的源网络设备A,根据故障指示信息生成正向配置报文。因网络设备B为初始传输路径和目标传输路径中重合的网络设备,则网络设备A无需根据该正 向配置报文对网络设备A和网络设备B之间的路由配置路由。网络设备B作为首网络设备,作为区段传输路径中,第一个根据正向配置报文配置路由的网络设备。For example, the source network device A in the target transmission path generates a forward configuration packet according to the fault indication information. Because network device B is a network device whose initial transmission path and target transmission path overlap, network device A does not need to configure a route for the route between network device A and network device B according to the forward configuration message. Network device B serves as the first network device and is the first network device in the segment transmission path that configures the route according to the forward configuration message.
本实施例所示的正向配置报文用于沿区段传输路径的正向传输方向传输,该正向传输方向是指传输起点区段传输路径中的首网络设备B,并依次沿区段传输路径所包括的各个网络设备进行传输的方向。The forward configuration message shown in this embodiment is used for transmission along the forward transmission direction of the segment transmission path. The transmission direction of each network device included in the transmission path.
步骤503、首网络设备根据正向配置报文配置路由。Step 503: The first network device configures a route according to the forward configuration message.
如图6所示,本实施例所示的首网络设备作为区段传输路径中的第一个网络设备,即网络设备B。根据正向配置报文配置路由,以实现网络设备B和网络设备E之间能够进行目标业务的交互。首网络设备根据正向配置报文配置路由的具体过程的说明,请详见图2所示的步骤201所示,具体在本实施例中不做赘述。As shown in FIG. 6 , the first network device shown in this embodiment is the first network device in the segment transmission path, that is, the network device B. The route is configured according to the forward configuration message, so that the target service can be exchanged between the network device B and the network device E. Please refer to step 201 shown in FIG. 2 for the description of the specific process for the first network device to configure the route according to the forward configuration message, and details are not repeated in this embodiment.
步骤504、首网络设备向第一中间网络设备发送正向配置报文。Step 504: The first network device sends a forward configuration message to the first intermediate network device.
本实施例中,以第一中间网络设备为中间网络设备E为例进行示例性说明。In this embodiment, the first intermediate network device is an intermediate network device E as an example for illustrative description.
本实施例所示的步骤504的具体执行过程的说明,请详见图2所示的步骤202所示,具体执行过程不做赘述。For the description of the specific execution process of step 504 shown in this embodiment, please refer to step 202 shown in FIG. 2 for details, and the specific execution process will not be repeated.
步骤505、末网络设备根据反向配置报文配置路由。Step 505: The final network device configures a route according to the reverse configuration message.
由上述步骤502所示可知,本实施例所示的末网络设备为区段传输路径中的最后一个网络设备。即本实施例所示的末网络设备为目标传输路径中的网络设备C。It can be known from the above step 502 that the last network device shown in this embodiment is the last network device in the segment transmission path. That is, the last network device shown in this embodiment is the network device C in the target transmission path.
本实施例所示的反向配置报文的具体内容的说明,请详见图2所示的步骤203所示,具体不做赘述。For the description of the specific content of the reverse configuration packet shown in this embodiment, please refer to step 203 shown in FIG. 2 for details, and details are not repeated.
本实施例对作为区段恢复路径中最后一个网络设备的末网络设备,获取反向配置报文的几种可选地方式进行说明:This embodiment describes several optional ways for the last network device, which is the last network device in the segment recovery path, to obtain reverse configuration packets:
方式1way 1
该末网络设备可接收来自网管设备或源网络设备的正向配置报文。末网络设备再根据该正向配置生成反向配置报文。其中,反向配置报文用于沿区段传输路径的反向传输方向传输,该反向传输方向是指传输起点区段传输路径中的末网络设备C,并依次沿区段传输路径所包括的各个网络设备进行传输的方向。且在区段传输路径中,正向传输方向和反向传输方向相反。The last network device can receive the forward configuration message from the network management device or the source network device. Finally, the network device generates a reverse configuration message according to the forward configuration. The reverse configuration message is used for transmission along the reverse transmission direction of the segment transmission path. The direction in which each network device transmits. And in the segment transfer path, the forward transfer direction and the reverse transfer direction are opposite.
本实施例所示的根据正向配置报文生成反向配置报文的具体过程的说明,请参见图2所示的实施例中步骤203所示,具体不做赘述。For the description of the specific process of generating the reverse configuration message according to the forward configuration message shown in this embodiment, please refer to step 203 in the embodiment shown in FIG. 2 , and details are not repeated.
方式2way 2
末网络设备接收区段传输路径的正向路径指示消息以及目标业务的目标标识。The end network device receives the forward path indication message of the segment transmission path and the target identifier of the target service.
具体地,本实施例所示的网管设备或首网络设备可向末网络设备C发送区段传输路径的正向路径指示消息。该区段传输路径的正向路径指示消息用于指示该区段传输路径,沿正向传输方向,依次包括网络设备B、E、F、G以及C的连接关系。Specifically, the network management device or the first network device shown in this embodiment may send the 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 that the segment transmission path, along the forward transmission direction, sequentially includes the connection relationships of network devices B, E, F, G, and C.
末网络设备根据区段传输路径的正向路径指示消息,生成反向配置报文,具体过程,请详见图2所示的步骤203所示,具体不做赘述。The last network device generates a reverse configuration message according to the forward path indication message of the segment transmission path. For the specific process, please refer to step 203 shown in FIG. 2 for details, and details are not repeated.
方式3way 3
网管设备或首网络设备可直接向末网络设备发送该反向配置报文。The network management device or the first network device may directly send the reverse configuration message to the last network device.
方式4way 4
末网络设备可根据OSPF或PCEP等协议获取反向配置报文,具体过程可参见图2所示的实施例中步骤203所示,具体不做赘述。The final network device can obtain the reverse configuration message according to protocols such as OSPF or PCEP. For the specific process, refer to step 203 in the embodiment shown in FIG. 2 , and details are not repeated.
步骤506、末网络设备向第二中间网络设备发送反向配置报文。Step 506: The last network device sends a reverse configuration message to the second intermediate network device.
本实施例所示的第二中间网络设备,为所述区段传输路径所包括的多个中间网络设备中,与所述末网络设备C位置相邻且通过光纤连接的中间网络设备。以图6所示为例,该第二中间网络设备为与末网络设备C通过光纤连接的网络设备G。The second intermediate network device shown in this embodiment is an intermediate network device that is adjacent to the last network device C and connected by an optical fiber among the plurality of intermediate network devices included in the segment transmission path. Taking the example shown in FIG. 6 , the second intermediate network device is a network device G that is connected to the last network device C through an optical fiber.
步骤507、第一中间网络设备接收来自首网络设备的正向配置报文。Step 507: The first intermediate network device receives the forward configuration message from the first network device.
步骤508、第一中间网络设备根据正向配置报文配置路由。Step 508: The first intermediate network device configures a route according to the forward configuration message.
本实施例所示的步骤507至步骤508的具体执行过程的说明,请参见图2所示的步骤205至步骤206所示,具体不做赘述。For the description of the specific execution process of step 507 to step 508 shown in this embodiment, please refer to step 205 to step 206 shown in FIG. 2 , and details are not repeated.
步骤509、第一中间网络设备向第三中间网络设备发送正向配置报文。Step 509: The first intermediate network device sends a forward configuration packet to the third intermediate network device.
本实施例所示的第三中间网络设备,为所述区段传输路径所包括的多个中间网络设备中,与所述第一中间网络设备位置相邻且通过光纤连接的中间网络设备。以图6所示为例,该第三中间网络设备为与第一中间网络设备E通过光纤连接的网络设备F。The third intermediate network device shown in this embodiment is an intermediate network device that 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 the example shown in FIG. 6 , the third intermediate network device is a network device F connected to the first intermediate network device E through an optical fiber.
步骤510、第二中间网络设备接收来自末网络设备的反向配置报文。Step 510: The second intermediate network device receives the reverse configuration message from the last network device.
步骤511、第二中间网络设备根据反向配置报文配置路由。Step 511: The second intermediate network device configures a route according to the reverse configuration message.
步骤512、第二中间网络设备向第三中间网络设备发送反向配置报文。Step 512: The second intermediate network device sends a reverse configuration packet to the third intermediate network device.
步骤513、第三中间网络设备接收正向配置报文和反向配置报文。Step 513: The third intermediate network device receives the forward configuration message and the reverse configuration message.
步骤514、第三中间网络设备根据正向配置报文或反向配置报文配置路由。Step 514: The third intermediate network device configures a route according to the forward configuration message or the reverse configuration message.
步骤515、第三中间网络设备向第二网络设备发送正向配置报文。Step 515: The third intermediate network device sends a forward configuration message to the second network device.
步骤516、第二中间网络设备向末网络设备发送正向配置报文。Step 516: The second intermediate network device sends a forward configuration message to the last network device.
步骤517、末网络设备向首网络设备发送响应消息。Step 517: The last network device sends a response message to the first network device.
步骤518、末网络设备向目标传输路径传输删除指示消息。Step 518: The last network device transmits a deletion instruction message to the target transmission path.
本实施例所示的步骤510至步骤518的具体执行过程的说明,请详见图2所示的步骤208至步骤216所示,具体不做赘述。For the description of the specific execution process of steps 510 to 518 shown in this embodiment, please refer to steps 208 to 216 shown in FIG. 2 for details, and details are not repeated.
本实施例中,在区段传输路径所包括的各个网络设备完成了路由的配置后,目标传输路径即可实现对目标业务的传输。In this embodiment, after each network device included in the segment transmission path completes the routing configuration, the target transmission path can realize the transmission of the target service.
采用本实施例所示的方法,初始传输路径出现故障,能够将目标业务的传输路径由初始传输路径切换至目标传输路径中,以实现对目标业务的重路由。而且本实施例所示的无需重新配置目标传输路径所包括的所有网络设备的路由,仅需要配置目标传输路径所包括的区段传输路径所包括的网络设备的路由即可。无需对目标传输路径所包括的所有网络设备配置路由,减少了所要配置路由的网络设备的数量,有效的提高了对目标业务进行重路由的效率。在目标传输路径所包括的网络设备的数量增多的场景下,有效的减少了网络设备单站处理的数据量,降低了网络设备出现拥塞的可能。With the method shown in this embodiment, if the initial transmission path fails, 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, as shown in this embodiment, it is not necessary to reconfigure the routes of all network devices included in the target transmission path, and only the routes of the network devices included in the segment transmission paths included in the target transmission path need to be configured. There is no need to configure routes for all network devices included in the target transmission path, which reduces the number of network devices to be configured with routes, and effectively improves the efficiency of rerouting the target service. In a scenario where the number of network devices included in the target transmission path increases, the amount of data processed by a single station of the network device is effectively reduced, and the possibility of congestion of the network device is reduced.
下面结合图7,对本申请中的网络设备进行描述。该网络设备包括处理器701、存储器 702和光收发器703。该处理器701、存储器702和光收发器703通过线路互联。其中,存储器702用于存储程序指令和数据。The network device in this application will be 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, the memory 702 and the optical transceiver 703 are interconnected by wires. Among them, the memory 702 is used for storing program instructions and data.
若本实施例所示的网络设备为目标传输路径中的中间网络设备,则存储器702存储了支持图2、图4和图5所示步骤中,由中间网络设备执行的程序指令和数据,处理器701以及光收发器703用于执行图2、图4和图5任一实施例所示的方法步骤。If the network device shown in this embodiment is an intermediate network device in the target transmission path, the memory 702 stores the program instructions and data that are executed by the intermediate network device in the steps shown in FIG. 2 , FIG. 4 and FIG. 5 . The optical transceiver 701 and the optical transceiver 703 are used to perform the method steps shown in any of the embodiments of FIG. 2 , FIG. 4 and FIG. 5 .
若本实施例所示的网络设备为第一中间网络设备,则在图2中,光收发器703用于执行步骤205以及步骤207。处理器701用于执行步骤206。在图4中,光收发器703用于步骤407以及步骤409。处理器701用于执行步骤408。在图5中,光收发器703用于步骤507以及步骤509。处理器701用于执行步骤508。If the network device shown in this embodiment is the first intermediate network device, in FIG. 2 , the optical transceiver 703 is used to execute step 205 and step 207 . The processor 701 is configured to execute step 206 . In FIG. 4 , optical transceiver 703 is used in step 407 and step 409 . The processor 701 is configured to perform step 408 . In FIG. 5 , optical transceiver 703 is used in step 507 and step 509 . The processor 701 is configured to perform step 508 .
若本实施例所示的网络设备为第二中间网络设备,则在图2中,光收发器703用于执行步骤208以及步骤210。处理器701用于执行步骤209。在图4中,光收发器703用于步骤410以及步骤412。处理器701用于执行步骤411。在图5中,光收发器703用于步骤510以及步骤512。处理器701用于执行步骤511。If the network device shown in this embodiment is the second intermediate network device, in FIG. 2 , the optical transceiver 703 is used to perform step 208 and step 210 . The processor 701 is configured to execute step 209 . In FIG. 4 , optical transceiver 703 is used in step 410 and step 412 . The processor 701 is configured to execute step 411 . In FIG. 5 , optical transceiver 703 is used in step 510 and step 512 . The processor 701 is configured to execute step 511 .
若本实施例所示的网络设备为第三中间网络设备,则在图2中,光收发器703用于执行步骤211以及步骤213。处理器701用于执行步骤212。在图4中,光收发器703用于步骤413以及步骤415。处理器701用于执行步骤414。在图5中,光收发器703用于步骤513以及步骤515。处理器701用于执行步骤514。If the network device shown in this embodiment is the third intermediate network device, in FIG. 2 , the optical transceiver 703 is used to execute step 211 and step 213 . The processor 701 is configured to execute step 212 . In FIG. 4 , optical transceiver 703 is used for step 413 and step 415 . The processor 701 is used to perform step 414 . In FIG. 5 , optical transceiver 703 is used in step 513 and step 515 . The processor 701 is configured to perform step 514 .
若本实施例所示的网络设备为末网络设备,则在图2中,光收发器703用于执行步骤204、步骤215以及步骤216。处理器701用于执行步骤203。在图4中,光收发器703用于步骤402、步骤406、步骤417以及步骤418。处理器701用于执行步骤405。在图5中,光收发器703用于步骤506、步骤517以及步骤518。处理器701用于执行步骤505。If the network device shown in this embodiment is an end-network device, in FIG. 2 , the optical transceiver 703 is used to execute step 204 , step 215 and step 216 . The processor 701 is configured to execute step 203 . In FIG. 4 , the optical transceiver 703 is used in steps 402 , 406 , 417 and 418 . The processor 701 is configured to execute step 405 . In FIG. 5 , the optical transceiver 703 is used in steps 506 , 517 and 518 . The processor 701 is configured to execute step 505 .
本申请实施例还提供一种数字处理芯片。该数字处理芯片中集成了用于实现上述处理器701的功能的电路和一个或者多个接口。当该数字处理芯片中集成了存储器时,该数字处理芯片可以完成前述实施例中的任一个或多个实施例的方法步骤。当该数字处理芯片中未集成存储器时,可以通过接口与外置的存储器连接。该数字处理芯片根据外置的存储器中存储的程序代码来实现上述图2、图4和图5任一实施例。The embodiments of the present application also provide a digital processing chip. The digital processing chip integrates a circuit and one or more interfaces for realizing the functions of the above-mentioned processor 701 . When a memory is integrated in the digital processing chip, the digital processing chip can perform the method steps of any one or more of the foregoing embodiments. When no memory is integrated in the digital processing chip, it can be connected with an external memory through an interface. The digital processing chip implements any of the above-mentioned embodiments in FIG. 2 , FIG. 4 and FIG. 5 according to the program code stored in the external memory.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成。程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,随机接入存储器等。具体地,例如:上述处理单元或处理器可以是中央处理器,通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware by a program. The program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a random access memory, or the like. Specifically, for example, the above-mentioned 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 (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
上述的这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Whether the above functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
最后应说明的是:以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限 于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。Finally, it should be noted that: the above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art who is familiar with the technical scope disclosed by the present application can easily think of changes. Or replacement should be covered within the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (25)

  1. 一种路由的配置方法,其特征在于,所述方法应用于目标传输路径,所述目标传输路径包括依次连接的首网络设备、至少一个中间网络设备以及末网络设备,所述方法包括:A routing configuration method, characterized in that, the method is applied to a target transmission path, and the target transmission path includes a first network device, at least one intermediate network device, and a last network device connected in sequence, and the method includes:
    所述中间网络设备接收第一配置报文,所述第一配置报文在所述目标传输路径中沿第一传输方向传输;receiving, by the intermediate network device, a first configuration packet, where the first configuration packet is transmitted along the first transmission direction in the target transmission path;
    所述中间网络设备根据所述第一配置报文配置所述中间网络设备和相邻网络设备之间的路由,在所述目标传输路径中,所述中间网络设备和所述相邻网络设备位置相邻且相互连接;The intermediate network device configures the route between the intermediate network device and the adjacent network device according to the first configuration message, and in the target transmission path, the positions of the intermediate network device and the adjacent network device are adjacent and interconnected;
    所述中间网络设备接收第二配置报文,所述第二配置报文在所述目标传输路径中沿第二传输方向传输,所述第一传输方向和所述第二传输方向相反;receiving, by the intermediate network device, a second configuration packet, the second configuration packet is transmitted in the target transmission path along a second transmission direction, and the first transmission direction and the second transmission direction are opposite;
    若所述中间网络设备确定所述第一配置报文和所述第二配置报文满足预设条件,则所述中间网络设备确定不再根据所述第二配置报文配置路由,所述预设条件为所述第一配置报文和所述第二配置报文均用于配置所述目标传输路径的路由,且所述目标传输路径用于传输目标业务。If the intermediate network device determines that the first configuration packet and the second configuration packet satisfy a preset condition, the intermediate network device determines that no route is to be configured according to the second configuration packet, and the preset It is assumed that the first configuration packet and the second configuration packet are both used to configure the route of the target transmission path, and the target transmission path is used to transmit the target service.
  2. 根据权利要求1所述的方法,其特征在于,若所述第一配置报文来自所述首网络设备,所述第二配置报文来自所述末网络设备,则所述中间网络设备根据所述第一配置报文配置所述中间网络设备和相邻网络设备之间的路由之后,所述方法还包括:The method according to claim 1, wherein, if the first configuration packet comes from the first network device, and the second configuration packet comes from the last network device, the intermediate network device according to the After the first configuration message configures the route between the intermediate network device and the adjacent network device, the method further includes:
    所述中间网络设备向所述末网络设备发送所述第一配置报文;sending, by the intermediate network device, the first configuration message to the last 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.
  3. 根据权利要求1所述的方法,其特征在于,若所述第一配置报文来自所述末网络设备,所述第二配置报文来自所述首网络设备,则所述中间网络设备根据所述第一配置报文配置所述中间网络设备和相邻网络设备之间的路由之后,所述方法还包括:The method according to claim 1, wherein, if the first configuration packet comes from the last network device, and the second configuration packet comes from the first network device, the intermediate network device according to the After the first configuration message configures the route between the intermediate network device and the adjacent network device, the method further includes:
    所述中间网络设备向所述首网络设备发送所述第一配置报文;sending, by the intermediate network device, 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 last network device.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述中间网络设备确定所述第一配置报文和所述第二配置报文满足预设条件包括:The method according to any one of claims 1 to 3, wherein determining, by the intermediate network device, that the first configuration packet and the second configuration packet satisfy a preset condition comprises:
    所述中间网络设备确定所述第一配置报文和所述第二配置报文满足第一预设子条件,所述第一预设子条件为所述第一配置报文和所述第二配置报文均包括所述目标业务的目标标识,且所述第一配置报文包括用于指示所述第一传输方向的第一指示消息,所述第二配置报文包括用于指示所述第二传输方向的第二指示消息;The intermediate network device determines that the first configuration packet and the second configuration packet satisfy a first preset sub-condition, where the first preset sub-condition is the first configuration packet and the second configuration packet The configuration packets all include the target identifier of the target service, and the first configuration packet includes a first indication message for indicating the first transmission direction, and the second configuration packet includes a first indication message for indicating the first transmission direction. A second indication message of the second transmission direction;
    且所述中间网络设备确定所述第一配置报文和所述第二配置报文满足第二预设子条件,所述第二预设子条件为所述第一配置报文和所述第二配置报文均用于配置所述目标传输路径的路由。And the intermediate network device determines that the first configuration packet and the second configuration packet satisfy a second preset sub-condition, where the second preset sub-condition is the first configuration packet and the first configuration packet. Both configuration packets are used to configure the route of the target transmission path.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括: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 packet comes from the end network device, the deletion instruction message is used to instruct deletion of the first configuration packet, or, if the second configuration packet is If the configuration message comes from the last network device, the deletion instruction message is used to instruct to delete the second configuration message.
  6. 一种路由的配置方法,其特征在于,所述方法应用于目标传输路径,所述目标传输路径包括多个网络设备,所述目标传输路径用于向所述目标传输路径所包括的末网络设备传输正向配置报文,所述方法包括:A routing configuration method, characterized in that the method is applied to a target transmission path, the target transmission path includes a plurality of network devices, and the target transmission path is used to send the last network device included in the target transmission path to the Transmitting a forward configuration message, the method includes:
    所述末网络设备获取反向配置报文,所述反向配置报文和所述正向配置报文在所述目标传输路径中,沿相反的方向传输;The terminal network device obtains a reverse configuration packet, and the reverse configuration packet and the forward configuration packet are transmitted in opposite directions in the target transmission path;
    所述末网络设备向第一网络设备发送反向配置报文,所述反向配置报文用于指示所述第一网络设备配置所述第一网络设备和第二网络设备之间的路由,所述第一网络设备和所述第二网络设备为所述目标传输路径所包括的任意两个位置相邻且相互连接的网络设备。The last network device sends a reverse configuration packet to the first network device, where the reverse configuration packet is used to instruct the first network device to configure a route between the first network device and the second network device, The first network device and the second network device are any two network devices included in the target transmission path that are located adjacent to each other and are connected to each other.
  7. 根据权利要求6所述的方法,其特征在于,所述末网络设备获取反向配置报文包括:The method according to claim 6, wherein the acquisition of the reverse configuration message by the last network device comprises:
    所述末网络设备获取反向路径指示消息,所述反向路径指示消息用于指示沿反向传输方向,所述多个网络设备之间的连接关系,所述反向传输方向为所述反向配置报文在所述目标传输路径中的传输方向;The last network device acquires a reverse path indication message, where the reverse path indication message is used to indicate the connection relationship between the multiple network devices along the reverse transmission direction, and the reverse transmission direction is the reverse transmission direction. the transmission direction of the configuration message in the target transmission path;
    所述末网络设备根据所述反向路径指示消息获取所述反向配置报文。The end-network device acquires the reverse configuration message according to the reverse path indication message.
  8. 根据权利要求7所述的方法,其特征在于,所述末网络设备获取反向路径指示消息包括:The method according to claim 7, wherein the acquisition of the reverse path indication message by the end-network device comprises:
    所述末网络设备获取正向路径指示消息,所述正向路径指示消息用于指示沿正向传输方向,所述多个网络设备之间的连接关系,所述正向传输方向为所述正向配置报文在所述目标传输路径中的传输方向;The last network device obtains a forward path indication message, where the forward path indication message is used to indicate the connection relationship between the multiple network devices along the forward transmission direction, and the forward transmission direction is the forward transmission direction. the transmission direction of the configuration message in the target transmission path;
    所述末网络设备将所述正向路径指示消息转换为所述反向路径指示消息。The end-network device converts the forward path indication message into the reverse path indication message.
  9. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    所述末网络设备接收故障指示消息,所述故障指示消息用于指示初始传输路径出现故障,所述故障指示消息包括目标业务的目标标识,其中,所述初始传输路径和所述目标传输路径均用于传输所述目标业务,所述初始传输路径所包括的多个网络设备和所述目标传输路径所包括的多个网络设备中,部分网络设备相同;The end-network device receives a fault indication message, where the fault indication message is used to indicate that the initial transmission path is faulty, and the fault indication message includes the target identifier of the target service, wherein both the initial transmission path and the target transmission path are For transmitting the target service, among the multiple network devices included in the initial transmission path and the multiple network devices included in the target transmission path, some network devices are the same;
    所述末网络设备将所述正向路径指示消息转换为所述反向路径指示消息包括:The last network device converting the forward path indication message into the reverse path indication message includes:
    所述末网络设备在确定所述正向路径指示消息和所述故障指示消息均包括所述目标业务的目标标识的情况下,所述末网络设备将所述正向路径指示消息转换为所述反向路径指示消息。When the last network device determines that both the forward path indication message and the fault indication message include the target identifier of the target service, the last network device converts the forward path indication message into the Reverse path indication message.
  10. 根据权利要求6至9任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 6 to 9, wherein the method further comprises:
    所述末网络设备接收所述正向配置报文;receiving, by the last network device, the forward configuration message;
    所述末网络设备经由所述目标传输路径,向所述首网络设备发送响应消息,所述响应消息用于指示所述目标传输路径所包括的任意两个位置相邻且相互连接的网络设备之间的路由已配置成功。The last network device sends a response message to the first network device via the target transmission path, where the response message is used to indicate whether any two adjacent and mutually connected network devices included in the target transmission path The routing between the two has been successfully configured.
  11. 根据权利要求6至10任一项所述的方法,其特征在于,所述末网络设备向第一网络设备发送反向配置报文之后,所述方法还包括:The method according to any one of claims 6 to 10, wherein after the last network device sends a reverse configuration packet to the first network device, the method further comprises:
    所述末网络设备删除所述反向配置报文;The last network device deletes the reverse configuration message;
    所述末网络设备向所述第一网络设备发送删除指示消息,所述删除指示消息用于指示所述第一网络设备删除所述反向配置报文。The last network device sends a deletion instruction message to the first network device, where the deletion instruction message is used to instruct the first network device to delete the reverse configuration message.
  12. 一种网络设备,其特征在于,所述网络设备为目标传输路径中,连接在首网络设备和末网络设备之间的中间网络设备,所述中间网络设备包括处理器、存储器以及光收发器,其中,所述处理器、所述存储器以及所述光收发器通过线路互联;A network device, characterized in that the network device is an intermediate network device connected between a first network device and a last network device in a target transmission path, and the intermediate network device includes a processor, a memory, and an optical transceiver, Wherein, the processor, the memory and the optical transceiver are interconnected through lines;
    所述光收发器用于接收第一配置报文,所述第一配置报文在所述目标传输路径中沿第一传输方向传输;The optical transceiver is configured to receive a first configuration message, and the first configuration message is transmitted along the first transmission direction in the target transmission path;
    所述处理器调用所述存储器中的程序代码以用于,根据所述第一配置报文配置所述中间网络设备和相邻网络设备之间的路由,在所述目标传输路径中,所述中间网络设备和所述相邻网络设备位置相邻且相互连接;The processor invokes the program code in the memory to configure the route between the intermediate network device and the adjacent network device according to the first configuration message, and in the target transmission path, the The intermediate network device and the adjacent network device are located adjacent to each other and connected to each other;
    所述光收发器还用于,接收第二配置报文,所述第二配置报文在所述目标传输路径中沿第二传输方向传输,所述第一传输方向和所述第二传输方向相反;The optical transceiver is further configured to receive a second configuration packet, the second configuration packet is transmitted along the second transmission direction in the target transmission path, the first transmission direction and the second transmission direction on the contrary;
    所述处理器还用于,若所述处理器确定所述第一配置报文和所述第二配置报文满足预设条件,则所述处理器确定不再根据所述第二配置报文配置路由,所述预设条件为所述第一配置报文和所述第二配置报文均用于配置所述目标传输路径的路由,且所述目标传输路径用于传输目标业务。The processor is further configured to, if the processor determines that the first configuration packet and the second configuration packet satisfy a preset condition, the processor determines that the second configuration packet is no longer based on the second configuration packet. A route is configured, and the preset condition is that both the first configuration message and the second configuration message are used to configure the route of the target transmission path, and the target transmission path is used to transmit the target service.
  13. 根据权利要求12所述的网络设备,其特征在于,若所述第一配置报文来自所述首网络设备,所述第二配置报文来自所述末网络设备;The network device according to claim 12, wherein if the first configuration message comes from the first network device, the second configuration message comes 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 the transmission of the second configuration message.
  14. 根据权利要求12所述的网络设备,其特征在于,若所述第一配置报文来自所述末网络设备,所述第二配置报文来自所述首网络设备,所述光收发器还用于:The network device according to claim 12, wherein if the first configuration message comes from the last network device, and the second configuration message comes from the first network device, the optical transceiver further uses At:
    向所述首网络设备发送所述第一配置报文;sending the first configuration message to the first network device;
    向所述末网络设备发送所述第二配置报文。Send the second configuration message to the last network device.
  15. 根据权利要求12至14任一项所述的网络设备,其特征在于,所述处理器具体用于:The network device according to any one of claims 12 to 14, wherein the processor is specifically configured to:
    确定所述第一配置报文和所述第二配置报文满足第一预设子条件,所述第一预设子条件为所述第一配置报文和所述第二配置报文均包括所述目标业务的目标标识,且所述第一配置报文包括用于指示所述第一传输方向的第一指示消息,所述第二配置报文包括用于指示所述第二传输方向的第二指示消息;It is determined that the first configuration packet and the second configuration packet satisfy a first preset sub-condition, where the first preset sub-condition is that both the first configuration packet and the second configuration packet include The target identifier of the target service, and the first configuration message includes a first indication message for indicating the first transmission direction, and the second configuration message includes a message for indicating the second transmission direction. the second instruction message;
    确定所述第一配置报文和所述第二配置报文满足第二预设子条件,所述第二预设子条件为所述第一配置报文和所述第二配置报文均用于配置所述目标传输路径的路由。It is determined that the first configuration packet and the second configuration packet satisfy a second preset sub-condition, where the second preset sub-condition is that both the first configuration packet and the second configuration packet use for configuring the route of the target transmission path.
  16. 根据权利要求12所述的网络设备,其特征在于,所述光收发器还用于:The network device according to claim 12, wherein the optical transceiver is further used for:
    接收删除指示消息,若所述第一配置报文来自所述末网络设备,则所述删除指示消息用于指示删除所述第一配置报文,或,若所述第二配置报文来自所述末网络设备,则所述删除指示消息用于指示删除所述第二配置报文。Receive a deletion instruction message, if the first configuration packet comes from the end-network device, the deletion instruction message is used to instruct the deletion of the first configuration packet, or, if the second configuration packet comes from a the last network device, the deletion instruction message is used to instruct deletion of the second configuration message.
  17. 一种网络设备,其特征在于,所述网络设备为目标传输路径中的末网络设备,所述目标传输路径包括多个网络设备,所述目标传输路径用于向所述末网络设备传输正向配置报文,所述末网络设备包括处理器、存储器以及光收发器,其中,所述处理器、所述存储器以及所述光收发器通过线路互联;A network device, characterized in that, the network device is an end network device in a target transmission path, the target transmission path includes a plurality of network devices, and the target transmission path is used to transmit a forward direction to the end network device A configuration message, the end-network device includes a processor, a memory, and an optical transceiver, wherein the processor, the memory, and the optical transceiver are interconnected through lines;
    所述处理器调用所述存储器中的程序代码以用于,获取反向配置报文,所述反向配置报文和所述正向配置报文在所述目标传输路径中,沿相反的方向传输;The processor invokes the program code in the memory to obtain a reverse configuration message, where the reverse configuration message and the forward configuration message are in opposite directions in the target transmission path transmission;
    所述光收发器还用于,向第一网络设备发送反向配置报文,所述反向配置报文用于指示所述第一网络设备配置所述第一网络设备和第二网络设备之间的路由,所述第一网络设备和所述第二网络设备为所述目标传输路径所包括的任意两个位置相邻且相互连接的网络设备。The optical transceiver is further configured to send a reverse configuration message to the first network device, where the reverse configuration message is used to instruct the first network device to configure the relationship between the first network device and the second network device. The first network device and the second network device are any two adjacent and mutually connected network devices included in the target transmission path.
  18. 根据权利要求17所述的网络设备,其特征在于,所述处理器具体用于:The network device according to claim 17, wherein the processor is specifically configured to:
    获取反向路径指示消息,所述反向路径指示消息用于指示沿反向传输方向,所述多个网络设备之间的连接关系,所述反向传输方向为所述反向配置报文在所述目标传输路径中的传输方向;Obtain a reverse path indication message, where the reverse path indication message is used to indicate the connection relationship between the multiple network devices along the reverse transmission direction, and the reverse transmission direction is that the reverse configuration message is in the the transmission direction in the target transmission path;
    根据所述反向路径指示消息获取所述反向配置报文。Acquire the reverse configuration message according to the reverse path indication message.
  19. 根据权利要求18所述的网络设备,其特征在于,所述处理器具体用于:The network device according to claim 18, wherein the processor is specifically configured to:
    获取正向路径指示消息,所述正向路径指示消息用于指示沿正向传输方向,所述多个网络设备之间的连接关系,所述正向传输方向为所述正向配置报文在所述目标传输路径中的传输方向;Obtain a forward path indication message, where the forward path indication message is used to indicate the connection relationship between the multiple network devices along the forward transmission direction, and the forward transmission direction is that the forward configuration packet is in the forward direction. the transmission direction in the target transmission path;
    将所述正向路径指示消息转换为所述反向路径指示消息。Converting the forward path indication message into the reverse path indication message.
  20. 根据权利要求17所述的网络设备,其特征在于,The network device according to claim 17, wherein,
    所述光收发器还用于,接收故障指示消息,所述故障指示消息用于指示初始传输路径出现故障,所述故障指示消息包括目标业务的目标标识,其中,所述初始传输路径和所述目标传输路径均用于传输所述目标业务,所述初始传输路径所包括的多个网络设备和所述目标传输路径所包括的多个网络设备中,部分网络设备相同;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 is faulty, and the fault indication message includes a target identifier of a target service, wherein the initial transmission path and the The target transmission paths are all used to transmit the target service, and some of the network devices included in the multiple network devices included in the initial transmission path and the multiple network devices included in the target transmission path are the same;
    所述处理器具体用于,在确定所述正向路径指示消息和所述故障指示消息均包括所述目标业务的目标标识的情况下,将所述正向路径指示消息转换为所述反向路径指示消息。The processor is specifically configured to convert the forward path indication message into the reverse direction when it is determined that both the forward path indication message and the fault indication message include the target identifier of the target service Path indication message.
  21. 根据权利要求17至20任一项所述的网络设备,其特征在于,所述光收发器还用于:The network device according to any one of claims 17 to 20, wherein the optical transceiver is further used for:
    接收所述正向配置报文;receiving the forward configuration message;
    经由所述目标传输路径,向所述首网络设备发送响应消息,所述响应消息用于指示所述目标传输路径所包括的任意两个位置相邻且相互连接的网络设备之间的路由已配置成功。Send a response message to the first network device via the target transmission path, where the response message is used to indicate that the route between any two adjacent and mutually connected network devices included in the target transmission path has been configured success.
  22. 根据权利要求17至21任一项所述的网络设备,其特征在于,The network device according to any one of claims 17 to 21, wherein,
    所述处理器还用于,删除所述反向配置报文;The processor is further configured to delete the reverse configuration message;
    所述光收发器还用于,向所述第一网络设备发送删除指示消息,所述删除指示消息用于指示所述第一网络设备删除所述反向配置报文。The optical transceiver is further configured to send a deletion instruction message to the first network device, where the deletion instruction message is used to instruct the first network device to delete the reverse configuration message.
  23. 一种通信系统,其特征在于,包括目标传输路径,所述目标传输路径包括依次连 接的首网络设备、至少一个中间网络设备以及末网络设备,所述中间网络设备如权利要求12至16任一项所示,所述末网络设备如权利要求17至22任一项所示。A communication system, characterized in that it includes a target transmission path, and the target transmission path includes a first network device, at least one intermediate network device, and an end network device connected in sequence, and the intermediate network device is as described in any one of claims 12 to 16 As shown in the item, the end-network device is as shown in any one of claims 17 to 22.
  24. 一种数字处理芯片,其特征在于,所述数字处理芯片包括处理器和存储器,所述存储器和所述处理器通过线路互联,所述存储器中存储有指令,所述处理器用于执行如权利要求1至11中任一项的所述的方法。A digital processing chip, characterized in that, the digital processing chip includes a processor and a memory, the memory and the processor are interconnected through a line, and instructions are stored in the memory, and the processor is used to execute the process as claimed in the claims. The method of any one of 1 to 11.
  25. 一种计算机可读存储介质,其特征在于,包括指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1至11中任一项的所述的方法。A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 11.
PCT/CN2021/112935 2020-10-13 2021-08-17 Route configuration method, network device, communication system and storage medium WO2022078051A1 (en)

Applications Claiming Priority (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
CN202011090902.0 2020-10-13

Publications (1)

Publication Number Publication Date
WO2022078051A1 true WO2022078051A1 (en) 2022-04-21

Family

ID=81089622

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112935 WO2022078051A1 (en) 2020-10-13 2021-08-17 Route configuration method, network device, communication system and storage medium

Country Status (2)

Country Link
CN (1) CN114363735B (en)
WO (1) WO2022078051A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004056056A1 (en) * 2002-12-13 2004-07-01 Cisco Technology, Inc. Arrangement in a router of a mobile network for optimizing use of messages carrying reverse routing headers
CN101425942A (en) * 2008-12-09 2009-05-06 华为技术有限公司 Method, apparatus and system for bidirectional forwarding detection implementation
CN101795235A (en) * 2010-03-18 2010-08-04 中兴通讯股份有限公司 Route map treatment method and operator edge device
CN105939255A (en) * 2015-03-02 2016-09-14 思科技术公司 Symmetric routing enforcement
CN107113252A (en) * 2014-12-17 2017-08-29 英特尔公司 For network-on-chip and line direction decoding circuit
CN111131021A (en) * 2020-01-17 2020-05-08 新华三信息安全技术有限公司 Forwarding method and network equipment for Bidirectional Forwarding Detection (BFD) message

Family Cites Families (7)

* Cited by examiner, † Cited by third party
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
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
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
CN104754425B (en) * 2013-12-27 2018-01-16 北京创维海通数字技术有限公司 A kind of transmission method of unidirectional DVB network signaling datas in bilateral network
CN107743109B (en) * 2016-10-31 2020-09-04 腾讯科技(深圳)有限公司 Protection method, control device, processing device and system for flow attack

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004056056A1 (en) * 2002-12-13 2004-07-01 Cisco Technology, Inc. Arrangement in a router of a mobile network for optimizing use of messages carrying reverse routing headers
CN101425942A (en) * 2008-12-09 2009-05-06 华为技术有限公司 Method, apparatus and system for bidirectional forwarding detection implementation
CN101795235A (en) * 2010-03-18 2010-08-04 中兴通讯股份有限公司 Route map treatment method and operator edge device
CN107113252A (en) * 2014-12-17 2017-08-29 英特尔公司 For network-on-chip and line direction decoding circuit
CN105939255A (en) * 2015-03-02 2016-09-14 思科技术公司 Symmetric routing enforcement
CN111131021A (en) * 2020-01-17 2020-05-08 新华三信息安全技术有限公司 Forwarding method and network equipment for Bidirectional Forwarding Detection (BFD) message

Also Published As

Publication number Publication date
CN114363735B (en) 2023-05-12
CN114363735A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US11228526B2 (en) Flexible ethernet path establishment method and network device
US7680029B2 (en) Transmission apparatus with mechanism for reserving resources for recovery paths in label-switched network
WO2021185208A1 (en) Packet processing method and apparatus, device, and storage medium
US7778204B2 (en) Automatic maintenance of a distributed source tree (DST) network
EP3654664B1 (en) Method for interconnected ring protection, computer-readable storage medium and computer program product
US9491000B2 (en) Data transport system, transmission method, and transport apparatus
JP4199514B2 (en) Method for interconnecting networks and apparatus therefor
US8537827B2 (en) System and method for establishing a communication path using labels
US20070253327A1 (en) System and method of multi-nodal APS control protocol signalling
WO2008006268A1 (en) Method system and node device for realizing service protection in the automatically switched optical network
JP2011527155A (en) Link diversity and load balancing across digital and optical express-thru nodes
US20230232139A1 (en) Service Protection Method and Network Node
US20210176169A1 (en) Source Routing Tunnel Ingress Protection
WO2006046576A1 (en) Packet communication network and packet communication method
WO2005011302A1 (en) A method of transformation between permanent connection and switched connection in optical network
US20140078901A1 (en) Link Bundle Co-Routed VCAT Via RSVP Message Bundling
US20230254245A1 (en) Data Frame Sending Method and Network Device
US8750286B2 (en) Network communication system, communication device, network linkage method and program thereof
CN101860769B (en) Method, device and system for fusing IP and light
US7848246B2 (en) Method and system for confirming connection of layer-1 label switched path(L1-LSP) in GMPLS-based network
WO2012003740A1 (en) Path computation method and path computation element in optical network
WO2022078051A1 (en) Route configuration method, network device, communication system and storage medium
WO2015024163A1 (en) 1+1 end-to-end bidirectional switching method, system and node
US20210067438A1 (en) Multicast transmissions management
WO2016165263A1 (en) Protection switching processing method, apparatus and system for path, and forward device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21879098

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21879098

Country of ref document: EP

Kind code of ref document: A1