[go: up one dir, main page]

WO2020135087A1 - Communication method, apparatus and system - Google Patents

Communication method, apparatus and system Download PDF

Info

Publication number
WO2020135087A1
WO2020135087A1 PCT/CN2019/124972 CN2019124972W WO2020135087A1 WO 2020135087 A1 WO2020135087 A1 WO 2020135087A1 CN 2019124972 W CN2019124972 W CN 2019124972W WO 2020135087 A1 WO2020135087 A1 WO 2020135087A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
label
value
communication
sequence number
Prior art date
Application number
PCT/CN2019/124972
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 WO2020135087A1 publication Critical patent/WO2020135087A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • This application relates to the field of communication technology, and in particular, to a communication method, device, and system.
  • the method of simulating packet sending (such as two-way active measurement protocol (TWAMP) technology) is used to detect the transmission link of the multi-protocol label switching (MPLS) network.
  • TWAMP two-way active measurement protocol
  • MPLS multi-protocol label switching
  • IPFPM IP flow performance measurement
  • TWAMP technology can determine the values of delay, jitter and lost messages, but it cannot determine the values of out-of-order messages, and the technology is not based on business messages and cannot truly reflect the customer's business conditions.
  • IPFPM technology can determine the value and delay of lost packets, but cannot determine the value and jitter of out-of-order packets.
  • the accuracy of the transmission link quality determined by the existing method is low.
  • the present application provides a communication method, device, and system, which are used to solve the problem that the existing method cannot determine the value of the out-of-order message.
  • a communication method is provided, which is applied to an MPLS network including a first device and a second device. Specifically, after receiving at least one message from the second device via the transmission link, the first device recognizes the first tag of each message and reads the sequence number of each message, and then, the first device According to the sequence number of each message read, determine the quality parameters of the transmission link.
  • the quality parameter here includes at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message.
  • Each message in the at least one message received by the first device in the present application includes a first label, and the first label includes a sequence number of the message.
  • the sequence number of the packet is used to indicate the sequence of the packets sent by the second device.
  • Each packet received by the first device of the present application includes a first label, and the first label includes the sequence number of the packet. After reading the sequence number of each message it receives, the first device can accurately determine the value of the out-of-order message, the value of the lost message or the value of the repeated message, which effectively improves The accuracy of the quality of the transmission link.
  • the method for the first device to determine the value of the out-of-sequence message is: the first device determines the first value (specifically, the report that satisfies the first preset condition in the at least one message Text value), and determine the first value as the value of the out-of-order message.
  • the first preset condition of the present application is: pre-curr ⁇ preset threshold, or, curr-pre>preset threshold; where curr represents the sequence of the first message (any one of at least one message) Number, pre represents the sequence number of the second message (the last message of the first message received by the first device), 1 ⁇ preset threshold ⁇ preset maximum sequence number.
  • This possible implementation method effectively and simply determines the value of the out-of-order message.
  • the first device in the present application may also determine the value of the out-of-order message according to the sequence number of each message read, which is not specifically limited in this application.
  • the method by which the first device determines the value of the lost packet is: the first device determines the second value (specifically, a packet that satisfies the second preset condition in at least one packet Value), so that the first device can determine the difference between the values of the out-of-order messages of the second value as the value of the lost message.
  • the second preset condition of the present application is: 1 ⁇ curr-pre ⁇ preset threshold, or, preset threshold ⁇ pre-curr ⁇ preset maximum sequence number; where curr represents the first message (at least one message Sequence number of any of the messages), pre means the sequence number of the second message (the last message of the first message received by the first device), 1 ⁇ preset threshold ⁇ preset maximum sequence number .
  • the first The device needs to determine the first value and obtain the value of the out-of-order message. Furthermore, the first device determines the difference between the first value and the value of the out-of-order message as the value of the real lost message. This possible implementation method effectively determines the value of the lost message.
  • the first device in this application can also determine the value of the lost message in other ways according to the sequence number of each message read, which is not specifically limited in this application.
  • the method for the first device to determine the value of the out-of-order message is: the first device determines the third value (specifically, a report that satisfies the third preset condition in at least one message Text value), and the third value is determined as the value of the repeated message.
  • the sequence number of each message sent by the sending end is different. Therefore, if the sequence number of a message received by the first device is the same as the sequence number of the previous message received by the first device, it means that the message is the same as the previous message.
  • the text is a repeated message. This possible implementation method effectively determines the value of the repeated message.
  • the above-mentioned first label further includes a time stamp of the message.
  • the first device can also read each The timestamp of the message, and according to the timestamp of each message, obtain the sending time and the receiving time of each message, and then for each message, the first device compares the receiving time of the message with the message The difference in transmission time of the message is determined as the delay of the message.
  • the first device may also determine the average delay according to the delay of each message.
  • the first device may also compare the delay of the message with the first device The difference in the delay of the last message of the received message is determined as the jitter of the message.
  • the first device further sends to the second device a communication mode indicating that the first device is capable of processing the first tag and instructing the second device to communicate with the first device ,
  • the at least one message is a message sent by the second device to the first device in the communication mode.
  • the communication mode of this application may be a tunnel mode or a transmission mode. If the communication mode is the tunnel mode, the second device encapsulates the first label for all packets to be sent to the first device. If the communication mode is the transmission mode, the second device treats certain specific messages sent to the first device (such as a message whose transmission address is a preset address, and the transmission address is the source address of the message and/or the destination address of the message ) Encapsulate the first label.
  • the first device and the second device can use different communication modes for communication, which is well adapted to actual needs.
  • each of the foregoing messages further includes a second label used to indicate that the first label does not participate in the calculation of load sharing, and the second label is located at the outer layer of the first label.
  • the first device may also determine the quality of the transmission link according to at least one of the determined quality parameter, time delay, and jitter.
  • the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet.
  • the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
  • a communication device which can implement the functions in the first aspect and any possible implementation manner thereof. These functions can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the communication device may include a receiving unit and a processing unit, and the receiving unit and the processing unit may perform the corresponding functions in the communication method of the first aspect and any possible implementation manner thereof .
  • a receiving unit configured to receive at least one message from a second device via a transmission link, each message in the at least one message includes a first label, and the first label includes a sequence number of the message
  • a processing unit Used to identify the first label of each message received by the receiving unit, and read the sequence number of each message, and used to determine the quality parameters of the transmission link based on the read sequence number, quality parameters At least one of the values of the out-of-order message, the value of the lost message, or the value of the repeated message is included.
  • a communication method is provided, which is applied to an MPLS network including a first device and a second device.
  • the second device receives the indication information sent by the first device to indicate that the first device is capable of processing the first tag, and indicates the communication mode in which the second device communicates with the first device;
  • the second device encapsulates the first label including the sequence number of the packet for the packet to be sent according to the communication mode indicated by the indication information, and sends the encapsulated packet to the first device .
  • the sequence number of the message in the first label is used by the first device to determine the quality parameter of the transmission link (the link between the first device and the second device), the quality parameter includes the value of the out-of-order message, At least one of the value of the lost message or the value of the repeated message.
  • the first device can recognize the sequence number in the first tag, and according to the sequence The number determines the quality parameter of the transmission link, which effectively improves the accuracy of the quality of the transmission link.
  • the communication mode of the present application is a tunnel mode or a transmission mode. If the communication mode is the tunnel mode, the packets to be sent are all the packets sent by the second device to the first device. If the communication mode is the transmission mode, the message to be sent is a message whose transmission address (the source address of the message and/or the destination address of the message) in all the messages sent by the second device to the first device is the preset address . If the communication mode is the transmission mode, the second device also determines the message to be sent.
  • the first device and the second device can use different communication modes for communication, which is well adapted to actual needs.
  • the second device if the communication between the second device and the first device is in a target scenario (virtual private network (VPN) scenario or label switching path (LSP) scenario Scenario), the second device also encapsulates a third label for the packet to be sent; where, if the target scenario is a VPN scenario, the third label is a VPN label; if the target scenario is an LSP scenario, the third label is an LSP label.
  • the method for the second device to encapsulate the first label for the message to be sent is: the second device encapsulates the first label on the outer layer of the third label.
  • the second device further encapsulates a second label used to indicate that the first label does not participate in the calculation of load sharing for the packet to be sent.
  • the second label is located on the first label. Outer layer.
  • the above-mentioned first tag further includes a time stamp of a message used by the first device to determine at least one of time delay and jitter.
  • the second device after encapsulating the first label for the packet to be sent, the second device sends the encapsulated packet to the first device.
  • the first device can determine at least one of the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message , The delay of each packet and/or the jitter of each packet may also be determined according to the time stamp in the first label of each packet.
  • the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
  • a communication device which can implement the functions in the third aspect and any possible implementation manner thereof. These functions can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the communication device may include a receiving unit, a processing unit, and a sending unit, and the receiving unit, the processing unit, and the sending unit may perform the third aspect and any one of its possible implementation manners Corresponding function in the communication method.
  • the receiving unit is used to receive instruction information sent by the first device, the instruction information is used to indicate that the first device has the capability of processing the first tag, and instructs the communication mode in which the second device communicates with the first device;
  • the processing unit Used to encapsulate the first label for the packet to be sent according to the communication mode indicated by the indication information received by the receiving unit when the second device has the capability of processing the first label, the first label includes the Sequence number.
  • the sequence number of the message is used by the first device to determine the quality parameter of the transmission link.
  • the quality parameter includes at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message.
  • the transmission link It is a link between the first device and the second device; a sending unit is used to send the encapsulated message obtained by the processing unit to the first device.
  • a communication device includes a processor and a memory.
  • the memory is connected to the processor.
  • the memory is used to store computer instructions.
  • the communication device executes the computer instructions, The communication device executes the communication method described in the first aspect and any possible implementation manner thereof, or executes the communication method described in the third aspect and any possible implementation manner thereof.
  • the communication device further includes a transceiver for transmitting and receiving data in the communication method described in the first aspect and any possible implementation manner thereof under the control of the processor of the communication device , Signaling or information steps, or performing the steps of sending and receiving data, signaling or information in the communication method described in the third aspect and any possible implementation manner thereof, for example, receiving at least one message and sending instructions information.
  • a transceiver for transmitting and receiving data in the communication method described in the first aspect and any possible implementation manner thereof under the control of the processor of the communication device , Signaling or information steps, or performing the steps of sending and receiving data, signaling or information in the communication method described in the third aspect and any possible implementation manner thereof, for example, receiving at least one message and sending instructions information.
  • the communication device may be any node in the MPLS network, such as a service provider edge node or a service provider (Provider, P) node, or may be a part of the device in the MPLS network, such as a chip system in the service provider edge node.
  • the chip system is used to support the service provider edge node to implement the functions involved in the first aspect and any one of its possible implementations, or to perform the functions involved in the above third aspect and any one of its possible implementations, For example, receiving, sending or processing the data and/or information involved in the above communication method.
  • the chip system includes a chip, and may also include other discrete devices or circuit structures.
  • a computer-readable storage medium having instructions stored therein; when the instructions run on the communication device, the communication device is caused to perform the first aspect as described above and various possible implementations thereof The communication method described in the above manner, or the communication method described in the third aspect and any possible implementation manner thereof.
  • a computer program product including instructions, which when executed on a communication device, causes the communication device to perform the communication method described in the first aspect and its various possible implementation manners, or to execute the above The communication method described in the third aspect and any possible implementation manner thereof.
  • the above instructions may be stored in whole or in part on the first computer storage medium, where the first computer storage medium may be packaged with the processor of the communication device or separately packaged with the processor of the communication device, This application does not specifically limit this.
  • a communication system including the communication device described in the second aspect and any possible implementation manner thereof, and the communication described in the fourth aspect and any possible implementation manner thereof Device.
  • FIG. 1 is a first schematic structural diagram of a communication system including an MPLS network provided by an embodiment of this application;
  • FIG. 2 is a second structural diagram of a communication system including an MPLS network provided by an embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • 4A is a schematic flowchart 1 of a communication method provided by an embodiment of the present application.
  • 4B is a second schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 5 is a format of a message for adding an EMSTI label in an LSP scenario in an embodiment of this application;
  • FIG. 6 is a format of a message for adding an EMSTI label in a VPN scenario in an embodiment of this application
  • FIG. 7 is a third schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 8 is a fourth schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the format of LDP TLV in an embodiment of the present application.
  • FIG. 10 is a schematic diagram 1 of a processing flow of a message in an embodiment of the present application.
  • FIG. 11 is a schematic flowchart 5 of a communication method provided by an embodiment of the present application.
  • FIG. 12 is a second schematic diagram of a message processing flow in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of the format of the RSVP tag request class in the embodiment of the present application.
  • 15 is a schematic structural diagram 1 of a communication device provided by an embodiment of the present application.
  • 16 is a second schematic structural diagram of a communication device according to an embodiment of the present application.
  • words such as “exemplary” or “for example” are used as examples, illustrations or explanations. Any embodiments or design solutions described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as “exemplary” or “for example” is intended to present related concepts in a specific manner.
  • first and second are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • the features defined as “first” and “second” may explicitly or implicitly include one or more of the features.
  • the meaning of “plurality” is two or more.
  • MPLS is a technology for exchanging and forwarding packets through a label.
  • the label can support multiple protocols, such as label distribution protocol (LDP), open shortest path priority (open shortest path first) , OSPF) protocol, resource reservation protocol (resource reservation protocol (RSVP), border gateway protocol (border gateway protocol, BGP), etc. Therefore, the MPLS network can be understood as a unified forwarding plane suitable for multiple protocols.
  • LDP label distribution protocol
  • OSPF open shortest path priority
  • RSVP resource reservation protocol
  • border gateway protocol border gateway protocol
  • BGP border gateway protocol
  • an MPLS packet may include a label stack (label stack), which is composed of one or more label stack entries (label stack entries).
  • Label stack entries Each label stack entry includes a label field, a priority field (which can be represented by EXP), a bottom field of the stack (which can be represented by S), and a lifetime field (which can be represented by TTL).
  • the label field is a relatively short, fixed-length (usually 20 bits), usually only a partial meaning of the identifier (similar to MAC address).
  • the priority field generally occupies 3 bits and is used to indicate the priority of MPLS packets.
  • the bottom field of the stack generally occupies 1 bit and is used to indicate whether the current label is at the bottom of the stack.
  • the lifetime field generally occupies 8 bits and is used to indicate whether the MPLS packet is valid. If the value of the lifetime field is 0, it means that the MPLS packet has expired and should not be forwarded.
  • the MPLS network includes service provider edge ingress (ingress provider edge, ingress PE) and service provider edge outgoing node (egress provider edge, egress PE).
  • the service provider edge ingress node is connected to the customer edge device (customer edge, CE) of the sending end, and is used to receive the service message sent by the sending end CE, add an MPLS label to the service message, and send the message after adding the MPLS label .
  • the service provider's edge egress node is connected to the receiver's customer edge (CE), which is used to receive MPLS label-added messages, pop the MPLS labels, and send the removed labels to the receiver CE Text.
  • the service provider edge ingress node and the service provider edge egress node may be routers, and both the sending end CE and the receiving end CE may be routers, switches, or hosts.
  • the MPLS network may further include at least one service provider (Provider, P) node.
  • Node P has basic MPLS forwarding capabilities.
  • the P node may be a router.
  • the P node When the communication between the service provider edge ingress node, node P, and service provider edge egress node is in a virtual private network (VPN) scenario, after receiving the message carrying the MPLS label sent by the upstream device, the P node directly Forward the message to the downstream device.
  • VPN virtual private network
  • LSP label switching path
  • FIG. 1 shows a structure of a communication system including an MPLS network.
  • the communication system includes CE1, CE2, service provider edge node 1, service provider edge node 2 and P node, and service provider edge node 1, service provider edge node 2 and P node are all located in the MPLS network.
  • the service provider edge node 1 is connected to CE 1 and P node
  • the service provider edge node 2 is connected to CE 2 and P node.
  • FIG. 2 shows another structure of a communication system including an MPLS network.
  • the communication system includes CE1, CE2, service provider edge node 1, service provider edge node 2, P node, and a network management system (NMS).
  • the service provider edge node 1, the service provider edge node 2 and the P node are located in the MPLS network, and the NMS is connected to each node in the MPLS network.
  • NMS manages every node in the MPLS network.
  • the service provider edge node 1 may be an edge ingress node of the MPLS network.
  • the service provider edge node 2 is an edge outgoing node of the MPLS network, and CE 1 is a service message transmission
  • CE 2 is the receiving end of the service message;
  • the service provider edge node 1 can also be the edge outgoing node of the MPLS network.
  • the service provider edge node 2 is the edge ingress node of the MPLS network, and CE 1 is the service message.
  • CE 2 is the sending end of the service message.
  • the communication between the devices shown in FIG. 1 or FIG. 2 may be in a VPN scenario or an LSP scenario, which is not specifically limited in this application.
  • FIG. 1 or FIG. 2 is only an example, and is not a limitation of the communication system. In practical applications, the structure of the communication system can exist in various forms.
  • TWAMP technology or IPFPM technology is used to detect the quality of transmission links in the MPLS network.
  • the accuracy of the transmission link quality determined by TWAMP technology and IPFPM technology is low.
  • the embodiments of the present application provide a communication method, by adding a first label including the sequence number of the message to the message, a node with the function of processing the first label in the MPLS network is implemented (taking the first device as an example) ) According to the sequence number of the message, determine at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message, which effectively improves the accuracy of the quality of the transmission link.
  • the first label in the embodiment of the present application may further include a time stamp of the message, so that the first device can determine the delay and/or jitter according to the time stamp of the message.
  • the first device can determine at least the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message.
  • One can also determine the delay and/or jitter according to the time stamp in the first label of each packet.
  • the communication method provided by the present application can determine more parameters, which effectively improves the accuracy of the transmission link quality.
  • the communication method provided by the embodiments of the present application is applicable to the communication system shown in FIG. 1 or FIG. 2.
  • FIG. 3 is a schematic diagram of a composition of a communication device provided by an embodiment of the present application.
  • the communication device may include at least one processor 31, a memory 32, a communication interface 33, and a communication bus 34. The following describes the components of the communication device in detail with reference to FIG. 3:
  • the processor 31 is a control center of the communication device, and may be a single processor or a collective name of multiple processing elements.
  • the processor 31 is a central processing unit (CPU), may also be an application-specific integrated circuit (ASIC), or configured to implement one or more integrations of the embodiments of the present application Circuits, for example: one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
  • DSPs digital signal processors
  • FPGAs field-programmable gate arrays
  • the processor 31 can execute various functions of the communication device by running or executing the software program stored in the memory 32 and calling the data stored in the memory 32.
  • the processor 31 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 3.
  • the communication device may include multiple processors, such as the processor 31 and the processor 35 shown in FIG. 3. Each of these processors may be a single-core processor (single-core processor) or a multi-core processor (multi-core processor).
  • the processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the memory 32 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types of information and instructions that can be stored
  • the dynamic storage device can also be an electrically erasable programmable read-only memory (electrically erasable programmable-read-only memory (EEPROM), disk storage medium or other magnetic storage device, or can be used to carry or store a form of instructions or data structures
  • EEPROM electrically erasable programmable read-only memory
  • the memory 32 may exist independently, and is connected to the processor 31 through the communication bus 34.
  • the memory 32 may also be integrated with the processor 31.
  • the memory 32 is used to store a software program that executes the solution of the present application, and the software program is executed by the processor 31.
  • the communication interface 33 is used to communicate with other devices or communication networks, such as Ethernet, wireless access network (RAN), wireless local area network (WLAN), etc.
  • the communication interface 33 may include a receiving unit to implement a receiving function, and a transmitting unit to implement a transmitting function.
  • the communication bus 34 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnection (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 3, but it does not mean that there is only one bus or one type of bus.
  • the device structure shown in FIG. 3 does not constitute a limitation on the communication device.
  • the communication device may include more or fewer components than the illustration, or a combination Some components, or different component arrangements.
  • the subsequent content mainly uses CE 1 in FIG. 1 or FIG. 2 as the sending end of the service message
  • the service provider edge node 1 is the edge ingress node of the MPLS network
  • the service provider edge node 2 is the edge egress node of the MPLS network
  • CE 2 is the receiving end of the service message as an example.
  • FIG. 4A is a flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 4A, the method may include:
  • the first device sends instruction information to the second device.
  • the instruction information is used to indicate that the first device is capable of processing the first tag, and instruct the communication mode in which the second device communicates with the first device.
  • the first label in the embodiment of the present application includes a priority field, a stack bottom field, and a lifetime field.
  • the priority field, the bottom of the stack field, and the lifetime field can refer to the above description of the MPLS label stack entry, which will not be described in detail here.
  • the first label also includes a sequence number field of the message.
  • the sequence number field of the message is used to indicate the sequence number of the message.
  • the sequence numbers of the packets sent by the sending end are arranged in order from small to large or from large to small.
  • the embodiment of the present application takes the sending end as an example to send the messages in the order of the sequence number from small to large.
  • the length of the sequence number field of the message is 32 bits.
  • the first label may further include a timestamp field, which is used to record the sending time and receiving time of the packet.
  • the length of the timestamp field is 32 bits.
  • the communication mode between the first device and the second device is a tunnel mode or a transmission mode. If the communication mode is the tunnel mode, the second device encapsulates the first label on all packets sent to the first device. If the communication mode is the transmission mode, the second device encapsulates the first label in all messages sent by the second device to the first device with the transmission address of the preset address, where the transmission address is the source address and /Or the destination address of the message.
  • the first device in the embodiment of the present application may be a service provider edge egress node, or may be a P node in an MPLS network.
  • the first device is the service provider edge outgoing node
  • the second device is the service provider edge ingress node.
  • the first device may be a service provider edge egress node, and the second device may be an upstream node of the service provider edge egress node (that is, a P node connected to the service provider edge egress node);
  • the first device may also be a certain P node, and the second device may be an upstream node of the P node (the upstream node may be another P node or a service provider edge entry node); the first device may also be a service provider edge Outgoing node, the second device is the service provider edge ingress node (at this time, the P node in the MPLS network does not have the ability to process the first label), of course, the first device and the second device can also be in other forms, here is no longer Repeat them one by one.
  • the indication information includes first information for indicating that the first device is capable of processing the first tag and second information for indicating that the second device communicates with the first device according to the communication mode.
  • the method for the first device to send the indication information to the second device is: the first device sends the first information to the second device; correspondingly, the second device determines that it also has the ability to process the first tag After that, a reply message is sent to the first device to notify the first device that the second device is capable of processing the first tag; after that, the first device determines the second information and sends the second information to the second device.
  • the method for the first device to send the indication information to the second device is: the first device sends a message 1 including the first information and the second information to the second device.
  • the second device When the second device is capable of processing the first tag, the second device sends a confirmation message to the first device.
  • the second device may send a confirmation message indicating that the second device will communicate with the first device according to the communication mode indicated by the second information.
  • the confirmation message is an ACK message or a message including an OK field, which is not specifically limited in this embodiment of the present application.
  • the second device determines whether it has the capability of processing the first tag. If the second device is capable of processing the first tag, the second device sends a confirmation message to the first device, the confirmation message is used to indicate that the second device is capable of processing the first tag, and the second device will be based on the second information
  • the indicated communication mode communicates with the first device.
  • the second device does not have the capability to process the first label
  • the second device is a P node in the MPLS network
  • both the upstream node and the downstream node of the node have the capability to process the first label
  • the P node needs Send "type-length-value (TLV) of the first label processed by the downstream node" to the upstream node, so as to facilitate the negotiation of the communication mode between the upstream node and the downstream node.
  • TLV type-length-value
  • the second device encapsulates the first label for each packet to be sent according to the communication mode indicated by the indication information.
  • the second device encapsulates the first label on all packets sent to the first device. Therefore, after S401, the second device determines each message sent to the first device as a message to be sent, and encapsulates a first label for each message to be sent.
  • the second device encapsulates the first label in all the messages sent by the second device to the first device with the transmission address of the preset address. Therefore, after S401, the second device needs to first determine the message to be sent from all the messages sent to the first device, and then, the second device encapsulates the first label for each message to be sent.
  • the communication between the first device and the second device may be in an LSP scenario or a VPN scenario.
  • the second device also encapsulates an LSP label for each packet to be sent; if the communication between the first device and the second device is in a VPN scenario, the first The second device also encapsulates a VPN label for each packet to be sent.
  • the second device encapsulates the LSP label (or VPN label) for each message to be sent as the prior art, for details, reference may be made to the description of the prior art, which will not be described in detail here.
  • the second device when the communication between the first device and the second device is in an LSP scenario, the second device encapsulates the first label on the outer layer of the LSP label of each packet to be sent; when the first device and the second device When the communication between the two devices is in a VPN scenario, the second device encapsulates the first label on the outer layer of the VPN label of each packet to be sent.
  • the second device encapsulates a second label for each message to be sent.
  • the second label is used to indicate that the first label does not participate in the calculation of load sharing.
  • other nodes in the MPLS network do not use the first label for the calculation of load sharing.
  • the calculation of load sharing by the nodes is the prior art, which will not be described in detail here.
  • the second label belongs to the reserved label, for example, the second label is the reserved label 11.
  • the second device encapsulates the second label on the outer layer of the first label.
  • FIG. 5 shows the format of the packet in which the second device encapsulates the EMSTI label in the LSP scenario
  • FIG. 6 shows the format of the packet in which the second device encapsulates the EMSTI label in the VPN scenario.
  • the packets shown in FIG. 5 and FIG. 6 also include a public network destination address (DA) field, a public network source address (source) address (SA) field, and a virtual local area network (virtual local area network).
  • DA public network destination address
  • SA public network source address
  • VPN virtual local area network
  • VLAN VLAN ID
  • 8847 field LSP label
  • VPN label VLAN label
  • payload cyclic redundancy check (cyclic redundancy check, CRC) field.
  • CRC cyclic redundancy check
  • the second device sends at least one encapsulated message to the first device through the transmission link.
  • the first device receives at least one message from the second device via the transmission link.
  • Each message received by the first device includes the first label.
  • each packet received by the first device further includes a second label.
  • the first device recognizes the first label of each message, and reads the sequence number of each message in the at least one message.
  • the first label includes the sequence number field of the message, therefore, after identifying the first label of each message, the first device can read the sequence number of each message in at least one message.
  • the first device determines the quality parameter of the transmission link according to the sequence number of each message read.
  • the transmission link is a link between the first device and the second device, and the quality parameter of the transmission link includes at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message.
  • the method for the first device to determine the value of the out-of-order message may be: the first device determines the value of the message that meets the first preset condition (that is, the first value) in at least one message as the value of the out-of-order message.
  • the first preset condition is: pre-curr ⁇ preset threshold, or curr-pre>preset threshold.
  • Curr here means the sequence number of the first message (any one of the at least one message), and pre means the sequence number of the second message (the last message of the first message received by the first device) , 1 ⁇ preset threshold ⁇ preset maximum serial number.
  • the preset threshold value of the present application may be the flip length value of the serial number.
  • the sequence number field of the message in the first label occupies 32 bits, so that the preset maximum sequence number may be 4294967295 (0xfffffff).
  • the sequence number of the packet has a maximum value and a minimum value. If the sequence number of the current packet sent by the second device is the preset maximum sequence number, the sequence number of the next packet sent by the second device should be the preset The minimum sequence number, therefore, the sequence number of the message may be reversed.
  • the flip length of the sequence number can be set to a preset threshold, that is, the value of the default continuous out-of-order packets will not exceed the preset threshold.
  • the preset threshold is 2147483647 (0x7ffffffff).
  • the first device in the embodiment of the present application may also use other methods to determine the value of the out-of-sequence message, which will not be repeated here.
  • the method for the first device to determine the value of the lost message may be: the first device determines the value of the message that satisfies the second preset condition (that is, the second value) in at least one message, and obtains the value of the out-of-order message ( For the acquisition of this value, please refer to the above description), so that the first device can determine the difference between the second value and the value of the out-of-order message as the value of the lost message.
  • the second preset condition is: 1 ⁇ curr-pre ⁇ preset threshold, or, preset threshold ⁇ pre-curr ⁇ preset maximum sequence number.
  • curr and pre can refer to the above description, and the value range of the preset threshold can also refer to the above description, which will not be described in detail here.
  • the method for the first device to determine the value of the repeated message may be: the first device determines the value of the message that satisfies the third preset condition (that is, the third value) in at least one message, and determines the value as the repeated message Value.
  • curr and pre please refer to the above description, and no more details will be given here.
  • the first label in the embodiment of the present application may further include a time stamp.
  • the first device can also read the time stamp of each message to obtain the sending time and receiving time of each message, and then determine the delay and jitter according to the sending time and receiving time of each message At least one.
  • the communication method provided by the embodiments of the present application may further include:
  • the first device reads the time stamp of each message.
  • the first device obtains the sending time and receiving time of each message according to the time stamp of each message, and determines the delay and/or jitter.
  • the first device determines the difference between the reception time of the message and the transmission time of the message as the delay of the message.
  • the first device can also calculate the average delay T, for example:
  • the first device determines the difference between the delay of the message and the delay of the last message of the message received by the first device as the value of the message Jitter.
  • J[a] is used to represent the delay of message a
  • J[b] is the delay of message b
  • J[a] Arrive[a]-Send[a]
  • J[b] Arrive[b]-Send[b]
  • the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet.
  • the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
  • the first device may also determine the quality of the transmission link according to the determined parameters, And send the quality of the transmission link to the NMS, so that the NMS operation and maintenance personnel can maintain the first device or the second device in time.
  • the relevant parameters such as the above-mentioned quality parameters, time delay, and jitter
  • the first device may also send the determined parameters to the NMS, so that the NMS can determine the quality of the transmission link according to the parameters, thereby making the NMS Of O&M personnel timely maintain the first device or the second device.
  • the relevant parameters such as the above-mentioned quality parameters, delay, and jitter
  • the communication method provided in this embodiment of the present application may further include S701 or S702:
  • the first device sends the determined parameter to the NMS.
  • the first device determines the quality of the transmission link according to the determined parameters, and sends the quality of the transmission link to the NMS.
  • the first device may use the preset weight value for each parameter To calculate the quality of the transmission link.
  • the first device may also use other methods to determine the quality of the transmission link, which will not be repeated here.
  • the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet.
  • the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
  • the processes shown in FIG. 8 and FIG. 11 are described by encapsulating the first label and the second label (that is, the EMSTI label) for the message, and the first label includes the sequence number and time stamp of the message as an example.
  • PE1 represents the service provider edge ingress node
  • PE2 represents the service provider edge egress node
  • P node represents the intermediate node between PE1 and PE2
  • P The nodes are connected to PE1 and PE2.
  • the transmission link between P node and PE 1 is transmission link 1
  • the transmission link between P node and PE 2 is transmission link 2.
  • FIG. 8 is a flowchart of a communication method provided by an embodiment of the present application. The process shown in FIG. 8 is applicable to labels supporting LDP in an MPLS network, and the communication between PE 1, P nodes, and PE 2 is in an LSP scenario.
  • the communication method may include:
  • Node P sends instruction information 1 to PE 1, and PE 2 sends instruction information 2 to P node.
  • the indication information 1 is used to indicate that the P node has the capability of processing the first label, and indicates the communication mode in which the P node communicates with the PE 1.
  • the indication information 2 is used to indicate that PE 2 has the capability of processing the first label, and indicates the communication mode in which the P node communicates with PE 2.
  • the P node When the P node sends indication information 1 to PE 1, the P node is the first device described above, and PE 1 is the second device described above.
  • PE 2 sends instruction information 2 to the P node, the P node is the above-mentioned second device, and PE 2 is the above-mentioned first device.
  • the indication information 1/indication information 2 is carried in LSP signaling.
  • an LDP TLV is added to the LSP signaling, and the LDP TLV is used to carry indication information 1/indication information 2, and is used to identify that the device has the capability of processing the first label.
  • Figure 9 shows the format of LDP TLV.
  • Fig. 9 indicates an unknown bit, and its value is set to 1. If the receiving device does not recognize the LDP TLV, the receiving device ignores the LDP TLV; “F” indicates the forward bit (Forward bit), The value is set to 1. If the receiving device is the LDP TLV, the receiving device hops forward the LDP to the upstream device; "Type” indicates the type of the first label; “Length” indicates the length of the LDP TLV; “Mode” indicates The communication mode between the sending device and the receiving device, for example, 0x00 indicates the tunnel mode, and 0x01 indicates the transmission mode.
  • the 1/2/3/4/5/6/7 fields are set to 0, indicating that no distinction is made between the characteristics of the service flow, and all packets entering the tunnel are The first label is processed.
  • the 0/1/2/3/4/5/6/7/8/9 field can be set to 1, and the field set to 1 indicates that in the service flow Of this field is valid.
  • PE 1 sends a confirmation message 1 to the P node, and the P node sends a confirmation message 2 to the PE 2.
  • the embodiment of the present application does not limit the execution order of “PE 1 sends a confirmation message 1 to P node” and “P node sends a confirmation message 2 to PE 2”.
  • PE 1 encapsulates the LSP label 1 and the EMSTI label 1 for the message a to generate the message b.
  • PE 1 is a method for encapsulating LSP label 1 for message a. Refer to the method for encapsulating LSP label in the prior art, which will not be described in detail here.
  • PE1 encapsulates EMSTI label 1 for message a, and EMSTI label 1 is located on the outer layer of LSP label 1.
  • message a includes payload, private network SA, and private network DA.
  • PE 1 encapsulates message a with LSP label 1 and EMSTI label 1 to generate Packet b.
  • packet b includes payload, LSP label 1, EMSTI label 1, public network SA, and public network DA.
  • PE sends a message b to the P node.
  • the P node recognizes and strips the EMSTI label 1, and determines the quality parameter of the transmission link 1 according to the serial number and time stamp in the EMSTI label 1.
  • the method for the P node to determine the values of out-of-order messages can refer to the above S406
  • the method for determining the value of the lost message and the repeated message by the P node can refer to the description in S407 above
  • the method for determining the delay and jitter in the P node can refer to the description in S408 and S409 above, which will not be described in detail here.
  • the P node replaces LSP label 1 with LSP label 2, and adds EMSTI label 2 to generate a message c.
  • the P node after receiving the message b, the P node exchanges the LSP label and the EMSTI label in the message b to generate the message c, and the message c includes the payload, the LSP label 2, EMSTI label 2, public network SA and public network DA.
  • the P node sends a message c to PE 2.
  • PE 2 identifies and strips the EMSTI label 2, and determines the quality parameter of the transmission link 2 according to the sequence number and time stamp fields in the EMSTI label 2.
  • PE 2 can refer to the above method for determining the values of out-of-order messages
  • the method for PE 2 to determine the value of the lost message and the repeated message can refer to the description in S407 above
  • the method for PE 2 to determine the delay and jitter can refer to the description in S408 and S409 above, which will not be described in detail here.
  • PE 2 strips the LSP label 2 to obtain the message a.
  • PE 2 strips the LSP label and the EMSTI label in the message c to obtain the message a.
  • the P node may also send the quality parameter of the transmission link 1 to the NMS; after determining the quality parameter of the transmission link 2 (that is, after S807) ), PE 2 can also send the quality parameters of transmission link 2 to the NMS.
  • the communication method provided in this embodiment of the present application may further include S809 after S804, and may further include S810 after S807.
  • the P node sends the quality parameter of the transmission link 1 to the NMS.
  • PE 2 sends the quality parameters of transmission link 2 to the NMS.
  • S809 and S810 are optional, they are indicated by dotted boxes in FIG. 8.
  • the communication between PE 1, P nodes, and PE 2 can also be in a VPN scenario.
  • PE 1 and PE 1 need to process the first label, and the P node does not need to recognize the first label.
  • FIG. 11 shows a flowchart of a communication method provided by an embodiment of the present application in this situation.
  • the communication method may include:
  • PE 2 sends instruction information to PE 1.
  • the process of sending instruction information from PE 2 to PE 1 can refer to the description of S400 above, and details are not repeated here.
  • the indication information may be carried in the LDP TLV of the LSP signaling, where the LDP TLV may refer to the description of S800 above or the format of FIG. 9 and will not be described in detail here.
  • PE1 sends a confirmation message to PE2.
  • PE 1 After acquiring the message x, PE 1 encapsulates the VPN label, LSP label 1, and EMSTI label for the message x to generate the message y.
  • the method of encapsulating LSP label 1 by PE 1 for message x can refer to the method of encapsulating LSP label in the prior art, which will not be described in detail here.
  • PE1 is the message x encapsulated EMSTI label, and the EMSTI label is located on the outer layer of LSP label 1.
  • packet x includes payload, private network SA, and private network DA.
  • PE 1 After obtaining packet x, PE 1 encapsulates packet x with VPN label, LSP label 1, and EMSTI label.
  • the message y includes a payload, a VPN label, an EMSTI label, an LSP label 1, a public network SA, and a public network DA.
  • PE1 sends a message y to the P node.
  • the P node replaces LSP label 1 with LSP label 2 to generate a message z.
  • the P node after receiving the message y, the P node exchanges the LSP label in the message y to generate a message z, and the message z includes a payload, a VPN label, an EMSTI label, and an LSP Label 2, public network SA and public network DA.
  • the P node sends a message z to PE 2.
  • PE 2 recognizes and strips the EMSTI label, and determines the quality parameters of the transmission link between PE 1 and PE 2 according to the serial number and time stamp field in the EMSTI label.
  • PE 2 determines the values of out-of-order packets
  • the method can refer to the description of S406 above
  • the method of PE 2 to determine the value of the lost packet and the repeated message can refer to the description of S407 above
  • the method of PE 2 to determine the delay and jitter can refer to the description of S408 and S409 above, not here I will repeat them in detail.
  • PE 2 strips the VPN label and LSP label 2 to obtain the message x.
  • PE 2 strips the VPN label, EMSTI label, and LSP label 2 in the message z to obtain the message x.
  • PE 2 may also send the quality parameter of the transmission link to the NMS.
  • the communication method provided by the embodiment of the present application may further include S118 after S116.
  • PE 2 sends the quality parameters of the transmission link between PE 1 and PE 2 to the NMS.
  • S118 is optional, it is indicated by a dotted box in FIG. 11.
  • the label in the MPLS network can support LDP, and can also support RSVP or BGP.
  • the communication between devices in the MPLS network can only be in the LSP scenario.
  • the flow of the communication method shown in FIG. 8 is also applicable to this scenario.
  • the difference is that when the label in the MPLS network supports RSVP, the indication information 1/indication information 2 is carried in RSVP signaling.
  • an RSVP label request class is added to RSVP signaling.
  • the RSVP label request class is used to carry indication information 1/indication information 2, and is used to identify that the device has the capability of processing the first tag.
  • Figure 13 shows the format of the RSVP tag request class.
  • the RSVP tag request class includes a reserved field and a flow ID (flow ID) field.
  • the value of the reserved field is set to 0.
  • the flow identifier is used by the first node of the packet to dynamically apply according to the characteristics of the IP flow, and is used to identify the service flow. If the value of the flow identifier is 0, the receiving device performs EMSTI label processing on all packets sent by the sending device.
  • the communication between the devices in the MPLS network can be in an LSP scenario or a VPN scenario.
  • the flow of the communication method shown in FIG. 8 is also applicable to the label in the MPLS network supporting BGP, and the communication between devices in the MPLS network is in an LSP scenario.
  • the flow of the communication method shown in FIG. 11 is also applicable to the label in the MPLS network supporting BGP, and the communication between devices in the MPLS network is in a VPN scenario.
  • the indication information 1/indication information 2/indication information is carried in BGP signaling.
  • BGP signaling adds BGP TLV, which is used to carry indication information 1/indication information 2/indication information, and is used to identify that the device has the capability of processing the first label.
  • Figure 14 shows the format of BGP TLV.
  • a flag indicates optional delivery.
  • a node may not have the ability to process the first label. If a node does not have the ability to handle the first label, the node also needs to pass the BGP TLV to other peers Body (such as upstream device); type (type) indicates the type of the first label; length (length) indicates the length of the BGP TLV; mode (mode) indicates the communication mode between the sending device and the receiving device, exemplary, 0x00 Indicates the tunnel mode, and 0x01 indicates the transmission mode.
  • the communication mode between the sending device and the receiving device is the tunnel mode
  • the 1/2/3/4/5/6/7 fields are set to 0, indicating that no distinction is made between the characteristics of the service flow, and all packets entering the tunnel are The first label is processed.
  • the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet.
  • the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
  • An embodiment of the present application further provides a communication device, which may be any node in an MPLS network (such as a service provider edge node or a P node), or may be a partial device of a node in an MPLS network, for example, such as a service provider edge
  • the chip system in the node (or P node) is used to support nodes in the MPLS network to implement the functions involved in the above method embodiments, for example, to receive, send, or process the data and/or information involved in the above methods.
  • the chip system includes a chip, and may also include other discrete devices or circuit structures.
  • the communication device is used to perform the steps performed by the first device in the above communication method.
  • the communication apparatus provided in the embodiments of the present application may include modules corresponding to corresponding steps.
  • the embodiments of the present application may divide the functional modules of the communication apparatus according to the above method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 15 shows a possible structural diagram of the communication device in this embodiment.
  • the communication device 15 includes a receiving unit 150 and a processing unit 151.
  • the receiving unit 150 is used to support the communication device to perform the receiving operations shown in FIG. 4A, FIG. 4B or FIG. 7, such as S401, S404, etc., and/or other processes for the technology described herein.
  • the processing unit 151 is used to support the communication device to perform the identification, reading, and determination operations shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S405, S406, S407, S408, and/or the like. Other processes of the described technology.
  • the communication device provided by the embodiment of the present application includes but is not limited to the above-mentioned modules.
  • the communication device may further include a sending unit 152 and a storage unit 153.
  • the sending unit 152 may be used to support the communication device to perform the sending operations shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S400, S701, and/or other processes used in the technology described herein.
  • the storage unit 153 may be used to store program codes and data of the communication device.
  • the physical block diagram of the communication device provided in this application may refer to FIG. 3 described above.
  • the above processing unit 151 may be the processor 31 in FIG. 3
  • the sending unit 152 and the receiving unit 150 may be the communication interface 33 in FIG. 3
  • the storage unit 153 may be the memory 32 in FIG. 3.
  • Another embodiment of the present application also provides a computer-readable storage medium that stores instructions, and when the instructions run on the communication device, the communication device executes as shown in FIG. 4A, FIG. 4B, or FIG. 7. The steps of the first device in the communication method of the illustrated embodiment.
  • a computer program product includes computer-executable instructions, which are stored in a computer-readable storage medium; the processor of the communication device may be readable from the computer
  • the storage medium reads the computer-executed instruction, and the processor executes the computer-executed instruction to cause the communication device to execute the steps of the first device in the communication method of the embodiment shown in FIG. 4A, FIG. 4B, or FIG. 7.
  • An embodiment of the present application further provides a communication device, which may be any node in an MPLS network (such as a service provider edge node or a P node), or may be a partial device of a node in an MPLS network, for example, such as a service provider edge
  • the chip system in the node (or P node) is used to support nodes in the MPLS network to implement the functions involved in the above method embodiments, for example, to receive, send, or process the data and/or information involved in the above methods.
  • the chip system includes a chip, and may also include other discrete devices or circuit structures.
  • the communication device is used to perform the steps performed by the second device in the above communication method.
  • the communication apparatus provided in the embodiments of the present application may include modules corresponding to corresponding steps.
  • the embodiments of the present application may divide the functional modules of the communication apparatus according to the above method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 16 shows a possible structural schematic diagram of the communication device in this embodiment.
  • the communication device 16 includes a processing unit 161, a sending unit 162 and a receiving unit 163.
  • the processing unit 161 is used to support the communication device to perform the operations such as the packaging shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S402, S403, and/or other processes used in the technology described herein.
  • the sending unit 162 is used to support the communication device to perform the sending operations shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S401, S404, etc., and/or other processes for the technology described herein.
  • the receiving unit 163 may be used to support the communication device to perform the receiving operations shown in FIG. 4A, FIG. 4B, or FIG. 7, for example, S400, etc., and/or other processes used in the technology described herein.
  • the communication device provided by the embodiment of the present application includes but is not limited to the above-mentioned modules, for example, the communication device may further include a storage unit 164.
  • the storage unit 164 may be used to store program codes and data of the communication device.
  • the physical block diagram of the communication device provided in this application may refer to FIG. 3 described above.
  • the above processing unit 161 may be the processor 31 in FIG. 3
  • the sending unit 162 and the receiving unit 163 may be the communication interface 33 in FIG. 3
  • the storage unit 164 may be the memory 32 in FIG. 3.
  • Another embodiment of the present application also provides a computer-readable storage medium that stores instructions, and when the instructions run on the communication device, the communication device executes as shown in FIG. 4A, FIG. 4B, or FIG. 7. The steps of the second device in the communication method of the illustrated embodiment.
  • a computer program product includes computer-executable instructions, which are stored in a computer-readable storage medium; the processor of the communication device may be readable from the computer
  • the storage medium reads the computer-executed instruction, and the processor executes the computer-executed instruction to cause the communication device to execute the steps of the second device in the communication method of the embodiment shown in FIG. 4A, FIG. 4B, or FIG. 7.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from a website site, computer, server, or data center via wire (e.g.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data terminal including one or more available medium integrated servers, data centers, and the like.
  • the usable medium may be a magnetic medium (eg, floppy disk, hard disk, magnetic tape), or a semiconductor medium (eg, solid state disk (SSD)), or the like.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be The combination can either be integrated into another device, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application may essentially be part of or contribute to the prior art or all or part of the technical solutions may be embodied in the form of software products, which are stored in a storage medium
  • several instructions are included to enable a device (which may be a single-chip microcomputer, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

The embodiments of the present application relate to the technical field of communications, and disclosed thereby are a communication method, apparatus and system, which solve the problem of existing methods not being able to determine a value of an out-of-order message. Specifically, after receiving at least one message from a second device in an MPLS network by means of a transmission link, a first device in the MPLS network identifies a first label in each message, reads a sequence number of each message, and determines quality parameters of the transmission link according to the read sequence numbers. Hence, each message among the at least one message comprises a first label, the first label comprises the sequence number of the message, and the quality parameters comprise at least one of a value of an out-of-order message, a value of a lost message or a value of a repeated message.

Description

一种通信方法、装置及系统Communication method, device and system
本申请要求了2018年12月26日提交的,申请号为201811603171.8,发明名称为“一种通信方法、装置及系统”的中国申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese application filed on December 26, 2018 with the application number 201811603171.8 and the invention titled "a communication method, device and system", the entire contents of which are incorporated by reference in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种通信方法、装置及系统。This application relates to the field of communication technology, and in particular, to a communication method, device, and system.
背景技术Background technique
为了保障业务的正常运行,采用模拟发包的方式(如双向主动测量协议(two-way active measurement protocol,TWAMP)技术)检测多协议标签交换(multi-protocol label switching,MPLS)网络中传输链路的质量,或者,基于真实业务(如IP流量性能测试(IP flow performance measurement,IPFPM)技术)检测MPLS网络中传输链路的质量。In order to ensure the normal operation of the business, the method of simulating packet sending (such as two-way active measurement protocol (TWAMP) technology) is used to detect the transmission link of the multi-protocol label switching (MPLS) network. Quality, or, based on real services (such as IP flow performance measurement (IPFPM) technology) to detect the quality of transmission links in the MPLS network.
TWAMP技术可以确定出时延、抖动和丢失报文的数值,但无法确定乱序报文的数值,而且该技术并非基于业务报文,无法真实反映客户的业务情况。IPFPM技术可以确定出丢失报文的数值和时延,但无法确定乱序报文的数值和抖动。综上,对于MPLS网络,现有方法确定出的传输链路的质量的准确性较低。TWAMP technology can determine the values of delay, jitter and lost messages, but it cannot determine the values of out-of-order messages, and the technology is not based on business messages and cannot truly reflect the customer's business conditions. IPFPM technology can determine the value and delay of lost packets, but cannot determine the value and jitter of out-of-order packets. In summary, for the MPLS network, the accuracy of the transmission link quality determined by the existing method is low.
发明内容Summary of the invention
本申请提供一种通信方法、装置及系统,用于解决现有方法无法确定乱序报文的数值的问题。The present application provides a communication method, device, and system, which are used to solve the problem that the existing method cannot determine the value of the out-of-order message.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:
第一方面,提供一种通信方法,该通信方法应用于包括第一设备和第二设备的MPLS网络。具体的,第一设备在经由传输链路接收到来自第二设备的至少一个报文后,识别每个报文的第一标签,并读取每个报文的序列号,然后,第一设备根据读取到的每个报文的序列号,确定传输链路的质量参数。这里的质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个。本申请中的第一设备接收到的至少一个报文中的每个报文均包括第一标签,第一标签包括报文的序列号。In a first aspect, a communication method is provided, which is applied to an MPLS network including a first device and a second device. Specifically, after receiving at least one message from the second device via the transmission link, the first device recognizes the first tag of each message and reads the sequence number of each message, and then, the first device According to the sequence number of each message read, determine the quality parameters of the transmission link. The quality parameter here includes at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message. Each message in the at least one message received by the first device in the present application includes a first label, and the first label includes a sequence number of the message.
报文的序列号用于表示第二设备发送的报文的先后顺序,本申请的第一设备接收到的每个报文均包括第一标签,且第一标签包括报文的序列号,这样,第一设备在读取到其接收到的每个报文的序列号后,即可准确的确定出乱序报文的数值、丢失报文的数值或重复报文的数值,有效的提高了传输链路的质量的准确性。The sequence number of the packet is used to indicate the sequence of the packets sent by the second device. Each packet received by the first device of the present application includes a first label, and the first label includes the sequence number of the packet. After reading the sequence number of each message it receives, the first device can accurately determine the value of the out-of-order message, the value of the lost message or the value of the repeated message, which effectively improves The accuracy of the quality of the transmission link.
在本申请的一种可能的实现方式中,第一设备确定乱序报文的数值的方法为:第一设备确定第一数值(具体为上述至少一个报文中满足第一预设条件的报文的数值),并将第一数值确定为乱序报文的数值。本申请的第一预设条件为:pre-curr<预设阈值,或者,curr-pre>预设阈值;其中,curr表示第一报文(至少一个报文中的任意一个报文)的序列号,pre表示第二报文(第一设备接收到的第一报文的上一报文)的序列号,1<预设阈值<预设的最大序列号。In a possible implementation manner of the present application, the method for the first device to determine the value of the out-of-sequence message is: the first device determines the first value (specifically, the report that satisfies the first preset condition in the at least one message Text value), and determine the first value as the value of the out-of-order message. The first preset condition of the present application is: pre-curr<preset threshold, or, curr-pre>preset threshold; where curr represents the sequence of the first message (any one of at least one message) Number, pre represents the sequence number of the second message (the last message of the first message received by the first device), 1<preset threshold<preset maximum sequence number.
该可能的实现方式有效、简单的确定出了乱序报文的数值。当然,本申请中的第一设备 还可以根据读取到的每个报文的序列号,采用其他方式确定乱序报文的数值,本申请对此不作具体限定。This possible implementation method effectively and simply determines the value of the out-of-order message. Of course, the first device in the present application may also determine the value of the out-of-order message according to the sequence number of each message read, which is not specifically limited in this application.
在本申请的另一种可能的实现方式中,第一设备确定丢失报文的数值的方法为:第一设备确定第二数值(具体为至少一个报文中满足第二预设条件的报文的数值),这样,第一设备即可将第二数值的乱序报文的数值的差值确定为丢失报文的数值。本申请的第二预设条件为:1<curr-pre≤预设阈值,或者,预设阈值≤pre-curr<预设的最大序列号;其中,curr表示第一报文(至少一个报文中的任意一个报文)的序列号,pre表示第二报文(第一设备接收到的第一报文的上一报文)的序列号,1<预设阈值<预设的最大序列号。In another possible implementation manner of the present application, the method by which the first device determines the value of the lost packet is: the first device determines the second value (specifically, a packet that satisfies the second preset condition in at least one packet Value), so that the first device can determine the difference between the values of the out-of-order messages of the second value as the value of the lost message. The second preset condition of the present application is: 1 <curr-pre ≤ preset threshold, or, preset threshold ≤ pre-curr <preset maximum sequence number; where curr represents the first message (at least one message Sequence number of any of the messages), pre means the sequence number of the second message (the last message of the first message received by the first device), 1<preset threshold<preset maximum sequence number .
可以理解的是,若报文丢失,报文就会发生乱序,而乱序的报文仅仅是顺序发生了错乱,并没有丢失,因此,为了保证丢失报文的数值的准确性,第一设备需要确定第一数值,并获取乱序报文的数值,进而,第一设备将第一数值与乱序报文的数值的差值确定为真正的丢失报文的数值。该可能的实现方式有效的确定出了丢失报文的数值。当然,本申请中的第一设备还可以根据读取到的每个报文的序列号,采用其他方式确定丢失报文的数值,本申请对此不作具体限定。It is understandable that if the message is lost, the message will be out of order, and the out of order message is just out of order and not lost. Therefore, in order to ensure the accuracy of the value of the lost message, the first The device needs to determine the first value and obtain the value of the out-of-order message. Furthermore, the first device determines the difference between the first value and the value of the out-of-order message as the value of the real lost message. This possible implementation method effectively determines the value of the lost message. Of course, the first device in this application can also determine the value of the lost message in other ways according to the sequence number of each message read, which is not specifically limited in this application.
在本申请的另一种可能的实现方式中,第一设备确定乱序报文的数值的方法为:第一设备确定第三数值(具体为至少一个报文中满足第三预设条件的报文的数值),并将第三数值确定为重复报文的数值。本申请的第三预设条件为curr=pre,其中,curr表示第一报文(至少一个报文中的任意一个报文)的序列号,pre表示第二报文(第一设备接收到的第一报文的上一报文)的序列号。In another possible implementation manner of the present application, the method for the first device to determine the value of the out-of-order message is: the first device determines the third value (specifically, a report that satisfies the third preset condition in at least one message Text value), and the third value is determined as the value of the repeated message. The third preset condition of this application is curr=pre, where curr represents the sequence number of the first message (any one of at least one message), and pre represents the second message (received by the first device) The sequence number of the previous message of the first message.
对于发送端(如第二设备)而言,发送端发送的每个报文的序列号不同。因此,若第一设备接收到的某一报文的序列号和第一设备接收到的该报文的上一报文的序列号相同,则说明该报文和上一报文相同,该报文为重复报文。该可能的实现方式有效的确定出了重复报文的数值。For the sending end (such as the second device), the sequence number of each message sent by the sending end is different. Therefore, if the sequence number of a message received by the first device is the same as the sequence number of the previous message received by the first device, it means that the message is the same as the previous message. The text is a repeated message. This possible implementation method effectively determines the value of the repeated message.
在本申请的另一种可能的实现方式中,上述第一标签还包括报文的时间戳,相应的,在识别每个报文的第一标签后,第一设备还可以读取到每个报文的时间戳,并根据每个报文的时间戳,获取每个报文的发送时间和接收时间,进而针对每个报文,第一设备将所述报文的接收时间与所述报文的发送时间的差值,确定为所述报文的时延。In another possible implementation manner of the present application, the above-mentioned first label further includes a time stamp of the message. Correspondingly, after identifying the first label of each message, the first device can also read each The timestamp of the message, and according to the timestamp of each message, obtain the sending time and the receiving time of each message, and then for each message, the first device compares the receiving time of the message with the message The difference in transmission time of the message is determined as the delay of the message.
进一步可选的,第一设备还可以根据每个报文的时延,确定平均时延。Further optionally, the first device may also determine the average delay according to the delay of each message.
在本申请的另一种可能的实现方式中,对于每个报文而言,第一设备在计算出所述报文的时延后,还可以将所述报文的时延与第一设备接收到的所述报文的上一报文的时延的差值确定为报文的抖动。In another possible implementation manner of the present application, for each message, after calculating the delay of the message, the first device may also compare the delay of the message with the first device The difference in the delay of the last message of the received message is determined as the jitter of the message.
在本申请的另一种可能的实现方式中,第一设备还向第二设备发送用于指示第一设备具备处理第一标签的能力,且指示第二设备与第一设备进行通信的通信模式,上述至少一个报文为第二设备在通信模式中向第一设备发送的报文。In another possible implementation manner of the present application, the first device further sends to the second device a communication mode indicating that the first device is capable of processing the first tag and instructing the second device to communicate with the first device , The at least one message is a message sent by the second device to the first device in the communication mode.
本申请的通信模式可以为隧道模式或传输模式。若通信模式为隧道模式,第二设备对待发送至第一设备的所有报文封装第一标签。若通信模式为传输模式,第二设备对待发送至第一设备的某些特定报文(如传输地址为预设地址的报文,传输地址为报文的源地址和/或报文的目标地址)封装第一标签。The communication mode of this application may be a tunnel mode or a transmission mode. If the communication mode is the tunnel mode, the second device encapsulates the first label for all packets to be sent to the first device. If the communication mode is the transmission mode, the second device treats certain specific messages sent to the first device (such as a message whose transmission address is a preset address, and the transmission address is the source address of the message and/or the destination address of the message ) Encapsulate the first label.
第一设备与第二设备可以采用不同的通信模式进行通信,较好的适应了实际需求。The first device and the second device can use different communication modes for communication, which is well adapted to actual needs.
在本申请的另一种可能的实现方式中,上述每个报文还包括用于指示第一标签不参与负 载分担的计算的第二标签,该第二标签位于第一标签的外层。In another possible implementation manner of the present application, each of the foregoing messages further includes a second label used to indicate that the first label does not participate in the calculation of load sharing, and the second label is located at the outer layer of the first label.
在本申请的另一种可能的实现方式中,第一设备还可以根据确定出质量参数、时延和抖动中的至少一个,确定传输链路的质量。In another possible implementation manner of the present application, the first device may also determine the quality of the transmission link according to at least one of the determined quality parameter, time delay, and jitter.
综上,在不同的可能的实现方式中,第一设备能够根据每个报文的第一标签中的序列号,确定乱序报文的数值、重复报文的数值或丢失报文的数值中的至少一个,还可以根据每个报文的第一标签中的时间戳,确定时延和/或抖动。相比于现有技术,本申请提供的通信方法中,第一设备能够确定出更多的参数,有效的提高了传输链路的质量的准确性。In summary, in different possible implementations, the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet. Compared with the prior art, in the communication method provided by the present application, the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
第二方面,提供一种通信装置,该通信装置能够实现第一方面及其任意一种可能的实现方式中的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, a communication device is provided, which can implement the functions in the first aspect and any possible implementation manner thereof. These functions can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的一种可能的方式中,该通信装置可以包括接收单元和处理单元,该接收单元和处理单元可以执行上述第一方面及其任意一种可能的实现方式的通信方法中的相应功能。例如:接收单元,用于经由传输链路接收来自第二设备的至少一个报文,至少一个报文中的每个报文均包括第一标签,第一标签包括报文的序列号;处理单元,用于识别接收单元接收到的每个报文的第一标签,并读取每个报文的序列号,以及用于根据读取到的序列号,确定传输链路的质量参数,质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个。In a possible manner of the present application, the communication device may include a receiving unit and a processing unit, and the receiving unit and the processing unit may perform the corresponding functions in the communication method of the first aspect and any possible implementation manner thereof . For example: a receiving unit, configured to receive at least one message from a second device via a transmission link, each message in the at least one message includes a first label, and the first label includes a sequence number of the message; a processing unit , Used to identify the first label of each message received by the receiving unit, and read the sequence number of each message, and used to determine the quality parameters of the transmission link based on the read sequence number, quality parameters At least one of the values of the out-of-order message, the value of the lost message, or the value of the repeated message is included.
第三方面,提供一种通信方法,该通信方法应用于包括第一设备和第二设备的MPLS网络。具体的,第二设备接收第一设备发送的用于指示第一设备具备处理第一标签的能力,且指示第二设备与第一设备进行通信的通信模式的指示信息;在第二设备具备处理第一标签的能力的情况下,该第二设备根据指示信息指示的通信模式,为待发送的报文封装包括报文的序列号的第一标签,并向第一设备发送封装后的报文。第一标签中的报文的序列号用于第一设备确定传输链路(第一设备与所述第二设备之间的链路)的质量参数,该质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个,这样,第二设备向第一设备发送封装后的报文后,第一设备即可识别第一标签中的序列号,并根据序列号确定传输链路的质量参数,有效的提高了传输链路的质量的准确性。In a third aspect, a communication method is provided, which is applied to an MPLS network including a first device and a second device. Specifically, the second device receives the indication information sent by the first device to indicate that the first device is capable of processing the first tag, and indicates the communication mode in which the second device communicates with the first device; In the case of the capability of the first label, the second device encapsulates the first label including the sequence number of the packet for the packet to be sent according to the communication mode indicated by the indication information, and sends the encapsulated packet to the first device . The sequence number of the message in the first label is used by the first device to determine the quality parameter of the transmission link (the link between the first device and the second device), the quality parameter includes the value of the out-of-order message, At least one of the value of the lost message or the value of the repeated message. In this way, after the second device sends the encapsulated message to the first device, the first device can recognize the sequence number in the first tag, and according to the sequence The number determines the quality parameter of the transmission link, which effectively improves the accuracy of the quality of the transmission link.
在本申请的一种可能的实现方式中,本申请的通信模式为隧道模式或传输模式。若通信模式为隧道模式,待发送的报文为第二设备向第一设备发送的所有报文。若通信模式为传输模式,待发送的报文为第二设备向第一设备发送的所有报文中传输地址(报文的源地址和/或报文的目标地址)为预设地址的报文。若通信模式为传输模式,第二设备还确定待发送的报文。In a possible implementation manner of the present application, the communication mode of the present application is a tunnel mode or a transmission mode. If the communication mode is the tunnel mode, the packets to be sent are all the packets sent by the second device to the first device. If the communication mode is the transmission mode, the message to be sent is a message whose transmission address (the source address of the message and/or the destination address of the message) in all the messages sent by the second device to the first device is the preset address . If the communication mode is the transmission mode, the second device also determines the message to be sent.
第一设备与第二设备可以采用不同的通信模式进行通信,较好的适应了实际需求。The first device and the second device can use different communication modes for communication, which is well adapted to actual needs.
在本申请的另一种可能的实现方式中,若第二设备与第一设备的通信处于目标场景(虚拟专用网络(virtual private network,VPN)场景或者标签交换路径(label switching path,LSP)场景场景),第二设备还为待发送的报文封装第三标签;其中,若目标场景为VPN场景,第三标签为VPN标签;若目标场景为LSP场景,第三标签为LSP标签。相应的,第二设备为待发送的报文封装第一标签的方法为:第二设备在第三标签的外层封装第一标签。In another possible implementation manner of the present application, if the communication between the second device and the first device is in a target scenario (virtual private network (VPN) scenario or label switching path (LSP) scenario Scenario), the second device also encapsulates a third label for the packet to be sent; where, if the target scenario is a VPN scenario, the third label is a VPN label; if the target scenario is an LSP scenario, the third label is an LSP label. Correspondingly, the method for the second device to encapsulate the first label for the message to be sent is: the second device encapsulates the first label on the outer layer of the third label.
在本申请的另一种可能的实现方式中,第二设备还为待发送的报文封装用于指示第一标签不参与负载分担的计算的第二标签,该第二标签位于第一标签的外层。In another possible implementation manner of the present application, the second device further encapsulates a second label used to indicate that the first label does not participate in the calculation of load sharing for the packet to be sent. The second label is located on the first label. Outer layer.
在本申请的另一种可能的实现方式中,上述第一标签还包括用于第一设备确定时延和抖 动中的至少一个的报文的时间戳。In another possible implementation manner of the present application, the above-mentioned first tag further includes a time stamp of a message used by the first device to determine at least one of time delay and jitter.
综上,第二设备为待发送的报文封装第一标签后,向第一设备发送封装后的报文。在不同的可能的实现方式中,第一设备能够根据每个报文的第一标签中的序列号,确定乱序报文的数值、重复报文的数值或丢失报文的数值中的至少一个,还可以根据每个报文的第一标签中的时间戳,确定每个报文的时延和/或每个报文的抖动。相比于现有技术,本申请提供的通信方法中,第一设备能够确定出更多的参数,有效的提高了传输链路的质量的准确性。In summary, after encapsulating the first label for the packet to be sent, the second device sends the encapsulated packet to the first device. In different possible implementations, the first device can determine at least one of the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message , The delay of each packet and/or the jitter of each packet may also be determined according to the time stamp in the first label of each packet. Compared with the prior art, in the communication method provided by the present application, the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
第四方面,提供一种通信装置,该通信装置能够实现第三方面及其任意一种可能的实现方式中的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。According to a fourth aspect, a communication device is provided, which can implement the functions in the third aspect and any possible implementation manner thereof. These functions can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的一种可能的方式中,该通信装置可以包括接收单元、处理单元和发送单元,该接收单元、处理单元和发送单元可以执行上述第三方面及其任意一种可能的实现方式的通信方法中的相应功能。例如:接收单元,用于接收第一设备发送的指示信息,该指示信息用于指示第一设备具备处理第一标签的能力,且指示第二设备与第一设备进行通信的通信模式;处理单元,用于在第二设备具备处理第一标签的能力的情况下,根据接收单元接收到的指示信息所指示的通信模式,为待发送的报文封装第一标签,第一标签包括报文的序列号,报文的序列号用于第一设备确定传输链路的质量参数,质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个,传输链路为第一设备与第二设备之间的链路;发送单元,用于向第一设备发送处理单元得到的封装后的报文。In a possible manner of the present application, the communication device may include a receiving unit, a processing unit, and a sending unit, and the receiving unit, the processing unit, and the sending unit may perform the third aspect and any one of its possible implementation manners Corresponding function in the communication method. For example, the receiving unit is used to receive instruction information sent by the first device, the instruction information is used to indicate that the first device has the capability of processing the first tag, and instructs the communication mode in which the second device communicates with the first device; the processing unit , Used to encapsulate the first label for the packet to be sent according to the communication mode indicated by the indication information received by the receiving unit when the second device has the capability of processing the first label, the first label includes the Sequence number. The sequence number of the message is used by the first device to determine the quality parameter of the transmission link. The quality parameter includes at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message. The transmission link It is a link between the first device and the second device; a sending unit is used to send the encapsulated message obtained by the processing unit to the first device.
第五方面,提供一种通信装置,该通信装置包括处理器和存储器,所述存储器与所述处理器连接;所述存储器用于存储计算机指令,当所述处理器执行所述计算机指令时,所述通信装置执行上述第一方面及其任意一种可能的实现方式所述的通信方法,或者执行上述第三方面及其任意一种可能的实现方式所述的通信方法。According to a fifth aspect, a communication device is provided. The communication device includes a processor and a memory. The memory is connected to the processor. The memory is used to store computer instructions. When the processor executes the computer instructions, The communication device executes the communication method described in the first aspect and any possible implementation manner thereof, or executes the communication method described in the third aspect and any possible implementation manner thereof.
可选的,该通信装置还包括收发器,该收发器用于在所述通信装置的处理器的控制下,执行上述第一方面及其任意一种可能的实现方式所述的通信方法中收发数据、信令或信息的步骤,或者,执行上述第三方面及其任意一种可能的实现方式所述的通信方法中收发数据、信令或信息的步骤,例如,接收至少一个报文、发送指示信息。Optionally, the communication device further includes a transceiver for transmitting and receiving data in the communication method described in the first aspect and any possible implementation manner thereof under the control of the processor of the communication device , Signaling or information steps, or performing the steps of sending and receiving data, signaling or information in the communication method described in the third aspect and any possible implementation manner thereof, for example, receiving at least one message and sending instructions information.
该通信装置可以是MPLS网络中的任一节点,如服务商边缘节点或服务提供商(Provider,P)节点,也可以是MPLS网络中节点的一部分装置,例如服务商边缘节点中的芯片系统。该芯片系统用于支持服务商边缘节点实现第一方面及其任意一种可能的实现方式中所涉及的功能,或者执行上述第三方面及其任意一种可能的实现方式中所涉及的功能,例如,接收,发送或处理上述通信方法中所涉及的数据和/或信息。该芯片系统包括芯片,也可以包括其他分立器件或电路结构。The communication device may be any node in the MPLS network, such as a service provider edge node or a service provider (Provider, P) node, or may be a part of the device in the MPLS network, such as a chip system in the service provider edge node. The chip system is used to support the service provider edge node to implement the functions involved in the first aspect and any one of its possible implementations, or to perform the functions involved in the above third aspect and any one of its possible implementations, For example, receiving, sending or processing the data and/or information involved in the above communication method. The chip system includes a chip, and may also include other discrete devices or circuit structures.
第六方面,还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令;当指令在通信装置上运行时,使得通信装置执行如上述第一方面及其各种可能的实现方式所述的通信方法,或者执行上述第三方面及其任意一种可能的实现方式所述的通信方法。In a sixth aspect, there is also provided a computer-readable storage medium having instructions stored therein; when the instructions run on the communication device, the communication device is caused to perform the first aspect as described above and various possible implementations thereof The communication method described in the above manner, or the communication method described in the third aspect and any possible implementation manner thereof.
第七方面,还提供一种包括指令的计算机程序产品,当指令在通信装置上运行时,使得通信装置执行如上述第一方面及其各种可能的实现方式所述的通信方法,或者执行上述第三方面及其任意一种可能的实现方式所述的通信方法。According to a seventh aspect, there is also provided a computer program product including instructions, which when executed on a communication device, causes the communication device to perform the communication method described in the first aspect and its various possible implementation manners, or to execute the above The communication method described in the third aspect and any possible implementation manner thereof.
需要说明的是,上述指令可以全部或者部分存储在第一计算机存储介质上,其中,第一计算机存储介质可以与通信装置的处理器封装在一起的,也可以与通信装置的处理器单独封 装,本申请对此不作具体限定。It should be noted that the above instructions may be stored in whole or in part on the first computer storage medium, where the first computer storage medium may be packaged with the processor of the communication device or separately packaged with the processor of the communication device, This application does not specifically limit this.
本申请中第五方面、第六方面、第七方面及其各种实现方式的具体描述,可以参考上述第一方面及其各种实现方式中的详细描述,或者参考上述第三方面及其各种实现方式中的详细描述;并且,第五方面、第六方面、第七方面及其各种实现方式的有益效果,可以参考上述第一方面及其各种实现方式中的有益效果分析,或者参考上述第三方面及其各种实现方式中的有益效果分析,此处不再赘述。For a detailed description of the fifth, sixth, seventh, and various implementations of this application, reference may be made to the detailed descriptions in the first aspect and its various implementations, or the third aspect and its respective implementations For a detailed description in various implementations; and, for the beneficial effects of the fifth aspect, sixth aspect, seventh aspect, and various implementations thereof, reference may be made to the beneficial effects analysis in the first aspect and various implementations thereof, or With reference to the analysis of the beneficial effects in the third aspect and various implementations thereof, it will not be repeated here.
第八方面,提供一种通信系统,包括如上述第二方面及其任意一种可能的实现方式所述的通信装置、以及如上述第四方面及其任意一种可能的实现方式所述的通信装置。According to an eighth aspect, a communication system is provided, including the communication device described in the second aspect and any possible implementation manner thereof, and the communication described in the fourth aspect and any possible implementation manner thereof Device.
在本申请中,上述通信装置的名字对设备或功能模块本身不构成限定,在实际实现中,这些设备或功能模块可以以其他名称出现。只要各个设备或功能模块的功能和本申请类似,属于本申请权利要求及其等同技术的范围之内。In this application, the names of the above-mentioned communication devices do not limit the devices or function modules themselves. In actual implementation, these devices or function modules may appear under other names. As long as the functions of each device or functional module are similar to this application, they fall within the scope of the claims of this application and their equivalent technologies.
本申请的这些方面或其他方面在以下的描述中会更加简明易懂。These and other aspects of this application will be more concise and understandable in the following description.
附图说明BRIEF DESCRIPTION
图1为本申请实施例提供的包括MPLS网络通信系统的结构示意图一;FIG. 1 is a first schematic structural diagram of a communication system including an MPLS network provided by an embodiment of this application;
图2为本申请实施例提供的包括MPLS网络通信系统的结构示意图二;2 is a second structural diagram of a communication system including an MPLS network provided by an embodiment of the present application;
图3为本申请实施例提供的一种通信装置的结构示意图;3 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图4A为本申请实施例提供的通信方法的流程示意图一;4A is a schematic flowchart 1 of a communication method provided by an embodiment of the present application;
图4B为本申请实施例提供的通信方法的流程示意图二;4B is a second schematic flowchart of a communication method provided by an embodiment of the present application;
图5为本申请实施例中在LSP场景中添加EMSTI标签的报文的格式;FIG. 5 is a format of a message for adding an EMSTI label in an LSP scenario in an embodiment of this application;
图6为本申请实施例中在VPN场景中添加EMSTI标签的报文的格式;FIG. 6 is a format of a message for adding an EMSTI label in a VPN scenario in an embodiment of this application;
图7为本申请实施例提供的通信方法的流程示意图三;7 is a third schematic flowchart of a communication method provided by an embodiment of the present application;
图8为本申请实施例提供的通信方法的流程示意图四;8 is a fourth schematic flowchart of a communication method provided by an embodiment of the present application;
图9为本申请实施例中LDP TLV的格式示意图;9 is a schematic diagram of the format of LDP TLV in an embodiment of the present application;
图10为本申请实施例中报文的处理流程示意图一;10 is a schematic diagram 1 of a processing flow of a message in an embodiment of the present application;
图11为本申请实施例提供的通信方法的流程示意图五;11 is a schematic flowchart 5 of a communication method provided by an embodiment of the present application;
图12为本申请实施例中报文的处理流程示意图二;FIG. 12 is a second schematic diagram of a message processing flow in an embodiment of the present application;
图13为本申请实施例中RSVP标签请求类的格式示意图;13 is a schematic diagram of the format of the RSVP tag request class in the embodiment of the present application;
图14为本申请实施例中BGP TLV的格式示意图;14 is a schematic diagram of the format of BGP TLV in the embodiment of the present application;
图15为本申请实施例提供的通信装置的结构示意图一;15 is a schematic structural diagram 1 of a communication device provided by an embodiment of the present application;
图16为本申请实施例提供的通信装置的结构示意图二。16 is a second schematic structural diagram of a communication device according to an embodiment of the present application.
具体实施方式detailed description
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or explanations. Any embodiments or design solutions described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个” 的含义是两个或两个以上。In the following, the terms “first” and “second” are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise stated, the meaning of "plurality" is two or more.
MPLS是一种通过标签(lable)进行报文的交换和转发的技术,该标签可以支持多种协议,例如:标签分发协议(label distribution protocol,LDP)、开放式最短路径优先(open shortest path first,OSPF)协议、资源预留协议(resource reservation protocol,RSVP)、边界网关协议(border gateway protocol,BGP)等。因此,可以将MPLS网络理解为适用于多个协议的统一的转发平面。MPLS is a technology for exchanging and forwarding packets through a label. The label can support multiple protocols, such as label distribution protocol (LDP), open shortest path priority (open shortest path first) , OSPF) protocol, resource reservation protocol (resource reservation protocol (RSVP), border gateway protocol (border gateway protocol, BGP), etc. Therefore, the MPLS network can be understood as a unified forwarding plane suitable for multiple protocols.
在MPLS网络中,MPLS报文可以包括一个标签栈(label stack),该标签栈由一个或者多个标签堆栈条目(label stack entry)组成。每个标签堆栈条目均包括标签(label)字段、优先级字段(可采用EXP表示)、栈底字段(可采用S表示)以及生存期字段(可采用TTL表示)。In an MPLS network, an MPLS packet may include a label stack (label stack), which is composed of one or more label stack entries (label stack entries). Each label stack entry includes a label field, a priority field (which can be represented by EXP), a bottom field of the stack (which can be represented by S), and a lifetime field (which can be represented by TTL).
其中,标签字段是一个比较短的、定长的(一般为20比特),通常只有局部意义的标识(类似MAC地址)。优先级字段一般占用3个比特,用于表示MPLS报文的优先级。栈底字段一般占用1个比特,用于表示当前标签是否位于栈底。生存期字段一般占用8个比特,用于表示MPLS报文是否有效,若生存期字段的数值为0,则说明该MPLS报文已经过期,不应该继续被转发。Among them, the label field is a relatively short, fixed-length (usually 20 bits), usually only a partial meaning of the identifier (similar to MAC address). The priority field generally occupies 3 bits and is used to indicate the priority of MPLS packets. The bottom field of the stack generally occupies 1 bit and is used to indicate whether the current label is at the bottom of the stack. The lifetime field generally occupies 8 bits and is used to indicate whether the MPLS packet is valid. If the value of the lifetime field is 0, it means that the MPLS packet has expired and should not be forwarded.
MPLS网络包括服务商边缘入节点(ingress provider edge,ingress PE)和服务商边缘出节点(egress provider edge,egress PE)。服务商边缘入节点与发送端用户边缘设备(customer edge,CE)连接,用于接收发送端CE发送的业务报文,并为该业务报文添加MPLS标签,以及发送添加MPLS标签后的报文。服务商边缘出节点与接收端用户边缘设备(customer edge,CE)连接,用于接收添加MPLS标签的报文,并移除(pop)MPLS标签,以及向接收端CE发送移除标签后的报文。The MPLS network includes service provider edge ingress (ingress provider edge, ingress PE) and service provider edge outgoing node (egress provider edge, egress PE). The service provider edge ingress node is connected to the customer edge device (customer edge, CE) of the sending end, and is used to receive the service message sent by the sending end CE, add an MPLS label to the service message, and send the message after adding the MPLS label . The service provider's edge egress node is connected to the receiver's customer edge (CE), which is used to receive MPLS label-added messages, pop the MPLS labels, and send the removed labels to the receiver CE Text.
其中,服务商边缘入节点和服务商边缘出节点可以是路由器,发送端CE和接收端CE均可以是路由器,也可以是交换机或主机。The service provider edge ingress node and the service provider edge egress node may be routers, and both the sending end CE and the receiving end CE may be routers, switches, or hosts.
可选的,MPLS网络还可以包括至少一个服务提供商(Provider,P)节点。P节点具备基本的MPLS转发能力。P节点可以是路由器。Optionally, the MPLS network may further include at least one service provider (Provider, P) node. Node P has basic MPLS forwarding capabilities. The P node may be a router.
当服务商边缘入节点、P节点以及服务商边缘出节点的通信处于虚拟专用网络(virtual private network,VPN)场景时,在接收到上游设备发送的携带有MPLS标签的报文后,P节点直接向下游设备转发该报文。When the communication between the service provider edge ingress node, node P, and service provider edge egress node is in a virtual private network (VPN) scenario, after receiving the message carrying the MPLS label sent by the upstream device, the P node directly Forward the message to the downstream device.
当服务商边缘入节点、P节点以及服务商边缘出节点的通信处于标签交换路径(label switching path,LSP)场景时,在接收到上游设备发送的携带有MPLS标签的报文后,P节点将该MPLS标签替换为下游设备为该P节点分配的MPLS标签,并向下游设备发送更新标签后的报文。When the communication between the service provider edge ingress node, node P, and service provider edge egress node is in the label switching path (LSP) scenario, after receiving the message carrying the MPLS label sent by the upstream device, the P node will The MPLS label is replaced with the MPLS label allocated by the downstream device to the P node, and the updated label message is sent to the downstream device.
示例性的,图1示出了包括MPLS网络的通信系统的一种结构。如图1所示,该通信系统包括CE 1、CE 2、服务商边缘节点1、服务商边缘节点2以及P节点,服务商边缘节点1、服务商边缘节点2以及P节点均位于MPLS网络。其中,服务商边缘节点1与CE 1和P节点均连接,服务商边缘节点2与CE 2和P节点均连接。Exemplarily, FIG. 1 shows a structure of a communication system including an MPLS network. As shown in FIG. 1, the communication system includes CE1, CE2, service provider edge node 1, service provider edge node 2 and P node, and service provider edge node 1, service provider edge node 2 and P node are all located in the MPLS network. Among them, the service provider edge node 1 is connected to CE 1 and P node, and the service provider edge node 2 is connected to CE 2 and P node.
结合图1,图2示出了包括MPLS网络的通信系统的另一种结构。如图2所示,该通信系统包括CE 1、CE 2、服务商边缘节点1、服务商边缘节点2、P节点以及网络管理系统(network management system,NMS)。其中,服务商边缘节点1、服务商边缘节点2以及P节点均位于MPLS网络,NMS与MPLS网络中的每一节点均连接。NMS管理MPLS网络中的每一节点。With reference to FIG. 1, FIG. 2 shows another structure of a communication system including an MPLS network. As shown in FIG. 2, the communication system includes CE1, CE2, service provider edge node 1, service provider edge node 2, P node, and a network management system (NMS). Among them, the service provider edge node 1, the service provider edge node 2 and the P node are located in the MPLS network, and the NMS is connected to each node in the MPLS network. NMS manages every node in the MPLS network.
可选的,在图1或图2中,服务商边缘节点1可以为MPLS网络的边缘入节点,相应的,服务商边缘节点2为MPLS网络的边缘出节点,CE 1为业务报文的发送端,CE 2为业务报文的接收端;服务商边缘节点1也可以为MPLS网络的边缘出节点,相应的,服务商边缘节点2为MPLS网络的边缘入节点,CE 1为业务报文的接收端,CE 2为业务报文的发送端。Optionally, in FIG. 1 or FIG. 2, the service provider edge node 1 may be an edge ingress node of the MPLS network. Correspondingly, the service provider edge node 2 is an edge outgoing node of the MPLS network, and CE 1 is a service message transmission At the end, CE 2 is the receiving end of the service message; the service provider edge node 1 can also be the edge outgoing node of the MPLS network. Correspondingly, the service provider edge node 2 is the edge ingress node of the MPLS network, and CE 1 is the service message. At the receiving end, CE 2 is the sending end of the service message.
图1或图2示出的设备之间的通信可以处于VPN场景,也可以处于LSP场景,本申请对此不作具体限定。The communication between the devices shown in FIG. 1 or FIG. 2 may be in a VPN scenario or an LSP scenario, which is not specifically limited in this application.
可以理解的,图1或图2所示的通信系统仅为一个示例,并不是对该通信系统的限定。在实际应用中,该通信系统的结构可以存在多种形式。It can be understood that the communication system shown in FIG. 1 or FIG. 2 is only an example, and is not a limitation of the communication system. In practical applications, the structure of the communication system can exist in various forms.
目前,为了保障业务的正常运行,采用TWAMP技术或IPFPM技术检测MPLS网络中传输链路的质量。但是,TWAMP技术和IPFPM技术确定出的传输链路的质量的准确性较低。At present, in order to ensure the normal operation of services, TWAMP technology or IPFPM technology is used to detect the quality of transmission links in the MPLS network. However, the accuracy of the transmission link quality determined by TWAMP technology and IPFPM technology is low.
为此,本申请实施例提供一种通信方法,通过在报文中添加包括报文的序列号的第一标签,实现了MPLS网络中具备处理第一标签功能的节点(以第一设备为例)根据报文的序列号,确定乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个,有效的提高了传输链路的质量的准确性。To this end, the embodiments of the present application provide a communication method, by adding a first label including the sequence number of the message to the message, a node with the function of processing the first label in the MPLS network is implemented (taking the first device as an example) ) According to the sequence number of the message, determine at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message, which effectively improves the accuracy of the quality of the transmission link.
进一步可选的,本申请实施例中的第一标签还可以包括报文的时间戳,这样,第一设备能够根据报文的时间戳,确定出时延和/或抖动。Further optionally, the first label in the embodiment of the present application may further include a time stamp of the message, so that the first device can determine the delay and/or jitter according to the time stamp of the message.
综上,在不同的实现方式中,第一设备能够根据每个报文的第一标签中的序列号,确定乱序报文的数值、重复报文的数值或丢失报文的数值中的至少一个,还可以根据每个报文的第一标签中的时间戳,确定时延和/或抖动。相比于现有技术,本申请提供的通信方法,能够确定出更多的参数,有效的提高了传输链路的质量的准确性。In summary, in different implementations, the first device can determine at least the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message One can also determine the delay and/or jitter according to the time stamp in the first label of each packet. Compared with the prior art, the communication method provided by the present application can determine more parameters, which effectively improves the accuracy of the transmission link quality.
本申请实施例提供的通信方法适用于图1或图2示出的通信系统。The communication method provided by the embodiments of the present application is applicable to the communication system shown in FIG. 1 or FIG. 2.
图1或图2示出的各个设备,如CE 1、服务商边缘节点1、P节点、服务商边缘节点2、CE 2,均属于通信装置。在具体实现时,通信装置具有图3所示部件。图3为本申请实施例提供的一种通信装置的组成示意图,如图3所示,该通信装置可以包括至少一个处理器31,存储器32、通信接口33、通信总线34。下面结合图3对通信装置的各个构成部件进行具体的介绍:Each device shown in FIG. 1 or FIG. 2, such as CE1, service provider edge node 1, P node, service provider edge node 2, and CE2, all belong to a communication device. In a specific implementation, the communication device has the components shown in FIG. 3. FIG. 3 is a schematic diagram of a composition of a communication device provided by an embodiment of the present application. As shown in FIG. 3, the communication device may include at least one processor 31, a memory 32, a communication interface 33, and a communication bus 34. The following describes the components of the communication device in detail with reference to FIG. 3:
处理器31是通信装置的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器31是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application-specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个数字信号处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field-programmable gate array,FPGA)。The processor 31 is a control center of the communication device, and may be a single processor or a collective name of multiple processing elements. For example, the processor 31 is a central processing unit (CPU), may also be an application-specific integrated circuit (ASIC), or configured to implement one or more integrations of the embodiments of the present application Circuits, for example: one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
其中,处理器31可以通过运行或执行存储在存储器32内的软件程序,以及调用存储在存储器32内的数据,执行通信装置的各种功能。Among them, the processor 31 can execute various functions of the communication device by running or executing the software program stored in the memory 32 and calling the data stored in the memory 32.
在具体的实现中,作为一种实施例,处理器31可以包括一个或多个CPU,例如图3中所示的CPU 0和CPU 1。In a specific implementation, as an embodiment, the processor 31 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 3.
在具体实现中,作为一种实施例,通信装置可以包括多个处理器,例如图3中所示的处理器31和处理器35。这些处理器中的每一个可以是一个单核处理器(single-core processor),也可以是一个多核处理器(multi-core processor)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the communication device may include multiple processors, such as the processor 31 and the processor 35 shown in FIG. 3. Each of these processors may be a single-core processor (single-core processor) or a multi-core processor (multi-core processor). The processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
存储器32可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其 他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。存储器32可以是独立存在,通过通信总线34与处理器31相连接。存储器32也可以和处理器31集成在一起。The memory 32 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types of information and instructions that can be stored The dynamic storage device can also be an electrically erasable programmable read-only memory (electrically erasable programmable-read-only memory (EEPROM), disk storage medium or other magnetic storage device, or can be used to carry or store a form of instructions or data structures The desired program code and any other medium that can be accessed by the computer. The memory 32 may exist independently, and is connected to the processor 31 through the communication bus 34. The memory 32 may also be integrated with the processor 31.
其中,存储器32用于存储执行本申请方案的软件程序,该软件程序由处理器31来执行。The memory 32 is used to store a software program that executes the solution of the present application, and the software program is executed by the processor 31.
通信接口33,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。通信接口33可以包括接收单元实现接收功能,以及发送单元实现发送功能。The communication interface 33 is used to communicate with other devices or communication networks, such as Ethernet, wireless access network (RAN), wireless local area network (WLAN), etc. The communication interface 33 may include a receiving unit to implement a receiving function, and a transmitting unit to implement a transmitting function.
通信总线34,可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 34 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnection (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 3, but it does not mean that there is only one bus or one type of bus.
需要指出的是,图3中示出的设备结构并不构成对该通信装置的限定,除图3所示部件之外,该通信装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the device structure shown in FIG. 3 does not constitute a limitation on the communication device. In addition to the components shown in FIG. 3, the communication device may include more or fewer components than the illustration, or a combination Some components, or different component arrangements.
下面结合图1或图2所示的通信系统,图3所示的通信装置对本申请实施例提供的通信方法进行描述。其中,下述方法实施例中提及的各个设备均可以具有图3所示组成部分,不再赘述。The communication method provided in the embodiment of the present application will be described below with reference to the communication system shown in FIG. 1 or FIG. 2 and the communication device shown in FIG. 3. Wherein, each device mentioned in the following method embodiments may have the components shown in FIG. 3, which will not be repeated here.
为了便于描述,后续内容主要以图1或图2中的CE 1为业务报文的发送端,服务商边缘节点1为MPLS网络的边缘入节点,服务商边缘节点2为MPLS网络的边缘出节点,CE 2为业务报文的接收端为例进行说明。For ease of description, the subsequent content mainly uses CE 1 in FIG. 1 or FIG. 2 as the sending end of the service message, the service provider edge node 1 is the edge ingress node of the MPLS network, and the service provider edge node 2 is the edge egress node of the MPLS network , CE 2 is the receiving end of the service message as an example.
图4A为本申请实施例提供的一种通信方法的流程图,如图4A所示,该方法可以包括:FIG. 4A is a flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 4A, the method may include:
S400、第一设备向第二设备发送指示信息。S400. The first device sends instruction information to the second device.
该指示信息用于指示第一设备具备处理第一标签的能力,且指示第二设备与第一设备进行通信的通信模式。The instruction information is used to indicate that the first device is capable of processing the first tag, and instruct the communication mode in which the second device communicates with the first device.
与MPLS标签类似,本申请实施例中的第一标签包括优先级字段、栈底字段以及生存期字段。优先级字段、栈底字段以及生存期字段可以参考上述对MPLS标签堆栈条目的描述,这里不再进行详细赘述。Similar to the MPLS label, the first label in the embodiment of the present application includes a priority field, a stack bottom field, and a lifetime field. The priority field, the bottom of the stack field, and the lifetime field can refer to the above description of the MPLS label stack entry, which will not be described in detail here.
除了优先级字段、栈底字段以及生存期字段之外,第一标签还包括报文的序列号字段,报文的序列号字段用于表示报文的序列号。对于发送端(如第二设备)而言,发送端发送的报文的序列号是按照从小到大的顺序或从大到小的顺序依次排列。In addition to the priority field, the bottom of the stack field, and the lifetime field, the first label also includes a sequence number field of the message. The sequence number field of the message is used to indicate the sequence number of the message. For the sending end (such as the second device), the sequence numbers of the packets sent by the sending end are arranged in order from small to large or from large to small.
为了便于理解,本申请实施例以发送端按照序列号从小到大的顺序发送报文为例进行说明。For ease of understanding, the embodiment of the present application takes the sending end as an example to send the messages in the order of the sequence number from small to large.
示例性的,报文的序列号字段的长度为32比特。Exemplarily, the length of the sequence number field of the message is 32 bits.
可选的,第一标签还可以包括时间戳字段,该时间戳字段用于记录报文的发送时间和接收时间。Optionally, the first label may further include a timestamp field, which is used to record the sending time and receiving time of the packet.
示例性的,时间戳字段的长度为32比特。Exemplarily, the length of the timestamp field is 32 bits.
在一个具体的实施例中,所述第一设备与第二设备的通信模式为隧道模式或传输模式。若通信模式为隧道模式,则第二设备对向第一设备发送的所有报文封装第一标签。若通信模式为传输模式,则第二设备对第二设备向第一设备发送的所有报文中传输地址为预设地址的报文封装第一标签,其中,传输地址为报文的源地址和/或报文的目标地址。In a specific embodiment, the communication mode between the first device and the second device is a tunnel mode or a transmission mode. If the communication mode is the tunnel mode, the second device encapsulates the first label on all packets sent to the first device. If the communication mode is the transmission mode, the second device encapsulates the first label in all messages sent by the second device to the first device with the transmission address of the preset address, where the transmission address is the source address and /Or the destination address of the message.
本申请实施例中的第一设备可以为服务商边缘出节点,也可以为MPLS网络中的某一P节点。The first device in the embodiment of the present application may be a service provider edge egress node, or may be a P node in an MPLS network.
具体的,在MPLS网络中不存在P节点的场景中,第一设备为服务商边缘出节点,第二设备为服务商边缘入节点。Specifically, in the scenario where there is no P node in the MPLS network, the first device is the service provider edge outgoing node, and the second device is the service provider edge ingress node.
在MPLS网络中存在多个P节点的场景中,第一设备可以为服务商边缘出节点,第二设备为服务商边缘出节点的上游节点(即与服务商边缘出节点连接的P节点);第一设备也可以为某一P节点,第二设备为该P节点的上游节点(该上游节点可能为其他P节点,也可能为服务商边缘入节点);第一设备还可以为服务商边缘出节点,第二设备为服务商边缘入节点(此时,MPLS网络中的P节点不具备处理第一标签的能力),当然,第一设备和第二设备还可以为其他形态,这里不再一一赘述。In a scenario where multiple P nodes exist in the MPLS network, the first device may be a service provider edge egress node, and the second device may be an upstream node of the service provider edge egress node (that is, a P node connected to the service provider edge egress node); The first device may also be a certain P node, and the second device may be an upstream node of the P node (the upstream node may be another P node or a service provider edge entry node); the first device may also be a service provider edge Outgoing node, the second device is the service provider edge ingress node (at this time, the P node in the MPLS network does not have the ability to process the first label), of course, the first device and the second device can also be in other forms, here is no longer Repeat them one by one.
可选的,指示信息包括用于指示第一设备具备处理第一标签的能力的第一信息和用于指示第二设备根据通信模式与第一设备通信的第二信息。Optionally, the indication information includes first information for indicating that the first device is capable of processing the first tag and second information for indicating that the second device communicates with the first device according to the communication mode.
在一种实现方式中,第一设备向第二设备发送指示信息的方法为:第一设备向第二设备发送第一信息;相应的,第二设备在确定自身也具备处理第一标签的能力后,向第一设备发送回复消息,用于通知第一设备该第二设备具备处理第一标签的能力;之后,第一设备确定第二信息,并向第二设备发送第二信息。In one implementation, the method for the first device to send the indication information to the second device is: the first device sends the first information to the second device; correspondingly, the second device determines that it also has the ability to process the first tag After that, a reply message is sent to the first device to notify the first device that the second device is capable of processing the first tag; after that, the first device determines the second information and sends the second information to the second device.
在另一种实现方式中,第一设备向第二设备发送指示信息的方法为:第一设备向第二设备发送包括第一信息和第二信息的消息1。In another implementation manner, the method for the first device to send the indication information to the second device is: the first device sends a message 1 including the first information and the second information to the second device.
S401、在第二设备具备处理第一标签的能力的情况下,第二设备向第一设备发送确认消息。S401. When the second device is capable of processing the first tag, the second device sends a confirmation message to the first device.
若第一设备向第二设备分别发送第一信息和第二信息,则第二设备在接收到第一信息后,已经向第一设备发送用于表示第二设备具备处理第一标签的能力的回复消息。相应的,第二设备在接收到第二信息后,可以向第一设备发送用于表示第二设备将会根据第二信息指示的通信模式与第一设备进行通信的确认消息。可选的,该确认消息为ACK消息或者为包括OK字段的消息,本申请实施例对此不作具体限定。If the first device sends the first information and the second information to the second device, after receiving the first information, the second device has sent to the first device a message indicating that the second device is capable of processing the first tag Reply message. Correspondingly, after receiving the second information, the second device may send a confirmation message indicating that the second device will communicate with the first device according to the communication mode indicated by the second information. Optionally, the confirmation message is an ACK message or a message including an OK field, which is not specifically limited in this embodiment of the present application.
若第一设备向第二设备同时发送第一信息和第二信息,则第二设备在接收到消息1后,确定自身是否具备处理第一标签的能力。若第二设备具备处理第一标签的能力,第二设备向第一设备发送确认消息,该确认消息用于表示第二设备具备处理第一标签的能力,且第二设备将会根据第二信息指示的通信模式与第一设备进行通信。若第二设备不具备处理第一标签的能力、该第二设备为MPLS网络中的某一个P节点、且该节点的上游节点和下游节点均具备处理第一标签的能力,则该P节点需要向上游节点发送“下游节点处理第一标签的类型-长度-值(type-length-value,TLV)”,以便于实现上游节点和下游节点之间对通信模式的协商,这种情况下,可以将所述上游节点视为第二设备,所述下游节点视为第一设备。对于第二设备不具备处理第一标签的能力、且该第二设备为MPLS网络中的服务商边缘入节点的情况,不适用于本申请实施例,对此不进行描述。If the first device sends the first information and the second information to the second device at the same time, after receiving the message 1, the second device determines whether it has the capability of processing the first tag. If the second device is capable of processing the first tag, the second device sends a confirmation message to the first device, the confirmation message is used to indicate that the second device is capable of processing the first tag, and the second device will be based on the second information The indicated communication mode communicates with the first device. If the second device does not have the capability to process the first label, the second device is a P node in the MPLS network, and both the upstream node and the downstream node of the node have the capability to process the first label, the P node needs Send "type-length-value (TLV) of the first label processed by the downstream node" to the upstream node, so as to facilitate the negotiation of the communication mode between the upstream node and the downstream node. In this case, you can The upstream node is regarded as a second device, and the downstream node is regarded as a first device. The case where the second device does not have the capability of processing the first label and the second device is a service provider edge ingress node in the MPLS network is not applicable to the embodiment of the present application, and will not be described.
S402、第二设备根据指示信息指示的通信模式,为每个待发送的报文封装第一标签。S402. The second device encapsulates the first label for each packet to be sent according to the communication mode indicated by the indication information.
结合上述描述可知,若指示信息指示的通信模式为隧道模式,则第二设备对向第一设备发送的所有报文封装第一标签。因此,在S401后,第二设备将向第一设备发送的每个报文均确定为待发送的报文,并为每个待发送的报文封装第一标签。It can be known from the foregoing description that if the communication mode indicated by the indication information is the tunnel mode, the second device encapsulates the first label on all packets sent to the first device. Therefore, after S401, the second device determines each message sent to the first device as a message to be sent, and encapsulates a first label for each message to be sent.
若指示信息指示的通信模式为传输模式,则第二设备对第二设备向第一设备发送的所有报文中传输地址为预设地址的报文封装第一标签。因此,在S401后,第二设备需要先从向第一设备发送的所有报文中确定出待发送的报文,然后,第二设备为每个待发送的报文封装第一标签。If the communication mode indicated by the indication information is the transmission mode, the second device encapsulates the first label in all the messages sent by the second device to the first device with the transmission address of the preset address. Therefore, after S401, the second device needs to first determine the message to be sent from all the messages sent to the first device, and then, the second device encapsulates the first label for each message to be sent.
其中,第一标签的内容可以参考上述S400中的描述,此处不再进行详细赘述。For the content of the first label, reference may be made to the description in S400 above, and details are not repeated here.
结合上面描述可知,第一设备与第二设备的通信可以处于LSP场景,也可以处于VPN场景。具体的,若第一设备与第二设备的通信处于LSP场景,则第二设备还为每个待发送的报文封装LSP标签;若第一设备与第二设备的通信处于VPN场景,则第二设备还为每个待发送的报文封装VPN标签。It can be seen from the above description that the communication between the first device and the second device may be in an LSP scenario or a VPN scenario. Specifically, if the communication between the first device and the second device is in an LSP scenario, the second device also encapsulates an LSP label for each packet to be sent; if the communication between the first device and the second device is in a VPN scenario, the first The second device also encapsulates a VPN label for each packet to be sent.
其中,第二设备为每个待发送的报文封装LSP标签(或VPN标签)为现有技术,具体可以参考现有技术的描述,这里不再进行详细赘述。Wherein, the second device encapsulates the LSP label (or VPN label) for each message to be sent as the prior art, for details, reference may be made to the description of the prior art, which will not be described in detail here.
在一种实现方式中,当第一设备与第二设备的通信处于LSP场景时,第二设备在每个待发送的报文的LSP标签的外层封装第一标签;当第一设备与第二设备的通信处于VPN场景时,第二设备在每个待发送的报文的VPN标签的外层封装第一标签。In an implementation manner, when the communication between the first device and the second device is in an LSP scenario, the second device encapsulates the first label on the outer layer of the LSP label of each packet to be sent; when the first device and the second device When the communication between the two devices is in a VPN scenario, the second device encapsulates the first label on the outer layer of the VPN label of each packet to be sent.
S403(可选的)、第二设备为每个待发送的报文封装第二标签。S403 (optional). The second device encapsulates a second label for each message to be sent.
第二标签用于指示第一标签不参与负载分担的计算,这样,MPLS网络中的其他节点在接收到封装有第二标签的报文后,不利用第一标签进行负载分担的计算。其中,节点进行负载分担的计算为现有技术,这里不再对此进行详细赘述。The second label is used to indicate that the first label does not participate in the calculation of load sharing. In this way, after receiving the packet encapsulated with the second label, other nodes in the MPLS network do not use the first label for the calculation of load sharing. Among them, the calculation of load sharing by the nodes is the prior art, which will not be described in detail here.
可选的,第二标签属于保留标签,例如,第二标签为保留标签11。Optionally, the second label belongs to the reserved label, for example, the second label is the reserved label 11.
在一种具体的实现方式中,第二设备将第二标签封装在第一标签的外层。In a specific implementation, the second device encapsulates the second label on the outer layer of the first label.
若将第一标签和第二标签的组合称为增强MPLS服务交换索引(enhanced MPLS service transmission index,EMSTI)标签,图5示出了在LSP场景中第二设备封装了EMSTI标签的报文的格式,图6示出了在VPN场景中第二设备封装了EMSTI标签的报文的格式。除了EMSTI标签之外,图5和图6示出的报文还包括公网目的地址(destination address,DA)字段、公网源地址(source address,SA)字段、虚拟局域网(virtual local area network,VLAN)ID、8847字段、LSP标签、VPN标签、净荷以及循环冗余校验(cyclic redundancy check,CRC)字段。上述字段的定义均可参考现有的MPLS网络中报文的字段的定义,这里不再一一赘述。If the combination of the first label and the second label is called an enhanced MPLS service exchange index (enhanced MPLS service transmission index, EMSTI) label, FIG. 5 shows the format of the packet in which the second device encapsulates the EMSTI label in the LSP scenario FIG. 6 shows the format of the packet in which the second device encapsulates the EMSTI label in the VPN scenario. In addition to the EMSTI label, the packets shown in FIG. 5 and FIG. 6 also include a public network destination address (DA) field, a public network source address (source) address (SA) field, and a virtual local area network (virtual local area network). VLAN) ID, 8847 field, LSP label, VPN label, payload and cyclic redundancy check (cyclic redundancy check, CRC) field. For the definition of the above-mentioned fields, reference may be made to the definition of the field of the message in the existing MPLS network, which will not be repeated here.
S404、第二设备通过传输链路向第一设备发送至少一个封装后的报文。S404. The second device sends at least one encapsulated message to the first device through the transmission link.
相应的,第一设备经由传输链路接收来自第二设备的至少一个报文。第一设备接收到的每个报文均包括第一标签。可选的,第一设备接收到的每个报文还包括第二标签。Correspondingly, the first device receives at least one message from the second device via the transmission link. Each message received by the first device includes the first label. Optionally, each packet received by the first device further includes a second label.
S405、第一设备识别每个报文的第一标签,并读取所述至少一个报文中每个报文的序列号。S405. The first device recognizes the first label of each message, and reads the sequence number of each message in the at least one message.
从上面描述可知,第一标签包括报文的序列号字段,因此,在识别每个报文的第一标签后,第一设备能够读取到至少一个报文中每个报文的序列号。As can be seen from the above description, the first label includes the sequence number field of the message, therefore, after identifying the first label of each message, the first device can read the sequence number of each message in at least one message.
S406、第一设备根据读取到每个报文的序列号,确定传输链路的质量参数。S406. The first device determines the quality parameter of the transmission link according to the sequence number of each message read.
传输链路为第一设备与第二设备之间的链路,传输链路的质量参数包括乱序报文的数值、 丢失报文的数值或重复报文的数值中的至少一个。The transmission link is a link between the first device and the second device, and the quality parameter of the transmission link includes at least one of the value of the out-of-order message, the value of the lost message, or the value of the repeated message.
第一设备确定乱序报文的数值的方法可以为:第一设备将至少一个报文中满足第一预设条件的报文的数值(即第一数值)确定为乱序报文的数值。The method for the first device to determine the value of the out-of-order message may be: the first device determines the value of the message that meets the first preset condition (that is, the first value) in at least one message as the value of the out-of-order message.
其中,第一预设条件为:pre-curr<预设阈值,或者,curr-pre>预设阈值。这里的curr表示第一报文(至少一个报文中的任意一个报文)的序列号,pre表示第二报文(第一设备接收到的第一报文的上一报文)的序列号,1<预设阈值<预设的最大序列号。The first preset condition is: pre-curr<preset threshold, or curr-pre>preset threshold. Curr here means the sequence number of the first message (any one of the at least one message), and pre means the sequence number of the second message (the last message of the first message received by the first device) , 1<preset threshold<preset maximum serial number.
本申请的预设阈值可以为序列号的翻转长度值。从上面描述可知,第一标签中报文的序列号字段占用32比特,这样,预设的最大序列号可以为4294967295(0xffffffff)。报文的序列号存在最大值和最小值,若第二设备发送的当前报文的序列号为预设的最大序列号,则第二设备发送的下一报文的序列号应该为预设的最小序列号,因此,报文的序列号存在翻转的情况。相应的,可以设置序列号的翻转长度值为预设阈值,即默认连续乱序报文的数值不会超过预设阈值。示例性的,预设阈值为2147483647(0x7fffffff)。The preset threshold value of the present application may be the flip length value of the serial number. As can be seen from the above description, the sequence number field of the message in the first label occupies 32 bits, so that the preset maximum sequence number may be 4294967295 (0xffffffff). The sequence number of the packet has a maximum value and a minimum value. If the sequence number of the current packet sent by the second device is the preset maximum sequence number, the sequence number of the next packet sent by the second device should be the preset The minimum sequence number, therefore, the sequence number of the message may be reversed. Correspondingly, the flip length of the sequence number can be set to a preset threshold, that is, the value of the default continuous out-of-order packets will not exceed the preset threshold. Exemplarily, the preset threshold is 2147483647 (0x7fffffff).
当然,本申请实施例中的第一设备还可以采用其他方式确定乱序报文的数值,这里不再一一赘述。Of course, the first device in the embodiment of the present application may also use other methods to determine the value of the out-of-sequence message, which will not be repeated here.
第一设备确定丢失报文的数值的方法可以为:第一设备确定至少一个报文中满足第二预设条件的报文的数值(即第二数值),并获取乱序报文的数值(该数值的获取可以参考上述描述),这样,第一设备即可第二数值与乱序报文的数值的差值确定为丢失报文的数值。The method for the first device to determine the value of the lost message may be: the first device determines the value of the message that satisfies the second preset condition (that is, the second value) in at least one message, and obtains the value of the out-of-order message ( For the acquisition of this value, please refer to the above description), so that the first device can determine the difference between the second value and the value of the out-of-order message as the value of the lost message.
其中,第二预设条件为:1<curr-pre≤预设阈值,或,预设阈值≤pre-curr<预设的最大序列号。这里的curr和pre的定义可以参考上述描述,预设阈值的取值范围也可参考上述描述,这里不再进行详细赘述。Wherein, the second preset condition is: 1<curr-pre≤preset threshold, or, preset threshold≤pre-curr<preset maximum sequence number. The definition of curr and pre here can refer to the above description, and the value range of the preset threshold can also refer to the above description, which will not be described in detail here.
可以理解的是,若报文丢失,报文就会发生乱序,而乱序的报文仅仅是顺序发生了错乱,并没有丢失,因此,为了保证丢失报文的数值的准确性,第一设备在确定出第一数值后,还需要获取乱序报文的数值,进而,第一设备将第一数值与乱序报文的数值的差值确定为真正的丢失报文的数值。It is understandable that if the message is lost, the message will be out of order, and the out of order message is just out of order and not lost. Therefore, in order to ensure the accuracy of the value of the lost message, the first After the device determines the first value, it also needs to obtain the value of the out-of-order message. Furthermore, the first device determines the difference between the first value and the value of the out-of-order message as the value of the real lost message.
可选的,上述“第一设备确定第二数值的方法可以为:若1<curr-pre≤预设阈值,则第一设备将第二数值k更新为:已存储的k的数值+curr-pre-1,即k+=curr-pre-1;若预设阈值≤pre-curr<预设的最大序列号,则第一设备将第二数值k更新为:已存储的k的数值+预设的最大序列号+curr-pre,即k+=预设的最大序列号+curr-pre,第二数值的初始值为0。Optionally, the above “method for the first device to determine the second value may be: if 1<curr-pre≦the preset threshold, the first device updates the second value k to: the stored value of k+curr- pre-1, that is, k+=curr-pre-1; if the preset threshold ≤pre-curr<preset maximum sequence number, the first device updates the second value k to: the stored value of k+preset Maximum sequence number +curr-pre, that is k+=preset maximum sequence number+curr-pre, the initial value of the second value is 0.
第一设备确定重复报文的数值的方法可以为:第一设备确定至少一个报文中满足第三预设条件的报文的数值(即第三数值),并将该数值确定为重复报文的数值。The method for the first device to determine the value of the repeated message may be: the first device determines the value of the message that satisfies the third preset condition (that is, the third value) in at least one message, and determines the value as the repeated message Value.
第三预设条件为curr=pre。curr和pre的定义可以参考上述描述,这里不再进行详细赘述。The third preset condition is curr=pre. For the definition of curr and pre, please refer to the above description, and no more details will be given here.
可选的,第一设备确定第三数值的方法为:若curr=pre,则第一设备将第三数值更新为:已存储的第三数值+1,第三数值的初始值为0。Optionally, the method for the first device to determine the third value is: if curr=pre, the first device updates the third value to: the stored third value +1, and the initial value of the third value is 0.
进一步可选的,本申请实施例中的第一标签还可以包括时间戳。这样的话,第一设备还可以读取每个报文的时间戳,以获取每个报文的发送时间和接收时间,进而根据每个报文的发送时间和接收时间,确定时延和抖动中的至少一个。Further optionally, the first label in the embodiment of the present application may further include a time stamp. In this case, the first device can also read the time stamp of each message to obtain the sending time and receiving time of each message, and then determine the delay and jitter according to the sending time and receiving time of each message At least one.
结合图4A,如图4B所示,除S400~S406之外,本申请实施例提供的通信方法还可以包括:With reference to FIG. 4A and as shown in FIG. 4B, in addition to S400-S406, the communication method provided by the embodiments of the present application may further include:
S407(可选的)、第一设备读取每个报文的时间戳。S407 (optional), the first device reads the time stamp of each message.
S408(可选的)、第一设备根据每个报文的时间戳,获取每个报文的发送时间和接收时间, 并确定时延和/或抖动。S408 (optional). The first device obtains the sending time and receiving time of each message according to the time stamp of each message, and determines the delay and/or jitter.
可选的,针对每个报文,第一设备将所述报文的接收时间与报文的发送时间的差值,确定为所述报文的时延。Optionally, for each message, the first device determines the difference between the reception time of the message and the transmission time of the message as the delay of the message.
示例性的,若第一设备接收到4个报文,这4个报文分别为:报文a、报文b、报文c、报文d;Arrive[a]表示报文a的接收时间,Send[a]表示报文a的发送时间,Arrive[b]表示报文b的接收时间,Send[b]表示报文b的发送时间,Arrive[c]表示报文c的接收时间,Send[c]表示报文c的发送时间,Arrive[d]表示报文d的接收时间,Send[d]表示报文d的发送时间,则第一设备计算报文a的时延T1、报文b的时延T2、报文c的时延T3、报文d的时延分别为:T1=Arrive[a]-Send[a],T2=Arrive[b]-Send[b],T3=Arrive[c]-Send[c],T4=Arrive[d]-Send[d]。Exemplarily, if the first device receives 4 packets, the 4 packets are: packet a, packet b, packet c, and packet d; Arrive[a] indicates the reception time of packet a , Send[a] means the sending time of message a, Arrive[b] means the receiving time of message b, Send[b] means the sending time of message b, Arrive[c] means the receiving time of message c, Send [c] indicates the sending time of packet c, Arrive[d] indicates the receiving time of packet d, and Send[d] indicates the sending time of packet d, then the first device calculates the delay T1 of packet a and the packet The delay T2 of b, the delay T3 of message c, and the delay of message d are: T1=Arrive[a]-Send[a], T2=Arrive[b]-Send[b], T3=Arrive [c]-Send[c], T4=Arrive[d]-Send[d].
当然,第一设备也可以计算平均时延T,例如:Of course, the first device can also calculate the average delay T, for example:
T={(Arrive[a]-Send[a])+(Arrive[b]-Send[b])+(Arrive[c]-Send[c])+(Arrive[d]-Send[d])}/4T={(Arrive[a]-Send[a])+(Arrive[b]-Send[b])+(Arrive[c]-Send[c])+(Arrive[d]-Send[d]) }/4
可选的,针对每个报文,第一设备将所述报文的时延与第一设备接收到的所述报文的上一报文的时延的差值确定为所述报文的抖动。Optionally, for each message, the first device determines the difference between the delay of the message and the delay of the last message of the message received by the first device as the value of the message Jitter.
示例性的,若第一设备依次接收到报文a和报文b,采用J[a]表示报文a的时延,J[b]表示报文b的时延,其中,J[a]=Arrive[a]-Send[a],J[b]=Arrive[b]-Send[b],则第一设备计算抖动D=J[b]-J[a]。Exemplarily, if the first device receives message a and message b in sequence, J[a] is used to represent the delay of message a, and J[b] is the delay of message b, where J[a] =Arrive[a]-Send[a], J[b]=Arrive[b]-Send[b], then the first device calculates jitter D=J[b]-J[a].
由于S407和S408为可选步骤,因此,图4B中用虚线表示。Since S407 and S408 are optional steps, they are indicated by broken lines in FIG. 4B.
综上,在不同的可能的实现方式中,第一设备能够根据每个报文的第一标签中的序列号,确定乱序报文的数值、重复报文的数值或丢失报文的数值中的至少一个,还可以根据每个报文的第一标签中的时间戳,确定时延和/或抖动。相比于现有技术,本申请提供的通信方法中,第一设备能够确定出更多的参数,有效的提高了传输链路的质量的准确性。In summary, in different possible implementations, the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet. Compared with the prior art, in the communication method provided by the present application, the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
进一步可选的,在图2示出的通信系统中,在确定出相关参数(如上述质量参数、时延、抖动)后,第一设备还可以根据确定出的参数确定传输链路的质量,并向NMS发送传输链路的质量,以便于NMS的运维人员及时维护第一设备或第二设备。Further optionally, in the communication system shown in FIG. 2, after determining the relevant parameters (such as the above-mentioned quality parameters, time delay, and jitter), the first device may also determine the quality of the transmission link according to the determined parameters, And send the quality of the transmission link to the NMS, so that the NMS operation and maintenance personnel can maintain the first device or the second device in time.
或者,在确定出相关参数(如上述质量参数、时延、抖动)后,第一设备还可以向NMS发送其确定出的参数,以便于NMS根据该参数确定传输链路的质量,进而使得NMS的运维人员及时维护第一设备或第二设备。Alternatively, after determining the relevant parameters (such as the above-mentioned quality parameters, delay, and jitter), the first device may also send the determined parameters to the NMS, so that the NMS can determine the quality of the transmission link according to the parameters, thereby making the NMS Of O&M personnel timely maintain the first device or the second device.
结合图4B,如图7所示,本申请实施例提供的通信方法还可以包括S701或S702:4B, as shown in FIG. 7, the communication method provided in this embodiment of the present application may further include S701 or S702:
S701、第一设备向NMS发送确定出的参数。S701. The first device sends the determined parameter to the NMS.
S702、第一设备根据确定出的参数,确定传输链路的质量,并向NMS发送传输链路的质量。S702. The first device determines the quality of the transmission link according to the determined parameters, and sends the quality of the transmission link to the NMS.
可选的,若第一设备确定出了乱序报文的数值、重复报文的数值、丢失报文的数值、时延以及抖动,则该第一设备可以根据每一个参数的预设权重值,计算传输链路的质量。当然,第一设备还可以采用其他方式确定传输链路的质量,这里对此不再一一赘述。Optionally, if the first device determines the value of the out-of-order message, the value of the repeated message, the value of the lost message, the delay, and the jitter, the first device may use the preset weight value for each parameter To calculate the quality of the transmission link. Of course, the first device may also use other methods to determine the quality of the transmission link, which will not be repeated here.
综上,在不同的可能的实现方式中,第一设备能够根据每个报文的第一标签中的序列号,确定乱序报文的数值、重复报文的数值或丢失报文的数值中的至少一个,还可以根据每个报文的第一标签中的时间戳,确定时延和/或抖动。相比于现有技术,本申请提供的通信方法中,第一设备能够确定出更多的参数,有效的提高了传输链路的质量的准确性。In summary, in different possible implementations, the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet. Compared with the prior art, in the communication method provided by the present application, the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
为了更加清楚的理解本申请实施例提供的通信方法,下面结合图8、图11对该通信方法进行详细描述。In order to more clearly understand the communication method provided by the embodiments of the present application, the communication method will be described in detail with reference to FIGS. 8 and 11 below.
图8和图11示出的流程均以为报文封装第一标签和第二标签(即封装EMSTI标签)、第一标签包括报文的序列号和时间戳为例说明的。The processes shown in FIG. 8 and FIG. 11 are described by encapsulating the first label and the second label (that is, the EMSTI label) for the message, and the first label includes the sequence number and time stamp of the message as an example.
以MPLS网络包括PE 1、P节点和PE 2为例进行说明,PE 1表示服务商边缘入节点,PE 2表示服务商边缘出节点,P节点表示PE 1和PE 2之间的中间节点,P节点与PE 1、PE 2均连接。P节点与PE 1之间的传输链路为传输链路1,P节点与PE 2之间的传输链路为传输链路2。Take the MPLS network including PE1, P node and PE2 as an example to illustrate, PE1 represents the service provider edge ingress node, PE2 represents the service provider edge egress node, P node represents the intermediate node between PE1 and PE2, P The nodes are connected to PE1 and PE2. The transmission link between P node and PE 1 is transmission link 1, and the transmission link between P node and PE 2 is transmission link 2.
图8为本申请实施例提供的一种通信方法的流程图。图8示出的流程适用于MPLS网络中的标签支持LDP,PE 1、P节点以及PE 2之间的通信处于LSP场景。FIG. 8 is a flowchart of a communication method provided by an embodiment of the present application. The process shown in FIG. 8 is applicable to labels supporting LDP in an MPLS network, and the communication between PE 1, P nodes, and PE 2 is in an LSP scenario.
如图8所示,该通信方法可以包括:As shown in FIG. 8, the communication method may include:
S800、P节点向PE 1发送指示信息1,PE 2向P节点发送指示信息2。S800. Node P sends instruction information 1 to PE 1, and PE 2 sends instruction information 2 to P node.
指示信息1用于指示P节点具备处理第一标签的能力,且指示P节点与PE 1进行通信的通信模式。The indication information 1 is used to indicate that the P node has the capability of processing the first label, and indicates the communication mode in which the P node communicates with the PE 1.
指示信息2用于指示PE 2具备处理第一标签的能力,且指示P节点与PE 2进行通信的通信模式。The indication information 2 is used to indicate that PE 2 has the capability of processing the first label, and indicates the communication mode in which the P node communicates with PE 2.
当P节点向PE 1发送指示信息1时,P节点为上述第一设备,PE 1为上述第二设备。当PE 2向P节点发送指示信息2时,P节点为上述第二设备,PE 2为上述第一设备。When the P node sends indication information 1 to PE 1, the P node is the first device described above, and PE 1 is the second device described above. When PE 2 sends instruction information 2 to the P node, the P node is the above-mentioned second device, and PE 2 is the above-mentioned first device.
P节点向PE 1发送指示信息1的过程以及PE 2向P节点发送指示信息2的过程可以参考上述S400的描述,这里不再进行详细赘述。For the process of the P node sending the indication information 1 to the PE 1 and the process of the PE 2 sending the indication information 2 to the P node, reference may be made to the description of S400 above, and no more details will be given here.
需要说明的是,本申请实施例对“P节点向PE 1发送指示信息1”和“PE 2向P节点发送指示信息2”的执行先后顺序不进行限定。It should be noted that the embodiment of the present application does not limit the execution order of “P node sends instruction information 1 to PE 1” and “PE 2 sends instruction information 2 to P node 1”.
可选的,指示信息1/指示信息2承载于LSP信令中。Optionally, the indication information 1/indication information 2 is carried in LSP signaling.
示例性的,LSP信令中新增LDP TLV,该LDP TLV用于承载指示信息1/指示信息2,用于标识设备具备处理第一标签的能力。图9示出了LDP TLV的格式。Exemplarily, an LDP TLV is added to the LSP signaling, and the LDP TLV is used to carry indication information 1/indication information 2, and is used to identify that the device has the capability of processing the first label. Figure 9 shows the format of LDP TLV.
在图9中,“U”表示未知比特位,其数值设置为1,如果接收设备不识别该LDP TLV,则该接收设备忽略该LDP TLV;“F”表示前向比特(Forward bit)位,其数值设置为1,如果接收设备该LDP TLV,接收设备逐跳往转发该LDP TLV到上游设备;“类型”表示第一标签的类型;“长度”表示该LDP TLV的长度;“模式”表示发送设备与接收设备之间的通信模式,示例性的,0x00表示隧道模式,0x01表示传输模式。当发送设备与接收设备之间的通信模式为隧道模式时,1/2/3/4/5/6/7字段都设置成0,表示不区分业务流特征,对所有入隧道的报文均进行第一标签的处理。当发送设备与接收设备之间的通信模式为传输模式时,0/1/2/3/4/5/6/7/8/9字段可以设置成1,设置为1的字段表示业务流中的该字段有效。In Fig. 9, "U" indicates an unknown bit, and its value is set to 1. If the receiving device does not recognize the LDP TLV, the receiving device ignores the LDP TLV; "F" indicates the forward bit (Forward bit), The value is set to 1. If the receiving device is the LDP TLV, the receiving device hops forward the LDP to the upstream device; "Type" indicates the type of the first label; "Length" indicates the length of the LDP TLV; "Mode" indicates The communication mode between the sending device and the receiving device, for example, 0x00 indicates the tunnel mode, and 0x01 indicates the transmission mode. When the communication mode between the sending device and the receiving device is the tunnel mode, the 1/2/3/4/5/6/7 fields are set to 0, indicating that no distinction is made between the characteristics of the service flow, and all packets entering the tunnel are The first label is processed. When the communication mode between the sending device and the receiving device is the transmission mode, the 0/1/2/3/4/5/6/7/8/9 field can be set to 1, and the field set to 1 indicates that in the service flow Of this field is valid.
S801、PE 1向P节点发送确认消息1,P节点向PE 2发送确认消息2。S801. PE 1 sends a confirmation message 1 to the P node, and the P node sends a confirmation message 2 to the PE 2.
本申请实施例对“PE 1向P节点发送确认消息1”和“P节点向PE 2发送确认消息2”的执行先后顺序不进行限定。The embodiment of the present application does not limit the execution order of “PE 1 sends a confirmation message 1 to P node” and “P node sends a confirmation message 2 to PE 2”.
S802、根据指示信息1指示的通信模式,在获取到报文a后,PE 1为报文a封装LSP标签1和EMSTI标签1,以生成报文b。S802. According to the communication mode indicated by the indication information 1, after acquiring the message a, PE 1 encapsulates the LSP label 1 and the EMSTI label 1 for the message a to generate the message b.
PE 1为报文a封装LSP标签1的方法可以参考现有技术中封装LSP标签的方法,这里不再进行详细赘述。 PE 1 is a method for encapsulating LSP label 1 for message a. Refer to the method for encapsulating LSP label in the prior art, which will not be described in detail here.
PE 1为报文a封装EMSTI标签1,且EMSTI标签1位于LSP标签1的外层。PE1 encapsulates EMSTI label 1 for message a, and EMSTI label 1 is located on the outer layer of LSP label 1.
示例性的,如图10所示,报文a包括净荷、私网SA和私网DA,PE 1在获取到报文a后,为报文a封装LSP标签1和EMSTI标签1,以生成报文b,此时,报文b包括净荷、LSP标签1、EMSTI标签1、公网SA以及公网DA。Exemplarily, as shown in FIG. 10, message a includes payload, private network SA, and private network DA. After obtaining message a, PE 1 encapsulates message a with LSP label 1 and EMSTI label 1 to generate Packet b. At this time, packet b includes payload, LSP label 1, EMSTI label 1, public network SA, and public network DA.
S803、PE 1向P节点发送报文b。S803, PE sends a message b to the P node.
S804、P节点识别并剥离EMSTI标签1,并根据EMSTI标签1中的序列号和时间戳,确定传输链路1的质量参数。S804. The P node recognizes and strips the EMSTI label 1, and determines the quality parameter of the transmission link 1 according to the serial number and time stamp in the EMSTI label 1.
若传输链路1的质量参数包括乱序报文的数值、丢失报文的数值、重复报文的数值、时延和抖动,则P节点确定乱序报文的数值的方法可以参考上述S406的描述,P节点确定丢失报文的数值和重复报文的方法可以参考上述S407的描述,P节点确定时延和抖动的方法可以参考上述S408和S409的描述,这里不再进行详细赘述。If the quality parameters of transmission link 1 include the values of out-of-order messages, the values of lost messages, the values of repeated messages, delay and jitter, then the method for the P node to determine the values of out-of-order messages can refer to the above S406 For description, the method for determining the value of the lost message and the repeated message by the P node can refer to the description in S407 above, and the method for determining the delay and jitter in the P node can refer to the description in S408 and S409 above, which will not be described in detail here.
S805、P节点将LSP标签1替换为LSP标签2,以及添加EMSTI标签2,以生成报文c。S805. The P node replaces LSP label 1 with LSP label 2, and adds EMSTI label 2 to generate a message c.
P节点将LSP标签1替换为LSP标签2的方法可以参考现有技术中P节点交换LSP标签的方法,这里不再进行详细赘述。For the method of replacing the LSP label 1 with the LSP label 2 by the P node, reference may be made to the method of exchanging the LSP label by the P node in the prior art, which will not be described in detail here.
示例性的,如图10所示,P节点在接收到报文b后,对报文b中的LSP标签和EMSTI标签进行交换,生成报文c,报文c包括净荷、LSP标签2、EMSTI标签2、公网SA以及公网DA。Exemplarily, as shown in FIG. 10, after receiving the message b, the P node exchanges the LSP label and the EMSTI label in the message b to generate the message c, and the message c includes the payload, the LSP label 2, EMSTI label 2, public network SA and public network DA.
S806、P节点向PE 2发送报文c。S806. The P node sends a message c to PE 2.
S807、PE 2识别并剥离EMSTI标签2,并根据EMSTI标签2中的序列号和时间戳字段,确定传输链路2的质量参数。S807. PE 2 identifies and strips the EMSTI label 2, and determines the quality parameter of the transmission link 2 according to the sequence number and time stamp fields in the EMSTI label 2.
若传输链路2的质量参数包括乱序报文的数值、丢失报文的数值、重复报文的数值、时延和抖动,则PE 2确定乱序报文的数值的方法可以参考上述S406的描述,PE 2确定丢失报文的数值和重复报文的方法可以参考上述S407的描述,PE 2确定时延和抖动的方法可以参考上述S408和S409的描述,这里不再进行详细赘述。If the quality parameters of transmission link 2 include the values of out-of-order messages, the values of lost messages, the values of repeated messages, delay and jitter, then PE 2 can refer to the above method for determining the values of out-of-order messages For description, the method for PE 2 to determine the value of the lost message and the repeated message can refer to the description in S407 above, and the method for PE 2 to determine the delay and jitter can refer to the description in S408 and S409 above, which will not be described in detail here.
S808、PE 2剥离LSP标签2,以获取报文a。S808, PE 2 strips the LSP label 2 to obtain the message a.
示例性的,如图10所示,PE 2在接收到报文c后,剥离报文c中的LSP标签和EMSTI标签,以获取到报文a。Exemplarily, as shown in FIG. 10, after receiving the message c, PE 2 strips the LSP label and the EMSTI label in the message c to obtain the message a.
进一步可选的,在确定传输链路1的质量参数后(即S804后),P节点还可以向NMS发送传输链路1的质量参数;在确定传输链路2的质量参数后(即S807后),PE 2还可以向NMS发送传输链路2的质量参数。Further optionally, after determining the quality parameter of the transmission link 1 (that is, after S804), the P node may also send the quality parameter of the transmission link 1 to the NMS; after determining the quality parameter of the transmission link 2 (that is, after S807) ), PE 2 can also send the quality parameters of transmission link 2 to the NMS.
如图8所示,本申请实施例提供的通信方法在S804后还可以包括S809,在S807后还可以包括S810。As shown in FIG. 8, the communication method provided in this embodiment of the present application may further include S809 after S804, and may further include S810 after S807.
S809(可选的)、P节点向NMS发送传输链路1的质量参数。S809 (optional), the P node sends the quality parameter of the transmission link 1 to the NMS.
S810(可选的)、PE 2向NMS发送传输链路2的质量参数。S810 (optional), PE 2 sends the quality parameters of transmission link 2 to the NMS.
由于S809和S810为可选的,因此,图8中采用虚线框表示。Since S809 and S810 are optional, they are indicated by dotted boxes in FIG. 8.
此外,当MPLS网络中的标签支持LSP时,PE 1、P节点以及PE 2之间的通信还可以处于VPN场景。在VPN场景中,PE 1和PE 1需要处理第一标签,P节点不需要识别第一标签。In addition, when the label in the MPLS network supports LSP, the communication between PE 1, P nodes, and PE 2 can also be in a VPN scenario. In a VPN scenario, PE 1 and PE 1 need to process the first label, and the P node does not need to recognize the first label.
图11示出了这种情形下,本申请实施例提供的通信方法的流程图。如图11所示,该通信方法可以包括:FIG. 11 shows a flowchart of a communication method provided by an embodiment of the present application in this situation. As shown in FIG. 11, the communication method may include:
S110、PE 2向PE 1发送指示信息。S110. PE 2 sends instruction information to PE 1.
PE 2向PE 1发送指示信息的过程可以参考上述S400的描述,这里不再进行详细赘述。The process of sending instruction information from PE 2 to PE 1 can refer to the description of S400 above, and details are not repeated here.
指示信息可以承载于LSP信令的LDP TLV中,其中,LDP TLV可以参考上述S800的描述或图9的格式,这里不再进行详细赘述。The indication information may be carried in the LDP TLV of the LSP signaling, where the LDP TLV may refer to the description of S800 above or the format of FIG. 9 and will not be described in detail here.
S111、PE 1向PE 2发送确认消息。S111. PE1 sends a confirmation message to PE2.
S111可以参考上述S401的描述,这里不再进行详细赘述。For S111, reference may be made to the description of S401 above, and details are not described herein again.
S112、根据指示信息指示的通信模式,在获取到报文x后,PE 1为报文x封装VPN标签、LSP标签1和EMSTI标签,以生成报文y。S112. According to the communication mode indicated by the indication information, after acquiring the message x, PE 1 encapsulates the VPN label, LSP label 1, and EMSTI label for the message x to generate the message y.
PE 1为报文x封装VPN标签的方法可以参考现有技术中封装VPN标签的方法,这里不再进行详细赘述。For the method of encapsulating the VPN label by PE 1 for message x, please refer to the method of encapsulating the VPN label in the prior art, which will not be described in detail here.
PE 1为报文x封装LSP标签1的方法可以参考现有技术中封装LSP标签的方法,这里不再进行详细赘述。The method of encapsulating LSP label 1 by PE 1 for message x can refer to the method of encapsulating LSP label in the prior art, which will not be described in detail here.
PE 1为报文x封装EMSTI标签,且EMSTI标签位于LSP标签1的外层。PE1 is the message x encapsulated EMSTI label, and the EMSTI label is located on the outer layer of LSP label 1.
示例性的,如图12所示,报文x包括净荷、私网SA和私网DA,PE 1在获取到报文x后,为报文x封装VPN标签、LSP标签1和EMSTI标签,以生成报文y,此时,报文y包括净荷、VPN标签、EMSTI标签、LSP标签1、公网SA以及公网DA。Exemplarily, as shown in FIG. 12, packet x includes payload, private network SA, and private network DA. After obtaining packet x, PE 1 encapsulates packet x with VPN label, LSP label 1, and EMSTI label. To generate a message y, at this time, the message y includes a payload, a VPN label, an EMSTI label, an LSP label 1, a public network SA, and a public network DA.
S113、PE 1向P节点发送报文y。S113. PE1 sends a message y to the P node.
S114、P节点将LSP标签1替换为LSP标签2,以生成报文z。S114. The P node replaces LSP label 1 with LSP label 2 to generate a message z.
P节点将LSP标签1替换为LSP标签2的方法可以参考现有技术中P节点交换LSP标签的方法,这里不再进行详细赘述。For the method of replacing the LSP label 1 with the LSP label 2 by the P node, reference may be made to the method of exchanging the LSP label by the P node in the prior art, which will not be described in detail here.
示例性的,如图12所示,P节点在接收到报文y后,对报文y中的LSP标签进行交换,生成报文z,报文z包括净荷、VPN标签、EMSTI标签、LSP标签2、公网SA以及公网DA。Exemplarily, as shown in FIG. 12, after receiving the message y, the P node exchanges the LSP label in the message y to generate a message z, and the message z includes a payload, a VPN label, an EMSTI label, and an LSP Label 2, public network SA and public network DA.
S115、P节点向PE 2发送报文z。S115. The P node sends a message z to PE 2.
S116、PE 2识别并剥离EMSTI标签,并根据EMSTI标签中的序列号和时间戳字段,确定PE 1与PE 2之间的传输链路的质量参数。S116. PE 2 recognizes and strips the EMSTI label, and determines the quality parameters of the transmission link between PE 1 and PE 2 according to the serial number and time stamp field in the EMSTI label.
若PE 1与PE 2之间的传输链路的质量参数包括乱序报文的数值、丢失报文的数值、重复报文的数值、时延和抖动,则PE 2确定乱序报文的数值的方法可以参考上述S406的描述,PE 2确定丢失报文的数值和重复报文的方法可以参考上述S407的描述,PE 2确定时延和抖动的方法可以参考上述S408和S409的描述,这里不再进行详细赘述。If the quality parameters of the transmission link between PE 1 and PE 2 include the values of out-of-order packets, the values of lost packets, the values of repeated packets, delay and jitter, PE 2 determines the values of out-of-order packets The method can refer to the description of S406 above, the method of PE 2 to determine the value of the lost packet and the repeated message can refer to the description of S407 above, and the method of PE 2 to determine the delay and jitter can refer to the description of S408 and S409 above, not here I will repeat them in detail.
S117、PE 2剥离VPN标签和LSP标签2,以获取报文x。S117, PE 2 strips the VPN label and LSP label 2 to obtain the message x.
示例性的,如图12所示,PE 2在接收到报文z后,剥离报文z中的VPN标签、EMSTI标签和LSP标签2,以获取到报文x。Exemplarily, as shown in FIG. 12, after receiving the message z, PE 2 strips the VPN label, EMSTI label, and LSP label 2 in the message z to obtain the message x.
进一步可选的,在确定PE 1与PE 2之间的传输链路的质量参数后(即S116后),PE 2还可以向NMS发送该传输链路的质量参数。Further optionally, after determining the quality parameter of the transmission link between PE 1 and PE 2 (that is, after S116), PE 2 may also send the quality parameter of the transmission link to the NMS.
如图11所示,本申请实施例提供的通信方法在S116后还可以包括S118。As shown in FIG. 11, the communication method provided by the embodiment of the present application may further include S118 after S116.
S118(可选的)、PE 2向NMS发送PE 1与PE 2之间的传输链路的质量参数。S118 (optional), PE 2 sends the quality parameters of the transmission link between PE 1 and PE 2 to the NMS.
由于S118为可选的,因此,图11中采用虚线框表示。Since S118 is optional, it is indicated by a dotted box in FIG. 11.
从上面描述可知,MPLS网络中的标签可以支持LDP,还可以支持RSVP或BGP。As can be seen from the above description, the label in the MPLS network can support LDP, and can also support RSVP or BGP.
当MPLS网络中的标签支持RSVP时,MPLS网络中设备之间的通信只能处于LSP场景。图8示出的通信方法的流程也适用于该场景。When the label in the MPLS network supports RSVP, the communication between devices in the MPLS network can only be in the LSP scenario. The flow of the communication method shown in FIG. 8 is also applicable to this scenario.
不同的是,当MPLS网络中的标签支持RSVP时,指示信息1/指示信息2承载于RSVP信令 中。The difference is that when the label in the MPLS network supports RSVP, the indication information 1/indication information 2 is carried in RSVP signaling.
示例性的,RSVP信令中新增RSVP标签请求类,该RSVP标签请求类用于承载指示信息1/指示信息2,用于标识设备具备处理第一标签的能力。图13示出了RSVP标签请求类的格式。Exemplarily, an RSVP label request class is added to RSVP signaling. The RSVP label request class is used to carry indication information 1/indication information 2, and is used to identify that the device has the capability of processing the first tag. Figure 13 shows the format of the RSVP tag request class.
如图13所示,RSVP标签请求类包括保留字段和流标识(flow ID)字段。在发送报文时,保留字段的数值设置为0。流标识为报文的首节点根据IP流的特征动态申请的,用于标识业务流。若流标识的数值为0,则接收端设备对发送端设备发送的所有报文均进行EMSTI标签的处理。As shown in FIG. 13, the RSVP tag request class includes a reserved field and a flow ID (flow ID) field. When sending a message, the value of the reserved field is set to 0. The flow identifier is used by the first node of the packet to dynamically apply according to the characteristics of the IP flow, and is used to identify the service flow. If the value of the flow identifier is 0, the receiving device performs EMSTI label processing on all packets sent by the sending device.
当MPLS网络中的标签支持BGP时,MPLS网络中设备之间的通信可以处于LSP场景,也可以处于VPN场景。When the label in the MPLS network supports BGP, the communication between the devices in the MPLS network can be in an LSP scenario or a VPN scenario.
图8示出的通信方法的流程也适用于MPLS网络中的标签支持BGP,且MPLS网络中设备之间的通信处于LSP场景。The flow of the communication method shown in FIG. 8 is also applicable to the label in the MPLS network supporting BGP, and the communication between devices in the MPLS network is in an LSP scenario.
图11示出的通信方法的流程也适用于MPLS网络中的标签支持BGP,且MPLS网络中设备之间的通信处于VPN场景。The flow of the communication method shown in FIG. 11 is also applicable to the label in the MPLS network supporting BGP, and the communication between devices in the MPLS network is in a VPN scenario.
不同的是,当MPLS网络中的标签支持BGP时,指示信息1/指示信息2/指示信息承载于BGP信令中。The difference is that when the label in the MPLS network supports BGP, the indication information 1/indication information 2/indication information is carried in BGP signaling.
示例性的,BGP信令中新增BGP TLV,该BGP TLV用于承载指示信息1/指示信息2/指示信息,用于标识设备具备处理第一标签的能力。图14示出了BGP TLV的格式。Exemplarily, BGP signaling adds BGP TLV, which is used to carry indication information 1/indication information 2/indication information, and is used to identify that the device has the capability of processing the first label. Figure 14 shows the format of BGP TLV.
在图14中,标志(flag)表示可选传递,节点可以不具备处理第一标签的能力,若某一节点不具备处理第一标签的能力,该节点也需要将BGP TLV传递给其他对等体(如上游设备);类型(type)表示第一标签的类型;长度(length)表示该BGP TLV的长度;模式(mode)表示发送设备与接收设备之间的通信模式,示例性的,0x00表示隧道模式,0x01表示传输模式。当发送设备与接收设备之间的通信模式为隧道模式时,1/2/3/4/5/6/7字段都设置成0,表示不区分业务流特征,对所有入隧道的报文均进行第一标签的处理。In Figure 14, a flag indicates optional delivery. A node may not have the ability to process the first label. If a node does not have the ability to handle the first label, the node also needs to pass the BGP TLV to other peers Body (such as upstream device); type (type) indicates the type of the first label; length (length) indicates the length of the BGP TLV; mode (mode) indicates the communication mode between the sending device and the receiving device, exemplary, 0x00 Indicates the tunnel mode, and 0x01 indicates the transmission mode. When the communication mode between the sending device and the receiving device is the tunnel mode, the 1/2/3/4/5/6/7 fields are set to 0, indicating that no distinction is made between the characteristics of the service flow, and all packets entering the tunnel are The first label is processed.
综上,在不同的可能的实现方式中,第一设备能够根据每个报文的第一标签中的序列号,确定乱序报文的数值、重复报文的数值或丢失报文的数值中的至少一个,还可以根据每个报文的第一标签中的时间戳,确定时延和/或抖动。相比于现有技术,本申请提供的通信方法中,第一设备能够确定出更多的参数,有效的提高了传输链路的质量的准确性。In summary, in different possible implementations, the first device can determine the value of the out-of-order message, the value of the repeated message, or the value of the lost message according to the sequence number in the first label of each message At least one of may also determine the delay and/or jitter according to the time stamp in the first label of each packet. Compared with the prior art, in the communication method provided by the present application, the first device can determine more parameters, which effectively improves the accuracy of the transmission link quality.
本申请实施例还提供一种通信装置,该通信装置可以为MPLS网络中的任一节点(如服务商边缘节点或P节点),也可以为MPLS网络中节点的部分装置,例如如服务商边缘节点(或P节点)中的芯片系统。可选的,该芯片系统,用于支持MPLS网络中的节点实现上述方法实施例中所涉及的功能,例如,接收,发送,或处理上述方法中所涉及的数据和/或信息。该芯片系统包括芯片,也可以包括其他分立器件或电路结构。An embodiment of the present application further provides a communication device, which may be any node in an MPLS network (such as a service provider edge node or a P node), or may be a partial device of a node in an MPLS network, for example, such as a service provider edge The chip system in the node (or P node). Optionally, the chip system is used to support nodes in the MPLS network to implement the functions involved in the above method embodiments, for example, to receive, send, or process the data and/or information involved in the above methods. The chip system includes a chip, and may also include other discrete devices or circuit structures.
该通信装置用于执行以上通信方法中的第一设备所执行的步骤。本申请实施例提供的通信装置可以包括相应步骤所对应的模块。The communication device is used to perform the steps performed by the first device in the above communication method. The communication apparatus provided in the embodiments of the present application may include modules corresponding to corresponding steps.
本申请实施例可以根据上述方法示例对通信装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional modules of the communication apparatus according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software function modules. The division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
在采用对应各个功能划分各个功能模块的情况下,图15示出了本实施例中通信装置的一 种可能的结构示意图。如图15所示,通信装置15包括接收单元150和处理单元151。In the case where each function module is divided corresponding to each function, FIG. 15 shows a possible structural diagram of the communication device in this embodiment. As shown in FIG. 15, the communication device 15 includes a receiving unit 150 and a processing unit 151.
接收单元150用于支持该通信装置执行上述图4A、图4B或图7中所示的接收操作,例如:S401、S404等,和/或用于本文所描述的技术的其它过程。The receiving unit 150 is used to support the communication device to perform the receiving operations shown in FIG. 4A, FIG. 4B or FIG. 7, such as S401, S404, etc., and/or other processes for the technology described herein.
处理单元151用于支持该通信装置执行上述图4A、图4B或图7中所示的识别、读取、确定等操作,例如:S405、S406、S407、S408等,和/或用于本文所描述的技术的其它过程。The processing unit 151 is used to support the communication device to perform the identification, reading, and determination operations shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S405, S406, S407, S408, and/or the like. Other processes of the described technology.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。当然,本申请实施例提供的通信装置包括但不限于上述模块,例如通信装置还可以包括发送单元152和存储单元153。发送单元152可以用于支持该通信装置执行上述图4A、图4B或图7中所示的发送操作,例如:S400、S701等,和/或用于本文所描述的技术的其它过程。存储单元153可以用于存储该通信装置的程序代码和数据。Wherein, all relevant content of each step involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here. Of course, the communication device provided by the embodiment of the present application includes but is not limited to the above-mentioned modules. For example, the communication device may further include a sending unit 152 and a storage unit 153. The sending unit 152 may be used to support the communication device to perform the sending operations shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S400, S701, and/or other processes used in the technology described herein. The storage unit 153 may be used to store program codes and data of the communication device.
本申请提供的通信装置的实体框图可以参考上述图3。上述处理单元151可以是图3中的处理器31,发送单元152和接收单元150可以是图3中的通信接口33,存储单元153可以是图3中的存储器32。The physical block diagram of the communication device provided in this application may refer to FIG. 3 described above. The above processing unit 151 may be the processor 31 in FIG. 3, the sending unit 152 and the receiving unit 150 may be the communication interface 33 in FIG. 3, and the storage unit 153 may be the memory 32 in FIG. 3.
本申请另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当指令在通信装置上运行时,该通信装置执行如图4A、图4B或图7所示的实施例的通信方法中第一设备的步骤。Another embodiment of the present application also provides a computer-readable storage medium that stores instructions, and when the instructions run on the communication device, the communication device executes as shown in FIG. 4A, FIG. 4B, or FIG. 7. The steps of the first device in the communication method of the illustrated embodiment.
在本申请的另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中;通信装置的处理器可以从计算机可读存储介质读取该计算机执行指令,处理器执行该计算机执行指令使得通信装置执行如图4A、图4B或图7所示的实施例的通信方法中第一设备的步骤。In another embodiment of the present application, a computer program product is also provided. The computer program product includes computer-executable instructions, which are stored in a computer-readable storage medium; the processor of the communication device may be readable from the computer The storage medium reads the computer-executed instruction, and the processor executes the computer-executed instruction to cause the communication device to execute the steps of the first device in the communication method of the embodiment shown in FIG. 4A, FIG. 4B, or FIG. 7.
本申请实施例还提供一种通信装置,该通信装置可以为MPLS网络中的任一节点(如服务商边缘节点或P节点),也可以为MPLS网络中节点的部分装置,例如如服务商边缘节点(或P节点)中的芯片系统。可选的,该芯片系统,用于支持MPLS网络中的节点实现上述方法实施例中所涉及的功能,例如,接收,发送,或处理上述方法中所涉及的数据和/或信息。该芯片系统包括芯片,也可以包括其他分立器件或电路结构。An embodiment of the present application further provides a communication device, which may be any node in an MPLS network (such as a service provider edge node or a P node), or may be a partial device of a node in an MPLS network, for example, such as a service provider edge The chip system in the node (or P node). Optionally, the chip system is used to support nodes in the MPLS network to implement the functions involved in the above method embodiments, for example, to receive, send, or process the data and/or information involved in the above methods. The chip system includes a chip, and may also include other discrete devices or circuit structures.
该通信装置用于执行以上通信方法中的第二设备所执行的步骤。本申请实施例提供的通信装置可以包括相应步骤所对应的模块。The communication device is used to perform the steps performed by the second device in the above communication method. The communication apparatus provided in the embodiments of the present application may include modules corresponding to corresponding steps.
本申请实施例可以根据上述方法示例对通信装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional modules of the communication apparatus according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software function modules. The division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
在采用对应各个功能划分各个功能模块的情况下,图16示出了本实施例中通信装置的一种可能的结构示意图。如图16所示,通信装置16包括处理单元161、发送单元162和接收单元163。In the case where each functional module is divided corresponding to each function, FIG. 16 shows a possible structural schematic diagram of the communication device in this embodiment. As shown in FIG. 16, the communication device 16 includes a processing unit 161, a sending unit 162 and a receiving unit 163.
处理单元161用于支持该通信装置执行上述图4A、图4B或图7中所示的封装等操作,例如:S402、S403等,和/或用于本文所描述的技术的其它过程。The processing unit 161 is used to support the communication device to perform the operations such as the packaging shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S402, S403, and/or other processes used in the technology described herein.
发送单元162用于支持该通信装置执行上述图4A、图4B或图7中所示的发送操作,例如:S401、S404等,和/或用于本文所描述的技术的其它过程。The sending unit 162 is used to support the communication device to perform the sending operations shown in FIG. 4A, FIG. 4B, or FIG. 7, such as S401, S404, etc., and/or other processes for the technology described herein.
接收单元163可以用于支持该通信装置执行上述图4A、图4B或图7中所示的接收操作, 例如:S400等,和/或用于本文所描述的技术的其它过程。The receiving unit 163 may be used to support the communication device to perform the receiving operations shown in FIG. 4A, FIG. 4B, or FIG. 7, for example, S400, etc., and/or other processes used in the technology described herein.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。当然,本申请实施例提供的通信装置包括但不限于上述模块,例如通信装置还可以包括存储单元164。存储单元164可以用于存储该通信装置的程序代码和数据。Wherein, all relevant content of each step involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here. Of course, the communication device provided by the embodiment of the present application includes but is not limited to the above-mentioned modules, for example, the communication device may further include a storage unit 164. The storage unit 164 may be used to store program codes and data of the communication device.
本申请提供的通信装置的实体框图可以参考上述图3。上述处理单元161可以是图3中的处理器31,发送单元162和接收单元163可以是图3中的通信接口33,存储单元164可以是图3中的存储器32。The physical block diagram of the communication device provided in this application may refer to FIG. 3 described above. The above processing unit 161 may be the processor 31 in FIG. 3, the sending unit 162 and the receiving unit 163 may be the communication interface 33 in FIG. 3, and the storage unit 164 may be the memory 32 in FIG. 3.
本申请另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当指令在通信装置上运行时,该通信装置执行如图4A、图4B或图7所示的实施例的通信方法中第二设备的步骤。Another embodiment of the present application also provides a computer-readable storage medium that stores instructions, and when the instructions run on the communication device, the communication device executes as shown in FIG. 4A, FIG. 4B, or FIG. 7. The steps of the second device in the communication method of the illustrated embodiment.
在本申请的另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中;通信装置的处理器可以从计算机可读存储介质读取该计算机执行指令,处理器执行该计算机执行指令使得通信装置执行如图4A、图4B或图7所示的实施例的通信方法中第二设备的步骤。In another embodiment of the present application, a computer program product is also provided. The computer program product includes computer-executable instructions, which are stored in a computer-readable storage medium; the processor of the communication device may be readable from the computer The storage medium reads the computer-executed instruction, and the processor executes the computer-executed instruction to cause the communication device to execute the steps of the second device in the communication method of the embodiment shown in FIG. 4A, FIG. 4B, or FIG. 7.
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据终端。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、或者半导体介质(例如固态硬盘solid state disk(SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may appear in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server, or data center via wire (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data terminal including one or more available medium integrated servers, data centers, and the like. The usable medium may be a magnetic medium (eg, floppy disk, hard disk, magnetic tape), or a semiconductor medium (eg, solid state disk (SSD)), or the like.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above-mentioned division of each functional module is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed Completed by different functional modules, that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or components may be The combination can either be integrated into another device, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以 采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present application may essentially be part of or contribute to the prior art or all or part of the technical solutions may be embodied in the form of software products, which are stored in a storage medium In it, several instructions are included to enable a device (which may be a single-chip microcomputer, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only the specific implementation of this application, but the scope of protection of this application is not limited to this, any change or replacement within the technical scope disclosed in this application should be covered within the scope of protection of this application . Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (28)

  1. 一种通信方法,其特征在于,应用于多协议标签交换MPLS网络,所述MPLS网络包括第一设备和第二设备,所述通信方法包括:A communication method characterized by being applied to a multi-protocol label switching MPLS network, where the MPLS network includes a first device and a second device, and the communication method includes:
    所述第一设备经由传输链路接收来自所述第二设备的至少一个报文,所述至少一个报文中的每个报文均包括第一标签,所述第一标签包括报文的序列号;The first device receives at least one message from the second device via a transmission link, each message in the at least one message includes a first label, and the first label includes a sequence of messages number;
    所述第一设备识别所述每个报文的第一标签,并读取所述每个报文的序列号;The first device recognizes the first label of each message and reads the serial number of each message;
    所述第一设备根据所述每个报文的序列号,确定所述传输链路的质量参数,所述质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个。The first device determines the quality parameter of the transmission link according to the sequence number of each message, where the quality parameter includes the value of the out-of-order message, the value of the lost message, or the value of the repeated message At least one.
  2. 根据权利要求1所述的通信方法,其特征在于,所述乱序报文的数值是所述第一设备根据以下过程得到的:The communication method according to claim 1, wherein the value of the out-of-order message is obtained by the first device according to the following process:
    所述第一设备确定第一数值,所述第一数值为所述至少一个报文中满足第一预设条件的报文的数值,所述第一预设条件为:pre-curr<预设阈值,或者,curr-pre>预设阈值;curr表示第一报文的序列号,所述第一报文为所述至少一个报文中的任意一个报文,pre表示第二报文的序列号,所述第二报文为所述第一设备接收到的所述第一报文的上一报文,1<所述预设阈值<预设的最大序列号;The first device determines a first value, the first value is a value of a message that satisfies a first preset condition in the at least one message, and the first preset condition is: pre-curr<preset Threshold, or, curr-pre>preset threshold; curr represents the sequence number of the first message, the first message is any one of the at least one message, and pre represents the sequence of the second message No., the second message is the last message of the first message received by the first device, 1<the preset threshold value<the preset maximum sequence number;
    所述第一设备将所述第一数值确定为所述乱序报文的数值。The first device determines the first value as the value of the out-of-order message.
  3. 根据权利要求1或2所述的通信方法,其特征在于,所述丢失报文的数值是所述第一设备根据以下过程得到的:The communication method according to claim 1 or 2, wherein the value of the lost packet is obtained by the first device according to the following procedure:
    所述第一设备根据所述每个报文的序列号,确定第二数值,所述第二数值为所述至少一个报文中满足第二预设条件的报文的数值,所述第二预设条件为:1<curr-pre≤预设阈值,或,预设阈值≤pre-curr<预设的最大序列号;curr表示第一报文的序列号,所述第一报文为所述至少一个报文中的任意一个报文,pre表示第二报文的序列号,所述第二报文为所述第一设备接收到的所述第一报文的上一报文,1<所述预设阈值<预设的最大序列号;The first device determines a second value according to the sequence number of each message, the second value is a value of a message that satisfies a second preset condition in the at least one message, the second The preset condition is: 1<curr-pre≤preset threshold, or, preset threshold≤pre-curr<preset maximum sequence number; curr represents the sequence number of the first message, and the first message is all Any one of the at least one message, pre indicates the sequence number of the second message, the second message is the last message of the first message received by the first device, 1 <the preset threshold value<the preset maximum serial number;
    所述第一设备将所述第二数值与所述乱序报文的数值的差值确定为所述丢失报文的数值。The first device determines the difference between the second value and the value of the out-of-order message as the value of the lost message.
  4. 根据权利要求1-3中任意一项所述的通信方法,其特征在于,所述重复报文的数值是所述第一设备根据以下过程得到的:The communication method according to any one of claims 1-3, wherein the value of the repeated message is obtained by the first device according to the following procedure:
    所述第一设备根据所述每个报文的序列号,确定第三数值,所述第三数值为所述至少一个报文中满足第三预设条件的报文的数值,所述第三预设条件为:curr=pre,curr表示第一报文的序列号,所述第一报文为所述至少一个报文中的任意一个报文,pre表示第二报文的序列号,所述第二报文为所述第一设备接收到的所述第一报文的上一报文;The first device determines a third value according to the sequence number of each message, where the third value is the value of a message that satisfies a third preset condition in the at least one message, and the third The preset condition is: curr=pre, curr represents the sequence number of the first message, the first message is any one of the at least one message, and pre represents the sequence number of the second message. The second message is the last message of the first message received by the first device;
    所述第一设备将所述第三数值确定为所述重复报文的数值。The first device determines the third value as the value of the repeated message.
  5. 根据权利要求1-4中任一项所述的通信方法,其特征在于,所述第一标签还包括报文的时间戳;所述通信方法还包括:The communication method according to any one of claims 1 to 4, wherein the first label further includes a time stamp of the message; the communication method further includes:
    所述第一设备读取所述每个报文的时间戳;The first device reads the time stamp of each message;
    所述第一设备根据所述每个报文的时间戳,获取所述每个报文的发送时间和接收时间;The first device obtains the sending time and receiving time of each message according to the time stamp of each message;
    针对所述每个报文,所述第一设备将所述报文的接收时间与所述报文的发送时间的差值,确定为所述报文的时延。For each message, the first device determines the difference between the reception time of the message and the transmission time of the message as the delay of the message.
  6. 根据权利要求5所述的通信方法,其特征在于,所述方法还包括:The communication method according to claim 5, wherein the method further comprises:
    针对所述每个报文,所述第一设备将所述报文的时延与所述第一设备接收到的所述报文 的上一报文的时延的差值确定为所述报文的抖动。For each packet, the first device determines the difference between the delay of the packet and the delay of the last packet of the packet received by the first device as the packet The text shakes.
  7. 根据权利要求1-6中任意一项所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to any one of claims 1-6, wherein the communication method further comprises:
    所述第一设备向所述第二设备发送指示信息;所述指示信息用于指示所述第一设备具备处理所述第一标签的能力,且指示所述第二设备与所述第一设备进行通信的通信模式;所述至少一个报文为所述第二设备根据所述通信模式向所述第一设备发送的报文。The first device sends instruction information to the second device; the instruction information is used to indicate that the first device is capable of processing the first tag, and indicates the second device and the first device A communication mode in which communication is performed; the at least one message is a message sent by the second device to the first device according to the communication mode.
  8. 根据权利要求1-7中任意一项所述的通信方法,其特征在于,所述每个报文还包括第二标签,所述第二标签位于所述第一标签的外层,所述第二标签用于指示所述第一标签不参与负载分担的计算。The communication method according to any one of claims 1-7, wherein each message further includes a second label, the second label is located on an outer layer of the first label, and the first The second label is used to indicate that the first label does not participate in the calculation of load sharing.
  9. 一种通信方法,其特征在于,应用于多协议标签交换MPLS网络,所述MPLS网络包括第一设备和第二设备;所述通信方法包括:A communication method, characterized in that it is applied to a multi-protocol label switching MPLS network, the MPLS network includes a first device and a second device; the communication method includes:
    所述第二设备接收所述第一设备发送的指示信息,所述指示信息用于指示所述第一设备具备处理所述第一标签的能力,且指示所述第二设备与所述第一设备进行通信的通信模式;The second device receives indication information sent by the first device, the indication information is used to indicate that the first device is capable of processing the first tag, and indicates that the second device and the first device The communication mode in which the device communicates;
    在所述第二设备具备处理所述第一标签的能力的情况下,所述第二设备根据所述通信模式,为待发送的报文封装第一标签,所述第一标签包括报文的序列号,所述报文的序列号用于所述第一设备确定传输链路的质量参数,所述质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个,所述传输链路为所述第一设备与所述第二设备之间的链路;When the second device is capable of processing the first label, the second device encapsulates the first label for the packet to be sent according to the communication mode, and the first label includes the Sequence number, the sequence number of the message is used by the first device to determine the quality parameter of the transmission link, the quality parameter includes the value of the out-of-order message, the value of the lost message or the value of the repeated message At least one, the transmission link is a link between the first device and the second device;
    所述第二设备向所述第一设备发送封装后的报文。The second device sends the encapsulated message to the first device.
  10. 根据权利要求9所述的通信方法,其特征在于,所述通信模式为隧道模式或传输模式;The communication method according to claim 9, wherein the communication mode is a tunnel mode or a transmission mode;
    若所述通信模式为所述隧道模式,所述待发送的报文为所述第二设备向所述第一设备发送的所有报文;If the communication mode is the tunnel mode, the packets to be sent are all packets sent by the second device to the first device;
    若所述通信模式为所述传输模式,所述待发送的报文为所述第二设备向所述第一设备发送的所有报文中传输地址为预设地址的报文,所述传输地址为所述报文的源地址和/或所述报文的目标地址。If the communication mode is the transmission mode, the message to be sent is a message whose transmission address is a preset address in all messages sent by the second device to the first device, and the transmission address Is the source address of the message and/or the destination address of the message.
  11. 根据权利要求9或10所述的通信方法,其特征在于,所述方法还包括:The communication method according to claim 9 or 10, wherein the method further comprises:
    若所述第二设备与所述第一设备的通信处于目标场景,所述第二设备为所述待发送的报文封装第三标签;其中,所述目标场景为虚拟专用网络VPN场景或者标签交换路径LSP场景;若所述目标场景为VPN场景,所述第三标签为VPN标签;若所述目标场景为LSP场景,所述第三标签为LSP标签;If the communication between the second device and the first device is in a target scenario, the second device encapsulates a third label for the packet to be sent; wherein, the target scenario is a virtual private network VPN scenario or label Switch path LSP scenario; if the target scenario is a VPN scenario, the third label is a VPN label; if the target scenario is an LSP scenario, the third label is an LSP label;
    所述第二设备为待发送的报文封装第一标签,具体包括:The second device encapsulating the first label for the message to be sent specifically includes:
    所述第二设备在所述第三标签的外层封装所述第一标签。The second device encapsulates the first label on the outer layer of the third label.
  12. 根据权利要求9-11中任意一项所述的通信方法,其特征在于,所述方法还包括:The communication method according to any one of claims 9-11, wherein the method further comprises:
    所述第二设备为所述待发送的报文封装第二标签,所述第二标签位于所述第一标签的外层,所述第二标签用于指示所述第一标签不参与负载分担的计算。The second device encapsulates a second label for the message to be sent, the second label is located at an outer layer of the first label, and the second label is used to indicate that the first label does not participate in load sharing Calculation.
  13. 根据权利要求9-12中任意一项所述的通信方法,其特征在于,The communication method according to any one of claims 9-12, characterized in that
    所述第一标签还包括报文的时间戳,所述报文的时间戳用于所述第一设备确定时延和抖动中的至少一个。The first label further includes a time stamp of the message, and the time stamp of the message is used by the first device to determine at least one of time delay and jitter.
  14. 一种通信装置,其特征在于,应用于多协议标签交换MPLS网络,所述MPLS网络包括第一设备和第二设备,所述通信装置为所述第一设备,所述通信装置包括:A communication device characterized by being applied to a multi-protocol label switching MPLS network. The MPLS network includes a first device and a second device. The communication device is the first device. The communication device includes:
    接收单元,用于经由传输链路接收来自所述第二设备的至少一个报文,所述至少一个报文中的每个报文均包括第一标签,所述第一标签包括报文的序列号;A receiving unit, configured to receive at least one message from the second device via a transmission link, each message in the at least one message includes a first label, and the first label includes a sequence of messages number;
    处理单元,用于识别所述接收单元接收到的所述每个报文的第一标签,并读取所述每个报文的序列号,以及根据所述每个报文的序列号,确定所述传输链路的质量参数,所述质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个。The processing unit is configured to identify the first label of each message received by the receiving unit, and read the sequence number of each message, and determine according to the sequence number of each message A quality parameter of the transmission link, the quality parameter includes at least one of a value of out-of-order messages, a value of a lost message, or a value of a repeated message.
  15. 根据权利要求14所述的通信装置,其特征在于,当所述质量参数包括所述乱序报文的数值时,所述处理单元具体用于:The communication device according to claim 14, wherein when the quality parameter includes the value of the out-of-order message, the processing unit is specifically configured to:
    确定第一数值,所述第一数值为所述至少一个报文中满足第一预设条件的报文的数值,所述第一预设条件为:pre-curr<预设阈值,或者,curr-pre>预设阈值;curr表示第一报文的序列号,所述第一报文为所述至少一个报文中的任意一个报文,pre表示第二报文的序列号,所述第二报文为所述接收单元接收到的所述第一报文的上一报文,1<所述预设阈值<预设的最大序列号;Determining a first value, the first value is a value of a message that satisfies a first preset condition in the at least one message, the first preset condition is: pre-curr<preset threshold, or, curr -pre>preset threshold; curr means the sequence number of the first message, the first message is any one of the at least one message, pre means the sequence number of the second message, the first The second message is the last message of the first message received by the receiving unit, 1<the preset threshold value<the preset maximum sequence number;
    将所述第一数值确定为所述乱序报文的数值。The first value is determined as the value of the out-of-order message.
  16. 根据权利要求14或15所述的通信装置,其特征在于,当所述质量参数包括所述丢失报文的数值时,所述处理单元具体用于:The communication device according to claim 14 or 15, wherein when the quality parameter includes the value of the lost packet, the processing unit is specifically configured to:
    根据所述每个报文的序列号,确定第二数值,所述第二数值为所述至少一个报文中满足第二预设条件的报文的数值,所述第二预设条件为:1<curr-pre≤预设阈值,或,预设阈值≤pre-curr<预设的最大序列号;curr表示第一报文的序列号,所述第一报文为所述至少一个报文中的任意一个报文,pre表示第二报文的序列号,所述第二报文为所述接收单元接收到的所述第一报文的上一报文,1<所述预设阈值<预设的最大序列号;A second value is determined according to the sequence number of each message, and the second value is a value of a message that satisfies a second preset condition in the at least one message, and the second preset condition is: 1<curr-pre≤preset threshold, or, preset threshold≤pre-curr<preset maximum sequence number; curr represents the sequence number of the first message, the first message is the at least one message Any one of the packets, pre represents the sequence number of the second packet, the second packet is the last packet of the first packet received by the receiving unit, 1<the preset threshold <The preset maximum serial number;
    将所述第二数值与所述乱序报文的数值的差值确定为所述丢失报文的数值。The difference between the second value and the value of the out-of-order message is determined as the value of the lost message.
  17. 根据权利要求14-16中任意一项所述的通信装置,其特征在于,当所述质量参数包括所述重复报文的数值时,所述处理单元具体用于:The communication device according to any one of claims 14 to 16, wherein when the quality parameter includes the value of the repeated message, the processing unit is specifically configured to:
    根据所述每个报文的序列号,确定第三数值,所述第三数值为所述至少一个报文中满足第三预设条件的报文的数值,所述第三预设条件为:curr=pre,curr表示第一报文的序列号,所述第一报文为所述至少一个报文中的任意一个报文,pre表示第二报文的序列号,所述第二报文为所述接收单元接收到的所述第一报文的上一报文;A third value is determined according to the sequence number of each message, and the third value is a value of a message that satisfies a third preset condition in the at least one message, and the third preset condition is: curr=pre, curr represents the sequence number of the first message, the first message is any one of the at least one message, pre represents the sequence number of the second message, the second message The last message of the first message received by the receiving unit;
    将所述第三数值确定为所述重复报文的数值。The third value is determined as the value of the repeated message.
  18. 根据权利要求14-17中任一项所述的通信装置,其特征在于,所述第一标签还包括报文的时间戳;所述处理单元还用于:The communication device according to any one of claims 14 to 17, wherein the first tag further includes a time stamp of the message; the processing unit is further configured to:
    读取所述每个报文的时间戳;Read the timestamp of each message;
    根据所述每个报文的时间戳,获取所述每个报文的发送时间和接收时间;Acquiring the sending time and receiving time of each message according to the time stamp of each message;
    针对所述每个报文,将所述报文的接收时间与所述报文的发送时间的差值,确定为所述报文的时延。For each message, the difference between the reception time of the message and the transmission time of the message is determined as the delay of the message.
  19. 根据权利要求18所述的通信装置,其特征在于,所述处理单元还用于:The communication device according to claim 18, wherein the processing unit is further configured to:
    针对所述每个报文,将所述报文的时延与所述接收单元接收到的所述报文的上一报文的时延的差值确定为所述报文的抖动。For each message, the difference between the delay of the message and the delay of the last message of the message received by the receiving unit is determined as the jitter of the message.
  20. 根据权利要求14-19中任意一项所述的通信装置,其特征在于,所述通信装置还包括发送单元;The communication device according to any one of claims 14-19, characterized in that the communication device further comprises a sending unit;
    所述发送单元,用于向所述第二设备发送指示信息,所述指示信息用于指示所述第一设 备具备处理所述第一标签的能力,且指示所述第二设备与所述第一设备进行通信的通信模式,所述至少一个报文为所述第二设备根据所述通信模式向所述第一设备发送的报文。The sending unit is configured to send instruction information to the second device, where the instruction information is used to indicate that the first device is capable of processing the first tag, and instructs the second device and the first device A communication mode in which a device communicates, and the at least one message is a message sent by the second device to the first device according to the communication mode.
  21. 根据权利要求14-20中任意一项所述的通信装置,其特征在于,所述每个报文还包括第二标签,所述第二标签位于所述第一标签的外层,所述第二标签用于指示所述第一标签不参与负载分担的计算。The communication device according to any one of claims 14 to 20, wherein each message further includes a second label, the second label is located on the outer layer of the first label, and the first The second label is used to indicate that the first label does not participate in the calculation of load sharing.
  22. 一种通信装置,其特征在于,应用于多协议标签交换MPLS网络,所述MPLS网络包括第一设备和第二设备;所述通信装置为所述第二设备,所述通信装置包括:A communication device characterized by being applied to a multi-protocol label switching MPLS network, where the MPLS network includes a first device and a second device; the communication device is the second device, and the communication device includes:
    接收单元,用于接收所述第一设备发送的指示信息,所述指示信息用于指示所述第一设备具备处理所述第一标签的能力,且指示所述第二设备与所述第一设备进行通信的通信模式;The receiving unit is configured to receive indication information sent by the first device, the indication information is used to indicate that the first device is capable of processing the first tag, and indicates the second device and the first The communication mode in which the device communicates;
    处理单元,用于在所述第二设备具备处理所述第一标签的能力的情况下,根据所述接收单元接收到的所述指示信息所指示的所述通信模式,为待发送的报文封装第一标签,所述第一标签包括报文的序列号,所述报文的序列号用于所述第一设备确定传输链路的质量参数,所述质量参数包括乱序报文的数值、丢失报文的数值或重复报文的数值中的至少一个,所述传输链路为所述第一设备与所述第二设备之间的链路;The processing unit is configured to be a packet to be sent according to the communication mode indicated by the indication information received by the receiving unit when the second device has the capability of processing the first tag A first label is encapsulated, the first label includes the sequence number of the packet, and the sequence number of the packet is used by the first device to determine the quality parameter of the transmission link, and the quality parameter includes the value of the out-of-order packet , At least one of the value of the lost message or the value of the repeated message, the transmission link is a link between the first device and the second device;
    发送单元,用于向所述第一设备发送所述处理单元得到的封装后的报文。The sending unit is configured to send the encapsulated message obtained by the processing unit to the first device.
  23. 根据权利要求22所述的通信装置,其特征在于,所述通信模式为隧道模式或传输模式;The communication device according to claim 22, wherein the communication mode is a tunnel mode or a transmission mode;
    若所述通信模式为所述隧道模式,所述待发送的报文为所述第二设备向所述第一设备发送的所有报文;If the communication mode is the tunnel mode, the packets to be sent are all packets sent by the second device to the first device;
    若所述通信模式为所述传输模式,所述待发送的报文为所述第二设备向所述第一设备发送的所有报文中传输地址为预设地址的报文,所述传输地址为所述报文的源地址和/或所述报文的目标地址;所述处理单元还用于确定所述待发送的报文。If the communication mode is the transmission mode, the message to be sent is a message whose transmission address is a preset address in all messages sent by the second device to the first device, and the transmission address Is the source address of the message and/or the target address of the message; the processing unit is also used to determine the message to be sent.
  24. 根据权利要求22或23所述的通信装置,其特征在于,所述处理单元还用于:The communication device according to claim 22 or 23, wherein the processing unit is further configured to:
    若所述第二设备与所述第一设备的通信处于目标场景,为所述待发送的报文封装第三标签;其中,所述目标场景为虚拟专用网络VPN场景或者标签交换路径LSP场景;若所述目标场景为VPN场景,所述第三标签为VPN标签;若所述目标场景为LSP场景,所述第三标签为LSP标签;If the communication between the second device and the first device is in a target scenario, encapsulate a third label for the packet to be sent; wherein, the target scenario is a virtual private network VPN scenario or a label switched path LSP scenario; If the target scenario is a VPN scenario, the third label is a VPN label; if the target scenario is an LSP scenario, the third label is an LSP label;
    所述处理单元用于为待发送的报文封装第一标签,具体包括:The processing unit is used to encapsulate the first label for the message to be sent, which specifically includes:
    所述处理单元,用于在所述第三标签的外层封装所述第一标签。The processing unit is configured to encapsulate the first label on the outer layer of the third label.
  25. 根据权利要求22-24中任意一项所述的通信装置,其特征在于,The communication device according to any one of claims 22-24, characterized in that
    所述处理单元,还用于为所述待发送的报文封装第二标签,所述第二标签位于所述第一标签的外层,所述第二标签用于指示所述第一标签不参与负载分担的计算。The processing unit is further configured to encapsulate a second label for the message to be sent, the second label is located on the outer layer of the first label, and the second label is used to indicate that the first label is not Participate in the calculation of load sharing.
  26. 根据权利要求22-25中任意一项所述的通信装置,其特征在于,The communication device according to any one of claims 22-25, characterized in that
    所述第一标签还包括报文的时间戳,所述报文的时间戳用于所述第一设备确定时延和抖动中的至少一个。The first label further includes a time stamp of the message, and the time stamp of the message is used by the first device to determine at least one of time delay and jitter.
  27. 一种通信装置,其特征在于,所述通信装置包括:处理器和存储器;A communication device, characterized in that the communication device includes: a processor and a memory;
    所述存储器与所述处理器连接;所述存储器用于存储计算机指令,当所述处理器执行所述计算机指令时,所述通信装置执行如权利要求1-8中任意一项所述的通信方法,或者执行如权利要求9-13中任意一项所述的通信方法。The memory is connected to the processor; the memory is used to store computer instructions, and when the processor executes the computer instructions, the communication device performs the communication according to any one of claims 1-8 Method, or performing the communication method according to any one of claims 9-13.
  28. 一种通信系统,其特征在于,所述通信系统包括如上述权利要求14-21中任意一项所述的通信装置,以及如上述权利要求22-26中任意一项所述的通信装置。A communication system, characterized in that the communication system includes the communication device according to any one of claims 14-21, and the communication device according to any one of claims 22-26.
PCT/CN2019/124972 2018-12-26 2019-12-13 Communication method, apparatus and system WO2020135087A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811603171.8A CN111371634B (en) 2018-12-26 2018-12-26 Communication method, device and system
CN201811603171.8 2018-12-26

Publications (1)

Publication Number Publication Date
WO2020135087A1 true WO2020135087A1 (en) 2020-07-02

Family

ID=71127516

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124972 WO2020135087A1 (en) 2018-12-26 2019-12-13 Communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN111371634B (en)
WO (1) WO2020135087A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156808A1 (en) * 2021-01-25 2022-07-28 华为技术有限公司 Packet processing method and related apparatus
CN115208964A (en) * 2021-04-09 2022-10-18 华为技术有限公司 Method and communication device for collective communication

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491646A (en) * 2020-11-13 2021-03-12 中盈优创资讯科技有限公司 VPN end-to-end performance monitoring method and device
CN113220478A (en) * 2021-04-28 2021-08-06 广州宸祺出行科技有限公司 Order message anti-repetition sending method and system based on message queue
CN113157610B (en) * 2021-05-20 2023-03-14 浙江大华技术股份有限公司 Data storage method and device, storage medium and electronic device
CN115580558B (en) * 2021-06-17 2025-04-25 中国移动通信集团有限公司 Link delay measurement method and device based on TWAMP protocol
CN116232944B (en) * 2023-05-06 2023-08-04 珠海星云智联科技有限公司 Method, equipment and medium for transport layer security protocol message service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881908A (en) * 2005-06-13 2006-12-20 华为技术有限公司 Method for measuring MPLS network performance parameter
CN103684923A (en) * 2013-12-24 2014-03-26 华为技术有限公司 Method for measuring packet loss and network device
US20140169183A1 (en) * 2012-12-14 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting twamp

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100597588B1 (en) * 2003-10-02 2006-07-06 한국전자통신연구원 Path characteristic measurement method between nodes using priority-based active test packet
CN100417080C (en) * 2005-02-01 2008-09-03 华为技术有限公司 A method for detecting network link faults and locating faults
WO2007056915A1 (en) * 2005-11-17 2007-05-24 Huawei Technologies Co., Ltd. A method for measuring mpls network performance parameter and device and system for transmitting packet
CN101026504B (en) * 2006-02-24 2011-05-11 华为技术有限公司 Network performance measuring method
CN101494585B (en) * 2009-03-11 2011-02-02 杭州华三通信技术有限公司 Method and equipment for implementing reliable transmission of universal route encapsulation tunnel
CN101860523B (en) * 2009-04-08 2015-04-15 华为技术有限公司 Method and device for updating combined bidirectional label exchange path binding relationship
CN101588225B (en) * 2009-06-25 2013-01-09 杭州再灵电子科技有限公司 Quick retransmission technique based on packet switching network
CN104980350B (en) * 2014-04-02 2018-02-16 华为技术有限公司 The method and LSR of Message processing
CN107370674B (en) * 2016-05-13 2020-12-01 华为技术有限公司 A method, device and system for data transmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881908A (en) * 2005-06-13 2006-12-20 华为技术有限公司 Method for measuring MPLS network performance parameter
US20140169183A1 (en) * 2012-12-14 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting twamp
CN103684923A (en) * 2013-12-24 2014-03-26 华为技术有限公司 Method for measuring packet loss and network device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
L. MARTINI, ED. E. ROSEN, ED. CISCO SYSTEMS, INC. N. EL-AAWAR, ED. LEVEL 3 COMMUNICATIONS, LLC: "Encapsulation Methods for Transport of Layer 2 Frames over MPLS Networks; rfc4905.txt", ENCAPSULATION METHODS FOR TRANSPORT OF LAYER 2 FRAMES OVER MPLS NETWORKS; RFC4905.TXT, INTERNET ENGINEERING TASK FORCE, IETF; STANDARD, INTERNET SOCIETY (ISOC) 4, RUE DES FALAISES CH- 1205 GENEVA, SWITZERLAND, 1 June 2007 (2007-06-01), Internet Society (ISOC) 4, rue des Falaises CH- 1205 Geneva, Switzerland, XP015052443 *
S. AMANTE LEVEL 3 B. CARPENTER UNIV. OF AUCKLAND S. JIANG HUAWEI J. RAJAHALME NOKIA SIEMENS NETWORKS: "IPv6 Flow Label Specification; rfc6437.txt", 6437, 1 November 2011 (2011-11-01), XP015081333 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156808A1 (en) * 2021-01-25 2022-07-28 华为技术有限公司 Packet processing method and related apparatus
CN115208964A (en) * 2021-04-09 2022-10-18 华为技术有限公司 Method and communication device for collective communication

Also Published As

Publication number Publication date
CN111371634B (en) 2022-01-18
CN111371634A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
WO2020135087A1 (en) Communication method, apparatus and system
JP7520170B2 (en) Packet processing method and apparatus, device and system
US11979322B2 (en) Method and apparatus for providing service for traffic flow
CN112994961B (en) Transmission quality detection method and device, system, storage medium
US10735323B2 (en) Service traffic allocation method and apparatus
CN112165725B (en) Message processing methods and equipment
CN107078963B (en) Route tracing in virtual extensible local area networks
US20170373966A1 (en) Packet Transmission Method, Node, Path Management Server and Storage Medium
US20220078106A1 (en) Packet Measurement Method, Device, and System
CN116761208A (en) Message processing methods, devices, equipment and storage media
WO2022257854A1 (en) Message publishing method and apparatus, and forwarding path processing method and apparatus
EP3534571A1 (en) Service packet transmission method, and node apparatus
JP2017530645A (en) Packet sampling to measure network performance
WO2022121707A1 (en) Packet transmission method, device, and system
WO2022121638A1 (en) Packet processing method and device
CN113055293A (en) Routing method and device in software defined wide area network and communication system
WO2022007550A1 (en) Load balancing method, apparatus, network device, and system
CN110519103A (en) A kind of Fault Locating Method of heterogeneous network, device and terminal
CN116938666B (en) A data processing method and related equipment
CN114157595A (en) Communication system, data processing method and related equipment
WO2023005927A1 (en) Srv6-based tunnel quality measurement method and related apparatus
CN113132129A (en) Network management method, device and system, and storage medium
CN114697218B (en) Network management methods and equipment
US8396955B2 (en) Systems and methods for discovery of network topology using service OAM
WO2023078144A1 (en) Message processing method, apparatus and system

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: 19904657

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: 19904657

Country of ref document: EP

Kind code of ref document: A1