Message processing method, apparatus and system

By carrying media information in the header of media messages, the problem that existing technology cannot process media messages is solved, and media service quality assurance and differentiated processing are achieved.

WO2024198955A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/081671
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2024-03-14
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The existing technology cannot effectively process the media information in the media packets, affecting the quality of media services, because the network equipment cannot parse the payload of the packets, resulting in the inability to perform differentiated processing on the media packets.

Method used

Media information is carried in the header of the media packet, so that the network device can process the media packet based on the information in the packet header to ensure the quality of media services. Specific methods include adding media information to the IPv6 extension header, QUIC proxy header, and RTP header for operations such as error correction encoding, error correction decoding, and forwarding.

Benefits of technology

By carrying media information in the packet header, network equipment can perform operations such as error correction encoding, error correction decoding, and forwarding to avoid media packet loss affecting service quality and achieve differentiated processing and quality assurance for media services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081671_03102024_PF_FP_ABST
    Figure CN2024081671_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A message processing method, apparatus and system, which belong to the technical field of networks. The method comprises: a first device acquiring an original message, wherein a payload of the original message comprises original media information; the first device obtaining a first message on the basis of the original message, wherein the first message comprises the payload and a message header, the message header comprises first media information, and the first media information is related to the original media information; and the first device sending the first message, wherein the first media information in the message header is used for a network device, which has received the first message, to execute processing for the first message. In the present application, media information is carried in a message header of a media message, such that a network device can execute processing for the media message according to the media information in the message header, thereby guaranteeing the quality of a media service.
Need to check novelty before this filing date? Find Prior Art

Description

Message processing method, device and system

[0001] This application claims priority to Chinese patent application filed on March 24, 2023, with application number 202310327299.0 and application name “Message Processing Method, Device and System”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of network technology, and in particular to a message processing method, device and system. Background Art

[0003] End-side devices (such as user equipment and servers) can access a communication network, which enables communication between different end-side devices by forwarding messages between them.

[0004] For example, end-side devices accessing a communication network include a transmitting device and a receiving device. The communication network forwards a media message containing media information from the transmitting device to the receiving device, enabling the transmitting device to provide media services to the receiving device. Currently, the media information is located in the payload (e.g., the data portion) of the media message, which makes it impossible for network devices to process the media message based on the media information in the media message, thus affecting the quality of the media service.

[0005] Summary of the Invention

[0006] The present application provides a message processing method, device and system. The technical solution of the present application is as follows.

[0007] In a first aspect, a message processing method is provided, the method comprising: a first device obtains an original message, the payload of the original message including original media information; the first device obtains a first message based on the original message, the first message including the payload and a message header, the message header including first media information, the first media information being related to the original media information; the first device sends the first message, the first media information in the message header being used by a network device that receives the first message to perform processing on the first message (e.g., perform first processing).

[0008] Among them, the original message and the first message are both media messages. The media message described in this application refers to a service message of a media service, for example, a message including media data in the payload. For example, the media service is an audio service or a video service, the media message is an audio message or a video message, and the media data is audio data or video data. The media information described in this application is related information of media services, media data, media messages, etc. The first device encapsulates a message header including the first media information outside the original message to obtain the first message or adds the first media information to the message header of the original message to obtain the first message.

[0009] The technical solution provided by this application is that the first message obtained by the first device based on the original message includes a message header and a payload of the original message, the message header includes first media information, and the first media information is related to the original media information in the payload. Because the information in the message header is visible to the network device, the network device can perform processing on the first message based on the first media information in the message header to ensure the quality of the media service. In other words, this application carries media information in the message header of the media message, so that the network device can perform processing on the media message based on the media information carried in the message header of the media message, thereby ensuring the quality of the media service to which the media message belongs.

[0010] Optionally, the message header includes at least one of the following: an internet protocol version 6 (IPv6) extension header; a quick user datagram protocol internet connections (QUIC) proxy header; and a real-time transport protocol (RTP) header.

[0011] Optionally, the IPv6 extension header is a hop by hop header (HBH) or a destination options header (DOH).

[0012] Optionally, the IPv6 extension header includes an application-aware networking (APN) field, and the first media information is located in the APN field. For example, the first media information is located in an APN identification (ID) subfield and / or an APN parameters (APN-Para) subfield in the APN field.

[0013] The technical solution provided by the present application, since the media information is carried in the APN ID subfield or the APN parameter subfield, there is no need to extend the field in the APN field to carry the media information, thereby avoiding the modification of the protocol by extending the field in the APN field.

[0014] Optionally, the IPv6 extension header includes an option field, and the first media information is located in the option field.

[0015] Optionally, the QUIC proxy header includes a metadata field, in which the first media information is located. For example, the metadata field is a type-length-value (TLV) field, which is used to carry metadata of the payload, and is also referred to as a payload metadata field.

[0016] Optionally, the RTP header includes an extension field, and the first media information is located in the extension field. For example, the extension field includes at least one extension header, and the first media information is located in the at least one extension header. The at least one extension header is a one-byte header, or the at least one extension header is a two-byte header.

[0017] Optionally, the first media information includes at least one of the following: media information for error correction coding, media information for error correction decoding, and media information for forwarding. For example, the error correction coding is forward error correction (FEC) coding, the error correction decoding is FEC decoding, and the forwarding specifically includes forwarding, copying, discarding, and caching.

[0018] The technical solution provided by the present application is that, when the message header of the first message carries media information for error correction coding, the network device can perform error correction coding on the first message based on the media information for error correction coding, so as to avoid the loss of the first message affecting the service quality; when the message header of the first message carries media information for error correction decoding, the network device can perform error correction decoding on the first message based on the media information for error correction decoding, so as to avoid the loss of the first message affecting the service quality; when the message header of the first message carries media information for forwarding, the network device can perform forwarding operations such as forwarding, copying, discarding or caching on the first message based on the media information for forwarding in combination with network quality, so as to realize differentiated processing of the first message in combination with network quality.

[0019] Optionally, the first message belongs to a first message set, the first message set belongs to a first message set group, the first message set group includes a critical message set and at least one non-critical message set, and the first media information includes at least one of the following: the priority of the first message set; the identifier of the first message set; the number of messages in the first message set; the identifier of the first message in the first message set; the type of the first message set, the type of the first message set is a critical message set or a non-critical message set; the identifier of the dependent message set corresponding to the first message set, the first message set depends on the dependent message set for data decoding (for example, the data in the payload of the message in the first message set is decoded by Encoded data, decoding of data in the payload of the message in the first message set depends on the dependent message set, the dependent message set is a message set that has been data decoded, and the data in the payload of the message in the dependent message set has been decoded, data encoding is also called data compression, and data decoding is also called data decompression); discardable information of the first message set, the discardable information is used to indicate the discardability of the first message set; the identifier of the first message set group; the number of non-critical message sets in the first message set group; the identifier of the non-critical message set in the first message set group; the resolution of the first media frame, the messages in the first message set belong to the first media frame.

[0020] Optionally, the original message belongs to an original message set, the original message set belongs to an original message set group, the original message set group includes a critical message set and at least one non-critical message set, and the original media information includes at least one of the following: the priority of the original message set; the identifier of the original message set; the number of messages in the original message set; the identifier of the original message in the original message set; the type of the original message set, which is a critical message set or a non-critical message set; the identifier of a dependent message set corresponding to the original message set, on which the original message set depends for data decoding ( For example, the data in the payload of the message in the original message set is encoded data, the decoding of the data in the payload of the message in the original message set depends on the dependent message set, and the data in the payload of the message in the dependent message set has been decoded); the discardable information of the original message set, which is used to indicate the discardability of the original message set; the identifier of the original message set group; the number of the non-critical message sets in the original message set group; the identifier of the non-critical message set in the original message set group; the resolution of the first media frame, and the messages in the original message set belong to the first media frame.

[0021] Optionally, the first media information is the same as the original media information. The first message set and the original message set are the same message set (the first message set is a message set obtained by processing the original message set, and the processing includes adding media information to the message headers of the messages in the original message set or encapsulating the message headers including media information outside the messages in the original message set), the first message set group and the original message set group are the same message set group (each message set in the first message set group is a message set obtained by processing the original message set in the original message set group), the message headers of the messages in the original message set do not include media information, the message headers of the messages in the first message set include media information, the message headers of the messages in the original message set group do not include media information, and the message headers of the messages in the first message set group include media information.

[0022] Optionally, the first media information also includes at least one of the following: an identifier of the media layer to which the first media frame belongs; an identifier of a region of interest (ROI) in the first media frame; an identifier of the first media data block in the first media frame, and the payload includes all or part of the data of the first media data block. The first media data block can be a tile, a slice, or a macroblock. A media frame includes multiple tiles, a tile includes multiple slices, and a slice includes multiple macroblocks (that is, a media frame can be split into multiple tiles, a tile can be split into multiple slices, and a slice can be split into multiple macroblocks). A media message includes part of the data in a tile, thereby including part of the data in a slice. A media message includes all or part of the data in a macroblock, and a media message can include multiple macroblocks.

[0023] Optionally, the first message set is composed of messages of a first media frame, the media data in the payload of the messages in the first message set is the media data of the first media frame, and the message headers of the messages in the first message set include media information related to the first media frame. The first message set group includes multiple message sets, and the multiple message sets correspond one-to-one to multiple media frames, and each message set is composed of messages of the corresponding media frames. For example, the multiple media frames are multiple video frames, and the multiple video frames constitute a group of pictures (GOP), and the first message set group corresponds to the GOP.

[0024] Optionally, the processing (i.e., the first processing) includes at least one of the following: error correction coding, error correction decoding, forwarding, caching, discarding, and replication. Error correction coding and error correction decoding can prevent message loss from affecting service quality. Therefore, error correction coding and error correction decoding can achieve anti-packet loss effects. Error correction coding is also called anti-packet loss coding, and error correction decoding is also called anti-packet loss decoding. Error correction coding and error correction decoding are collectively referred to as anti-packet loss processing.

[0025] Optionally, the method further includes: the first device performing processing on the first message according to the first media information. For example, the first device performs error correction coding, caching, copying, forwarding, etc. on the first message according to the first media information.

[0026] Optionally, the first device is the sender device of the original message or the access network device corresponding to the sender device. The source address of the original message is the address of the sender device, so the sender device is also called the source device. The source address of the first message is also the address of the sender device. From this perspective, the sender device of the original message is also the sender device of the first message. The access network device may be a client provider edge (CPE) device.

[0027] In a second aspect, a message processing method is provided, the method comprising: a first network device receiving a first message, the first message including a payload and a message header, the message header including first media information; and the first network device performing processing (e.g., performing a first processing) on ​​the first message based on the first media information in the message header. The first message is a media message.

[0028] In the technical solution provided by this application, the header of a first message includes first media information. This information in the header is visible to a network device. Therefore, the first network device can perform processing on the first message based on the first media information in the header to ensure the quality of the media service. In other words, this application carries media information in the header of a media message, allowing the network device to perform processing on the media message based on the media information to ensure the quality of the media service to which the media message belongs.

[0029] Optionally, the message header includes at least one of the following: an IPv6 extension header; a QUIC proxy header; and an RTP header.

[0030] Optionally, the IPv6 extension header is HBH or DOH.

[0031] Optionally, the IPv6 extension header includes an APN field, and the first media information is located in the APN field. For example, the first media information is located in an APNID subfield and / or an APN parameter subfield in the APN field.

[0032] The technical solution provided by this application, because the media information is carried in the APN ID subfield or the APN parameter subfield, eliminates the need to extend the APN field to carry the media information, thus avoiding protocol modifications caused by extending the APN field. Optionally, the IPv6 extension header includes an options field, and the first media information is located in the options field.

[0033] Optionally, the QUIC proxy header includes a metadata field, and the first media information is located in the metadata field.

[0034] Optionally, the RTP header includes an extension field, and the first media information is located in the extension field. For example, the extension field includes at least one extension header, and the first media information is located in the at least one extension header.

[0035] Optionally, the first media information includes at least one of the following: media information for error correction encoding, media information for error correction decoding, and media information for forwarding.

[0036] The technical solution provided by the present application is that, when the message header of the first message carries media information for error correction coding, the first network device can perform error correction coding on the first message based on the media information for error correction coding, so as to avoid the loss of the first message affecting the service quality; when the message header of the first message carries media information for error correction decoding, the first network device can perform error correction decoding on the first message based on the media information for error correction decoding, so as to avoid the loss of the first message affecting the service quality; when the message header of the first message carries media information for forwarding, the first network device can perform forwarding operations such as forwarding, copying, discarding or caching on the first message based on the media information for forwarding in combination with network quality, thereby realizing differentiated processing of the first message in combination with network quality.

[0037] Optionally, the first message belongs to a first message set, the first message set belongs to a first message set group, the first message set group includes a critical message set and at least one non-critical message set, and the first media information includes at least one of the following: the priority of the first message set; the identifier of the first message set; the number of messages in the first message set; the identifier of the first message in the first message set; the type of the first message set, the type of the first message set is a critical message set or a non-critical message set; the identifier of the dependent message set corresponding to the first message set, the first message set depends on the dependent message set for data decoding (for example, the number of messages in the first message set); The decoding of data in the payload depends on the dependent message set, which is a message set that has been decoded, and the data in the payload of the message in the dependent message set has been decoded, for example, data encoding is also called data compression, and data decoding is also called data decompression); the discardable information of the first message set, which is used to indicate the discardability of the first message set; the identifier of the first message set group; the number of non-critical message sets in the first message set group; the identifier of the non-critical message set in the first message set group; the resolution of the first media frame, and the messages in the first message set belong to the first media frame.

[0038] Optionally, the first media information also includes at least one of the following: an identifier of the media layer to which the first media frame belongs; an identifier of the ROI in the first media frame; an identifier of the first media data block in the first media frame, and the payload includes all or part of the data of the first media data block.

[0039] Optionally, the processing (ie, the first processing) includes at least one of the following: error correction coding, error correction decoding (or anti-packet loss decoding), forwarding, caching, discarding, and copying.

[0040] Optionally, the first network device is any one of the following: an access network device corresponding to the sender device of the first message; an access network device corresponding to the receiver device of the first message; or a network device between the access network device corresponding to the sender device and the access network device corresponding to the receiver device. The source address of the first message is the address of the sender device, and the destination address of the first message includes the address of the receiver device. Therefore, the sender device is also referred to as the source device, and the receiver device is also referred to as the destination device. Optionally, the first message is obtained by processing an original message, and the source address of the first message is the same as the source address of the original message, and the destination address of the first message is the same as the destination address of the original message. From this perspective, the sender device of the first message is also the sender device of the original message, and the receiver device of the first message is also the receiver device of the original message. The access network device may be a CPE device.

[0041] Optionally, the first network device is an access network device corresponding to a sending device of the first message, the first media information includes media information for error correction coding, and the first network device performs processing on the first message according to the first media information in the message header of the first message, including: the first network device performs error correction coding on the first message set according to the media information for error correction coding in the message header, wherein the first message belongs to the first message set, the first message set is a critical message set or a non-critical message set, and the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

[0042] The technical solution provided in this application enables a first network device to perform error correction coding on a first message set to which the first message belongs based on media information used for error correction coding in the message header of the first message. This prevents message loss in the first message set from affecting the quality of the media service to which the first message belongs. Because the coding redundancy of a critical message set is greater than that of a non-critical message set, the critical message set can tolerate more packet loss, which is more conducive to ensuring service quality under certain network conditions.

[0043] Optionally, the first network device is an access network device corresponding to a receiving device of the first message, the first media information includes media information for error correction decoding, and the first network device performs processing on the first message according to the first media information in the message header of the first message, including: the first network device performs error correction decoding on the first message set according to the media information for error correction decoding in the message header, wherein the first message belongs to the first message set, the first message set is a critical message set or a non-critical message set, and the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

[0044] The technical solution provided by this application enables a first network device to perform error correction decoding on a first message set to which the first message belongs based on media information used for error correction decoding in the message header of the first message. This prevents message loss in the first message set from affecting the quality of the media service to which the first message belongs. Because the coding redundancy of a critical message set is greater than that of a non-critical message set, the critical message set can tolerate more packet loss, which is more conducive to ensuring service quality under certain network conditions.

[0045] Optionally, the first message belongs to a first message set, the first media information includes the type of the first message set, the first message set is a critical message set or a non-critical message set, and the first network device performs processing on the first message according to the first media information in the message header of the first message, including: the first network device discards the first message when the first message set is a non-critical message set and the network quality between the first network device and the receiving device of the first message is less than a preset quality.

[0046] The technical solution provided by the present application is that the first network device discards the messages in the non-critical message set sent to the receiving device when the network quality between the first network device and the receiving device is less than the preset quality. In this way, the non-critical message set can be prevented from occupying network resources and affecting the forwarding of the critical message set, thereby ensuring the forwarding quality of the critical message set.

[0047] Optionally, the first network device performs processing on the first message based on the first media information in the message header of the first message, further comprising: the first network device caches the first message when the first message set is a critical message set and the network quality between the first network device and the receiving device of the first message is less than a preset quality. After the first network device caches the first message, the first network device forwards the first message to the receiving device after the network quality between the first network device and the receiving device of the first message improves (e.g., the network quality is greater than a preset quality).

[0048] The technical solution provided in the present application is that the first network device caches the messages in the key message set sent to the receiving device when the network quality between the first network device and the receiving device is less than the preset quality, thereby avoiding packet loss of the key message set due to network congestion.

[0049] Optionally, the first message belongs to a first media frame, the first media information includes a resolution of the first media frame, and the first network device performs processing on the first message based on the first media information in the message header of the first message, including: when the resolution of the first media frame is less than the resolution of the second media frame, and the network quality between the first network device and a receiving device of the first message is less than a preset quality, the first network device forwards the first message to the receiving device, wherein the content of the second media frame is the same as that of the first media frame. For example, the second media frame and the first media frame are two images with the same content.

[0050] The technical solution provided by the present application is that a first network device forwards a message of a media frame with a lower resolution to a receiving device when the network quality between the first network device and the receiving device is less than a preset quality, so that the receiving device can still receive the media service under the condition of poor network quality, thereby avoiding the interruption of the media service and affecting the user experience.

[0051] Optionally, the method also includes: the first network device forwards the message of the second media frame to the receiving device when the resolution of the first media frame is smaller than the resolution of the second media frame and the network quality between the first network device and the receiving device of the first message is not less than the preset quality.

[0052] The technical solution provided in the present application is that the first network device forwards a message of a media frame with higher resolution to the receiving device when the network quality between the first network device and the receiving device is not less than a preset quality, so that when the network quality is good, the receiving device can receive higher-quality media services and ensure user experience.

[0053] Optionally, the first message belongs to a first media frame, the first media information includes the resolution of the first media frame, the first message is a multicast message, the receiving device of the first message includes a first receiving device and a second receiving device, and the first network device performs processing on the first message according to the first media information in the message header of the first message, including: the first network device copies the first message when the resolution of the first media frame is greater than the resolution of the second media frame, the network quality between the first network device and the first receiving device is greater than a preset quality, and the network quality between the first network device and the second receiving device is greater than the preset quality; the first network device forwards the first message to the first receiving device and the second receiving device.

[0054] The technical solution provided by this application is that the first network device forwards messages of media frames with higher resolution to multicast receiving ends with better network quality (such as the first receiving end device and the second receiving end device), so that these multicast receiving ends can receive higher-quality media services and ensure the user experience of these multicast receiving ends.

[0055] Optionally, the receiving end device of the first message also includes a third receiving end device, and the method also includes: the first network device forwards the message of the second media frame to the third receiving end device when the resolution of the first media frame is greater than the resolution of the second media frame and the network quality between the first network device and the third receiving end device is not greater than a preset quality.

[0056] The technical solution provided by the present application is that the first network device forwards messages of media frames with lower resolution to multicast receiving ends (such as the third receiving end device) with poor network quality, so that these multicast receiving ends can still receive media services under poor network quality conditions, thereby avoiding media service interruption affecting the user experience of these multicast receiving ends.

[0057] Optionally, the first message belongs to a first media frame, the first media information includes the resolution of the first media frame, the first message is a multicast message, the receiving end device of the first message includes a first receiving end device, a second receiving end device and a third receiving end device, and the first network device performs processing on the first message according to the first media information in the message header of the first message, including: the first network device copies the first message when the resolution of the first media frame is greater than the resolution of the second media frame, the network quality between the first network device and the first receiving end device is greater than the preset quality, the network quality between the first network device and the second receiving end device is greater than the preset quality, and the network quality between the first network device and the third receiving end device is not greater than the preset quality; the first network device forwards the first message to the first receiving end device and the second receiving end device; and the first network device forwards the message of the second media frame to the third receiving end device.

[0058] The technical solution provided by the present application is that the first network device forwards messages of media frames with higher resolution to multicast receiving ends with better network quality (such as the first receiving end device and the second receiving end device), and forwards messages of media frames with lower resolution to multicast receiving ends with poor network quality (such as the third receiving end device). That is, the first network device forwards media frames of different resolutions to different multicast receiving ends according to the network quality. In this way, the quality of media frames received by different multicast receiving ends can match the network quality of the different multicast receiving ends, and the first network device realizes differentiated forwarding of media frames.

[0059] In a third aspect, a message processing apparatus is provided, comprising at least one module configured to execute the method provided in the first aspect or any optional embodiment of the first aspect, or the method provided in the second aspect or any optional embodiment of the second aspect. The at least one module may be implemented based on software, hardware, or a combination of software and hardware, and the at least one module may be arbitrarily combined or divided based on the specific implementation.

[0060] In a fourth aspect, a message processing device is provided, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the message processing device performs the method provided in the first aspect or any optional manner of the first aspect, or the message processing device performs the method provided in the second aspect or any optional manner of the second aspect.

[0061] In the fifth aspect, a message processing device is provided, including a main control board and an interface board, wherein the main control board and the interface board are used to implement the method provided in the above-mentioned first aspect or any optional method of the first aspect, or the main control board and the interface board are used to implement the method provided in the above-mentioned second aspect or any optional method of the second aspect.

[0062] In a sixth aspect, a message processing system is provided, comprising a first device and a first network device, wherein at least one of the first device and the first network device comprises a message processing apparatus as provided in any one of the third to fifth aspects above.

[0063] In the seventh aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed, it implements the method provided by the first aspect or any optional method of the first aspect, or implements the method provided by the second aspect or any optional method of the second aspect.

[0064] In the eighth aspect, a computer program product is provided, which includes a program or code, and when the program or code is executed, it implements the method provided by the first aspect or any optional manner of the first aspect, or implements the method provided by the second aspect or any optional manner of the second aspect.

[0065] In a ninth aspect, a chip is provided that, when running, implements the method provided in the first aspect or any optional embodiment of the first aspect, or implements the method provided in the second aspect or any optional embodiment of the second aspect. Optionally, the chip includes programmable logic circuits and / or program instructions.

[0066] The beneficial effects of the technical solution provided by this application include:

[0067] The message processing method, apparatus, and system provided in the present application include a first message obtained by a first device based on an original message, which includes a message header and a payload of the original message, and the message header includes first media information. The first media information is related to the original media information in the payload. Since the information in the message header is visible to the network device, the network device can perform processing on the first message based on the first media information in the message header to ensure the quality of the media service. That is, the present application carries media information in the message header of the media message, so that the network device can perform processing on the media message based on the media information carried in the message header of the media message to ensure the quality of the media service to which the media message belongs. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0069] FIG2 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0070] FIG3 is a flow chart of a message processing method provided in an embodiment of the present application;

[0071] FIG4 is a schematic diagram of an original message provided in an embodiment of the present application;

[0072] FIG5 is a schematic diagram of another original message provided in an embodiment of the present application;

[0073] FIG6 is a schematic diagram of a first message provided in an embodiment of the present application;

[0074] FIG7 is a schematic diagram of another first message provided in an embodiment of the present application;

[0075] FIG8 is a schematic diagram of another first message provided in an embodiment of the present application;

[0076] FIG9 is a schematic diagram of another first message provided in an embodiment of the present application;

[0077] FIG10 is a flowchart of another message processing method provided in an embodiment of the present application;

[0078] FIG11 is a schematic diagram of an FEC encoding provided in an embodiment of the present application;

[0079] FIG12 is a schematic diagram of FEC decoding provided in an embodiment of the present application;

[0080] FIG13 is a schematic diagram of a message processing method provided in an embodiment of the present application;

[0081] FIG14 is a schematic diagram of another method for processing messages provided in an embodiment of the present application;

[0082] FIG15 is a schematic diagram of another method for processing a message according to an embodiment of the present application;

[0083] FIG16 is a schematic diagram of another method for processing a message according to an embodiment of the present application;

[0084] FIG17 is a schematic diagram of another method for processing a message according to an embodiment of the present application;

[0085] FIG18 is a schematic diagram of another method for processing a message according to an embodiment of the present application;

[0086] FIG19 is a schematic diagram of another method for processing a message according to an embodiment of the present application;

[0087] FIG20 is a flowchart of another message processing method provided in an embodiment of the present application;

[0088] FIG21 is a schematic diagram of a message processing method provided in an embodiment of the present application;

[0089] FIG22 is a schematic diagram of a message processing device provided in an embodiment of the present application;

[0090] FIG23 is a schematic diagram of another message processing device provided in an embodiment of the present application;

[0091] FIG24 is a schematic diagram of another message processing device provided in an embodiment of the present application;

[0092] Figure 25 is a schematic diagram of another message processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0093] The embodiments of the present application will be further described below with reference to the accompanying drawings.

[0094] End-side devices can access a communication network, which enables communication between different end-side devices by forwarding messages between them. For example, the end-side devices accessing the communication network include a sending device and a receiving device. The communication network forwards media messages containing media information from the sending device to the receiving device, enabling the sending device to provide media services to the receiving device.

[0095] Currently, media information is located in the payload (the actual data portion) of a media message. Since network devices typically forward messages based on message headers, they typically do not parse the payload of messages. Therefore, the media information in the payload is invisible to the network devices. This results in the network devices currently being unable to process the media message based on the media information in the message, affecting the quality of media services. In one example, a sending device sends a real-time transport protocol (RTP) message. The RTP message includes a payload and an RTP header, and the media information is located in the payload. The network device forwards the RTP message to the receiving device based on the RTP header without parsing the payload. As a result, the media information in the payload of the RTP message is invisible to the network device, and the network device cannot perform differentiated processing on the RTP message based on the media information in the payload of the RTP message.

[0096] In one example, in the H.264 / AVC standard, the payload of a media message includes a network abstract layer unit (NALU), in which media data is carried, and the NALU includes a 2-bit network abstract layer (NAL) reference identifier (nal_reference_identification, NRI), which is used to indicate the priority of the NALU (or the priority of the media message, which is a type of media information). Since the content in the NALU is not visible to the network device, the network device cannot process the media message based on the priority in the NALU. Among them, AVC is advanced video coding in Chinese and advanced video coding in English. The H.264 / AVC standard was jointly developed by the ITU Telecommunication Standardization Sector (ITU-T) and the International Organization for Standardization and the International Electrotechnical Commission (ISO-IEC). ITU-T refers to the standard as H.264, while ISO-IEC refers to the standard as Moving Pictures Experts Group (MPEG)-4 AVC.

[0097] The embodiments of the present application provide a message processing method, device, and system, in which the first device is the sending end device of the original message or the access network device corresponding to the sending end device, and the first message obtained by the first device based on the original message includes a message header and a payload of the original message, and the message header includes first media information, and the first media information is related to the original media information in the payload. Since the information in the message header is visible to the network device, the network device can perform processing on the first message according to the first media information in the message header to ensure the quality of the media service. That is, the embodiments of the present application carry media information in the message header of the media message, so that the network device can perform processing on the media message according to the media information carried in the message header of the media message to ensure the quality of the media service to which the media message belongs.

[0098] The technical solutions of the embodiments of the present application are introduced below, and the application scenarios of the embodiments of the present application are first introduced.

[0099] The application scenario of the embodiment of the present application includes a communication network and at least two end-side devices connected to the communication network. The communication network realizes communication between the at least two end-side devices by forwarding messages between the at least two end-side devices. For example, the at least two end-side devices include a sending end device and a receiving end device. The sending end device is a media providing device, and the receiving end device is a media receiving device. The communication network forwards media messages from the sending end device to the receiving end device, so that the sending end device provides media services to the receiving end device. Among them, the sending end device is also called the source end device, source device or sending end, and the receiving end device is also called the destination end device, destination device or receiving end. The sending end and the receiving end are relative, and any end-side device can serve as a sending end or a receiving end. The media message described in the embodiment of the present application refers to a service message of a media service, for example, a message including media data in the payload. The media service can be an audio service or a video service, the corresponding media message is an audio message or a video message, and the media data is audio data or video data. The media information described in the embodiments of the present application is related information of media services, media data, media messages, etc., for example, information used to describe video data. The media information includes but is not limited to the priority of the media frame, the type of the media frame, etc. (a media frame is usually split into multiple media messages and sent, and each media message includes part of the media data of the media frame).

[0100] Among them, the at least two end-side devices may include a service device and a user device. The service device is also called a server-side device, and the service device may be a server, or a server cluster composed of several servers, or a cloud computing service center. The user device is also called a client device, and the user device may be a host, a mobile phone, a tablet computer, a laptop computer, a desktop computer, a television, a car terminal, a personal digital assistant (PDA), etc. In an embodiment of the present application, the service device can be used to provide media services, and the service device can be a media providing device; the user device can be used to request media services, and the user device can be a media receiving device (or a media requesting device). Optionally, a media application (application, App) is installed in the user device, and the user device requests media services through the media App. Among them, at least one media App can be installed in a user device. If a user device has multiple media Apps installed, the multiple media Apps can correspond to different media services. For example, the multiple media Apps include audio Apps, video Apps, etc.

[0101] In an embodiment of the present application, the communication network may include a metropolitan area network, a wide area network, a campus network, and a data center network (DCN). The communication network is a secondary network or a tertiary network. The secondary network is also called a layer 2 network, and the layer 3 network is also called a layer 3 network. In addition, the communication network is a unicast network or a multicast network. The unicast network may be an Internet Protocol version 6 (IPv6) network, and the multicast network may be a bit index explicit replication (BIER) network. For example, the multicast network is a bit index explicit replication internet protocol version 6 (BIERv6) network or a bit index explicit replication in internet protocol version 6 (BIERin6) network. In the example where the communication network is a multicast network, the sending device is the multicast source, and the receiving device is the multicast receiving end.

[0102] The communication network includes multiple network devices, including access network devices (or access devices), and the end-side devices access the communication network through the access network devices. The access network devices can also be called client provider edge (CPE) devices. Optionally, the multiple network devices include switches, routers, home gateways (such as optical modems), base stations (such as 5G base stations), broadband remote access servers (BRAS) and user plane function (UPF) devices. The home gateways, base stations, BRAS and UPF devices are all access network devices. The home gateways and base stations can be used for user devices to access the communication network, and the BRAS and UPF devices can be used for service devices to access the communication network. In one embodiment, the communication network is a secondary network, which includes an access layer and an aggregation layer. The access layer is used to provide access functions, and the aggregation layer is used to provide aggregation functions. The network devices in the access layer are connected to the network devices in the aggregation layer; the home gateway and the base station are both located in the access layer, and the access layer is used for user devices to access the communication network; the BRAS and UPF devices are both located in the aggregation layer, and the aggregation layer can be used for service devices to access the communication network; in this embodiment, from the network level, the network devices in the access layer can be called access network devices, and the network devices in the aggregation layer can be called aggregation network devices (or aggregation devices); from the perspective of device functions, both the access layer and the aggregation layer include access network devices, for example, BRAS and UPF devices serve as both aggregation network devices in the aggregation layer and access network devices for accessing service devices to the communication network. In another embodiment, the communication network is a three-level network, which includes an access layer, an aggregation layer and a core layer. The access layer is used to provide access functions, the aggregation layer is used to provide a first-level aggregation (or preliminary aggregation) function, and the core layer is used to provide a second-level aggregation (or further aggregation) function. The network devices in the aggregation layer are connected to the network devices in the access layer and the network devices in the core layer respectively; the home gateway and the base station are both located in the access layer, and the access layer is used for user devices to access the communication network; the BRAS and UPF devices are both located in the core layer, and the core layer can be used for service devices to access the communication network; in this embodiment, from the network level, the network devices in the access layer can be called access network devices, the network devices in the aggregation layer can be called aggregation network devices, and the network devices in the core layer can be called core network devices (or core devices); from the perspective of device functions, both the access layer and the core layer include access network devices, for example, BRAS and UPF devices serve as both core network devices in the core layer and access network devices for service devices to access the communication network.

[0103] In one embodiment, please refer to Figure 1, which shows a schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario includes a communication network 10 and a service device 20 and user devices 31 to 36 that access the communication network 10. The communication network 10 includes network devices 11 to 17. The service device 20 accesses the communication network 10 through the network device 17, and the user devices 31 to 36 access the communication network 10 through the network devices 11 to 14. The communication network 10 is a three-layer network. The communication network 10 includes an access layer, a convergence layer, and a core layer. The network devices 11 to 14 are located in the access layer, the network devices 15 to 16 are located in the convergence layer, and the network device 17 is located in the core layer. From the perspective of network hierarchy, network devices 11 to 14 are all access network devices, network devices 15 to 16 are all convergence network devices, and network device 17 is a core network device; from the perspective of device functions, network devices 11 to 14 and 17 are all access network devices, and network devices 15 to 16 are all convergence network devices. In one embodiment, service device 20 is a transmitting device (e.g., a media providing device), at least one of user devices 31-36 is a receiving device (e.g., a media receiving device), and communication network 10 forwards media messages from service device 20 to user devices 31-36. In one example, communication network 10 is a unicast network, and one of user devices 31-36 is a receiving device. In another example, communication network 10 is a multicast network, and at least two of user devices 31-36 are receiving devices.

[0104] In another embodiment, please refer to Figure 2, which shows a schematic diagram of another application scenario provided by an embodiment of the present application. The application scenario includes a communication network 100 and a service device 200 and user devices 301 to 304 that access the communication network 100. The communication network 100 includes a BRAS 101, a UPF device 102, an optical modem 103 and a 5G base station 104. The BRAS 101 and the optical modem 103 are connected via a wireless local area network (WLAN) bearer network, and the UPF device 102 is connected to the 5G base station 104 via a 5G bearer network. The service device 200 is connected to the BRAS 101 and the UPF device 102 respectively, and the service device 200 accesses the communication network 100 through the BRAS 101 and the UPF device 102. User devices 301 to 302 are connected to the optical modem 103, and the user devices 301 to 302 access the communication network 100 through the optical modem 103. User devices 303-304 are connected to 5G base station 104, and user devices 303-304 access communication network 100 through 5G base station 104. For example, service device 200 is a transmitting device (e.g., a media providing device), at least one of user devices 301-304 is a receiving device (e.g., a media receiving device), and communication network 100 forwards media messages from service device 200 to user devices 301-304.

[0105] Figure 2 illustrates an example in which BRAS 101 and optical modem 103 are located outside the WLAN bearer network, and UPF device 102 and 5G base station 104 are located outside the 5G bearer network. In some embodiments, at least one of BRAS 101 and optical modem 103 is located within the WLAN bearer network and at the edge of the WLAN bearer network, and at least one of UPF device 102 and 5G base station 104 is located within the 5G bearer network and at the edge of the 5G bearer network. For example, BRAS 101 and optical modem 103 are both located within the WLAN bearer network, and UPF device 102 and 5G base station 104 are both located within the 5G bearer network, but this embodiment of the present application is not limited to this.

[0106] The application scenarios shown in Figures 1 and 2 are for example purposes only and are not intended to limit the technical solutions of the embodiments of the present application. During the implementation process, the number of network devices, the number of end-side devices, and the relationship between these devices in the application scenario can be configured as needed. In addition, the application scenario may also include other devices, for example, the application scenario includes a control device for network control. The control device integrates functions such as network management, business control, and network analysis. The control device can be a server, a server cluster consisting of several servers, or a cloud computing service center. In some embodiments, the control device is also called a management device, a network management device, a controller, etc., which is not limited in the embodiments of the present application.

[0107] The above is an introduction to the application scenarios of this application. The following introduces an embodiment of the message processing method of this application.

[0108] Please refer to Figure 3, which shows a flowchart of a message processing method provided in an embodiment of the present application. The method is applied to a first device. The first device is a sending end device or an access network device corresponding to the sending end device. As shown in Figure 1, the first device is a service device 20 or a network device 17 (network device 17 is an access network device corresponding to service device 20). As shown in Figure 2, the first device is a service device 200, a BRAS 101, or a UPF device 102 (BRAS 101 and UPF device 102 are both access network devices corresponding to service device 200). As shown in Figure 3, the method includes the following steps S301 to S303.

[0109] S301. The first device obtains an original message A, wherein the payload A1 of the original message A includes original media information X.

[0110] In one embodiment, the first device is a sending end device of the original message A, and the first device generates the original message A. In another embodiment, the first device is an access network device corresponding to the sending end device of the original message A, and the first device receives the original message A from the sending end device.

[0111] In an optional embodiment, the original message A includes a payload A1 and a message header A2, the payload A1 includes the original media information X, and the message header A2 does not include media information. The original message A can be a media message, and the payload A1 includes media data. The message header A2 includes a transport layer message header and may also include other message headers. In one example, the original message A is an RTP message, and the message header A2 includes an RTP header. In another example, the original message A is a Quick User Datagram Protocol Internet Connection (QUIC) proxy message, and the message header A2 includes a QUIC proxy header. Both the RTP header and the QUIC proxy header are transport layer message headers.

[0112] In one embodiment, the original message A is an RTP message, which includes a payload A1 and an RTP header (i.e., the message header A2 includes the RTP header). The original message A is shown in Figure 4. Referring to Figure 4, the payload A1 includes the original media information X, and the message header A2 (i.e., the RTP header) includes a version (V) field, a padding (P) field, an extension (X) field, a CSRC count (CC) field, a marker (M) field, a payload type (PT) field, a sequence number (SN) field, a timestamp field, a synchronization source (SSRC) identifier field, and k contributing source (CSRC) identifier fields, where k is a positive integer. For the meaning of each field in the RTP header, please refer to the relevant description in Request for Comments (RFC) 3550, which will not be repeated here.

[0113] In another embodiment, original message A is a QUIC proxy message, and original message A includes payload A1 and a QUIC proxy header (i.e., message header A2 includes a QUIC proxy header). Original message A is shown in FIG5 . Referring to FIG5 , payload A1 includes original media information X, and message header A2 (i.e., QUIC proxy header) includes a flags field, a version field, a connection ID field, a packet number field, a type (i) field, a length (i) field, a quarter stream ID (i) field, a context ID (i) field, and a metadata field. The metadata field is used to carry metadata of payload A1, and the metadata field is also referred to as a payload metadata field. For the meaning of each field in the QUIC proxy header, please refer to the relevant standard documents of QUIC, for example, refer to the standard documents related to the multiplexed application substrate over QUIC encryption (MASQUE). The relevant standard documents of MASQUE include but are not limited to RFC9297, RFC9298, draft-ietf-masque-connect-ip-08, draft-ietf-masque-ip-proxy-reqs-03, draft-ihlar-masque-datagram-numbers-01, draft-pauly-masque-quic-proxy-06, draft-schinazi-masque-proxy-00, draft-schwartz-masque-access-descriptions-03, draft-yang-masque-dgram-retrans-01, etc. The embodiments of the present application are not limited to this.

[0114] In an optional embodiment, the original message A is a media message of the first media service (or called a service message, a media service message), the first media frame belongs to the first media service, the payload A1 of the original message A includes the media data in the first media frame, and the original message A belongs to the first media frame. The original media information X is related information of the first media service, the media data in the original message A, the original message A, etc. The original media information X may include at least one of the following: media information for error correction coding, media information for error correction decoding, and media information for forwarding. The error correction coding may be forward error correction (FEC) coding, the error correction decoding may be FEC decoding, and the forwarding specifically includes forwarding operations such as forwarding, copying, discarding, and caching. In other embodiments, the error correction coding may be other error correction coding, the error correction decoding may be other error correction decoding, and the forwarding may also include other operations, which are not limited in the embodiments of the present application.

[0115] In an optional embodiment, the original message A belongs to an original message set (for the sake of convenience of description, the original message set is referred to as original message set 1), the original message set belongs to an original message set group (for the sake of convenience of description, the original message set group is referred to as original message set group 1), and the original message set group 1 includes a key message set and at least one non-key message set. The original media information X includes at least one of the following: the priority of the original message set 1; the identifier of the original message set 1; the number of messages in the original message set 1; the identifier of the original message A in the original message set 1; the type of the original message set 1, which is a critical message set or a non-critical message set; the identifier of the dependent message set corresponding to the original message set 1, on which the original message set 1 depends for data decoding (for example, the data in the payload of the messages in the original message set 1 is encoded data, and the decoding of the data in the payload of the messages in the original message set 1 depends on the dependent message set, and the data in the payload of the messages in the dependent message set has been decoded); discardable information of the original message set 1, which is used to indicate the discardability of the original message set 1; the identifier of the original message set group 1; the number of non-critical message sets in the original message set group 1; and the identifier of the non-critical message set in the original message set group 1.

[0116] In one embodiment, original message set 1 corresponds to a first media frame, and the messages in original message set 1 belong to the first media frame. For example, original message set 1 is composed of messages belonging to the first media frame, and the payload of each message in original message set 1 includes media data of the first media frame. The priority of original message set 1 can be the priority of the first media frame, for example, called frame priority. The identifier of original message set 1 can be the identifier of the first media frame, for example, the frame number or frame sequence number of the first media frame. The number of messages in original message set 1 can be the number of messages in the first media frame, that is, the total number of messages in the first media frame. The identifier of original message A in original message set 1 can be the identifier of original message A in the first media frame, for example, the message number or packet sequence number of original message A in original message set 1. The type of the original message set 1 can be the type of the first media frame, the type of the first media frame is a critical media frame or a non-critical media frame, the critical media frame is an I frame, and the non-critical media frames include P frames and B frames. The dependent message set corresponding to the original message set 1 can be the dependent media frame corresponding to the first media frame (the dependent media frame has been media decoded, and the media decoding of the first media frame depends on the dependent media frame), and the identifier of the dependent message set can be the identifier of the dependent media frame, for example, the frame number or frame sequence number of the dependent media frame. The discardable information of the original message set 1 can be the discardable information of the first media frame, which is used to indicate the discardability of the first media frame. Generally, critical media frames cannot be discarded, and non-critical media frames can be discarded.

[0117] In one embodiment, the original message set group 1 includes multiple message sets, each of which corresponds to multiple media frames one by one, each message set is composed of messages corresponding to the media frames, and the multiple message sets include a critical message set and at least one non-critical message set, the critical message set corresponds to the critical media frame, and the non-critical message set corresponds to the non-critical media frame. The multiple media frames can form a media frame group (for example, referred to as a first media frame group). The identifier of the original message set group 1 can be the identifier of the first media frame group, for example, the number or sequence number of the first media frame group. The number of non-critical message sets in the original message set group 1 can be the number of non-critical media frames in the first media frame group, for example, the total number of P frames in the first media frame group. The identifier of the non-critical message set in the original message set group 1 can be the identifier of the non-critical media frame in the first media frame group, for example, the P frame number or P frame sequence number in the original message set group 1. For example, the multiple media frames are multiple video frames, and the first media frame group is a group of pictures (GOP). Original message set 1 is a message set in original message set group 1. The interpretation of each message set in original message set group 1 can refer to the interpretation of original message set 1. The first media frame corresponding to original message set 1 is a key media frame or a non-key media frame. The non-key media frame is a P frame or a B frame, which is not limited in this embodiment of the present application.

[0118] In an optional embodiment, the original message A belongs to a first media frame, and the original media information X further includes at least one of the following: the resolution of the first media frame; an identifier of the media layer to which the first media frame belongs (a media service includes multiple media layers, each of which includes multiple media frames); an identifier of a region of interest (ROI) in the first media frame; and an identifier of a first media data block in the first media frame. The payload A1 of the original message A includes all or part of the data of the first media data block. The first media data block can be a tile, a slice, or a macroblock. Typically, a media frame includes multiple tiles, a tile includes multiple slices, and a slice includes multiple macroblocks (i.e., a media frame can be split into multiple tiles, a tile can be split into multiple slices, and a slice can be split into multiple macroblocks). A media message includes partial data from a tile, thereby including partial data from a slice, a media message includes all or part of the data from a macroblock, and a media message can include multiple macroblocks. In one example, the first media data block is a tile, and the identifier of the first media data block is a tile number or a tile sequence number. In another example, the first media data block is a slice, and the identifier of the first media data block is a slice number or a slice sequence number. In yet another example, the first media data block is a macroblock, and the identifier of the first media data block is a macroblock number or a macroblock sequence number.

[0119] In an optional embodiment, the media information used for error correction coding in the original media information X includes at least one of the following: the priority of the original message set 1, the identifier of the original message set 1, the number of messages in the original message set 1, the identifier of the original message A within the original message set 1, and the type of the original message set 1. The media information used for error correction decoding in the original media information X includes at least one of the following: the priority of the original message set 1, the identifier of the original message set 1, the number of messages in the original message set 1, and the identifier of the original message A within the original message set 1. The media information used for forwarding in the original media information X includes at least one of the following: the priority of the original message set 1, the identifier of the original message set 1, the number of messages in the original message set 1, the identifier of the original message A within the original message set 1, the type of the original message set 1, discardable information of the original message set 1, the resolution of the original media frame, the identifier of the original media frame group, the number of non-critical media frames in the original media frame group, and the identifier of the non-critical media frames in the original media frame group.

[0120] The above descriptions regarding the original media information X, the media information used for error correction coding in the original media information X, the media information used for error correction decoding in the original media information X, and the media information used for forwarding in the original media information X are merely examples. The original media information X, the media information used for error correction coding in the original media information X, the media information used for error correction decoding in the original media information X, and the media information used for forwarding in the original media information X may also include other information.

[0121] S302. The first device obtains a first message based on the original message A. The first message includes a payload A1 and a message header B1. The message header B1 includes first media information Y. The first media information Y is related to the original media information X.

[0122] The first device can obtain the original media information X in the payload A1 of the original message A. The first device obtains the first media information Y based on the original media information X, and then obtains the first message based on the original message A and the first media information Y. The first media information Y and the original media information X have a mapping relationship, or the first media information Y is the same as the original media information X. In one embodiment, the first media information Y and the original media information X have a mapping relationship, and the first device obtains the first media information Y based on the original media information X and the mapping relationship. In another embodiment, the first media information Y is the same as the original media information X, and the first device uses the original media information X as the first media information Y.

[0123] The first device can add the first media information Y to the original message A to obtain the first message. In one embodiment, the first device adds the first media information Y to the message header A2 of the original message A to obtain the first message, and the message header B1 of the first message is the message header A2 to which the first media information Y is added. In another embodiment, the first device encapsulates the message header B1 including the first media information Y outside the original message A to obtain the first message. The message header B1 includes at least one of the following: an internet protocol version 6 (IPv6) extension header; a QUIC proxy header; an RTP header. The IPv6 extension header can be a hop by hop header (HBH) or a destination options header (DOH). Depending on the message header B1, S302 can include the following four optional embodiments.

[0124] First embodiment: The message header B1 includes an RTP header, and the RTP header includes an extension field, and the first media information Y is located in the extension field. Optionally, the extension field includes at least one extension header, and the first media information Y is located in the at least one extension header. For example, the first media information Y includes at least one media information, and the at least one media information is located in the at least one extension header in a one-to-one correspondence. The at least one extension header is a one-byte header (one byte header) or a two-byte header (two byte header). For example, the original message A is shown in Figure 4. The first device sets the extension field B2 in the RTP header of the original message A, and adds the first media information Y to the extension field B2 to obtain the first message shown in Figure 6. Figure 6 takes the example of the first media information Y including media information Y1~Yn. Referring to Figure 6 , a first message includes a payload A1 and a message header B1. Message header B1 is an RTP header, which includes a fixed field portion and an extension field B2. The format of the fixed field portion is the same as that of the RTP header in Figure 4 . The extension field B2 includes an extension identifier subfield, an extension length subfield, and n extension headers, where n is a positive integer. The extension identifier subfield indicates the type of the n extension headers, which are all of the same type. The extension length subfield indicates the number of 32 bits in extension field B2 excluding the extension identifier subfield and the extension length subfield (i.e., the number of 32 bits included in extension field B2 excluding the extension identifier subfield and the extension length subfield). The n extension headers carry media information Y1 to Yn in a one-to-one correspondence. For example, each of the n extension headers includes an identifier subfield, a length subfield, and possibly a data subfield. The data subfield carries media information. For example, the n extension headers may be single-byte or double-byte headers. The extension header shown in FIG6 is also called an extension element. For a detailed explanation of the extension field B2 and the n extension headers (or extension elements), please refer to the relevant description in RFC5285, which will not be repeated here.

[0125] Second embodiment: The message header B1 includes a QUIC proxy header, and the QUIC proxy header includes a metadata field, and the first media information Y is located in the metadata field. The metadata field is used to carry metadata of the payload A1, and the metadata field supports extension. The first device can add an extension subfield in the metadata field to carry the first media information Y through the extension subfield. For example, the metadata field is a type length value (TLV) field, and the first device extends a sub-TLV (sub TLV) in the metadata field to carry the first media information Y. In one example, the first media information Y includes at least one media information, and the first device extends a sub-TLV in the metadata field to carry the at least one media information. In another example, the first media information Y includes at least one media information, and the first device extends at least one sub-TLV in the metadata field to carry the at least one media information in a one-to-one correspondence. For example, the first device obtains the first message shown in Figure 7 based on the original message A shown in Figure 5, the first message includes a message header B1, the message header B1 is a QUIC proxy header, and the first media information Y is located in the metadata field in the QUIC proxy header.

[0126] Third embodiment: The packet header B1 includes an IPv6 extension header, which includes an application-aware networking (APN) field, and the first media information Y is located in the APN field. For example, the first media information Y is located in at least one of the following subfields in the APN field: an APN identification (ID) subfield and an APN parameters (APN-Para) subfield. In one example, the first media information Y is located in the APN ID subfield, and the first media information Y is all or part of the APN ID carried by the APN ID subfield. For example, the APN ID includes a user group identification (user group ID) and an application group identification (APP group ID). The first media information Y includes multiple media information, all or part of which is all or part of the user group ID, and / or all or part of which is all or part of the APP group ID. In another example, the first media information Y is located in the APN parameter subfield, and at least one bit in the APN parameter type (APN-Para-Type) subfield is used to indicate that the APN-Para subfield carries the media information Y. For example, the first media information Y includes multiple media information, and multiple bits in the APN parameter type subfield are used to indicate, in one-to-one correspondence, that the APN parameter subfield carries the multiple media information. For example, the original message A is shown in FIG4 or FIG5 , and the first device encapsulates the message header B1 including the first media information Y outside the original message A to obtain the first message shown in FIG8 . Referring to FIG8 , the first message includes the original message A and the message header B1. The message header B1 includes an IPv6 extension header and an IPv6 basic header. The IPv6 extension header is HBH or DOH. The IPv6 extension header includes an APN field, and the first media information Y is located in the APN field. Specifically, the APN field includes an APN ID type subfield, a flag subfield, an APN parameter type subfield, an APN ID subfield, an intent subfield, and an APN parameter subfield. The APN ID type subfield is used to indicate the type of the APN ID. The flag subfield is used to carry a version to be defined in the future. The parameter type subfield is used to indicate which APN parameters the APN field carries (APN parameters include bandwidth requirement parameters, latency requirement parameters, jitter requirement parameters, and packet loss rate requirement parameters). The APN ID subfield is used to carry the APN ID.The intent subfield indicates a set of service requirements for the network. The APN parameter subfield is used to carry APN parameters. As shown in Figure 8, all or part of the first media information Y is located in the APN ID subfield, and / or all or part of the first media information Y is located in the APN parameter subfield. The APN parameter type subfield includes a media identifier, which is used to indicate which media information is carried in the APN parameter subfield. For a detailed explanation of the APN field, please refer to the APN-related standard documents. For the format of the IPv6 basic header, please refer to the IPv6-related standard documents. No further explanation is given here.

[0127] Fourth embodiment: Message header B1 includes an IPv6 extension header, which includes an options field. First media information Y is located in the options field. The options field can be a TLV field, which includes a type subfield, a length subfield, and a data subfield. The first media information Y is located in the data subfield. For example, the first media information Y includes multiple media information, and the data subfield includes multiple sub-TLV fields. The multiple media information is located in a one-to-one correspondence within the multiple sub-TLV fields. For example, original message A is shown in Figure 4 or Figure 5. A first device encapsulates message header B1 including the first media information Y outside of original message A to obtain the first message shown in Figure 9. Referring to Figure 9, the first message includes original message A and message header B1. Message header B1 includes an IPv6 extension header and an IPv6 basic header. The IPv6 extension header is HBH or DOH. The IPv6 extension header includes an options field. The first media information Y is located in the options field. Specifically, the option field includes the following subfields: type subfield, length subfield, reserved subfield, and data subfield.

[0128] The above four embodiments can be implemented individually or in combination. That is, media information can be carried only in the RTP header, QUIC proxy header, or IPv6 extension header, or in both the IPv6 extension header and the RTP header, or in both the IPv6 extension header and the QUIC proxy header. Moreover, media information can be carried in both the APN field and the option field in the IPv6 extension header. This is not limited in the embodiments of the present application. In addition, the above-listed implementation methods of carrying media information in the message header B1 are only examples. Other methods can also be used to carry media information in the message header B1. This embodiment of the present application does not limit the method of carrying media information in the message header.

[0129] In an optional embodiment, the first message belongs to a first media frame, which belongs to a first media service. The first media information Y may include information related to the first media service, media data in the first message (data of the first media frame, which is the same as the media data in the original message A), and the first message. The first media information Y may include at least one of the following: media information for error correction coding, media information for error correction decoding, and media information for forwarding. The error correction coding may be FEC coding, the error correction decoding may be FEC decoding, and the forwarding may include forwarding operations such as forwarding, copying, discarding, and caching.

[0130] In an optional embodiment, the first message belongs to a first message set, the first message set belongs to a first message set group, and the first message set group includes a critical message set and at least one non-critical message set. The first media information Y includes at least one of the following: the priority of the first message set; the identification of the first message set; the number of messages in the first message set; the identification of the first message in the first message set; the type of the first message set, the type of the first message set is a critical message set or a non-critical message set; the identification of the dependent message set corresponding to the first message set, the first message set depends on the dependent message set for data decoding (for example, the data in the payload of the message in the first message set is encoded data, and the decoding of the data in the payload of the message in the first message set depends on the dependent message set, and the dependent message set is a message set that has been data-decoded, and the data in the payload of the message in the dependent message set has been decoded); the discardable information of the first message set, the discardable information is used to indicate the discardability of the first message set; the identification of the first message set group; the number of non-critical message sets in the first message set group; the identification of the non-critical message set in the first message set group. Optionally, the first message belongs to a first media frame, and the first media information Y further includes at least one of the following: the resolution of the first media frame; the identifier of the media layer to which the first media frame belongs; the identifier of the ROI in the first media frame; and the identifier of the first media data block in the first media frame, wherein the payload of the first message includes all or part of the data of the first media data block. In one embodiment, the first message set corresponds to the first media frame, and the messages in the first message set belong to the first media frame. The priority of the first message set may be the priority of the first media frame. The identifier of the first message set may be the identifier of the first media frame. The number of messages in the first message set may be the number of messages in the first media frame. The identifier of the first message in the first message set may be the identifier of the first message in the first media frame. The type of the first message set may be the type of the first media frame. The dependent message set corresponding to the first message set may be the dependent media frame corresponding to the first media frame. The discardable information of the first message set may be the discardable information of the first media frame. In one embodiment, the first message set group includes multiple message sets, the multiple message sets correspond one-to-one to multiple media frames, each message set is composed of messages corresponding to media frames, the multiple message sets include critical message sets and at least one non-critical message set, the critical message sets correspond to critical media frames, the non-critical message sets correspond to non-critical media frames, and the multiple media frames can constitute a first media frame group. The identifier of the first message set group can be the identifier of the first media frame group. The number of non-critical message sets in the first message set group can be the number of non-critical media frames in the first media frame group. The identifier of the non-critical message set in the first message set group can be the identifier of the non-critical media frame in the first media frame group. For example, the multiple media frames are multiple video frames, and the first media frame group is a GOP.The first message set is a message set in the first message set group. The interpretation of each message set in the first message set group can refer to the interpretation of the first message set and will not be repeated here. The first media frame corresponding to the first message set can be a critical media frame or a non-critical media frame. The non-critical media frame is a P frame or a B frame, which is not limited in this embodiment of the present application.

[0131] In an optional embodiment, the media information used for error correction coding in the first media information Y includes at least one of the following: the priority of the first message set, the identifier of the first message set, the number of messages in the first message set, the identifier of the first message in the first message set, and the type of the first message set. The media information used for error correction decoding in the first media information Y includes at least one of the following: the priority of the first message set, the identifier of the first message set, the number of messages in the first message set, and the identifier of the first message in the first message set. The media information used for forwarding in the first media information Y includes at least one of the following: the priority of the first message set, the identifier of the first message set, the number of messages in the first message set, the identifier of the first message in the first message set, the type of the first message set, discardable information of the first message set, the resolution of the first media frame, the identifier of the first media frame group, the number of non-critical media frames in the first media frame group, and the identifier of the non-critical media frames in the first media frame group.

[0132] The above descriptions of the first media information Y, the media information used for error correction coding in the first media information Y, the media information used for error correction decoding in the first media information Y, the media information used for forwarding in the first media information Y, etc. are only examples. The first media information Y, the media information used for error correction coding in the first media information Y, the media information used for error correction decoding in the first media information Y, the media information used for forwarding in the first media information Y, etc. may also include other information.

[0133] In an optional embodiment, the first media information Y is the same as the original media information X, the first message set and the original message set 1 are the same message set, the first message set group and the original message set group 1 are the same message set group, the first message set is a message set obtained by processing the original message set 1, the processing including adding media information to message headers of messages in the original message set 1 or encapsulating message headers including media information, and the message sets in the first message set group are message sets obtained by processing the message sets in the original message set group 1. The message headers of the messages in the original message set 1 may not include media information, while the message headers of the messages in the first message set include media information, the message headers of the messages in the original message set group 1 may not include media information, while the message headers of the messages in the first message set group include media information.

[0134] S303. The first device sends a first message, and the first media information Y in the message header B1 of the first message is used by the network device that receives the first message to perform a first process on the first message.

[0135] A first device sends a first message to its next-hop device. The first device's next-hop device is a network device. Referring to Figure 1 , in one example, the first device is service device 20, and its next-hop device is network device 17. In another example, the first device is network device 17, and its next-hop device is network device 15 or network device 16.

[0136] The first processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.

[0137] In an optional embodiment, the first device performs a first process on the first message based on the first media information Y in the message header B1 of the first message. For example, the first device performs error correction coding (e.g., error correction coding on a first message set, where the first message set includes the first message), forwarding, caching, and replication on the first message based on the first media information Y. S303 can be considered as the first device performing forwarding processing on the first message.

[0138] In summary, the technical solution provided by the embodiment of the present application is that the first message obtained by the first device based on the original message includes a message header and a payload of the original message, the message header includes first media information, and the first media information is related to the original media information in the payload. Since the information in the message header is visible to the network device, the network device can perform processing on the first message based on the first media information in the message header to ensure the quality of the media service. That is, the embodiment of the present application carries media information in the message header of the media message, so that the network device can perform processing on the media message based on the media information carried in the message header of the media message, thereby ensuring the quality of the media service to which the media message belongs.

[0139] Please refer to Figure 10, which shows a flowchart of another message processing method provided by an embodiment of the present application. The method is applied to a first network device. The first network device is an access network device corresponding to the sending end device, or the first network device is an access network device corresponding to the receiving end device, or the first network device is a network device between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device. As shown in Figure 1, the sending end device is a service device 20, the receiving end device is any user device among user devices 31 to 36, and the first network device is any network device among network devices 11 to 17 (network device 17 is an access network device corresponding to service device 20, and network devices 11 to 14 are access network devices corresponding to user devices 31 to 36). As shown in Figure 2, the sending end device is a service device 200, the receiving end device is any user device among user devices 301 to 304, and the first network device is a BRAS 101, a UPF device 102, an optical modem 103, a 5G base station, a network device in a WLAN bearer network, or a network device in a 5G bearer network. As shown in FIG10 , the message processing method includes the following steps S1001 to S1002 .

[0140] S1001. A first network device receives a first message, where the first message includes a payload A1 and a message header B1, and the message header B1 includes first media information Y.

[0141] A first network device receives a first message from a previous-hop device of the first network device. The previous-hop device of the first network device is a sending device or a network device between the sending device and the first network device. Referring to FIG1 , in one example, the first network device is network device 17, and the previous-hop device is service device 20 (i.e., a sending device). In another example, the first network device is any of network devices 11-16, and the previous-hop device is a network device. For example, the first network device is network device 15, and the previous-hop device is network device 17. For an explanation of the first message and the first media information Y, please refer to S302 and the related descriptions in FIG4 to FIG9 , which will not be repeated here.

[0142] S1002. The first network device performs a first process on the first message according to the first media information Y in the message header B1 of the first message.

[0143] The first processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying. The error correction encoding may be FEC encoding, and the error correction decoding may be FEC decoding. The first processing performed by the first network device varies depending on the role of the first network device and the specific media information included in the first media information Y. The following six embodiments describe how the first network device performs the first processing on the first message based on the first media information Y.

[0144] In a first embodiment, a first network device is an access network device corresponding to a first message sending device (i.e., a sending device of an original message A). First media information Y in a message header B1 of the first message includes media information for error correction coding. The first network device performs error correction coding on a first message set based on the media information for error correction coding in the message header B1 of the first message. The first message belongs to a first message set, and the first message set is either a critical message set or a non-critical message set. The coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

[0145] Optionally, the media information used for error correction coding in the message header B1 of the first message includes at least one of the following: a priority of the first message set, an identifier of the first message set, the number of messages in the first message set, an identifier of the first message within the first message set, and a type of the first message set. For example, the media information used for error correction coding includes the identifier of the first message set, the number of messages in the first message set, the identifier of the first message within the first message set, and the type of the first message set. The first network device determines multiple media messages in the first message set (e.g., the multiple media messages are all media messages in the first message set, including the first message) based on the identifier of the first message set included in the message headers of each media message received by the first network device, the number of messages in the first message set, and the identifier of the media message in the first message set. The first network device treats the multiple media messages as a coding block (e.g., a first coding block). The first network device performs error correction coding on the first message set according to the type of the first message set (i.e., performs error correction coding on the first coding block) to obtain a first coded message set. The first coded message set includes multiple coded media messages and multiple coded redundant messages, the multiple coded media messages corresponding one-to-one with the multiple media messages in the first message set, and the multiple coded redundant messages are messages generated based on a first coding matrix (also called a generation matrix) and the multiple coded media messages. For example, the multiple coded redundant messages are messages obtained by multiplying the first coding matrix by a message matrix composed of the multiple coded media messages. For example, the error correction code is FEC coding, the coded media message is also referred to as an FEC media message, and the coded redundant message is also referred to as an FEC redundant message. Taking the example of a first message set including media messages 11 to 14, the error correction code being FEC coding, and the generator matrix being a 3-row, 4-column matrix, the process of the first network device performing FEC coding on the first message set is shown in Figure 11. First, the first network device encapsulates an FEC header around each media message in media messages 11 to 14 to obtain FEC media messages 11 to 14; then, the first network device determines message matrix P1 based on FEC media messages 11 to 14; finally, the first network device multiplies the first coding matrix by message matrix P1 to obtain FEC redundant messages R1 to R3. In this example, the first coded message set obtained by the first network device includes FEC media messages 11 to 14 and FEC redundant messages R1 to R3.

[0146] Optionally, when the media information used for error correction coding includes the priority of the first message set, the first network device sequentially performs error correction coding on multiple message sets including the first message set according to their priorities. For example, the first network device sequentially performs error correction coding on multiple message sets in the first message set group according to their priorities. When the first message set corresponds to the first media frame, this first embodiment can implement error correction coding in units of media frames.

[0147] Second embodiment: The first network device is the access network device corresponding to the receiving device of the first message (i.e., the receiving device of the original message A). The first media information Y in the message header B1 of the first message includes media information used for error correction decoding. The first network device performs error correction decoding on the first message set based on the media information used for error correction decoding in the message header B1 of the first message. The first message belongs to the first message set, which is a coded message set obtained by performing error correction coding. For example, the first message set is the coded message set obtained by performing error correction coding on message set S1 by the access network device corresponding to the sending device of the first message. Message set S1 is either a critical message set or a non-critical message set. The coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

[0148] Optionally, the media information used for error correction decoding in the message header B1 of the first message includes at least one of the following: a priority of the first message set, an identifier of the first message set, the number of messages in the first message set, and an identifier of the first message within the first message set. For example, in the case where the first message set is a coded message set obtained by error-correction encoding the message set S1 using a first coding matrix, the media information used for error correction decoding includes the identifier of the first message set, the number of messages in the first message set, and the identifier of the first message within the first message set. The first network device determines multiple messages in the first message set (for example, the multiple messages are all messages in the first message set received by the first network device, the multiple messages include the first message, and the multiple messages include coded media messages and / or coded redundant messages) based on the identifier of the first message set included in the message headers of each message received by the first network device, the number of messages in the first message set, and the identifier of the message in the first message set; the first network device determines a first decoding matrix (also called a restoration matrix) based on the multiple messages in the first message set and the encoding matrix corresponding to the first message set (that is, the first encoding matrix); the first network device restores the lost messages in the first message set (the lost messages include coded media messages and / or coded redundant messages) based on the first decoding matrix and the multiple messages; the first network device determines message set S1 based on the media messages in the messages received by the first network device that belong to the first message set and the media messages lost in the first message set. For example, the first message set is obtained by performing FEC encoding on message set S1 using a first coding matrix. The coded media message is also referred to as an FEC media message, and the coded redundant message is also referred to as an FEC redundant message. For example, in which the error correction decoding is FEC decoding, and the messages received by the first network device and belonging to the first message set include FEC media message 12, FEC media message 14, FEC redundant message R2, and FEC redundant message R3, the process of the first network device performing FEC decoding on the first message set is shown in FIG12 . First, the first network device determines a first decoding matrix based on the first encoding matrix and FEC media message 12, FEC media message 14, FEC redundant message R2, and FEC redundant message R3 received by the first network device. Then, the first network device determines a message matrix P2 based on FEC media message 12, FEC media message 14, FEC redundant message R2, and FEC redundant message R3. Thereafter, the first network device multiplies the first decoding matrix by the message matrix P2 to obtain FEC media message 11 and FEC media message 13 that are lost in the first message set. Finally, the first network device strips the FEC headers from FEC media messages 11 to 14 to obtain message set S1.

[0149] Optionally, when the media information used for error correction decoding includes the priority of the first message set, the first network device sequentially performs error correction decoding on multiple message sets including the first message set according to their priorities. For example, the first network device sequentially performs error correction decoding on multiple message sets in the first message set group according to their priorities. When the first message set corresponds to the first media frame, this first embodiment can implement error correction decoding in units of media frames.

[0150] Optionally, in the first embodiment and the second embodiment above, the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set, including: the ratio of the number of coding redundant messages obtained by error-correcting coding the critical message set to the total number of messages in the coded message set obtained by error-correcting coding the critical message set is greater than the ratio of the number of coding redundant messages obtained by error-correcting coding the non-critical message set to the total number of messages in the coded message set obtained by error-correcting coding the non-critical message set. For example, the total number of messages in critical message set 1 is equal to the total number of messages in non-critical message set 1, and the number of rows of the coding matrix used for error-correcting coding the critical message set 1 is greater than the number of rows of the coding matrix used for error-correcting coding the non-critical message set 1, so that the coding redundancy of the critical message set 1 can be achieved to be greater than the coding redundancy of the non-critical message set 1. Other methods can also be used to achieve that the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set, and the embodiments of the present application are not limited to this. For example, the critical message set corresponds to the critical media frame, and the non-critical message set corresponds to the non-critical media frame, so the coding redundancy of the critical media frame is greater than the coding redundancy of the non-critical media frame.

[0151] The first embodiment described above is applicable to the scenario where the first network device is the access network device corresponding to the sending end device of the first message (that is, the sending end device of the original message A), and the second embodiment described above is applicable to the scenario where the first network device is the access network device corresponding to the receiving end device of the first message (that is, the receiving end device of the original message A). The third to sixth embodiments described below are applicable to the scenario where the first network device is any network device between the sending end device of the first message and the receiving end device of the first message. Among them, the network devices between the sending end device of the first message and the receiving end device of the first message include the access network device corresponding to the sending end device, the access network device corresponding to the receiving end device, and the network devices between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device. Therefore, the third to sixth embodiments described below are applicable to the scenario where the first network device is the access network device corresponding to the sending end device of the first message, the first network device is the access network device corresponding to the receiving end device of the first message, or the first network device is a network device between the sending end device and the receiving end device. The third to sixth embodiments are introduced below.

[0152] A third embodiment: The first network device is a network device between a sending device of the first message and a receiving device of the first message, the first message belongs to a first message set, the first media information Y in the message header B1 of the first message includes the type of the first message set (the type of the first message set is the media information for forwarding as described in this application), and the first message set is a critical message set or a non-critical message set. The first network device determines whether the first message set is a critical message set or a non-critical message set based on the type of the first message set in the message header B1 of the first message, and the first network device determines the network quality between the first network device and the receiving device of the first message. The first network device discards the first message if the first message set is a non-critical message set and the network quality between the first network device and the receiving device is less than a preset quality. For example, the first network device discards all or part of the messages in the first message set, and the all or part of the messages include the first message. The first network device caches the first message when the first message set is a critical message set and the network quality between the first network device and the receiving device is less than a preset quality. For example, the first network device caches all or part of the messages in the first message set, where the all or part of the messages include the first message. After the first network device caches the first message, the first network device forwards the first message to the receiving device after the network quality between the first network device and the receiving device improves.

[0153] Optionally, when the network quality between the first network device and the receiving end device is less than the preset quality, it is considered that network congestion occurs between the first network device and the receiving end device. Therefore, the third embodiment can be understood as: when network congestion occurs between the first network device and the receiving end device, the first network device discards the messages in the non-critical message set sent to the receiving end device, and caches the messages in the critical message set sent to the receiving end device (for example, simply referred to as: discarding the non-critical message set, caching the critical message set). In one embodiment, the critical message set corresponds to the critical media frame, the non-critical message set corresponds to the non-critical media frame, the messages in each critical message set belong to the corresponding critical media frame, and the messages in each non-critical message set belong to the corresponding non-critical media frame. The third embodiment can be further understood as: when network congestion occurs between the first network device and the receiving end device, the first network device discards the messages of the non-critical media frames sent to the receiving end device, and caches the messages of the critical media frames sent to the receiving end device (for example, simply referred to as: discarding the non-critical media frames, caching the critical media frames). For ease of description, the messages in the critical message set are referred to as critical messages, and the messages in the non-critical message set are referred to as non-critical messages. Therefore, when network congestion occurs between the first network device and the receiving device, the first network device discards the non-critical messages sent to the receiving device and caches the critical messages sent to the receiving device. Please refer to Figure 13, which shows a schematic diagram of a first network device processing messages provided by an embodiment of the present application. As shown in Figure 13, the service device 20 is a sending device, the user device 34 is a receiving device, and the network device 1X is the first network device. The data stream 21 sent by the service device 20 to the user device 34 includes critical messages and non-critical messages. The critical messages belong to the critical message set, and the critical message set can correspond to critical media frames. The non-critical messages belong to the non-critical message set, and the non-critical message set can correspond to non-critical media frames. When network congestion occurs between the network device 1X and the user device 34, the network device 1X discards the non-critical messages in the data stream 21 and caches the critical messages in the data stream 21.

[0154] Optionally, the first message set belongs to a first message set group, and the first message set group includes multiple message sets, and the multiple message sets include critical message sets and non-critical message sets. For example, the multiple message sets are arranged in sequence, the first message set in the multiple message sets is a critical message set, and the other message sets are non-critical message sets. The first network device discards the first message when the first message set is the last non-critical message set in the first message set group and the network quality between the first network device and the receiving end device is less than a preset quality, for example, discards all or part of the messages in the first message set, and the all or part of the messages include the first message. The first network device caches the first message when the first message set is a critical message set in the first message set group or the first message set is not the last non-critical message set in the first message set group, and the network quality between the first network device and the receiving end device is less than a preset quality, for example, caches all or part of the messages in the first message set, and the all or part of the messages include the first message. Therefore, the third embodiment can also be understood as: when network congestion occurs between the first network device and the receiving device, the first network device discards the message in the last non-critical message set in the first message set group sent to the receiving device, and caches the messages in the critical message sets in the first message set group and the messages in the non-critical message sets except the last non-critical message set (for example, in short: discarding the last non-critical message set in the first message set group, caching the critical message sets in the first message set group and the message sets in the first message set group except the last non-critical message set). Optionally, the first message set group corresponds to the first media frame group, the message sets in the first message set group correspond one-to-one to the media frames in the first media frame group, and the critical message set corresponds to the critical media frame, the non-critical message set corresponds to the non-critical media frame, the messages in each critical message set belong to the corresponding critical media frame, and the messages in each non-critical message set belong to the corresponding non-critical media frame. The third embodiment can be further understood as: when network congestion occurs between the first network device and the receiving end device, the first network device discards the message of the last non-critical media frame in the first media frame group sent to the receiving end device, caches the message of the critical media frame in the first media frame group and the message of the non-critical media frame in the first media frame group except the last non-critical media frame (for example, in short: discards the last non-critical media frame in the first media frame group, caches the critical media frames in the first media frame group and the non-critical media frames in the first media frame group except the last non-critical media frame). For example, the media frame is a video frame, the media frame group is a GOP, the key media frame is an I frame, and the non-key media frame is a P frame. Please refer to Figure 14, which shows a schematic diagram of another first network device processing a message provided in an embodiment of the present application.As shown in Figure 14, the service device 20 is a sending device, the user device 34 is a receiving device, and the network device 1X is a first network device. The GOP1 sent by the service device 20 to the user device 34 includes 1 I frame and 3 P frames arranged in sequence. When network congestion occurs between the network device 1X and the user device 34, the network device 1X discards the message of the last P frame in GOP1 and caches the message of the I frame and the messages of the first 2 P frames in GOP1.

[0155] In this third embodiment, when network congestion occurs between the first network device and a receiving device, the first network device discards non-critical message sets sent to the receiving device and caches critical message sets sent to the receiving device. This approach prevents non-critical message sets from occupying network resources and affecting the forwarding of critical message sets. It also prevents forwarding messages in the critical message set during network congestion, which could lead to packet loss in the critical message set.

[0156] Fourth embodiment: The first network device is a network device between a sending end device of the first message and a receiving end device of the first message, the first message belongs to a first message set, the first media information Y in the message header B1 of the first message includes the type of the first message set (the type of the first message set is the media information for forwarding as described in this application), and the first message set is a critical message set or a non-critical message set. The first network device determines whether the first message set is a critical message set or a non-critical message set based on the type of the first message set in the message header B1 of the first message, and the first network device determines the network quality between the first network device and the receiving end device of the first message. The first network device discards the first message if the first message set is a non-critical message set and the network quality between the first network device and the receiving end device is less than a preset quality, for example, discards all or part of the messages in the first message set, and the all or part of the messages include the first message. The first network device forwards the first message when the first message set is a critical message set and the network quality between the first network device and the receiving device is less than a preset quality, for example, forwards all or part of the messages in the first message set, and the all or part of the messages include the first message.

[0157] Optionally, when the network quality between the first network device and the receiving end device is less than the preset quality, it is considered that network congestion occurs between the first network device and the receiving end device. Therefore, the fourth embodiment can be understood as: when network congestion occurs between the first network device and the receiving end device, the first network device discards the messages in the non-critical message set sent to the receiving end device, and forwards the messages in the critical message set sent to the receiving end device (for example, simply referred to as: discarding the non-critical message set, forwarding the critical message set). In one embodiment, the critical message set corresponds to the critical media frame, the non-critical message set corresponds to the non-critical media frame, the messages in each critical message set belong to the corresponding critical media frame, and the messages in each non-critical message set belong to the corresponding non-critical media frame. The fourth embodiment can be further understood as: when network congestion occurs between the first network device and the receiving end device, the first network device discards the messages of the non-critical media frames sent to the receiving end device, and forwards the messages of the critical media frames sent to the receiving end device (for example, simply referred to as: discarding the non-critical media frames, forwarding the critical media frames). For ease of description, the messages in the critical message set are referred to as critical messages, and the messages in the non-critical message set are referred to as non-critical messages. Therefore, when network congestion occurs between the first network device and the receiving device, the first network device discards the non-critical messages sent to the receiving device and forwards the critical messages sent to the receiving device. Please refer to Figure 15, which shows a schematic diagram of another first network device processing messages provided by an embodiment of the present application. As shown in Figure 15, the service device 20 is a sending device, the user device 34 is a receiving device, and the network device 1X is the first network device. The data stream 21 sent by the service device 20 to the user device 34 includes critical messages and non-critical messages. The critical messages belong to the critical message set, and the critical message set can correspond to critical media frames. The non-critical messages belong to the non-critical message set, and the non-critical message set can correspond to non-critical media frames. When network congestion occurs between the network device 1X and the user device 34, the network device 1X discards the non-critical messages in the data stream 21 and forwards the critical messages in the data stream 21.

[0158] Optionally, the first message set belongs to a first message set group, and the first message set group includes multiple message sets, and the multiple message sets include critical message sets and non-critical message sets. For example, the multiple message sets are arranged in sequence, the first message set in the multiple message sets is a critical message set, and the other message sets are non-critical message sets. The first network device discards the first message when the first message set is the last non-critical message set in the first message set group and the network quality between the first network device and the receiving end device is less than a preset quality, for example, discards all or part of the messages in the first message set, and the all or part of the messages include the first message. The first network device forwards the first message when the first message set is a critical message set in the first message set group or the first message set is not the last non-critical message set in the first message set group, and the network quality between the first network device and the receiving end device is less than a preset quality, for example, forwards all or part of the messages in the first message set, and the all or part of the messages include the first message. Therefore, the fourth embodiment can also be understood as: when network congestion occurs between the first network device and the receiving device, the first network device discards the message in the last non-critical message set in the first message set group sent to the receiving device, and forwards the messages in the critical message set in the first message set group and the messages in the non-critical message sets except the last non-critical message set (for example, in short: discard the last non-critical message set in the first message set group, forward the critical message set in the first message set group and the message sets in the first message set group except the last non-critical message set). Optionally, the first message set group corresponds to the first media frame group, the message sets in the first message set group correspond one-to-one to the media frames in the first media frame group, and the critical message set corresponds to the critical media frame, the non-critical message set corresponds to the non-critical media frame, the messages in each critical message set belong to the corresponding critical media frame, and the messages in each non-critical message set belong to the corresponding non-critical media frame. The fourth embodiment can be further understood as: when network congestion occurs between the first network device and the receiving end device, the first network device discards the message of the last non-critical media frame in the first media frame group sent to the receiving end device, and forwards the message of the critical media frame in the first media frame group and the message of the non-critical media frame in the first media frame group except the last non-critical media frame (for example, in short: discard the last non-critical media frame in the first media frame group, forward the critical media frame in the first media frame group and the non-critical media frame in the first media frame group except the last non-critical media frame). For example, the media frame is a video frame, the media frame group is a GOP, the key media frame is an I frame, and the non-key media frame is a P frame. Please refer to Figure 16, which shows a schematic diagram of another first network device processing a message provided in an embodiment of the present application.As shown in Figure 16, the service device 20 is a sending device, the user device 34 is a receiving device, and the network device 1X is the first network device. The GOP1 sent by the service device 20 to the user device 34 includes 1 I frame and 3 P frames arranged in sequence. When network congestion occurs between the network device 1X and the user device 34, the network device 1X discards the message of the last P frame in GOP1 and forwards the message of the I frame and the first 2 P frames in GOP1.

[0159] In the fourth embodiment, when network congestion occurs between the first network device and the receiving device, the first network device discards non-critical message sets sent to the receiving device and forwards critical message sets sent to the receiving device. This processing method can prevent non-critical message sets from occupying network resources and affecting the forwarding of critical message sets.

[0160] Fifth embodiment: The first network device is a network device between a sending device of the first message and a receiving device of the first message, the first message belongs to a first media frame (for example, the first message belongs to a first message set, and the first message set corresponds to a first media frame), and the first media information Y in the message header B1 of the first message includes the resolution of the first media frame (the resolution of the first media frame is the media information for forwarding described in this application). The first network device determines the resolution of the first media frame based on the message header B1 of the first message, and the first network device determines the network quality between the first network device and the receiving device of the first message. When the resolution of the first media frame is less than the resolution of the second media frame and the network quality between the first network device and the receiving device is less than the preset quality, the first network device forwards the first message to the receiving device, for example, the first network device forwards all or part of the first media frame to the receiving device, and the all or part of the message includes the first message. The first network device forwards a message of the second media frame to the receiving device if the resolution of the first media frame is smaller than the resolution of the second media frame and the network quality between the first network device and the receiving device is not less than a preset quality. For example, the first network device forwards all or part of the message of the second media frame to the receiving device. The content of the second media frame is the same as that of the first media frame. For example, the first media frame and the second media frame are both video frames, and the video image content of the first media frame is the same as that of the second media frame.

[0161] In this fifth embodiment, the sending end device can simultaneously send multiple (for example, two) media frames with different resolutions and the same content to the receiving end device, and the first network device is a network device between the sending end device and the receiving end device. When the network quality between the first network device and the receiving end device is less than the preset quality, it can be considered that network congestion occurs between the first network device and the receiving end device. When the network quality between the first network device and the receiving end device is not less than the preset quality, it can be considered that no network congestion occurs between the first network device and the receiving end device. Therefore, this fifth embodiment can be understood as: when network congestion occurs between the first network device and the receiving end device, the first network device forwards a message of a media frame with a lower resolution to the receiving end device (for example, simply referred to as: forwarding a media frame with a lower resolution); when network congestion does not occur between the first network device and the receiving end device, the first network device forwards a message of a media frame with a higher resolution to the receiving end device (for example, simply referred to as: forwarding a media frame with a higher resolution). Please refer to Figures 17 and 18, which show a schematic diagram of another first network device processing a message provided in an embodiment of the present application. Service device 20 is a transmitting device, user device 34 is a receiving device, and network device 1X is a first network device. Service device 20 simultaneously transmits data stream 21 and data stream 22 to user device 34. Data stream 21 is a data stream of low-resolution media frames, and data stream 22 is a data stream of high-resolution media frames. For example, the low-resolution is 720p and the high-resolution is 1080p. The content of the low-resolution media frames is the same as that of the high-resolution media frames. As shown in FIG17 , when network congestion occurs between network device 1X and user device 34, network device 1X forwards data stream 21 of low-resolution media frames to user device 34. As shown in FIG18 , when network congestion does not occur between network device 1X and user device 34, network device 1X forwards data stream 22 of high-resolution media frames to user device 34.

[0162] In this fifth embodiment, the transmitting device simultaneously transmits multiple media frames with different resolutions and the same content to the receiving device. When the network quality between the first network device and the receiving device is less than the preset quality, the first network device forwards the low-resolution media frames to the receiving device. When the network quality between the first network device and the receiving device is not less than the preset quality, the first network device forwards the high-resolution media frames to the receiving device. Through this processing method, when the network quality is poor, the lower-resolution media frames can be forwarded to the receiving device, avoiding the interruption of the media service of the receiving device due to the poor network quality. When the network quality is good, the higher-resolution high-quality media frames can be forwarded to the receiving device, ensuring the service experience of the receiving device.

[0163] Sixth embodiment: The first network device is a network device between a sending end device of the first message and a receiving end device of the first message, the first message belongs to a first media frame (for example, the first message belongs to a first message set, and the first message set corresponds to a first media frame), the first media information Y in the message header B1 of the first message includes the resolution of the first media frame (the resolution of the first media frame is the media information for forwarding described in this application), and the first message is a multicast message, and the receiving end devices of the first message include a first receiving end device and a second receiving end device, and the first receiving end device and the second receiving end device are both multicast receiving ends. The first network device determines the resolution of the first media frame based on the message header B1 of the first message, and the first network device determines the network quality between the first network device and the first receiving end device, and the first network device determines the network quality between the first network device and the second receiving end device. The first network device copies the first message when the resolution of the first media frame is greater than the resolution of the second media frame, the network quality between the first network device and the first receiving device is greater than a preset quality, and the network quality between the first network device and the second receiving device is greater than the preset quality, and forwards the first message to the first receiving device and the second receiving device. For example, the first network device copies all or part of the first media frame and forwards the all or part of the first media frame to the first receiving device and the second receiving device, where the all or part of the message includes the first message. Optionally, the receiving device of the first message also includes a third receiving device (the third receiving device is also a multicast receiving device). The first network device forwards the message of the second media frame to the third receiving device when the resolution of the first media frame is greater than the resolution of the second media frame and the network quality between the first network device and the third receiving device is not greater than a preset quality. For example, the first network device forwards all or part of the second media frame to the third receiving device. The content of the second media frame is the same as that of the first media frame. For example, the first media frame and the second media frame are both video frames, and the video image content of the first media frame is the same as the video image content of the second media frame.

[0164] In the sixth embodiment, a transmitting device (i.e., a multicast source) can simultaneously send multiple (e.g., two) media frames with different resolutions and the same content to multiple receiving devices (i.e., multiple multicast receiving terminals) in a multicast manner. The first network device is a network device between the multicast source and the multiple multicast receiving terminals. When the network quality between the first network device and a certain multicast receiving terminal is less than a preset quality, it can be considered that network congestion has occurred between the first network device and the certain multicast receiving terminal. When the network quality between the first network device and the certain multicast receiving terminal is not less than the preset quality, it can be considered that no network congestion has occurred between the first network device and the certain multicast receiving terminal. Therefore, the sixth embodiment can be understood as follows: when network congestion occurs between the first network device and the certain multicast receiving terminal, the first network device forwards a message of a media frame with a lower resolution to the certain multicast receiving terminal (e.g., simply referred to as: forwarding a media frame with a lower resolution); when network congestion does not occur between the first network device and the certain multicast receiving terminal, the first network device forwards a message of a media frame with a higher resolution to the certain multicast receiving terminal (e.g., simply referred to as: forwarding a media frame with a higher resolution). That is, the first network device forwards lower-resolution media frames to multicast receiving terminals experiencing network congestion, and forwards higher-resolution media frames to multicast receiving terminals experiencing no network congestion. For example, please refer to FIG. 19 , which shows another schematic diagram of a first network device processing a message according to an embodiment of the present application. As shown in Figure 19, the service device 20 is the multicast source end, the user devices 31~33 are all multicast receiving ends, the network device 1X is the first network device, and the service device 20 simultaneously sends data stream 21 and data stream 22 to the user devices 31~33 in a multicast manner (that is, the service device 20 simultaneously sends data stream 21 and data stream 22 to the user device 31, simultaneously sends data stream 21 and data stream 22 to the user device 32, and simultaneously sends data stream 21 and data stream 22 to the user device 33). Data stream 21 is a data stream of low-resolution media frames, and data stream 22 is a data stream of high-resolution media frames. For example, the low resolution is 720p and the high resolution is 1080p. The content of the low-resolution media frame is the same as the content of the high-resolution media frame. As shown in Figure 18, there is no network congestion between the network device 1X and the user devices 31~32, but network congestion occurs between the network device 1X and the user device 33. Therefore, the network device 1X copies the data stream 22 (that is, the data stream of the high-resolution media frame) and forwards the data stream 22 to the user devices 31~32, and the network device 1X forwards the data stream 21 (that is, the data stream of the low-resolution media frame) to the user device 33.

[0165] In this sixth embodiment, a multicast source simultaneously sends multiple media frames with different resolutions but identical content to multiple multicast receivers via multicast. A first network device forwards lower-resolution media frames to multicast receivers experiencing network congestion and higher-resolution media frames to multicast receivers experiencing no network congestion. This approach allows multicast receivers experiencing network congestion to continue receiving media frames, avoiding media service interruptions. Furthermore, it allows non-congested multicast receivers to receive higher-quality media frames, providing users with a better media service experience.

[0166] In an optional embodiment, the media information used for forwarding in the first media information Y also includes discardable information of the first message set, and the discardable information is used to indicate the discardability of the first message set, and the discardability of the first message set is discardable or non-discardable. For example, the first message set corresponds to the first media frame, the discardable information of the first message set is the discardable information of the first media frame, and the discardable information of the first media frame is used to indicate the discardability of the first media frame. In the above-mentioned third and fourth embodiments, the first network device also determines whether the first message set can be discarded (that is, determines the discardability of the first message set) based on the discardable information of the first message set in the message header B1 of the first message, and the first network device discards the first message when the first message set is a non-critical message set, the first message set is discardable, and the network quality between the first network device and the receiving end device is less than the preset quality. The embodiments of the present application do not limit this.

[0167] In the third to sixth embodiments described above, the first network device can determine the network quality between the first network device and the receiving device based on various network detection technologies, thereby determining whether the network quality between the first network device and the receiving device is less than a preset quality. For example, the first network device determines the network quality between the first network device and the receiving device based on a flow detection technology. The network quality includes transmission delay, packet loss rate, and the like. The network quality between the first network device and the receiving device being less than the preset quality includes at least one of the following: the transmission delay between the first network device and the receiving device being less than a delay threshold, or the packet loss rate between the first network device and the receiving device being less than a packet loss rate threshold.

[0168] In summary, the technical solution provided by the embodiment of the present application is that, since the header of the first message includes media information, the information in the header is visible to the network device. Therefore, the first network device can perform processing on the first message based on the media information in the header, thereby ensuring the quality of the media service. By carrying media information in the header of the media message, the embodiment of the present application enables the network device to perform processing on the media message based on the media information carried in the header of the media message, thereby ensuring the quality of the media service to which the media message belongs. Furthermore, the network device can perform different processing on different media messages based on the media information carried in the header of different media messages, thereby achieving differentiated processing of different media messages.

[0169] As mentioned above, the first device is a sending end device or an access network device corresponding to the sending end device, and the first network device is an access network device corresponding to the sending end device, an access network device corresponding to the receiving end device, or a network device between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device. Therefore, the first device and the first network device can be the same device (for example, the first device and the first network device are both access network devices corresponding to the sending end device), or they can be two different devices. The following takes the first device and the first network device as two different devices as an example to introduce an embodiment of the message processing method of the present application. Among them, the first device and the first network device are two different devices, including: when the first device is a sending end device, the first network device is the access network device corresponding to the sending end device, the access network device corresponding to the receiving end device, or a network device between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device; when the first device is the access network device corresponding to the sending end device, the first network device is the access network device corresponding to the receiving end device or a network device between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device.

[0170] Please refer to Figure 20, which shows a flowchart of another message processing method provided in an embodiment of the present application. The method is applied to a message processing system including a first device and a first network device. In one example, the message processing system is shown in Figure 1, the first device is a service device 20, and the first network device is any network device among network devices 11 to 17; or, the first device is network device 17, and the first network device is any network device among network devices 11 to 16. In another example, the message processing system is shown in Figure 2, the first device is a service device 200, and the first network device is a BRAS101, a UPF device 102, an optical modem 103, a 5G base station, a network device in a WLAN bearer network, or a network device in a 5G bearer network; or, the first device is a BRAS101, the first network device is an optical modem 103 or a network device in a WLAN bearer network; or, the first device is a UPF device 102, and the first network device is a 5G base station or a network device in a 5G bearer network.

[0171] As shown in FIG20 , the message processing method includes the following steps S2001 to S2005 .

[0172] S2001. The first device obtains an original message A, in which the payload A1 of the original message A includes original media information X.

[0173] S2002. The first device obtains a first message based on the original message A. The first message includes a payload A1 and a message header B1. The message header B1 includes first media information Y. The first media information Y is related to the original media information X.

[0174] S2003. The first device sends a first message.

[0175] S2004. The first network device receives the first message.

[0176] S2005. The first network device performs a first process on the first message according to the first media information Y in the message header B1 of the first message.

[0177] The implementation process of the above S2001 to S2003 can refer to the implementation process of S301 to S303, and the implementation process of the above S2004 to S2005 can refer to the implementation process of S1001 to S1002, which will not be repeated here.

[0178] In an embodiment of the present application, error correction encoding of a message set is performed by an access network device corresponding to the sending device of the message set, and error correction decoding of the message set is performed by an access network device corresponding to the receiving device of the message set. The access network device may be a CPE device. For ease of description, the access network device corresponding to the sending device is referred to as a sending CPE, and the access network device corresponding to the receiving device is referred to as a receiving CPE. A tunnel may be established between the sending CPE and the receiving CPE, for example, an Ethernet virtual private network (EVPN) tunnel. The sending CPE performs error correction encoding on the message set from the sending device to obtain an encoded message set, and forwards the encoded message set to the receiving CPE via the EVPN tunnel. After receiving the encoded message set, the receiving CPE decodes the encoded message set to obtain a decoded message set (that is, the message set before encoding by the sending CPE), and forwards the decoded message set to the receiving device.

[0179] As previously described, a message set can correspond to a media frame. Error correction encoding of a message set can also be described as error correction encoding of messages in a media frame, and error correction decoding of a message set can also be described as error correction decoding of messages in a media frame. The message processing method provided in the embodiments of the present application is described below using an example in which the error correction encoding is FEC encoding, the error correction decoding is FEC decoding, and a message set corresponds to a media frame.

[0180] Please refer to Figure 21, which shows a schematic diagram of a message processing method provided by an embodiment of the present application. An EVPN tunnel is established between a transmitting CPE and a receiving CPE. The transmitting CPE is the head node of the EVPN tunnel, and the receiving CPE is the tail node of the EVPN tunnel. Assume that data stream 1 specified by flow classification on the EVPN tunnel requires anti-packet loss processing. Data stream 1 includes media packets 11 to 14 of media frame 1 (for example, media packets 11 to 14 are all packets of media frame 1).

[0181] As shown in Figure 21, the transmitting CPE receives media messages of media frame 1 from the transmitting device. The header of each media message in media frame 1 includes media information used for FEC encoding. For example, the media information used for FEC encoding in the header of each media message includes the identifier of media frame 1, the number of media messages in media frame 1, the identifier of each media message within media frame 1, and the type of media frame 1. The transmitting CPE determines media messages 11 to 14 of media frame 1 based on the media information in the headers of the media messages received by the transmitting CPE. Media messages 11 to 14 constitute media message set S1, and the transmitting CPE treats media messages 11 to 14 as a coding block. The transmitting CPE encapsulates the FEC header around each of media messages 11 to 14 to obtain FEC media messages 11 to 14. The transmitting CPE determines message matrix P1 based on FEC media messages 11-14 and multiplies the first coding matrix by message matrix P1 to obtain FEC redundancy messages R1-R3. At this point, the transmitting CPE completes FEC encoding of media message set S1 (or FEC encoding of media frame 1), obtaining coded message set S1. Coded message set S1 corresponds to media frame 1 and includes FEC media messages 11-14 and FEC redundancy messages R1-R3. After obtaining coded message set S1, the transmitting CPE sends coded message set S1 to the receiving CPE via the EVPN tunnel (for example, sequentially sending the FEC messages in coded message set S1 to the receiving CPE). Both FEC media messages and FEC redundancy messages may be lost in the EVPN tunnel. Figure 21 illustrates the loss of FEC media message 11, FEC media message 13, and FEC redundancy message R1 in the EVPN tunnel.

[0182] As shown in Figure 21, the receiving CPE receives coded message set S1 sent by the transmitting CPE through the EVPN tunnel (that is, it receives the FEC message in coded message set S1, or the FEC message corresponding to media frame 1). Because FEC media messages 11, 13, and FEC redundancy message R1 are lost in the EVPN tunnel, the receiving CPE can only receive FEC media messages 12, 14, R2, and R3. The receiving CPE determines FEC media messages 12, 14, R2, and R3 in coded message set S1 based on the media information in the message headers of the FEC messages received by the receiving CPE. The receiving CPE determines a first decoding matrix based on the first encoding matrix and FEC media messages 12, 14, FEC redundant messages R2, and R3, and determines a message matrix P2 based on FEC media messages 12, 14, R2, and R3. The receiving CPE multiplies the first decoding matrix by the message matrix P2 to obtain the missing FEC media messages 11 and 13 from encoded message set S1. The receiving CPE now obtains FEC media messages 11-14 and strips the FEC headers from FEC media messages 11-14 to obtain media message set S1. The receiving CPE forwards media messages 11-14 from media message set S1 to the receiving device, for example, sequentially forwarding media messages 11-14 to the receiving device according to the message identifiers included in media messages 11-14.

[0183] The embodiments of this application only exemplarily describe the implementation process of FEC encoding and FEC decoding. For the detailed implementation process of FEC encoding and the detailed implementation process of FEC decoding, please refer to the relevant technical documents of FEC encoding and decoding. This embodiment of the application will not go into details.

[0184] The above is an introduction to the method embodiments of the present application. The following describes the device embodiments of the present application. The device of the present application can be used to perform the method of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments.

[0185] Please refer to Figure 22, which shows a schematic diagram of a message processing device 2200 provided in an embodiment of the present application. Message processing device 2200 is applied to a first device. For example, message processing device 2200 is the first device or a functional component in the first device. For example, the first device is service device 20, network device 17 in Figure 1, service device 200, BRAS 101, or UPF device 102 in Figure 2. Message processing device 2200 can be used to execute all or part of the steps performed by the first device in the method embodiments shown in Figures 3 and 20 above. Referring to Figure 22, message processing device 2200 includes: an acquisition module 2210, a processing module 2220, and a sending module 2230.

[0186] An acquisition module 2210 is configured to acquire an original message, wherein the payload of the original message includes original media information;

[0187] A processing module 2220 is configured to obtain a first message based on the original message, where the first message includes the payload and a message header, the message header includes first media information, and the first media information is related to the original media information;

[0188] The sending module 2230 is configured to send a first message, where the first media information in the message header of the first message is used by the network device that receives the first message to process the first message.

[0189] Optionally, the message header includes at least one of the following: an IPv6 extension header; a QUIC proxy header; and an RTP header.

[0190] Optionally, the IPv6 extension header is HBH or DOH.

[0191] Optionally, the IPv6 extension header includes an APN field, and the first media information is located in the APN field.

[0192] Optionally, the first media information includes at least one of the following: media information for error correction encoding, media information for error correction decoding, and media information for forwarding.

[0193] Optionally, the first message belongs to a first message set, the first message set belongs to a first message set group, the first message set group includes a critical message set and at least one non-critical message set, and the first media information includes at least one of the following: the priority of the first message set; the identifier of the first message set; the number of messages in the first message set; the identifier of the first message in the first message set; the type of the first message set, the type of the first message set is a critical message set or a non-critical message set; the identifier of the dependent message set corresponding to the first message set, the first message set depends on the dependent message set for data decoding; the discardable information of the first message set, the discardable information is used to indicate the discardability of the first message set; the identifier of the first message set group; the number of non-critical message sets in the first message set group; the identifier of the non-critical message set in the first message set group; the resolution of the first media frame, the messages in the first message set belong to the first media frame. The first media information may further include at least one of the following: an identifier of the media layer to which the first media frame belongs; an identifier of the ROI in the first media frame; an identifier of the first media data block in the first media frame, wherein the payload includes all or part of the data of the first media data block.

[0194] Optionally, the processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.

[0195] Optionally, the processing module 2220 is further configured to perform processing on the first message according to the first media information.

[0196] Optionally, the first media information is the same as the original media information.

[0197] Optionally, the first device is the sending device of the original message or the access network device corresponding to the sending device.

[0198] The acquisition module 2210 can be used to execute the above-mentioned S301 and S2001. The functional implementation of the acquisition module 2210 can refer to the relevant description in S301 or S2001. The processing module 2220 can be used to execute the above-mentioned S302 and S2002. The functional implementation of the processing module 2220 can refer to the relevant description in S302 or S2002. The sending module 2230 can be used to execute the above-mentioned S303 and S2003. The functional implementation of the sending module 2230 can refer to the relevant description in S303 or S2003.

[0199] In summary, the technical solution provided by the embodiment of the present application is that the first message obtained by the first device based on the original message includes a message header and a payload of the original message, the message header includes first media information, and the first media information is related to the original media information in the payload. Since the information in the message header is visible to the network device, the network device can perform processing on the first message based on the first media information in the message header to ensure the quality of the media service. That is, the embodiment of the present application carries media information in the message header of the media message, so that the network device can perform processing on the media message based on the media information carried in the message header of the media message, thereby ensuring the quality of the media service to which the media message belongs.

[0200] Please refer to Figure 23, which shows a schematic diagram of another message processing device 2300 provided in an embodiment of the present application. The message processing device 2300 is applied to a first network device. For example, the message processing device 2300 is a first network device or a functional component in the first network device. For example, the first network device is any one of the network devices 11 to 17 in Figure 1, or the first network device is the BRAS 101, UPF device 102, optical modem 103, 5G base station 104, a network device in a WLAN bearer network, or a network device in a 5G bearer network in Figure 2. The message processing device 2300 can be used to execute all or part of the steps performed by the first network device in the method embodiments shown in Figures 10 and 20. Referring to Figure 23, the message processing device 2300 includes: a receiving module 2310 and a processing module 2320.

[0201] The receiving module 2310 is configured to receive a first message, where the first message includes a payload and a message header, and the message header includes first media information;

[0202] The processing module 2320 is configured to perform processing on the first message according to the first media information in the message header.

[0203] Optionally, the message header includes at least one of the following: an IPv6 extension header; a QUIC proxy header; and an RTP header.

[0204] Optionally, the IPv6 extension header is HBH or DOH.

[0205] Optionally, the IPv6 extension header includes an APN field, and the first media information is located in the APN field.

[0206] Optionally, the first media information includes at least one of the following: media information for error correction encoding, media information for error correction decoding, and media information for forwarding.

[0207] Optionally, the first message belongs to a first message set, the first message set belongs to a first message set group, the first message set group includes a critical message set and at least one non-critical message set, and the first media information includes at least one of the following: the priority of the first message set; the identifier of the first message set; the number of messages in the first message set; the identifier of the first message in the first message set; the type of the first message set, the type of the first message set is a critical message set or a non-critical message set; the identifier of the dependent message set corresponding to the first message set, the first message set depends on the dependent message set for data decoding; the discardable information of the first message set, the discardable information is used to indicate the discardability of the first message set; the identifier of the first message set group; the number of non-critical message sets in the first message set group; the identifier of the non-critical message set in the first message set group; the resolution of the first media frame, the messages in the first message set belong to the first media frame. The first media information may further include at least one of the following: an identifier of the media layer to which the first media frame belongs; an identifier of the ROI in the first media frame; an identifier of the first media data block in the first media frame, wherein the payload includes all or part of the data of the first media data block.

[0208] Optionally, the processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.

[0209] Optionally, the first network device is any one of the following: an access network device corresponding to a sending end device of the first message;

[0210] The access network device corresponding to the receiving device of the first message; the network device between the access network device corresponding to the sending device and the access network device corresponding to the receiving device.

[0211] Optionally, the first network device is an access network device corresponding to the sending device of the first message, the first media information includes media information for error correction coding, and the processing module 2320 is used to perform error correction coding on the first message set according to the media information for error correction coding in the message header of the first message, wherein the first message belongs to the first message set, the first message set is a critical message set or a non-critical message set, and the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

[0212] Optionally, the first network device is an access network device corresponding to a receiving device of the first message, the first media information includes media information for error correction decoding, and the processing module 2320 is used to perform error correction decoding on the first message set according to the media information for error correction decoding in the message header of the first message, wherein the first message belongs to the first message set, the first message set is a critical message set or a non-critical message set, and the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

[0213] Optionally, the first message belongs to a first message set, the first media information includes the type of the first message set, the first message set is a critical message set or a non-critical message set, and the processing module 2320 is used to discard the first message when the first message set is a non-critical message set and the network quality between the first network device and the receiving device of the first message is less than a preset quality.

[0214] Optionally, the processing module 2320 is further configured to cache the first message when the first message set is a key message set and the network quality between the first network device and the receiving device of the first message is less than a preset quality.

[0215] Optionally, the first message belongs to a first media frame, and the first media information includes the resolution of the first media frame. The processing module 2320 is used to forward the first message to the receiving device when the resolution of the first media frame is smaller than the resolution of the second media frame and the network quality between the first network device and the receiving device of the first message is smaller than the preset quality, and the content of the second media frame is the same as the content of the first media frame.

[0216] Optionally, the processing module 2320 is also used to forward the message of the second media frame to the receiving device when the resolution of the first media frame is smaller than the resolution of the second media frame and the network quality between the first network device and the receiving device is not less than the preset quality.

[0217] Optionally, the first message belongs to a first media frame, the first media information includes the resolution of the first media frame, the first message is a multicast message, the receiving device of the first message includes a first receiving device and a second receiving device, and the processing module 2320 is used to: copy the first message when the resolution of the first media frame is greater than the resolution of the second media frame, the network quality between the first network device and the first receiving device is greater than the preset quality, and the network quality between the first network device and the second receiving device is greater than the preset quality; and forward the first message to the first receiving device and the second receiving device.

[0218] The receiving module 2310 can be used to execute the above S1001 and S2004. The functional implementation of the receiving module 2310 can refer to the relevant descriptions of S1001 and S2004. The processing module 2320 can be used to execute the above S1002 and S2005. The functional implementation of the processing module 2320 can refer to the relevant descriptions of S1002 and S2005.

[0219] To sum up, in the technical solution provided by the embodiment of the present application, the message header of the first message includes first media information, and the information in the message header is visible to the network device. Therefore, the first network device can perform processing on the first message based on the first media information in the message header to ensure the quality of media services.

[0220] The message processing device provided in the embodiments of the present application can also be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The method provided in the above method embodiment can also be implemented by software. When the method provided in the above method embodiment is implemented by software, each module in the message processing device can also be a software module.

[0221] An embodiment of the present application provides a message processing device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the message processing device performs all or part of the steps of the message processing method provided in the above embodiment.

[0222] Please refer to Figure 24, which shows a schematic diagram of another message processing device 2400 provided in an embodiment of the present application. The message processing device 2400 is a network device or a functional component in a network device (for example, the network device is an access network device corresponding to the sending end device, an access network device corresponding to the receiving end device, or a network device between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device). For example, the network device is any of the network devices 11 to 17 in Figure 1, or the network device is the BRAS101, UPF device 102, optical modem 103, 5G base station 104, network device in the WLAN bearer network, or network device in the 5G bearer network in Figure 2. The message processing device 2400 can be used to execute all or part of the steps of the message processing method provided in the method embodiments shown in Figures 3, 10, and 20. As shown in Figure 24, the message processing device 2400 includes: a main control board 2410, an interface board 2430, and an interface board 2440. In the case of multiple interface boards, a switching network board (not shown in FIG24 ) is also included, and the switching network board is used to complete data exchange between the interface boards (the interface board is also called a line card or a service board).

[0223] The main control board 2410 performs functions such as system management, device maintenance, and protocol processing. The interface boards 2430 and 2440 provide various service interfaces (e.g., POS, GE, and ATM) and implement message forwarding. The main control board 2410 primarily includes three functional units: a system management and control unit, a system clock unit, and a system maintenance unit. The main control board 2410, interface boards 2430, and interface boards 2440 are interconnected via a system bus and the system backplane. The interface board 2430 includes one or more processors 2431. Processors 2431 control and manage the interface boards 2430 and communicate with the central processing unit 2412 on the main control board 2410. The memory 2432 on the interface board 2430 stores various information necessary to execute the aforementioned message processing method. The interface board 2430 also includes one or more network interfaces 2433 for receiving and sending messages. The detailed implementation is not detailed here. The main control board 2410 also includes a memory 2414, which is used to store system management information, protocols, etc., which is not limited in this application.

[0224] As shown in Figure 24, this embodiment includes multiple interface boards and employs a distributed forwarding mechanism. Under this mechanism, the operations on interface board 2440 are substantially similar to those on interface board 2430. For example, interface board 2440 includes one or more network interfaces 2443 for receiving and sending messages, a memory 2442 for storing various possible information required to execute the above-described message processing method, and a processor 2441 for controlling and managing interface board 2440 and communicating with central processing unit 2412 on main control board 2410. For the sake of brevity, detailed description of interface board 2440 will not be given here.

[0225] In FIG24 , the processor 2431 in interface board 2430 and / or the processor 2441 in interface board 2440 can be dedicated hardware or chips, such as a network processor or an application-specific integrated circuit, to implement the aforementioned functions. This implementation is commonly referred to as utilizing dedicated hardware or chips for forwarding plane processing. In other embodiments, the processor 2431 in interface board 2430 and / or the processor 2441 in interface board 2440 can also be a general-purpose processor, such as a central processing unit (CPU).

[0226] It should also be noted that there may be one or more main control boards, including a master and backup main control board. There may also be one or more interface boards. The higher the data processing capabilities of a network device, the more interface boards it provides. With multiple interface boards, they can communicate with each other through one or more switching fabric boards (SFMs), enabling load balancing and redundant backup. In a centralized forwarding architecture, network devices may not require SFMs; the interface boards handle service data processing for the entire system. In a distributed forwarding architecture, network devices include multiple interface boards, which can exchange data between them through SFMs, providing high-capacity data exchange and processing capabilities. Therefore, network devices with distributed architectures have greater data access and processing capabilities than those with centralized architectures. The specific architecture to adopt depends on the network deployment scenario and is not defined here.

[0227] In an optional embodiment, the memory 2432 and / or the memory 2442 is a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these. The memory 2432 can exist independently and be connected to the processor 2431 via a communication bus, or it can be integrated with the processor 2431. The memory 2442 can exist independently and be connected to the processor 2441 via a communication bus, or it can be integrated with the processor 2441.

[0228] The memory 2432 is used to store program code and is controlled by the processor 2431 to execute part or all of the steps of the method provided in the above embodiment. The processor 2431 is used to execute the program code stored in the memory 2432. The program code may include one or more software modules. These one or more software modules may be the functional modules provided in the embodiment shown in Figure 22 or Figure 23 above. The memory 2442 may also be used to store program code and is controlled by the processor 2441 to execute part or all of the steps of the method provided in the above embodiment. Similarly, the memory 2414 may also be used to store program code and is controlled by the central processing unit 2412 to execute part or all of the steps of the method provided in the above embodiment.

[0229] In an optional implementation, network interface 2433 and network interface 2443 may be devices using any transceiver type for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0230] Please refer to Figure 25, which shows a schematic diagram of another message processing device 2500 provided in an embodiment of the present application. The message processing device 2500 is an end-side device (such as a sending end device) or a functional component in the end-side device, or the message processing device 2500 is a network device or a functional component in the network device. For example, the end-side device is the service device 20 in Figure 1 or the service device 200 in Figure 2, the network device is any network device among the network devices 11 to 17 in Figure 1, or the network device is the BRAS101, UPF device 102, optical modem 103, 5G base station 104, network device in the WLAN bearer network, or network device in the 5G bearer network in Figure 2. The message processing device 2500 can be used to execute all or part of the steps of the message processing method provided in the method embodiments shown in Figures 3, 10 and 20. 25 , a message processing device 2500 includes a processor 2502, a memory 2504, a communication interface 2506, and a bus 2508. The processor 2502, the memory 2504, and the communication interface 2506 are communicatively connected via the bus 2508. The connection method between the processor 2502, the memory 2504, and the communication interface 2506 shown in FIG25 is merely an example. The processor 2502, the memory 2504, and the communication interface 2506 may also be connected using a connection method other than the bus 2508.

[0231] Memory 2504 is used to store computer program 25042, which may include instructions and data. Memory 2504 may be various types of storage media, such as RAM, ROM, non-volatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), flash memory, optical storage, and registers.

[0232] Among them, the processor 2502 can be a general-purpose processor. The general-purpose processor can be a processor that performs specific steps and / or operations by reading and executing a computer program (e.g., computer program 25042) stored in a memory (e.g., memory 2504). The general-purpose processor may use data stored in the memory (e.g., memory 2504) in the process of performing the above steps and / or operations. The stored computer program can be executed, for example, to implement the related functions of the aforementioned acquisition module 2210, processing module 2220, and processing module 2320. The general-purpose processor can be a CPU. The processor 2502 can also be a dedicated processor. A dedicated processor is a processor specially designed to perform specific steps and / or operations. The dedicated processor can be a digital signal processor (DSP), ASIC, or FPGA, etc. The processor 2502 can also be a combination of multiple processors, such as a multi-core processor. The processor 2502 includes at least one circuit to perform all or part of the steps of the above-mentioned embodiment method.

[0233] The communication interface 2506 may include input / output (I / O) interfaces, physical interfaces, and logical interfaces, etc., for interconnecting components within the message processing device 2500, as well as interfaces for interconnecting the message processing device 2500 with other devices (e.g., network devices). A physical interface may be a Gigabit Ethernet (GE) interface, which can be used to interconnect the message processing device 2500 with other devices. A logical interface is an interface within the message processing device 2500, which can be used to interconnect components within the message processing device 2500. It will be readily understood that the communication interface 2506 can be used for communication between the message processing device 2500 and other devices. For example, the communication interface 2506 is used to send and receive messages between the message processing device 2500 and other devices. The communication interface 2506 can implement the related functions of the aforementioned sending module 2230 and receiving module 2310.

[0234] The bus 2508 may be any type of communication bus for interconnecting the processor 2502 , the memory 2504 , and the communication interface 2506 , such as a system bus.

[0235] The above-mentioned devices can be provided on separate chips, or at least partially or entirely on the same chip. Whether to provide each device independently on different chips or to integrate them on one or more chips often depends on the product design requirements. The embodiments of this application do not limit the specific implementation of the above-mentioned devices.

[0236] The message processing device 2500 shown in FIG25 is merely exemplary. During implementation, the message processing device 2500 may further include other components, which are not listed here. The message processing device 2500 shown in FIG25 performs the relevant operations of message processing by executing all or part of the steps of the method provided in the above embodiment.

[0237] An embodiment of the present application provides a message processing system, including a first device and a first network device.

[0238] In one embodiment, the first device includes the message processing apparatus 2200 shown in Figure 22, and the first network device includes the message processing apparatus 2300 shown in Figure 23. In another embodiment, at least one of the first device and the first network device includes the message processing apparatus 2400 shown in Figure 24 or the message processing apparatus 2500 shown in Figure 25.

[0239] Optionally, the first device is a sending device or an access network device corresponding to the sending device; the first network device is an access network device corresponding to the sending device, an access network device corresponding to the receiving device, or a network device between the access network device corresponding to the sending device and the access network device corresponding to the receiving device.

[0240] In one embodiment, the first device is a sending device, and the first network device is an access network device corresponding to the sending device, an access network device corresponding to the receiving device, or a network device between the access network device corresponding to the sending device and the access network device corresponding to the receiving device. In one example, the message processing system is shown in FIG1 , the sending device is a service device 20, the receiving device includes at least one user device from among user devices 31 to 36, the first device is the service device 20 (i.e., the first device is the sending device), and the first network device is one of network devices 11 to 17 (network devices 11 to 14 are access network devices corresponding to user devices 31 to 36, network device 17 is an access network device corresponding to service device 20, and network devices 15 to 16 are network devices between the access network device corresponding to service device 20 and the access network device corresponding to user devices 31 to 36). In another example, the message processing system is shown in Figure 2, the sending device is the service device 200, the receiving device includes at least one user device among the user devices 301~304, the first device is the service device 200 (that is, the first device is the sending device), and the first network device is BRAS101, UPF device 102, optical modem 103, 5G base station 104, a network device in the WALIN bearer network or a network device in the 5G bearer network (BRAS101 and UPF device 102 are access network devices corresponding to the service device 200, and the optical modem 103 and 5G base station 104 are access network devices corresponding to the user devices 301~304).

[0241] In another embodiment, the first device is an access network device corresponding to the sending device, and the first network device is an access network device corresponding to the receiving device or a network device between the access network device corresponding to the sending device and the access network device corresponding to the receiving device. In one example, the message processing system is shown in FIG1 , the sending device is a service device 20, the receiving device includes at least one user device among user devices 31 to 36, the first device is a network device 17 (that is, the first device is an access network device corresponding to the sending device), and the first network device is a network device among network devices 11 to 16. In another example, the message processing system is shown in FIG2 , the sending device is a service device 200, the receiving device includes at least one user device among user devices 301 to 304, the first device is a BRAS 101 or a UPF device 102, and the first network device is an optical modem 103, a 5G base station 104, a network device in a WLAN bearer network, or a network device in a 5G bearer network.

[0242] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed (for example, by a network device, an end-side device, one or more processors, etc.), it implements all or part of the steps of the method provided in the above method embodiment.

[0243] An embodiment of the present application provides a computer program product, which includes a program or code. When the program or code is executed (for example, by a network device, an end-side device, one or more processors, etc.), it implements all or part of the steps of the method provided in the above method embodiment.

[0244] The present invention provides a chip that, when running, is used to implement all or part of the steps of the method provided in the above method embodiment. The chip is a control chip or a forwarding chip, and includes programmable logic circuits and / or program instructions.

[0245] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium, or a semiconductor medium (e.g., a solid-state hard disk).

[0246] It should be understood that the term "at least one" in this application refers to one or more, and "a plurality of" refers to two or more. The term "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, for the sake of clarity of description, in this application, words such as "first", "second", and "third" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first", "second", and "third" do not limit the quantity and execution order.

[0247] The different types of embodiments, such as the method embodiments and device embodiments provided in the embodiments of this application, can refer to each other, and the embodiments of this application are not limited thereto. The order of the operations of the method embodiments provided in the embodiments of this application can be appropriately adjusted, and the operations can be increased or decreased in response to the circumstances. Any person skilled in the art who can easily think of a method of variation within the technical scope disclosed in this application should be included in the scope of protection of this application, and therefore will not be described in detail.

[0248] In the corresponding embodiments provided in this application, it should be understood that the disclosed devices, etc. can be implemented through other configurations. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical function division. In actual implementation, other division methods may be used, such as combining or integrating multiple modules or components into another system, or ignoring or not implementing certain features.

[0249] Modules described as separate components may or may not be physically separate, and components described as modules may or may not be physical modules. They may be located in one place or distributed across multiple devices. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.

[0250] The above description is merely an exemplary embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A message processing method, It is characterized in that The method comprises: The first device obtains an original message, where the payload of the original message includes original media information; The first device obtains a first message based on the original message, where the first message includes the payload and a message header, the message header includes first media information, and the first media information is related to the original media information; The first device sends the first message, and the first media information in the message header is used by a network device that receives the first message to perform processing on the first message.

2. The method according to claim 1, It is characterized in that The message header includes at least one of the following: Internet Protocol version 6 IPv6 extension header; Fast User Datagram Protocol Internet Connection QUIC proxy header; Real-time Transport Protocol RTP header.

3. The method according to claim 2, It is characterized in that The IPv6 extension header is a hop-by-hop header HBH or a destination options header DOH.

4. The method according to claim 2 or 3, It is characterized in that The IPv6 extension header includes an application-aware network APN field, and the first media information is located in the APN field.

5. The method according to any one of claims 1 to 4, It is characterized in that The first media information includes at least one of the following: media information for error correction encoding, media information for error correction decoding, and media information for forwarding.

6. The method according to any one of claims 1 to 5, It is characterized in that The first message belongs to a first message set, the first message set belongs to a first message set group, the first message set group includes a key message set and at least one non-key message set, and the first media information includes at least one of the following: The priority of the first message set; an identifier of the first message set; The number of messages in the first message set; An identifier of the first message in the first message set; a type of the first message set, wherein the type of the first message set is the critical message set or the non-critical message set; an identifier of a dependent message set corresponding to the first message set, the first message set relying on the dependent message set for data decoding; The discardable information of the first message set, wherein the discardable information is used to indicate the discardability of the first message set; An identifier of the first message set group; the number of the non-critical message sets in the first message set group; an identifier of the non-critical message set in the first message set group; A resolution of a first media frame, to which the messages in the first message set belong.

7. The method according to any one of claims 1 to 6, It is characterized in that The processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.

8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: The first device performs processing on the first message according to the first media information.

9. The method according to any one of claims 1 to 8, It is characterized in that The first media information is the same as the original media information.

10. The method according to any one of claims 1 to 9, It is characterized in that The first device is a sender device of the original message or an access network device corresponding to the sender device.

11. A message processing method, It is characterized in that The method comprises: The first network device receives a first message, wherein the first message includes a payload and a message header, and the message header includes first media information; The first network device performs processing on the first message according to the first media information in the message header.

12. The method according to claim 11, It is characterized in that The message header includes at least one of the following: Internet Protocol version 6 IPv6 extension header; Fast User Datagram Protocol Internet Connection QUIC proxy header; Real-time Transport Protocol RTP header.

13. The method according to claim 12, It is characterized in that The IPv6 extension header is a hop-by-hop header HBH or a destination options header DOH.

14. The method according to claim 12 or 13, It is characterized in that The IPv6 extension header includes an application-aware network APN field, and the first media information is located in the APN field.

15. The method according to any one of claims 11 to 14, It is characterized in that The first media information includes at least one of the following: media information for error correction encoding, media information for error correction decoding, and media information for forwarding.

16. The method according to any one of claims 11 to 15, It is characterized in that The first message belongs to a first message set, the first message set belongs to a first message set group, the first message set group includes a key message set and at least one non-key message set, and the first media information includes at least one of the following: The priority of the first message set; an identifier of the first message set; The number of messages in the first message set; An identifier of the first message in the first message set; a type of the first message set, wherein the type of the first message set is the critical message set or the non-critical message set; an identifier of a dependent message set corresponding to the first message set, the first message set relying on the dependent message set for data decoding; The discardable information of the first message set, wherein the discardable information is used to indicate the discardability of the first message set; An identifier of the first message set group; the number of the non-critical message sets in the first message set group; an identifier of the non-critical message set in the first message set group; A resolution of a first media frame, to which the messages in the first message set belong.

17. The method according to any one of claims 11 to 16, It is characterized in that The processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.

18. The method according to any one of claims 11 to 17, It is characterized in that The first network device is any one of the following: The access network device corresponding to the sending end device of the first message; An access network device corresponding to the receiving device of the first message; A network device between the access network device corresponding to the sending end device and the access network device corresponding to the receiving end device.

19. The method according to claim 18, It is characterized in that The first network device is an access network device corresponding to the transmitting end device, the first media information includes media information for error correction coding, and the first network device performs processing on the first message according to the first media information in the message header, including: The first network device performs error correction coding on the first message set according to the media information for error correction coding in the message header, wherein In the embodiment, the first message belongs to the first message set, the first message set is a critical message set or a non-critical message set, and the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

20. The method according to claim 18, It is characterized in that The first network device is an access network device corresponding to the receiving end device, the first media information includes media information for error correction decoding, and the first network device performs processing on the first message according to the first media information in the message header, including: The first network device performs error correction decoding on the first message set according to the media information used for error correction decoding in the message header, wherein the first message belongs to the first message set, the first message set is a critical message set or a non-critical message set, and the coding redundancy of the critical message set is greater than the coding redundancy of the non-critical message set.

21. The method according to any one of claims 11 to 20, It is characterized in that The first message belongs to a first message set, the first media information includes a type of the first message set, the first message set is a key message set or a non-key message set, and the first network device performs processing on the first message according to the first media information in the message header, including: The first network device discards the first message when the first message set is a non-critical message set and the network quality between the first network device and the receiving end device is less than a preset quality.

22. The method according to claim 21, It is characterized in that The first network device performs processing on the first message according to the first media information in the message header, further comprising: The first network device caches the first message when the first message set is a key message set and the network quality between the first network device and the receiving end device is less than a preset quality.

23. The method according to any one of claims 11 to 20, It is characterized in that The first message belongs to a first media frame, the first media information includes a resolution of the first media frame, and the first network device performs processing on the first message according to the first media information in the message header, including: The first network device forwards the first message to the receiving device when the resolution of the first media frame is smaller than the resolution of the second media frame and the network quality between the first network device and the receiving device is smaller than a preset quality, and the content of the second media frame is the same as that of the first media frame.

24. The method according to claim 23, It is characterized in that The method further comprises: The first network device forwards a message of the second media frame to the receiving device when a resolution of the first media frame is smaller than a resolution of the second media frame and a network quality between the first network device and the receiving device is not less than a preset quality.

25. The method according to any one of claims 11 to 20, It is characterized in that The first message belongs to a first media frame, the first media information includes a resolution of the first media frame, the first message is a multicast message, a receiving end device of the first message includes a first receiving end device and a second receiving end device, and the first network device performs processing on the first message according to the first media information in the message header, including: The first network device copies the first message when a resolution of the first media frame is greater than a resolution of the second media frame, a network quality between the first network device and the first receiving end device is greater than a preset quality, and a network quality between the first network device and the second receiving end device is greater than the preset quality; The first network device forwards the first message to the first receiving end device and the second receiving end device.

26. A message processing device, It is characterized in that including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the message processing device executes the message processing method according to any one of claims 1 to 10.

27. A message processing device, It is characterized in that including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the message processing device executes the message processing method according to any one of claims 11 to 25.

28. A message processing system, It is characterized in that comprising a first device and a first network device; The first device comprises the message processing apparatus according to claim 26; The first network device includes the message processing apparatus as claimed in claim 27.

29. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 25 is implemented.

30. A computer program product, It is characterized in that The computer program product comprises a program or a code, and when the program or the code is executed, the method according to any one of claims 1 to 25 is implemented.

31. A chip, It is characterized in that When the chip is running, it implements the method according to any one of claims 1 to 25.

Citation Information

Patent Citations

  • Next-generation internet protocol header compression method based on internet of things

    CN101854361A

  • Method and apparatus for transmitting / receiving packet in multimedia system

    CN108141457A

  • Method and apparatus for packet transmission supporting downloading and streaming

    CN111049820A

  • Video File Universal Identifier for Metadata Resolution

    US20170180821A1

Cited By

  • Message transmission method, device and system

    CN120750869A