Information Transmission Method and Device
By setting QoS attributes for streams in QUIC connections and negotiating with the receiver to determine the sending priority, the problem that streams cannot be sent in a timely manner in QUIC connections is solved, and the data sending delay is reduced and the user experience is improved.
Patent Information
- Application Number
- CN202111506189.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-12-10
AI Technical Summary
In QUIC connection, when the total available windows of the stream are greater than the connected buffer capacity, some streams cannot be sent in time, resulting in a large delay and reducing user experience.
Set the QoS attribute for the sending stream stream, determine the QoS attribute value through negotiation with the receiving device, adjust the sending priority of the stream according to the negotiation results, and dynamically adjust the data sending order.
Through differential sending priority, the data sending delay is reduced and the user experience is improved.
Smart Images

Figure CN114302449B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a method and apparatus for information transmission. Background Art
[0002] QUIC (Quick UDP Internet Connections), that is, Quick UDP Network Connections, is a network protocol used in the transport layer, which provides a reliable, secure, and multiplexed transmission method. Multiple streams (STREAMs) can be forwarded in a QUIC connection, and the buffer of the receiving end is set to prevent the sending end from sending data too fast and causing pressure on the receiving end.
[0003] QUIC has two control methods: preventing a single stream from occupying the entire receiving buffer of the connection by restricting the amount of data sent on a single stream, or preventing the total number of bytes of data sent by a connection from exceeding the buffer capacity of the receiving end of the connection. After a QUIC connection is established, when the sum of the available windows of the streams is greater than the buffer capacity of the connection, all packets cannot be sent simultaneously. The QUIC connection randomly selects some streams for sending. For the unselected streams, even if there are available windows, they cannot be sent in time, resulting in a large delay and reducing the user experience. Summary of the Invention
[0004] The present invention provides a method and apparatus for information transmission, aiming to solve the defect in the prior art that when the sum of the available windows of the streams is greater than the buffer capacity of the connection, some streams cannot be sent in time.
[0005] The present invention provides a method for information transmission, including:
[0006] Setting a QoS attribute for the sending stream stream, where the QoS attribute is used to identify the sending priority. When generating the sending stream stream, set the value of the QoS attribute of the sending stream stream to a first QoS attribute value, and the first QoS attribute value is used to identify the default sending priority of the sending stream stream;
[0007] Negotiating with the receiving end device according to a preset rule, and receiving a first qos_update message sent by the receiving end device, where the first qos_update message is used to indicate updating the value of the QoS attribute of the sending stream stream to a second QoS attribute value;
[0008] Changing the first QoS attribute value of the sending stream stream to the second QoS attribute value according to the first qos_update message;
[0009] Send the sending stream according to the second QoS attribute value.
[0010] Optionally, the sending priority includes multiple levels, and the first QoS attribute value is one of the multiple levels.
[0011] Optionally, the negotiation with the receiving device according to the preset rules includes:
[0012] Negotiating with the receiving device according to the data volume of the sending stream; and / or,
[0013] Negotiating with the receiving device according to the latency requirement of the sending stream.
[0014] Optionally, the first qos-updata message includes the ID of the sending stream and the second QoS attribute value.
[0015] Optionally, the specific operation of sending the sending stream according to the second QoS attribute value includes:
[0016] Determine the sending priority of the sending stream according to the second QoS attribute value;
[0017] Send the sending stream according to the sending priority.
[0018] Optionally, after sending the sending stream according to the second QoS attribute value, it further includes:
[0019] When the buffer capacity of the receiving device is less than the total available window of the sending stream, receive the second qos-updata message sent by the receiving device, where the second qos-updata message is used to indicate that the value of the QoS attribute of the sending stream is updated to the third QoS attribute value;
[0020] Update the second QoS attribute value of the sending stream to the third QoS attribute value according to the second qos-updata message;
[0021] Send the sending stream according to the third QoS attribute value.
[0022] Optionally, the second qos-updata message includes the ID of the sending stream for which the second QoS attribute value needs to be updated and the third QoS attribute value.
[0023] Optionally, the sending of the sending stream according to the third QoS attribute value specifically includes:
[0024] Determining the sending priority of the sending stream according to the third QoS attribute value;
[0025] Sending the sending stream according to the sending priority.
[0026] The present invention also provides an information transmission device, including:
[0027] A generation module, configured to set QoS attributes for the sending stream, where the QoS attributes are used to identify the sending priority. When generating the sending stream, set the value of the QoS attribute of the sending stream to the first QoS attribute value, and the first QoS attribute value is used to identify the default sending priority of the sending stream.
[0028] A negotiation module, configured to negotiate with the receiving device according to a preset rule, and receive a first qos_update message sent by the receiving device, where the first qos_update message is used to indicate to update the value of the QoS attribute of the sending stream to the second QoS attribute value.
[0029] A data processing module, configured to change the first QoS attribute value of the sending stream to the second QoS attribute value according to the first qos_update message.
[0030] A sending module, configured to send the sending stream according to the second QoS attribute value.
[0031] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the information transmission method as described in any one of the above are implemented.
[0032] The information transmission method and device provided by the present invention, by adding QoS attributes to the stream, determining the QoS attribute value of the stream through negotiation between the receiving end and the sending end, determining the sending priority of the stream, and when sending data in the QUIC connection organization, can send the stream differentially according to the sending priority of the stream, reducing the latency of data sending. Description of the Drawings
[0033] To more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0034] Figure 1 is a schematic diagram of QUIC flow control in the prior art;
[0035] Figure 2 is a schematic flowchart of the information transmission method provided by the present invention;
[0036] Figure 3 is a schematic diagram of the qos attribute value setting scenario provided by the present invention;
[0037] Figure 4 is a schematic diagram of the qos attribute value update scenario provided by the present invention;
[0038] Figure 5 is a schematic diagram of the structure of the qos_update message provided by the present invention;
[0039] Figure 6 is a schematic diagram of the structure of the information transmission device provided by the present invention;
[0040] Figure 7 is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed implementation manners
[0041] To make the objectives, technical solutions and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0042] The following will describe Figure 1 the QUIC flow control in the prior art.
[0043] As Figure 1As shown in the figure, a QUIC connection includes multiple sending streams. During the process of sending data over the QUIC connection, part A of the sending stream is the data for which the receiving device has sent an Ack, part B is the data that has been sent but for which the receiving device has not sent an Ack, and part C is the available window space. When the sum of the available window spaces of the sending streams in the QUIC connection is greater than the buffer capacity of the connection, not all sending streams can be sent simultaneously. Only a part of the sending streams can be sent each time, and multiple sending streams are randomly sent. When a certain sending stream is a low-latency service and this sending stream cannot be sent all the time, it will lead to an increase in latency and degrade the user experience.
[0044] To solve the above problems, the present invention provides an information transmission method. Figure 2 The following is a schematic flowchart of the information transmission method provided by the present invention, as Figure 2 shown, including:
[0045] Step 201: Set QoS attributes for the sending stream. The QoS attributes are used to identify the sending priority. When generating the sending stream, set the value of the QoS attribute of the sending stream to a first QoS attribute value, and the first QoS attribute value is used to identify the default sending priority of the sending stream.
[0046] In an embodiment of the present invention, the sending device sets QoS attributes for the sending stream. The QoS attributes are used to identify the sending priority. When generating the sending stream, assign a first QoS attribute value to the QoS attribute of the sending stream, and set a default sending priority for each sending stream to implement the initialization of the QoS attributes.
[0047] When initializing the QoS attributes, uniformly set the first QoS attribute value corresponding to each sending stream to a default value, so that each sending stream has a default sending priority when the QoS attributes are initialized.
[0048] For example, after the receiving device and the sending device establish a QUIC connection, the sending device has three sending streams: voice, video, and his. When generating the three sending streams of voice, video, and his, assign a first QoS attribute value to the QoS attribute of each sending stream, and set the first QoS attribute value corresponding to each sending stream to the default value, and set a default sending priority for each sending stream, thereby implementing the initialization of the QoS attributes of the three sending streams of voice, video, and his.
[0049] Step 202: Negotiate with the receiving device according to a preset rule, and receive a first qos_update message sent by the receiving device, where the first qos_update message is used to indicate that the value of the QoS attribute of the sending stream is updated to a second QoS attribute value.
[0050] In the embodiment of the present invention, the preset rule is formulated according to different receiving scenarios and receiving requirements. Under different receiving scenarios and receiving requirements, the requirements for the sending device to send data and the requirements for the receiving device to receive data are different. By setting the preset rule, and then setting the priority of the sending device to send data, it can effectively make the data sent by the sending device meet different receiving scenarios and receiving requirements.
[0051] Before data is sent, the sending device negotiates with the receiving device according to a preset rule to determine the second QoS attribute value of each sending stream, that is, to determine the sending priority of each sending stream. Before data is sent, the sending priority of each sending stream is determined through negotiation, so that the data sent by the sending end can dynamically adjust the sending order of the sent data according to different receiving scenarios and receiving requirements.
[0052] After determining the sending priority of each sending stream, the receiving device uses the first qos_update message to instruct the sending device to update the QoS attribute value of the sending stream from the first QoS attribute value to the negotiated second QoS attribute value, so that the sending device can determine the corresponding sending priority of each sending stream when the sending device sends data according to the second QoS attribute value.
[0053] For example, after the sending device generates three streams: voice, video, and his, it negotiates with the receiving device. The receiving device determines the sending priority for the three streams: voice, video, and his according to the current receiving scenario and receiving requirements, and instructs the sending device to update the QoS attribute values of the three streams: voice, video, and his through the first qos_update message. The sending device can determine the sending priority of these three streams according to the QoS attribute values corresponding to the three streams: voice, video, and his.
[0054] Step 203: Change the first QoS attribute value of the sending stream to the second QoS attribute value according to the first qos_update message.
[0055] In an embodiment of the present invention, the sending device updates the first QoS attribute value of the sending stream stream to the second QoS attribute value determined through negotiation according to the first qos_update message sent by the receiving device.
[0056] Step 204: Send the sending stream stream according to the second QoS attribute value.
[0057] In an embodiment of the present invention, the sending device determines the sending priority of each sending stream stream according to the second QoS attribute value, and sends each sending stream stream in sequence according to the sending priority.
[0058] The information transmission method provided by the embodiment of the present invention adds QoS attributes to the stream, determines the QoS attribute value of the stream through negotiation between the receiving end and the sending end, determines the sending priority of the stream, and can send the stream differentially according to the sending priority of the stream when sending data in the QUIC connection organization, reducing the delay of data transmission.
[0059] Optionally, the sending priority includes multiple levels, and the first QoS attribute value is one of the multiple levels.
[0060] In an embodiment of the present invention, the sending priority includes multiple levels, and the first QoS attribute value is one of the multiple levels.
[0061] For example, the sending priority includes three priorities: High, Medium, and Low, and the priorities of High, Medium, and Low decrease in sequence, and the first QoS attribute value is one of High, Medium, and Low.
[0062] For example, the sending priority includes four priorities: High, Medium, Nomal, and Low, and the priorities of High, Medium, Nomal, and Low decrease in sequence, and the first QoS attribute value is Nomal.
[0063] Optionally, the sending priority can also be distinguished by letters, numbers, or other means.
[0064] After the sending priority of the sending stream stream is determined, each sending stream stream is sent in sequence according to the priority order. When multiple sending streams stream have the same priority, the multiple sending streams stream with the same priority randomly compete for the available window resources of the sending device.
[0065] It should be noted that the method for distinguishing the sending priority, the ranking rule of the sending priority levels, and the default sending priority can be set as needed, and the embodiments of the present invention do not make specific limitations thereto.
[0066] Optionally, the negotiation with the receiving end device according to a preset rule includes:
[0067] Negotiating with the receiving end device according to the data volume of the sending stream; and / or,
[0068] Negotiating with the receiving end device according to the latency requirement of the sending stream.
[0069] In the embodiments of the present invention, the preset rule is formulated according to different receiving scenarios and receiving requirements. The specific receiving scenarios and receiving requirements may be determined according to the data volume of the sending stream, or may be determined according to the latency requirement of the sending stream, or may be jointly determined according to the data volume of the sending stream and the latency requirement of the sending stream. The embodiments of the present invention do not make specific limitations thereto.
[0070] Figure 3 FIG. is a schematic diagram of a QoS attribute value setting scenario provided by the present invention. The sending priorities corresponding to the voice, video, and his three streams are determined according to the data volume of the sending stream and the latency requirement of the sending stream. As Figure 3 shown, the his stream is for ordinary Internet access. Since the large data volume will affect the sending of other streams, when negotiating between the receiving end device and the sending end device, the QoS attribute of the his stream is given the Nomal priority. The voice stream is voice-related data, and the video stream is video-related data. Since both the voice stream and the video stream have latency requirements, the QoS attributes of the voice stream and the video stream are given the Medium priority, so that the voice stream and the video stream have a higher priority than the his stream, reducing the sending latency of the voice stream and the video stream.
[0071] It should be noted that the sending priorities of the voice, video, and his three streams can also be determined only according to the data volume of the voice, video, and his three streams or the latency requirements of the voice, video, and his three streams.
[0072] Optionally, the first qos-updata message includes the ID of the sending stream and the second QoS attribute value.
[0073] In an embodiment of the present invention, after the sending end device and the receiving end device negotiate to determine the second QoS attribute values corresponding to all the sending streams in the QUIC connection, the receiving end device sends a corresponding first qos-updata message for each sending stream.
[0074] The sending end device updates the QoS attribute value of the sending stream according to the received first qos-updata message. The sending end device can update the QoS attributes of all the sending streams one by one according to the received first qos-updata message, or can screen out the sending streams with different first QoS attribute values and second QoS attribute values according to the received first qos-updata message, and update the QoS attribute values of the screened sending streams.
[0075] Optionally, the sending the sending stream according to the second QoS attribute value specifically includes:
[0076] Determining the sending priority of the sending stream according to the second QoS attribute value;
[0077] Sending the sending stream according to the sending priority.
[0078] Optionally, after the sending the sending stream according to the second QoS attribute value, it further includes:
[0079] When the buffer capacity of the receiving end device is less than the total available window of the sending stream, receiving a second qos-updata message sent by the receiving end device, where the second qos-updata message is used to indicate that the value for updating the QoS attribute of the sending stream is a third QoS attribute value;
[0080] Updating the second QoS attribute value of the sending stream to the third QoS attribute value according to the second qos-updata message;
[0081] Sending the sending stream according to the third QoS attribute value.
[0082] In an embodiment of the present invention, during the process that a sending-end device sends a sending stream according to a sending priority, a receiving-end device may send a second QoS-update message to the sending-end device when the receiving scenario and requirements change, or when the buffer capacity of the receiving-end device is less than the total available window of the sending stream. Through the second QoS-update message, the QoS attributes of each sending stream are dynamically adjusted, and the sending priorities of each sending stream are dynamically adjusted.
[0083] Figure 4 It is a schematic diagram of a QoS attribute value update scenario provided by the present invention. When the buffer capacity of the receiving-end device is less than the total available window of the sending stream, the receiving-end device sends a second QoS-update message to the sending-end device to update the QoS attribute of the sending stream.
[0084] As Figure 4 shown, the voice stream and the video stream have the same priority. When the buffer capacity of the receiving-end device is less than the total available window of the voice stream and the video stream, since the data volume of the voice stream is much smaller than that of the video stream, the receiving-end device sends a second QoS-update message to the sending-end device to inform the sending-end device that the QoS attribute value of the voice stream needs to be updated to the High priority.
[0085] The sending-end device updates the QoS attribute value of the voice stream according to the second QoS-update message. Then, the sending-end device preferentially sends the voice stream according to the updated sending priority. After the voice stream is sent, the video stream is sent, and finally the his stream is sent.
[0086] It should be noted that before the receiving-end device sends a second QoS-update message to update the QoS attribute value of the voice stream, the voice stream and the video stream have the same priority, and the voice stream and the video stream randomly compete for the available window resources of the sending-end device.
[0087] When the receiving device changes the receiving scenario and receiving requirements, the receiving device can send a second QoS-update message to the sending device according to the new receiving scenario and receiving requirements, update the priorities of the voice stream, video stream, and HIS stream, and the sending device sends the voice stream, video stream, and HIS stream according to the new priorities.
[0088] In the embodiment of the present invention, the sending device changes the sending priorities of the respective sending streams by receiving the second QoS-update message, flexibly changes the sending order of the respective sending streams in various situations, effectively reduces the delay of services in the connection, and improves the user experience.
[0089] Optionally, the second QoS-update message includes the ID of the sending stream for which the second QoS attribute value needs to be updated and the third QoS attribute value.
[0090] In the embodiment of the present invention, when the receiving device sends the second QoS-update message, the second QoS-update message is only sent for the sending stream for which the second QoS attribute value needs to be updated, reducing data redundancy and the burden of data transmission in the QUIC connection.
[0091] Optionally, the sending the sending stream according to the third QoS attribute value specifically includes:
[0092] Determining the sending priority of the sending stream according to the third QoS attribute value;
[0093] Sending the sending stream according to the sending priority.
[0094] Figure 5 It is a schematic diagram of the structure of the QoS-update message provided by the present invention. The byte sizes occupied by each part of the QoS-update message are as Figure 5 shown.
[0095] The meanings represented by each field of the QoS-update message are shown in Table 1:
[0096] Table 1
[0097]
[0098] Figure 6 It is a schematic diagram of the structure of the information transmission device provided by the present invention. The information transmission device of the present invention can be correspondingly referred to the information transmission method described above.
[0099] As Figure 6 shown, the information transmission device provided by the present invention includes:
[0100] A generation module 601, configured to set QoS attributes for a transmission stream stream, where the QoS attributes are used to identify the transmission priority. When generating the transmission stream stream, set the value of the QoS attribute of the transmission stream stream to a first QoS attribute value, and the first QoS attribute value is used to identify the default transmission priority of the transmission stream stream;
[0101] A negotiation module 602, configured to negotiate with a receiving device according to a preset rule, and receive a first qos_update message sent by the receiving device, where the first qos_update message is used to indicate updating the value of the QoS attribute of the transmission stream stream to a second QoS attribute value;
[0102] A data processing module 603, configured to change the first QoS attribute value of the transmission stream stream to the second QoS attribute value according to the first qos_update message;
[0103] A sending module 604, configured to send the transmission stream stream according to the second QoS attribute value.
[0104] Optionally, the transmission priority includes multiple levels, and the first QoS attribute value is one of the multiple levels.
[0105] Optionally, the negotiation with the receiving device according to the preset rule includes:
[0106] Negotiating with the receiving device according to the data volume size of the transmission stream stream; and / or,
[0107] Negotiating with the receiving device according to the delay requirement of the transmission stream stream.
[0108] Optionally, the first qos-updata message includes the ID of the transmission stream stream and the second QoS attribute value.
[0109] Optionally, the sending the transmission stream stream according to the second QoS attribute value specifically includes:
[0110] Determining the transmission priority of the transmission stream stream according to the second QoS attribute value;
[0111] Sending the transmission stream stream according to the transmission priority.
[0112] Optionally, after sending the sending stream according to the second QoS attribute value, when the buffer capacity of the receiving end device is less than the total available window of the sending stream:
[0113] The negotiation module 602 is further configured to receive a second qos-updata message sent by the receiving end device, where the second qos-updata message is used to indicate that the value of the QoS attribute of the sending stream is updated to a third QoS attribute value;
[0114] The data processing module 603 is further configured to update the second QoS attribute value of the sending stream to a third QoS attribute value according to the second qos-updata message;
[0115] The sending module 604 is further configured to send the sending stream according to the third QoS attribute value.
[0116] Optionally, the second qos-updata message includes the ID of the sending stream for which the second QoS attribute value needs to be updated and the third QoS attribute value.
[0117] Optionally, the sending the sending stream according to the third QoS attribute value specifically includes:
[0118] Determining the sending priority of the sending stream according to the third QoS attribute value;
[0119] Sending the sending stream according to the sending priority.
[0120] It should be noted here that the above information transmission device provided by the embodiments of the present invention can implement all the method steps implemented by the above information transmission method embodiments, and can achieve the same technical effects, which will not be elaborated here.
[0121] The information transmission device provided by the present invention adds QoS attributes to the stream, determines the QoS attribute value of the stream through negotiation between the receiving end and the sending end, determines the sending priority of the stream, and can send the stream differentially according to the sending priority of the stream when sending data in the QUIC connection organization, reducing the delay of data sending.
[0122] Figure 7 Illustrates a schematic diagram of the physical structure of an electronic device, such as Figure 7As shown in the figure, the electronic device may include: a processor 710, a communications interface 720, a memory 730, and a communication bus 740. Among them, the processor 710, the communications interface 720, and the memory 730 complete mutual communication through the communication bus 740. The processor 710 may call logical instructions in the memory 730 to execute an information transmission method, which includes: setting QoS attributes for a sending stream stream, where the QoS attributes are used to identify the sending priority. When generating the sending stream stream, set the value of the QoS attribute of the sending stream stream to a first QoS attribute value, where the first QoS attribute value is used to identify the default sending priority of the sending stream stream; negotiating with a receiving device according to a preset rule, and receiving a first qos_update message sent by the receiving device, where the first qos_update message is used to indicate updating the value of the QoS attribute of the sending stream stream to a second QoS attribute value; changing the first QoS attribute value of the sending stream stream to the second QoS attribute value according to the first qos_update message; and sending the sending stream stream according to the second QoS attribute value.
[0123] In addition, when the logical instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.
[0124] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the information transmission method provided by each of the above methods. The method includes: setting QoS attributes for a sending stream stream, where the QoS attributes are used to identify the sending priority. When generating the sending stream stream, setting the value of the QoS attribute of the sending stream stream to a first QoS attribute value, where the first QoS attribute value is used to identify the default sending priority of the sending stream stream; negotiating with a receiving device according to a preset rule, and receiving a first qos_update message sent by the receiving device, where the first qos_update message is used to indicate updating the value of the QoS attribute of the sending stream stream to a second QoS attribute value; changing the first QoS attribute value of the sending stream stream to the second QoS attribute value according to the first qos_update message; and sending the sending stream stream according to the second QoS attribute value.
[0125] In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the information transmission method provided by each of the above methods. The method includes: setting QoS attributes for a sending stream stream, where the QoS attributes are used to identify the sending priority. When generating the sending stream stream, setting the value of the QoS attribute of the sending stream stream to a first QoS attribute value, where the first QoS attribute value is used to identify the default sending priority of the sending stream stream; negotiating with a receiving device according to a preset rule, and receiving a first qos_update message sent by the receiving device, where the first qos_update message is used to indicate updating the value of the QoS attribute of the sending stream stream to a second QoS attribute value; changing the first QoS attribute value of the sending stream stream to the second QoS attribute value according to the first qos_update message; and sending the sending stream stream according to the second QoS attribute value.
[0126] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative effort.
[0127] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. An information transmission method, characterized in that Including: Set QoS attributes for the sending stream, where the QoS attributes are used to identify the sending priority. When generating the sending stream, set the value of the QoS attribute of the sending stream to the first QoS attribute value, and the first QoS attribute value is used to identify the default sending priority of the sending stream; Negotiate with the receiving device according to a preset rule, and receive the first qos_update message sent by the receiving device, where the first qos_update message is used to indicate to update the value of the QoS attribute of the sending stream to the second QoS attribute value; Change the first QoS attribute value of the sending stream to the second QoS attribute value according to the first qos_update message; Send the sending stream according to the second QoS attribute value; The negotiation with the receiving device according to the preset rule includes: Negotiate with the receiving device according to the data volume size of the sending stream; And / or, negotiate with the receiving device according to the latency requirement of the sending stream.
2. The information transmission method according to claim 1, wherein The sending priority includes multiple levels, and the first QoS attribute value is one of the multiple levels.
3. The information transmission method according to claim 1, wherein The first qos_updata message includes the ID of the sending stream and the second QoS attribute value.
4. The information transmission method according to claim 1, wherein The sending the sending stream according to the second QoS attribute value specifically includes: Determine the sending priority of the sending stream according to the second QoS attribute value; Send the sending stream according to the sending priority.
5. The information transmission method according to claim 1, wherein After the sending the sending stream according to the second QoS attribute value, it further includes: When the buffer capacity of the receiving device is less than the total available window of the sending stream, receive the second qos_updata message sent by the receiving device, where the second qos_updata message is used to indicate to update the value of the QoS attribute of the sending stream to the third QoS attribute value; Update the second QoS attribute value of the sending stream to the third QoS attribute value according to the second qos_updata message; Send the sending stream according to the third QoS attribute value.
6. The information transmission method according to claim 5, wherein The second qos_updata message includes the ID of the sending stream that needs to update the second QoS attribute value and the third QoS attribute value.
7. The information transmission method according to claim 5, wherein The sending the sending stream according to the third QoS attribute value specifically includes: Determine the sending priority of the sending stream according to the third QoS attribute value; Send the sending stream according to the sending priority.
8. An information transmission device, characterized in that, Including: A generation module, configured to set QoS attributes for a sending stream, where the QoS attributes are used to identify a sending priority. When generating the sending stream, set the value of the QoS attribute of the sending stream to a first QoS attribute value, and the first QoS attribute value is used to identify the default sending priority of the sending stream; A negotiation module, configured to negotiate with a receiving end device according to a preset rule, and receive a first qos_update message sent by the receiving end device, where the first qos_update message is used to indicate to update the value of the QoS attribute of the sending stream to a second QoS attribute value; A data processing module, configured to change the first QoS attribute value of the sending stream to the second QoS attribute value according to the first qos_update message; A sending module, configured to send the sending stream according to the second QoS attribute value; The negotiation module is configured to negotiate with the receiving end device according to the data volume size of the sending stream; and / or negotiate with the receiving end device according to the delay requirement of the sending stream.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, the steps of the information transmission method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
A method and system for traffic control
CN1996942A
In-flow packet prioritization and data-dependent flexible QOS policy
US20170324652A1