WO2017161999A1 - Packet processing method and related device - Google Patents

Packet processing method and related device Download PDF

Info

Publication number
WO2017161999A1
WO2017161999A1 PCT/CN2017/074708 CN2017074708W WO2017161999A1 WO 2017161999 A1 WO2017161999 A1 WO 2017161999A1 CN 2017074708 W CN2017074708 W CN 2017074708W WO 2017161999 A1 WO2017161999 A1 WO 2017161999A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
video frames
group
video
message
Prior art date
Application number
PCT/CN2017/074708
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 WO2017161999A1 publication Critical patent/WO2017161999A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • H04L47/323Discarding or blocking control packets, e.g. ACK packets

Definitions

  • the present invention relates to the field of communications, and in particular, to a packet processing method and related device.
  • the data is transmitted in the form of a message
  • the message includes a packet header and a data portion (also called a payload) other than the packet header, and the data portion is used to carry the data information that the sender needs to send, and the packet
  • the header part is used to carry the sending address and the destination address of the packet; the packet needs to pass through one or more packet forwarding devices from the sending end to the receiving end, and the packet forwarding device is provided with a routing forwarding principle, for example, according to the shortest path algorithm. Forwarding, so that the path through which the message passes is the shortest.
  • multiple senders can simultaneously send packets, and multiple senders use the same packet forwarding device resources to transmit different packets.
  • the network is congested when a packet forwarding device accumulates more packets to be sent.
  • the packet forwarding device manages the queues through the congestion mechanism.
  • the queue length is reduced, which reduces the queue delay of packets and needs to maintain a large queue space to absorb bursty packets. To ensure the throughput of the queue.
  • the packet forwarding device discards some packets.
  • an equal discarding mechanism is adopted for all the packets in the data stream of the same transport service.
  • the network When the network is congested, multiple packets are accumulated in the queue of the packet forwarding device. According to the principle of queue first in, first out, packets entering the queue will be forwarded out of the queue preferentially, and packets entering the queue may be forwarded. Discarded. Therefore, when the network is congested, the probability that each packet that enters the queue is discarded is equal, which may cause important data loss rather than important data retention, thereby reducing the quality of service transmission.
  • the present invention provides a packet processing method and related equipment, which improves the quality of service transmission by preferentially discarding packets with lower priority.
  • a first aspect of the present invention provides a packet processing method, where a packet forwarding device receives a packet set of a video frame of the same video service sent by a packet sending device, where each packet in the packet set includes a priority. Level identification, and the higher the priority of the priority identifier, the greater the importance of the video frame in the packet.
  • the packet forwarding device receives the received packet according to the packet control policy.
  • the BGP controller sends the packet to the packet forwarding device.
  • the packet is sent to the packet forwarding device.
  • the packet control policy can be set to the packet forwarding device.
  • the queues on the packet forwarding device When the network is congested, the queues on the packet forwarding device will accumulate. When the queue length exceeds the packet forwarding setting. When the threshold is set by the scheduling algorithm, the packets that enter the queue may be discarded. In this method, when the packets need to be discarded, the packets with lower priority are discarded. It will be reduced, and more packets with high priority will be able to enter the queue and be forwarded successfully, so that more packets with higher priority will reach the receiving device, because the priority of the packet is higher. If the video frame is high, the importance of the video frame in the message is higher, and the quality of the video that the receiving end message receiving device can decode is higher.
  • each packet further includes the number information of the packet group in which the packet is located, and the group of packets corresponds to the data information of the same video frame, and if the packet forwarding device discards a report The other packets in the group where the packet is located will also be discarded by the packet forwarding device.
  • a video frame is encapsulated by multiple packets to form a packet group.
  • a packet in the packet group is discarded, if the discarded packet cannot be recovered, the video frame cannot be completely decoded. Therefore, other messages in the packet group cannot completely recover the original video frame at the receiving end. Therefore, even if the network is not congested, the packet forwarding device can actively discard other packets in the packet group, thereby reducing the accumulation of queues in the packet forwarding device, thereby improving the reporting.
  • the throughput of the forwarding device enables the packet forwarding device to transmit more packets.
  • the packet forwarding device sends the number information of the packet group in which the discarded packet is sent to the SDN controller, so that other packet forwarding devices on the SDN control forwarding path are in the packet group. Other packets are actively discarded.
  • the SDN controller After the other packet forwarding devices actively discard other packets in the re-scheduled packet, the throughput of other routers is provided, so that other packet forwarding devices can transmit more packets.
  • each packet further includes a dependency relationship between the packet group and another packet group, where the dependency relationship is used to indicate a reference relationship between the video frames in the packet group. If the packet forwarding device discards a group of packets, the other packet groups that depend on the group of packets will also be discarded by the packet forwarding device.
  • the packet forwarding device is a meaningless packet group.
  • the packet forwarding device discards the packet, which improves the throughput of the packet forwarding device, so that the packet forwarding device can transmit more packets.
  • the text also improves the decoding rate of the receiving device of the receiving end.
  • a second aspect of the present invention provides a packet processing method, in which a packet sending device marks a priority identifier of each to-be-sent packet of a video frame in the same video service according to the packet marking policy, and the video in the packet The greater the importance of the frame, the higher the priority of the tag.
  • the packet tagging policy can be set on the packet sending device, or can be set on the application server, and then sent by the application server to the packet.
  • the sending device sends the marked packet to the packet forwarding device.
  • the packet forwarding device can forward the packet according to the priority of the packet.
  • the packet forwarding device can forward the packet with the highest priority, or when the network is congested. Packets with lower priority are discarded first. In this way, more packets with higher priority are received at the receiving end of the packet receiving device, and the importance of the video frame in the packet with higher priority is greater, so the packet receiving device can receive more Video frames of high importance improve the quality of video service transmission.
  • the packet sending device can also add the number information of the packet group where the packet is located for each packet.
  • the packet forwarding device When the packet forwarding device decides to discard all the packets in a certain group of packets, it can check all the packets according to the number information of the packet group. If the packets with the same number information are the same group, the packets will be the same. It is discarded by the packet forwarding device, thereby improving the throughput of the packet forwarding device.
  • a reference relationship may exist between different video frames. Therefore, the packet sending device may also add a dependency relationship between the packet group and other packet groups of the packet.
  • the packet forwarding device After the packet forwarding device discards a certain group of packets, the video frames in other packet groups that depend on the packet group cannot be decoded. Therefore, the packet forwarding device can determine other packets through the dependency. Whether the group is dependent on the discarded packet group, if it is dependent, the active discarding is performed. This improves the throughput of the packet forwarding device and improves the efficiency of the video frame decoding by the receiving end packet receiving device.
  • a packet forwarding device in a third aspect of the present application, has a function of implementing the method shown in the foregoing first aspect.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the packet forwarding device provided by the third aspect of the present application includes:
  • the receiving unit is configured to receive a packet sent by the packet sending device, where the packet is a packet of a video frame of the same video service, where the packet includes a priority identifier corresponding to the packet, and the priority identifier is used for Indicates the importance of the video frame in the packet, and the video frame corresponding to the higher priority packet is more important;
  • the processing unit is configured to preferentially discard the packet with a lower priority according to the priority of the packet.
  • a message sending device having the function of implementing the method shown in the second aspect above.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the message sending device provided by the fourth aspect of the present application includes:
  • a processing unit configured to mark a priority identifier of the packet, where the packet is a packet of a video frame of the same video service, where the priority identifier is used to indicate the importance of the video frame in the packet, and the priority is higher.
  • the importance of the video frame corresponding to the message is greater;
  • the sending unit is configured to send the packet to the packet forwarding device.
  • a fifth aspect of the present invention provides a packet forwarding device, where the packet forwarding device has the function of implementing the method shown in the foregoing first aspect.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the packet forwarding device provided by the fifth aspect of the present application includes:
  • the memory, the processor, and the transceiver, the memory, the processor, and the transceiver are interconnected by a bus.
  • the memory stores computer instructions, and the processor executes the computer instructions to implement the method according to any one of the first aspects.
  • the method of message processing is a technique that uses the instructions to implement the method according to any one of the first aspects.
  • a message sending device having the function of implementing the method shown in the second aspect above.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the message sending device provided by the sixth aspect of the present application includes:
  • the memory, the processor, and the transceiver, the memory, the processor, and the transceiver are interconnected by a bus.
  • the memory stores computer instructions, and the processor executes the computer instructions to implement any one of the second aspects. The method of message processing described in the mode.
  • the seventh aspect of the present application provides a storage medium for storing computer software instructions used by the routing device packet forwarding device, and includes a program designed to perform the foregoing aspect as a routing device message forwarding device.
  • An eighth aspect of the present application provides a storage medium for storing computer software instructions for use in the above-described message transmitting device, including a program designed to execute the above-described aspects for a message transmitting device.
  • the names of the packet forwarding device and the packet sending device are not limited to the device itself. In actual implementation, these devices may appear under other names. As long as the functions of the respective devices are similar to the present invention, they are within the scope of the claims and the equivalents thereof.
  • FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a packet forwarding device according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a packet sending device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart of a method for processing a packet according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of another packet forwarding device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another packet sending apparatus according to an embodiment of the present disclosure.
  • the present application provides a packet processing method and related equipment for improving the transmission quality of a service.
  • FIG. 1 is a schematic diagram of a network architecture applied by the present application, where the network architecture includes a packet sending device, a packet receiving device, a packet forwarding device, and a software defined network (English name: Software Defined Network, English abbreviation: SDN).
  • the packet sending device and the packet receiving device may be a terminal or a server respectively, and the packet forwarding device includes one or more, and the packet forwarding device may be a router, or another forwarding device such as a switch, and a packet sending device.
  • the packet receiving device is connected to the packet forwarding device, and the SDN controller is connected to the packet forwarding device.
  • the packet sending device encapsulates the data information into a packet, the packet includes a packet header and a data portion other than the packet header, and the data portion carries the data information that the transmitting end needs to send, and the packet header portion Carry the sending address and destination address of the message.
  • the packet forwarding device has a packet forwarding function. The packet forwarding function forwards the packet to the next hop packet forwarding device or the packet receiving device.
  • the function of the SDN controller is to centrally manage the packet forwarding device, including the forwarding path of the packet forwarding device dynamic control packet and the setting of the congestion control policy.
  • the SDN controller can use the SDN controller to customize any routing forwarding rule policy to be implemented by using the SDN controller as a forwarding rule and a congestion control policy.
  • the control plane of the network function is separated from the forwarding plane, and the network can be uniformly controlled to improve the utilization of network resources.
  • SDN control The controller can flexibly customize any network routing and transmission policy rules that you want to implement according to the requirements of the upper application, and can use software programming to control the logic of forwarding (including discarding) each message.
  • the application specifically applies the real-time video service transmission under the unreliable fast transmission mechanism of the user datagram protocol (English name: User Datagram Protocol, English abbreviation: UDP), and uses the non-guaranteed bandwidth to transmit the video stream.
  • UDP User Datagram Protocol
  • UDP User Datagram Protocol
  • the packet forwarding device in FIG. 1 can be implemented by the packet forwarding device 200 of FIG. 2.
  • the packet forwarding device 200 includes a memory 201, a processor 202, and a transceiver 203.
  • the memory 201, the processor 202, and the transceiver 203 are
  • the message forwarding device 200 can also include a communication interface 205 that is interconnected by a bus 204.
  • the processor 202, the memory 201, the transceiver 203, and the communication interface 205 can implement communication connection with each other through the bus 204, and can also implement communication by other means such as wireless transmission.
  • the memory 201 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviation: RAM); the memory may also include a non-volatile memory (English: non-volatile memory) For example, read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state drive (English: solid state drive, Abbreviation: SSD); The memory 201 may also include a combination of the above types of memories.
  • a volatile memory such as a random access memory (English: random-access memory, abbreviation: RAM
  • the memory may also include a non-volatile memory (English: non-volatile memory)
  • read-only memory English: read-only memory, abbreviation: ROM
  • flash memory English: flash memory
  • hard disk English: hard disk drive, abbreviation: HDD
  • SSD solid state drive
  • the packet sending device in FIG. 1 can be implemented by the packet sending device 300 of FIG. 3.
  • the packet sending device 300 includes a memory 301, a processor 302, and a transceiver 303, between the memory 301, the processor 302, and the transceiver 303.
  • the message transmitting device 300 may further include a communication interface 305 by being connected to each other through a bus 304.
  • the processor 302, the memory 301, the transceiver 303, and the communication interface 305 can implement communication connection with each other through the bus 304, and can also implement communication by other means such as wireless transmission.
  • the computer instruction required to be executed by the message sending device in the method for implementing the message processing provided in FIG. 4 of the present application is saved in the memory 301, and is executed by the processor 302. Execution, the receiving and transmitting functions of the message transmitting device 300 are implemented by the processor 302 scheduling computer instructions in the memory 301 to control the transceiver 303.
  • the present application further provides a packet processing method, and the packet forwarding device, the packet sending device, and the packet forwarding device of FIG. 2 and the packet sending device of FIG. 3 execute the method at runtime.
  • the flow chart is shown in Figure 4.
  • the packet sending device is a packet marking priority identifier, where the packet is a packet of a video frame of the same video service, and the priority identifier is used to indicate the importance of the video frame in the packet, and the priority is given. The higher the level, the greater the importance of the video frame corresponding to the message.
  • the real-time video service process is: the message sending device collects image data in units of frames, and then compresses one frame by one frame, and then the data compressed by each frame image is encapsulated into one or more messages, and then the message is transmitted. Send to the receiving end message receiving device.
  • the video frame in the message means that the data of the video frame is compressed and encapsulated into the message.
  • image acquisition and compression are performed frame by frame according to the frame rate.
  • Video frames are divided into video frames that do not refer to other video frames, Refer to other video frames and referenced by other video frames Video frames, and video frames that refer to other frames and are not referenced by other frames; video frames that do not refer to other video frames indicate that the video frame does not reference other video frames when compressed; video frames that reference other frames and are not referenced by other frames Representing that compressing the video frame is to compress the difference between the video frame and another video frame (or usually one), that is, the video frame refers to other video frames, and the other video frames that are buffered need to be used as a reference for decoding.
  • AVC Advanced Video Coding
  • the reference picture is superimposed on the difference defined by the video frame to generate a final picture, but the video frame is not used as a reference frame of other video frames; the video frames referenced by other video frames and referenced by other video frames indicate that the video frame refers to other frames.
  • other video frames to be buffered are used as reference for decoding, and the video frames are referenced by other video frames.
  • the video frames need to be buffered as a reference to generate a final picture.
  • Inter-frame reference can make use of redundant information between video frames (the two adjacent frames generally have many identical or approximate parts), which can greatly improve the compression efficiency and bring the dependence between video frames.
  • the B frame refers to the A frame, and the A frame serves as the reference frame. On the decoder of the receiving end of the message receiving device, if the A cannot be successfully decoded, the B frame cannot be decoded.
  • the importance of the video frame referenced by other video frames and referenced by other video frames may be set to be more important than the video frames referenced by other video frames and not referenced by other video frames.
  • the importance of video frames that are not referenced to other video frames is less important.
  • the manner of dividing the importance of different video frames is not unique. The above-mentioned importance division is only one of the implementation manners, and other importance division manners are also applicable to the method scheme provided by the present application.
  • the packet sending device encodes the video frame, and then encapsulates the encoded data information into a packet.
  • a video frame is generally encapsulated by multiple packets, and the packet sending device can identify the video frame according to the specific information of the video frame.
  • the importance of the video frame in order to enable the packet forwarding device to recognize the importance of the video frame in the packet, so a packet marking policy is set, which is used to indicate that the packet sending device follows the packet.
  • the importance of the video frames in the packets from the highest to the smallest mark is from high to low.
  • the packet sending device adds a priority identifier to the packet header of the packet, where the priority identifier can be added in the DSCP field of the packet header; or the packet sending device can further extend the packet header, for example, Extended metadata data, the metadata can carry extended fields that cannot be included in the standard packet header.
  • the priority identifier can also be added in the metadata, or carried in the extended field of the packet IP header, and the packet header expands the information carrying the information. There are many, and there are no specific restrictions here.
  • the priority identifier can be represented by a two-digit binary, and the higher the value of the binary, the higher the priority it represents. For example, "00", "01", and "11” respectively indicate three priority levels, wherein "11" has the highest priority, "01” has the medium priority, and "00" has the lowest priority.
  • the packet marking policy can be set on the packet sending device.
  • the packet marking policy may also be set on the application server, and then the application server sends the packet marking policy to the packet sending device, and the packet sending device further marks the packet according to the packet marking policy. logo.
  • the packet sending device may not add a priority identifier to the packet, and the packet carries other forms of information, such as an importance field, and the field may be added in the metadata, and the field can reflect the report.
  • the importance of the video frame in the text is then read by the packet forwarding device, and then converted into a priority identifier according to the mapping relationship of the packet marking policy.
  • the packet sending device sends the packet to the packet forwarding device.
  • the packet forwarding device receives the packet sent by the packet sending device.
  • the packet forwarding device preferentially discards the first packet according to the priority identifier of the packet, where the first packet is a packet with a lower priority in the packet.
  • the packet forwarding device When the network is congested, multiple packets are accumulated in the queue of the packet forwarding device. According to the principle of queue first-in, first-out, Packets that enter the queue will be forwarded out of the queue first, and packets that enter the queue may be discarded. In the real-time video service, the importance of the video frames corresponding to different packets may be different. In order to improve the transmission quality of the service and allow more important video frames to be transmitted to the packet receiving device, you need to set the packet control. Policy, the packet control policy can be directly set on the packet forwarding device. When the network is congested, the packet forwarding device preferentially discards the packets with lower priority according to the packet control policy.
  • the queue of the packet forwarding device has more space to store other packets with higher priority, so that more packets with higher priority are transmitted to the receiving device. on.
  • the packet forwarding device receives the packet control policy sent by the software-defined network SDN controller before receiving the packet sent by the packet sending device, where the packet control policy is used to indicate that the packet is discarded.
  • the order is from low to high according to the priority of the message;
  • the packet control policy may also be sent by the upper device SDN controller to the packet forwarding device.
  • the packet control policy may be set in the control policy center, and the control policy center sends the packet control policy to the SDN controller.
  • the packet control policy may be set on the application server, and the application server uses the packet. The control policy is sent to the control policy center and forwarded to the SDN controller by the control policy center.
  • the SDN controller can detect that congestion occurs on a certain packet forwarding device. To ensure low-latency service transmission, the SDN controller can send a discarding instruction to other packet forwarding devices, and the packet forwarding device is required to be prioritized. The level identifier actively discards packets with low priority.
  • the packet sending device may add the number information of the packet group to the packet before sending the packet to the packet forwarding device, where A message in a group of messages corresponds to data information of the same video frame.
  • a video frame may be encapsulated into one or more packets, for example, a video frame is encapsulated into 8 packets, the 8 packets are a group of messages, and the data information in the group of messages is the same. Information about the video frame.
  • the packet sending device may also add the number of the packet group in which the packet is located in the packet header of the packet. Specifically, the number can be represented by a number. For example, a packet has a priority of "01" and a packet group of "100".
  • the packet forwarding device When the packet forwarding device receives the packet, if the second packet is the same as the first packet, the first packet and the second packet are the same group. The packet corresponds to the packet. If the packet is discarded by the packet forwarding device in the same video frame, the other packets in the group may not be decoded. Then, the packet forwarding device can report other packets in the group. The packet is also discarded. In this way, the amount of queues in the packet forwarding device is reduced, so that the packet forwarding device has a larger throughput and can accommodate more packets, thereby reducing the number of packets discarded when the network is congested. Quantity.
  • the sending end of the packet sending device can be the same group of packets, and the set of the packet includes M data packets, and the forward error correction (English full name: Forward Error Correction, English abbreviation: FEC)
  • FEC Forward Error Correction
  • the N check packets are generated.
  • the packet forwarding device may discard the number of discarded packets in the group of packets when discarding other packets in the same group of packets. If the number of the packets exceeds the preset threshold, it indicates that the receiving packet receiving device cannot recover the discarded data packets.
  • the packet forwarding device can also discard the other packets in the group.
  • the number of the packet group can be used cyclically.
  • the range of the packet group is 1-200, then when the number 200 number is used, then the message sending device marks the number of the next group of messages as 1, and the frame rate of the transmitted video frame can also be detected. Therefore, the packet forwarding device may detect, in a preset period, whether the number information of the packet group in which the second packet is located is the same as the number information of the packet group in which the first packet is located. The specific period depends on how many video frames are transmitted per second and the length of the number.
  • the packet forwarding device may further send the number information of the packet group of the first packet to a software-defined network SDN controller, where the SDN controller uses the packet according to the first packet.
  • the numbering information of the group sends a discarding command to the other packet forwarding device, and the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the first The message with the same number information of the packet group of the packet.
  • the packet forwarding device After the packet forwarding device discards the first packet, other packets in the packet group in which the first packet is located may not be decoded, and other packets in the packet group may be in other packets.
  • the forwarding device performs the transmission. To improve the throughput of the other packet forwarding device, the number information of the packet group in which the first packet is sent may be sent to the SDN controller, and the SDN controller sends the number information of the packet group. For other packet forwarding devices, other packet forwarding devices actively discard other packets in the packet group.
  • the packet sending device may further add the dependency information between the packet group and the other packet group, where the dependency relationship is used to indicate the packet group.
  • the dependency relationship is used to indicate the packet group.
  • the packet forwarding device can identify the packet group in which the packet is located and the other packet, because the packet information corresponds to the data information of the same video frame, and the reference relationship described in the foregoing step 401 exists between the video frames.
  • the dependency relationship between the groups so the packet sending device can also add the dependency relationship between the packet group and other packet groups.
  • the dependency may be represented by a specific field or symbol. For example, a packet has a priority of "01", a packet group of which is "100", and the packet group has a dependency of "100". The relationship is "depending on the message group "99” and is dependent on the message group "101". Then, the video frame in the video frame reference message group "99" in the message group "100” in which the message is located is referred to, and is referenced by the video frame in the message group "101".
  • the packet forwarding device When the packet forwarding device receives the packet, if the packet group in which the third packet is received by the packet forwarding device depends on the packet group in which the first packet is located, the third packet is discarded.
  • the packet forwarding device After the packet forwarding device discards all the packets in the packet group in which the first packet is located, the video frames in other packet groups that depend on the packet group in which the first packet is located cannot be decoded. In order to improve the throughput of the packet forwarding device, the packets of the packet group in which the first packet is located are actively discarded.
  • the packet forwarding device may further send the number information of the packet group of the third packet to a software-defined network SDN controller, where the SDN controller uses the packet according to the third packet.
  • the numbering information of the group sends a discarding command to the other packet forwarding device, and the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the third packet.
  • the message number of the message group is the same as the message.
  • the packet group in which the third packet is located depends on the packet group in which the first packet has been discarded, even if all the packet groups in which the third packet is located are successfully sent to the receiving end packet receiving device, The corresponding video frame can also be decoded. Therefore, even if the network is not congested, in order to improve the throughput of the packet forwarding device and reduce the discarding of other packets that can be decoded, all packet forwarding devices must actively discard the third. All packets in the packet group where the packet is located.
  • the present application further provides a packet forwarding device 500, which can pass the packet forwarding device 200 shown in FIG.
  • the implementation can also be realized by an application-specific integrated circuit (ASIC) or a programmable logic device (abbreviated as PLD).
  • PLD programmable logic device
  • the above PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), a field programmable gate array (English full name: Field Programmable Gate Array, English abbreviation: FPGA), general array logic (English: generic Array logic, abbreviation: GAL) or any combination thereof.
  • the packet forwarding device 500 is configured to implement the method performed by the packet forwarding device shown in FIG. When the method performed by the packet forwarding device shown in FIG. 4 is implemented by software, the packet forwarding device 500 may also be a software module.
  • the schematic diagram of the organization of the packet forwarding device 500 includes a processing unit 501, a sending unit 502, and a receiving unit 503.
  • the processing unit 501 When the processing unit 501 is in operation, the method performed by the packet forwarding device in the method of packet processing shown in FIG. 4 is executed.
  • the present application further provides a message sending device 600, which can be implemented by the message sending device 300 shown in FIG. 3, and can also be implemented by an ASIC or a PLD.
  • the above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
  • the message sending device 600 is configured to implement the method performed by the message sending device shown in FIG.
  • the message sending device 600 may also be a software module.
  • the schematic diagram of the organization of the packet sending device 600 includes a processing unit 601 and a transmitting unit 602 and a receiving unit 603.
  • the processing unit 601 operates, the method performed by the message transmitting device in the method of message processing shown in FIG. 4 is executed.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the steps of the method for processing the message according to the foregoing method embodiment.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), A variety of media that can store program code, such as random access memory (RAM), disk, or optical disk.

Abstract

Disclosed is a packet processing method. The method of the present application comprises: a packet forwarding device receives packets sent by a packet sending device, the packets being packets of video frames of a same video service and comprising corresponding priority identifiers, a high importance of the video frame in the packet indicates a high corresponding priority; when discarding the packets, the packet forwarding device preferentially discards the packets of low priority. In this way, after the packets of low priority are preferentially discarded, the queue space of the packet forwarding device is increased, and more packets, including the packets of high priority, can be accommodated and would not be discarded, such that most of the packets of high priority are sent to a receiver end. That is, most video frames of high importance are sent to the receiver end, thereby improving the quality of service transmission.

Description

一种报文处理的方法及相关设备Message processing method and related equipment
本申请要求于2016年3月22日提交中国专利局、申请号为201610165452.4、发明名称为“一种报文处理的方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610165452.4, entitled "A Method for Processing Messages and Related Equipment", filed on March 22, 2016, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及通信领域,尤其涉及一种报文处理的方法及相关设备。The present invention relates to the field of communications, and in particular, to a packet processing method and related device.
背景技术Background technique
在通信传输网络中,数据以报文的形式进行传输,报文包括报文头以及报文头以外的数据部分(也叫载荷),数据部分用于携带发送端需要发送的数据信息,报文头部分用于携带该报文的发送地址以及目的地址;报文从发送端至接收端,需要经过一个或多个报文转发设备,报文转发设备设置有路由转发原则,比如按照最短路径算法进行转发,使得报文经过的路径最短。在网络层传输机制中,多个发送端可同时发送报文,多个发送端利用相同的报文转发设备资源进行不同报文的传输,那么在整个传输机制中,则可能有大量的报文同时在进行转发,可能会造成某一个报文转发设备堆积较多的待发送报文,则出现网络拥塞。当队列堆积时,报文转发设备通过拥塞机制对对队列进行管理,需维持较小的队列长度,从而降低报文的排队延迟,且需要维持较大的队列空间来吸收突发性的报文,保证队列的吞吐量。当队列堆积长度大于一定长度时,造成的高延迟以及低吞吐量会影响整个传输机制的效率和性能,这种情况下,报文转发设备则会对部分报文进行丢弃。In the communication transmission network, the data is transmitted in the form of a message, the message includes a packet header and a data portion (also called a payload) other than the packet header, and the data portion is used to carry the data information that the sender needs to send, and the packet The header part is used to carry the sending address and the destination address of the packet; the packet needs to pass through one or more packet forwarding devices from the sending end to the receiving end, and the packet forwarding device is provided with a routing forwarding principle, for example, according to the shortest path algorithm. Forwarding, so that the path through which the message passes is the shortest. In the network layer transmission mechanism, multiple senders can simultaneously send packets, and multiple senders use the same packet forwarding device resources to transmit different packets. Then, in the entire transmission mechanism, there may be a large number of packets. At the same time, the network is congested when a packet forwarding device accumulates more packets to be sent. When the queues are stacked, the packet forwarding device manages the queues through the congestion mechanism. The queue length is reduced, which reduces the queue delay of packets and needs to maintain a large queue space to absorb bursty packets. To ensure the throughput of the queue. When the queue stacking length is greater than a certain length, the high delay and low throughput will affect the efficiency and performance of the entire transport mechanism. In this case, the packet forwarding device discards some packets.
而现有报文丢弃方案中,对同一传输业务的数据流中所有的报文采用平等丢弃机制。当网络拥塞时,报文转发设备的队列中堆积了多个报文,根据队列先进先出的原则,先进入队列的报文将被优先转发出该队列,而后进入队列的报文则可能被丢弃,因此,在网络拥塞时,后进入队列的每个报文被丢弃的概率是平等的,则可能造成重要的数据丢失而非重要的数据保留,从而降低了业务传输的质量。In the existing packet discarding scheme, an equal discarding mechanism is adopted for all the packets in the data stream of the same transport service. When the network is congested, multiple packets are accumulated in the queue of the packet forwarding device. According to the principle of queue first in, first out, packets entering the queue will be forwarded out of the queue preferentially, and packets entering the queue may be forwarded. Discarded. Therefore, when the network is congested, the probability that each packet that enters the queue is discarded is equal, which may cause important data loss rather than important data retention, thereby reducing the quality of service transmission.
发明内容Summary of the invention
本申请提供了一种报文处理的方法及相关设备,通过对优先丢弃优先级低的报文,从而提高业务传输的质量。The present invention provides a packet processing method and related equipment, which improves the quality of service transmission by preferentially discarding packets with lower priority.
本申请第一方面,提供了一种报文处理的方法,报文转发设备接收报文发送设备发送的同一视频业务的视频帧的报文集合,该报文集合中各个报文均包含有优先级标识,而优先级标识所标识的优先级越高,则该报文中的视频帧的重要性也越大;当网络拥塞时,报文转发设备根据报文控制策略对接收到的报文集合进行报文丢弃,优先丢弃报文集合中优先级低的报文;该报文控制策略可以设置于报文转发设备上,也可以由SDN控制器发送给报文转发设备。A first aspect of the present invention provides a packet processing method, where a packet forwarding device receives a packet set of a video frame of the same video service sent by a packet sending device, where each packet in the packet set includes a priority. Level identification, and the higher the priority of the priority identifier, the greater the importance of the video frame in the packet. When the network is congested, the packet forwarding device receives the received packet according to the packet control policy. The BGP controller sends the packet to the packet forwarding device. The packet is sent to the packet forwarding device. The packet control policy can be set to the packet forwarding device.
当网络拥塞时,报文转发设备上的队列就会堆积,当堆积的队列长度超过报文转发设 备通过调度算法设定的门槛长度时,则后续进入队列的报文则可能被丢弃,本方法中,当需要丢弃报文时,优先丢弃优先级低的报文,这样,队列的堆积量就会减少,而更多的包括优先级高的报文则能够进入到队列且被成功转发,从而使得更多的优先级高的报文到达接收端报文接收设备,由于报文的优先级越高,则该报文中的视频帧的重要性越大,那么接收端报文接收设备所能够解码的视频的质量越高。When the network is congested, the queues on the packet forwarding device will accumulate. When the queue length exceeds the packet forwarding setting. When the threshold is set by the scheduling algorithm, the packets that enter the queue may be discarded. In this method, when the packets need to be discarded, the packets with lower priority are discarded. It will be reduced, and more packets with high priority will be able to enter the queue and be forwarded successfully, so that more packets with higher priority will reach the receiving device, because the priority of the packet is higher. If the video frame is high, the importance of the video frame in the message is higher, and the quality of the video that the receiving end message receiving device can decode is higher.
一种可能的实现方式中,每个报文还包括该报文所在的报文组的编号信息,而一组报文对应的是同一视频帧的数据信息,若报文转发设备丢弃了一个报文,那么该报文所在的组中的其它报文也将被报文转发设备丢弃。In a possible implementation, each packet further includes the number information of the packet group in which the packet is located, and the group of packets corresponds to the data information of the same video frame, and if the packet forwarding device discards a report The other packets in the group where the packet is located will also be discarded by the packet forwarding device.
由于一个视频帧由多个报文进行封装,形成一个报文组,当该报文组中某个报文被丢弃,若被丢弃的报文不能被恢复,那么该视频帧将不能被完全解码,所以该报文组中其它的报文也不能在接收端完全恢复出原始视频帧。所以,即使在网络不拥塞的情况下,报文转发设备也可以将该报文组中其它的报文进行主动丢弃,这样,则减少了报文转发设备中队列的堆积量,从而提高了报文转发设备的吞吐量,使得报文转发设备可以传输更多其它的报文。A video frame is encapsulated by multiple packets to form a packet group. When a packet in the packet group is discarded, if the discarded packet cannot be recovered, the video frame cannot be completely decoded. Therefore, other messages in the packet group cannot completely recover the original video frame at the receiving end. Therefore, even if the network is not congested, the packet forwarding device can actively discard other packets in the packet group, thereby reducing the accumulation of queues in the packet forwarding device, thereby improving the reporting. The throughput of the forwarding device enables the packet forwarding device to transmit more packets.
另一种可能的实现方式中,报文转发设备将所丢弃的报文所在的报文组的编号信息发送给SDN控制器,使得SDN控制转发路径上其它报文转发设备对该报文组中其它的报文进行主动丢弃。In another possible implementation manner, the packet forwarding device sends the number information of the packet group in which the discarded packet is sent to the SDN controller, so that other packet forwarding devices on the SDN control forwarding path are in the packet group. Other packets are actively discarded.
同前所述类似,若同一组报文中已经被丢弃了一个报文,那么改组报文可能无法解码出视频帧,那么该组报文中其它报文也将没有意义,SDN控制器控制器其它报文转发设备主动丢弃改组报文中其它报文后,则提供了其它路由器的吞吐量,使得其它报文转发设备可以传输更多其它的报文。Similar to the previous description, if a packet has been discarded in the same group of packets, the reassembled packet may not be able to decode the video frame, so other packets in the group will also have no meaning, the SDN controller After the other packet forwarding devices actively discard other packets in the re-scheduled packet, the throughput of other routers is provided, so that other packet forwarding devices can transmit more packets.
另一种可能的实现方式中,每个报文还包括所在的报文组与其它报文组之间的依赖关系信息,该依赖关系用于指示报文组中的视频帧之间的参考关系;若报文转发设备丢弃了一组报文,那么依赖于该组报文其它报文组也将被报文转发设备丢弃。In another possible implementation manner, each packet further includes a dependency relationship between the packet group and another packet group, where the dependency relationship is used to indicate a reference relationship between the video frames in the packet group. If the packet forwarding device discards a group of packets, the other packet groups that depend on the group of packets will also be discarded by the packet forwarding device.
若被依赖的报文组被丢弃无法发送到接收端报文接收设备,那么依赖于该报文组的报文组中的报文即使所有报文都到达了报文接收设备,其对应的视频帧还是无法解码,所以该组报文为无意义报文组,报文转发设备丢弃该组报文,即提高了报文转发设备的吞吐量,使得报文转发设备能够传输更多其它的报文,还提高了接收端报文接收设备的解码速率。If the packet-receiving packet is discarded and cannot be sent to the receiving-end packet receiving device, the packet corresponding to the packet in the packet group arrives at the packet receiving device even if all the packets arrive at the packet receiving device. The packet is still incapable of being decoded. Therefore, the packet forwarding device is a meaningless packet group. The packet forwarding device discards the packet, which improves the throughput of the packet forwarding device, so that the packet forwarding device can transmit more packets. The text also improves the decoding rate of the receiving device of the receiving end.
本申请第二方面,提供了一种报文处理的方法,报文发送设备根据报文标记策略对同一视频业务中视频帧的每个待发送报文标记其优先级标识,且报文中视频帧的重要性越大,其所标记的优先级越高;可选的,该报文标记策略可以设置于报文发送设备上,也可以设置在应用服务器上,再由应用服务器发送给报文发送设备;报文发送设备将标记后的报文发送给报文转发设备。A second aspect of the present invention provides a packet processing method, in which a packet sending device marks a priority identifier of each to-be-sent packet of a video frame in the same video service according to the packet marking policy, and the video in the packet The greater the importance of the frame, the higher the priority of the tag. The packet tagging policy can be set on the packet sending device, or can be set on the application server, and then sent by the application server to the packet. The sending device sends the marked packet to the packet forwarding device.
报文发送设备将报文发送给报文转发设备后,报文转发设备则能够根据报文的优先级进行转发控制,其具体可以包括优先转发优先级高的报文,或者当网络拥塞时,优先丢弃优先级低的报文。这样,则使得更多优先级高的报文到达接收端报文接收设备,而优先级越高的报文中的视频帧的重要性越大,所以报文接收设备则能够接收到更多的重要性大的视频帧,提高了视频业务传输的质量。After the packet sending device sends the packet to the packet forwarding device, the packet forwarding device can forward the packet according to the priority of the packet. The packet forwarding device can forward the packet with the highest priority, or when the network is congested. Packets with lower priority are discarded first. In this way, more packets with higher priority are received at the receiving end of the packet receiving device, and the importance of the video frame in the packet with higher priority is greater, so the packet receiving device can receive more Video frames of high importance improve the quality of video service transmission.
一种可能的实现方式中,由于一个视频帧可能被封装成多个报文,多个报文则组成一 个报文组,所以报文发送设备还可以为每个报文添加该报文所在的报文组的编号信息。In a possible implementation manner, since one video frame may be encapsulated into multiple messages, multiple messages form one. The packet sending device can also add the number information of the packet group where the packet is located for each packet.
当报文转发设备决定丢弃某一组报文中所有的报文时,则可以根据该报文组的编号信息对所有报文进行检查,编号信息相同的报文为同一组报文,则将被报文转发设备丢弃,从而提高报文转发设备的吞吐量。When the packet forwarding device decides to discard all the packets in a certain group of packets, it can check all the packets according to the number information of the packet group. If the packets with the same number information are the same group, the packets will be the same. It is discarded by the packet forwarding device, thereby improving the throughput of the packet forwarding device.
另一种可能的实现方式中,不同视频帧之间可能存在参考关系,所以报文发送设备还可以为每个报文添加该报文所在报文组与其它报文组之间的依赖关系。In another possible implementation manner, a reference relationship may exist between different video frames. Therefore, the packet sending device may also add a dependency relationship between the packet group and other packet groups of the packet.
当报文转发设备丢弃了某一组报文后,那么依赖于该报文组的其它报文组中的视频帧将无法被解码,所以报文转发设备则可以通过该依赖关系判断其它报文组是否依赖于该被丢弃的报文组,若依赖,则进行主动丢弃,这样,既提高了报文转发设备的吞吐量,也提高了接收端报文接收设备进行视频帧解码的效率。After the packet forwarding device discards a certain group of packets, the video frames in other packet groups that depend on the packet group cannot be decoded. Therefore, the packet forwarding device can determine other packets through the dependency. Whether the group is dependent on the discarded packet group, if it is dependent, the active discarding is performed. This improves the throughput of the packet forwarding device and improves the efficiency of the video frame decoding by the receiving end packet receiving device.
本申请第三方面,提供了一种报文转发设备,该报文转发设备具有实现上述第一方面所示的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect of the present application, a packet forwarding device is provided, and the packet forwarding device has a function of implementing the method shown in the foregoing first aspect. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
本申请第三方面提供的报文转发设备包括:The packet forwarding device provided by the third aspect of the present application includes:
接收单元,用于接收报文发送设备发送的报文,该报文为同一视频业务的视频帧的报文,其中,该报文包含报文所对应的优先级标识,该优先级标识用于指示该报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大;The receiving unit is configured to receive a packet sent by the packet sending device, where the packet is a packet of a video frame of the same video service, where the packet includes a priority identifier corresponding to the packet, and the priority identifier is used for Indicates the importance of the video frame in the packet, and the video frame corresponding to the higher priority packet is more important;
处理单元,用于根据该报文的优先级标识优先丢弃优先级低的报文。The processing unit is configured to preferentially discard the packet with a lower priority according to the priority of the packet.
本申请第四方面,提供了一种报文发送设备,该报文发送设备具有实现上述第二方面所示的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect of the present application, a message sending device is provided, the message sending device having the function of implementing the method shown in the second aspect above. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
本申请第四方面提供的报文发送设备包括:The message sending device provided by the fourth aspect of the present application includes:
处理单元,用于为报文标记优先级标识,该报文为同一视频业务的视频帧的报文,该优先级标识用于指示该报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大;a processing unit, configured to mark a priority identifier of the packet, where the packet is a packet of a video frame of the same video service, where the priority identifier is used to indicate the importance of the video frame in the packet, and the priority is higher. The importance of the video frame corresponding to the message is greater;
发送单元,用于将该报文发送给报文转发设备。The sending unit is configured to send the packet to the packet forwarding device.
本申请第五方面,提供了一种报文转发设备,该报文转发设备具有实现上述第一方面所示的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。A fifth aspect of the present invention provides a packet forwarding device, where the packet forwarding device has the function of implementing the method shown in the foregoing first aspect. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
本申请第五方面提供的报文转发设备包括:The packet forwarding device provided by the fifth aspect of the present application includes:
存储器、处理器以及收发器,存储器、处理器以及收发器之间通过总线互相连接,存储器中存储有计算机指令,处理器通过执行所述计算机指令,从而实现如第一方面任意一种方式所述的报文处理的方法。The memory, the processor, and the transceiver, the memory, the processor, and the transceiver are interconnected by a bus. The memory stores computer instructions, and the processor executes the computer instructions to implement the method according to any one of the first aspects. The method of message processing.
本申请第六方面,提供了一种报文发送设备,该报文发送设备具有实现上述第二方面所示的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect of the present application, a message sending device is provided, the message sending device having the function of implementing the method shown in the second aspect above. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
本申请第六方面提供的报文发送设备包括:The message sending device provided by the sixth aspect of the present application includes:
存储器、处理器以及收发器,存储器、处理器以及收发器之间通过总线互相连接,存储器中存储有计算机指令,处理器通过执行所述计算机指令,从而实现如第二方面任意一 种方式所述的报文处理的方法。The memory, the processor, and the transceiver, the memory, the processor, and the transceiver are interconnected by a bus. The memory stores computer instructions, and the processor executes the computer instructions to implement any one of the second aspects. The method of message processing described in the mode.
本申请第七方面提供一种存储介质,用于储存为上述路由设备报文转发设备所用的计算机软件指令,其包含用于执行上述方面为路由设备报文转发设备所设计的程序。The seventh aspect of the present application provides a storage medium for storing computer software instructions used by the routing device packet forwarding device, and includes a program designed to perform the foregoing aspect as a routing device message forwarding device.
本申请第八方面提供一种存储介质,用于储存为上述报文发送设备所用的计算机软件指令,其包含用于执行上述方面为报文发送设备所设计的程序。An eighth aspect of the present application provides a storage medium for storing computer software instructions for use in the above-described message transmitting device, including a program designed to execute the above-described aspects for a message transmitting device.
本发明中,报文转发设备以及报文发送设备的名字对设备本身不构成限定,在实际实现中,这些设备可以以其他名称出现。只要各个设备的功能和本发明类似,属于本发明权利要求及其等同技术的范围之内。In the present invention, the names of the packet forwarding device and the packet sending device are not limited to the device itself. In actual implementation, these devices may appear under other names. As long as the functions of the respective devices are similar to the present invention, they are within the scope of the claims and the equivalents thereof.
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more apparent from the following description of the embodiments.
附图说明DRAWINGS
图1为本申请实施例所提供的网络架构的示意图;1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图2为本申请实施例所提供的报文转发设备的结构示意图;FIG. 2 is a schematic structural diagram of a packet forwarding device according to an embodiment of the present disclosure;
图3为本申请实施例所提供的报文发送设备的结构示意图;FIG. 3 is a schematic structural diagram of a packet sending device according to an embodiment of the present disclosure;
图4为本申请实施例所提供的报文处理的方法的流程示意图;4 is a schematic flowchart of a method for processing a packet according to an embodiment of the present application;
图5为本申请实施例所提供的另一种报文转发设备的结构示意图;FIG. 5 is a schematic structural diagram of another packet forwarding device according to an embodiment of the present disclosure;
图6为本申请实施例所提供的另一种报文发送设备的结构示意图。FIG. 6 is a schematic structural diagram of another packet sending apparatus according to an embodiment of the present disclosure.
具体实施方式detailed description
本申请提供了一种报文处理的方法及相关设备,用于提高业务的传输质量。The present application provides a packet processing method and related equipment for improving the transmission quality of a service.
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application.
图1为本申请所应用的网络架构的示意图,该网络构架下包括报文发送设备、报文接收设备、报文转发设备以及软件定义网络(英文全称:Software Defined Network,英文缩写:SDN)控制器,其中,报文发送设备以及报文接收设备可以分别为终端或者服务器,报文转发设备包括一个或多个,报文转发设备可以为路由器,或者交换机等其它转发设备,报文发送设备与报文接收设备分别连接报文转发设备,SDN控制器连接报文转发设备。FIG. 1 is a schematic diagram of a network architecture applied by the present application, where the network architecture includes a packet sending device, a packet receiving device, a packet forwarding device, and a software defined network (English name: Software Defined Network, English abbreviation: SDN). The packet sending device and the packet receiving device may be a terminal or a server respectively, and the packet forwarding device includes one or more, and the packet forwarding device may be a router, or another forwarding device such as a switch, and a packet sending device. The packet receiving device is connected to the packet forwarding device, and the SDN controller is connected to the packet forwarding device.
在通信传输网络中,数据以报文的形式进行传输,报文发送设备与报文接收设备通过传输报文实现数据通信。首先,在发送端,报文发送设备将数据信息封装成报文,报文包括报文头以及报文头以外的数据部分,数据部分携带的是发送端需要发送的数据信息,报文头部分携带着该报文的发送地址以及目的地址。报文转发设备具有报文转发的功能,报文转发功能指的是将报文按照转发路径转发到下一跳报文转发设备或者报文接收设备。当网络拥塞时,报文转发设备内的队列堆积到预设长度时,报文转发设备还需要对后进入队列的报文进行主动丢弃,使得报文转发设备内的队列有充足的空间可以容纳突发性报文以及保持较低的报文转发延迟。SDN控制器的功能是对报文转发设备进行集中管理,包括对报文转发设备动态控制报文的转发路径,以及拥塞控制策略的设置。SDN控制器通过向被其控制的报文转发设备下发流表作为的转发规则以及拥塞控制策略规则,用户可以通过SDN控制器自定义任何想实现的路由转发规则策略,从而更加灵活和智能。SDN技术的引入,使得网络功能的控制面与转发面分离,网络能够被统一控制,提高了网络资源的利用率。SDN控 制器可以根据上层应用的要求灵活地自定义任何想实现的网络路由和传输策略规则,能够用软件编程来控制每个报文的转发(包括丢弃)的逻辑。In the communication transmission network, data is transmitted in the form of a message, and the message sending device and the message receiving device realize data communication by transmitting a message. First, at the transmitting end, the packet sending device encapsulates the data information into a packet, the packet includes a packet header and a data portion other than the packet header, and the data portion carries the data information that the transmitting end needs to send, and the packet header portion Carry the sending address and destination address of the message. The packet forwarding device has a packet forwarding function. The packet forwarding function forwards the packet to the next hop packet forwarding device or the packet receiving device. When the network is congested, when the queues in the packet forwarding device are accumulated to the preset length, the packet forwarding device needs to discard the packets that enter the queue, so that the queues in the packet forwarding device have sufficient space to accommodate. Burst messages and low message forwarding delays. The function of the SDN controller is to centrally manage the packet forwarding device, including the forwarding path of the packet forwarding device dynamic control packet and the setting of the congestion control policy. The SDN controller can use the SDN controller to customize any routing forwarding rule policy to be implemented by using the SDN controller as a forwarding rule and a congestion control policy. With the introduction of SDN technology, the control plane of the network function is separated from the forwarding plane, and the network can be uniformly controlled to improve the utilization of network resources. SDN control The controller can flexibly customize any network routing and transmission policy rules that you want to implement according to the requirements of the upper application, and can use software programming to control the logic of forwarding (including discarding) each message.
本申请具体应用与用户数据报协议(英文全称:User Datagram Protocol,英文缩写:UDP)不可靠快速传输机制下所进行的实时视频业务的传输,使用非保障带宽的方式传输视频流。The application specifically applies the real-time video service transmission under the unreliable fast transmission mechanism of the user datagram protocol (English name: User Datagram Protocol, English abbreviation: UDP), and uses the non-guaranteed bandwidth to transmit the video stream.
图1中的报文转发设备可以通过图2报文转发设备200实现,报文转发设备200包括存储器201、处理器202以及收发器203,所述存储器201、处理器202以及收发器203之间通过总线204互相连接,所述报文转发设备200还可以包括通信接口205。The packet forwarding device in FIG. 1 can be implemented by the packet forwarding device 200 of FIG. 2. The packet forwarding device 200 includes a memory 201, a processor 202, and a transceiver 203. The memory 201, the processor 202, and the transceiver 203 are The message forwarding device 200 can also include a communication interface 205 that is interconnected by a bus 204.
其中,处理器202、存储器201、收发器203和通信接口205可以通过总线204实现彼此之间的通信连接,也可以通过无线传输等其它手段实现通信。The processor 202, the memory 201, the transceiver 203, and the communication interface 205 can implement communication connection with each other through the bus 204, and can also implement communication by other means such as wireless transmission.
存储器201可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器也可以包括非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid state drive,缩写:SSD);存储器201还可以包括上述种类的存储器的组合。在通过软件来实现本申请提供的技术方案时,用于实现本申请图4提供的报文处理的方法中报文转发设备所需要执行的计算机指令保存在存储器201中,并由处理器202来执行,报文转发设备200的接收和发送功能由处理器202调度存储器201中的计算机指令控制收发器203实现。The memory 201 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviation: RAM); the memory may also include a non-volatile memory (English: non-volatile memory) For example, read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state drive (English: solid state drive, Abbreviation: SSD); The memory 201 may also include a combination of the above types of memories. When the technical solution provided by the present application is implemented by software, the computer instruction required to be executed by the message forwarding device in the method for implementing the message processing provided in FIG. 4 of the present application is saved in the memory 201, and is executed by the processor 202. Execution, the receiving and transmitting functions of the message forwarding device 200 are implemented by the processor 202 scheduling computer instructions in the memory 201 to control the transceiver 203.
图1中的报文发送设备可以通过图3报文发送设备300实现,报文发送设备300包括存储器301、处理器302以及收发器303,所述存储器301、处理器302以及收发器303之间通过总线304互相连接,所述报文发送设备300还可以包括通信接口305。The packet sending device in FIG. 1 can be implemented by the packet sending device 300 of FIG. 3. The packet sending device 300 includes a memory 301, a processor 302, and a transceiver 303, between the memory 301, the processor 302, and the transceiver 303. The message transmitting device 300 may further include a communication interface 305 by being connected to each other through a bus 304.
其中,处理器302、存储器301、收发器303和通信接口305可以通过总线304实现彼此之间的通信连接,也可以通过无线传输等其它手段实现通信。The processor 302, the memory 301, the transceiver 303, and the communication interface 305 can implement communication connection with each other through the bus 304, and can also implement communication by other means such as wireless transmission.
在通过软件来实现本申请提供的技术方案时,用于实现本申请图4提供的报文处理的方法中报文发送设备所需要执行的计算机指令保存在存储器301中,并由处理器302来执行,报文发送设备300的接收和发送功能由处理器302调度存储器301中的计算机指令控制收发器303实现。When the technical solution provided by the present application is implemented by software, the computer instruction required to be executed by the message sending device in the method for implementing the message processing provided in FIG. 4 of the present application is saved in the memory 301, and is executed by the processor 302. Execution, the receiving and transmitting functions of the message transmitting device 300 are implemented by the processor 302 scheduling computer instructions in the memory 301 to control the transceiver 303.
本申请还提供了一种报文处理的方法,图1中的报文转发设备、报文发送设备以及图2的报文转发设备、图3的报文发送设备在运行时执行该方法,其流程示意图如图4所示。The present application further provides a packet processing method, and the packet forwarding device, the packet sending device, and the packet forwarding device of FIG. 2 and the packet sending device of FIG. 3 execute the method at runtime. The flow chart is shown in Figure 4.
401、报文发送设备为报文标记优先级标识,所述报文为同一视频业务的视频帧的报文,所述优先级标识用于指示所述报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大。401. The packet sending device is a packet marking priority identifier, where the packet is a packet of a video frame of the same video service, and the priority identifier is used to indicate the importance of the video frame in the packet, and the priority is given. The higher the level, the greater the importance of the video frame corresponding to the message.
实时视频业务流程是:在报文发送设备以帧为单位采集图像数据,然后一帧一帧进行压缩,然后每一帧图像压缩后的数据被封装成一个或多个报文,再将报文发送给接收端报文接收设备。报文中的视频帧是指视频帧的数据被压缩封装到报文中。实时视频数据传输的过程中,按照帧率逐帧进行图像采集和压缩。常见的用于传输的视频压缩规范,例如数字视频压缩格式H.264或者高级视频编码(英文全称:Advanced Video Coding,英文缩写:AVC)中,视频帧分为不参考其它视频帧的视频帧、参考其它视频帧且被其它视频帧参考的 视频帧,以及参考其它帧且不被其它帧参考的视频帧;不参考其它视频帧的视频帧表示该视频帧在压缩时不参考其它视频帧;参考其它帧且不被其它帧参考的视频帧表示压缩这一个视频帧时是压缩该一视频帧跟另一个或者多个(通常是一个)视频帧的差别,即该视频帧参考其它视频帧,解码时需要用缓存的其它视频帧作为参考,将参考画面叠加上本视频帧定义的差别,生成最终画面,但是这个视频帧不会作为其它视频帧的参考帧使用;参考其它视频帧且被其它视频帧参考的视频帧表示该视频帧参考其它视频帧,解码时需要用缓存的其它视频帧作为参考,且该视频帧被其它视频帧参考,其它视频帧解码时需要缓存该视频帧作为参考,才能生成最终画面。帧间参考可以利用到视频帧间的冗余信息(相邻两帧图像一般有很多相同或者近似部分),可以大大提高压缩效率,同时带来了视频帧间的依赖关系。例如B帧参考A帧,A帧作为参考帧,在接收端报文接收设备的解码器上,如果A不能成功解码,那么B帧也无法解码。The real-time video service process is: the message sending device collects image data in units of frames, and then compresses one frame by one frame, and then the data compressed by each frame image is encapsulated into one or more messages, and then the message is transmitted. Send to the receiving end message receiving device. The video frame in the message means that the data of the video frame is compressed and encapsulated into the message. In the process of real-time video data transmission, image acquisition and compression are performed frame by frame according to the frame rate. Common video compression specifications for transmission, such as digital video compression format H.264 or advanced video coding (English full name: Advanced Video Coding, English abbreviation: AVC), video frames are divided into video frames that do not refer to other video frames, Refer to other video frames and referenced by other video frames Video frames, and video frames that refer to other frames and are not referenced by other frames; video frames that do not refer to other video frames indicate that the video frame does not reference other video frames when compressed; video frames that reference other frames and are not referenced by other frames Representing that compressing the video frame is to compress the difference between the video frame and another video frame (or usually one), that is, the video frame refers to other video frames, and the other video frames that are buffered need to be used as a reference for decoding. The reference picture is superimposed on the difference defined by the video frame to generate a final picture, but the video frame is not used as a reference frame of other video frames; the video frames referenced by other video frames and referenced by other video frames indicate that the video frame refers to other frames. For video frames, other video frames to be buffered are used as reference for decoding, and the video frames are referenced by other video frames. When decoding other video frames, the video frames need to be buffered as a reference to generate a final picture. Inter-frame reference can make use of redundant information between video frames (the two adjacent frames generally have many identical or approximate parts), which can greatly improve the compression efficiency and bring the dependence between video frames. For example, the B frame refers to the A frame, and the A frame serves as the reference frame. On the decoder of the receiving end of the message receiving device, if the A cannot be successfully decoded, the B frame cannot be decoded.
在同一视频业务的数据流中,不同的视频帧的重要性不同。在本申请的实施例中,可以设定所述参考其它视频帧且被其它视频帧参考的视频帧的重要性比所述参考其它视频帧且不被其它视频帧参考的视频帧的重要性大,比所述不参考其它视频帧的视频帧的重要性小。需要说明的是,对于不同视频帧的重要性的划分方式并不唯一,上述的重要性的划分只是其中一种实现方式,其它的重要性划分方式同样适用于本申请所提供的方法方案。Different video frames have different importance in the data stream of the same video service. In an embodiment of the present application, the importance of the video frame referenced by other video frames and referenced by other video frames may be set to be more important than the video frames referenced by other video frames and not referenced by other video frames. The importance of video frames that are not referenced to other video frames is less important. It should be noted that the manner of dividing the importance of different video frames is not unique. The above-mentioned importance division is only one of the implementation manners, and other importance division manners are also applicable to the method scheme provided by the present application.
报文发送设备在对视频帧进行编码,再将编码后的数据信息封装成报文,一个视频帧一般由多个报文封装而成,报文发送设备能够根据视频帧的具体信息识别出该视频帧的重要性,为了让报文转发设备能够识别出报文中的视频帧的重要性的大小,所以设置了报文标记策略,该报文标记策略用于指示报文发送设备按照报文中的视频帧的重要性从大到小标记所对应的报文的优先级从高到低。报文发送设备在报文的报文头部分添加优先级标识,其中,该优先级标识可以添加在报文头的DSCP字段中;或者,报文发送设备还可以对报文头进行扩展,例如扩展metadata数据,metadata中可以携带标准的报文头中不能包含的扩展字段,优先级标识也可以添加在metadata中,或者在报文IP头的扩展字段中携带,报文头扩展携带信息的技术有多种,此处不做具体限制。优先级标识可以由两位二进制来表示,数值越高的二进制其表示的优先级越高。比如“00”、“01”、“11”分别表示三种优先级,其中,“11”的优先级最高,“01”的优先级中等,“00”的优先级最低。The packet sending device encodes the video frame, and then encapsulates the encoded data information into a packet. A video frame is generally encapsulated by multiple packets, and the packet sending device can identify the video frame according to the specific information of the video frame. The importance of the video frame, in order to enable the packet forwarding device to recognize the importance of the video frame in the packet, so a packet marking policy is set, which is used to indicate that the packet sending device follows the packet. The importance of the video frames in the packets from the highest to the smallest mark is from high to low. The packet sending device adds a priority identifier to the packet header of the packet, where the priority identifier can be added in the DSCP field of the packet header; or the packet sending device can further extend the packet header, for example, Extended metadata data, the metadata can carry extended fields that cannot be included in the standard packet header. The priority identifier can also be added in the metadata, or carried in the extended field of the packet IP header, and the packet header expands the information carrying the information. There are many, and there are no specific restrictions here. The priority identifier can be represented by a two-digit binary, and the higher the value of the binary, the higher the priority it represents. For example, "00", "01", and "11" respectively indicate three priority levels, wherein "11" has the highest priority, "01" has the medium priority, and "00" has the lowest priority.
可选的,报文标记策略可以设置在报文发送设备上。Optionally, the packet marking policy can be set on the packet sending device.
可选的,报文标记策略还可以设置在应用服务器上,再由应用服务器将该报文标记策略发送给报文发送设备,报文发送设备再根据该报文标记策略为报文标记优先级标识。Optionally, the packet marking policy may also be set on the application server, and then the application server sends the packet marking policy to the packet sending device, and the packet sending device further marks the packet according to the packet marking policy. Logo.
可选的,报文发送设备也可以不为报文添加优先级标识,而且在报文中携带其它形式的信息,例如重要性字段,该字段可以添加在metadata中,该字段能够体现出该报文中视频帧的重要性,再由报文转发设备读取该重要性字段,然后根据报文标记策略的映射关系转换成的优先级标识。Optionally, the packet sending device may not add a priority identifier to the packet, and the packet carries other forms of information, such as an importance field, and the field may be added in the metadata, and the field can reflect the report. The importance of the video frame in the text is then read by the packet forwarding device, and then converted into a priority identifier according to the mapping relationship of the packet marking policy.
402、报文发送设备将所述报文发送给报文转发设备。402. The packet sending device sends the packet to the packet forwarding device.
403、报文转发设备接收报文发送设备发送的报文。403. The packet forwarding device receives the packet sent by the packet sending device.
404、报文转发设备根据所述报文的优先级标识优先丢弃第一报文,所述第一报文为所述报文中优先级低的报文。404. The packet forwarding device preferentially discards the first packet according to the priority identifier of the packet, where the first packet is a packet with a lower priority in the packet.
当网络拥塞时,报文转发设备的队列中堆积了多个报文,根据队列先进先出的原则, 先进入队列的报文将被优先转发出该队列,而后进入队列的报文则可能被丢弃。在实时视频业务中,不同的报文对应的视频帧的重要性可能不同,为了提高业务的传输质量,让更多重要性大的视频帧被传输到报文接收设备,则需要设置报文控制策略,该报文控制策略可以直接设置在报文转发设备上。当网络拥塞时,报文转发设备根据该报文控制策略优先丢弃优先级低的报文,而优先级越高的报文所对应的视频帧的重要性越大,那么报文转发设备在丢弃优先级低的报文后,则报文转发设备的队列则有更多的空间存储其它包括优先级高的报文,从而使得更多优先级高的报文被传输至接收端报文接收设备上。When the network is congested, multiple packets are accumulated in the queue of the packet forwarding device. According to the principle of queue first-in, first-out, Packets that enter the queue will be forwarded out of the queue first, and packets that enter the queue may be discarded. In the real-time video service, the importance of the video frames corresponding to different packets may be different. In order to improve the transmission quality of the service and allow more important video frames to be transmitted to the packet receiving device, you need to set the packet control. Policy, the packet control policy can be directly set on the packet forwarding device. When the network is congested, the packet forwarding device preferentially discards the packets with lower priority according to the packet control policy. The greater the importance of the video frames corresponding to the packets with higher priority, the greater the importance of the video frames. After the packet with the lower priority, the queue of the packet forwarding device has more space to store other packets with higher priority, so that more packets with higher priority are transmitted to the receiving device. on.
可选的,报文转发设备接收在接收报文发送设备发送的报文之前,还可以先接收软件定义网络SDN控制器发送的报文控制策略,所述报文控制策略用于指示丢弃报文的顺序为按照所述报文的优先级从低到高;Optionally, the packet forwarding device receives the packet control policy sent by the software-defined network SDN controller before receiving the packet sent by the packet sending device, where the packet control policy is used to indicate that the packet is discarded. The order is from low to high according to the priority of the message;
可选的,该报文控制策略也可以由上层设备SDN控制器发送给报文转发设备。该报文控制策略可以设置在控制策略中心上,由控制策略中心将该报文控制策略发送给SDN控制器;或者,该报文控制策略还可以设置在应用服务器上,应用服务器将该报文控制策略发送给控制策略中心,由控制策略中心转发给SDN控制器。Optionally, the packet control policy may also be sent by the upper device SDN controller to the packet forwarding device. The packet control policy may be set in the control policy center, and the control policy center sends the packet control policy to the SDN controller. Alternatively, the packet control policy may be set on the application server, and the application server uses the packet. The control policy is sent to the control policy center and forwarded to the SDN controller by the control policy center.
可选的,SDN控制器能够检测到都某个报文转发设备上发生了拥塞,为了保证低延时业务传输,可以向其它的报文转发设备发送丢弃指令,要求这些报文转发设备按照优先级标识主动丢弃优先级低的报文。Optionally, the SDN controller can detect that congestion occurs on a certain packet forwarding device. To ensure low-latency service transmission, the SDN controller can send a discarding instruction to other packet forwarding devices, and the packet forwarding device is required to be prioritized. The level identifier actively discards packets with low priority.
基于图4实施例所示,在实际应用中,报文发送设备在将所述报文发送给报文转发设备之前,还可以为所述报文添加所在的报文组的编号信息,其中,一组报文中的报文对应同一视频帧的数据信息。As shown in the embodiment of FIG. 4, in a practical application, the packet sending device may add the number information of the packet group to the packet before sending the packet to the packet forwarding device, where A message in a group of messages corresponds to data information of the same video frame.
由于一个视频帧可能会被封装成一个或多个报文,比如一个视频帧被封装成8个报文,那么该8个报文为一组报文,这组报文中的数据信息为同一视频帧的信息。为了让报文转发设备能够识别出每个报文所在的报文组,报文发送设备还可以在报文的报文头中添加该报文所在的报文组的编号。具体的,该编号可以用数字进行表示,比如,一个报文的优先级为“01”,其所在的报文组为“100”。Since a video frame may be encapsulated into one or more packets, for example, a video frame is encapsulated into 8 packets, the 8 packets are a group of messages, and the data information in the group of messages is the same. Information about the video frame. In order to enable the packet forwarding device to identify the packet group in which each packet is located, the packet sending device may also add the number of the packet group in which the packet is located in the packet header of the packet. Specifically, the number can be represented by a number. For example, a packet has a priority of "01" and a packet group of "100".
报文转发设备接收到报文时,若第二报文与第一报文的编号信息相同,则表示第一报文与第二报文为同一组的报文,该组报文对应的是同一视频帧的数据信息,由于该组中已经被报文转发设备丢弃了一个报文,那么该组中其它的报文也可能无法解码,那么报文转发设备则可以将该组中的其它报文也进行丢弃,这样,则减少了报文转发设备中队列的堆积量,使得报文转发设备有更大的吞吐量,可以容纳更多的报文,减少了当网络拥塞时丢弃报文的数量。When the packet forwarding device receives the packet, if the second packet is the same as the first packet, the first packet and the second packet are the same group. The packet corresponds to the packet. If the packet is discarded by the packet forwarding device in the same video frame, the other packets in the group may not be decoded. Then, the packet forwarding device can report other packets in the group. The packet is also discarded. In this way, the amount of queues in the packet forwarding device is reduced, so that the packet forwarding device has a larger throughput and can accommodate more packets, thereby reducing the number of packets discarded when the network is congested. Quantity.
可选的,在实际应用中,发送端报文发送设备能够对同一组报文,该组报文包括M个数据报文,通过前向纠错(英文全称:Forward Error Correction,英文缩写:FEC)生成N个校验报文,当而接收端报文接收设备接收到的报文总数达到M个时,则能够通过FEC回复该组报文中丢失的数据报文。因此,可选的,在网络不拥塞的情况下,报文转发设备在丢弃同一组报文中的其它报文时,可以先判断该组报文所丢弃的报文数量,若已经丢弃的报文数量超过预设阈值,则表示接收端报文接收设备不可能恢复已经丢弃的数据报文,那么报文转发设备则可以将该组报文中其它的报文也丢弃掉。Optionally, in the actual application, the sending end of the packet sending device can be the same group of packets, and the set of the packet includes M data packets, and the forward error correction (English full name: Forward Error Correction, English abbreviation: FEC) The N check packets are generated. When the total number of received packets received by the receiving device reaches M, the FEC can reply the lost data packets in the packet. Therefore, if the network is not congested, the packet forwarding device may discard the number of discarded packets in the group of packets when discarding other packets in the same group of packets. If the number of the packets exceeds the preset threshold, it indicates that the receiving packet receiving device cannot recover the discarded data packets. The packet forwarding device can also discard the other packets in the group.
可选的,在实际应用中,报文组的编号可以循环使用,比如,报文组的编号的范围是 1-200,那么当200号编号被使用后,那么报文发送设备则将下一组报文的编号标记为1,而传输视频帧的帧率也可以检测到。所以可选的,报文转发设备可以在预设周期内检测第二报文所在的报文组的编号信息与第一报文所在的报文组的编号信息是否相同。具体的周期根据每秒传输多少视频帧以及编号的长度而定。Optionally, in actual applications, the number of the packet group can be used cyclically. For example, the range of the packet group is 1-200, then when the number 200 number is used, then the message sending device marks the number of the next group of messages as 1, and the frame rate of the transmitted video frame can also be detected. Therefore, the packet forwarding device may detect, in a preset period, whether the number information of the packet group in which the second packet is located is the same as the number information of the packet group in which the first packet is located. The specific period depends on how many video frames are transmitted per second and the length of the number.
可选的,报文转发设备还可以将所述第一报文的报文组的编号信息发送给软件定义网络SDN控制器,用于所述SDN控制器根据所述第一报文的报文组的编号信息发送丢弃指令给其它报文转发设备,所述其它报文转发设备为所述视频业务的转发路径上的报文转发设备,使得所述其它报文转发设备丢弃与所述第一报文的报文组的编号信息相同的报文。Optionally, the packet forwarding device may further send the number information of the packet group of the first packet to a software-defined network SDN controller, where the SDN controller uses the packet according to the first packet. The numbering information of the group sends a discarding command to the other packet forwarding device, and the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the first The message with the same number information of the packet group of the packet.
当报文转发设备丢弃了第一报文后,那么该第一报文所在的报文组中的其它报文也可能将无法解码,而该报文组中的其它报文可能正在其它报文转发设备上进行传输,为了提高其它报文转发设备的吞吐量,则可以发送第一报文所在的报文组的编号信息给SDN控制器,有SDN控制器将该报文组的编号信息发送给其它报文转发设备,其它报文转发设备则主动对该报文组内的其它报文进行丢弃。After the packet forwarding device discards the first packet, other packets in the packet group in which the first packet is located may not be decoded, and other packets in the packet group may be in other packets. The forwarding device performs the transmission. To improve the throughput of the other packet forwarding device, the number information of the packet group in which the first packet is sent may be sent to the SDN controller, and the SDN controller sends the number information of the packet group. For other packet forwarding devices, other packet forwarding devices actively discard other packets in the packet group.
基于上述实施例,在实际应用中,报文发送设备还可以为所述报文添加所在的报文组与其它报文组之间的依赖关系信息,所述依赖关系用于指示报文组中的视频帧之间的参考关系;Based on the foregoing embodiment, in a practical application, the packet sending device may further add the dependency information between the packet group and the other packet group, where the dependency relationship is used to indicate the packet group. a reference relationship between video frames;
由于一组报文对应同一视频帧的数据信息,而视频帧之间又存在如上述步骤401所述的参考关系,为了让报文转发设备能够识别出该报文所在的报文组与其它报文组之间的依赖关系,所以报文发送设备还可以给报文添加所在报文组与其它报文组之间的依赖关系。具体的,该依赖关系可以用具体的字段或符号进行表示,比如,一个报文的优先级为“01”,其所在的报文组为“100”,且该报文组“100”的依赖关系是“依赖报文组“99”,且被报文组“101”依赖”。则表示了该报文所在的报文组“100”中的视频帧参考报文组“99”中的视频帧,且被报文组“101”中的视频帧参考。The packet forwarding device can identify the packet group in which the packet is located and the other packet, because the packet information corresponds to the data information of the same video frame, and the reference relationship described in the foregoing step 401 exists between the video frames. The dependency relationship between the groups, so the packet sending device can also add the dependency relationship between the packet group and other packet groups. Specifically, the dependency may be represented by a specific field or symbol. For example, a packet has a priority of "01", a packet group of which is "100", and the packet group has a dependency of "100". The relationship is "depending on the message group "99" and is dependent on the message group "101". Then, the video frame in the video frame reference message group "99" in the message group "100" in which the message is located is referred to, and is referenced by the video frame in the message group "101".
报文转发设备接收到报文时,若报文转发设备接收到的第三报文所在的报文组依赖于所述第一报文所在报文组,则丢弃所述第三报文。When the packet forwarding device receives the packet, if the packet group in which the third packet is received by the packet forwarding device depends on the packet group in which the first packet is located, the third packet is discarded.
当报文转发设备丢弃了第一报文所在的报文组中所有的报文后,那么依赖于第一报文所在的报文组的其它报文组中的视频帧将不可能被解码,为了提高报文转发设备的吞吐量,则将依赖于第一报文所在的报文组的报文进行主动丢弃。After the packet forwarding device discards all the packets in the packet group in which the first packet is located, the video frames in other packet groups that depend on the packet group in which the first packet is located cannot be decoded. In order to improve the throughput of the packet forwarding device, the packets of the packet group in which the first packet is located are actively discarded.
可选的,报文转发设备还可以将所述第三报文的报文组的编号信息发送给软件定义网络SDN控制器,用于所述SDN控制器根据所述第三报文的报文组的编号信息发送丢弃指令给其它报文转发设备,所述其它报文转发设备为所述视频业务的转发路径上报文转发设备,使得所述其它报文转发设备丢弃与所述第三报文的报文组的编号信息相同的报文。Optionally, the packet forwarding device may further send the number information of the packet group of the third packet to a software-defined network SDN controller, where the SDN controller uses the packet according to the third packet. The numbering information of the group sends a discarding command to the other packet forwarding device, and the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the third packet. The message number of the message group is the same as the message.
由于第三报文所在的报文组依赖于已经丢弃了的第一报文所在的报文组,所以第三报文所在的报文组即使全部被成功发送到接收端报文接收设备,其对应的视频帧也同样无法进行解码,所以即使在网络不拥塞的情况下,为了提高报文转发设备的吞吐量,减少其它能够解码的报文的丢弃,所有报文转发设备需主动丢弃第三报文所在的报文组中所有的报文。Since the packet group in which the third packet is located depends on the packet group in which the first packet has been discarded, even if all the packet groups in which the third packet is located are successfully sent to the receiving end packet receiving device, The corresponding video frame can also be decoded. Therefore, even if the network is not congested, in order to improve the throughput of the packet forwarding device and reduce the discarding of other packets that can be decoded, all packet forwarding devices must actively discard the third. All packets in the packet group where the packet is located.
本申请还提供了一种报文转发设备500,该设备可以通过图2所示的报文转发设备200 实现,还可以通过专用集成电路(英文:application-specific integrated circuit,缩写:ASIC)实现,或可编程逻辑器件(英文:programmable logic device,缩写:PLD)实现。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文全称:Field Programmable Gate Array,英文缩写:FPGA),通用阵列逻辑(英文:generic array logic,缩写:GAL)或其任意组合。该报文转发设备500用于实现图4所示的报文转发设备所执行的方法。通过软件实现图4所示的报文转发设备所执行的方法时,该报文转发设备500也可以为软件模块。The present application further provides a packet forwarding device 500, which can pass the packet forwarding device 200 shown in FIG. The implementation can also be realized by an application-specific integrated circuit (ASIC) or a programmable logic device (abbreviated as PLD). The above PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), a field programmable gate array (English full name: Field Programmable Gate Array, English abbreviation: FPGA), general array logic (English: generic Array logic, abbreviation: GAL) or any combination thereof. The packet forwarding device 500 is configured to implement the method performed by the packet forwarding device shown in FIG. When the method performed by the packet forwarding device shown in FIG. 4 is implemented by software, the packet forwarding device 500 may also be a software module.
报文转发设备500的组织结构示意图如图5所示,包括:处理单元501和发送单元502以及接收单元503。处理单元501工作时,执行图4所示的报文处理的方法中报文转发设备所执行的方法。As shown in FIG. 5, the schematic diagram of the organization of the packet forwarding device 500 includes a processing unit 501, a sending unit 502, and a receiving unit 503. When the processing unit 501 is in operation, the method performed by the packet forwarding device in the method of packet processing shown in FIG. 4 is executed.
本申请还提供了一种报文发送设备600,该装置可以通过图3所示的报文发送设备300实现,还可以通过ASIC实现,或PLD实现。上述PLD可以是CPLD,FPGA,GAL或其任意组合。该报文发送设备600用于实现图4所示的报文发送设备所执行的方法。通过软件实现图4所示的报文发送设备所执行的方法时,该报文发送设备600也可以为软件模块。The present application further provides a message sending device 600, which can be implemented by the message sending device 300 shown in FIG. 3, and can also be implemented by an ASIC or a PLD. The above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof. The message sending device 600 is configured to implement the method performed by the message sending device shown in FIG. When the method performed by the message sending device shown in FIG. 4 is implemented by software, the message sending device 600 may also be a software module.
报文发送设备600的组织结构示意图如图6所示,包括:处理单元601和发送单元602以及接收单元603。处理单元601工作时,执行图4所示的报文处理的方法中报文发送设备所执行的方法。As shown in FIG. 6, the schematic diagram of the organization of the packet sending device 600 includes a processing unit 601 and a transmitting unit 602 and a receiving unit 603. When the processing unit 601 operates, the method performed by the message transmitting device in the method of message processing shown in FIG. 4 is executed.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的报文处理的方法的部分或全部步骤。The embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the steps of the method for processing the message according to the foregoing method embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、 随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), A variety of media that can store program code, such as random access memory (RAM), disk, or optical disk.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (24)

  1. 一种报文处理的方法,其特征在于,所述方法包括:A method for processing a message, characterized in that the method comprises:
    接收报文发送设备发送的报文,所述报文为同一视频业务的视频帧的报文,其中,所述报文包含报文所对应的优先级标识,所述优先级标识用于指示所述报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大;Receiving a packet sent by the packet sending device, where the packet is a packet of a video frame of the same video service, where the packet includes a priority identifier corresponding to the packet, and the priority identifier is used to indicate the location The importance of the video frame in the message, the greater the importance of the video frame corresponding to the higher priority message;
    根据所述报文的优先级标识优先丢弃第一报文,所述第一报文为所述报文中优先级低的报文。The first packet is preferentially discarded according to the priority identifier of the packet, where the first packet is a packet with a lower priority in the packet.
  2. 根据权利要求1所述的方法,其特征在于,所述报文还包括所在报文组的编号信息,其中,一组报文中的报文对应同一视频帧的数据信息;The method according to claim 1, wherein the message further includes number information of the group of the message, wherein the message in the group of messages corresponds to the data information of the same video frame;
    所述方法还包括:The method further includes:
    若接收到的第二报文的报文组的编号信息与所述第一报文的报文组的编号信息相同,则丢弃所述第二报文。And if the number information of the packet group of the second packet is the same as the number information of the packet group of the first packet, discarding the second packet.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    将所述第一报文的报文组的编号信息发送给软件定义网络SDN控制器,用于所述SDN控制器根据所述第一报文的报文组的编号信息发送丢弃指令给其它报文转发设备,所述其它报文转发设备为所述视频业务的转发路径上的报文转发设备,使得所述其它报文转发设备丢弃与所述第一报文的报文组的编号信息相同的报文。Sending the number information of the packet group of the first packet to the software-defined network SDN controller, where the SDN controller sends a discarding instruction to the other packet according to the number information of the packet group of the first packet. a packet forwarding device, wherein the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the same number information as the packet group of the first packet. Message.
  4. 根据权利要求2或3所述的方法,其特征在于,所述报文还包括所在的报文组与其它报文组之间的依赖关系信息,所述依赖关系用于指示报文组中的视频帧之间的参考关系;The method according to claim 2 or 3, wherein the message further includes dependency information between the packet group and other packet groups, and the dependency relationship is used to indicate the packet group. a reference relationship between video frames;
    所述方法还包括:The method further includes:
    若接收到的第三报文所在的报文组依赖于所述第一报文所在报文组,则丢弃所述第三报文。If the packet group in which the third packet is received depends on the packet group in which the first packet is located, the third packet is discarded.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    将所述第三报文的报文组的编号信息发送给软件定义网络SDN控制器,用于所述SDN控制器根据所述第三报文的报文组的编号信息发送丢弃指令给其它报文转发设备设备,所述其它报文转发设备为所述视频业务的转发路径上的报文转发设备,使得所述其它报文转发设备丢弃与所述第三报文的报文组的编号信息相同的报文。Sending the number information of the packet group of the third packet to the software-defined network SDN controller, where the SDN controller sends a discarding instruction to the other packet according to the number information of the packet group of the third packet. Forwarding the device device, the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the number information of the packet group of the third packet The same message.
  6. 根据权利要求1至5其中任意一项所述的方法,其特征在于,在所述根据所述报文的优先级标识优先丢弃第一报文之前,所述方法还包括:The method according to any one of claims 1 to 5, wherein before the discarding the first packet according to the priority of the packet, the method further comprises:
    接收软件定义网络SDN控制器发送的报文控制策略,所述报文控制策略用于指示丢弃报文的顺序为按照所述报文的优先级从低到高;Receiving a message control policy sent by the software-defined network SDN controller, where the message control policy is used to indicate that the order of dropping the message is according to the priority of the message from low to high;
    所述根据所述报文的优先级标识优先丢弃第一报文包括:The discarding the first packet according to the priority identifier of the packet includes:
    根据所述报文控制策略以及所述报文的优先级标识丢弃第一报文。And discarding the first packet according to the packet control policy and the priority identifier of the packet.
  7. 根据权利要求1至6其中任意一项所述的方法,其特征在于,所述视频帧包括:不参考其它视频帧的视频帧、参考其它视频帧且被其它视频帧参考的视频帧,以及参考其它帧且不被其它帧参考的视频帧;其中,所述参考其它视频帧且被其它视频帧参考的视频帧的重要性比所述参考其它视频帧且不被其它视频帧参考的视频帧的重要性大,比所述不参考其它视频帧的视频帧的重要性小。The method according to any one of claims 1 to 6, wherein the video frame comprises: a video frame that does not refer to other video frames, a video frame that references other video frames and is referenced by other video frames, and a reference a video frame that is not referenced by other frames; the video frames that are referenced by other video frames and referenced by other video frames are more important than the video frames that are referenced by other video frames and are not referenced by other video frames It is of great importance and is less important than the video frames that do not refer to other video frames.
  8. 一种报文处理的方法,其特征在于,所述方法包括: A method for processing a message, characterized in that the method comprises:
    为报文标记优先级标识,所述报文为同一视频业务的视频帧的报文,所述优先级标识用于指示所述报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大;The packet is marked with a priority identifier, and the packet is a packet of a video frame of the same video service, and the priority identifier is used to indicate the importance of the video frame in the packet, and the packet with the higher priority is used. The importance of the corresponding video frame is greater;
    将所述报文发送给报文转发设备。Send the packet to the packet forwarding device.
  9. 根据权利要求8所述的方法,其特征在于,在将所述报文发送给报文转发设备之前,所述方法还包括:The method according to claim 8, wherein before the sending the packet to the packet forwarding device, the method further includes:
    为所述报文添加所在的报文组的编号信息,其中,一组报文中的报文对应同一视频帧的数据信息。And adding, to the packet, the number information of the packet group in which the packet belongs, wherein the packet in the group of packets corresponds to the data information of the same video frame.
  10. 根据权利要求9所述的方法,其特征在于,在将所述报文发送给报文转发设备之前,所述方法还包括:The method according to claim 9, wherein before the sending the message to the packet forwarding device, the method further comprises:
    为所述报文添加所在的报文组与其它报文组之间的依赖关系信息,所述依赖关系用于指示报文组中的视频帧之间的参考关系。The dependency information between the packet group and the other packet group is added to the packet, and the dependency relationship is used to indicate a reference relationship between video frames in the packet group.
  11. 根据权利要求8至10其中任意一项所述的方法,其特征在于,在为报文标记优先级标识之前,所述方法还包括:The method according to any one of claims 8 to 10, wherein before the marking the priority of the message, the method further comprises:
    接收应用服务器发送的报文标记策略,所述报文标记策略用于指示按照报文中的视频帧的重要性从大到小标记所对应的报文的优先级从高到低;Receiving a packet marking policy sent by the application server, where the packet marking policy is used to indicate that the priority of the packet corresponding to the importance of the video frame in the packet is from high to low;
    所述为报文标记优先级标识包括:The marking the priority identifier for the message includes:
    根据所述报文标记策略为报文标记优先级标识。The packet is marked with a priority identifier according to the packet marking policy.
  12. 根据权利要求8至11其中任意一项所述的方法,其特征在于,所述视频帧包括:不参考其它视频帧的视频帧、参考其它视频帧且被其它视频帧参考的视频帧,以及参考其它帧且不被其它帧参考的视频帧;其中,所述参考其它视频帧且被其它视频帧参考的视频帧的重要性比所述参考其它视频帧且不被其它视频帧参考的视频帧的重要性大,比所述不参考其它视频帧的视频帧的重要性小。The method according to any one of claims 8 to 11, wherein the video frame comprises: a video frame that does not refer to other video frames, a video frame that references other video frames and is referenced by other video frames, and a reference a video frame that is not referenced by other frames; the video frames that are referenced by other video frames and referenced by other video frames are more important than the video frames that are referenced by other video frames and are not referenced by other video frames It is of great importance and is less important than the video frames that do not refer to other video frames.
  13. 一种报文转发设备,其特征在于,所述设备包括:A packet forwarding device, the device includes:
    接收单元,用于接收报文发送设备发送的报文,所述报文为同一视频业务的视频帧的报文,其中,所述报文包含报文所对应的优先级标识,所述优先级标识用于指示所述报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大;a receiving unit, configured to receive a packet sent by the packet sending device, where the packet is a packet of a video frame of the same video service, where the packet includes a priority identifier corresponding to the packet, and the priority is The identifier is used to indicate the importance of the video frame in the packet, and the video frame corresponding to the higher priority is more important;
    处理单元,用于根据所述报文的优先级标识优先丢弃第一报文,所述第一报文为所述报文中优先级低的报文。The processing unit is configured to preferentially discard the first packet according to the priority identifier of the packet, where the first packet is a packet with a lower priority in the packet.
  14. 根据权利要求13所述的设备,其特征在于,所述报文还包括所在报文组的编号信息,其中,一组报文中的报文对应同一视频帧的数据信息;The device according to claim 13, wherein the message further includes number information of the group of the message, wherein the message in the group of messages corresponds to the data information of the same video frame;
    所述处理单元还用于:The processing unit is further configured to:
    若接收到的第二报文的报文组的编号信息与所述第一报文的报文组的编号信息相同,则丢弃所述第二报文。And if the number information of the packet group of the second packet is the same as the number information of the packet group of the first packet, discarding the second packet.
  15. 根据权利要求14所述的设备,其特征在于,所述设备还包括:The device according to claim 14, wherein the device further comprises:
    发送单元,用于将所述第一报文的报文组的编号信息发送给软件定义网络SDN控制器,以使所述SDN控制器根据所述第一报文的报文组的编号信息发送丢弃指令给其它报文转发设备,所述其它报文转发设备为所述视频业务的转发路径上的报文转发设备,使得所述其它报文转发设备丢弃与所述第一报文的报文组的编号信息相同的报文。a sending unit, configured to send the number information of the packet group of the first packet to a software-defined network SDN controller, so that the SDN controller sends the number information of the packet group according to the first packet The discarding instruction is sent to the other packet forwarding device, and the other packet forwarding device is the packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the packet with the first packet. The group's number information is the same as the message.
  16. 根据权利要求14或15所述的设备,其特征在于,所述报文还包括所在的报文组与其它报文组之间的依赖关系信息,所述依赖关系用于指示报文组中的视频帧之间的参考关系; The device according to claim 14 or 15, wherein the message further includes dependency information between the packet group and other packet groups, and the dependency relationship is used to indicate the packet group. a reference relationship between video frames;
    所述处理单元还用于:The processing unit is further configured to:
    若接收到的第三报文所在的报文组依赖于所述第一报文所在报文组,则丢弃所述第三报文。If the packet group in which the third packet is received depends on the packet group in which the first packet is located, the third packet is discarded.
  17. 根据权利要求16所述的设备,其特征在于,所述发送单元还用于:The device according to claim 16, wherein the sending unit is further configured to:
    将所述第三报文的报文组的编号信息发送给软件定义网络SDN控制器,以使所述SDN控制器根据所述第三报文的报文组的编号信息发送丢弃指令给其它报文转发设备,所述其它报文转发设备为所述视频业务的转发路径上的报文转发设备,使得所述其它报文转发设备丢弃与所述第三报文的报文组的编号信息相同的报文。Sending the number information of the packet group of the third packet to the software-defined network SDN controller, so that the SDN controller sends a discarding instruction to the other packet according to the number information of the packet group of the third packet. a packet forwarding device, wherein the other packet forwarding device is a packet forwarding device on the forwarding path of the video service, so that the other packet forwarding device discards the same number information as the packet group of the third packet Message.
  18. 根据权利要求13至17其中任意一项所述的设备,其特征在于,所述接收单元还用于:The device according to any one of claims 13 to 17, wherein the receiving unit is further configured to:
    在所述处理单元根据所述报文的优先级标识优先丢弃第一报文之前,接收软件定义网络SDN控制器发送的报文控制策略,所述报文控制策略用于指示丢弃报文的顺序为按照所述报文的优先级从低到高;And receiving, by the processing unit, the packet control policy sent by the software-defined network SDN controller, where the packet control policy is used to indicate the sequence of discarding the packet, before the processing unit preferentially discards the first packet according to the priority identifier of the packet. In order to follow the priority of the message from low to high;
    所述处理单元具体用于:The processing unit is specifically configured to:
    根据所述报文控制策略以及所述报文的优先级标识丢弃第一报文。And discarding the first packet according to the packet control policy and the priority identifier of the packet.
  19. 根据权利要求13至18其中任意一项所述的设备,其特征在于,所述视频帧包括:不参考其它视频帧的视频帧、参考其它视频帧且被其它视频帧参考的视频帧,以及参考其它帧且不被其它帧参考的视频帧;其中,所述参考其它视频帧且被其它视频帧参考的视频帧的重要性比所述参考其它视频帧且不被其它视频帧参考的视频帧的重要性大,比所述不参考其它视频帧的视频帧的重要性小。The device according to any one of claims 13 to 18, wherein the video frame comprises: a video frame that does not refer to other video frames, a video frame that refers to other video frames and is referenced by other video frames, and a reference a video frame that is not referenced by other frames; the video frames that are referenced by other video frames and referenced by other video frames are more important than the video frames that are referenced by other video frames and are not referenced by other video frames It is of great importance and is less important than the video frames that do not refer to other video frames.
  20. 一种报文发送设备,其特征在于,所述设备包括:A message sending device, the device comprising:
    处理单元,用于为报文标记优先级标识,所述报文为同一视频业务的视频帧的报文,所述优先级标识用于指示所述报文中的视频帧的重要性,优先级越高的报文所对应的视频帧的重要性越大;a processing unit, configured to mark a priority identifier of the packet, where the packet is a packet of a video frame of the same video service, where the priority identifier is used to indicate the importance of the video frame in the packet, and the priority is The higher the video frame corresponding to the larger the message, the greater the importance;
    发送单元,用于将所述报文发送给报文转发设备。And a sending unit, configured to send the packet to the packet forwarding device.
  21. 根据权利要求20所述的设备,其特征在于,所述处理单元还用于:The device according to claim 20, wherein the processing unit is further configured to:
    在所述发送单元将所述报文发送给报文转发设备之前,为所述报文添加所在的报文组的编号信息,其中,一组报文中的报文对应同一视频帧的数据信息。And before the sending unit sends the packet to the packet forwarding device, adding, to the packet, the number information of the packet group, where the packet in the group of packets corresponds to the data information of the same video frame. .
  22. 根据权利要求21所述的设备,其特征在于,所述处理单元还用于:The device according to claim 21, wherein the processing unit is further configured to:
    在所述发送单元将所述报文发送给报文转发设备之前,为所述报文添加所在的报文组与其它报文组之间的依赖关系信息,所述依赖关系用于指示报文组中的视频帧之间的参考关系。Before the sending unit sends the packet to the packet forwarding device, the dependency information between the packet group and the other packet group is added to the packet, and the dependency relationship is used to indicate the packet. The reference relationship between video frames in a group.
  23. 根据权利要求20至22其中任意一项所述的设备,其特征在于,所述装置还包括:The device according to any one of claims 20 to 22, wherein the device further comprises:
    接收单元,用于在所述处理单元为报文标记优先级标识之前,接收应用服务器发送的报文标记策略,所述报文标记策略用于指示按照报文中的视频帧的重要性从大到小标记所对应的报文的优先级从高到低;a receiving unit, configured to receive, after the processing unit marks the priority of the packet, the packet marking policy sent by the application server, where the packet marking policy is used to indicate that the importance of the video frame according to the packet is large The priority of the message corresponding to the small tag is from high to low;
    所述处理单元具体用于:The processing unit is specifically configured to:
    根据所述报文标记策略为报文标记优先级标识。The packet is marked with a priority identifier according to the packet marking policy.
  24. 根据权利要求20至23其中任意一项所述的设备,其特征在于,所述视频帧包括:不参考其它视频帧的视频帧、参考其它视频帧且被其它视频帧参考的视频帧,以及参考其它帧且不被其它帧参考的视频帧;其中,所述参考其它视频帧且被其它视频帧参考的视频帧的重要 性比所述参考其它视频帧且不被其它视频帧参考的视频帧的重要性大,比所述不参考其它视频帧的视频帧的重要性小。 The device according to any one of claims 20 to 23, wherein the video frame comprises: a video frame that does not refer to other video frames, a video frame that references other video frames and is referenced by other video frames, and a reference Video frames that are other frames and are not referenced by other frames; wherein the importance of the video frames that reference other video frames and are referenced by other video frames The importance of the video frames that are referenced to other video frames and not referenced by other video frames is greater than the importance of the video frames that are not referenced to other video frames.
PCT/CN2017/074708 2016-03-22 2017-02-24 Packet processing method and related device WO2017161999A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610165452.4A CN107222427A (en) 2016-03-22 2016-03-22 The method and relevant device of a kind of Message processing
CN201610165452.4 2016-03-22

Publications (1)

Publication Number Publication Date
WO2017161999A1 true WO2017161999A1 (en) 2017-09-28

Family

ID=59899335

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/074708 WO2017161999A1 (en) 2016-03-22 2017-02-24 Packet processing method and related device

Country Status (2)

Country Link
CN (1) CN107222427A (en)
WO (1) WO2017161999A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600812A (en) * 2020-05-13 2020-08-28 优刻得科技股份有限公司 Message processing method, processing device, readable medium and system
CN112367277A (en) * 2020-10-30 2021-02-12 新华三大数据技术有限公司 Message processing method and device
CN114448573A (en) * 2022-03-02 2022-05-06 新华三半导体技术有限公司 Message processing method and device
WO2022151492A1 (en) * 2021-01-18 2022-07-21 华为技术有限公司 Scheduling transmission method and apparatus

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729014B (en) * 2017-10-31 2023-09-12 深圳市中兴微电子技术有限公司 Message storage method and device
CN109525498A (en) * 2018-10-29 2019-03-26 成都博高信息技术股份有限公司 The communication means of LoraWan network and client-server
CN111726298B (en) * 2019-03-19 2024-04-09 华为技术有限公司 Method for requesting credit and communication device
WO2021159478A1 (en) * 2020-02-14 2021-08-19 华为技术有限公司 Message order preservation method and apparatus
CN111698175B (en) * 2020-06-24 2023-09-19 北京经纬恒润科技股份有限公司 Message receiving and transmitting method and system for gateway
CN115086778A (en) * 2021-03-15 2022-09-20 中移(上海)信息通信科技有限公司 AI processing method and device for video stream
CN115802094A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Video message processing method and device, computer equipment and readable medium
CN114221916A (en) * 2021-12-17 2022-03-22 裕太微电子股份有限公司 Method and system for flushing forwarding queue of switching chip
CN114363434A (en) * 2021-12-28 2022-04-15 中国联合网络通信集团有限公司 Video frame sending method and network equipment
CN116938828A (en) * 2022-03-29 2023-10-24 腾讯科技(深圳)有限公司 Data packet transmission method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281627A (en) * 1997-11-12 2001-01-24 诺基亚网络有限公司 Frame discard mechanism for packet switches
CN104012054A (en) * 2012-12-25 2014-08-27 华为技术有限公司 Video processing method, device and system
CN104378602A (en) * 2014-11-26 2015-02-25 福建星网锐捷网络有限公司 Video transmission method and device
CN104702968A (en) * 2015-02-17 2015-06-10 华为技术有限公司 Frame loss method for video frame and video sending device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281627A (en) * 1997-11-12 2001-01-24 诺基亚网络有限公司 Frame discard mechanism for packet switches
CN104012054A (en) * 2012-12-25 2014-08-27 华为技术有限公司 Video processing method, device and system
CN104378602A (en) * 2014-11-26 2015-02-25 福建星网锐捷网络有限公司 Video transmission method and device
CN104702968A (en) * 2015-02-17 2015-06-10 华为技术有限公司 Frame loss method for video frame and video sending device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600812A (en) * 2020-05-13 2020-08-28 优刻得科技股份有限公司 Message processing method, processing device, readable medium and system
CN111600812B (en) * 2020-05-13 2022-10-25 优刻得科技股份有限公司 Message processing method, processing device, readable medium and system
CN112367277A (en) * 2020-10-30 2021-02-12 新华三大数据技术有限公司 Message processing method and device
CN112367277B (en) * 2020-10-30 2022-03-29 新华三大数据技术有限公司 Message processing method and device
WO2022151492A1 (en) * 2021-01-18 2022-07-21 华为技术有限公司 Scheduling transmission method and apparatus
CN114448573A (en) * 2022-03-02 2022-05-06 新华三半导体技术有限公司 Message processing method and device
CN114448573B (en) * 2022-03-02 2024-02-23 新华三半导体技术有限公司 Message processing method and device

Also Published As

Publication number Publication date
CN107222427A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
WO2017161999A1 (en) Packet processing method and related device
US10237153B2 (en) Packet retransmission method and apparatus
KR102513755B1 (en) Service transmission method, facilities and computer storage media
WO2016033970A1 (en) Traffic management implementation method and apparatus and network device
EP2724505B1 (en) Header compression with a code book
US11012367B2 (en) Technologies for managing TCP/IP packet delivery
US20230216767A1 (en) Technologies for out-of-order network packet management and selective data flow splitting
US7602809B2 (en) Reducing transmission time for data packets controlled by a link layer protocol comprising a fragmenting/defragmenting capability
CN111740808A (en) Data transmission method and device
US8730813B2 (en) Apparatus for performing packet-shaping on a packet flow
CN110474721B (en) Video data transmission method, device and computer readable storage medium
Li et al. A framework for qualitative communications using big packet protocol
KR20130057937A (en) Apparatus and method for transmitting and receiving packet in communication system
US20150244637A1 (en) Exporting Real Time Network Traffic Latency and Buffer Occupancy
CN110943933A (en) Method, device and system for realizing data transmission
WO2022143902A1 (en) Data packet transmission method and related device
WO2019101054A1 (en) Aggregation rate control method, device and system
CN114006953A (en) Method and device for processing message
US20170195227A1 (en) Packet storing and forwarding method and circuit, and device
CN111629280A (en) Packet loss processing method and device and readable storage medium
WO2014067409A1 (en) Queue scheduling method, apparatus and system
US20230163875A1 (en) Method and apparatus for packet wash in networks
CN114363232A (en) Method and device for sending slice frame
KR20100112151A (en) Network card and information processor
CN107231316B (en) Message transmission method and device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17769276

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17769276

Country of ref document: EP

Kind code of ref document: A1