Message processing method, device and system
By including media information in the header of media messages, the problem of network devices being unable to process media messages is solved, thus ensuring the quality of media services.
Patent Information
- Application Number
- CN202310327299.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
Network devices are unable to process media information based on media packets, affecting the quality of media services.
Media information is carried in the header of media messages, enabling network devices to perform processing based on the media information in the header.
This ensures the quality of media services. By including media information in the message header, network devices can perform differentiated processing on media messages, thereby improving the quality of media services.
Smart Images

Figure CN118694833A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a message processing method, device and system. Background Art
[0002] End-side devices (such as user equipment and servers) can access a communication network, and the communication network enables communication between different end-side devices by forwarding messages between them.
[0003] For example, the end-side device accessing the communication network includes a sending end device and a receiving end device, and the communication network forwards a media message including media information from the sending end device to the receiving end device, so that the sending end device can provide media services to the receiving end device. Currently, the media information is located in the payload (e.g., data part) of the media message, which makes it impossible for the network device to process the media message based on the media information in the media message, affecting the quality of the media service. Summary of the invention
[0004] The present application provides a message processing method, device and system. The technical solution of the present application is as follows.
[0005] 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 a first message, 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 (e.g., perform a first processing).
[0006] 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 relevant 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.
[0007] The technical solution provided by 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 according to 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 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.
[0008] 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.
[0009] Optionally, the IPv6 extension header is a hop by hop header (HBH) or a destination options header (DOH).
[0010] 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.
[0011] In 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 modification of the protocol by extending the field in the APN field.
[0012] Optionally, the IPv6 extension header includes an option field, and the first media information is located in the option field.
[0013] Optionally, the QUIC proxy header includes a metadata field, and the first media information is located in the metadata field. For example, the metadata field is a type length value (TLV) field, and the metadata field is used to carry metadata of the payload, and the metadata field is also called a payload metadata field.
[0014] 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.
[0015] 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.
[0016] 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 according to 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 according to 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 according to 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.
[0017] 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: 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 in the first message set; a type of the first message set, the type of the first message set is a critical message set or a non-critical message set; an identifier of a dependent message set corresponding to the first message set, the first message set depends on the dependent message set for data decoding (for example, data in the payload of the message in the first message set is decoded after Encoded data, decoding of data in the payload of messages in the first message set depends on the dependent message set, the dependent message set is a message set that has been decoded, the data in the payload of messages 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.
[0018] 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, the type of the original message set is a critical message set or a non-critical message set; the identifier of a dependent message set corresponding to the original message set, and the original message set depends on the dependent message set 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, the discardable information 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, the messages in the original message set belong to the first media frame.
[0019] Optionally, the first media information is the same as the original media information. The first message set is the same message set as the original 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 message headers of messages in the original message set or encapsulating message headers including media information outside messages in the original message set), the first message set group is the same message set group as the original message set group (each message set in the first message set group is a message set obtained by processing an original message set in the original message set group), message headers of messages in the original message set do not include media information, message headers of messages in the first message set include media information, message headers of messages in the original message set group do not include media information, and message headers of messages in the first message set group include media information.
[0020] 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 may be a tile, a slice, or a macroblock. A media frame includes multiple tiles, a tile includes multiple slices, 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 may include multiple macroblocks.
[0021] 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, the multiple message sets correspond to multiple media frames one by one, and each message set is composed of messages of corresponding media frames. For example, the multiple media frames are multiple video frames, and the multiple video frames constitute a group of picture (GOP), and the first message set group corresponds to the GOP.
[0022] Optionally, the processing (i.e., the first processing) includes at least one of the following: error correction coding, error correction decoding, forwarding (relay), caching (cache), discarding (drop), and replication (replication). Among them, error correction coding and error correction decoding can prevent message loss from affecting service quality, so error correction coding and error correction decoding can achieve anti-packet loss effect, error correction coding is also called anti-packet loss coding, error correction decoding is also called anti-packet loss decoding, and error correction coding and error correction decoding are collectively referred to as anti-packet loss processing.
[0023] Optionally, the method further includes: the first device performs 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.
[0024] Optionally, the first device is a sender device of the original message or an 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 a 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.
[0025] In a second aspect, a message processing method is provided, the method comprising: a first network device receives a first message, the first message includes a payload and a message header, the message header includes first media information; the first network device performs processing (e.g., performs first processing) on the first message according to the first media information in the message header. The first message is a media message.
[0026] In the technical solution provided by the present application, the message header of the first message includes the first media information, and the information in the message header is visible to the network device, so the first 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 present application carries the 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 to ensure the quality of the media service to which the media message belongs.
[0027] Optionally, the message header includes at least one of the following: an IPv6 extension header; a QUIC proxy header; and an RTP header.
[0028] Optionally, the IPv6 extension header is HBH or DOH.
[0029] 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.
[0030] 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. Optionally, the IPv6 extension header includes an option field, and the first media information is located in the option field.
[0031] Optionally, the QUIC proxy header includes a metadata field, and the first media information is located in the metadata field.
[0032] 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.
[0033] 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.
[0034] 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 according to 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 according to 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 according to 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.
[0035] 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 a 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); discardable information of the first message set, which 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 sets 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.
[0036] 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.
[0037] 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.
[0038] 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; an access network device corresponding to a receiving end 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. The source address of the first message is the address of the sending end device, and the destination address of the first message includes the address of the receiving end device. Therefore, the sending end device is also called a source end device, and the receiving end device is also called a destination end device. Optionally, the first message is obtained by processing the 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 sending end device of the first message is also the sending end device of the original message, and the receiving end device of the first message is also the receiving end device of the original message. The access network device may be a CPE device.
[0039] 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 a 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 a 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.
[0040] The technical solution provided by the present application is that the first network device performs error correction coding on the first message set to which the first message belongs according to the media information for error correction coding in the message header of the first message, so as to avoid the message loss of the first message set affecting the quality of the media service to which the first message belongs. Since the coding redundancy of the key message set is greater than the coding redundancy of the non-key message set, the key message set can tolerate more packet loss, which is more conducive to ensuring the service quality under certain network conditions.
[0041] 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 a 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.
[0042] The technical solution provided by the present application is that the first network device performs error correction decoding on the first message set to which the first message belongs according to the media information for error correction decoding in the message header of the first message, so as to avoid the message loss of the first message set affecting the quality of the media service to which the first message belongs. Since the coding redundancy of the key message set is greater than the coding redundancy of the non-key message set, the key message set can tolerate more packet loss, which is more conducive to ensuring the service quality under certain network conditions.
[0043] 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.
[0044] 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, it can avoid the non-critical message set from occupying network resources and affecting the forwarding of the critical message set, thereby ensuring the forwarding quality of the critical message set.
[0045] Optionally, the first network device performs processing on the first message according to 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 key message set and the network quality between the first network device and the receiving end 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 end device after the network quality between the first network device and the receiving end device of the first message improves (for example, the network quality is greater than a preset quality).
[0046] The technical solution provided by 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, so as to avoid the packet loss of the key message set due to network congestion.
[0047] 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 according to 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 the receiving end device of the first message is less than a preset quality, the first network device forwards the first message to the receiving end device, and the content of the second media frame is the same as the content of the first media frame. For example, the second media frame and the first media frame are two images with the same content.
[0048] The technical solution provided by the present application is that the first network device forwards a message of a media frame with a lower resolution to the receiving device when the network quality between the first network device and the receiving device is less than a preset quality, so that when the network quality is poor, the receiving device can still receive the media service, thereby avoiding the interruption of the media service and affecting the user experience.
[0049] Optionally, the method also includes: the first network device forwarding 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.
[0050] The technical solution provided by the present application is that the first network device forwards a message of a media frame with a 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 relatively high-quality media services to ensure user experience.
[0051] Optionally, 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, 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; and the first network device forwards the first message to the first receiving device and the second receiving device.
[0052] 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), so that these multicast receiving ends can receive higher-quality media services and ensure the user experience of these multicast receiving ends.
[0053] Optionally, the receiving device of the first message also includes a third receiving device, and the method also includes: 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.
[0054] 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 under the condition of poor network quality, these multicast receiving ends can still receive media services, thereby avoiding media service interruption affecting the user experience of these multicast receiving ends.
[0055] Optionally, 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, the receiving end devices of the first message include 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 a 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; the first network device forwards the message of the second media frame to the third receiving end device.
[0056] 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 poorer 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.
[0057] In a third aspect, a message processing device is provided, comprising at least one module, the at least one module being used to execute the method provided in the first aspect or any optional manner of the first aspect, or the at least one module being used to execute the method provided in the second aspect or any optional manner of the second aspect. The at least one module can be implemented based on software, hardware, or a combination of software and hardware, and the at least one module can be arbitrarily combined or divided based on a specific implementation.
[0058] 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 a method provided in the first aspect or any optional manner of the first aspect, or, the message processing device performs a method provided in the second aspect or any optional manner of the second aspect.
[0059] 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 by 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 by the above-mentioned second aspect or any optional method of the second aspect.
[0060] 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.
[0061] In the seventh aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program 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.
[0062] In an 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.
[0063] In a ninth aspect, a chip is provided, which, when running, implements the method provided in the first aspect or any optional manner of the first aspect, or implements the method provided in the second aspect or any optional manner of the second aspect. Optionally, the chip includes a programmable logic circuit and / or program instructions.
[0064] The beneficial effects of the technical solution provided by this application include:
[0065] The message processing method, device and system provided by the present application, 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 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 according to the media information carried in the message header of the media message, and ensure the quality of the media service to which the media message belongs. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0067] Figure 2 is a schematic diagram of another application scenario provided by an embodiment of the present application;
[0068] Figure 3 It is a flow chart of a message processing method provided by an embodiment of the present application;
[0069] Figure 4 is a schematic diagram of an original message provided in an embodiment of the present application;
[0070] Figure 5 is a schematic diagram of another original message provided in an embodiment of the present application;
[0071] Figure 6 is a schematic diagram of a first message provided in an embodiment of the present application;
[0072] Figure 7 is a schematic diagram of another first message provided in an embodiment of the present application;
[0073] Figure 8 is a schematic diagram of another first message provided in an embodiment of the present application;
[0074] Fig. 9 is a schematic diagram of another first message provided in an embodiment of the present application;
[0075] Fig.10 is a flowchart of another message processing method provided in an embodiment of the present application;
[0076] Fig.11 is a schematic diagram of FEC encoding provided in an embodiment of the present application;
[0077] Fig.12 is a schematic diagram of FEC decoding provided by an embodiment of the present application;
[0078] Fig.13 It is a schematic diagram of processing a message provided in an embodiment of the present application;
[0079] Fig.14 It is a schematic diagram of another method of processing a message provided in an embodiment of the present application;
[0080] Fig.15 It is a schematic diagram of another message processing provided in an embodiment of the present application;
[0081] Fig.16 It is a schematic diagram of another method of processing a message provided in an embodiment of the present application;
[0082] Fig.17 It is a schematic diagram of another method of processing a message provided in an embodiment of the present application;
[0083] Fig.18It is a schematic diagram of another method of processing a message provided in an embodiment of the present application;
[0084] Fig.19 It is a schematic diagram of another method of processing a message provided in an embodiment of the present application;
[0085] Fig. 20 It is a flowchart of another message processing method provided in an embodiment of the present application;
[0086] Fig.21 It is a schematic diagram of a message processing method provided in an embodiment of the present application;
[0087] Fig. 22 is a schematic diagram of a message processing device provided in an embodiment of the present application;
[0088] Fig.23 is a schematic diagram of another message processing device provided in an embodiment of the present application;
[0089] Fig.24 is a schematic diagram of another message processing device provided in an embodiment of the present application;
[0090] Fig.25 It is a schematic diagram of another message processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0091] The implementation methods of the present application will be further described below in conjunction with the accompanying drawings.
[0092] The end-side device can access the communication network, and the communication network realizes communication between different end-side devices by forwarding messages between different end-side devices. For example, the end-side device accessing the communication network includes a sending end device and a receiving end device, and the communication network forwards a media message including media information from the sending end device to the receiving end device, so that the sending end device can provide media services to the receiving end device.
[0093] At present, media information is located in the payload (real data part) of the media message. Since network devices usually forward messages based on message headers, network devices usually do not parse the payload of messages. Therefore, the media information in the payload is not visible to the network devices. This results in the network devices currently being unable to process the media messages based on the media information in the media messages, affecting the quality of media services. In one example, a sending device sends a real-time transport protocol (RTP) message, which includes a payload and an RTP header. 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 not visible to the network device, and the network device cannot perform differential processing on the RTP message based on the media information in the payload of the RTP message.
[0094] In one example, in the H.264 / AVC standard, the payload of the media message includes a network abstract layer unit (NALU), the media data is carried in the NALU, 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, the NRI is a kind 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 calls the standard H.264, and ISO-IEC calls the standard Moving Pictures Experts Group (MPEG)-4AVC.
[0095] The embodiments of the present application provide a message processing method, device and system, wherein the first device is a sending end device of the original message or an 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.
[0096] The technical solution of the embodiment of the present application is introduced below, and the application scenario of the embodiment of the present application is first introduced.
[0097] 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 the media message 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, the source device or the sending end, and the receiving end device is also called the destination end device, the destination device or the receiving end. The sending end and the receiving end are relative, and any end-side device can be used 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, and 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, each media message includes part of the media data of the media frame).
[0098] 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. The service device may be a server, a server cluster composed of several servers, or a cloud computing service center. The user device is also called a client device. The user device may be a host, a mobile phone, a tablet computer, a laptop computer, a desktop computer, a television, a vehicle terminal, a personal digital assistant (PDA), etc. In an embodiment of the present application, the service device may be used to provide media services, and the service device may be a media providing device; the user device may be used to request media services, and the user device may 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 may be installed in a user device. If multiple media Apps are installed in a user device, the multiple media Apps may correspond to different media services. For example, the multiple media Apps include audio Apps, video Apps, etc.
[0099] 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 third-level 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 a multicast source, and the receiving device is a multicast receiving end.
[0100] 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. Home gateways, base stations, BRAS and UPF devices are all access network devices. Home gateways and base stations can be used for user devices to access the communication network, and 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 perspective of 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, the 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 perspective of 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, the BRAS and UPF devices serve as both core network devices in the core layer and access network devices for accessing service devices to the communication network.
[0101] 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-36 accessing the communication network 10. The communication network 10 includes network devices 11-17, the service device 20 accesses the communication network 10 through the network device 17, and the user devices 31-36 access the communication network 10 through the network devices 11-14. The communication network 10 is a three-layer network, and the communication network 10 includes an access layer, a convergence layer and a core layer. The network devices 11-14 are located in the access layer, the network devices 15-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-14 are all access network devices, network devices 15-16 are all convergence network devices, and network device 17 is a core network device; from the perspective of device functions, network devices 11-14 and 17 are all access network devices, and network devices 15-16 are all convergence network devices. In one embodiment, the service device 20 is a sending device (e.g., a media providing device), at least one of the user devices 31-36 is a receiving device (e.g., a media receiving device), and the communication network 10 forwards the media message from the service device 20 to the user devices 31-36. In one example, the communication network 10 is a unicast network, and one of the user devices 31-36 is a receiving device. In another example, the communication network 10 is a multicast network, and at least two of the user devices 31-36 are receiving devices.
[0102] 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~304 accessing the communication network 100. The communication network 100 includes a BRAS101, a UPF device 102, an optical modem 103 and a 5G base station 104. The BRAS101 and the optical modem 103 are connected via a wireless local area network (WLAN) bearer network, and the UPF device 102 and the 5G base station 104 are connected via a 5G bearer network. The service device 200 is connected to the BRAS101 and the UPF device 102 respectively, and the service device 200 accesses the communication network 100 via the BRAS101 and the UPF device 102. User devices 301~302 are connected to the optical modem 103, and the user devices 301~302 access the communication network 100 via the optical modem 103. The user equipment 303-304 is connected to the 5G base station 104, and the user equipment 303-304 accesses the communication network 100 through the 5G base station 104. For example, the service device 200 is a sending end device (e.g., a media providing device), at least one of the user equipment 301-304 is a receiving end device (e.g., a media receiving device), and the communication network 100 forwards the media message from the service device 200 to the user equipment 301-304.
[0103] Figure 2 Take the example that BRAS101 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 BRAS101 and optical modem 103 is located in 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 in the 5G bearer network and at the edge of the 5G bearer network. For example, BRAS101 and optical modem 103 are both located in the WLAN bearer network, and UPF device 102 and 5G base station 104 are both located in the 5G bearer network, which is not limited in the embodiments of the present application.
[0104] Figure 1 and Figure 2The application scenarios shown are for example purposes only and are not intended to limit the technical solutions of the embodiments of the present application. During implementation, 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, service control, and network analysis. The control device can be a server, or a server cluster consisting of several servers, or a cloud computing service center. In some embodiments, the control device is also referred to as a management device, a network management device, a controller, etc., which is not limited in the embodiments of the present application.
[0105] The above is an introduction to the application scenarios of the present application. The following is an introduction to an embodiment of the message processing method of the present application.
[0106] Please refer to Figure 3 , which shows a flow chart of a message processing method provided by 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. Figure 1 As shown, the first device is the service device 20 or the network device 17 (the network device 17 is the access network device corresponding to the service device 20). Figure 2 As shown, the first device is the service device 200, BRAS 101 or UPF device 102 (BRAS 101 and UPF device 102 are both access network devices corresponding to the service device 200). Figure 3 As shown, the method includes the following steps S301 to S303.
[0107] S301. The first device obtains an original message A, in which the payload A1 of the original message A includes original media information X.
[0108] 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.
[0109] 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 the media information. Among them, 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 connections (QUIC) proxy message, and the message header A2 includes a QUIC proxy header. The RTP header and the QUIC proxy header are both transport layer message headers.
[0110] In one embodiment, the original message A is an RTP message, and the original message A includes a payload A1 and an RTP header (that is, the message header A2 includes the RTP header). Figure 4 See Figure 4 , the payload A1 includes the original media information X, and the message header A2 (i.e., the RTP header) includes the version (version, V) field, the padding (padding, P) field, the extension (extension, X) field, the CSRC count (CSRC count, CC) field, the marker (marker, M) field, the payload type (payload type, PT) field, the sequence number (sequence number, SN) field, the timestamp (timestamp) field, the synchronization source (synchronization source, SSRC) identification field and the k contributing source (contributing source, CSRC) identification fields, where k is a positive integer. For the meaning of each field in the RTP header, please refer to the relevant description in the request for comments (RFC) 3550, which will not be repeated here.
[0111] In another embodiment, the original message A is a QUIC proxy message, and the original message A includes a payload A1 and a QUIC proxy header (that is, the message header A2 includes a QUIC proxy header). The original message A is as follows: Figure 5 See Figure 5, the payload A1 includes the original media information X, and the message header A2 (i.e., the 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 the payload A1, and the metadata field is also called a payload metadata field. For the meaning of each field in the QUIC proxy header, please refer to the QUIC-related standard documents, for example, refer to the standard documents related to the multiplexed application substrate over QUIC encryption (MASQUE). The MASQUE-related standard documents 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.
[0112] In an optional embodiment, the original message A is a media message of the first media service (or referred to as 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.
[0113] In an optional embodiment, the original message A belongs to an original message set (for the 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 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 dependency 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 message in the original message set 1 is encoded data, and the decoding of the data in the payload of the message in the original message set 1 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 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; the identifier of the non-critical message set in the original message set group 1.
[0114] 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 (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 (packet total number) 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 message sequence number (packet sequence number) of original message A in original message set 1. The type of the original message set 1 may 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 may be a 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 may 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 may 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.
[0115] In one embodiment, the original message set group 1 includes a plurality of message sets, the plurality of message sets correspond to a plurality of media frames one by one, each message set is composed of messages corresponding to the media frames, the plurality of 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, the non-critical message set corresponds to the non-critical media frame, and the plurality of 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 an identifier of the first media frame group, for example, the number or sequence number (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 (P frame total number) in the first media frame group. The identifier of the non-critical message set in the original message set group 1 can be an identifier of a non-critical media frame in the first media frame group, for example, the P frame number or P frame sequence number (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, and 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, and the non-key media frame is a P frame or a B frame, which is not limited in the embodiments of the present application.
[0116] In an optional embodiment, the original message A belongs to the first media frame, and the original media information X also 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 media service includes multiple media layers, and each media layer includes multiple media frames); the identifier of the region of interest (ROI) in the first media frame; the identifier of the first media data block in the first media frame. Among them, 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. Generally, 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. 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 (tilesequence 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 (slice sequence number). In 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 (macroblocksequence number).
[0117] 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 in 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 in 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 in the original message set 1, the type of the original message set 1, the 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 frame in the original media frame group.
[0118] The above descriptions about 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, the media information used for forwarding in the original media information X, etc. are only examples, and 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, the media information used for forwarding in the original media information X, etc. may also include other information.
[0119] 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.
[0120] The first device may obtain the original media information X in the payload A1 of the original message A, and the first device obtains the first media information Y according to 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 has a mapping relationship with the original media information X, or the first media information Y is the same as the original media information X. In one embodiment, the first media information Y has a mapping relationship with the original media information X, and the first device obtains the first media information Y according to 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.
[0121] The first device may 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. Among them, 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 may be a hop by hop header (HBH) or a destination options header (DOH). Depending on the message header B1, S302 may include the following four optional embodiments.
[0122] First embodiment: The message header B1 includes an RTP header, 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 as follows Figure 4 As shown, the first device sets the extension field B2 in the RTP header of the original message A, and adds the first media information Y in the extension field B2 to obtain the following Figure 6 The first message is shown. Figure 6 Take the first media information Y including media information Y1-Yn as an example. Figure 6 The first message includes a payload A1 and a message header B1. The message header B1 is an RTP header. The RTP header includes a fixed field part and an extended field B2. The format of the fixed field part is the same as Figure 4The format of the RTP header in is the same as that in the RTP header, and the extension field B2 includes an extension identification subfield, an extension length subfield and n extension headers, where n is a positive integer. The extension identification subfield is used to indicate the type of the n extension headers, and the type of the n extension headers is the same. The extension length subfield is used to indicate the number of 32 bits in the extension field B2 excluding the extension identification subfield and the extension length subfield (that is, to indicate how many 32 bits are included in the extension field B2 excluding the extension identification subfield and the extension length subfield). The n extension headers carry media information Y1~Yn in a one-to-one correspondence. For example, each of the n extension headers includes an identification subfield, a length subfield, and may also include a data subfield, and the data subfield is used to carry media information, for example, the n extension headers are all single-byte headers or double-byte headers. Figure 6 The extension header shown in is also called 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.
[0123] The 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 is based on Figure 5 The original message A shown in the figure is obtained Figure 7 The first message shown includes a message header B1, which is a QUIC proxy header, and the first media information Y is located in a metadata field in the QUIC proxy header.
[0124] A third embodiment: The message header B1 includes an IPv6 extension header, and the IPv6 extension header 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 identification, user group ID) and an application group identification (APP group identification, APP group ID), and the first media information Y includes multiple media information, all or part of the multiple media information is all or part of the user group ID, and / or, all or part of the multiple media information 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 parameters 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 that the APN parameter subfield carries the multiple media information. For example, the original message A is as follows Figure 4 or Figure 5 As shown, the first device encapsulates the message header B1 including the first media information Y outside the original message A to obtain the following Figure 8 The first message shown. Figure 8, 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 versions 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, delay requirement parameters, jitter requirement parameters, and packet loss rate requirement parameters, etc.). The APNID 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. Such as Figure 8 As shown, 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, and 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, and for the format of the IPv6 basic header, please refer to the IPv6-related standard documents, which are not described here.
[0125] Fourth embodiment: The message header B1 includes an IPv6 extension header, the IPv6 extension header includes an option field, and the first media information Y is located in the option field. The option field can be a TLV field, the option field includes a type subfield, a length subfield and a data subfield, and the first media information Y is located in the data subfield. For example, the first media information Y includes multiple media information, the data subfield includes multiple sub-TLV fields, and the multiple media information is located in the multiple sub-TLV fields in a one-to-one correspondence. For example, the original message A is as follows Figure 4 or Figure 5 As shown, the first device encapsulates the message header B1 including the first media information Y outside the original message A to obtain the following Fig. 9 The first message shown. Fig. 9 The first message includes an original message A and a 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 option field, and the first media information Y is located in the option field. Specifically, the option field has the following subfields: a type subfield, a length subfield, a reserved subfield, and a data subfield.
[0126] The above four embodiments can be implemented separately 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, which 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, and other methods can also be used to carry media information in the message header B1. The embodiments of the present application do not limit the method of carrying media information in the message header.
[0127] In an optional embodiment, the first message belongs to a first media frame, the first media frame belongs to a first media service, and the first media information Y may be related information of the first media service, media data in the first message (data of the first media frame, the media data in the first message is the same as the media data in the original message A), the first message, etc. 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 specifically includes forwarding operations such as forwarding, copying, discarding, and caching.
[0128] 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, the decoding of the 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); 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; the identifier of the first media data block in the first media frame, and 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 to multiple media frames one by one, 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, which 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 the embodiments of the present application.
[0129] 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, the 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.
[0130] The above descriptions about 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, and 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.
[0131] 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 includes 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, and 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, and the message headers of the messages in the first message set group include media information.
[0132] 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.
[0133] The first device sends a first message to the next-hop device of the first device. The next-hop device of the first device is a network device. Figure 1 In one example, the first device is service device 20, and the next-hop device of the first device is network device 17; in another example, the first device is network device 17, and the next-hop device of the first device is network device 15 or network device 16.
[0134] The first processing includes at least one of the following: error correction coding, error correction decoding, forwarding, caching, discarding, and copying.
[0135] In an optional embodiment, the first 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. For example, the first device performs error correction coding (for example, error correction coding on a first message set, the first message set including the first message), forwarding, caching, copying, and other processes on the first message according to the first media information Y. S303 can be considered as the first device performing forwarding processing on the first message.
[0136] 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 according to 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 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.
[0137] Please refer to Fig.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 a sending end device, or the first network device is an access network device corresponding to a receiving end device, or the first network device is a network device between an access network device corresponding to the sending end device and an access network device corresponding to the receiving end device. Figure 1As shown, the sending end device is the service device 20, the receiving end device is any user device among the user devices 31-36, and the first network device is any network device among the network devices 11-17 (network device 17 is the access network device corresponding to the service device 20, and network devices 11-14 are the access network devices corresponding to the user devices 31-36). Figure 2 As shown, the sending end device is the service device 200, the receiving end device is any user device among the user devices 301 to 304, and the first network device is the BRAS 101, the UPF device 102, the optical modem 103, the 5G base station, the network device in the WLAN bearer network, or the network device in the 5G bearer network. Fig.10 As shown, the message processing method includes the following steps S1001 to S1002.
[0138] S1001. A first network device receives a first message, wherein the first message includes a payload A1 and a message header B1, and the message header B1 includes first media information Y.
[0139] The first network device receives a first message from a previous hop device of the first network device, where the previous hop device of the first network device is a sending end device or a network device between the sending end device and the first network device. Figure 1 In one example, the first network device is network device 17, and the previous hop device is service device 20 (i.e., the sending end device); in another example, the first network device is any network device among network devices 11 to 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 the explanation of the first message and the first media information Y, please refer to S302 and Figures 4 to 9 The relevant description in will not be repeated here.
[0140] 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.
[0141] The first processing includes at least one of the following: error correction coding, error correction decoding, forwarding, caching, discarding, and copying. The error correction coding may be FEC coding, and the error correction decoding may be FEC decoding. Depending on the role of the first network device and the media information specifically included in the first media information Y, the first processing performed by the first network device is different. The following six embodiments introduce implementation methods for the first network device to perform the first processing on the first message according to the first media information Y.
[0142] First embodiment: The first network device is an access network device corresponding to the sending end device of the first message (that is, the sending end device of the original message A), the first media information Y in the message header B1 of the first message includes media information for error correction coding, and 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 B1 of the first message. The first message belongs to the first message set, the first message set is a key message set or a non-key message set, and the coding redundancy of the key message set is greater than the coding redundancy of the non-key message set.
[0143] Optionally, the media information for error correction coding in the message header B1 of the first message 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. For example, the media information 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 in 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 (for example, the multiple media messages are all media messages in the first message set, and the multiple media messages include the first message) according to the identifier of the first message set included in the message header 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 regards the multiple media messages as a coding block (for example, called the first coding block), and the first network device performs error correction coding on the first message set according to the type of the first message set (that is, error correction coding on the first coding block) to obtain the first coded message set. The first coded message set includes multiple coded media messages and multiple coded redundant messages, and the multiple coded media messages correspond one-to-one to the multiple media messages in the first message set. The multiple coded redundant messages are messages generated according to the first coding matrix (the coding matrix is also called the generation matrix) and the multiple coded media messages. For example, the multiple coded redundant messages are messages obtained by multiplying the first coding matrix with the message matrix composed of the multiple coded media messages. For example, the error correction code is FEC code, the coded media message is also called FEC media message, and the coded redundant message is also called FEC redundant message. Taking the first message set including media messages 11 to 14, the error correction code is FEC code, and the generated matrix is a 3-row 4-column matrix as an example, the process of the first network device performing FEC coding on the first message set is as follows: Fig.11As shown. First, the first network device encapsulates the FEC header outside each media message in the media messages 11 to 14 to obtain FEC media messages 11 to 14; then, the first network device determines the message matrix P1 according to the FEC media messages 11 to 14; finally, the first network device multiplies the first coding matrix with the 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.
[0144] Optionally, in the case where 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 the priority. For example, the first network device sequentially performs error correction coding on multiple message sets in the first message set group according to the priority of the multiple message sets. In the case where the first message set corresponds to the first media frame, the first embodiment can implement error correction coding in units of media frames.
[0145] Second embodiment: The first network device is an access network device corresponding to the receiving device of the first message (that is, the receiving device of the original message A), and the first media information Y in the message header B1 of the first message includes media information for error correction decoding. 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 B1 of the first message. The first message belongs to the first message set, and the first message set is a coded message set obtained by performing error correction coding. For example, the first message set is a coded message set obtained by performing error correction coding on the message set S1 by the access network device corresponding to the sending device of the first message, and the message set S1 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.
[0146] Optionally, the media information 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 in the first message set. For example, the first message set is a coded message set obtained by error correction encoding the message set S1 using the first coding matrix, and the media information 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 in the first message set. The first network device determines multiple messages in the first message set (for example, the multiple messages are all messages belonging to the first message set among the messages 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 (the decoding matrix is 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 the message set S1 based on the media messages belonging to the first message set among the messages received by the first network device and the media messages lost in the first message set. For example, the first message set is obtained by performing FEC encoding on the message set S1 using the first coding matrix, the coded media message is also called the FEC media message, and the coded redundant message is also called the FEC redundant message. For example, 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 as follows: Fig.12 As shown. First, the first network device determines the first decoding matrix according to the first coding matrix and the 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 the message matrix P2 according to the FEC media message 12, FEC media message 14, FEC redundant message R2, and FEC redundant message R3; then, the first network device multiplies the first decoding matrix with the message matrix P2 to obtain the FEC media message 11 and FEC media message 13 lost in the first message set; finally, the first network device strips the FEC headers of the FEC media messages 11 to 14 to obtain the message set S1.
[0147] Optionally, in the case where 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 the priority. For example, the first network device sequentially performs error correction decoding on multiple message sets in the first message set group according to the priority of the multiple message sets. In the case where the first message set corresponds to the first media frame, the first embodiment can implement error correction decoding in units of media frames.
[0148] Optionally, in the above-mentioned first embodiment and second embodiment, 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 coded redundant messages obtained by error correction coding of the critical message set to the total number of messages in the coded message set obtained by error correction coding of the critical message set is greater than the ratio of the number of coded redundant messages obtained by error correction coding of the non-critical message set to the total number of messages in the coded message set obtained by error correction coding of 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 correction coding of critical message set 1 is greater than the number of rows of the coding matrix used for error correction coding of non-critical message set 1, so that the coding redundancy of critical message set 1 can be achieved to be greater than the coding redundancy of 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.
[0149] The first embodiment described above is applicable to the scenario where the first network device is the access network device corresponding to the sender device of the first message (that is, the sender 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 receiver device of the first message (that is, the receiver 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 sender device of the first message and the receiver device of the first message. Among them, the network device between the sender device of the first message and the receiver device of the first message includes the access network device corresponding to the sender device, the access network device corresponding to the receiver device, and the network device between the access network device corresponding to the sender device and the access network device corresponding to the receiver 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 sender device of the first message, the first network device is the access network device corresponding to the receiver device of the first message, or the first network device is the network device between the sender device and the receiver device. The third to sixth embodiments are introduced below.
[0150] The third 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 described in the present 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 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, 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 end 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, and 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 end device after the network quality between the first network device and the receiving end device improves.
[0151] 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 the convenience of description, the messages in the key message set are called key messages, and the messages in the non-key message set are called non-key messages. Therefore, when network congestion occurs between the first network device and the receiving end device, the first network device discards the non-key messages sent to the receiving end device and caches the key messages sent to the receiving end device. Fig.13 , which shows a schematic diagram of a first network device processing a message provided by an embodiment of the present application. Fig.13 As shown, the service device 20 is a sending end device, the user device 34 is a receiving end device, the network device 1X is a first network device, and the data stream 21 sent from the service device 20 to the user device 34 includes key messages and non-key messages, the key messages belong to a key message set, the key message set can correspond to a key media frame, and the non-key messages belong to a non-key message set, the non-key message set can correspond to a non-key media frame. When network congestion occurs between the network device 1X and the user device 34, the network device 1X discards the non-key messages in the data stream 21 and caches the key messages in the data stream 21.
[0152] 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, and the first message set among 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 end 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 end 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 with 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 messages of the critical media frames in the first media frame group and the messages of the non-critical media frames in the first media frame group except the last non-critical media frame (for example, simply referred to as: discarding the last non-critical media frame in the first media frame group, caching 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 critical media frame is an I frame, and the non-critical media frame is a P frame. Please refer to Fig.14 , which shows another schematic diagram of a first network device processing a message provided by an embodiment of the present application. Fig.14As shown, the service device 20 is a sending device, the user device 34 is a receiving device, the network device 1X is a first network device, and the GOP1 sent from 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 message of the first two P frames in GOP1.
[0153] In the third embodiment, when network congestion occurs between the first network device and the receiving end device, the first network device discards the non-critical message set sent to the receiving end device and caches the critical message set sent to the receiving end device. Through such a processing method, on the one hand, it can be avoided that the non-critical message set occupies network resources and affects the forwarding of the critical message set, and on the other hand, it can be avoided that the forwarding of the message in the critical message set causes the packet loss of the critical message set in the case of network congestion.
[0154] 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 described in the present 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 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, 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 key 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.
[0155] 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, each message in the critical message set belongs to the corresponding critical media frame, and each message in the non-critical message set belongs 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 the convenience of description, the messages in the key message set are called key messages, and the messages in the non-key message set are called non-key messages. Therefore, when network congestion occurs between the first network device and the receiving device, the first network device discards the non-key messages sent to the receiving device and forwards the key messages sent to the receiving device. Fig.15 , which shows a schematic diagram of another first network device processing a message provided by an embodiment of the present application. Fig.15 As shown, the service device 20 is a sending end device, the user device 34 is a receiving end device, the network device 1X is a first network device, and the data stream 21 sent from the service device 20 to the user device 34 includes key messages and non-key messages, the key messages belong to a key message set, the key message set can correspond to a key media frame, and the non-key messages belong to a non-key message set, the non-key message set can correspond to a non-key media frame. When network congestion occurs between the network device 1X and the user device 34, the network device 1X discards the non-key messages in the data stream 21 and forwards the key messages in the data stream 21.
[0156] 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, and the first message set among 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 end 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 end 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: discarding the last non-critical message set in the first message set group, forwarding 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 with 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, simply referred to as: discarding the last non-critical media frame in the first media frame group, forwarding 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 critical media frame is an I frame, and the non-critical media frame is a P frame. Please refer to Fig.16 , which shows a schematic diagram of another first network device processing a message provided by an embodiment of the present application. Fig.16As shown, the service device 20 is a sending device, the user device 34 is a receiving device, the network device 1X is a first network device, and the GOP1 sent from 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 two P frames in GOP1.
[0157] In the fourth embodiment, when network congestion occurs between the first network device and the receiving end device, the first network device discards the non-critical message set sent to the receiving end device and forwards the critical message set sent to the receiving end device. By such a processing method, it is possible to avoid the non-critical message set occupying network resources and affecting the forwarding of the critical message set.
[0158] The 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 the present application). The first network device determines the resolution of the first media frame according to 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 a 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. 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 end device is not less than the preset quality, the first network device forwards the message of the second media frame to the receiving end device, for example, the first network device forwards all or part of the message of the second media frame to the receiving end 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 picture content of the first media frame is the same as that of the second media frame.
[0159] In the fifth embodiment, the transmitting 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 transmitting 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, and 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, the 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, referred to as: forwarding a media frame with a lower resolution), and 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, referred to as: forwarding a media frame with a higher resolution). Please refer to Fig.17 and Fig.18 , Fig.17 and Fig.18 A schematic diagram of another first network device processing a message provided by an embodiment of the present application is shown. The service device 20 is a sending end device, the user device 34 is a receiving end device, the network device 1X is a first network device, and the service device 20 simultaneously sends a data stream 21 and a data stream 22 to the user device 34. The data stream 21 is a data stream of a low-resolution media frame, and the data stream 22 is a data stream of a high-resolution media frame. 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. Fig.17 As shown, the network device 1X forwards the data stream 21 of the low-resolution media frame to the user device 34 when network congestion occurs between the network device 1X and the user device 34. Fig.18 As shown, the network device 1X forwards the data stream 22 of high-resolution media frames to the user device 34 when no network congestion occurs between the network device 1X and the user device 34 .
[0160] In the fifth embodiment, the transmitting device simultaneously transmits multiple media frames with different resolutions and the same content to the receiving device. The first network device forwards low-resolution media frames 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 high-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. Through such a processing method, when the network quality is poor, the media frames with lower resolution can be forwarded to the receiving device to avoid the interruption of the media service of the receiving device due to the poor network quality. When the network quality is good, the high-quality media frames with higher resolution can be forwarded to the receiving device to ensure the service experience of the receiving device.
[0161] The 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 a resolution of the first media frame (the resolution of the first media frame is the media information for forwarding described in the present application), and the first message is a multicast message, and the receiving end device of the first message includes 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 according to 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 end device is greater than the preset quality, and the network quality between the first network device and the second receiving end device is greater than the preset quality, and forwards the first message to the first receiving end device and the second receiving end device. For example, the first network device copies all or part of the message of the first media frame, and forwards the all or part of the message of the first media frame to the first receiving end device and the second receiving end device, and the all or part of the message includes the first message. Optionally, the receiving end device of the first message also includes a third receiving end device (the third receiving end device is also a multicast receiving end), and 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 the preset quality, for example, the first network device forwards all or part of the message of the second media frame to the third receiving end device. The content of the second media frame is the same as the content of the first media frame, for example, the first media frame and the second media frame are both video frames, and the video picture content of the first media frame is the same as the video picture content of the second media frame.
[0162] In the sixth embodiment, a transmitting end device (i.e., a multicast source end) can simultaneously send multiple (e.g., two) media frames with different resolutions and the same content to multiple receiving end devices (i.e., multiple multicast receiving ends) in a multicast manner, and the first network device is a network device between the multicast source end and the multiple multicast receiving ends. When the network quality between the first network device and a certain multicast receiving end is less than the preset quality, it can be considered that network congestion occurs between the first network device and the certain multicast receiving end, and when the network quality between the first network device and the certain multicast receiving end is not less than the preset quality, it can be considered that network congestion does not occur between the first network device and the certain multicast receiving end. Therefore, the sixth embodiment can be understood as: when network congestion occurs between the first network device and a certain multicast receiving end, the first network device forwards a message of a media frame with a lower resolution to the certain multicast receiving end (e.g., referred to as: forwarding a media frame with a lower resolution), and when network congestion does not occur between the first network device and the certain multicast receiving end, the first network device forwards a message of a media frame with a higher resolution to the certain multicast receiving end (e.g., referred to as: forwarding a media frame with a higher resolution). That is, the first network device forwards the media frames with lower resolution to the multicast receiving end where network congestion occurs, and forwards the media frames with higher resolution to the multicast receiving end where network congestion does not occur. Fig.19 , which shows a schematic diagram of another first network device processing a message provided by an embodiment of the present application. Fig.19 As shown, the service device 20 is a multicast source, the user devices 31-33 are all multicast receivers, the network device 1X is the first network device, and the service device 20 sends data stream 21 and data stream 22 to the user devices 31-33 in a multicast manner (that is, the service device 20 sends data stream 21 and data stream 22 to the user device 31, sends data stream 21 and data stream 22 to the user device 32, and sends data stream 21 and data stream 22 to the user device 33), the data stream 21 is a data stream of low-resolution media frames, and the data stream 22 is a data stream of high-resolution media frames, for example, the low resolution is 720p, the high resolution is 1080p, and the content of the low-resolution media frame is the same as the content of the high-resolution media frame. Fig.18 As shown, there is no network congestion between the network device 1X and the user devices 31~32, but there is network congestion 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.
[0163] In the sixth embodiment, the multicast source sends multiple media frames with different resolutions and the same content to multiple multicast receiving terminals in a multicast manner at the same time, and the first network device forwards the media frames with lower resolutions to the multicast receiving terminals where network congestion occurs, and forwards the media frames with higher resolutions to the multicast receiving terminals where network congestion does not occur. Through such a processing method, on the one hand, the multicast receiving terminals where network congestion occurs can still receive the media frames, avoiding the interruption of media services, and on the other hand, the multicast receiving terminals where network congestion does not occur can receive relatively high-quality media frames, bringing better media service experience to users.
[0164] 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, and 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 embodiment and fourth embodiment, 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.
[0165] 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 end device based on various network detection technologies, thereby determining whether the network quality between the first network device and the receiving end 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 end device based on the flow detection technology. The network quality includes transmission delay, packet loss rate, etc. The network quality between the first network device and the receiving end device is less than the preset quality, including at least one of the following: the transmission delay between the first network device and the receiving end device is less than the delay threshold, and the packet loss rate between the first network device and the receiving end device is less than the packet loss rate threshold.
[0166] In summary, the technical solution provided by the embodiment of the present application is that since the message header of the first message includes media information, the information in the message header is visible to the network device. Therefore, the first network device can perform processing on the first message according to the media information in the message header to ensure the quality of the media service. 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 according to 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. In addition, the network device can perform different processing on different media messages according to the media information carried in the message headers of different media messages, thereby realizing differentiated processing of different media messages.
[0167] 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 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; when the first device is an access network device corresponding to the sending end device, the first network device is 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.
[0168] Please refer to Fig. 20 , which shows a flowchart of another message processing method provided by 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 an example, the message processing system is as follows Figure 1 As shown, the first device is the service device 20, and the first network device is any one of the network devices 11 to 17; or, the first device is the network device 17, and the first network device is any one of the network devices 11 to 16. In another example, the message processing system is as follows Figure 2As shown, the first device is the service device 200, and the first network device is BRAS101, UPF device 102, optical modem 103, 5G base station, network device in WLAN bearer network or network device in 5G bearer network; or, the first device is BRAS101, and the first network device is optical modem 103 or network device in WLAN bearer network; or, the first device is UPF device 102, and the first network device is 5G base station or network device in 5G bearer network.
[0169] like Fig. 20 As shown, the message processing method includes the following steps S2001 to S2005.
[0170] S2001. The first device obtains an original message A, in which the payload A1 of the original message A includes original media information X.
[0171] 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.
[0172] S2003. The first device sends a first message.
[0173] S2004. The first network device receives the first message.
[0174] 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.
[0175] 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.
[0176] In an embodiment of the present application, error correction encoding of a message set is performed by an access network device corresponding to a sending device of the message set, and error correction decoding of the message set is performed by an access network device corresponding to a 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 through 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.
[0177] As mentioned above, a message set may correspond to a media frame, error correction encoding of a message set may also be described as error correction encoding of a message of a media frame, and error correction decoding of a message set may also be described as error correction decoding of a message of a media frame. The message processing method provided in the embodiment of the present application is introduced below by taking the error correction encoding as FEC encoding, the error correction decoding as FEC decoding, and a message set corresponding to a media frame as an example.
[0178] Please refer to Fig.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 the sending end CPE and the receiving end CPE, the sending end CPE is the head node of the EVPN tunnel, and the receiving end CPE is the tail node of the EVPN tunnel. Assume that anti-packet loss processing is required for data stream 1 specified by flow classification on the EVPN tunnel, and data stream 1 includes media messages 11 to 14 of media frame 1 (for example, media messages 11 to 14 are all messages of media frame 1).
[0179] like Fig.21As shown, the transmitting end CPE receives the media message of media frame 1 from the transmitting end device, and the message header of each media message of media frame 1 includes media information for FEC encoding. For example, the media information for FEC encoding in the message 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 in media frame 1, and the type of media frame 1. The transmitting end CPE determines the media messages 11 to 14 of media frame 1 according to the media information in the message header of the media message received by the transmitting end CPE, and the media messages 11 to 14 constitute the media message set S1. The transmitting end CPE regards the media messages 11 to 14 as a coding block. The transmitting end CPE encapsulates the FEC header outside each media message in the media messages 11 to 14 to obtain the FEC media messages 11 to 14. The transmitting end CPE determines the message matrix P1 according to the FEC media messages 11 to 14, and multiplies the first coding matrix with the message matrix P1 to obtain the FEC redundant messages R1 to R3. At this point, the sending CPE completes the FEC encoding of the media message set S1 (or the FEC encoding of the media frame 1), and the sending CPE obtains the coded message set S1. The coded message set S1 corresponds to the media frame 1, and the coded message set S1 includes FEC media messages 11 to 14 and FEC redundant messages R1 to R3. After obtaining the coded message set S1, the sending CPE sends the coded message set S1 to the receiving CPE through the EVPN tunnel (for example, the FEC messages in the coded message set S1 are sent to the receiving CPE in sequence). In the EVPN tunnel, both FEC media messages and FEC redundant messages may be lost. Fig.21 Take the case where FEC media message 11, FEC media message 13, and FEC redundant message R1 are lost in the EVPN tunnel as an example.
[0180] like Fig.21As shown, the receiving end CPE receives the coded message set S1 sent by the sending end CPE through the EVPN tunnel (that is, receives the FEC message in the coded message set S1, or receives the FEC message corresponding to the media frame 1). Since the FEC media message 11, the FEC media message 13 and the FEC redundant message R1 are lost in the EVPN tunnel, the receiving end CPE can only receive the FEC media message 12, the FEC media message 14, the FEC redundant message R2 and the FEC redundant message R3. The receiving end CPE determines the FEC media message 12, the FEC media message 14, the FEC redundant message R2 and the FEC redundant message R3 in the coded message set S1 according to the media information in the message header of the FEC message received by the receiving end CPE. The receiving end CPE determines the first decoding matrix according to the first coding matrix and FEC media message 12, FEC media message 14, FEC redundant message R2, and FEC redundant message R3, and determines the message matrix P2 according to FEC media message 12, FEC media message 14, FEC redundant message R2, and FEC redundant message R3. The receiving end CPE multiplies the first decoding matrix with the message matrix P2 to obtain the lost FEC media message 11 and FEC media message 13 in the coded message set S1. At this point, the receiving end CPE can obtain FEC media messages 11-14, and the receiving end CPE strips the FEC headers of FEC media messages 11-14 to obtain the media message set S1. The receiving end CPE forwards the media messages 11-14 in the media message set S1 to the receiving end device, for example, according to the message identifiers included in the media messages 11-14, the media messages 11-14 are forwarded to the receiving end device in sequence.
[0181] The embodiments of the present 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. The embodiments of the present application will not go into details.
[0182] The above is an introduction to the method embodiment of the present application. The following is an introduction to the device embodiment of the present application. The device of the present application can be used to execute the method of the present application. For details not disclosed in the device embodiment of the present application, please refer to the method embodiment.
[0183] Please refer to Fig. 22 , which shows a schematic diagram of a message processing device 2200 provided in an embodiment of the present application. The message processing device 2200 is applied to a first device. For example, the message processing device 2200 is the first device or a functional component in the first device. For example, the first device is Figure 1 Service device 20, network device 17, Figure 2 The message processing device 2200 can be used to perform the above Figure 3and Fig. 20 All or part of the steps in the method embodiment shown are performed by the first device. Fig. 22 The message processing device 2200 includes: an acquisition module 2210, a processing module 2220 and a sending module 2230.
[0184] The acquisition module 2210 is used to acquire an original message, wherein the payload of the original message includes original media information;
[0185] 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, where the message header includes first media information, and the first media information is related to the original media information;
[0186] The sending module 2230 is used to send a first message, and the first media information in the message header of the first message is used for the network device that receives the first message to perform processing on the first message.
[0187] Optionally, the message header includes at least one of the following: an IPv6 extension header; a QUIC proxy header; and an RTP header.
[0188] Optionally, the IPv6 extension header is HBH or DOH.
[0189] Optionally, the IPv6 extension header includes an APN field, and the first media information is located in the APN field.
[0190] 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.
[0191] 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 a media layer to which the first media frame belongs; an identifier of a ROI in the first media frame; an identifier of a 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.
[0192] Optionally, the processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.
[0193] Optionally, the processing module 2220 is further configured to perform processing on the first message according to the first media information.
[0194] Optionally, the first media information is the same as the original media information.
[0195] Optionally, the first device is a sending device of the original message or an access network device corresponding to the sending device.
[0196] The acquisition module 2210 can be used to execute the above 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 S302 and S2002. The functional implementation of the processing module 2220 can refer to the relevant description in S302 and S2002. The sending module 2230 can be used to execute the above S303 and S2003. The functional implementation of the sending module 2230 can refer to the relevant description in S303 or S2003.
[0197] 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 according to 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 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.
[0198] Please refer to Fig.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 Figure 1 Any of the network devices 11 to 17 in the network, or the first network device is Figure 2 BRAS101, UPF device 102, optical modem 103, 5G base station 104, network equipment in WLAN bearer network or network equipment in 5G bearer network. The message processing device 2300 can be used to execute Fig.10 and Fig. 20 All or part of the steps in the method embodiment shown are performed by the first network device. Fig.23 The message processing device 2300 includes: a receiving module 2310 and a processing module 2320.
[0199] The receiving module 2310 is configured to receive a first message, wherein the first message includes a payload and a message header, and the message header includes first media information;
[0200] The processing module 2320 is used to perform processing on the first message according to the first media information in the message header.
[0201] Optionally, the message header includes at least one of the following: an IPv6 extension header; a QUIC proxy header; and an RTP header.
[0202] Optionally, the IPv6 extension header is HBH or DOH.
[0203] Optionally, the IPv6 extension header includes an APN field, and the first media information is located in the APN field.
[0204] 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.
[0205] 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 a media layer to which the first media frame belongs; an identifier of a ROI in the first media frame; an identifier of a 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.
[0206] Optionally, the processing includes at least one of the following: error correction encoding, error correction decoding, forwarding, caching, discarding, and copying.
[0207] 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;
[0208] 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.
[0209] 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 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.
[0210] 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.
[0211] 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.
[0212] 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 end device of the first message is less than a preset quality.
[0213] 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 a preset quality, and the content of the second media frame is the same as the content of the first media frame.
[0214] 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.
[0215] Optionally, 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, 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 a 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.
[0216] 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 in the above 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 in the above S1002 and S2005.
[0217] To summarize, 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 according to the first media information in the message header to ensure the quality of media services.
[0218] The message processing device provided in the embodiment of the present application can also be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The above-mentioned 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-mentioned method embodiment can also be implemented by software. When the method provided in the above-mentioned method embodiment is implemented by software, each module in the above-mentioned message processing device can also be a software module.
[0219] 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.
[0220] Please refer to Fig.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 a sending end device, an access network device corresponding to a receiving end device, or a network device between an access network device corresponding to the sending end device and an access network device corresponding to the receiving end device). For example, the network device is Figure 1 Any of the network devices 11 to 17 in the network, or the network device is Figure 2 BRAS101, UPF device 102, optical modem 103, 5G base station 104, network equipment in WLAN bearer network or network equipment in 5G bearer network. The message processing device 2400 can be used to execute Figure 3 , Fig.10 and Fig. 20 All or part of the steps of the message processing method provided by the method embodiment shown. Fig.24As shown, 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 ( Fig.24 The switching network board is used to complete data exchange between interface boards (interface boards are also called line cards or service boards).
[0221] The main control board 2410 is used to complete functions such as system management, equipment maintenance, and protocol processing. The interface board 2430 and the interface board 2440 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.) and realize message forwarding. There are mainly three types of functional units on the main control board 2410: system management control unit, system clock unit, and system maintenance unit. The main control board 2410, the interface board 2430, and the interface board 2440 are connected to the system backplane through the system bus to achieve intercommunication. The interface board 2430 includes one or more processors 2431. The processor 2431 is used to control and manage the interface board 2430 and communicate with the central processor 2412 on the main control board 2410. The memory 2432 on the interface board 2430 is used to store various possible information required to execute the above-mentioned message processing method. The interface board 2430 includes one or more network interfaces 2433 for receiving and sending messages. The specific implementation is not repeated 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.
[0222] like Fig.24 As shown, this embodiment includes multiple interface boards, and adopts a distributed forwarding mechanism. Under this mechanism, the operation on the interface board 2440 is basically similar to the operation of the interface board 2430. For example, the interface board 2440 includes one or more network interfaces 2443 for receiving and sending messages, a memory 2442 for storing various possible information required for executing the above-mentioned message processing method, and a processor 2441 for controlling and managing the interface board 2440 and communicating with the central processor 2412 on the main control board 2410. For the sake of brevity, the interface board 2440 will not be described in detail here.
[0223] Fig.24 The processor 2431 in the interface board 2430 and / or the processor 2441 in the interface board 2440 may be dedicated hardware or chips, such as a network processor or a dedicated integrated circuit, to implement the above functions. This implementation is what is commonly referred to as a forwarding plane using dedicated hardware or chip processing. In another embodiment, the processor 2431 in the interface board 2430 and / or the processor 2441 in the interface board 2440 may also be a general-purpose processor, such as a central processing unit (CPU).
[0224] In addition, it should be pointed out that there may be one or more main control boards, and when there are multiple boards, they may include a main main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. In the case of multiple interface boards, the multiple interface boards can communicate with each other through one or more switching network boards, and when there are multiple boards, they can jointly realize load sharing and redundant backup. In a centralized forwarding architecture, the network device may not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. In a distributed forwarding architecture, the network device includes multiple interface boards, and data exchange between multiple interface boards can be realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the network device with a distributed architecture are greater than those of the network device with a centralized architecture. Which architecture to adopt depends on the networking deployment scenario, and no limitation is made here.
[0225] In an optional embodiment, the memory 2432 and / or the memory 2442 is a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices 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 compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a 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 an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 2432 can be independent, connected to the processor 2431 through a communication bus, or integrated with the processor 2431. The memory 2442 can be independent, connected to the processor 2441 through a communication bus, or integrated with the processor 2441.
[0226] The memory 2432 is used to store program codes, and the processor 2431 controls the execution to execute some or all steps of the method provided in the above embodiment. The processor 2431 is used to execute the program codes stored in the memory 2432. The program codes may include one or more software modules. The one or more software modules may be the above Fig. 22 or Fig.23The memory 2442 may also be used to store program codes, and the processor 2441 controls the execution 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 codes, and the central processor 2412 controls the execution to execute part or all of the steps of the method provided in the above embodiment.
[0227] 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 networks (WLAN), etc.
[0228] Please refer to Fig.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 a terminal device (e.g., a sending terminal device) or a functional component in the terminal device, or the message processing device 2500 is a network device or a functional component in the network device. For example, the terminal device is Figure 1 The service device 20 or Figure 2 The service device 200 in the network device is Figure 1 Any of the network devices 11 to 17 in the network, or the network device is Figure 2 BRAS101, UPF device 102, optical modem 103, 5G base station 104, network equipment in WLAN bearer network or network equipment in 5G bearer network. The message processing device 2500 can be used to execute Figure 3 , Fig.10 and Fig. 20 All or part of the steps of the message processing method provided by the method embodiment shown. Fig.25 The message processing device 2500 includes a processor 2502 , a memory 2504 , a communication interface 2506 and a bus 2508 , and the processor 2502 , the memory 2504 and the communication interface 2506 are communicatively connected via the bus 2508 . Fig.25 The connection manner among the processor 2502 , the memory 2504 , and the communication interface 2506 shown is only an example. The processor 2502 , the memory 2504 , and the communication interface 2506 may also be connected using a connection manner other than the bus 2508 .
[0229] The memory 2504 is used to store a computer program 25042, which may include instructions and data. The 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, registers, etc.
[0230] Among them, the processor 2502 can be a general-purpose processor, which 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, which 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.
[0231] The communication interface 2506 may include an input / output (I / O) interface, a physical interface, and a logical interface, etc., which are used to interconnect devices within the message processing device 2500, and an interface for interconnecting the message processing device 2500 with other devices (such as network devices). The physical interface may be a gigabit Ethernet interface (GE), which may be used to interconnect the message processing device 2500 with other devices, and the logical interface is an interface within the message processing device 2500, which may be used to interconnect devices within the message processing device 2500. It is easy to understand that the communication interface 2506 may be used for the message processing device 2500 to communicate with other devices, for example, the communication interface 2506 is used for sending and receiving messages between the message processing device 2500 and other devices, and the communication interface 2506 may implement the related functions of the aforementioned sending module 2230 and receiving module 2310.
[0232] 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.
[0233] The above devices may be arranged on independent chips, or at least partially or completely on the same chip. Whether to arrange each device independently on different chips or to integrate them on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the specific implementation form of the above devices.
[0234] Fig.25 The message processing device 2500 shown is merely exemplary. During implementation, the message processing device 2500 may further include other components, which are not listed one by one herein. Fig.25 The message processing device 2500 shown performs the relevant operations of message processing by executing all or part of the steps of the method provided in the above embodiment.
[0235] An embodiment of the present application provides a message processing system, including a first device and a first network device.
[0236] In one embodiment, the first device includes Fig. 22 The message processing device 2200 shown in the figure, the first network device includes Fig.23 In another embodiment, at least one of the first device and the first network device includes: Fig.24 The message processing device 2400 shown in FIG. Fig.25 The message processing device 2500 is shown.
[0237] 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.
[0238] 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. Figure 1As shown, the sending end device is the service device 20, the receiving end device includes at least one user device among the user devices 31-36, the first device is the service device 20 (that is, the first device is the sending end device), and the first network device is one of the network devices 11-17 (network devices 11-14 are access network devices corresponding to the user devices 31-36, network device 17 is the access network device corresponding to the service device 20, and network devices 15-16 are network devices between the access network device corresponding to the service device 20 and the access network device corresponding to the user devices 31-36). In another example, the message processing system is as follows Figure 2 As shown, the sending end device is the service device 200, the receiving end 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 end device), and the first network device is BRAS101, UPF device 102, optical modem 103, 5G base station 104, a network device in the WAN 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 optical modem 103 and 5G base station 104 are access network devices corresponding to the user devices 301~304).
[0239] 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. Figure 1 As shown, the sending end device is the service device 20, the receiving end device includes at least one user device among the user devices 31-36, the first device is the network device 17 (that is, the first device is the access network device corresponding to the sending end device), and the first network device is one of the network devices 11-16. In another example, the message processing system is as follows Figure 2 As shown, the sending end device is the service device 200, the receiving end device includes at least one user device among the user devices 301~304, the first device is the BRAS101 or the UPF device 102, and the first network device is the optical modem 103, the 5G base station 104, the network device in the WAN bearer network or the network device in the 5G bearer network.
[0240] 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, executed by a network device, an end-side device, one or more processors, etc.), all or part of the steps of the method provided in the above method embodiment are implemented.
[0241] 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, executed 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.
[0242] The embodiment of the present application provides a chip, which is used to implement all or part of the steps of the method provided in the above method embodiment when the chip is running. The chip is a control chip or a forwarding chip, and the chip includes a programmable logic circuit and / or program instructions.
[0243] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product, and the computer program product 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 may be a general-purpose computer, a computer network, or other programmable device. The computer instructions may 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 may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium may 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), etc.
[0244] It should be understood that the term "at least one" in this application refers to one or more, and "multiple" 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 may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate clear description, in this application, the words "first", "second", "third" and the like are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second", "third" and the like do not limit the quantity and execution order.
[0245] The different types of embodiments such as the method embodiments and device embodiments provided in the embodiments of the present application can refer to each other, and the embodiments of the present application are not limited thereto. The sequence of operations of the method embodiments provided in the embodiments of the present application can be appropriately adjusted, and the operations can also be increased or decreased in response to the situation. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated.
[0246] In the corresponding embodiments provided in the present application, it should be understood that the disclosed devices and the like can be implemented by other configuration methods. For example, the device embodiments described above are only illustrative, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0247] The modules described as separate components may or may not be physically separated, and the components described as modules may or may not be physical modules, and may be located in one place or distributed on multiple devices. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0248] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A message processing method, characterized in that: The method comprises: The first device obtains an original message, wherein 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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 a 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.
20. The method according to claim 18, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, characterized in that: When the chip is running, it implements the method according to any one of claims 1 to 25.
Citation Information
Cited By
Congestion control method and apparatus, and electronic device
CN120200973A
