WO2021073570A1 - Communication method, apparatus and system - Google Patents

Communication method, apparatus and system Download PDF

Info

Publication number
WO2021073570A1
WO2021073570A1 PCT/CN2020/121129 CN2020121129W WO2021073570A1 WO 2021073570 A1 WO2021073570 A1 WO 2021073570A1 CN 2020121129 W CN2020121129 W CN 2020121129W WO 2021073570 A1 WO2021073570 A1 WO 2021073570A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding node
service
service message
message
time
Prior art date
Application number
PCT/CN2020/121129
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 WO2021073570A1 publication Critical patent/WO2021073570A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Definitions

  • This application relates to the field of communication, and in particular to a communication method, device and system.
  • the communication network is composed of forwarding nodes, and power equipment can be connected to the forwarding nodes in the communication network.
  • the first power device and the second power device For the two power devices that need to transmit relay protection services, they are called the first power device and the second power device for the convenience of description, the first forwarding node connected to the first power device and the second forwarding node connected to the second power device
  • a first transmission tunnel and a second transmission tunnel are established between the nodes.
  • the first transmission tunnel takes the first forwarding node as the head node and the second forwarding node as the end node, and is used to transmit the relay protection service sent by the first power device to the second power device.
  • the second transmission tunnel takes the second forwarding node as the head node and the first forwarding node as the end node, and is used to transmit the relay protection service sent by the second power device to the first power device.
  • the stability of the transmission time of the relay protection business in the transmission tunnel has high requirements.
  • the requirement is that the change in the transmission time of the relay protection service in the first transmission tunnel each time the first power device sends to the second power device does not exceed the preset threshold, and the second power device sends the same to the first power device.
  • the relay protection business also has this requirement.
  • the first forwarding node and the second forwarding node receive a clock signal from the same clock source, and the two perform time synchronization based on the clock signal.
  • the first forwarding node When the first forwarding node receives the service message belonging to the relay protection service sent by the first power device, it obtains the timestamp from the local clock and adds it to the service message, and then forwards it to the second transmission tunnel on the first transmission tunnel.
  • the forwarding node sends the service message.
  • the second forwarding node receives the service message, obtains the timestamp from the local clock, and calculates the transmission time of the service message on the first transmission tunnel according to the obtained timestamp and the timestamp included in the service message.
  • the second forwarding node calculates the time difference between the transmission time and the preset time threshold, and then buffers the service message, and when the buffering time of the service message reaches the time difference, sends the service message to the second power device.
  • the transmission time of the service packet received by the second power device on the first transmission tunnel each time is equal to the preset time threshold.
  • the transmission time of the service message on the second transmission tunnel is also stored in the above manner to be equal to the preset time threshold.
  • the first forwarding node and the second forwarding node need to receive the clock signal of the same clock source to achieve time synchronization, but the clock source is vulnerable to attack, resulting in the clock signal sent to the first forwarding node and the clock signal sent to the second forwarding node
  • the difference makes it impossible for the first forwarding node and the second forwarding node to achieve time synchronization.
  • the transmission time of the service packet calculated by the second forwarding node is not accurate, and it is impossible to ensure that the service packet received by the power equipment is in the transmission tunnel each time.
  • the value of the change in the transmission time does not exceed the preset threshold.
  • the embodiments of the present application provide a communication method, device, and system, which can improve the accuracy of calculating the transmission time of a service message, so as to ensure that the change in the transmission time of the service message received by the power equipment on the transmission tunnel does not exceed
  • the threshold is preset, and the technical solution is as follows:
  • the present application provides a communication method.
  • a first forwarding node receives a first service packet, the first forwarding node is a node other than the end node that the transmission tunnel passes through, and the transmission tunnel is A tunnel used to transmit the first service message; the first forwarding node obtains the detention time of the first service message in the first forwarding node; the first forwarding node sends a second service message, and the second service message includes the detention time.
  • the detention time is added to the second service message, so that the end node of the transmission tunnel receives the second service message according to the The detention time added by each forwarding node can accurately obtain the transmission time of the second service message in the transmission tunnel, thereby improving the accuracy of calculating the transmission time of the service message to ensure that the power equipment receives the service message every time The change value of the transmission time on the transmission tunnel does not exceed the preset threshold.
  • the first forwarding node obtains the reception timestamp and the current timestamp of the first service message; according to the reception timestamp and the current timestamp, the first forwarding node obtains the information of the first service message in the first forwarding node. Detention time. Since both the receiving timestamp and the current timestamp are timestamps read from the local clock of the first forwarding node, the residence time can be accurately obtained based on the receiving timestamp and the current timestamp.
  • the first forwarding node when receiving the first service packet, saves the correspondence between the packet identification information of the first service packet and the reception timestamp of the first service packet; The first forwarding node obtains the reception timestamp of the first service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the first service message. In this way, when the first forwarding node determines to send the first service packet, the receiving time stamp of the first service packet can be obtained, so that the residence time of the first service packet can be accurately obtained based on the receiving time stamp.
  • the first forwarding node when the first forwarding node receives the first service packet, it adds the reception timestamp of the first service packet to the first service packet; and extracts the received time stamp from the first service packet. Timestamp. Adding the receiving timestamp to the first service message, compared with the above-mentioned extracting the message identification information from the first service message and then saving the correspondence between the message identification information and the receiving timestamp, the implementation method is simplified, and it can reduce the number of errors. Occupation of storage space.
  • the first service message in the case where the first forwarding node is the non-head node of the transmission tunnel, the first service message includes the total detention time, and the total detention time is the time that the first service message has passed.
  • the present application provides a communication method, in the method: a second forwarding node receives a second service packet, and the second service packet includes each forwarding of the second service packet before the second forwarding node
  • the detention time on the node is the end node of the transmission tunnel
  • the transmission tunnel is a tunnel used to transmit the second service packet
  • each forwarding node before the second forwarding node passes through the transmission tunnel node.
  • the second forwarding node obtains the allowable residence time of the second service packet in the second forwarding node according to the residence time and the time threshold of the second service packet in each forwarding node.
  • the second forwarding node sends the second service message when the detention time of the second service message in the second forwarding node reaches the allowable detention time. Since the second service message includes the residence time of the second service message on each forwarding node before the second forwarding node, for any forwarding node, the forwarding node can accurately obtain the second service message on itself.
  • Detention time so that the second forwarding node can accurately obtain the allowable detention time of the second service message in the second forwarding node according to the detention time of each forwarding node, and the detention time of the second service message in the second forwarding node
  • the second service message is sent when the allowable detention time is reached, so that it can be ensured that the change in the transmission time of the service message received by the power device each time on the transmission tunnel does not exceed the preset threshold.
  • the second forwarding node obtains the detention time of the second service packet in the second forwarding node, and the detention time of the second service packet in the second forwarding node refers to the detention time from the second forwarding node.
  • the jitter buffer is a buffer in the second forwarding node.
  • the second forwarding node obtains the time allowed for the second service packet to be buffered in the jitter buffer according to the residence time of the second service packet in each forwarding node, the residence time in the second forwarding node, and the time threshold. In this way, the second service message is sent when the storage time in the jitter buffer reaches the allowable buffer time, which can ensure that the change in the transmission time of the service message received by the power device each time on the transmission tunnel does not exceed the preset threshold.
  • the second forwarding node obtains the reception timestamp of the second service packet and obtains the first timestamp when the second service packet is buffered in the jitter buffer.
  • the second forwarding node obtains the residence time of the second service packet in the second forwarding node according to the reception timestamp and the first timestamp. Since the reception time stamp and the first time stamp are both time stamps read from the local clock of the second forwarding node, the residence time can be accurately obtained based on the reception time stamp and the first time stamp.
  • the second forwarding node when receiving the second service packet, saves the correspondence between the packet identification information of the second service packet and the receiving timestamp of the second service packet.
  • the second forwarding node obtains the reception timestamp of the second service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the second service message. In this way, the second forwarding node can obtain the reception timestamp of the second service message, so that the residence time of the second service message can be accurately obtained based on the reception timestamp.
  • the second forwarding node when receiving the second service packet, adds the receiving timestamp of the second service packet to the second service packet.
  • the second forwarding node extracts the reception timestamp from the second service message. Adding the receiving timestamp to the second service message, compared with the above-mentioned extracting the message identification information from the second service message and then saving the correspondence between the message identification information and the receiving timestamp, the implementation method is simplified, and it can reduce the number of errors. Occupation of storage space.
  • the present application provides a communication device for executing the first aspect or the method in any one of the possible implementation manners of the first aspect.
  • the device includes a unit for executing the method of the first aspect or any one of the possible implementation manners of the first aspect.
  • the present application provides a communication device for executing the second aspect or the method in any one of the possible implementation manners of the second aspect.
  • the device includes a unit for executing the second aspect or any one of the possible implementation manners of the second aspect.
  • an embodiment of the present application provides a communication device, the device including: a processor, a memory, and a transceiver.
  • the processor, the memory and the transceiver may be connected through a bus system.
  • the memory is configured to store one or more programs
  • the processor is configured to execute one or more programs in the memory to implement the first aspect or the method in any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a communication device, the device including: a processor, a memory, and a transceiver.
  • the processor, the memory and the transceiver may be connected through a bus system.
  • the memory is configured to store one or more programs
  • the processor is configured to execute one or more programs in the memory to implement the second aspect or the method in any possible implementation manner of the second aspect.
  • the present application provides a computer-readable storage medium with a program stored in the computer-readable storage medium.
  • the computer executes the above-mentioned first, second, and first aspects. Any possible implementation manner or method in any possible implementation manner of the second aspect.
  • this application provides a computer program product containing a program, which when it runs on a computer, enables the computer to execute the above-mentioned first aspect, second aspect, any possible implementation manner of the first aspect or the second aspect Any possible implementation method.
  • the present application provides a communication system, the system comprising: the device described in the third aspect and the device described in the fourth aspect, or the device described in the fifth aspect and the device described in the sixth aspect Mentioned device.
  • FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the structure of a service message provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • Figure 4 is a schematic structural diagram of a forwarding node provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another network architecture provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another service message provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • an embodiment of the present application provides a communication architecture.
  • the communication architecture includes multiple forwarding nodes 1 and multiple terminals 2.
  • the communication network includes a plurality of forwarding nodes 1, and each terminal 2 can be connected to the forwarding node 1 of the communication network.
  • the terminal 2 can transmit service messages through the communication network.
  • the two terminals 2 are referred to as a first terminal and a second terminal for convenience of description, and the forwarding node connected to the first terminal is the first forwarding node, and the second terminal is connected to the second terminal.
  • the forwarding node of is the second forwarding node.
  • the first terminal can establish a network connection with the second terminal.
  • the network connection includes the connection between the first terminal and the first forwarding node, the transmission tunnel between the first forwarding node and the second forwarding node, and the second Forward the connection between the node and the second terminal.
  • the transmission tunnel between the first forwarding node and the second forwarding node includes a first transmission tunnel and a second transmission tunnel.
  • the head node of the first transmission tunnel is the first forwarding node, and the end node is the second forwarding node.
  • the first transmission tunnel is used to transmit the service message sent by the first terminal to the second terminal.
  • the first node of the second transmission tunnel is the second forwarding node, and the end node is the first forwarding node.
  • the second transmission tunnel is used to transmit the service message sent by the second terminal to the first terminal.
  • the forwarding nodes passed by the first transmission tunnel and the forwarding nodes passed by the second transmission tunnel may be the same or different.
  • the number of forwarding nodes passed by the transmission tunnel is greater than or equal to two.
  • the number of forwarding nodes is equal to 2
  • it means that the forwarding nodes that the transmission tunnel passes through include the first forwarding node and the second forwarding node.
  • the number of forwarding nodes is greater than 2, it means that in addition to the first forwarding node and the second forwarding node, the forwarding nodes that the transmission tunnel passes through may also include other forwarding nodes, and the other forwarding nodes are intermediate nodes that the transmission tunnel passes through. .
  • the network architecture shown in Figure 1 may be an Internet protocol/multi-protocol label switching (IP/MPLS) network architecture, under which the business report transmitted between the first terminal and the second terminal
  • IP/MPLS Internet protocol/multi-protocol label switching
  • the message can be an MPLS message.
  • the network architecture shown in Figure 1 may be a segment routing based on IPv6 (SRV6) network architecture, in which the service packets transmitted between the first terminal and the second terminal may be SRV6 packets Text.
  • IP/MPLS Internet protocol/multi-protocol label switching
  • the service message may be an MPLS message, including a message header, a payload part, and a frame check sequence (FCS).
  • the payload part is located between the message header and FCS.
  • the message header includes multiple fields.
  • the multiple fields are the source and destination media access control address (destination and source medium access control address, InnerL2), virtual local area network number (virtual local area network TAG, VlanTAG), and Ethernet type identifier (thernet).
  • type E-type
  • internal pseudowire label value inner pseudowire multi-protocol label switching ID, Inner PW
  • control word CW
  • realtime transport protocol realtime transport protocol
  • the length of each field in the MPLS packet is listed.
  • the length of each field is not limited to this example, and may also be other lengths, which will not be listed here.
  • the length of InnerL2 can be 12 bytes
  • the length of VlanTAG can be 4 bytes
  • the length of E-type can be 2 bytes
  • the length of InnerPW can be 4 bytes
  • the length of CW It can be 4 bytes
  • the length of RTP can be 12 bytes.
  • the length of the payload part is not fixed, and the length of the payload part in different service messages can be different or the same.
  • the length of FCS can be 4 bytes.
  • the service message can be an SRV6 message.
  • the message header of the SRV6 message includes the following fields, which are the Next Header and the segment routing header length ( header extended length, HdrExtLen), routing type (RoutingType), number of remaining SRv6 ends (SegmentLeft), last segment entity sequence number (Last Entry), segment routing header identifier (Flags), SRv6 message.
  • the Segment List includes n+1 128-bit IPv6 addresses (128 bits IPv6 address), and n is an integer greater than 0.
  • the forwarding node 2 may be a router or a switch.
  • the second terminal may require that the change value of the first transmission time of the service packet sent by the first terminal each time on the first transmission tunnel is smaller than the change value threshold.
  • the first terminal may also require that the change value of the second transmission time of the service packet sent by the second terminal each time on the second transmission tunnel is smaller than the change value threshold.
  • the first terminal and the second terminal may also require that the first transmission time and the second transmission time are equal or the difference does not exceed the difference threshold.
  • the communication architecture can be applied to the power industry.
  • the first terminal and the second terminal may be power equipment.
  • the service message transmitted between the first terminal and the second terminal may be a service message belonging to a relay protection service.
  • a first terminal sends a service message to a second terminal through a first transmission tunnel, and each time the second terminal receives a service message, it measures the first transmission time of the service message on the first transmission tunnel.
  • the second terminal sends a service message to the first terminal through the second transmission tunnel, and each time the first terminal receives a service message, it measures the second transmission time of the service message on the second transmission tunnel.
  • the change value of the first transmission time measured each time at the second terminal is relatively large, or the change value of the second transmission time measured each time at the first terminal is relatively large, or the difference between the first transmission time and the second transmission time is If the difference between the two exceeds the difference threshold, it may lead to a power outage accident in the power grid.
  • the change value of the first transmission time and the change value of the second transmission time are required to be less than the change value threshold, and the difference between the first transmission time and the second transmission time is equal or the difference does not exceed the difference threshold.
  • the change threshold can be 200 microseconds, 180 microseconds, or 160 microseconds, etc.
  • the difference threshold can be 200 microseconds, 180 microseconds, or 160 microseconds, etc.
  • the forwarding node that the transmission tunnel passes through has a significant impact on the transmission time of the service packet on the transmission tunnel. Big impact.
  • the length of time the business message stays in the forwarding node determines the length of the transmission time of the business message.
  • the forwarding node cannot forward the received business message in time, which causes the detention time of the business message in the forwarding node to become longer, and correspondingly causes the transmission time of the business message to also become longer.
  • the forwarding node can forward the business message in time, so that the residence time of the business message on the forwarding node is shortened, and accordingly the transmission time of the business message is also shortened accordingly.
  • the forwarding nodes are often connected by high-speed cables such as optical fiber.
  • the transmission speed of each service packet on the cable between the two forwarding nodes is the same.
  • the time required is very short. Therefore, for each cable that the transmission tunnel passes through, the sum of the time taken for different service packets to be transmitted on each cable that the transmission tunnel passes through is the same, but different service packets are transmitted on each forwarding node that the transmission tunnel passes through.
  • the sum of residence time may be different. Therefore, the transmission time of the service message in the transmission tunnel is greatly affected by the forwarding node, and the length of the transmission time is mainly affected by the sum of the residence time of the service message on each forwarding node that the transmission tunnel passes through.
  • each forwarding node Since the detention time of the service packet on each forwarding node through the transmission tunnel has a great influence on the transmission time of the service packet on the transmission tunnel, it is necessary for each forwarding node except the end node that the transmission tunnel passes through. Nodes, each forwarding node can add the detention time of the service message to the service message when receiving the service, and then forward the service message with the detention time added.
  • the end node After receiving the service message, the end node obtains the total detention time according to the service message including the detention time of the service message on each forwarding node that has passed, and then according to the time threshold and the detention time Total time, obtain the allowable residence time of the service message in the end node, and send the service message to the terminal when the residence time of the service message in the end node reaches the allowable residence time.
  • the sum of the total detention time and the allowable detention time is equal to the time threshold, so that the terminal measures the transmission time of the service message on the transmission tunnel equal to the time threshold plus the time the service message passes through the transmission tunnel The sum of the time spent on each cable.
  • the second forwarding node For the end node of the first transmission tunnel, that is, each time the second forwarding node receives a service message sent by the first terminal, it processes the received service message in the above manner before sending it to the second terminal, which can ensure Each time the second terminal receives a service message, the measured first transmission time is the same or the change value of the measured first transmission time is smaller than the change value threshold. Similarly, for the end node of the second transmission tunnel, that is, each time the first forwarding node receives a service message sent by the second terminal, it processes the received service message in the above manner before sending it to the first terminal. It can be ensured that the measured second transmission time is the same every time the first terminal receives a service message or the change value of the measured second transmission time is smaller than the change value threshold.
  • the first forwarding node and the second forwarding node mutually agree on a time threshold when establishing the first transmission tunnel and the second transmission tunnel, so that the first forwarding node and the second forwarding node use the same time threshold, so that the first forwarding node and the second forwarding node can be guaranteed
  • the difference between the first transmission time and the second transmission time does not exceed the difference threshold.
  • the length of the cable passed by the first transmission tunnel and the length of the cable passed by the second transmission tunnel may be different at this time. In this way, the time taken for the service message to be transmitted on the cable of the first transmission tunnel is different from the time taken for the service message to be transmitted on the cable of the second transmission tunnel. If the difference between the two times exceeds the difference threshold, it may be necessary to re-establish the first transmission tunnel and the second transmission tunnel between the first forwarding node and the second forwarding node to make the difference between the two times The difference between the two does not exceed the difference threshold.
  • the forwarding node 1 may be a forwarding node in the network architecture shown in Fig. 1, and includes:
  • the processor 21, the memory 22 and the communication interface 24 are connected through a bus 23.
  • the forwarding node 1 includes a plurality of communication interfaces 24, and the forwarding node 1 communicates with other devices through the communication interface 24. For example, the forwarding node 1 may communicate with its neighbor forwarding nodes through the communication interface 24. When the forwarding node 1 is still in communication with the terminal, the forwarding node 1 communicates with the terminal through another communication interface 24.
  • the communication interface 24 includes components such as a transceiver and a processing chip.
  • the transceiver has a function of sending and receiving messages
  • the processing chip has at least one function of processing messages.
  • the communication interface 24 may also include a jitter buffer.
  • the processing chip may be implemented by digital signal processing (digital signal processing, DSP) or field programmable logic gate array (field programmable gate array, FPGA), etc.
  • DSP digital signal processing
  • FPGA field programmable gate array
  • the communication interface 24 connecting the forwarding node 1 and the terminal may be a low-speed interface such as an E1 interface or a C37.94.
  • a forwarding table may be stored in the memory 22, and the forwarding table is used to store the corresponding relationship between the index information and the tunnel information.
  • the index information may be the device identifier of the destination device or the label of the transmission tunnel.
  • the tunnel information includes indication information and the interface identifier of the communication interface, and may also include the transmission tunnel.
  • the instruction information can be a pressure label instruction, an exchange instruction or a pop-up label instruction.
  • the press label indication is used to instruct the processor 21 to add a label to the message
  • the exchange indication is used to instruct the processor 21 to replace the label in the message with the label in the tunnel information
  • the pop label indication is used to instruct the processor 21 to remove the message. Tags in the text.
  • the processor 21 When the processor 21 receives a message through a communication interface 24, the processor 21 queries the corresponding tunnel information from the forwarding table of the memory 22 according to the device identification or label of the destination device included in the message, and the tunnel information includes an indication Information and the interface identifier of the communication receiving port, the message is processed according to the instruction information, and the processed message is sent through the communication interface 24 corresponding to the interface identifier.
  • the forwarding node 1 may be the first forwarding node or the second forwarding node described above, or an intermediate node through which the first transmission tunnel or the second transmission tunnel passes.
  • the first transmission tunnel is used to transmit the service message sent by the first terminal to the second terminal.
  • the first node of the first transmission tunnel is the first forwarding node 11.
  • the first forwarding node 11 communicates with the first terminal through a communication interface 241, and communicates with the downstream of the first forwarding node 11 through another communication interface 242 on the first transmission tunnel.
  • the index information in the record includes the device identifier D2 of the second terminal, and the tunnel information in the record includes information related to the downstream The interface identifier U242, the pressure label indication, and the label 1 of the communication interface 242 of the forwarding node communication.
  • the intermediate node For any intermediate node that the first transmission tunnel passes through, the intermediate node is called the third forwarding node 13.
  • the third forwarding node 13 communicates with the upstream forwarding node of the third forwarding node 13 through a communication interface 243 Connected to the downstream forwarding node of the third forwarding node 13 through another communication interface 244.
  • the index information in the record includes tag 1
  • the tunnel information in the record includes the interface identifier U244, the interface identifier of the communication interface with the downstream forwarding node, Exchange instructions and labels 2.
  • the end node that the first transmission tunnel passes through is the second forwarding node 12.
  • the second forwarding node 12 is connected to the upstream forwarding node of the second forwarding node 12 through a communication interface 245, and through another communication interface 246 Connect with the second terminal.
  • the index information in the record includes tag 2
  • the tunnel information in the record includes the interface identifier of the communication interface 246 connected to the second terminal. U246 and bullet label instructions.
  • the second transmission tunnel is used to transmit the service message sent by the second terminal to the first terminal.
  • the second forwarding node 12 is connected to the second terminal through the communication interface 246, and communicates with the second forwarding node through the communication interface 245 on the second transmission tunnel.
  • the downstream forwarding node of the node 12 is connected, and there is a record including index information and tunnel information in the forwarding table of the second forwarding node 12.
  • the index information in the record includes the device identifier D1 of the first terminal, and the tunnel information in the record It includes the interface identifier U245 of the communication interface 245 connected to the downstream forwarding node, the label 3, and the label indication.
  • the third forwarding node 13 is connected to the upstream forwarding node of the third forwarding node 13 through the communication interface 244, and through communication
  • the interface 243 is connected to the downstream forwarding node of the third forwarding node 13.
  • the index information in the record is label 3, and the tunnel information in the record includes the interface identifier of the communication interface connected to the downstream forwarding node.
  • U243 exchange instructions and labels 4.
  • the end node that the second transmission tunnel passes through is the first forwarding node 11.
  • the second forwarding node 12 is connected to the upstream forwarding node of the first forwarding node 11 through the communication interface 242, and is connected to the first terminal through the communication interface 241 Connected.
  • the index information in the record includes tag 4, and the tunnel information in the record includes the interface identifier of the communication interface 241 connected to the first terminal. U241 and bullet label instructions.
  • the memory 22 may also store at least one application code
  • the processor 21 in the forwarding node 1 and/or the processing chip in the communication interface 24 may call and run the application code from the memory 22 to achieve the following
  • the function includes adding the detention time of the service message in the forwarding node 1 to the service message received by the forwarding node 1 or obtaining the allowable detention time of the service message on the forwarding node 1 and so on.
  • the specific process for the forwarding node 1 to implement these functions will be described in detail in the subsequent embodiment shown in FIG. 6, and will not be described in detail here.
  • the aforementioned processor 21 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (ASIC), Or one or more integrated circuits used to control the execution of the program of this application.
  • the processor may also refer to one or more devices, circuits, and/or processing cores for processing data (for example, computer program instructions).
  • the above-mentioned bus 23 may be a channel for transferring information between the above-mentioned components.
  • the aforementioned memory 22 may be random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, disk storage media or other magnetic storage devices, or can be used to carry or store instructions or data.
  • RAM random access memory
  • the desired program code in the structural form and any other medium that can be accessed by the computer, but not limited to this.
  • the memory can exist independently and is connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • an embodiment of the present application provides a communication method, which can be applied to the network architecture shown in FIG. 1 or FIG. 5.
  • a process in which the first terminal sends a service message to the second terminal over the first transmission tunnel is taken as an example for description, and the method includes:
  • Step 301 The first forwarding node receives the first service packet sent by the first terminal, and the first forwarding node is the first node through which the first transmission tunnel passes.
  • a network connection is established between the first terminal and the second terminal, and the network connection includes the connection between the first terminal and the first forwarding node, and the connection between the first forwarding node and the second forwarding node.
  • the first terminal may send the first service message to the second terminal on the network connection. Since the first forwarding node is connected to the first terminal through a communication interface, the communication interface of the first forwarding node receives the first service packet. For ease of description, the communication interface is called the first communication interface.
  • the first service message includes a destination device address field, and the destination device address field carries the device identifier of the second terminal.
  • the destination device address field may be located in the Inner L2 field of the MPLS message.
  • the destination device address field may be the Segment list field of the SRV6 message, and the device identifier of the second terminal may be the last IPV6 address in the Segment list field.
  • the first forwarding node when receiving the first service packet, acquires the reception timestamp of the first service packet.
  • the receiving timestamp is referred to as the first receiving timestamp
  • the first receiving timestamp is added to the first service message.
  • the message identification information of the first service message is obtained from the first service message, and the message identification information and the first reception timestamp are correspondingly stored in the correspondence relationship between the message identification information and the reception timestamp.
  • the message identification information includes the source device identification, source port number, destination device identification, destination port number, and message sequence number of the first service message of the first service message.
  • the first forwarding node includes a local clock, and when receiving the first service message of the first terminal, the first forwarding node obtains the first reception timestamp from the local clock, and adds the first time stamp to the first service message. Receive timestamp.
  • the first receiving timestamp obtained from the local clock may be a numerical value.
  • the local clock can be a counter used for timekeeping
  • the time stamp can be a numerical value
  • the value counted by the counter is a time stamp. For example, suppose the counter counts once every millisecond, and the current counter count value is 5, which means that the current time stamp is the 5th millisecond. or,
  • the first receiving timestamp obtained from the local clock may also be data in a time format.
  • the first receiving timestamp obtained from the local clock is 2019-8-15-11-2-15-35, and the first receiving timestamp is data in time format.
  • the first communication interface may include components such as a transceiver and a processing chip, and the foregoing operations such as obtaining the first receiving timestamp may be performed by the processing chip. That is, when the transceiver in the first communication interface receives the first service message sent by the first terminal, the processing chip obtains the first reception timestamp from the local clock of the first forwarding node, and adds the first reception timestamp to In the first service message; or, obtain the message identification information of the first service message from the first business message, and store the message identification information and the first reception timestamp correspondingly in the message identification information and the reception time Correspondence between stamps.
  • the processing chip obtains the first reception timestamp from the local clock of the first forwarding node, and adds the first reception timestamp to In the first service message; or, obtain the message identification information of the first service message from the first business message, and store the message identification information and the first reception timestamp correspondingly in the message identification information and the reception time Correspondence between stamps.
  • the storage resources occupied by the first forwarding node are reduced.
  • the first reception timestamp may be added to the first field of the first service message.
  • the first field may be a newly added field in the first service message or an existing field in the header of the first service message.
  • the first service message may be an MPLS message, and when the first reception timestamp is acquired, the first field including the first reception timestamp may be added to the header of the first service message.
  • the communication method can be applied to the IP/MPLS network architecture.
  • the first terminal and the second terminal may be power equipment, and the first service message may be a message belonging to a relay protection service.
  • the first field including the first receiving timestamp t1 is added to the header of the first service message.
  • the first field may be located between InnerPW and CW.
  • the length of the first field may be x bytes, and the value of x may be 4, 5, 6, 7, or 8 values.
  • the first field may be a part of the OTLV of the first service message.
  • the first time stamp is obtained, the content of the first field of the first service message is set as the first time stamp.
  • the processing chip in the first communication interface may send the first service packet to the processor of the first forwarding node.
  • the processing chip of the first communication interface may also add a 1588 indication field and a 1588 indication field to the header of the first service message. 1588 mode field. Then send the first service message to the processor of the first forwarding node.
  • the first transfer node can use the technology defined in the transparent clock (TC) mode of the 1588 technology to obtain the detention time of the first service packet on the first forwarding node, so the 1588 instruction added by the processing chip
  • the field includes the 1588 indication
  • the added 1588 mode field includes the TC mode to trigger the processor of the first forwarding node to use the technology defined in the TC mode of the 1588 technology to perform operations.
  • the local clock of the first forwarding node is a counter
  • the first receiving timestamp t1 is a value.
  • the first forwarding node may also use other methods to obtain the detention time of the first service packet in the first forwarding node.
  • the processing chip of the first communication interface may not be used for the first service packet.
  • the 1588 indication field and 1588 mode field are added to the header of the message.
  • the first forwarding node saves a forwarding table.
  • the processor of the first forwarding node After receiving the first service message, the processor of the first forwarding node, according to the device identification of the second terminal included in the first service message, assumes that the second terminal’s The device identification is D2, and the interface identification U242, label 1, and label pressing indication corresponding to the device identification ID2 of the second terminal are queried from the forwarding table stored by the first forwarding node.
  • the processor of the first forwarding node adds label 1 to the first message, and sends the first service message to the communication interface corresponding to the interface identifier U242.
  • the communication interface corresponding to the interface identifier U242 is referred to as the second communication interface.
  • the processor of the first forwarding node sends the first service packet to the second communication interface in the 1588 Under the trigger of the 1588 indication in the indication field and the TC mode in the 1588 mode field, the first reception timestamp t1 is extracted from the first field of the first service message.
  • the first reception timestamp t1 is a value, and the value is calculated as 0
  • the difference between t1 and t1 is 0-t1, the difference is a negative value, and the content of the second field of the first service message is set to the difference 0-t1.
  • the processor of the first forwarding node may extend the length of the first field in the first service packet to obtain a second field of length y.
  • the second field of the first service message is a part of the OLTV other than the first field
  • the processor of the first forwarding node converts the content of the second field Set the difference to 0-t1.
  • the processor of the first forwarding node deletes the 1588 indication field and the 1588 mode field from the first service packet before sending the first service packet to the second communication interface.
  • the processor of the first forwarding node may also send the first service packet to the second communication interface before sending the first service packet to the second communication interface.
  • a field is added to the header of the message, and the field is label switch path (LSP).
  • Step 302 The first forwarding node obtains the residence time of the first service packet in the first forwarding node, and adds the residence time to the first service packet to obtain the second service packet.
  • the second communication interface includes a processing chip and a transceiver, that is, the processing chip can perform the operation of this step, and the execution process is as follows:
  • the first receiving timestamp and the current timestamp of the first service message can be obtained.
  • the current timestamp is called the second timestamp
  • the first receiving timestamp and the second timestamp are obtained according to the first receiving timestamp and the second timestamp.
  • the detention time of a service message in the first forwarding node is added to the first service message to obtain the second service message.
  • the second time stamp can be read from the local clock. Since the first field of the first service message includes the first reception timestamp, the first reception timestamp can be directly extracted from the first field of the first service message. Or, extract the message identification information of the first service message from the first service message, and obtain the first reception timestamp from the correspondence between the message identification information and the reception timestamp.
  • both the first receiving timestamp and the second timestamp are obtained from the local clock of the first forwarding node, the accuracy of the residence time at the first forwarding node obtained based on the first receiving timestamp and the second timestamp Very high.
  • the first receiving timestamp is obtained from the correspondence between the message identification information and the receiving timestamp, it may also be deleted from the correspondence between the message identification information and the receiving timestamp after the first receiving timestamp is obtained.
  • the record includes the message identification information of the first service message and the first reception timestamp.
  • the residence time can be added to the second field of the first service message.
  • the second field can be a field obtained by extending the first field of the header of the first service message, or the second field
  • the field may be an existing field in the header of the first service message.
  • the length of the first field in the first service packet may be expanded to obtain In the second field, replace the content in the second field with the residence time.
  • the processing chip of the second communication interface of the second forwarding node reads the current timestamp t2 from the local clock, that is, the second timestamp is t2, and extracts the first field from the first field of the first service packet.
  • Receive timestamp t1 obtain the residence time t2-t1 of the first service packet in the first forwarding node according to the first received timestamp t1 and the second timestamp t2, and extend the length of the first field in the first service packet Obtain the second field, and replace the content in the second field with the residence time t2-t1.
  • the second field may be a part of the OTLV field of the first service message except the first field.
  • the OTLV field of the first service packet except the first field is used as the second field, and the content of the second field Set the residence time t2-t1.
  • the first forwarding node adopts the TC mode of 1588 technology
  • the first field in the first service packet received by the processing chip of the second communication interface has been extended to the second field
  • the content of the field is a negative value 0-t1.
  • the second time stamp t2 obtained from the local clock is the value t2 counted by the local clock.
  • the negative value 0-t1 can be extracted from the second field of the first service message, and the negative value 0-t1 Accumulate with the value t2 to obtain an accumulated value t2-t1, use the accumulated value t2-t1 as the residence time of the first service packet in the first forwarding node, and replace the content in the second field with the residence time t2-t1.
  • Step 303 The first forwarding node sends a second service message with the retention time added.
  • the transceiver in the second communication interface of the first forwarding node sends the second service message with the residence time added.
  • the intermediate node that the first transmission tunnel passes through receives and forwards the second service packet.
  • the intermediate node is referred to as the third forwarding node.
  • the third forwarding node can perform the following operations.
  • Step 304 The third forwarding node receives the second service message, where the second service message includes the residence time of the second service message in each forwarding node that has passed.
  • the second field of the second service message may include the detention time of the second service message in each forwarding node that has passed, or the second field of the second service message may include the total detention time ,
  • the total detention time is the sum of the detention time of the second service message in each forwarding node that has passed.
  • the third forwarding node receives the second service packet through a communication interface.
  • the communication interface is referred to as the third communication interface.
  • the third forwarding node when it receives the second service packet, it can obtain the receiving timestamp of the second service packet from the local clock.
  • the received timestamp is called the second receiving timestamp.
  • the message identification information of the second service message is obtained from the second service message, and the message identification information and the first reception timestamp are correspondingly stored in the correspondence between the message identification information and the reception timestamp.
  • the third communication interface includes components such as a processing chip, and the processing chip can perform operations such as obtaining the second receiving timestamp.
  • the second reception timestamp may be data in numerical form or may be data in time format.
  • a second receiving timestamp may be added to the first field of the second service message.
  • the first field may be a newly added field in the second service message or an existing field in the message header of the second service message.
  • the second service message may be an MPLS message, and when the second reception timestamp is obtained, the first field including the second reception timestamp may be added to the second service message.
  • the processing chip in the third communication interface obtains the second reception timestamp t3 from the local clock of the third forwarding node, and The first field including the second receiving timestamp t3 is added to the second service message.
  • the first field may be located between the payload part and the FCS.
  • the second service message may be an SRV6 message.
  • the third communication interface of the third forwarding node obtains the second reception timestamp t3, it transfers the first OTLV of the second service message to The content of the field is replaced with the second receiving timestamp t3.
  • the processing chip in the third communication interface After the processing chip in the third communication interface adds the second reception timestamp to the second service packet, it may send the second service packet to the processor of the third forwarding node.
  • the processing chip of the third communication interface may also add a 1588 indication field and a 1588 indication field to the header of the second service packet. 1588 mode field.
  • the third forwarding node stores a forwarding table
  • the processor of the third forwarding node queries the forwarding table stored by the third forwarding node according to the label 1 included in the second service message to find out the forwarding table corresponding to label 1.
  • the communication interface corresponding to the interface identifier U244 is referred to as the fourth communication interface.
  • the processor of the third forwarding node replaces the label 1 in the second service packet with the label 2, and identifies the fourth communication corresponding to U244 to the interface.
  • the interface sends the second service packet.
  • the processor of the third forwarding node sends the second service packet to the fourth communication interface before sending the second service packet to the fourth communication interface.
  • the second receiving timestamp t3 is extracted from the first field of the second service message and the total detention time is extracted from the second field, assuming that The total detention time is TS1.
  • the total detention time TS1 and the second receiving time stamp t3 are both in numerical form, that is to say, the total detention time TS1 and the second receiving time stamp t3 are two numerical values.
  • the difference is equal to TS1-t3, replace the content in the second field in the second service packet with the difference TS1-t3, and then delete the second service packet
  • the 1588 indication field and the 1588 mode field are sent, and then the second service packet is sent to the fourth communication interface.
  • the second service message is an MPLS message
  • the processor of the third forwarding node extracts the second reception timestamp t3 from the first field of the second service message, it may also delete the second service message from the second service message.
  • One field is an MPLS message
  • Step 305 The third forwarding node obtains the residence time of the second service packet in the third forwarding node, and adds the residence time to the second service packet.
  • the fourth communication interface of the third forwarding node executes the operation of this step.
  • the fourth communication interface includes components such as a processing chip, and the processing chip can perform the operation of this step.
  • the execution process is as follows:
  • the second reception timestamp and the current timestamp of the second service message can be obtained.
  • the current timestamp acquired at this time is called the third timestamp.
  • the second reception timestamp and the third timestamp acquire the residence time of the second service message in the third forwarding node, and add the residence time to the second service message.
  • the third time stamp can be read from the local clock of the third forwarding node. Since the first field of the second service message includes the second reception timestamp, the second reception timestamp is directly extracted from the first field of the second service message. Alternatively, the message identification information of the second service message is extracted from the second service message, and the second reception timestamp is obtained from the correspondence between the message identification information and the reception timestamp.
  • the detention time can be added to the second service message in the following two ways.
  • the two methods are:
  • the second field of the second service packet includes the residence time of the second service packet on each forwarding node that it passes. In this step, the residence time of the second service packet in the third forwarding node is directly Is added to the second field of the second service message.
  • the second field of the second service message includes the total detention time.
  • the total detention time is extracted from the second field of the second service message, and the total detention time is compared with that of the second service message.
  • the detention time detained in the third forwarding node is accumulated to obtain an accumulated value, and the total detention time included in the second field of the second service message is replaced with the accumulated value.
  • the second field of the second service message includes the total detention time.
  • the amount of data included in the second field is smaller, so that the length of the second field can be reduced to reduce Occupation of network resources.
  • the message including the second service message may be deleted from the correspondence between the message identification information and the reception timestamp.
  • Document identification information and a record of the second receiving timestamp may be obtained from the correspondence between the message identification information and the reception timestamp.
  • the second service packet is an MPLS packet
  • the first field may be deleted, so that the second field can be reduced.
  • the size of business packets to reduce the occupation of network resources.
  • the processor of the third forwarding node sends the second service packet to the fourth communication interface before sending the second service packet to the fourth communication interface.
  • the content included in the second field of the message is replaced with the difference TS1-t3.
  • the third time stamp t4 obtained is a value
  • the difference TS1 is read from the second field of the second service message.
  • -t3 accumulate the difference TS1-t3 and the value t4 to obtain the accumulated value TS1+t4-t3, and replace the content in the second field of the second service packet with the accumulated value.
  • Step 306 The third forwarding node sends the second service message with the residence time added.
  • the fourth communication interface of the third forwarding node sends the second service message with the detention time added.
  • each of the other intermediate nodes passing through the first transmission tunnel After receiving the second service packet, each of the other intermediate nodes passing through the first transmission tunnel performs the same operation as the third forwarding node to send the second service packet, and the second service packet will be sent to the first transmission tunnel.
  • the end node of a transmission tunnel is sent to the second transmission node.
  • Step 307 The second forwarding node receives the second service packet, where the second service packet includes the residence time of the second service packet in each forwarding node other than the second forwarding node that the first transmission tunnel passes through.
  • the second field of the second service message may include the detention time of the second service message in the other forwarding nodes, or the second field of the second service message may include the total detention time,
  • the total detention time is the sum of the detention time of the second service message in the other forwarding nodes.
  • the second forwarding node receives the second service packet through a communication interface.
  • the communication interface is called the fifth communication interface.
  • the second forwarding node obtains the reception timestamp of the second service message when receiving the second service message.
  • the received timestamp acquired at this time is called the third reception timestamp
  • the third reception timestamp is added to In the second business message.
  • the message identification information of the second service message is obtained from the second service message, and the message identification information and the third reception timestamp are correspondingly stored in the correspondence relationship between the message identification identification and the reception timestamp.
  • the fifth communication interface includes components such as a processing chip, and the processing chip can perform operations such as obtaining the third receiving timestamp.
  • the execution process is as follows:
  • the current timestamp is obtained from the local clock included in the second forwarding node as the third reception timestamp, and the third reception timestamp is added to the second service message, or the second service message is
  • the message identification information of the message and the third receiving timestamp are correspondingly stored in the correspondence between the message identification identifier and the receiving timestamp.
  • the local clock of the second forwarding node may be a counter for timing, so the third receiving timestamp may be a numerical value.
  • the third receiving timestamp may also be data in a time format.
  • a third receiving timestamp may be added to the first field of the second service message.
  • the first field may be a newly added field in the second service message or an existing field in the message header of the second service message.
  • the second service message may be an MPLS message.
  • the current third reception timestamp t5 is obtained when the second service message is received, and added to the header of the second service message
  • the first field may be located between the payload part and the FCS.
  • the second service message may be an SRV6 message.
  • the third reception timestamp t5 is acquired when the second service message is received, and the content included in the first field in the OTLV of the second service message is replaced with the third reception timestamp t5.
  • the processing chip of the fifth communication interface After the processing chip of the fifth communication interface adds the third reception timestamp to the second service message or saves the correspondence between the message identification information of the second service message and the third reception timestamp, it can send the message to the second forwarding node
  • the processor sends the second service message.
  • the processing chip of the fifth communication interface also deletes the second service packet in the second service packet before sending the second service packet to the processor of the second forwarding node LSP field.
  • the processing chip of the fifth communication interface may also add a 1588 indication field and a 1588 indication field to the header of the second service packet. 1588 mode field.
  • the second forwarding node stores a forwarding table
  • the processor of the second forwarding node queries the forwarding table stored by the second forwarding node according to the device identifier D2 of the second terminal included in the second service packet.
  • the interface identifier U246 corresponding to the device identifier ID2 of the second terminal.
  • the communication interface corresponding to the interface identifier U246 is referred to as the sixth communication interface
  • the processor of the second forwarding node sends the second service packet to the sixth communication interface corresponding to the interface identifier U246.
  • the processor of the second forwarding node sends the second service packet to the sixth communication interface in the 1588
  • the third time stamp t5 is extracted from the first field of the second service message and the total detention time is extracted from the second field, assuming the detention The total time is TS2.
  • the total detention time TS2 and the third receiving time stamp t5 are both in numerical form, that is to say, the total detention time TS2 and the third receiving time stamp t5 are two numerical values.
  • the difference is equal to TS2-t5
  • the difference is equal to TS2-t5
  • the processor of the second forwarding node extracts the third reception timestamp t5 from the first field of the service message, it may also delete the first service message from the second service message. Field.
  • Step 308 The second forwarding node buffers the second service message in the jitter buffer, and obtains the second service message in the jitter buffer according to the detention time and time threshold of the second service message included in the other forwarding nodes. The allowable residence time in the device.
  • the sixth communication interface of the second forwarding node includes a processing chip, a transceiver, a jitter buffer, and so on.
  • the processing chip of the sixth communication interface receives the service message
  • the processing chip of the sixth communication interface buffers the second service message in the jitter buffer.
  • the operation of this step can be executed by the processing chip in the sixth communication interface.
  • the execution process is as follows:
  • This step can be implemented by the following operations from 3081 to 3082.
  • the operations from 3081 to 3082 are as follows:
  • the third receiving timestamp and the current timestamp of the received second service message are acquired.
  • the current timestamp acquired at this time is referred to as the first timestamp.
  • the third receiving timestamp and the first time Stamp to obtain the residence time of the second service message in the second forwarding node.
  • the first time stamp can be read from the local clock of the second forwarding node. Since the first field of the second service message includes the third reception timestamp, the third reception timestamp can be directly extracted from the first field of the second service message. Or, obtain the message identification information of the second service message from the second service message, and obtain the third reception timestamp from the correspondence between the message identification information and the reception timestamp.
  • the third receiving timestamp is obtained from the correspondence between the message identification information and the receiving timestamp, and the message identifier including the second service message is also deleted from the correspondence between the message identification information and the receiving timestamp Record of information and third reception timestamp.
  • the first field may be deleted from the second service packet.
  • the second field of the second service message includes the retention time of the second service message in other forwarding nodes
  • extract all the retention time from the second field of the second service message Accumulate all the extracted detention time and the detention time of the second service message in the second forwarding node to obtain the accumulated value, calculate the difference between the time threshold and the accumulated value, and determine the difference as allowing the second The buffering time of service packets in the jitter buffer.
  • the total detention time is included in the second field of the second service message
  • the total detention time is extracted from the second field of the second service message
  • the total detention time and the second service report are The retention time of the message in the second forwarding node is accumulated to obtain the accumulated value, and the difference between the time threshold and the accumulated value is calculated, and the difference is determined as the time allowed for the second service message to be buffered in the jitter buffer .
  • the second service message after extracting all the detention time or total detention time from the second field in the second service message, the second service message can also be deleted from the second service message. Two fields.
  • the processor of the second forwarding node sends the second service packet to the sixth communication interface before sending the second service packet to the sixth communication interface.
  • the content of the second field of the text is replaced with the difference TS2-t5.
  • the first time stamp obtained from the local clock is a numerical value. Assuming that the first time stamp is t6, the difference TS2-t5 is read from the second field of the second service packet, and the difference is TS2-t5 is accumulated with the value t6, and the accumulated value is TS2+t6-t5.
  • Step 309 When the buffering time of the second service packet in the jitter buffer reaches the allowable buffering time, the second forwarding node deletes the detention time in the second service packet to obtain the first service packet, and sends the first service packet Text.
  • the processing chip in the sixth communication interface of the second forwarding node detects that the buffering time of the second service packet in the jitter buffer reaches the allowable buffer time, it sends the data to the receiver through the transceiver in the sixth communication interface.
  • the second terminal sends the second service message.
  • the second terminal may also send a service message to the first terminal.
  • the transmission process of the service message sent by the second terminal on the second transmission tunnel is the same as the transmission process of the service message sent by the first terminal on the first transmission tunnel. , I won’t explain it in detail here.
  • the first forwarding node located at the head node of the first transmission tunnel obtains the first reception timestamp for receiving the first service packet when receiving the first service packet, and the When arriving at the second communication interface of the first forwarding node, the current second timestamp is obtained, and the residence time of the first service packet in the first forwarding node is obtained according to the first receiving timestamp and the second timestamp. Since both the first receiving timestamp and the second timestamp are obtained based on the local clock of the first forwarding node and will not be affected by the attack, the detention time can be accurately obtained, which may add the detention time to the first A second service message is obtained from a service message, and then the second service message is sent.
  • the third forwarding node located at the intermediate node of the first transmission tunnel obtains the second receiving timestamp of receiving the second service packet when receiving the second packet service, and the second receiving timestamp when the second service packet reaches the third forwarding node
  • the current third time stamp is acquired, and the residence time of the second service packet in the third forwarding node is acquired according to the second receiving time stamp and the third time stamp. Since the second receiving timestamp and the third timestamp are both obtained based on the local clock of the third forwarding node, and will not be affected by the attack, the detention time can be accurately obtained, which may add the detention time to In the second service message, the second service message is sent again.
  • the second forwarding node located at the end node of the first transmission tunnel receives the second service packet
  • the second service packet includes the detention time of the second service packet on each forwarding node that has passed, thereby Based on the service message, the total detention time can be obtained, and the total detention time is equal to the sum of the detention time of the second service message on each forwarding node that has passed, and the second service is obtained according to the total detention time and the time threshold.
  • the allowable detention time of the message on the second forwarding node, and the second service message is sent to the second terminal when the detention time of the second service message on the second forwarding node reaches the allowable detention time.
  • the time threshold is equal to the sum of the total detention time and the allowable detention time, so that after the second terminal receives the second service packet, the measured first transmission time of the second service packet on the first transmission tunnel It is equal to the time threshold plus the transmission time of the second service packet on the cable passing through the first transmission tunnel. Since the transmission time of different service packets on the cable passing through the first transmission tunnel is basically unchanged, when the second terminal receives different service packets, it is ensured that the different service packets measured by the second terminal are in the first transmission tunnel. The change value of the first transmission time above does not exceed the change value threshold.
  • the time threshold is agreed upon by the first forwarding node and the second forwarding node, and the first forwarding node and the second forwarding node use the same time threshold, it is ensured that the service packet measured by the second terminal is on the first transmission tunnel.
  • the difference between a transmission time and the second transmission time of the service packet measured by the first terminal on the second transmission tunnel does not exceed the difference threshold.
  • an embodiment of the present application provides a communication device 400.
  • the device 400 may be deployed in the foregoing first forwarding node and includes:
  • the receiving unit 401 is configured to receive a first service packet, the device 400 is a node other than the end node that the transmission tunnel passes through, and the transmission tunnel is a tunnel for transmitting the first service packet;
  • the processing unit 402 is configured to obtain the residence time of the first service packet in the first forwarding node
  • the sending unit 403 is configured to send a second service message, where the second service message includes the detention time.
  • processing unit 402 is configured to:
  • step 302 for the detailed implementation process of the processing unit 402 acquiring the receiving time stamp and the current time stamp, reference may be made to related content in step 302 and step 305 in the embodiment shown in FIG. 6.
  • the processing unit 402 is configured to add the receiving time stamp of the first service packet to the first service packet when the receiving unit 401 receives the first service packet; and extract the receiving time from the first service packet stamp.
  • the processing unit is configured to store the correspondence between the message identification information of the first service message and the reception timestamp of the first service message when the receiving unit 401 receives the first service message;
  • the message identification information of a service message obtains the reception timestamp of the first service message from the correspondence between the message identification information and the reception timestamp.
  • the first service message includes the total detention time, and the total detention time is the detention of the first service message in each forwarding node that has passed.
  • the processing unit 402 is also used for:
  • the total detention time included in the first service message and the detention time are accumulated to obtain an accumulated value, and the total detention time included in the first service message is replaced with the accumulated value to obtain the second service message.
  • the receiving unit receives the first service packet
  • the processing unit obtains the residence time of the first service packet in the first forwarding node
  • the sending unit sends the second service packet
  • the second service packet includes the Detention time. Since the processing unit can accurately obtain the detention time, add the detention time to the second service message, so that the end node of the transmission tunnel receives the second service message according to the information in the second service message.
  • the detention time added by the forwarding node can accurately obtain the transmission time of the business message in the transmission tunnel, thereby improving the accuracy of calculating the transmission time of the business message, so as to ensure that the business message received by the power equipment every time is on the transmission tunnel
  • the change value of the transmission time does not exceed the preset threshold.
  • an embodiment of the present application provides a communication device 500, where the device 500 is deployed in the foregoing second forwarding node and includes:
  • the receiving unit 501 is configured to receive a second service packet, the second service packet including the residence time of the second service packet on each forwarding node before the device 500, and the device 500 is the end node of the transmission tunnel,
  • the transmission tunnel is a tunnel for transmitting the second service packet, and each forwarding node before the apparatus 500 is a node through which the transmission tunnel passes;
  • the processing unit 502 is configured to obtain the allowable residence time of the second service packet in the device 500 according to the residence time and the time threshold of the second service packet in each forwarding node;
  • the sending unit 503 is configured to send the second service message when the detention time of the second service message in the device 500 reaches the allowable detention time.
  • the detailed implementation process for the processing unit 502 to obtain the allowable residence time may refer to related content in step 308 of the embodiment shown in FIG. 6.
  • processing unit 502 is configured to:
  • the detention time of the second service message in the apparatus 500 means that the second service message is received from the receiving unit 501 until the second service message is received.
  • the buffering time of the second service packet allowed in the jitter buffer is acquired.
  • processing unit 502 is configured to:
  • the residence time of the second service message in the device 500 is obtained.
  • the processing unit 502 is configured to add the receiving timestamp of the second service packet to the second service packet when the receiving unit 501 receives the second service packet; extract the received time stamp from the second service packet Timestamp.
  • the processing unit 502 is configured to store the correspondence between the message identification information of the second service message and the reception timestamp of the second service message when the receiving unit 501 receives the second service message;
  • the message identification information of the second service message obtains the reception timestamp of the second service message from the correspondence between the message identification information and the reception timestamp.
  • the receiving unit receives the second service message, the second service message includes the residence time of the second service message on each forwarding node before the device, and the processing unit according to the second service message in each forwarding node
  • the detention time and the time threshold in the forwarding node are used to obtain the allowable detention time of the second service packet in the second forwarding node.
  • the sending unit sends the second service message when the detention time of the second service message in the device reaches the allowable detention time. Since the second service message includes the detention time on each forwarding node, for any forwarding node, the forwarding node can accurately obtain the detention time of the second service message on itself, so that the processing unit can be based on the detention time of each forwarding node.
  • Time can accurately obtain the allowable detention time of the second service message in the device, and send the second service message when the detention time of the second service message in the device reaches the allowable detention time, so as to ensure that every power equipment
  • the change value of the transmission time of the received service packet on the transmission tunnel does not exceed the preset threshold.
  • the communication system 600 includes a first forwarding node 601 and a second forwarding node 601.
  • the first forwarding node 601 may be the device described in FIG.
  • the second forwarding node may be the device described in FIG. 15 above.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.

Abstract

Embodiments of the present application relate to the field of communications. Disclosed are a communication method, apparatus and method. The method comprises: a first forwarding node receives a first service message, the first forwarding node being another node, other than an end node, through which a transmission tunnel passes, and the transmission tunnel being a tunnel for transmitting the first service message; the first forwarding node obtains a residence time of the first service message in the first forwarding node; the first forwarding node sends a second service message, which comprises the residence time. By using the solution of the present application, the accuracy of calculation on service message transmission time is improved, so that it is ensured that a change value in transmission time, over a transmission tunnel, of service messages received by a power device each time does not exceed a preset threshold.

Description

通信方法、装置及系统Communication method, device and system
本申请要求于2019年10月18日提交中国专利局、申请号为201910996343.0、名称为“通信方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with application number 201910996343.0 and titled "Communication Method, Device and System" on October 18, 2019, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及通信领域,特别涉及一种通信方法、装置及系统。This application relates to the field of communication, and in particular to a communication method, device and system.
背景技术Background technique
在电力行业中,电力设备之间的继电保护业务可以通过通信网络来传输。通信网络由转发节点组成,电力设备可以连接到通信网络中的转发节点上。对于需要传输继电保护业务的两个电力设备,为了便于说明称为第一电力设备和第二电力设备,与第一电力设备相连的第一转发节点和与第二电力设备相连的第二转发节点之间建立有第一传输隧道和第二传输隧道。第一传输隧道以第一转发节点为首节点且以第二转发节点为末节点,用于传输第一电力设备发送给第二电力设备的继电保护业务。第二传输隧道以第二转发节点为首节点且以第一转发节点为末节点,用于传输第二电力设备发送给第一电力设备的继电保护业务。In the power industry, the relay protection business between power equipment can be transmitted through the communication network. The communication network is composed of forwarding nodes, and power equipment can be connected to the forwarding nodes in the communication network. For the two power devices that need to transmit relay protection services, they are called the first power device and the second power device for the convenience of description, the first forwarding node connected to the first power device and the second forwarding node connected to the second power device A first transmission tunnel and a second transmission tunnel are established between the nodes. The first transmission tunnel takes the first forwarding node as the head node and the second forwarding node as the end node, and is used to transmit the relay protection service sent by the first power device to the second power device. The second transmission tunnel takes the second forwarding node as the head node and the first forwarding node as the end node, and is used to transmit the relay protection service sent by the second power device to the first power device.
在电力行业中,继电保护业务在传输隧道中的传输时间的稳定性有很高的要求。该要求为:第一电力设备每次发送给第二电力设备的继电保护业务在第一传输隧道中的传输时间的变化值不超过预设阈值,同样第二电力设备发送给第一电力设备的继电保护业务也有此要求。为了满足该要求,第一转发节点和第二转发节点接收来自同一时钟源的时钟信号,二者基于该时钟信号进行时间同步。第一转发节点当接收到第一电力设备发送的属于继电保护业务的业务报文时,从本地时钟中获取时间戳并添加到该业务报文中,然后在第一传输隧道上向第二转发节点发送该业务报文。第二转发节点接收该业务报文,从本地时钟中获取时间戳,根据获取的时间戳和该业务报文包括的时间戳计算该业务报文在第一传输隧道上的传输时间。第二转发节点计算该传输时间与预设时间阈值之间的时间差,然后缓存该业务报文且在该业务报文缓存的时间达到该时间差时,向第二电力设备发送该业务报文。如此保证第二电力设备每次接收的业务报文在第一传输隧道上的传输时间等于预设时间阈值。同样,对于第二电力设备发送给第一电力设备的业务报文,也按上述方式保存该业务报文在第二传输隧道上的传输时间等于预设时间阈值。In the power industry, the stability of the transmission time of the relay protection business in the transmission tunnel has high requirements. The requirement is that the change in the transmission time of the relay protection service in the first transmission tunnel each time the first power device sends to the second power device does not exceed the preset threshold, and the second power device sends the same to the first power device. The relay protection business also has this requirement. In order to meet this requirement, the first forwarding node and the second forwarding node receive a clock signal from the same clock source, and the two perform time synchronization based on the clock signal. When the first forwarding node receives the service message belonging to the relay protection service sent by the first power device, it obtains the timestamp from the local clock and adds it to the service message, and then forwards it to the second transmission tunnel on the first transmission tunnel. The forwarding node sends the service message. The second forwarding node receives the service message, obtains the timestamp from the local clock, and calculates the transmission time of the service message on the first transmission tunnel according to the obtained timestamp and the timestamp included in the service message. The second forwarding node calculates the time difference between the transmission time and the preset time threshold, and then buffers the service message, and when the buffering time of the service message reaches the time difference, sends the service message to the second power device. In this way, it is ensured that the transmission time of the service packet received by the second power device on the first transmission tunnel each time is equal to the preset time threshold. Similarly, for the service message sent by the second power device to the first power device, the transmission time of the service message on the second transmission tunnel is also stored in the above manner to be equal to the preset time threshold.
在实现本申请的过程中,发明人发现相关技术至少存在以下问题:In the process of realizing this application, the inventor found that the related technology has at least the following problems:
第一转发节点和第二转发节点需要接收同一时钟源的时钟信号才能达到时间同步,但是时钟源很容易受到攻击,导致发送给第一转发节点的时钟信号和发送给第二转发节点的时钟信号不同,使得第一转发节点和第二转发节点无法实现时间同步,这样第二转发节点计算出的业务报文的传输时间就不准确,进而无法保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值。The first forwarding node and the second forwarding node need to receive the clock signal of the same clock source to achieve time synchronization, but the clock source is vulnerable to attack, resulting in the clock signal sent to the first forwarding node and the clock signal sent to the second forwarding node The difference makes it impossible for the first forwarding node and the second forwarding node to achieve time synchronization. In this way, the transmission time of the service packet calculated by the second forwarding node is not accurate, and it is impossible to ensure that the service packet received by the power equipment is in the transmission tunnel each time. The value of the change in the transmission time does not exceed the preset threshold.
发明内容Summary of the invention
本申请实施例提供了一种通信方法、装置及系统,能够提高计算业务报文传输时间的准确性,以保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值,所述技术方案如下:The embodiments of the present application provide a communication method, device, and system, which can improve the accuracy of calculating the transmission time of a service message, so as to ensure that the change in the transmission time of the service message received by the power equipment on the transmission tunnel does not exceed The threshold is preset, and the technical solution is as follows:
第一方面,本申请提供了一种通信方法,在所述方法中:第一转发节点接收第一业务报文,第一转发节点是传输隧道经过的除末尾节点以外的其他节点,传输隧道为用于传输第一业务报文的隧道;第一转发节点获取第一业务报文在第一转发节点中的滞留时间;第一转发节点发送第二业务报文,第二业务报文包括该滞留时间。由于第一转发节点能够准确地获取到该滞留时间,在第二业务报文中添加该滞留时间,这样该传输隧道的末尾节点在接收到第二业务报文时,根据第二业务报文中的各转发节点添加的滞留时间能够准确地获取到第二业务报文在传输隧道中的传输时间,从而提高计算业务报文的传输时间的准确性,以保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值。In the first aspect, the present application provides a communication method. In the method: a first forwarding node receives a first service packet, the first forwarding node is a node other than the end node that the transmission tunnel passes through, and the transmission tunnel is A tunnel used to transmit the first service message; the first forwarding node obtains the detention time of the first service message in the first forwarding node; the first forwarding node sends a second service message, and the second service message includes the detention time. Since the first forwarding node can accurately obtain the detention time, the detention time is added to the second service message, so that the end node of the transmission tunnel receives the second service message according to the The detention time added by each forwarding node can accurately obtain the transmission time of the second service message in the transmission tunnel, thereby improving the accuracy of calculating the transmission time of the service message to ensure that the power equipment receives the service message every time The change value of the transmission time on the transmission tunnel does not exceed the preset threshold.
在一种可能的实现方式中,第一转发节点获取第一业务报文的接收时间戳和当前时间戳;根据该接收时间戳和当前时间戳获取第一业务报文在第一转发节点中的滞留时间。由于接收时间戳和当前时间戳均是从第一转发节点的本地时钟中读取的时间戳,这样基于接收时间戳和当前时间戳可以准确地获取到滞留时间。In a possible implementation manner, the first forwarding node obtains the reception timestamp and the current timestamp of the first service message; according to the reception timestamp and the current timestamp, the first forwarding node obtains the information of the first service message in the first forwarding node. Detention time. Since both the receiving timestamp and the current timestamp are timestamps read from the local clock of the first forwarding node, the residence time can be accurately obtained based on the receiving timestamp and the current timestamp.
在另一种可能的实现方式中,第一转发节点在接收第一业务报文时,保存第一业务报文的报文标识信息与第一业务报文的接收时间戳之间的对应关系;第一转发节点根据第一业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取第一业务报文的接收时间戳。如此在第一转发节点确定发送第一业务报文时,可以获取到第一业务报文的接收时间戳,从而基于该接收时间戳可以准确获取到第一业务报文的滞留时间。In another possible implementation manner, when receiving the first service packet, the first forwarding node saves the correspondence between the packet identification information of the first service packet and the reception timestamp of the first service packet; The first forwarding node obtains the reception timestamp of the first service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the first service message. In this way, when the first forwarding node determines to send the first service packet, the receiving time stamp of the first service packet can be obtained, so that the residence time of the first service packet can be accurately obtained based on the receiving time stamp.
在另一种可能的实现方式中,第一转发节点在接收第一业务报文时,在第一业务报文中添加第一业务报文的接收时间戳;从第一业务报文中提取接收时间戳。将接收时间戳添加到第一业务报文,相比上述从第一业务报文中提取报文标识信息再保存该报文标识信息与接收时间戳的对应关系,实现方式简化,且可以减少对存储空间的占用。In another possible implementation manner, when the first forwarding node receives the first service packet, it adds the reception timestamp of the first service packet to the first service packet; and extracts the received time stamp from the first service packet. Timestamp. Adding the receiving timestamp to the first service message, compared with the above-mentioned extracting the message identification information from the first service message and then saving the correspondence between the message identification information and the receiving timestamp, the implementation method is simplified, and it can reduce the number of errors. Occupation of storage space.
在另一种可能的实现方式中,在第一转发节点是传输隧道的非首节点的情况,第一业务报文中包括滞留总时间,该滞留总时间是第一业务报文在已经过的各转发节点中的滞留时间之和;第一转发节点将第一业务报文包括的滞留总时间与该滞留时间进行累加得到累加值,将第一业务报文包括的滞留总时间替换为该累加值,得到第二业务报文。由于第二业务报文包括一个滞留总时间,可以减少第二业务报文中携带的数据量。In another possible implementation manner, in the case where the first forwarding node is the non-head node of the transmission tunnel, the first service message includes the total detention time, and the total detention time is the time that the first service message has passed. The sum of the detention time in each forwarding node; the first forwarding node accumulates the total detention time included in the first service message and the detention time to obtain an accumulated value, and replaces the total detention time included in the first service message with the accumulated value Value to get the second service message. Since the second service message includes a total detention time, the amount of data carried in the second service message can be reduced.
第二方面,本申请提供了一种通信方法,在所述方法中:第二转发节点接收第二业务报文,第二业务报文包括第二业务报文在第二转发节点之前的各转发节点上的滞留时间,第二转发节点是传输隧道的末尾节点,该传输隧道为用于传输第二业务报文的隧道,所述第二转发节点之前的各转发节点是所述传输隧道经过的节点。第二转发节点根据第二业务报文在各转发节点中的滞留时间和时间阈值,获取第二业务报文在第二转发节点中的允许滞留时间。第二转发节点在第二业务报文在第二转发节点中的滞留时间达到允许滞留时间时发送第二业务报文。由于第二业务报文包括第二业务报文在第二转发节点之前的各转发节点上的滞留时间,对于任一个转发节点,该转发节点能准确地获取到第二业务报文在自身上的滞留时间,这样第二转发节点根据各转发节点的滞留时间可以准确地获取第二业务 报文在第二转发节点中的允许滞留时间,在第二业务报文在第二转发节点中的滞留时间达到允许滞留时间时发送第二业务报文,这样可以保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值。In a second aspect, the present application provides a communication method, in the method: a second forwarding node receives a second service packet, and the second service packet includes each forwarding of the second service packet before the second forwarding node The detention time on the node, the second forwarding node is the end node of the transmission tunnel, the transmission tunnel is a tunnel used to transmit the second service packet, and each forwarding node before the second forwarding node passes through the transmission tunnel node. The second forwarding node obtains the allowable residence time of the second service packet in the second forwarding node according to the residence time and the time threshold of the second service packet in each forwarding node. The second forwarding node sends the second service message when the detention time of the second service message in the second forwarding node reaches the allowable detention time. Since the second service message includes the residence time of the second service message on each forwarding node before the second forwarding node, for any forwarding node, the forwarding node can accurately obtain the second service message on itself. Detention time, so that the second forwarding node can accurately obtain the allowable detention time of the second service message in the second forwarding node according to the detention time of each forwarding node, and the detention time of the second service message in the second forwarding node The second service message is sent when the allowable detention time is reached, so that it can be ensured that the change in the transmission time of the service message received by the power device each time on the transmission tunnel does not exceed the preset threshold.
在一种可能的实现方式中,第二转发节点获取第二业务报文已在第二转发节点中的滞留时间,第二业务报文已在第二转发节点中的滞留时间是指从第二转发节点接收到第二业务报文,到将第二业务报文缓存到抖动缓冲器时的时间,抖动缓冲器是第二转发节点中的缓存器。第二转发节点根据第二业务报文在各转发节点中的滞留时间、在第二转发节点中的滞留时间和时间阈值,获取允许第二业务报文在抖动缓冲器中的缓存时间。这样第二业务报文在抖动缓冲器中的存储时间达到允许的缓存时间时被发送,可以保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值。In a possible implementation manner, the second forwarding node obtains the detention time of the second service packet in the second forwarding node, and the detention time of the second service packet in the second forwarding node refers to the detention time from the second forwarding node. When the forwarding node receives the second service message and buffers the second service message in the jitter buffer, the jitter buffer is a buffer in the second forwarding node. The second forwarding node obtains the time allowed for the second service packet to be buffered in the jitter buffer according to the residence time of the second service packet in each forwarding node, the residence time in the second forwarding node, and the time threshold. In this way, the second service message is sent when the storage time in the jitter buffer reaches the allowable buffer time, which can ensure that the change in the transmission time of the service message received by the power device each time on the transmission tunnel does not exceed the preset threshold.
在另一种可能的实现方式中,第二转发节点获取第二业务报文的接收时间戳以及获取在将第二业务报文缓存到抖动缓冲器时的第一时间戳。第二转发节点根据接收时间戳和第一时间戳,获取第二业务报文已在第二转发节点中的滞留时间。由于接收时间戳和第一时间戳均是第二转发节点的本地时钟中读取的时间戳,这样基于接收时间戳和第一时间戳可以准确地获取到滞留时间。In another possible implementation manner, the second forwarding node obtains the reception timestamp of the second service packet and obtains the first timestamp when the second service packet is buffered in the jitter buffer. The second forwarding node obtains the residence time of the second service packet in the second forwarding node according to the reception timestamp and the first timestamp. Since the reception time stamp and the first time stamp are both time stamps read from the local clock of the second forwarding node, the residence time can be accurately obtained based on the reception time stamp and the first time stamp.
在另一种可能的实现方式中,第二转发节点在接收第二业务报文时,保存第二业务报文的报文标识信息与第二业务报文的接收时间戳之间的对应关系。第二转发节点根据第二业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取第二业务报文的接收时间戳。如此第二转发节点可以获取到第二业务报文的接收时间戳,从而基于该接收时间戳可以准确获取到第二业务报文的滞留时间。In another possible implementation manner, when receiving the second service packet, the second forwarding node saves the correspondence between the packet identification information of the second service packet and the receiving timestamp of the second service packet. The second forwarding node obtains the reception timestamp of the second service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the second service message. In this way, the second forwarding node can obtain the reception timestamp of the second service message, so that the residence time of the second service message can be accurately obtained based on the reception timestamp.
在另一种可能的实现方式中,第二转发节点在接收第二业务报文时,在第二业务报文中添加第二业务报文的接收时间戳。第二转发节点从第二业务报文中提取接收时间戳。将接收时间戳添加到第二业务报文,相比上述从第二业务报文中提取报文标识信息再保存该报文标识信息与接收时间戳的对应关系,实现方式简化,且可以减少对存储空间的占用。In another possible implementation manner, when receiving the second service packet, the second forwarding node adds the receiving timestamp of the second service packet to the second service packet. The second forwarding node extracts the reception timestamp from the second service message. Adding the receiving timestamp to the second service message, compared with the above-mentioned extracting the message identification information from the second service message and then saving the correspondence between the message identification information and the receiving timestamp, the implementation method is simplified, and it can reduce the number of errors. Occupation of storage space.
第三方面,本申请提供了一种通信装置,用于执行第一方面或第一方面的任意一种可能实现方式中的方法。具体地,所述装置包括用于执行第一方面或第一方面的任意一种可能实现方式的方法的单元。In the third aspect, the present application provides a communication device for executing the first aspect or the method in any one of the possible implementation manners of the first aspect. Specifically, the device includes a unit for executing the method of the first aspect or any one of the possible implementation manners of the first aspect.
第四方面,本申请提供了一种通信装置,用于执行第二方面或第二方面的任意一种可能实现方式中的方法。具体地,所述装置包括用于执行第二方面或第二方面的任意一种可能实现方式的方法的单元。In a fourth aspect, the present application provides a communication device for executing the second aspect or the method in any one of the possible implementation manners of the second aspect. Specifically, the device includes a unit for executing the second aspect or any one of the possible implementation manners of the second aspect.
第五方面,本申请实施例提供了一种通信装置,所述装置包括:处理器、存储器和收发器。其中,所述处理器、所述存储器和所述收发器之间可以通过总线系统相连。所述存储器用于存储一个或多个程序,所述处理器用于执行所述存储器中的一个或多个程序,完成第一方面或第一方面的任意可能实现方式中的方法。In a fifth aspect, an embodiment of the present application provides a communication device, the device including: a processor, a memory, and a transceiver. Wherein, the processor, the memory and the transceiver may be connected through a bus system. The memory is configured to store one or more programs, and the processor is configured to execute one or more programs in the memory to implement the first aspect or the method in any possible implementation manner of the first aspect.
第六方面,本申请实施例提供了一种通信装置,所述装置包括:处理器、存储器和收发器。其中,所述处理器、所述存储器和所述收发器之间可以通过总线系统相连。所述存储器用于存储一个或多个程序,所述处理器用于执行所述存储器中的一个或多个程序,完成第二方面或第二方面的任意可能实现方式中的方法。In a sixth aspect, an embodiment of the present application provides a communication device, the device including: a processor, a memory, and a transceiver. Wherein, the processor, the memory and the transceiver may be connected through a bus system. The memory is configured to store one or more programs, and the processor is configured to execute one or more programs in the memory to implement the second aspect or the method in any possible implementation manner of the second aspect.
第七方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质中存储有程 序,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面、第一方面的任意可能实现方式或第二方面的任意可能实现方式中的方法。In a seventh aspect, the present application provides a computer-readable storage medium with a program stored in the computer-readable storage medium. When it runs on a computer, the computer executes the above-mentioned first, second, and first aspects. Any possible implementation manner or method in any possible implementation manner of the second aspect.
第八方面,本申请提供了一种包含程序的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面、第一方面的任意可能实现方式或第二方面的任意可能实现方式中的方法。In an eighth aspect, this application provides a computer program product containing a program, which when it runs on a computer, enables the computer to execute the above-mentioned first aspect, second aspect, any possible implementation manner of the first aspect or the second aspect Any possible implementation method.
第九方面,本申请提供了一种通信系统,所述系统包括:第三方面所述的装置和第四方面所述的装置,或者,所述第五方面所述的装置和第六方面所述的装置。In a ninth aspect, the present application provides a communication system, the system comprising: the device described in the third aspect and the device described in the fourth aspect, or the device described in the fifth aspect and the device described in the sixth aspect Mentioned device.
附图说明Description of the drawings
图1是本申请实施例提供的一种网络架构示意图;FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图2是本申请实施例提供的一种业务报文的结构示意图;2 is a schematic diagram of the structure of a service message provided by an embodiment of the present application;
图3是本申请实施例提供的另一种业务报文的结构示意图;FIG. 3 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图4是本申请实施例提供的一种转发节点的结构示意图;Figure 4 is a schematic structural diagram of a forwarding node provided by an embodiment of the present application;
图5是本申请实施例提供的另一种网络架构示意图;FIG. 5 is a schematic diagram of another network architecture provided by an embodiment of the present application;
图6是本申请实施例提供的一种通信方法流程图;FIG. 6 is a flowchart of a communication method provided by an embodiment of the present application;
图7是本申请实施例提供的另一种业务报文的结构示意图;FIG. 7 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图8是本申请实施例提供的另一种业务报文的结构示意图;FIG. 8 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图9是本申请实施例提供的另一种业务报文的结构示意图;FIG. 9 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图10是本申请实施例提供的另一种业务报文的结构示意图;FIG. 10 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图11是本申请实施例提供的另一种业务报文的结构示意图;FIG. 11 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图12是本申请实施例提供的另一种业务报文的结构示意图;FIG. 12 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图13是本申请实施例提供的另一种业务报文的结构示意图;FIG. 13 is a schematic structural diagram of another service message provided by an embodiment of the present application;
图14是本申请实施例提供的一种通信装置结构示意图;FIG. 14 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图15是本申请实施例提供的另一种通信装置结构示意图;FIG. 15 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图16是本申请实施例提供的另一种通信装置结构示意图。FIG. 16 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
参见图1,本申请实施例提供了一种通信架构,该通信架构包括多个转发节点1和多个终端2。通信网络包括多个转发节点1,每个终端2可以连接到该通信网络的转发节点1上。Referring to FIG. 1, an embodiment of the present application provides a communication architecture. The communication architecture includes multiple forwarding nodes 1 and multiple terminals 2. The communication network includes a plurality of forwarding nodes 1, and each terminal 2 can be connected to the forwarding node 1 of the communication network.
终端2之间可以通过通信网络来传输业务报文。例如,对于需要传输业务的两个终端2,为了便于说明称该两个终端2为第一终端和第二终端,与第一终端相连的转发节点为第一转发节点,以及与第二终端相连的转发节点为第二转发节点。第一终端可以建立与第二终端之间的网络连接,该网络连接包括第一终端与第一转发节点之间的连接,第一转发节点与第二转发节点之间的传输隧道,以及第二转发节点与第二终端之间的连接。The terminal 2 can transmit service messages through the communication network. For example, for two terminals 2 that need to transmit services, the two terminals 2 are referred to as a first terminal and a second terminal for convenience of description, and the forwarding node connected to the first terminal is the first forwarding node, and the second terminal is connected to the second terminal. The forwarding node of is the second forwarding node. The first terminal can establish a network connection with the second terminal. The network connection includes the connection between the first terminal and the first forwarding node, the transmission tunnel between the first forwarding node and the second forwarding node, and the second Forward the connection between the node and the second terminal.
第一转发节点和第二转发节点之间的传输隧道包括第一传输隧道和第二传输隧道。第一传输隧道的首节点为第一转发节点,末尾节点为第二转发节点。第一传输隧道用于传输第一终端向第二终端发送的业务报文。第二传输隧道的首节点为第二转发节点,末尾节点为第一转发节点。第二传输隧道用于传输第二终端向第一终端发送的业务报文。The transmission tunnel between the first forwarding node and the second forwarding node includes a first transmission tunnel and a second transmission tunnel. The head node of the first transmission tunnel is the first forwarding node, and the end node is the second forwarding node. The first transmission tunnel is used to transmit the service message sent by the first terminal to the second terminal. The first node of the second transmission tunnel is the second forwarding node, and the end node is the first forwarding node. The second transmission tunnel is used to transmit the service message sent by the second terminal to the first terminal.
第一传输隧道经过的转发节点和第二传输隧道经过的转发节点可以相同,也可以不同。对于第一传输隧道和第二传输隧道中任一传输隧道,该传输隧道经过的转发节点数目 大于或等于2。在该转发节点数目等于2时,表示该传输隧道经过的转发节点包括第一转发节点和第二转发节点。在该转发节点数目大于2时,表示该传输隧道经过的转发节点除了包括第一转发节点和第二转发节点外,还可以包括其他的转发节点,其他的转发节点是该传输隧道经过的中间节点。The forwarding nodes passed by the first transmission tunnel and the forwarding nodes passed by the second transmission tunnel may be the same or different. For any one of the first transmission tunnel and the second transmission tunnel, the number of forwarding nodes passed by the transmission tunnel is greater than or equal to two. When the number of forwarding nodes is equal to 2, it means that the forwarding nodes that the transmission tunnel passes through include the first forwarding node and the second forwarding node. When the number of forwarding nodes is greater than 2, it means that in addition to the first forwarding node and the second forwarding node, the forwarding nodes that the transmission tunnel passes through may also include other forwarding nodes, and the other forwarding nodes are intermediate nodes that the transmission tunnel passes through. .
图1所示的网络架构可以为因特网协议/多协议标签交换(internet protocol/multi-protocol label switching,IP/MPLS)网络架构,在该架构下第一终端和第二终端之间传输的业务报文可以为MPLS报文。或者,图1所示的网络架构可以为基于IPv6段路由技术(segment routing based on IPv6,SRV6)网络架构,在该架构下第一终端和第二终端之间传输的业务报文可以为SRV6报文。The network architecture shown in Figure 1 may be an Internet protocol/multi-protocol label switching (IP/MPLS) network architecture, under which the business report transmitted between the first terminal and the second terminal The message can be an MPLS message. Alternatively, the network architecture shown in Figure 1 may be a segment routing based on IPv6 (SRV6) network architecture, in which the service packets transmitted between the first terminal and the second terminal may be SRV6 packets Text.
参见图2,在IP/MPLS网络架构中,该业务报文可以为MPLS报文,包括报文头、净荷部分和帧校验序列(frame check sequence,FCS)。净荷部分位于报文头和FCS之间。报文头包括多个字段,该多个字段分别为源目的介质访问控制地址(destination and source medium access control address,InnerL2)、虚拟局域网编号(virtual local area network TAG,VlanTAG)、以太类型标识(thernet type,E-type)、内部的伪线标签值(inner pseudo wire multi-protocol label switching ID,Inner PW)、控制字(control word,CW)和实时传输协议(realtime transport protocol,RTP)。Referring to Figure 2, in the IP/MPLS network architecture, the service message may be an MPLS message, including a message header, a payload part, and a frame check sequence (FCS). The payload part is located between the message header and FCS. The message header includes multiple fields. The multiple fields are the source and destination media access control address (destination and source medium access control address, InnerL2), virtual local area network number (virtual local area network TAG, VlanTAG), and Ethernet type identifier (thernet). type, E-type), internal pseudowire label value (inner pseudowire multi-protocol label switching ID, Inner PW), control word (CW), and realtime transport protocol (realtime transport protocol, RTP).
接下来列举了MPLS报文中的各字段长度的一种示例,当然各字段长度也不限于该示例,也可以是其他长度,在此不再一一列举。在该示例中,InnerL2的长度可以为12个字节,VlanTAG的长度可以为4个字节,E-type的长度可以为2个字节,InnerPW的长度可以为4个字节,CW的长度可以为4个字节,RTP的长度可以为12个字节。净荷部分的长度不是固定不变的,在不同业务报文中净荷部分的长度可以不同,也可以相同。FCS的长度可以为4字节。Next, an example of the length of each field in the MPLS packet is listed. Of course, the length of each field is not limited to this example, and may also be other lengths, which will not be listed here. In this example, the length of InnerL2 can be 12 bytes, the length of VlanTAG can be 4 bytes, the length of E-type can be 2 bytes, the length of InnerPW can be 4 bytes, and the length of CW It can be 4 bytes, and the length of RTP can be 12 bytes. The length of the payload part is not fixed, and the length of the payload part in different service messages can be different or the same. The length of FCS can be 4 bytes.
参见图3,在SRV6网络架构中,该业务报文可以为SRV6报文,SRV6报文的报文头包括如下字段,分别为下一层头部标识(Next Header)、段路由头部长度(header extended length,Hdr Ext Len)、路由类型(RoutingType)、剩余的SRv6端个数(Segment Left)、最后一个段实体序列号(Last Entry)、段路由头部标识符(Flags)、SRv6报文的类型标识(Tag)、SRv6报文的类型标识(Segment List)和可选择的类型长度值(optional type length value,OTLV)等。Segment List中包括n+1个128位的IPV6地址(128 bits IPv6 address),n为大于0的整数。Referring to Figure 3, in the SRV6 network architecture, the service message can be an SRV6 message. The message header of the SRV6 message includes the following fields, which are the Next Header and the segment routing header length ( header extended length, HdrExtLen), routing type (RoutingType), number of remaining SRv6 ends (SegmentLeft), last segment entity sequence number (Last Entry), segment routing header identifier (Flags), SRv6 message The type identification (Tag) of the SRv6 message, the type identification (Segment List) of the SRv6 message, and the optional type length value (OTLV), etc. The Segment List includes n+1 128-bit IPv6 addresses (128 bits IPv6 address), and n is an integer greater than 0.
可选的,转发节点2可以为路由器或交换机等。Optionally, the forwarding node 2 may be a router or a switch.
第二终端可能要求第一终端每次发送的业务报文在第一传输隧道上的第一传输时间的变化值小于变化值阈值。第一终端也可能要求第二终端每次发送的业务报文在第二传输隧道上的第二传输时间的变化值小于变化值阈值。第一终端和第二终端还可能要求第一传输时间和第二传输时间相等或相差的差值不超过差值阈值。The second terminal may require that the change value of the first transmission time of the service packet sent by the first terminal each time on the first transmission tunnel is smaller than the change value threshold. The first terminal may also require that the change value of the second transmission time of the service packet sent by the second terminal each time on the second transmission tunnel is smaller than the change value threshold. The first terminal and the second terminal may also require that the first transmission time and the second transmission time are equal or the difference does not exceed the difference threshold.
例如,假设该通信架构为IP/MPLS网络架构,该通信架构可以应用于电力行业。在电力行业中,第一终端和第二终端可以为电力设备。第一终端和第二终端之间传输的业务报文可以为属于继电保护业务的业务报文。For example, assuming that the communication architecture is an IP/MPLS network architecture, the communication architecture can be applied to the power industry. In the power industry, the first terminal and the second terminal may be power equipment. The service message transmitted between the first terminal and the second terminal may be a service message belonging to a relay protection service.
在电力行业,第一终端通过第一传输隧道向第二终端发送业务报文,第二终端每次接收到业务报文时测量该业务报文在第一传输隧道上的第一传输时间。同样,第二终端通过 第二传输隧道向第一终端发送业务报文,第一终端每次接收到业务报文时测量该业务报文在第二传输隧道上的第二传输时间。在第二终端每次测量的第一传输时间的变化值较大,或者,在第一终端每次测量的第二传输时间的变化值较大,或者,第一传输时间和第二传输时间之间的差值超过差值阈值,就可能导致电网停电事故的发生。所以在电力行业中,要求第一传输时间的变化值和第二传输时间的变化值均小于变化值阈值,以及要求第一传输时间和第二传输时间相等或相差的差值不超过差值阈值,该变化值阈值可以为200微秒、180微秒或160微秒等,该差值阈值可以为200微秒、180微秒或160微秒等。In the power industry, a first terminal sends a service message to a second terminal through a first transmission tunnel, and each time the second terminal receives a service message, it measures the first transmission time of the service message on the first transmission tunnel. Similarly, the second terminal sends a service message to the first terminal through the second transmission tunnel, and each time the first terminal receives a service message, it measures the second transmission time of the service message on the second transmission tunnel. The change value of the first transmission time measured each time at the second terminal is relatively large, or the change value of the second transmission time measured each time at the first terminal is relatively large, or the difference between the first transmission time and the second transmission time is If the difference between the two exceeds the difference threshold, it may lead to a power outage accident in the power grid. Therefore, in the electric power industry, the change value of the first transmission time and the change value of the second transmission time are required to be less than the change value threshold, and the difference between the first transmission time and the second transmission time is equal or the difference does not exceed the difference threshold. , The change threshold can be 200 microseconds, 180 microseconds, or 160 microseconds, etc., and the difference threshold can be 200 microseconds, 180 microseconds, or 160 microseconds, etc.
对于第一传输隧道和第二传输隧道中的任一个传输隧道,当业务报文在该传输隧道中传输时,该传输隧道经过的转发节点对业务报文在该传输隧道上的传输时间有很大的影响。业务报文在转发节点中滞留时间的长短决定业务报文的传输时间的长短。转发节点在网络流量较大时,不能及时转发接收的业务报文,导致业务报文在该转发节点中的滞留时间变长,相应地导致业务报文的传输时间也随之变长。转发节点在网络流量较小时,能够及时转发业务报文,使业务报文在该转发节点上的滞留时间变短,相应地导致业务报文的传输时间也随之变短。For any one of the first transmission tunnel and the second transmission tunnel, when a service packet is transmitted in the transmission tunnel, the forwarding node that the transmission tunnel passes through has a significant impact on the transmission time of the service packet on the transmission tunnel. Big impact. The length of time the business message stays in the forwarding node determines the length of the transmission time of the business message. When the network traffic is large, the forwarding node cannot forward the received business message in time, which causes the detention time of the business message in the forwarding node to become longer, and correspondingly causes the transmission time of the business message to also become longer. When the network traffic is small, the forwarding node can forward the business message in time, so that the residence time of the business message on the forwarding node is shortened, and accordingly the transmission time of the business message is also shortened accordingly.
在通信网络中转发节点之间往往使用光纤等高速线缆连接,对于任两个转发节点之间的线缆,每个业务报文在该两个转发节点之间的线缆上传输速度均相同且所需要的时间很短。所以该传输隧道经过的各线缆,不同的业务报文在该传输隧道经过的各线缆上传输时所用的时间之和相同,但不同的业务报文在传输隧道经过的各转发节点上的滞留时间之和可能不同。因此业务报文在传输隧道中的传输时间受转发节点的影响较大,该传输时间的长短主要受该业务报文在该传输隧道经过的各转发节点上的滞留时间之和的影响。In the communication network, the forwarding nodes are often connected by high-speed cables such as optical fiber. For the cable between any two forwarding nodes, the transmission speed of each service packet on the cable between the two forwarding nodes is the same. And the time required is very short. Therefore, for each cable that the transmission tunnel passes through, the sum of the time taken for different service packets to be transmitted on each cable that the transmission tunnel passes through is the same, but different service packets are transmitted on each forwarding node that the transmission tunnel passes through. The sum of residence time may be different. Therefore, the transmission time of the service message in the transmission tunnel is greatly affected by the forwarding node, and the length of the transmission time is mainly affected by the sum of the residence time of the service message on each forwarding node that the transmission tunnel passes through.
由于业务报文在传输隧道经过的各转发节点上的滞留时间对该业务报文在该传输隧道上的传输时间有很大的影响,所以对于传输隧道经过的除末尾节点之外的每个转发节点,每个转发节点在接收到业务时可以在该业务报文中添加该业务报文在自身的滞留时间,然后转发添加滞留时间的业务报文。对于传输隧道的末尾节点,末尾节点接收到该业务报文后,根据该业务报文包括该业务报文在已经过的各转发节点上的滞留时间获取滞留总时间,然后根据时间阈值和该滞留总时间,获取该业务报文在该末尾节点中的允许滞留时间,在该业务报文在末节点中的滞留时间达到该允许滞留时间时向终端发送该业务报文。其中,该滞留总时间和该允许滞留时间之和等于该时间阈值,这样该终端测量该业务报文在该传输隧道上的传输时间等于该时间阈值加上该业务报文在该传输隧道经过的各线缆上所用的时间之和。其中,转发节点如何在业务报文中添加滞留时间以及该末尾节点如何获取该滞留总时间的详细实现过程将在后续图6所示实施例进行详细说明,在此先不介绍。Since the detention time of the service packet on each forwarding node through the transmission tunnel has a great influence on the transmission time of the service packet on the transmission tunnel, it is necessary for each forwarding node except the end node that the transmission tunnel passes through. Nodes, each forwarding node can add the detention time of the service message to the service message when receiving the service, and then forward the service message with the detention time added. For the end node of the transmission tunnel, after receiving the service message, the end node obtains the total detention time according to the service message including the detention time of the service message on each forwarding node that has passed, and then according to the time threshold and the detention time Total time, obtain the allowable residence time of the service message in the end node, and send the service message to the terminal when the residence time of the service message in the end node reaches the allowable residence time. Wherein, the sum of the total detention time and the allowable detention time is equal to the time threshold, so that the terminal measures the transmission time of the service message on the transmission tunnel equal to the time threshold plus the time the service message passes through the transmission tunnel The sum of the time spent on each cable. The detailed implementation process of how the forwarding node adds the detention time to the service message and how the end node obtains the total detention time will be described in detail in the subsequent embodiment shown in FIG. 6, and will not be introduced here.
对于第一传输隧道的末尾节点,即第二转发节点每次接收到第一终端发送的业务报文时,按上述方式向对接收的业务报文进行处理后再发送给第二终端,可以保证第二终端每次接收到业务报文时测量的第一传输时间相同或测量的第一传输时间的变化值小于变化值阈值。同理,对于第二传输隧道的末尾节点,即第一转发节点每次接收到第二终端发送的业务报文时,按上述方式向对接收的业务报文进行处理后再发送给第一终端,可以保证第一终端每次接收到业务报文时测量的第二传输时间相同或测量的第二传输时间的变化值小于变化值阈值。For the end node of the first transmission tunnel, that is, each time the second forwarding node receives a service message sent by the first terminal, it processes the received service message in the above manner before sending it to the second terminal, which can ensure Each time the second terminal receives a service message, the measured first transmission time is the same or the change value of the measured first transmission time is smaller than the change value threshold. Similarly, for the end node of the second transmission tunnel, that is, each time the first forwarding node receives a service message sent by the second terminal, it processes the received service message in the above manner before sending it to the first terminal. It can be ensured that the measured second transmission time is the same every time the first terminal receives a service message or the change value of the measured second transmission time is smaller than the change value threshold.
可选的,第一转发节点和第二转发节点在建立第一传输隧道和第二传输隧道时相互约定时间阈值,使得第一转发节点和第二转发节点使用相同的时间阈值,如此可以保证第一传输时间和第二传输时间之间的差值不超过差值阈值。Optionally, the first forwarding node and the second forwarding node mutually agree on a time threshold when establishing the first transmission tunnel and the second transmission tunnel, so that the first forwarding node and the second forwarding node use the same time threshold, so that the first forwarding node and the second forwarding node can be guaranteed The difference between the first transmission time and the second transmission time does not exceed the difference threshold.
需要说明的是,在第一传输隧道经过的转发节点和第二传输隧道经过的转发节点不同时,此时第一传输隧道经过的线缆长度和第二传输隧道经过的线缆长度可能不同。这样业务报文在第一传输隧道的线缆上传输所用的时间和业务报文在第二传输隧道的线缆上传输所用的时间不同。如果该两个时间之间的差值超过该差值阈值,则可能需要重新建立第一转发节点和第二转发节点之间的第一传输隧道和第二传输隧道,以使该两个时间之间的差值不超过该差值阈值。这样才可以尽量保证第一终端发送的业务报文在第一传输隧道上传输时所用的第一传输时间和第二终端发送的业务报文第二传输隧道上传输时所用的第二传输时间之间的差值不超过该差值阈值。It should be noted that when the forwarding node passed by the first transmission tunnel and the forwarding node passed by the second transmission tunnel are different, the length of the cable passed by the first transmission tunnel and the length of the cable passed by the second transmission tunnel may be different at this time. In this way, the time taken for the service message to be transmitted on the cable of the first transmission tunnel is different from the time taken for the service message to be transmitted on the cable of the second transmission tunnel. If the difference between the two times exceeds the difference threshold, it may be necessary to re-establish the first transmission tunnel and the second transmission tunnel between the first forwarding node and the second forwarding node to make the difference between the two times The difference between the two does not exceed the difference threshold. In this way, it is possible to ensure as much as possible between the first transmission time used when the service message sent by the first terminal is transmitted on the first transmission tunnel and the second transmission time used when the service message sent by the second terminal is transmitted on the second transmission tunnel. The difference between the two does not exceed the difference threshold.
参见图4,本申请实施例提供了一种转发节点1,该转发节点1可以是图1所示网络架构中的转发节点,包括:Referring to Fig. 4, an embodiment of the present application provides a forwarding node 1. The forwarding node 1 may be a forwarding node in the network architecture shown in Fig. 1, and includes:
处理器21、存储器22、总线23和通信接口24。处理器21、存储器22和通信接口24通过总线23相连。The processor 21, the memory 22, the bus 23 and the communication interface 24. The processor 21, the memory 22 and the communication interface 24 are connected through a bus 23.
转发节点1包括多个通信接口24,转发节点1通过通信接口24与其他设备通信。例如,转发节点1可以通过通信接口24和其邻居转发节点通信。当该转发节点1还与终端通信时,该转发节点1通过其他通信接口24与终端通信。The forwarding node 1 includes a plurality of communication interfaces 24, and the forwarding node 1 communicates with other devices through the communication interface 24. For example, the forwarding node 1 may communicate with its neighbor forwarding nodes through the communication interface 24. When the forwarding node 1 is still in communication with the terminal, the forwarding node 1 communicates with the terminal through another communication interface 24.
可选的,通信接口24包括收发器和处理芯片等部件,该收发器具有收发报文的功能,该处理芯片具有处理报文等至少一个功能。在该通信接口24与终端相连时,该通信接口24还可以包括抖动缓冲器。Optionally, the communication interface 24 includes components such as a transceiver and a processing chip. The transceiver has a function of sending and receiving messages, and the processing chip has at least one function of processing messages. When the communication interface 24 is connected to the terminal, the communication interface 24 may also include a jitter buffer.
可选的,该处理芯片可以通过数字信号处理(digital signal processing,DSP)或现场可编程逻辑门阵列(field programmable gate array,FPGA)等来实现。Optionally, the processing chip may be implemented by digital signal processing (digital signal processing, DSP) or field programmable logic gate array (field programmable gate array, FPGA), etc.
可选的,在该转发节点1是IP/MPLS网络架构中的转发节点的情况,该转发节点1与终端相连的通信接口24可以是E1接口或C37.94等低速接口。Optionally, when the forwarding node 1 is a forwarding node in the IP/MPLS network architecture, the communication interface 24 connecting the forwarding node 1 and the terminal may be a low-speed interface such as an E1 interface or a C37.94.
存储器22中可以保存有转发表,该转发表用于保存索引信息与隧道信息的对应关系。对于转发表中的每条记录包括的索引信息和隧道信息,该索引信息可以是目的设备的设备标识或传输隧道的标签,该隧道信息包括指示信息和通信接口的接口标识,还可能包括传输隧道的标签,该指示信息可以为压标签指示、交换指示或弹标签指示。压标签指示用于指示处理器21向报文中添加标签,交换指示用于指示处理器21将报文中的标签替换为该隧道信息中的标签,弹标签指示用于指示处理器21去除报文中的标签。当处理器21通过一通信接口24接收到报文时,处理器21根据该报文包括的目的设备的设备标识或标签从存储器22的转发表中查询出对应的隧道信息,该隧道信息包括指示信息和通信接收口的接口标识,根据该指示信息对该报文进行处理,通过该接口标识对应的通信接口24发送处理后的报文。A forwarding table may be stored in the memory 22, and the forwarding table is used to store the corresponding relationship between the index information and the tunnel information. For the index information and tunnel information included in each record in the forwarding table, the index information may be the device identifier of the destination device or the label of the transmission tunnel. The tunnel information includes indication information and the interface identifier of the communication interface, and may also include the transmission tunnel. , The instruction information can be a pressure label instruction, an exchange instruction or a pop-up label instruction. The press label indication is used to instruct the processor 21 to add a label to the message, the exchange indication is used to instruct the processor 21 to replace the label in the message with the label in the tunnel information, and the pop label indication is used to instruct the processor 21 to remove the message. Tags in the text. When the processor 21 receives a message through a communication interface 24, the processor 21 queries the corresponding tunnel information from the forwarding table of the memory 22 according to the device identification or label of the destination device included in the message, and the tunnel information includes an indication Information and the interface identifier of the communication receiving port, the message is processed according to the instruction information, and the processed message is sent through the communication interface 24 corresponding to the interface identifier.
该转发节点1可以是上述介绍的第一转发节点或第二转发节点,或者为上述第一传输隧道或第二传输隧道经过的中间节点。例如,参见图5,对于第一传输隧道,第一传输隧道用于传输第一终端发送给第二终端的业务报文。第一传输隧道的首节点为第一转发节点11,第一转发节点11通过一个通信接口241与第一终端通信,在第一传输隧道上通过另 一个通信接口242与第一转发节点11的下游转发节点通信,在第一转发节点11的转发表中存在一条包括索引信息和隧道信息的记录,该记录中的索引信息包括第二终端的设备标识D2,该记录中的隧道信息包括与该下游转发节点通信的通信接口242的接口标识U242、压标签指示和标签1。The forwarding node 1 may be the first forwarding node or the second forwarding node described above, or an intermediate node through which the first transmission tunnel or the second transmission tunnel passes. For example, referring to FIG. 5, for the first transmission tunnel, the first transmission tunnel is used to transmit the service message sent by the first terminal to the second terminal. The first node of the first transmission tunnel is the first forwarding node 11. The first forwarding node 11 communicates with the first terminal through a communication interface 241, and communicates with the downstream of the first forwarding node 11 through another communication interface 242 on the first transmission tunnel. For forwarding node communication, there is a record including index information and tunnel information in the forwarding table of the first forwarding node 11. The index information in the record includes the device identifier D2 of the second terminal, and the tunnel information in the record includes information related to the downstream The interface identifier U242, the pressure label indication, and the label 1 of the communication interface 242 of the forwarding node communication.
对于第一传输隧道经过的任一个中间节点,称该中间节点为第三转发节点13,在第一传输隧道上,第三转发节点13通过一个通信接口243与第三转发节点13的上游转发节点相连,通过另一个通信接口244与第三转发节点13的下游转发节点相连。在第三转发节点13的转发表中存在一条包括索引信息和隧道信息的记录,该记录中的索引信息包括标签1,该记录中的隧道信息包括与该下游转发节点通信接口的接口标识U244、交换指示和标签2。For any intermediate node that the first transmission tunnel passes through, the intermediate node is called the third forwarding node 13. On the first transmission tunnel, the third forwarding node 13 communicates with the upstream forwarding node of the third forwarding node 13 through a communication interface 243 Connected to the downstream forwarding node of the third forwarding node 13 through another communication interface 244. There is a record including index information and tunnel information in the forwarding table of the third forwarding node 13. The index information in the record includes tag 1, and the tunnel information in the record includes the interface identifier U244, the interface identifier of the communication interface with the downstream forwarding node, Exchange instructions and labels 2.
第一传输隧道经过的末尾节点为第二转发节点12,在第一传输隧道上,第二转发节点12通过一个通信接口245与第二转发节点12的上游转发节点相连,通过另一个通信接口246与第二终端相连。在第二转发节点12的转发表中存在一条包括索引信息和隧道信息的记录,该记录中的索引信息包括标签2,该记录中的隧道信息包括与第二终端相连的通信接口246的接口标识U246和弹标签指示。The end node that the first transmission tunnel passes through is the second forwarding node 12. On the first transmission tunnel, the second forwarding node 12 is connected to the upstream forwarding node of the second forwarding node 12 through a communication interface 245, and through another communication interface 246 Connect with the second terminal. There is a record including index information and tunnel information in the forwarding table of the second forwarding node 12. The index information in the record includes tag 2, and the tunnel information in the record includes the interface identifier of the communication interface 246 connected to the second terminal. U246 and bullet label instructions.
仍参见图5,对于第二传输隧道,第二传输隧道用于传输第二终端发送给第一终端的业务报文。假设第二传输隧道经过的转发节点和第一传输隧道经过的转发节点相同,这样第二转发节点12通过通信接口246与第二终端相连,在第二传输隧道上通过通信接口245与第二转发节点12的下游转发节点相连,在第二转发节点12的转发表中存在一条包括索引信息和隧道信息的记录,该记录中的索引信息包括第一终端的设备标识D1,该记录中的隧道信息包括与该下游转发节点相连的通信接口245的接口标识U245、标签3和压标签指示。Still referring to FIG. 5, for the second transmission tunnel, the second transmission tunnel is used to transmit the service message sent by the second terminal to the first terminal. Assuming that the forwarding node passed by the second transmission tunnel is the same as the forwarding node passed by the first transmission tunnel, the second forwarding node 12 is connected to the second terminal through the communication interface 246, and communicates with the second forwarding node through the communication interface 245 on the second transmission tunnel. The downstream forwarding node of the node 12 is connected, and there is a record including index information and tunnel information in the forwarding table of the second forwarding node 12. The index information in the record includes the device identifier D1 of the first terminal, and the tunnel information in the record It includes the interface identifier U245 of the communication interface 245 connected to the downstream forwarding node, the label 3, and the label indication.
对于第二传输隧道经过的任一个中间节点,例如对于第三转发节点13,在第二传输隧道上,第三转发节点13通过通信接口244与第三转发节点13的上游转发节点相连,通过通信接口243与第三转发节点13的下游转发节点相连。在第三转发节点13的转发表中存在一条包括索引信息和隧道信息的记录,该记录中的索引信息为标签3,该记录中的隧道信息包括与该下游转发节点相连的通信接口的接口标识U243、交换指示和标签4。For any intermediate node that the second transmission tunnel passes through, for example, for the third forwarding node 13, on the second transmission tunnel, the third forwarding node 13 is connected to the upstream forwarding node of the third forwarding node 13 through the communication interface 244, and through communication The interface 243 is connected to the downstream forwarding node of the third forwarding node 13. There is a record including index information and tunnel information in the forwarding table of the third forwarding node 13. The index information in the record is label 3, and the tunnel information in the record includes the interface identifier of the communication interface connected to the downstream forwarding node. U243, exchange instructions and labels 4.
第二传输隧道经过的末尾节点为第一转发节点11,在第二传输隧道上第二转发节点12通过通信接口242与第一转发节点11的上游转发节点相连,通过通信接口241与第一终端相连。在第一转发节点11的转发表中存在一条包括索引信息和隧道信息的记录,该记录中的索引信息包括标签4,该记录中的隧道信息包括与第一终端相连的通信接口241的接口标识U241和弹标签指示。The end node that the second transmission tunnel passes through is the first forwarding node 11. On the second transmission tunnel, the second forwarding node 12 is connected to the upstream forwarding node of the first forwarding node 11 through the communication interface 242, and is connected to the first terminal through the communication interface 241 Connected. There is a record including index information and tunnel information in the forwarding table of the first forwarding node 11. The index information in the record includes tag 4, and the tunnel information in the record includes the interface identifier of the communication interface 241 connected to the first terminal. U241 and bullet label instructions.
可选的,存储器22还可以保存有至少一个应用程序代码,该转发节点1中的处理器21和/或通信接口24中的处理芯片可以从存储器22中调用并运行应用程序代码,来实现如下功能,该功能包括在该转发节点1接收的业务报文中添加该业务报文在该转发节点1中的滞留时间或获取该业务报文在该转发节点1上的允许滞留时间等。其中转发节点1实现这些功能的具体过程将在后续图6所示的实施例进行详细说明,在此先不详细介绍。Optionally, the memory 22 may also store at least one application code, and the processor 21 in the forwarding node 1 and/or the processing chip in the communication interface 24 may call and run the application code from the memory 22 to achieve the following The function includes adding the detention time of the service message in the forwarding node 1 to the service message received by the forwarding node 1 or obtaining the allowable detention time of the service message on the forwarding node 1 and so on. The specific process for the forwarding node 1 to implement these functions will be described in detail in the subsequent embodiment shown in FIG. 6, and will not be described in detail here.
可选的,上述处理器21可以为通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific  integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。该处理器还可以是指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。Optionally, the aforementioned processor 21 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (ASIC), Or one or more integrated circuits used to control the execution of the program of this application. The processor may also refer to one or more devices, circuits, and/or processing cores for processing data (for example, computer program instructions).
上述总线23可以为一通路,在上述组件之间传送信息。The above-mentioned bus 23 may be a channel for transferring information between the above-mentioned components.
上述存储器22可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The aforementioned memory 22 may be random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, disk storage media or other magnetic storage devices, or can be used to carry or store instructions or data. The desired program code in the structural form and any other medium that can be accessed by the computer, but not limited to this. The memory can exist independently and is connected to the processor through a bus. The memory can also be integrated with the processor.
参见图6,本申请实施例提供了一种通信方法,该方法可以应用于如图1或图5所示的网络架构。在该方法中,以第一终端在第一传输隧道上向第二终端发送业务报文的过程为例进行说明,该方法包括:Referring to FIG. 6, an embodiment of the present application provides a communication method, which can be applied to the network architecture shown in FIG. 1 or FIG. 5. In this method, a process in which the first terminal sends a service message to the second terminal over the first transmission tunnel is taken as an example for description, and the method includes:
步骤301:第一转发节点接收第一终端发送的第一业务报文,第一转发节点是第一传输隧道经过的首节点。Step 301: The first forwarding node receives the first service packet sent by the first terminal, and the first forwarding node is the first node through which the first transmission tunnel passes.
可选的,参见图5,第一终端与第二终端之间建立有网络连接,该网络连接包括第一终端与第一转发节点之间的连接、第一转发节点和第二转发节点之间的第一传输隧道和第二传输隧道以及第二转发节点与第二终端之间的连接。Optionally, referring to FIG. 5, a network connection is established between the first terminal and the second terminal, and the network connection includes the connection between the first terminal and the first forwarding node, and the connection between the first forwarding node and the second forwarding node. The connection between the first transmission tunnel and the second transmission tunnel, and the second forwarding node and the second terminal.
第一终端可在该网络连接上向第二终端发送第一业务报文。由于第一转发节点通过一通信接口与第一终端相连,第一转发节点的该通信接口接收第一业务报文,为了便于说明,称该通信接口为第一通信接口。The first terminal may send the first service message to the second terminal on the network connection. Since the first forwarding node is connected to the first terminal through a communication interface, the communication interface of the first forwarding node receives the first service packet. For ease of description, the communication interface is called the first communication interface.
可选的,第一业务报文包括目的设备地址字段,该目的设备地址字段携带第二终端的设备标识。在第一业务报文为MPLS报文时,目的设备地址字段可以位于MPLS报文的Inner L2字段中。在第一业务报文为SRV6报文时,目的设备地址字段可以为SRV6报文的Segment list字段,第二终端的设备标识可以为Segment list字段中的最后一个IPV6地址。Optionally, the first service message includes a destination device address field, and the destination device address field carries the device identifier of the second terminal. When the first service message is an MPLS message, the destination device address field may be located in the Inner L2 field of the MPLS message. When the first service message is an SRV6 message, the destination device address field may be the Segment list field of the SRV6 message, and the device identifier of the second terminal may be the last IPV6 address in the Segment list field.
可选的,第一转发节点接收到第一业务报文时,获取第一业务报文的接收时间戳。为了便于说明称该接收时间戳为第一接收时间戳,将第一接收时间戳添加到第一业务报文中。或者,从第一业务报文中获取第一业务报文的报文标识信息,将该报文标识信息和第一接收时间戳对应保存在报文标识信息与接收时间戳的对应关系中,该报文标识信息包括第一业务报文的源设备标识、源端口号、目的设备标识、目的端口号和第一业务报文的报文序号。Optionally, when receiving the first service packet, the first forwarding node acquires the reception timestamp of the first service packet. For ease of description, the receiving timestamp is referred to as the first receiving timestamp, and the first receiving timestamp is added to the first service message. Alternatively, the message identification information of the first service message is obtained from the first service message, and the message identification information and the first reception timestamp are correspondingly stored in the correspondence relationship between the message identification information and the reception timestamp. The message identification information includes the source device identification, source port number, destination device identification, destination port number, and message sequence number of the first service message of the first service message.
可选的,第一转发节点包括本地时钟,第一转发节点在接收到第一终端的第一业务报文时从本地时钟获取第一接收时间戳,并在第一业务报文中添加第一接收时间戳。Optionally, the first forwarding node includes a local clock, and when receiving the first service message of the first terminal, the first forwarding node obtains the first reception timestamp from the local clock, and adds the first time stamp to the first service message. Receive timestamp.
可选的,从本地时钟获取的第一接收时间戳可以是数值。此情况下本地时钟可以是用于计时的计数器,时间戳可以是数值形式的数值,计数器计数的数值为时间戳。例如,假设计数器每一毫秒计数一次,当前计数器计数的数值为5,表示当前的时间戳为第5毫秒。或者,Optionally, the first receiving timestamp obtained from the local clock may be a numerical value. In this case, the local clock can be a counter used for timekeeping, the time stamp can be a numerical value, and the value counted by the counter is a time stamp. For example, suppose the counter counts once every millisecond, and the current counter count value is 5, which means that the current time stamp is the 5th millisecond. or,
可选的,从本地时钟获取的第一接收时间戳也可以是时间格式的数据。例如,假设在接收到第一业务报文时,从本地时钟获取的第一接收时间戳为2019-8-15-11-2-15-35,第 一接收时间戳为时间格式的数据。Optionally, the first receiving timestamp obtained from the local clock may also be data in a time format. For example, suppose that when the first service message is received, the first receiving timestamp obtained from the local clock is 2019-8-15-11-2-15-35, and the first receiving timestamp is data in time format.
可选的,第一通信接口可以包括收发器和处理芯片等部件,上述获取第一接收时间戳等操作可以由该处理芯片来执行。即在第一通信接口中的收发器接收第一终端发送的第一业务报文时,该处理芯片从第一转发节点的本地时钟中获取第一接收时间戳,将第一接收时间戳添加到第一业务报文中;或者,从第一业务报文中获取第一业务报文的报文标识信息,将该报文标识信息和第一接收时间戳对应保存在报文标识信息与接收时间戳之间的对应关系中。Optionally, the first communication interface may include components such as a transceiver and a processing chip, and the foregoing operations such as obtaining the first receiving timestamp may be performed by the processing chip. That is, when the transceiver in the first communication interface receives the first service message sent by the first terminal, the processing chip obtains the first reception timestamp from the local clock of the first forwarding node, and adds the first reception timestamp to In the first service message; or, obtain the message identification information of the first service message from the first business message, and store the message identification information and the first reception timestamp correspondingly in the message identification information and the reception time Correspondence between stamps.
对于在第一业务报文中添加第一接收时间戳的方式,由于不需要保存报文标识信息与第一接收时间戳的对应关系,从而减小占用第一转发节点的存储资源。For the method of adding the first reception timestamp to the first service message, since there is no need to save the correspondence between the message identification information and the first reception timestamp, the storage resources occupied by the first forwarding node are reduced.
可选的,可以在第一业务报文的第一字段中添加第一接收时间戳。第一字段可以为在第一业务报文中新增加的字段或者为第一业务报文的报文头中已存在的字段。Optionally, the first reception timestamp may be added to the first field of the first service message. The first field may be a newly added field in the first service message or an existing field in the header of the first service message.
可选的,第一业务报文可以为MPLS报文,在获取到第一接收时间戳时可以在第一业务报文的报文头中添加包括第一接收时间戳的第一字段。Optionally, the first service message may be an MPLS message, and when the first reception timestamp is acquired, the first field including the first reception timestamp may be added to the header of the first service message.
在第一业务报文为MPLS报文时,该通信方法可以应用于IP/MPLS网络架构。在IP/MPLS网络架构,第一终端和第二终端可以为电力设备,第一业务报文可以为属于继电保护业务的报文。When the first service message is an MPLS message, the communication method can be applied to the IP/MPLS network architecture. In the IP/MPLS network architecture, the first terminal and the second terminal may be power equipment, and the first service message may be a message belonging to a relay protection service.
例如,参见图7,在获取到第一接收时间戳时,假设第一接收时间戳为t1,在第一业务报文的报文头中添加包括第一接收时间戳t1的第一字段。如图7所示第一字段可以位于InnerPW和CW之间。For example, referring to FIG. 7, when the first receiving timestamp is acquired, assuming that the first receiving timestamp is t1, the first field including the first receiving timestamp t1 is added to the header of the first service message. As shown in Figure 7, the first field may be located between InnerPW and CW.
可选的,第一字段的长度可以x个字节,x的取值可以为4、5、6、7或8等数值。Optionally, the length of the first field may be x bytes, and the value of x may be 4, 5, 6, 7, or 8 values.
可选的,在第一业务报文为SRv6报文时,第一字段可以是第一业务报文的OTLV中的部分。在获取到第一时间戳时,将第一业务报文的第一字段的内容设置为第一时间戳。Optionally, when the first service message is an SRv6 message, the first field may be a part of the OTLV of the first service message. When the first time stamp is obtained, the content of the first field of the first service message is set as the first time stamp.
例如,参见图8,在获取到第一接收时间戳t1时,在第一业务报文的报文头中的OTLV中选择部分比特作为第一字段,并将第一字段的内容设置为第一接收时间戳t1。For example, referring to FIG. 8, when the first reception timestamp t1 is obtained, some bits in the OTLV in the header of the first service message are selected as the first field, and the content of the first field is set as the first field. Receive timestamp t1.
第一通信接口中的处理芯片将第一接收时间戳添加到第一业务报文后,可以向第一转发节点的处理器发送第一业务报文。After adding the first reception timestamp to the first service packet, the processing chip in the first communication interface may send the first service packet to the processor of the first forwarding node.
可选的,参见图7,第一通信接口的处理芯片在向第一转发节点的处理器发送第一业务报文之前,还可以在第一业务报文的报文头中增加1588指示字段和1588模式字段。然后再向第一转发节点的处理器发送第一业务报文。Optionally, referring to FIG. 7, before the processing chip of the first communication interface sends the first service message to the processor of the first forwarding node, it may also add a 1588 indication field and a 1588 indication field to the header of the first service message. 1588 mode field. Then send the first service message to the processor of the first forwarding node.
在本申请中,第一转节点可以使用1588技术的透明时钟(transparent clock,TC)模式定义的技术来获取第一业务报文在第一转发节点上的滞留时间,所以处理芯片增加的1588指示字段中包括1588指示,增加的1588模式字段中包括TC模式,以触发第一转发节点的处理器使用1588技术的TC模式中定义的技术来执行操作。在使用1588技术的TC模式的时,第一转发节点的本地时钟是计数器,第一接收时间戳t1是数值。In this application, the first transfer node can use the technology defined in the transparent clock (TC) mode of the 1588 technology to obtain the detention time of the first service packet on the first forwarding node, so the 1588 instruction added by the processing chip The field includes the 1588 indication, and the added 1588 mode field includes the TC mode to trigger the processor of the first forwarding node to use the technology defined in the TC mode of the 1588 technology to perform operations. When using the TC mode of the 1588 technology, the local clock of the first forwarding node is a counter, and the first receiving timestamp t1 is a value.
当然第一转发节点也可以采用其他的方式来获取第一业务报文在第一转发节点中的滞留时间,在采用其他的方式时,第一通信接口的处理芯片可以不用在第一业务报文的报文头中增加1588指示字段和1588模式字段。Of course, the first forwarding node may also use other methods to obtain the detention time of the first service packet in the first forwarding node. When other methods are used, the processing chip of the first communication interface may not be used for the first service packet. The 1588 indication field and 1588 mode field are added to the header of the message.
参见图5,第一转发节点中保存有转发表,第一转发节点的处理器接收到第一业务报文后,根据第一业务报文包括的第二终端的设备标识,假设第二终端的设备标识为D2, 从第一转发节点保存的转发表中查询出与第二终端的设备标识ID2相对应的接口标识U242、标签1和压标签指示。第一转发节点的处理器在第一报文中添加标签1,向该接口标识U242对应的通信接口发送第一业务报文。为了便于说明称该接口标识U242对应的通信接口为第二通信接口。Referring to Figure 5, the first forwarding node saves a forwarding table. After receiving the first service message, the processor of the first forwarding node, according to the device identification of the second terminal included in the first service message, assumes that the second terminal’s The device identification is D2, and the interface identification U242, label 1, and label pressing indication corresponding to the device identification ID2 of the second terminal are queried from the forwarding table stored by the first forwarding node. The processor of the first forwarding node adds label 1 to the first message, and sends the first service message to the communication interface corresponding to the interface identifier U242. For ease of description, the communication interface corresponding to the interface identifier U242 is referred to as the second communication interface.
可选的,参见图7,在第一业务报文中包括1588指示字段和1588模式字段的情况,第一转发节点的处理器在向第二通信接口发送第一业务报文之前,在该1588指示字段中的1588指示和该1588模式字段中的TC模式的触发下,从第一业务报文的第一字段中提取第一接收时间戳t1,第一接收时间戳t1是数值,计算数值0与t1之间的差值为0-t1,该差值是一个负数值,将第一业务报文的第二字段的内容设置为该差值0-t1。Optionally, referring to FIG. 7, in the case where the 1588 indication field and the 1588 mode field are included in the first service packet, the processor of the first forwarding node sends the first service packet to the second communication interface in the 1588 Under the trigger of the 1588 indication in the indication field and the TC mode in the 1588 mode field, the first reception timestamp t1 is extracted from the first field of the first service message. The first reception timestamp t1 is a value, and the value is calculated as 0 The difference between t1 and t1 is 0-t1, the difference is a negative value, and the content of the second field of the first service message is set to the difference 0-t1.
可选的,在第一业务报文为MPLS报文的情况,参见图7,第一转发节点的处理器可以扩展第一业务报文中的第一字段的长度,得到长度为y的第二字段,y为大于x的整数值。例如,x=4,y=6;或者,x=6,y=8等,将第二字段包括的内容替换为该差值0-t1。Optionally, in the case that the first service packet is an MPLS packet, referring to FIG. 7, the processor of the first forwarding node may extend the length of the first field in the first service packet to obtain a second field of length y. Field, y is an integer value greater than x. For example, x=4, y=6; or, x=6, y=8, etc., replace the content included in the second field with the difference 0-t1.
可选的,在第一业务报文为SRv6报文的情况,第一业务报文的第二字段是OLTV中除第一字段以外的部分,第一转发节点的处理器将第二字段的内容设置为该差值0-t1。Optionally, when the first service message is an SRv6 message, the second field of the first service message is a part of the OLTV other than the first field, and the processor of the first forwarding node converts the content of the second field Set the difference to 0-t1.
可选的,参见图7,第一转发节点的处理器在向第二通信接口发送第一业务报文之前,从第一业务报文中删除1588指示字段和1588模式字段。Optionally, referring to FIG. 7, the processor of the first forwarding node deletes the 1588 indication field and the 1588 mode field from the first service packet before sending the first service packet to the second communication interface.
可选的,在第一业务报文为MPLS报文的情况,参见图7,第一转发节点的处理器在向第二通信接口发送第一业务报文之前,还可以在第一业务报文的报文头中添加一个字段,字段为标签交换路径(label switch path,LSP)。Optionally, in the case that the first service packet is an MPLS packet, referring to FIG. 7, the processor of the first forwarding node may also send the first service packet to the second communication interface before sending the first service packet to the second communication interface. A field is added to the header of the message, and the field is label switch path (LSP).
步骤302:第一转发节点获取第一业务报文在第一转发节点中的滞留时间,将该滞留时间添加到第一业务报文中,得到第二业务报文。Step 302: The first forwarding node obtains the residence time of the first service packet in the first forwarding node, and adds the residence time to the first service packet to obtain the second service packet.
在第一转发节点的第二通信接口接收到第一业务报文时,第一转发节点开始执行本步骤的操作。第二通信接口中包括处理芯片和收发器,即该处理芯片可以执行本步骤的操作,执行过程如下:When the second communication interface of the first forwarding node receives the first service packet, the first forwarding node starts to perform the operation of this step. The second communication interface includes a processing chip and a transceiver, that is, the processing chip can perform the operation of this step, and the execution process is as follows:
在本步骤中,可以获取第一业务报文的第一接收时间戳以及当前时间戳,为了便于说明称该当前时间戳为第二时间戳,根据第一接收时间戳和第二时间戳获取第一业务报文在第一转发节点中的滞留时间,将该滞留时间添加到第一业务报文中,得到第二业务报文。In this step, the first receiving timestamp and the current timestamp of the first service message can be obtained. For the convenience of explanation, the current timestamp is called the second timestamp, and the first receiving timestamp and the second timestamp are obtained according to the first receiving timestamp and the second timestamp. The detention time of a service message in the first forwarding node is added to the first service message to obtain the second service message.
可选的,可以从本地时钟中读取第二时间戳。由于第一业务报文的第一字段中包括第一接收时间戳,所以可以直接从第一业务报文的第一字段中提取第一接收时间戳。或者,从第一业务报文中提取第一业务报文的报文标识信息,从报文标识信息与接收时间戳的对应关系中获取第一接收时间戳。Optionally, the second time stamp can be read from the local clock. Since the first field of the first service message includes the first reception timestamp, the first reception timestamp can be directly extracted from the first field of the first service message. Or, extract the message identification information of the first service message from the first service message, and obtain the first reception timestamp from the correspondence between the message identification information and the reception timestamp.
又由于第一接收时间戳和第二时间戳均是从第一转发节点的本地时钟中获取的,所以基于第一接收时间戳和第二时间戳获取的在第一转发节点的滞留时间的精度很高。In addition, since both the first receiving timestamp and the second timestamp are obtained from the local clock of the first forwarding node, the accuracy of the residence time at the first forwarding node obtained based on the first receiving timestamp and the second timestamp Very high.
在从报文标识信息与接收时间戳的对应关系中获取到第一接收时间戳的情况下,还可以在获取第一接收时间戳之后,从报文标识信息与接收时间戳的对应关系中删除包括第一业务报文的报文标识信息和第一接收时间戳的记录。In the case where the first receiving timestamp is obtained from the correspondence between the message identification information and the receiving timestamp, it may also be deleted from the correspondence between the message identification information and the receiving timestamp after the first receiving timestamp is obtained. The record includes the message identification information of the first service message and the first reception timestamp.
可选的,可以在第一业务报文的第二字段中添加该滞留时间,第二字段可以是对第一业务报文的报文头的第一字段进行扩展得到的字段,或者,第二字段可以是第一业务报文的报文头中已存在的字段。Optionally, the residence time can be added to the second field of the first service message. The second field can be a field obtained by extending the first field of the header of the first service message, or the second field The field may be an existing field in the header of the first service message.
可选的,在第一业务报文为MPLS报文时,在获取到第一业务报文在第一转发节点中的滞留时间后,可以在第一业务报文中扩展第一字段的长度得到第二字段,将第二字段中的内容替换为该滞留时间。Optionally, when the first service packet is an MPLS packet, after obtaining the residence time of the first service packet in the first forwarding node, the length of the first field in the first service packet may be expanded to obtain In the second field, replace the content in the second field with the residence time.
例如参见图7,第二转发节点的第二通信接口的处理芯片从本地时钟中读取当前时间戳t2,即第二时间戳为t2,从第一业务报文的第一字段中提取第一接收时间戳t1,根据第一接收时间戳t1和第二时间戳t2获取第一业务报文在第一转发节点中的滞留时间t2-t1,在第一业务报文中扩展第一字段的长度得到第二字段,将第二字段中的内容替换为该滞留时间t2-t1。For example, referring to Figure 7, the processing chip of the second communication interface of the second forwarding node reads the current timestamp t2 from the local clock, that is, the second timestamp is t2, and extracts the first field from the first field of the first service packet. Receive timestamp t1, obtain the residence time t2-t1 of the first service packet in the first forwarding node according to the first received timestamp t1 and the second timestamp t2, and extend the length of the first field in the first service packet Obtain the second field, and replace the content in the second field with the residence time t2-t1.
可选的,在第一业务报文为SRV6报文的情况,参见图9,第二字段可以是第一业务报文的OTLV字段中除第一字段以外的部分。在获取到第一业务报文在第一转发节点中的滞留时间t2-t1后,将第一业务报文的OTLV字段中除第一字段以外的部分作为第二字段,将第二字段的内容设置为该滞留时间t2-t1。Optionally, when the first service message is an SRV6 message, referring to FIG. 9, the second field may be a part of the OTLV field of the first service message except the first field. After obtaining the residence time t2-t1 of the first service packet in the first forwarding node, the OTLV field of the first service packet except the first field is used as the second field, and the content of the second field Set the residence time t2-t1.
可选的,在第一转发节点采用了1588技术的TC模式的情况下,第二通信接口的处理芯片接收的第一业务报文中的第一字段已被扩展为第二字段,且第二字段中的内容是一个负数值0-t1。在本步骤中,从本地时钟获取的第二时间戳t2是本地时钟计数的数值t2,可以从第一业务报文的第二字段中提取该负数值0-t1,将该负数值0-t1与数值t2累加得到累加值t2-t1,将累加值t2-t1作为第一业务报文在第一转发节点中的滞留时间,将第二字段中的内容替换为该滞留时间t2-t1。Optionally, when the first forwarding node adopts the TC mode of 1588 technology, the first field in the first service packet received by the processing chip of the second communication interface has been extended to the second field, and the second field The content of the field is a negative value 0-t1. In this step, the second time stamp t2 obtained from the local clock is the value t2 counted by the local clock. The negative value 0-t1 can be extracted from the second field of the first service message, and the negative value 0-t1 Accumulate with the value t2 to obtain an accumulated value t2-t1, use the accumulated value t2-t1 as the residence time of the first service packet in the first forwarding node, and replace the content in the second field with the residence time t2-t1.
步骤303:第一转发节点发送添加该滞留时间的第二业务报文。Step 303: The first forwarding node sends a second service message with the retention time added.
在本步骤中,第一转发节点的第二通信接口中的收发器发送添加该滞留时间的第二业务报文。In this step, the transceiver in the second communication interface of the first forwarding node sends the second service message with the residence time added.
第一转发节点发送第二业务报文后,由第一传输隧道经过的中间节点接收并转发第二业务报文,为了便于说明称该中间节点为第三转发节点。第三转发节点可以执行如下操作。After the first forwarding node sends the second service packet, the intermediate node that the first transmission tunnel passes through receives and forwards the second service packet. For ease of description, the intermediate node is referred to as the third forwarding node. The third forwarding node can perform the following operations.
步骤304:第三转发节点接收第二业务报文,第二业务报文包括第二业务报文在已经过的各转发节点中的滞留时间。Step 304: The third forwarding node receives the second service message, where the second service message includes the residence time of the second service message in each forwarding node that has passed.
可选的,第二业务报文的第二字段中可以包括第二业务报文在已经过的各转发节点中的滞留时间,或者,第二业务报文的第二字段中可以包括滞留总时间,该滞留总时间为第二业务报文在已经过的各转发节点中的滞留时间之和。Optionally, the second field of the second service message may include the detention time of the second service message in each forwarding node that has passed, or the second field of the second service message may include the total detention time , The total detention time is the sum of the detention time of the second service message in each forwarding node that has passed.
在本步骤中,第三转发节点通过一个通信接口接收第二业务报文,为了便于说明称该通信接口为第三通信接口。In this step, the third forwarding node receives the second service packet through a communication interface. For ease of description, the communication interface is referred to as the third communication interface.
在本步骤中,第三转发节点接收到第二业务报文时,可以从本地时钟获取第二业务报文的接收时间戳,为了便于说明称此时获取的接收时间戳为第二接收时间戳,将第二接收时间戳添加到第二业务报文中。或者,从第二业务报文中获取第二业务报文的报文标识信息,将该报文标识信息和第一接收时间戳对应保存在报文标识信息与接收时间戳的对应关系中。In this step, when the third forwarding node receives the second service packet, it can obtain the receiving timestamp of the second service packet from the local clock. For the convenience of description, the received timestamp is called the second receiving timestamp. , Add the second receiving timestamp to the second service message. Alternatively, the message identification information of the second service message is obtained from the second service message, and the message identification information and the first reception timestamp are correspondingly stored in the correspondence between the message identification information and the reception timestamp.
第三通信接口中包括处理芯片等部件,该处理芯片可以执行上述获取第二接收时间戳等操作。The third communication interface includes components such as a processing chip, and the processing chip can perform operations such as obtaining the second receiving timestamp.
第二接收时间戳可以是数值形式的数据或可以是时间格式的数据。The second reception timestamp may be data in numerical form or may be data in time format.
可选的,可以在第二业务报文的第一字段中添加第二接收时间戳。第一字段可以为在 第二业务报文中新增加的字段或者为第二业务报文的报文头中已存在的字段。Optionally, a second receiving timestamp may be added to the first field of the second service message. The first field may be a newly added field in the second service message or an existing field in the message header of the second service message.
可选的,第二业务报文可以为MPLS报文,在获取到第二接收时间戳时可以在第二业务报文中添加包括第二接收时间戳的第一字段。Optionally, the second service message may be an MPLS message, and when the second reception timestamp is obtained, the first field including the second reception timestamp may be added to the second service message.
例如,参见图10,在第三转发节点的第三通信接口接收到第二业务报文时,第三通信接口中的处理芯片从第三转发节点的本地时钟获取第二接收时间戳t3,在第二业务报文中添加包括第二接收时间戳t3的第一字段。如图10所示第一字段可以位于净荷部分和FCS之间。For example, referring to FIG. 10, when the third communication interface of the third forwarding node receives the second service packet, the processing chip in the third communication interface obtains the second reception timestamp t3 from the local clock of the third forwarding node, and The first field including the second receiving timestamp t3 is added to the second service message. As shown in Figure 10, the first field may be located between the payload part and the FCS.
可选的,第二业务报文可以为SRV6报文,参见图11,第三转发节点的第三通信接口获取到第二接收时间戳t3后,将第二业务报文的OTLV中的第一字段的内容替换为第二接收时间戳t3。Optionally, the second service message may be an SRV6 message. Referring to FIG. 11, after the third communication interface of the third forwarding node obtains the second reception timestamp t3, it transfers the first OTLV of the second service message to The content of the field is replaced with the second receiving timestamp t3.
第三通信接口中的处理芯片将第二接收时间戳添加到第二业务报文后,可以向第三转发节点的处理器发送第二业务报文。After the processing chip in the third communication interface adds the second reception timestamp to the second service packet, it may send the second service packet to the processor of the third forwarding node.
可选的,参见图10,第三通信接口的处理芯片在向第三转发节点的处理器发送第二业务报文之前,还可以在第二业务报文的报文头中增加1588指示字段和1588模式字段。Optionally, referring to FIG. 10, before the processing chip of the third communication interface sends the second service packet to the processor of the third forwarding node, it may also add a 1588 indication field and a 1588 indication field to the header of the second service packet. 1588 mode field.
参见图5,第三转发节点中保存有转发表,第三转发节点的处理器根据第二业务报文包括的标签1,从第三转发节点保存的转发表中查询出与标签1相对应的接口标识U244、交换指示和标签2。为了便于说明称该接口标识U244对应的通信接口为第四通信接口,第三转发节点的处理器将第二业务报文中的标签1替换为标签2,向该接口标识U244对应的第四通信接口发送第二业务报文。Referring to Figure 5, the third forwarding node stores a forwarding table, and the processor of the third forwarding node queries the forwarding table stored by the third forwarding node according to the label 1 included in the second service message to find out the forwarding table corresponding to label 1. Interface identification U244, exchange instructions and label 2. In order to facilitate the description, the communication interface corresponding to the interface identifier U244 is referred to as the fourth communication interface. The processor of the third forwarding node replaces the label 1 in the second service packet with the label 2, and identifies the fourth communication corresponding to U244 to the interface. The interface sends the second service packet.
可选的,参见图10,在第二业务报文中包括1588指示字段和1588模式字段的情况,第三转发节点的处理器在向第四通信接口发送第二业务报文之前,在该1588指示字段中的1588指示和该1588模式字段中的TC模式的触发下,从第二业务报文的第一字段中提取第二接收时间戳t3以及从第二字段中提取滞留总时间,假设该滞留总时间为TS1。其中,该滞留总时间TS1和第二接收时间戳t3均为数值形式,也就是说该滞留总时间TS1和第二接收时间戳t3是两个数值。计算数值TS1与数值t3之间的差值,该差值等于TS1-t3,将第二业务报文中的第二字段中的内容替换为差值TS1-t3,然后删除第二业务报文中的1588指示字段和1588模式字段,再向第四通信接口发送第二业务报文。在第二业务报文为MPLS报文时,第三转发节点的处理器从第二业务报文的第一字段中提取第二接收时间戳t3之后,还可以从第二业务报文中删除第一字段。Optionally, referring to FIG. 10, when the second service packet includes the 1588 indication field and the 1588 mode field, the processor of the third forwarding node sends the second service packet to the fourth communication interface before sending the second service packet to the fourth communication interface. Under the trigger of the 1588 indication in the indication field and the TC mode in the 1588 mode field, the second receiving timestamp t3 is extracted from the first field of the second service message and the total detention time is extracted from the second field, assuming that The total detention time is TS1. Wherein, the total detention time TS1 and the second receiving time stamp t3 are both in numerical form, that is to say, the total detention time TS1 and the second receiving time stamp t3 are two numerical values. Calculate the difference between the value TS1 and the value t3, the difference is equal to TS1-t3, replace the content in the second field in the second service packet with the difference TS1-t3, and then delete the second service packet The 1588 indication field and the 1588 mode field are sent, and then the second service packet is sent to the fourth communication interface. When the second service message is an MPLS message, after the processor of the third forwarding node extracts the second reception timestamp t3 from the first field of the second service message, it may also delete the second service message from the second service message. One field.
步骤305:第三转发节点获取第二业务报文在第三转发节点中的滞留时间,将该滞留时间添加到第二业务报文中。Step 305: The third forwarding node obtains the residence time of the second service packet in the third forwarding node, and adds the residence time to the second service packet.
在第三转发节点的第四通信接口接收到第二业务报文时,第三转发节点执行本步骤操作。第四通信接口中包括处理芯片等部件,该处理芯片可以执行本步骤的操作。执行过程如下:When the fourth communication interface of the third forwarding node receives the second service packet, the third forwarding node executes the operation of this step. The fourth communication interface includes components such as a processing chip, and the processing chip can perform the operation of this step. The execution process is as follows:
在第四通信接口接收到第二业务报文时,可以获取第二业务报文的第二接收时间戳以及当前时间戳,为了便于说明称此时获取的当前时间戳为第三时间戳,根据第二接收时间戳和第三时间戳获取第二业务报文在第三转发节点中的滞留时间,将该滞留时间添加到第二业务报文中。When the fourth communication interface receives the second service message, the second reception timestamp and the current timestamp of the second service message can be obtained. For the convenience of explanation, the current timestamp acquired at this time is called the third timestamp. The second reception timestamp and the third timestamp acquire the residence time of the second service message in the third forwarding node, and add the residence time to the second service message.
在本步骤中,可以从第三转发节点的本地时钟中读取第三时间戳。由于第二业务报文 的第一字段中包括第二接收时间戳,所以直接从第二业务报文的第一字段中提取第二接收时间戳。或者,从第二业务报文中提取第二业务报文的报文标识信息,从报文标识信息与接收时间戳的对应关系中获取第二接收时间戳。In this step, the third time stamp can be read from the local clock of the third forwarding node. Since the first field of the second service message includes the second reception timestamp, the second reception timestamp is directly extracted from the first field of the second service message. Alternatively, the message identification information of the second service message is extracted from the second service message, and the second reception timestamp is obtained from the correspondence between the message identification information and the reception timestamp.
在本步骤中,可以通过如下两种方式将该滞留时间添加到第二业务报文中。该两种方式分别为:In this step, the detention time can be added to the second service message in the following two ways. The two methods are:
方式一,第二业务报文的第二字段中包括第二业务报文在经过的各转发节点上的滞留时间,本步骤中,直接将第二业务报文在第三转发节点中的滞留时间添加到第二业务报文的第二字段中。Manner 1: The second field of the second service packet includes the residence time of the second service packet on each forwarding node that it passes. In this step, the residence time of the second service packet in the third forwarding node is directly Is added to the second field of the second service message.
方式二,第二业务报文的第二字段包括滞留总时间,在本步骤中,从第二业务报文的第二字段中提取该滞留总时间,将该滞留总时间与第二业务报文在第三转发节点中滞留的滞留时间进行累加得到累加值,将第二业务报文的第二字段包括的该滞留总时间替换为该累加值。Manner 2: The second field of the second service message includes the total detention time. In this step, the total detention time is extracted from the second field of the second service message, and the total detention time is compared with that of the second service message. The detention time detained in the third forwarding node is accumulated to obtain an accumulated value, and the total detention time included in the second field of the second service message is replaced with the accumulated value.
在方式二中,第二业务报文的第二字段包括滞留总时间,相比较方式一的实现方式,第二字段包括的数据量较小,这样可以减小第二字段的长度,以减小对网络资源的占用。In mode two, the second field of the second service message includes the total detention time. Compared with the implementation mode of mode 1, the amount of data included in the second field is smaller, so that the length of the second field can be reduced to reduce Occupation of network resources.
可选的,在从报文标识信息与接收时间戳的对应关系中获取第二接收时间戳之后,可以从报文标识信息与接收时间戳的对应关系中该删除包括第二业务报文的报文标识信息和第二接收时间戳的记录。Optionally, after obtaining the second reception timestamp from the correspondence between the message identification information and the reception timestamp, the message including the second service message may be deleted from the correspondence between the message identification information and the reception timestamp. Document identification information and a record of the second receiving timestamp.
可选的,在第二业务报文为MPLS报文时,在从第二业务报文的第一字段中提取出第二接收时间戳后,还可以删除第一字段,这样可以减小第二业务报文的大小,以减小对网络资源的占用。Optionally, when the second service packet is an MPLS packet, after the second receiving timestamp is extracted from the first field of the second service packet, the first field may be deleted, so that the second field can be reduced. The size of business packets to reduce the occupation of network resources.
可选的,参见图10,在第三转发节点采用了1588技术的TC模式的情况下,第三转发节点的处理器在向第四通信接口发送第二业务报文之前,将第二业务报文的第二字段包括的内容替换为差值TS1-t3,则在本步骤中,获取的第三时间戳t4是一个数值,从第二业务报文的第二字段中读取该差值TS1-t3,将该差值TS1-t3与该数值t4进行累加,得到累加值TS1+t4-t3,将第二业务报文的第二字段中的内容替换为该累加值。Optionally, referring to FIG. 10, when the third forwarding node adopts the TC mode of 1588 technology, the processor of the third forwarding node sends the second service packet to the fourth communication interface before sending the second service packet to the fourth communication interface. The content included in the second field of the message is replaced with the difference TS1-t3. In this step, the third time stamp t4 obtained is a value, and the difference TS1 is read from the second field of the second service message. -t3, accumulate the difference TS1-t3 and the value t4 to obtain the accumulated value TS1+t4-t3, and replace the content in the second field of the second service packet with the accumulated value.
步骤306:第三转发节点发送添加该滞留时间的第二业务报文。Step 306: The third forwarding node sends the second service message with the residence time added.
在本步骤中,第三转发节点的第四通信接口发送添加该滞留时间的第二业务报文。In this step, the fourth communication interface of the third forwarding node sends the second service message with the detention time added.
对于第一传输隧道经过的其他每个中间节点在接收到第二业务报文后,执行与上述第三转发节点相同的操作来发送第二业务报文,第二业务报文会被发送至第一传输隧道的末尾节点,即被发送至第二传输节点。After receiving the second service packet, each of the other intermediate nodes passing through the first transmission tunnel performs the same operation as the third forwarding node to send the second service packet, and the second service packet will be sent to the first transmission tunnel. The end node of a transmission tunnel is sent to the second transmission node.
步骤307:第二转发节点接收第二业务报文,第二业务报文包括第二业务报文在第一传输隧道经过的除第二转发节点以外的其他各转发节点中的滞留时间。Step 307: The second forwarding node receives the second service packet, where the second service packet includes the residence time of the second service packet in each forwarding node other than the second forwarding node that the first transmission tunnel passes through.
可选的,第二业务报文的第二字段中可以包括第二业务报文在该其他各转发节点中的滞留时间,或者,第二业务报文的第二字段中可以包括滞留总时间,该滞留总时间为第二业务报文在该其他各转发节点中的滞留时间之和。Optionally, the second field of the second service message may include the detention time of the second service message in the other forwarding nodes, or the second field of the second service message may include the total detention time, The total detention time is the sum of the detention time of the second service message in the other forwarding nodes.
在本步骤中,第二转发节点通过一个通信接口接收第二业务报文,为了便于说明称该通信接口为第五通信接口。In this step, the second forwarding node receives the second service packet through a communication interface. For the convenience of description, the communication interface is called the fifth communication interface.
第二转发节点在接收到第二业务报文时获取第二业务报文的接收时间戳,为了便于说明称此时获取的接收时间戳为第三接收时间戳,将第三接收时间戳添加到第二业务报文 中。或者,从第二业务报文中获取第二业务报文的报文标识信息,将该报文标识信息和第三接收时间戳对应保存在报文标识标识与接收时间戳的对应关系中。The second forwarding node obtains the reception timestamp of the second service message when receiving the second service message. For the convenience of description, the received timestamp acquired at this time is called the third reception timestamp, and the third reception timestamp is added to In the second business message. Alternatively, the message identification information of the second service message is obtained from the second service message, and the message identification information and the third reception timestamp are correspondingly stored in the correspondence relationship between the message identification identification and the reception timestamp.
第五通信接口中包括处理芯片等部件,该处理芯片可以执行上述获取第三接收时间戳等操作。执行过程如下:The fifth communication interface includes components such as a processing chip, and the processing chip can perform operations such as obtaining the third receiving timestamp. The execution process is as follows:
在接收到第二业务报文时从第二转发节点包括的本地时钟获取当前时间戳作为第三接收时间戳,在第二业务报文中添加第三接收时间戳,或者,将第二业务报文的报文标识信息和第三接收时间戳对应保存在报文标识标识与接收时间戳的对应关系中。When the second service message is received, the current timestamp is obtained from the local clock included in the second forwarding node as the third reception timestamp, and the third reception timestamp is added to the second service message, or the second service message is The message identification information of the message and the third receiving timestamp are correspondingly stored in the correspondence between the message identification identifier and the receiving timestamp.
可选的,第二转发节点的本地时钟可以是用于计时的计数器,所以第三接收时间戳可以是数值形式的数值。或者,第三接收时间戳也可以为时间格式的数据。Optionally, the local clock of the second forwarding node may be a counter for timing, so the third receiving timestamp may be a numerical value. Alternatively, the third receiving timestamp may also be data in a time format.
在本步骤中,可以在第二业务报文的第一字段中添加第三接收时间戳。第一字段可以为在第二业务报文中新增加的字段或者为第二业务报文的报文头中已存在的字段。In this step, a third receiving timestamp may be added to the first field of the second service message. The first field may be a newly added field in the second service message or an existing field in the message header of the second service message.
可选的,第二业务报文可以为MPLS报文,参见图12,在接收到第二业务报文时获取当前的第三接收时间戳t5,在第二业务报文的报文头中添加包括第三接收时间戳t5的第一字段。如图12所示第一字段可以位于净荷部分和FCS之间。Optionally, the second service message may be an MPLS message. Referring to Figure 12, the current third reception timestamp t5 is obtained when the second service message is received, and added to the header of the second service message The first field including the third reception timestamp t5. As shown in Figure 12, the first field may be located between the payload part and the FCS.
可选的,第二业务报文可以为SRV6报文。例如,参见图13,在接收到第二业务报文时获取第三接收时间戳t5,将第二业务报文的OTLV中的第一字段包括的内容替换为第三接收时间戳t5。Optionally, the second service message may be an SRV6 message. For example, referring to FIG. 13, the third reception timestamp t5 is acquired when the second service message is received, and the content included in the first field in the OTLV of the second service message is replaced with the third reception timestamp t5.
第五通信接口的处理芯片将第三接收时间戳添加到第二业务报文或保存第二业务报文的报文标识信息与第三接收时间戳的对应关系后,可以向第二转发节点的处理器发送第二业务报文。After the processing chip of the fifth communication interface adds the third reception timestamp to the second service message or saves the correspondence between the message identification information of the second service message and the third reception timestamp, it can send the message to the second forwarding node The processor sends the second service message.
可选的,在第二业务报文为MPLS报文的情况,第五通信接口的处理芯片在向第二转发节点的处理器发送第二业务报文之前,还删除第二业务报文中的LSP字段。Optionally, in the case that the second service packet is an MPLS packet, the processing chip of the fifth communication interface also deletes the second service packet in the second service packet before sending the second service packet to the processor of the second forwarding node LSP field.
可选的,参见图12,第五通信接口的处理芯片在向第二转发节点的处理器发送第二业务报文之前,还可以在第二业务报文的报文头中增加1588指示字段和1588模式字段。Optionally, referring to FIG. 12, before the processing chip of the fifth communication interface sends the second service packet to the processor of the second forwarding node, it may also add a 1588 indication field and a 1588 indication field to the header of the second service packet. 1588 mode field.
参见图5,第二转发节点保存有转发表,第二转发节点的处理器根据第二业务报文包括的第二终端的设备标识D2,从第二转发节点保存的转发表中查询出与第二终端的设备标识ID2相对应的接口标识U246。为了便于说明称该接口标识U246对应的通信接口为第六通信接口,第二转发节点的处理器向该接口标识U246对应的第六通信接口发送第二业务报文。Referring to FIG. 5, the second forwarding node stores a forwarding table, and the processor of the second forwarding node queries the forwarding table stored by the second forwarding node according to the device identifier D2 of the second terminal included in the second service packet. The interface identifier U246 corresponding to the device identifier ID2 of the second terminal. For the convenience of description, the communication interface corresponding to the interface identifier U246 is referred to as the sixth communication interface, and the processor of the second forwarding node sends the second service packet to the sixth communication interface corresponding to the interface identifier U246.
可选的,参见图12,在第二业务报文中包括1588指示字段和1588模式字段的情况,第二转发节点的处理器在向第六通信接口发送第二业务报文之前,在该1588指示字段中的1588指示和该1588模式字段中的TC模式的触发下,从第二业务报文的第一字段中提取第三时间戳t5以及从第二字段中提取滞留总时间,假设该滞留总时间为TS2。其中,该滞留总时间TS2和第三接收时间戳t5均为数值形式,也就是说该滞留总时间TS2和第三接收时间戳t5是两个数值。计算数值TS2与数值t5之间的差值,该差值等于TS2-t5,将第二业务报文中的第二字段中的内容替换为该差值TS2-t5,然后再向第六通信接口发送第二业务报文。在第二业务报文为MPLS报文时,第二转发节点的处理器从该业务报文的第一字段中提取第三接收时间戳t5之后,还可以从第二业务报文中删除第一字段。Optionally, referring to FIG. 12, when the second service packet includes the 1588 indication field and the 1588 mode field, the processor of the second forwarding node sends the second service packet to the sixth communication interface in the 1588 Under the trigger of the 1588 indication in the indication field and the TC mode in the 1588 mode field, the third time stamp t5 is extracted from the first field of the second service message and the total detention time is extracted from the second field, assuming the detention The total time is TS2. Wherein, the total detention time TS2 and the third receiving time stamp t5 are both in numerical form, that is to say, the total detention time TS2 and the third receiving time stamp t5 are two numerical values. Calculate the difference between the value TS2 and the value t5, the difference is equal to TS2-t5, replace the content in the second field in the second service packet with the difference TS2-t5, and then send it to the sixth communication interface Send the second service message. When the second service message is an MPLS message, after the processor of the second forwarding node extracts the third reception timestamp t5 from the first field of the service message, it may also delete the first service message from the second service message. Field.
步骤308:第二转发节点将第二业务报文缓存在抖动缓冲器中,根据第二业务报文中 包括在其他各转发节点中的滞留时间和时间阈值,获取第二业务报文在抖动缓冲器中的允许滞留时间。Step 308: The second forwarding node buffers the second service message in the jitter buffer, and obtains the second service message in the jitter buffer according to the detention time and time threshold of the second service message included in the other forwarding nodes. The allowable residence time in the device.
第二转发节点的第六通信接口中包括处理芯片、收发器和抖动缓冲器等。在第六通信接口的处理芯片接收到该业务报文时,第六通信接口的处理芯片将第二业务报文缓存的抖动缓冲器中。本步骤的操作可以由第六通信接口中的处理芯片来执行。执行过程如下:The sixth communication interface of the second forwarding node includes a processing chip, a transceiver, a jitter buffer, and so on. When the processing chip of the sixth communication interface receives the service message, the processing chip of the sixth communication interface buffers the second service message in the jitter buffer. The operation of this step can be executed by the processing chip in the sixth communication interface. The execution process is as follows:
本步骤中可以通过如下3081至3082的操作来实现,该3081至3082的操作分别为:This step can be implemented by the following operations from 3081 to 3082. The operations from 3081 to 3082 are as follows:
3081:获取在将第二业务报文缓存到抖动缓冲器时第二业务报文已在第二转发节点中的滞留时间。3081: Acquire the retention time of the second service packet in the second forwarding node when the second service packet is buffered in the jitter buffer.
在本步骤中,获取接收第二业务报文的第三接收时间戳以及当前时间戳,为了便于说明称此时获取的当前时间戳为第一时间戳,根据第三接收时间戳和第一时间戳获取第二业务报文已在第二转发节点中的滞留时间。In this step, the third receiving timestamp and the current timestamp of the received second service message are acquired. For the convenience of description, the current timestamp acquired at this time is referred to as the first timestamp. According to the third receiving timestamp and the first time Stamp to obtain the residence time of the second service message in the second forwarding node.
在将该业务报文缓存到抖动缓冲器时可以从第二转发节点的本地时钟中读取第一时间戳。由于第二业务报文的第一字段包括第三接收时间戳,所以可以直接从第二业务报文的第一字段中提取第三接收时间戳。或者,从第二业务报文中获取第二业务报文的报文标识信息,从报文标识信息与接收时间戳的对应关系中获取第三接收时间戳。When buffering the service message in the jitter buffer, the first time stamp can be read from the local clock of the second forwarding node. Since the first field of the second service message includes the third reception timestamp, the third reception timestamp can be directly extracted from the first field of the second service message. Or, obtain the message identification information of the second service message from the second service message, and obtain the third reception timestamp from the correspondence between the message identification information and the reception timestamp.
可选的,从报文标识信息与接收时间戳的对应关系中获取第三接收时间戳,还从该报文标识信息与接收时间戳的对应关系中删除包括第二业务报文的报文标识信息和第三接收时间戳的记录。Optionally, the third receiving timestamp is obtained from the correspondence between the message identification information and the receiving timestamp, and the message identifier including the second service message is also deleted from the correspondence between the message identification information and the receiving timestamp Record of information and third reception timestamp.
可选的,在第二业务报文为MPLS报文时,在从第二业务报文的第一字段中提取第三接收时间戳后,还可以从第二业务报文中删除第一字段。Optionally, when the second service packet is an MPLS packet, after extracting the third reception timestamp from the first field of the second service packet, the first field may be deleted from the second service packet.
3082:根据第二业务报文包括的在其他各转发节点中的滞留时间、在第二转发节点中的滞留时间和时间阈值,获取允许该业务报文在抖动缓冲器中的缓存时间。3082: Acquire the buffering time allowed for the service packet in the jitter buffer according to the residence time in the other forwarding nodes, the residence time in the second forwarding node, and the time threshold included in the second service packet.
可选的,在第二业务报文的第二字段中包括第二业务报文在其他各转发节点中的滞留时间的情况下,从第二业务报文的第二字段中提取所有滞留时间,将提取的所有滞留时间和第二业务报文在第二转发节点中的滞留时间进行累加,得到累加值,计算时间阈值和该累加值之间的差值,将该差值确定为允许第二业务报文在抖动缓冲器中的缓存时间。或者,Optionally, in the case where the second field of the second service message includes the retention time of the second service message in other forwarding nodes, extract all the retention time from the second field of the second service message, Accumulate all the extracted detention time and the detention time of the second service message in the second forwarding node to obtain the accumulated value, calculate the difference between the time threshold and the accumulated value, and determine the difference as allowing the second The buffering time of service packets in the jitter buffer. or,
可选的,在第二业务报文的第二字段中包括滞留总时间的情况下,从第二业务报文的第二字段中提取该滞留总时间,将该滞留总时间和第二业务报文在第二转发节点中的滞留时间进行累加,得到累加值,计算时间阈值和该累加值之间的差值,将该差值确定为允许第二业务报文在抖动缓冲器中的缓存时间。Optionally, when the total detention time is included in the second field of the second service message, the total detention time is extracted from the second field of the second service message, and the total detention time and the second service report are The retention time of the message in the second forwarding node is accumulated to obtain the accumulated value, and the difference between the time threshold and the accumulated value is calculated, and the difference is determined as the time allowed for the second service message to be buffered in the jitter buffer .
可选的,在第二业务报文MPLS报文时,在从第二业务报文中的第二字段中提取出所有滞留时间或滞留总时间后,还可以从第二业务报文中删除第二字段。Optionally, in the second service message MPLS message, after extracting all the detention time or total detention time from the second field in the second service message, the second service message can also be deleted from the second service message. Two fields.
可选的,参见图12,在第二转发节点采用了1588技术的TC模式的情况下,第二转发节点的处理器在向第六通信接口发送第二业务报文之前,将第二业务报文的第二字段的内容替换为差值TS2-t5。则在本步骤中,从本地时钟获取的第一时间戳是个数值,假设第一时间戳为t6,从第二业务报文的第二字段中读取该差值TS2-t5,将该差值TS2-t5与该数值t6进行累加,得到累加值为TS2+t6-t5。Optionally, referring to FIG. 12, when the second forwarding node adopts the TC mode of the 1588 technology, the processor of the second forwarding node sends the second service packet to the sixth communication interface before sending the second service packet to the sixth communication interface. The content of the second field of the text is replaced with the difference TS2-t5. Then in this step, the first time stamp obtained from the local clock is a numerical value. Assuming that the first time stamp is t6, the difference TS2-t5 is read from the second field of the second service packet, and the difference is TS2-t5 is accumulated with the value t6, and the accumulated value is TS2+t6-t5.
步骤309:第二转发节点在第二业务报文在抖动缓冲器中缓存的时间达到允许的缓存时间时,删除第二业务报文中的滞留时间得到第一业务报文,发送第一业务报文。Step 309: When the buffering time of the second service packet in the jitter buffer reaches the allowable buffering time, the second forwarding node deletes the detention time in the second service packet to obtain the first service packet, and sends the first service packet Text.
在本步骤中,第二转发节点的第六通信接口中的处理芯片检测出第二业务报文在抖动缓冲器中缓存的时间达到允许的缓存时间时,通过第六通信接口中的收发器向第二终端发送第二业务报文。In this step, when the processing chip in the sixth communication interface of the second forwarding node detects that the buffering time of the second service packet in the jitter buffer reaches the allowable buffer time, it sends the data to the receiver through the transceiver in the sixth communication interface. The second terminal sends the second service message.
第二终端也可以向第一终端发送业务报文,第二终端发送的业务报文在第二传输隧道上传输的过程和第一终端发送的业务报文在第一传输隧道上传输的过程相同,在此不再详细说明。The second terminal may also send a service message to the first terminal. The transmission process of the service message sent by the second terminal on the second transmission tunnel is the same as the transmission process of the service message sent by the first terminal on the first transmission tunnel. , I won’t explain it in detail here.
在本申请实施例中,位于第一传输隧道的首节点位置的第一转发节点在接收到第一业务报文时获取接收第一业务报文的第一接收时间戳,在第一业务报文到达第一转发节点的第二通信接口时获取当前的第二时间戳,根据第一接收时间戳和第二时间戳获取第一业务报文在第一转发节点中的滞留时间。由于第一接收时间戳和第二时间戳均是基于第一转发节点的本地时钟获取的,不会受到攻击的影响,所以能够准确地获取到该滞留时间,这样可能将该滞留时间添加到第一业务报文中得到第二业务报文,再发送第二业务报文。位于第一传输隧道的中间节点位置的第三转发节点在接收到第二报文业务时获取接收第二业务报文的第二接收时间戳,在第二业务报文到达第三转发节点的第四通信接口时获取当前的第三时间戳,根据第二接收时间戳和第三时间戳获取第二业务报文在第三转发节点中的滞留时间。由于第二接收时间戳和第三时间戳均是基于第三转发节点的本地时钟获取的,也不会受到攻击的影响,所以能够准确地获取到该滞留时间,这样可能将该滞留时间添加到第二业务报文中,再发送第二业务报文。这样位于第一传输隧道的末尾节点位置的第二转发节点在接收到第二业务报文时,第二业务报文包括第二业务报文在已经过的每个转发节点上的滞留时间,从而基于该业务报文可以获取到滞留总时间,该滞留总时间等于第二业务报文在已经过的每个转发节点上的滞留时间之和,根据该滞留总时间和时间阈值,获取第二业务报文在第二转发节点上的允许滞留时间,在第二业务报文在第二转发节点上的滞留时间达到该允许滞留时间时向第二终端发送第二业务报文。其中,时间阈值等于该滞留总时间和该允许滞留时间之和,这样第二终端接收到第二业务报文后,测量得到的第二业务报文的在第一传输隧道上的第一传输时间等于该时间阈值加上第二业务报文在第一传输隧道经过的线缆上的传输时间。由于不同业务报文在第一传输隧道经过的线缆上的传输时间基本不变,这样第二终端接收不同的业务报文时,保证第二终端测量出的不同业务报文在第一传输隧道上的第一传输时间的变化值不超过变化值阈值。由于该时间阈值是第一转发节点和第二转发节点约定的,第一转发节点和第二转发节点使用相同的时间阈值,所以保证第二终端测量的业务报文在第一传输隧道上的第一传输时间和第一终端测量的业务报文在第二传输隧道上的第二传输时间之间的差值不超过差值阈值。In the embodiment of the present application, the first forwarding node located at the head node of the first transmission tunnel obtains the first reception timestamp for receiving the first service packet when receiving the first service packet, and the When arriving at the second communication interface of the first forwarding node, the current second timestamp is obtained, and the residence time of the first service packet in the first forwarding node is obtained according to the first receiving timestamp and the second timestamp. Since both the first receiving timestamp and the second timestamp are obtained based on the local clock of the first forwarding node and will not be affected by the attack, the detention time can be accurately obtained, which may add the detention time to the first A second service message is obtained from a service message, and then the second service message is sent. The third forwarding node located at the intermediate node of the first transmission tunnel obtains the second receiving timestamp of receiving the second service packet when receiving the second packet service, and the second receiving timestamp when the second service packet reaches the third forwarding node In the fourth communication interface, the current third time stamp is acquired, and the residence time of the second service packet in the third forwarding node is acquired according to the second receiving time stamp and the third time stamp. Since the second receiving timestamp and the third timestamp are both obtained based on the local clock of the third forwarding node, and will not be affected by the attack, the detention time can be accurately obtained, which may add the detention time to In the second service message, the second service message is sent again. In this way, when the second forwarding node located at the end node of the first transmission tunnel receives the second service packet, the second service packet includes the detention time of the second service packet on each forwarding node that has passed, thereby Based on the service message, the total detention time can be obtained, and the total detention time is equal to the sum of the detention time of the second service message on each forwarding node that has passed, and the second service is obtained according to the total detention time and the time threshold. The allowable detention time of the message on the second forwarding node, and the second service message is sent to the second terminal when the detention time of the second service message on the second forwarding node reaches the allowable detention time. Wherein, the time threshold is equal to the sum of the total detention time and the allowable detention time, so that after the second terminal receives the second service packet, the measured first transmission time of the second service packet on the first transmission tunnel It is equal to the time threshold plus the transmission time of the second service packet on the cable passing through the first transmission tunnel. Since the transmission time of different service packets on the cable passing through the first transmission tunnel is basically unchanged, when the second terminal receives different service packets, it is ensured that the different service packets measured by the second terminal are in the first transmission tunnel. The change value of the first transmission time above does not exceed the change value threshold. Since the time threshold is agreed upon by the first forwarding node and the second forwarding node, and the first forwarding node and the second forwarding node use the same time threshold, it is ensured that the service packet measured by the second terminal is on the first transmission tunnel. The difference between a transmission time and the second transmission time of the service packet measured by the first terminal on the second transmission tunnel does not exceed the difference threshold.
参见图14,本申请实施例提供一种通信装置400,所述装置400可以部署在上述第一转发节点中,包括:Referring to FIG. 14, an embodiment of the present application provides a communication device 400. The device 400 may be deployed in the foregoing first forwarding node and includes:
接收单元401,用于接收第一业务报文,所述装置400是传输隧道经过的除末尾节点以外的其他节点,该传输隧道为用于传输第一业务报文的隧道;The receiving unit 401 is configured to receive a first service packet, the device 400 is a node other than the end node that the transmission tunnel passes through, and the transmission tunnel is a tunnel for transmitting the first service packet;
处理单元402,用于获取第一业务报文在第一转发节点中的滞留时间;The processing unit 402 is configured to obtain the residence time of the first service packet in the first forwarding node;
发送单元403,用于发送第二业务报文,第二业务报文包括该滞留时间。The sending unit 403 is configured to send a second service message, where the second service message includes the detention time.
可选的,处理单元402获取滞留时间的详细实现过程,可以参见图6所示实施例的步骤302和步骤305中的相关内容。Optionally, for the detailed implementation process of the processing unit 402 acquiring the residence time, reference may be made to related content in step 302 and step 305 of the embodiment shown in FIG. 6.
可选的,处理单元402,用于:Optionally, the processing unit 402 is configured to:
获取第一业务报文的接收时间戳和当前时间戳;Acquiring the reception timestamp and current timestamp of the first service message;
根据该接收时间戳和当前时间戳获取第一业务报文在第一转发节点中的滞留时间。Obtain the residence time of the first service packet in the first forwarding node according to the receiving timestamp and the current timestamp.
可选的,处理单元402获取接收时间戳和当前时间戳的详细实现过程,可以参见图6所示实施例的步骤302和步骤305中的相关内容。Optionally, for the detailed implementation process of the processing unit 402 acquiring the receiving time stamp and the current time stamp, reference may be made to related content in step 302 and step 305 in the embodiment shown in FIG. 6.
可选的,处理单元402,用于在接收单元401接收第一业务报文时,在第一业务报文中添加第一业务报文的接收时间戳;从第一业务报文中提取接收时间戳。Optionally, the processing unit 402 is configured to add the receiving time stamp of the first service packet to the first service packet when the receiving unit 401 receives the first service packet; and extract the receiving time from the first service packet stamp.
可选的,处理单元,用于在接收单元401接收第一业务报文时,保存第一业务报文的报文标识信息与第一业务报文的接收时间戳之间的对应关系;根据第一业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取第一业务报文的接收时间戳。Optionally, the processing unit is configured to store the correspondence between the message identification information of the first service message and the reception timestamp of the first service message when the receiving unit 401 receives the first service message; The message identification information of a service message obtains the reception timestamp of the first service message from the correspondence between the message identification information and the reception timestamp.
可选的,在所述装置400是该传输隧道的非首节点的情况,第一业务报文中包括滞留总时间,滞留总时间是第一业务报文在已经过的各转发节点中的滞留时间之和;Optionally, in the case that the device 400 is a non-head node of the transmission tunnel, the first service message includes the total detention time, and the total detention time is the detention of the first service message in each forwarding node that has passed. Sum of time
处理单元402,还用于:The processing unit 402 is also used for:
将第一业务报文包括的滞留总时间与该滞留时间进行累加得到累加值,将第一业务报文包括的滞留总时间替换为累加值,得到第二业务报文。The total detention time included in the first service message and the detention time are accumulated to obtain an accumulated value, and the total detention time included in the first service message is replaced with the accumulated value to obtain the second service message.
在本申请实施例中,接收单元接收第一业务报文,处理单元获取第一业务报文在第一转发节点中的滞留时间;发送单元发送第二业务报文,第二业务报文包括该滞留时间。由于处理单元能够准确地获取到该滞留时间,在第二业务报文中添加该滞留时间,这样该传输隧道的末尾节点在接收到第二业务报文时,根据第二业务报文中的各转发节点添加的滞留时间能够准确地获取到业务报文在传输隧道中的传输时间,从而提高计算业务报文的传输时间的准确性,以保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值。In the embodiment of the present application, the receiving unit receives the first service packet, the processing unit obtains the residence time of the first service packet in the first forwarding node; the sending unit sends the second service packet, and the second service packet includes the Detention time. Since the processing unit can accurately obtain the detention time, add the detention time to the second service message, so that the end node of the transmission tunnel receives the second service message according to the information in the second service message. The detention time added by the forwarding node can accurately obtain the transmission time of the business message in the transmission tunnel, thereby improving the accuracy of calculating the transmission time of the business message, so as to ensure that the business message received by the power equipment every time is on the transmission tunnel The change value of the transmission time does not exceed the preset threshold.
参见图15,本申请实施例提供了一种通信装置500,所述装置500部署在上述第二转发节点中,包括:Referring to FIG. 15, an embodiment of the present application provides a communication device 500, where the device 500 is deployed in the foregoing second forwarding node and includes:
接收单元501,用于接收第二业务报文,第二业务报文包括第二业务报文在所述装置500之前的各转发节点上的滞留时间,所述装置500是传输隧道的末尾节点,该传输隧道为用于传输第二业务报文的隧道,所述装置500之前的各转发节点是该传输隧道经过的节点;The receiving unit 501 is configured to receive a second service packet, the second service packet including the residence time of the second service packet on each forwarding node before the device 500, and the device 500 is the end node of the transmission tunnel, The transmission tunnel is a tunnel for transmitting the second service packet, and each forwarding node before the apparatus 500 is a node through which the transmission tunnel passes;
处理单元502,用于根据第二业务报文在各转发节点中的滞留时间和时间阈值,获取第二业务报文在所述装置500中的允许滞留时间;The processing unit 502 is configured to obtain the allowable residence time of the second service packet in the device 500 according to the residence time and the time threshold of the second service packet in each forwarding node;
发送单元503,用于在第二业务报文在所述装置500中的滞留时间达到该允许滞留时间时发送第二业务报文。The sending unit 503 is configured to send the second service message when the detention time of the second service message in the device 500 reaches the allowable detention time.
可选的,处理单元502获取允许滞留时间的详细实现过程,可以参见图6所示实施例的步骤308中的相关内容。Optionally, the detailed implementation process for the processing unit 502 to obtain the allowable residence time may refer to related content in step 308 of the embodiment shown in FIG. 6.
可选的,处理单元502,用于:Optionally, the processing unit 502 is configured to:
获取第二业务报文已在所述装置500中的滞留时间,第二业务报文已在所述装置500中的滞留时间是指从接收单元501接收到第二业务报文,到将第二业务报文缓存到抖动缓冲器时的时间,抖动缓冲器是所述装置500中的缓存器;Obtaining the detention time of the second service message in the apparatus 500. The detention time of the second service message in the apparatus 500 means that the second service message is received from the receiving unit 501 until the second service message is received. The time when the service message is buffered in the jitter buffer, where the jitter buffer is the buffer in the device 500;
根据第二业务报文在各转发节点中的滞留时间、在所述装置500中的滞留时间和时间 阈值,获取允许第二业务报文在抖动缓冲器中的缓存时间。According to the residence time of the second service packet in each forwarding node, the residence time in the device 500, and the time threshold, the buffering time of the second service packet allowed in the jitter buffer is acquired.
可选的,处理单元502获取允许第二业务报文在抖动缓冲器中的缓存时间的详细实现过程,可以参见图6所示实施例的步骤3081至3082中的相关内容。Optionally, for the detailed implementation process of the processing unit 502 obtaining the allowed buffering time of the second service packet in the jitter buffer, refer to related content in steps 3081 to 3082 of the embodiment shown in FIG. 6.
可选的,处理单元502,用于:Optionally, the processing unit 502 is configured to:
获取第二业务报文的接收时间戳以及获取在将第二业务报文缓存到抖动缓冲器时的第一时间戳;Acquiring the receiving timestamp of the second service message and acquiring the first timestamp when the second service message is buffered in the jitter buffer;
根据接收时间戳和第一时间戳,获取第二业务报文已在所述装置500中的滞留时间。According to the receiving timestamp and the first timestamp, the residence time of the second service message in the device 500 is obtained.
可选的,处理单元502,用于在接收单元501接收第二业务报文时,在第二业务报文中添加第二业务报文的接收时间戳;从第二业务报文中提取该接收时间戳。Optionally, the processing unit 502 is configured to add the receiving timestamp of the second service packet to the second service packet when the receiving unit 501 receives the second service packet; extract the received time stamp from the second service packet Timestamp.
可选的,处理单元502,用于在接收单元501接收第二业务报文时,保存第二业务报文的报文标识信息与第二业务报文的接收时间戳之间的对应关系;根据第二业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取第二业务报文的接收时间戳。Optionally, the processing unit 502 is configured to store the correspondence between the message identification information of the second service message and the reception timestamp of the second service message when the receiving unit 501 receives the second service message; The message identification information of the second service message obtains the reception timestamp of the second service message from the correspondence between the message identification information and the reception timestamp.
在本申请实施例中,接收单元接收第二业务报文,第二业务报文包括第二业务报文在该装置之前的各转发节点上的滞留时间,处理单元根据第二业务报文在各转发节点中的滞留时间和时间阈值,获取第二业务报文在第二转发节点中的允许滞留时间。发送单元在第二业务报文在该装置中的滞留时间达到允许滞留时间时发送第二业务报文。由于第二业务报文包括各转发节点上的滞留时间,对于任一个转发节点,该转发节点能准确地获取到第二业务报文在自身上的滞留时间,这样处理单元根据各转发节点的滞留时间可以准确地获取第二业务报文在该装置中的允许滞留时间,在第二业务报文在该装置中的滞留时间达到允许滞留时间时发送第二业务报文,这样可以保证电力设备每次接收的业务报文在传输隧道上的传输时间的变化值不超过预设阈值。In the embodiment of the present application, the receiving unit receives the second service message, the second service message includes the residence time of the second service message on each forwarding node before the device, and the processing unit according to the second service message in each forwarding node The detention time and the time threshold in the forwarding node are used to obtain the allowable detention time of the second service packet in the second forwarding node. The sending unit sends the second service message when the detention time of the second service message in the device reaches the allowable detention time. Since the second service message includes the detention time on each forwarding node, for any forwarding node, the forwarding node can accurately obtain the detention time of the second service message on itself, so that the processing unit can be based on the detention time of each forwarding node. Time can accurately obtain the allowable detention time of the second service message in the device, and send the second service message when the detention time of the second service message in the device reaches the allowable detention time, so as to ensure that every power equipment The change value of the transmission time of the received service packet on the transmission tunnel does not exceed the preset threshold.
参见图16,本申请实施例提供了一种通信系统600,所述通信系统600包括:第一转发节点601和第二转发节点601,第一转发节点601可以为上述图14所述的装置,第二转发节点可以为上述图15所述的装置。Referring to FIG. 16, an embodiment of the present application provides a communication system 600. The communication system 600 includes a first forwarding node 601 and a second forwarding node 601. The first forwarding node 601 may be the device described in FIG. The second forwarding node may be the device described in FIG. 15 above.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program to instruct relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本申请一个实施例,并不用以限制本申请,凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above is only an embodiment of the application and is not intended to limit the application. Any modification, equivalent replacement, improvement, etc. made within the principles of the application shall be included in the protection scope of the application.

Claims (23)

  1. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    第一转发节点接收第一业务报文,所述第一转发节点是传输隧道经过的除末尾节点以外的其他节点,所述传输隧道为用于传输所述第一业务报文的隧道;A first forwarding node receives a first service packet, the first forwarding node is a node other than the end node through which a transmission tunnel passes, and the transmission tunnel is a tunnel for transmitting the first service packet;
    所述第一转发节点获取所述第一业务报文在所述第一转发节点中的滞留时间;Acquiring, by the first forwarding node, the residence time of the first service packet in the first forwarding node;
    所述第一转发节点发送第二业务报文,所述第二业务报文包括所述滞留时间。The first forwarding node sends a second service packet, and the second service packet includes the residence time.
  2. 如权利要求1所述的方法,其特征在于,所述第一转发节点获取所述第一业务报文在所述第一转发节点中的滞留时间,包括:The method according to claim 1, wherein the obtaining, by the first forwarding node, the detention time of the first service packet in the first forwarding node comprises:
    所述第一转发节点获取所述第一业务报文的接收时间戳和当前时间戳;Acquiring, by the first forwarding node, the reception timestamp and the current timestamp of the first service message;
    所述第一转发节点根据所述接收时间戳和所述当前时间戳获取所述第一业务报文在所述第一转发节点中的滞留时间。The first forwarding node obtains the residence time of the first service packet in the first forwarding node according to the receiving timestamp and the current timestamp.
  3. 如权利要求2所述的方法,其特征在于,所述第一转发节点获取所述第一业务报文的接收时间戳之前,还包括:The method according to claim 2, wherein before the first forwarding node obtains the receiving timestamp of the first service message, the method further comprises:
    所述第一转发节点在接收所述第一业务报文时,在所述第一业务报文中添加所述第一业务报文的接收时间戳;When the first forwarding node receives the first service packet, adding the reception timestamp of the first service packet to the first service packet;
    所述第一转发节点获取所述第一业务报文的接收时间戳,包括:The acquiring, by the first forwarding node, the receiving timestamp of the first service message includes:
    所述第一转发节点从所述第一业务报文中提取所述接收时间戳。The first forwarding node extracts the reception timestamp from the first service message.
  4. 如权利要求2所述的方法,其特征在于,所述第一转发节点获取所述第一业务报文的接收时间戳之前,还包括:The method according to claim 2, wherein before the first forwarding node obtains the receiving timestamp of the first service message, the method further comprises:
    所述第一转发节点在接收所述第一业务报文时,保存所述第一业务报文的报文标识信息与所述第一业务报文的接收时间戳之间的对应关系;When the first forwarding node receives the first service message, save the correspondence between the message identification information of the first service message and the reception timestamp of the first service message;
    所述第一转发节点获取所述第一业务报文的接收时间戳,包括:The acquiring, by the first forwarding node, the receiving timestamp of the first service message includes:
    所述第一转发节点根据所述第一业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取所述第一业务报文的接收时间戳。The first forwarding node obtains the reception timestamp of the first service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the first service message.
  5. 如权利要求1至4任一项所述的方法,其特征在于,在所述第一转发节点是所述传输隧道的非首节点的情况,所述第一业务报文中包括滞留总时间,所述滞留总时间是所述第一业务报文在已经过的各转发节点中的滞留时间之和;The method according to any one of claims 1 to 4, wherein in the case that the first forwarding node is a non-head node of the transmission tunnel, the first service message includes a total detention time, The total detention time is the sum of the detention time of the first service message in each forwarding node that has passed;
    所述第一转发节点发送第二业务报文之前,还包括:Before the first forwarding node sends the second service message, the method further includes:
    所述第一转发节点将所述第一业务报文包括的滞留总时间与所述滞留时间进行累加得到累加值,将所述第一业务报文包括的滞留总时间替换为所述累加值,得到所述第二业务报文。The first forwarding node accumulates the total detention time included in the first service message and the detention time to obtain an accumulated value, and replaces the total detention time included in the first service message with the accumulated value, Obtain the second service message.
  6. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    第二转发节点接收第二业务报文,所述第二业务报文包括所述第二业务报文在所述第二转发节点之前的各转发节点上的滞留时间,所述第二转发节点是传输隧道的末尾节点,所述传输隧道为用于传输所述第二业务报文的隧道,所述第二转发节点之前的各转发节点是所述传输隧道经过的节点;The second forwarding node receives a second service packet, where the second service packet includes the residence time of the second service packet on each forwarding node before the second forwarding node, and the second forwarding node is An end node of a transmission tunnel, where the transmission tunnel is a tunnel for transmitting the second service packet, and each forwarding node before the second forwarding node is a node through which the transmission tunnel passes;
    所述第二转发节点根据所述第二业务报文在所述各转发节点中的滞留时间和时间阈 值,获取所述第二业务报文在所述第二转发节点中的允许滞留时间;Acquiring, by the second forwarding node, the allowable residence time of the second service packet in the second forwarding node according to the residence time and the time threshold of the second service packet in the forwarding nodes;
    所述第二转发节点在所述第二业务报文在所述第二转发节点中的滞留时间达到所述允许滞留时间时发送所述第二业务报文。The second forwarding node sends the second service message when the detention time of the second service message in the second forwarding node reaches the allowable detention time.
  7. 如权利要求6所述的方法,其特征在于,所述第二转发节点根据所述第二业务报文在所述各转发节点中的滞留时间和时间阈值获取所述第二业务报文在所述第二转发节点中的允许滞留时间,包括:The method according to claim 6, wherein the second forwarding node obtains the presence of the second service message in the place according to the residence time and the time threshold of the second service message in the forwarding nodes. The allowable stay time in the second forwarding node includes:
    所述第二转发节点获取所述第二业务报文已在所述第二转发节点中的滞留时间,所述第二业务报文已在所述第二转发节点中的滞留时间是指从所述第二转发节点接收到所述第二业务报文,到将所述第二业务报文缓存到抖动缓冲器时的时间,所述抖动缓冲器是所述第二转发节点中的缓存器;The second forwarding node obtains the detention time of the second service packet in the second forwarding node, and the detention time of the second service packet in the second forwarding node refers to The time from when the second forwarding node receives the second service packet to the time when the second service packet is buffered in a jitter buffer, where the jitter buffer is a buffer in the second forwarding node;
    所述第二转发节点根据所述第二业务报文在所述各转发节点中的滞留时间、在所述第二转发节点中的滞留时间和时间阈值,获取允许所述第二业务报文在所述抖动缓冲器中的缓存时间。The second forwarding node obtains permission for the second service message to be allowed in the second forwarding node according to the detention time of the second service message in the respective forwarding nodes, the detention time in the second forwarding node, and the time threshold. The buffer time in the jitter buffer.
  8. 如权利要求6或7所述的方法,其特征在于,所述第二转发节点获取所述第二业务报文已在所述第二转发节点中的滞留时间,包括:The method according to claim 6 or 7, wherein the acquiring, by the second forwarding node, the detention time of the second service packet in the second forwarding node comprises:
    所述第二转发节点获取所述第二业务报文的接收时间戳以及获取在将所述第二业务报文缓存到所述抖动缓冲器时的第一时间戳;Acquiring, by the second forwarding node, the receiving timestamp of the second service message and acquiring the first timestamp when the second service message is buffered in the jitter buffer;
    所述第二转发节点根据所述接收时间戳和所述第一时间戳,获取所述第二业务报文已在所述第二转发节点中的滞留时间。The second forwarding node obtains the residence time of the second service packet in the second forwarding node according to the receiving timestamp and the first timestamp.
  9. 如权利要求8所述的方法,其特征在于,所述第二转发节点获取所述第二业务报文的接收时间戳之前,还包括:The method according to claim 8, wherein before the second forwarding node obtains the receiving timestamp of the second service packet, the method further comprises:
    所述第二转发节点在接收所述第二业务报文时,在所述第二业务报文中添加所述第二业务报文的接收时间戳;When the second forwarding node receives the second service packet, add the reception timestamp of the second service packet to the second service packet;
    所述第二转发节点获取所述第二业务报文的接收时间戳,包括:The acquiring, by the second forwarding node, the receiving timestamp of the second service packet includes:
    所述第二转发节点从所述第二业务报文中提取所述接收时间戳。The second forwarding node extracts the reception timestamp from the second service message.
  10. 如权利要求8所述的方法,其特征在于,所述第二转发节点获取所述第二业务报文的接收时间戳之前,还包括:The method according to claim 8, wherein before the second forwarding node obtains the receiving timestamp of the second service packet, the method further comprises:
    所述第二转发节点在接收所述第二业务报文时,保存所述第二业务报文的报文标识信息与所述第二业务报文的接收时间戳之间的对应关系;When the second forwarding node receives the second service message, save the correspondence between the message identification information of the second service message and the reception timestamp of the second service message;
    所述第二转发节点获取所述第二业务报文的接收时间戳,包括:The acquiring, by the second forwarding node, the receiving timestamp of the second service packet includes:
    所述第二转发节点根据所述第二业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取所述第二业务报文的接收时间戳。The second forwarding node obtains the reception timestamp of the second service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the second service message.
  11. 一种通信装置,其特征在于,包括:A communication device, characterized in that it comprises:
    接收单元,用于接收第一业务报文,所述装置是传输隧道经过的除末尾节点以外的其他节点,所述传输隧道为用于传输所述第一业务报文的隧道;A receiving unit, configured to receive a first service message, the device is a node other than the end node that a transmission tunnel passes through, and the transmission tunnel is a tunnel for transmitting the first service message;
    处理单元,用于获取所述第一业务报文在所述第一转发节点中的滞留时间;A processing unit, configured to obtain the residence time of the first service packet in the first forwarding node;
    发送单元,用于发送第二业务报文,所述第二业务报文包括所述滞留时间。The sending unit is configured to send a second service message, where the second service message includes the residence time.
  12. 如权利要求11所述的装置,其特征在于,所述处理单元,用于:The device according to claim 11, wherein the processing unit is configured to:
    获取所述第一业务报文的接收时间戳和当前时间戳;Acquiring the receiving timestamp and the current timestamp of the first service message;
    根据所述接收时间戳和所述当前时间戳获取所述第一业务报文在所述第一转发节点中的滞留时间。Acquire the residence time of the first service packet in the first forwarding node according to the receiving timestamp and the current timestamp.
  13. 如权利要求12所述的装置,其特征在于,The device of claim 12, wherein:
    所述处理单元,用于在所述接收单元接收所述第一业务报文时,在所述第一业务报文中添加所述第一业务报文的接收时间戳;从所述第一业务报文中提取所述接收时间戳。The processing unit is configured to add the receiving timestamp of the first service packet to the first service packet when the receiving unit receives the first service packet; Extract the receiving timestamp from the message.
  14. 如权利要求12所述的装置,其特征在于,The device of claim 12, wherein:
    所述处理单元,用于在所述接收单元接收所述第一业务报文时,保存所述第一业务报文的报文标识信息与所述第一业务报文的接收时间戳之间的对应关系;根据所述第一业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取所述第一业务报文的接收时间戳。The processing unit is configured to store the difference between the message identification information of the first service message and the reception timestamp of the first service message when the receiving unit receives the first service message Correspondence; obtaining the reception timestamp of the first service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the first service message.
  15. 如权利要求11至14任一项所述的装置,其特征在于,在所述装置是所述传输隧道的非首节点的情况,所述第一业务报文中包括滞留总时间,所述滞留总时间是所述第一业务报文在已经过的各转发节点中的滞留时间之和;The device according to any one of claims 11 to 14, wherein in the case that the device is a non-head node of the transmission tunnel, the first service message includes a total detention time, and the detention The total time is the sum of the residence time of the first service message in each forwarding node that has passed;
    所述处理单元,还用于:The processing unit is also used for:
    将所述第一业务报文包括的滞留总时间与所述滞留时间进行累加得到累加值,将所述第一业务报文包括的滞留总时间替换为所述累加值,得到所述第二业务报文。The total detention time included in the first service message and the detention time are accumulated to obtain an accumulated value, and the total detention time included in the first service message is replaced with the accumulated value to obtain the second service Message.
  16. 一种通信装置,其特征在于,包括:A communication device, characterized in that it comprises:
    接收单元,用于接收第二业务报文,所述第二业务报文包括所述第二业务报文在所述装置之前的各转发节点上的滞留时间,所述装置是传输隧道的末尾节点,所述传输隧道为用于传输所述第二业务报文的隧道,所述装置之前的各转发节点是所述传输隧道经过的节点;The receiving unit is configured to receive a second service message, the second service message including the residence time of the second service message on each forwarding node before the device, and the device is the end node of the transmission tunnel , The transmission tunnel is a tunnel for transmitting the second service packet, and each forwarding node before the device is a node through which the transmission tunnel passes;
    处理单元,用于根据所述第二业务报文在所述各转发节点中的滞留时间和时间阈值,获取所述第二业务报文在所述装置中的允许滞留时间;A processing unit, configured to obtain the allowable residence time of the second service packet in the device according to the residence time and the time threshold of the second service packet in the forwarding nodes;
    发送单元,用于在所述第二业务报文在所述装置中的滞留时间达到所述允许滞留时间时发送所述第二业务报文。The sending unit is configured to send the second service message when the stay time of the second service message in the device reaches the allowable stay time.
  17. 如权利要求16所述的装置,其特征在于,所述处理单元,用于:The device according to claim 16, wherein the processing unit is configured to:
    获取所述第二业务报文已在所述装置中的滞留时间,所述第二业务报文已在所述装置中的滞留时间是指从所述接收单元接收到所述第二业务报文,到将所述第二业务报文缓存到抖动缓冲器时的时间,所述抖动缓冲器是所述装置中的缓存器;Acquiring the retention time of the second service message in the device, where the retention time of the second service message in the device refers to the reception of the second service message from the receiving unit , It is the time when the second service message is buffered in the jitter buffer, where the jitter buffer is a buffer in the device;
    根据所述第二业务报文在所述各转发节点中的滞留时间、在所述装置中的滞留时间和时间阈值,获取允许所述第二业务报文在所述抖动缓冲器中的缓存时间。According to the residence time of the second service packet in the forwarding nodes, the residence time in the device, and the time threshold, obtain the buffer time allowed for the second service packet in the jitter buffer .
  18. 如权利要求16或17所述的装置,其特征在于,所述处理单元,用于:The device according to claim 16 or 17, wherein the processing unit is configured to:
    获取所述第二业务报文的接收时间戳以及获取在将所述第二业务报文缓存到所述抖动缓冲器时的第一时间戳;Acquiring the receiving timestamp of the second service message and acquiring the first timestamp when the second service message is buffered in the jitter buffer;
    根据所述接收时间戳和所述第一时间戳,获取所述第二业务报文已在所述装置中的滞留时间。According to the receiving timestamp and the first timestamp, obtaining the residence time of the second service message in the device.
  19. 如权利要求18所述的装置,其特征在于,The device of claim 18, wherein:
    所述处理单元,用于在所述接收单元接收所述第二业务报文时,在所述第二业务报文中添加所述第二业务报文的接收时间戳;从所述第二业务报文中提取所述接收时间戳。The processing unit is configured to add a receiving timestamp of the second service packet to the second service packet when the receiving unit receives the second service packet; Extract the receiving timestamp from the message.
  20. 如权利要求18所述的装置,其特征在于,The device of claim 18, wherein:
    所述处理单元,用于在所述接收单元接收所述第二业务报文时,保存所述第二业务报文的报文标识信息与所述第二业务报文的接收时间戳之间的对应关系;根据所述第二业务报文的报文标识信息从报文标识信息与接收时间戳的对应关系中获取所述第二业务报文的接收时间戳。The processing unit is configured to store the difference between the message identification information of the second service message and the reception timestamp of the second service message when the receiving unit receives the second service message Correspondence; obtaining the reception timestamp of the second service message from the correspondence between the message identification information and the reception timestamp according to the message identification information of the second service message.
  21. 一种通信系统,其特征在于,包括:如权利要求11至15任一项所述的装置和/或如权利要求16至20任一项所述的装置。A communication system, characterized by comprising: the device according to any one of claims 11 to 15 and/or the device according to any one of claims 16 to 20.
  22. 一种计算机可读存储介质,其特征在于,包括程序,当其在计算机上运行时,使得计算机执行权利要求1-10中任一所述的方法。A computer-readable storage medium, characterized by comprising a program, which when running on a computer, causes the computer to execute the method described in any one of claims 1-10.
  23. 一种计算机程序产品,其特征在于,包括程序,当其在计算机上运行时,使得计算机执行权利要求1-10中任一所述的方法。A computer program product, characterized by comprising a program, which when running on a computer, causes the computer to execute the method described in any one of claims 1-10.
PCT/CN2020/121129 2019-10-18 2020-10-15 Communication method, apparatus and system WO2021073570A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910996343.0A CN112688751A (en) 2019-10-18 2019-10-18 Communication method, device and system
CN201910996343.0 2019-10-18

Publications (1)

Publication Number Publication Date
WO2021073570A1 true WO2021073570A1 (en) 2021-04-22

Family

ID=75445558

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/121129 WO2021073570A1 (en) 2019-10-18 2020-10-15 Communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN112688751A (en)
WO (1) WO2021073570A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220775A (en) * 2013-03-21 2013-07-24 京信通信系统(中国)有限公司 Method, device and system for achieving data synchronization
CN106330371A (en) * 2015-06-16 2017-01-11 深圳市中兴微电子技术有限公司 Information bearing method and network architecture
CN107113236A (en) * 2014-11-05 2017-08-29 瑞典爱立信有限公司 Holdup time information is transmitted in a network
US10374938B1 (en) * 2012-12-27 2019-08-06 Sitting Man, Llc Routing methods, systems, and computer program products

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10374938B1 (en) * 2012-12-27 2019-08-06 Sitting Man, Llc Routing methods, systems, and computer program products
CN103220775A (en) * 2013-03-21 2013-07-24 京信通信系统(中国)有限公司 Method, device and system for achieving data synchronization
CN107113236A (en) * 2014-11-05 2017-08-29 瑞典爱立信有限公司 Holdup time information is transmitted in a network
CN106330371A (en) * 2015-06-16 2017-01-11 深圳市中兴微电子技术有限公司 Information bearing method and network architecture

Also Published As

Publication number Publication date
CN112688751A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
EP3975469A1 (en) Link group configuration method and device
WO2021180073A1 (en) Packet transmission method and device, network node, and storage medium
US11032205B2 (en) Flow control method and switching device
WO2020233192A1 (en) Method and apparatus for providing service for service flow
WO2020024721A1 (en) Service transmission method, device, and computer storage medium
EP4050858A1 (en) Method and device for updating mapping
WO2019071598A1 (en) Method and device for transmitting and receiving clock synchronization message
US9479619B2 (en) Transmission apparatus, transmission system, and transmission method
CN113328902B (en) Network performance detection method and device and network equipment
WO2011140945A1 (en) Service data transmission method and apparatus
WO2008080315A1 (en) A method, equipment and system for transmitting data
CN110971331A (en) Hop-by-hop time delay measurement method and system
EP4131854A1 (en) Performance measurement method and apparatus, device, and storage medium
WO2020259112A1 (en) Method for measuring transmission time delay and related device
WO2013078873A1 (en) Method and device for identifying response message
CN113162855B (en) Multicast message detection method, network equipment and system
WO2021073570A1 (en) Communication method, apparatus and system
WO2022115114A1 (en) In-band edge-to-edge round-trip time measurement
CN108243117B (en) Flow monitoring method and device and electronic equipment
WO2022042386A1 (en) Method for controlling message sending, network device and system
WO2022048466A1 (en) Operation administration and maintenance (oam) packet processing method and device
KR20060107156A (en) Asynchronous frame transmitting method for strict guarantee of super frame's start in residential ethernet
US20230388252A1 (en) Providing high assurance of end-to-end cpri circuit in a high jitter packet based fronthaul network
US11683265B2 (en) Mechanisms for packet path tracing and per-hop delay measurement in segment routing with multiprotocol label switching (SR-MPLS) networks
WO2023231428A1 (en) Ipv4 packet encapsulation method, electronic device, and computer storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1