Bandwidth reservation method and device based on QAV protocol, equipment and medium

By adjusting the reserved bandwidth value according to the remaining bandwidth value of the current node, the problem of too fixed bandwidth setting method in the prior art is solved, and flexible adjustment of bandwidth reservation and improvement of success rate is achieved.

CN119583475APending Publication Date: 2025-03-07WXILICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411840242.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When the existing technology realizes bandwidth reservation, the setting method is relatively fixed, and the resource reservation requirements cannot be flexibly adjusted, resulting in an increase in the risk of reservation failure.

Method used

By obtaining the remaining bandwidth value of the current node, it is determined whether the reserved bandwidth value is satisfied. If it is not satisfied, the reserved bandwidth value is adjusted according to the remaining bandwidth value, a new reserved message is generated and sent to the target node to realize bandwidth reservation.

Benefits of technology

Flexible adjustments to bandwidth reservations are achieved, the success rate of bandwidth reservations is improved, and the risk of reservation failure is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583475A_ABST
    Figure CN119583475A_ABST
Patent Text Reader

Abstract

The invention relates to a bandwidth reservation method and device based on a QAV protocol, equipment and a medium. According to the scheme, when bandwidth reservation is carried out, firstly, whether the residual bandwidth value of the current node meets the first reserved bandwidth value of the first reserved message or not is judged; if yes, recording a first reserved bandwidth value, and then sending the first reserved message to a first target node so as to reserve the bandwidth of the first target node; if the remaining bandwidth value is not satisfied, the reserved bandwidth can be adjusted according to the remaining bandwidth value, a second reserved message is generated according to the adjusted second reserved bandwidth value and sent to the second target node, and the second target node performs bandwidth reservation through the adjusted reserved bandwidth, so that the reserved bandwidth value can be flexibly adjusted; and the success rate of bandwidth reservation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a bandwidth reservation method, device, equipment and medium based on the QAV protocol. Background Art

[0002] IEEE802.1QAV (Quality Assurance and Verification) protocol is an enhanced Ethernet flow control protocol. Its main function is to ensure the priority transmission of audio and video streams. Therefore, it is very necessary to implement resource reservation in the QAV protocol. Resource reservation refers to reserving necessary resources for future data transmission in advance in the network to ensure the smooth progress of data transmission. In computer networks, resource reservation mechanisms are usually used to ensure the quality and reliability of data transmission and avoid task delays and system crashes due to insufficient resources. At present, when implementing bandwidth reservation, a fixed reserved bandwidth value can be sent to each node in the data transmission path, and each node reserves resources according to the fixed reserved bandwidth value. However, when setting the reserved bandwidth value in this way, since its setting method is relatively fixed, resources can only be reserved according to the fixed reserved bandwidth value sent. If the node cannot meet the resource reservation requirements, the reservation will fail and the resource reservation requirements cannot be flexibly adjusted.

[0003] Therefore, how to achieve flexible adjustment of bandwidth reservation based on the QAV protocol and improve the success rate of bandwidth reservation is a problem that those skilled in the art need to solve. Summary of the invention

[0004] The present application provides a bandwidth reservation method, apparatus, device and medium based on the QAV protocol to achieve flexible adjustment of bandwidth reservation and improve the success rate of bandwidth reservation.

[0005] In a first aspect, the present application provides a bandwidth reservation method based on the QAV protocol, comprising:

[0006] Obtaining a first reservation message; the first reservation message includes a first reserved bandwidth value;

[0007] Determine whether the remaining bandwidth value of the current node meets the first reserved bandwidth value;

[0008] If yes, recording the first reserved bandwidth value as the target reserved value, and sending the first reservation message to the first target node, so that the first target node continues to reserve bandwidth according to the first reservation message;

[0009] If not, determining a second reserved bandwidth value according to the remaining bandwidth value, and recording the second reserved bandwidth value as the target reserved value;

[0010] A second reservation message is generated according to the second reserved bandwidth value, and the second reservation message is sent to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

[0011] Optionally, recording the first reserved bandwidth value as a target reserved value includes:

[0012] Determine the reserved TC number in the first reservation message;

[0013] The first reserved bandwidth value is recorded as the target reserved value of the reserved TC number.

[0014] Optionally, if the current node is an originating node, the acquiring the first reserved message includes:

[0015] Receive a bandwidth reservation trigger instruction; wherein the bandwidth reservation trigger instruction carries a first reserved bandwidth value;

[0016] A first reservation message is generated according to the first reserved bandwidth value.

[0017] Optionally, if the first target node is a final destination node, after sending the first reservation message to the first target node, the method further includes:

[0018] The final node determines whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value; if so, records the first reserved bandwidth value as the target reserved value;

[0019] If not, determine a third reserved bandwidth value according to the remaining bandwidth value of the current node, and record the third reserved bandwidth value as the target reserved value; generate a third reservation message according to the third reserved bandwidth value, and send the third reservation message to the upper-level node, so that the upper-level node reserves bandwidth according to the third reservation message.

[0020] Optionally, if the current node is the originating node, the second target node is a lower-level node; if the current node is a passing node, the second target node is an upper-level node and a lower-level node.

[0021] Optionally, after determining the second reserved bandwidth value according to the remaining bandwidth value, the method further includes:

[0022] Determining whether the second reserved bandwidth value is less than a predetermined threshold;

[0023] If so, a replacement node corresponding to the current node is determined, and the first reservation message is forwarded to the replacement node, so that the replacement node reserves bandwidth according to the first reservation message.

[0024] Optionally, after sending the first reservation message to the first target node, or after sending the second reservation message to the second target node, the method further includes:

[0025] Determine whether a fourth reserved message sent by other nodes is received within a predetermined time period; the fourth reserved message includes a fourth reserved bandwidth value;

[0026] If not, bandwidth configuration is performed according to the target reserved value; if yes, the fourth reserved bandwidth value with the smallest value is selected to update the target reserved value; and the step of determining whether a fourth reserved message sent by other nodes is received within a predetermined time period is continued.

[0027] Optionally, after selecting the fourth reserved bandwidth value with the smallest value to update the target reserved value, the method further includes:

[0028] If the current node has an upper-level node, the fourth reservation message is sent to the upper-level node, so that the upper-level node reserves bandwidth according to the fourth reservation message.

[0029] In a second aspect, the present application provides a bandwidth reservation device based on the QAV protocol, comprising:

[0030] An acquisition module, configured to acquire a first reservation message; the first reservation message includes a first reserved bandwidth value;

[0031] A first judgment module, used to judge whether the remaining bandwidth value of the current node meets the first reserved bandwidth value;

[0032] A first recording module, configured to record the first reserved bandwidth value as a target reserved value when the remaining bandwidth value of the current node satisfies the first reserved bandwidth value;

[0033] A first sending module, configured to send the first reservation message to a first target node, so that the first target node continues to reserve bandwidth according to the first reservation message;

[0034] a first determining module, configured to determine a second reserved bandwidth value according to the remaining bandwidth value when the remaining bandwidth value of the current node does not satisfy the first reserved bandwidth value;

[0035] A second recording module, configured to record the second reserved bandwidth value as a target reserved value;

[0036] A generating module, configured to generate a second reserved message according to the second reserved bandwidth value;

[0037] The second sending module is used to send the second reservation message to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

[0038] In a third aspect, the present application provides an electronic device, including:

[0039] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the bandwidth reservation method of the present application through the computer program.

[0040] In a fourth aspect, the present application further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the steps of the above-mentioned bandwidth reservation method of the present application.

[0041] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the embodiment of the present application provides a bandwidth reservation scheme based on the QAV protocol. When this scheme performs bandwidth reservation, it first determines whether the remaining bandwidth value of the current node meets the first reserved bandwidth value of the first reservation message; if it meets, after recording the first reserved bandwidth value, the first reservation message is sent to the first target node to reserve the bandwidth of the first target node; if it does not meet, the reserved bandwidth can be adjusted according to the remaining bandwidth value, and a second reservation message is generated according to the adjusted second reserved bandwidth value and sent to the second target node. The second target node reserves bandwidth through the adjusted reserved bandwidth. In this way, the reserved bandwidth value can be flexibly adjusted to improve the success rate of bandwidth reservation. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0045] Figure 1 A schematic diagram of the structure of a bandwidth reservation system based on the QAV protocol provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of a bandwidth reservation method based on the QAV protocol provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of another bandwidth reservation method based on the QAV protocol provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of a reserved message structure provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of a bandwidth reservation method based on the QAV protocol provided in an embodiment of the present application;

[0050] Figure 6 A flow chart of changing the QAV reserved bandwidth of a node provided in an embodiment of the present application;

[0051] Figure 7 Another flow chart for changing the QAV reserved bandwidth of a node provided in an embodiment of the present application;

[0052] Figure 8 A schematic diagram of the structure of a bandwidth reservation device based on the QAV protocol provided in an embodiment of the present application;

[0053] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0055] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0056] The embodiments of the present application disclose a bandwidth reservation method, apparatus, device and medium based on the QAV protocol to achieve flexible adjustment of bandwidth reservation and improve the success rate of bandwidth reservation.

[0057] For a clear description of this scheme, see Figure 1, a schematic diagram of the structure of a bandwidth reservation system based on the QAV protocol provided in an embodiment of the present application. In the system, it includes: an originating node 11, a path node 12 and a terminal node 13. Among them, the number of path nodes 12 is not specifically limited here, and can be one or more. If the originating node 11 only needs to send the reservation message to the terminal node 13, then the number of path nodes 12 can also be zero; in this embodiment, only one path node 12 is taken as an example to illustrate this solution.

[0058] In the present application, the path of originating node 11-passing node 12-destination node 13 is a path for transmitting a certain type of data. Before transmitting the data of this type, in order to ensure that the data of this type is smoothly transmitted from the originating node 11 to the destination node 13, the reserved bandwidth for each node to transmit the data of this type can be set on this path.

[0059] The originating node 11 is used to receive a bandwidth reservation trigger instruction, generate a reservation message according to the reserved bandwidth value carried in the bandwidth reservation trigger instruction, and determine whether the remaining bandwidth value of the current node meets the reserved bandwidth value; if so, the reserved bandwidth value is recorded as a target reserved value, and the reservation message is sent to the en route node 12, so that the en route node 12 continues to reserve bandwidth according to the reservation message; if not, the adjusted reserved bandwidth value is determined according to the remaining bandwidth value, and the adjusted reserved bandwidth value is recorded as the target reserved value; a new reservation message is generated according to the adjusted reserved bandwidth value, and the new reservation message is sent to the en route node 12, so that the en route node 12 reserves bandwidth according to the new reservation message;

[0060] Among them, after receiving the bandwidth reservation trigger instruction, the present application can determine whether the reserved bandwidth value is met according to the remaining bandwidth value before generating the reservation message. If it is met, the reserved bandwidth value is recorded as the target reserved value, and the reservation message is generated according to the reserved bandwidth value. The reservation message is sent to the path node 12, and there is no need to repeat the step of determining whether the remaining bandwidth value meets the reserved bandwidth value; if it is not met, the adjusted reserved bandwidth value is determined according to the remaining bandwidth value, and the adjusted reserved bandwidth value is recorded as the target reserved value. After generating the reservation message according to the adjusted reserved bandwidth value, the reservation message is directly sent to the path node 12, and there is no need to repeat the step of determining whether the remaining bandwidth value meets the reserved bandwidth value.

[0061] After receiving the reservation message, the path node 12 determines whether the remaining bandwidth value of the current node meets the reserved bandwidth value; if so, the reserved bandwidth value is recorded as the target reserved value, and the reservation message is sent to the target node, which is the lower node, that is, the final node 13; if the remaining bandwidth value does not meet the reserved bandwidth value, the reserved bandwidth value is readjusted according to the remaining bandwidth value, the adjusted reserved bandwidth value is recorded as the target reserved value, a new reservation message is generated according to the adjusted reserved bandwidth value, and the new reservation message is sent to the target node, which is the upper node and the lower node, the upper node is the originating node 11, and the lower node is the final node 13. After receiving the new reservation message, the originating node 11 updates the local target reserved value according to the adjusted reserved bandwidth value.

[0062] After receiving the reservation message sent by the en route node 12, the final node 13 determines whether the remaining bandwidth value of the node satisfies the reserved bandwidth value; if so, the reserved bandwidth value is recorded as the target reserved value. Since the final node 13 is the final node and has no subordinate nodes, it is not necessary to continue to send the reservation message to the subordinate nodes; if the remaining bandwidth value does not meet the reserved bandwidth value, the reserved bandwidth value is readjusted according to the remaining bandwidth value, and the adjusted reserved bandwidth value is recorded as the target reserved value. A new reservation message is generated according to the adjusted reserved bandwidth value, and the new reservation message is sent to the target node, which is the upper node, and the upper node is the en route node 12. After receiving the new reservation message, the en route node 12 updates the local target reserved value according to the adjusted reserved bandwidth value, and continues to send the new reservation message to the originating node 11. After receiving the new reservation message, the originating node 11 updates the local target reserved value according to the adjusted reserved bandwidth value.

[0063] From the above content, it can be seen that when this solution performs bandwidth reservation, the reserved bandwidth value can be adjusted according to the remaining bandwidth value, and the reserved bandwidth values ​​of other nodes can be updated according to the adjustment result, so as to realize flexible adjustment of the reserved bandwidth value and improve the success rate of bandwidth reservation.

[0064] See also Figure 2 , Figure 2 A schematic flow chart of a bandwidth reservation method based on the QAV protocol provided in an embodiment of the present application, the method comprising:

[0065] S101, obtaining a first reservation message; the first reservation message includes a first reserved bandwidth value;

[0066] In the present application, the bandwidth reservation method is a bandwidth reservation method based on the IEEE802.1QAV protocol. This solution can be applied to the field of automotive chip communications to implement the scheduling of sending / receiving messages by automotive chips. The bandwidth reservation method described in the present application can be applied to the originating node and the path node in the data transmission path. After the originating node or the path node obtains the first reservation message, the reservation of bandwidth resources is implemented through this solution. In order to distinguish different reservation messages, the present application may refer to the reservation message obtained by the current node as the first reservation message. The first reservation message may be a message generated by the originating node or a message sent by the upper node to the current node, which is not specifically limited here.

[0067] The superior node and subordinate node in the present application are determined according to the order in which the message is sent, such as: the current data transmission path is: node 1, node 2, node 3 and node 4, node 1 sends the reserved message to node 2, node 2 sends the reserved message to node 3, if the current node is node 2, then node 1 is the superior node of the current node, and node 3 is the subordinate node of the current node.

[0068] S102, determining whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value;

[0069] If yes, execute S103; if no, execute S104;

[0070] In the present application, after the current node receives the first reservation message, it is necessary to determine whether the remaining bandwidth value of the node satisfies the first reserved bandwidth value. In the present application, when determining whether the remaining bandwidth value satisfies the first reserved bandwidth value, it can be determined in a variety of ways, which are not specifically limited here. For example, it can be determined whether the remaining bandwidth value satisfies the first reserved bandwidth value by comparing the remaining bandwidth value with the first reserved bandwidth value; it can also be determined whether the remaining bandwidth value satisfies the first reserved bandwidth value by comparing the available bandwidth value in the remaining bandwidth value with the first reserved bandwidth value; wherein, the remaining bandwidth value is the total bandwidth value that has not been reserved for the current node, and the available bandwidth value is the bandwidth value that can be reserved in the remaining bandwidth value excluding the standby bandwidth value, in case all the bandwidth resources of the current node are reserved.

[0071] S103: Record the first reserved bandwidth value as the target reserved value, and send the first reservation message to the first target node, so that the first target node continues to reserve bandwidth according to the first reservation message;

[0072] In the present application, if the remaining bandwidth value satisfies the first reserved bandwidth value, it means that the bandwidth value that can be reserved by the current node is the first reserved bandwidth value. In the present application, the bandwidth value that can be reserved by the current node is represented by the target reserved value. If the remaining bandwidth value satisfies the first reserved bandwidth value, the target reserved value is the first reserved bandwidth value. If the remaining bandwidth value does not satisfy the first reserved bandwidth value, the target reserved value is the adjusted reserved bandwidth value.

[0073] After the present application records the first reserved bandwidth value as the target reserved value, in order to allow other nodes on the transmission path to reserve the same bandwidth, the first reserved message needs to be sent to the first target node; the first target node is the destination node for receiving the first reserved message, for example: the current data transmission path is: node 1, node 2, node 3 and node 4, the current node is node 2, the subordinate node of node 2 is node 3, node 2 needs to continue to send the first reserved message to node 3, and node 3 is the first target node; wherein, if the current node is the end node of the data transmission path, since the end node does not have a subordinate node, in this case, the first reserved message does not need to be sent to the subordinate node.

[0074] S104: Determine a second reserved bandwidth value according to the remaining bandwidth value, and record the second reserved bandwidth value as a target reserved value;

[0075] S105: Generate a second reservation message according to the second reserved bandwidth value, and send the second reservation message to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

[0076] In the present application, since the remaining bandwidth value does not satisfy the first reserved bandwidth value, in order to avoid bandwidth reservation failure, the first reserved bandwidth value can be adjusted according to the remaining bandwidth value, and the adjusted reserved value is the second reserved bandwidth value. The present application does not specifically limit the adjustment method of the first reserved bandwidth value. For example, the remaining bandwidth value can be directly used as the second reserved bandwidth value, or a partial bandwidth value of the remaining bandwidth value can be used as the second reserved bandwidth value. After determining the second bandwidth reservation that needs to be reserved for this node, the second reserved bandwidth value needs to be recorded and saved as the target reserved value. The target reserved value recorded in the present application is a temporarily stored reserved value. If the target reserved value does not need to be modified again, the configuration can be modified directly according to the target reserved value.

[0077] In some embodiments of the present application, if the current node is an originating node, the second target node is a subordinate node; if the current node is a passing node, the second target node is an upper node and a lower node.

[0078] After the present application records the second reserved bandwidth value as the target reserved value, in order to allow other nodes on the transmission path to reserve the same bandwidth, a second reservation message can be generated according to the second reserved bandwidth value, and the second reservation message can be sent to the second target node; the second target node in the present application is the destination node for receiving the second reserved bandwidth value, and since the second reserved bandwidth value in the second reserved message is the adjusted reserved value, the second target node in the present application includes not only the subordinate node, but also the superior node that sends the first reservation message to the current node, so that the superior node updates the target reserved value according to the adjusted second reserved bandwidth value. For example: the current data transmission path is: node 1, node 2, node 3 and node 4, node 1 is the starting node, node 2 and node 3 are the passing nodes, and node 4 is the final node. If the current node is node 1, since node 1 has no upper node, in this case, it is only necessary to send the second reserved message to node 2; if the current node is node 2, the lower node of node 2 is node 3, and the upper node of node 2 is node 1. At this time, the second reserved message needs to be sent to node 2 and node 3.

[0079] In some embodiments of the present application, if the first target node is the final destination node, then after the present application sends the first reservation message to the first target node, the final destination node needs to determine whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value; if so, the first reserved bandwidth value is recorded as the target reserved value; if not, a third reserved bandwidth value is determined according to the remaining bandwidth value of the current node, and the third reserved bandwidth value is recorded as the target reserved value; a third reservation message is generated according to the third reserved bandwidth value, and the third reservation message is sent to the upper-level node so that the upper-level node reserves bandwidth according to the third reservation message.

[0080] That is to say, if the current node is the final destination node, since the final destination node has no subordinate nodes, when the remaining bandwidth value of the final destination node satisfies the first reserved bandwidth value, there is no need to send the first reserved message to other nodes; correspondingly, if the remaining bandwidth value of the final destination node does not satisfy the first reserved bandwidth value, an adjusted third reserved message is generated and sent to the upper-level node.

[0081] In summary, when the present scheme performs bandwidth reservation, it is first determined whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value of the first reservation message; if so, the first reserved bandwidth value is recorded and then the first reservation message is sent to the first target node, so as to reserve the bandwidth of the first target node; if not, the reserved bandwidth can be adjusted according to the remaining bandwidth value, and a second reservation message is generated according to the adjusted second reserved bandwidth value and sent to the second target node, and the second target node reserves bandwidth through the adjusted reserved bandwidth. In this way, the reserved bandwidth value can be flexibly adjusted, thereby improving the success rate of bandwidth reservation.

[0082] See also Figure 3 , Figure 3 A schematic flow chart of another bandwidth reservation method based on the QAV protocol provided in an embodiment of the present application, the method comprising:

[0083] S201, obtaining a first reservation message; the first reservation message includes a first reserved bandwidth value;

[0084] S202, obtaining the remaining bandwidth value of the current node;

[0085] S203: Determine whether the remaining bandwidth value is greater than the first reserved bandwidth value;

[0086] If yes, execute S204; if no, execute S205;

[0087] S204: Record the first reserved bandwidth value as the target reserved value, and send the first reservation message to the first target node, so that the first target node continues to reserve bandwidth according to the first reservation message;

[0088] S205: taking the remaining bandwidth value as the second reserved bandwidth value, and recording the second reserved bandwidth value as the target reserved value;

[0089] S206: Generate a second reservation message according to the second reserved bandwidth value, and send the second reservation message to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

[0090] In this embodiment, if the current node is an originating node, the process of obtaining the first reservation message in S201 may be: receiving a bandwidth reservation trigger instruction; the bandwidth reservation trigger instruction carries a first reserved bandwidth value; and generating the first reservation message according to the first reserved bandwidth value. If the current node is a transit node or a terminal node, the process of obtaining the first reservation message in S201 may be obtaining the first reservation message sent by the upper node.

[0091] That is to say, when the current node is the originating node, it is necessary to trigger the originating node to generate the first reservation message through the bandwidth reservation trigger instruction. The bandwidth reservation trigger instruction can be an instruction actively triggered by the user, or an instruction automatically generated by the originating node according to business needs, which is not specifically limited here. If the current node is a transit node or a terminal node, the current node only needs to receive the first reservation message sent by the upper node.

[0092] In the present application, when judging whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value, it can be specifically judged whether the remaining bandwidth value is greater than the first reserved bandwidth value. If the remaining bandwidth value is greater than the first reserved bandwidth value, it means that the current node has sufficient bandwidth resources reserved. At this time, it is judged that the remaining bandwidth value satisfies the first reserved bandwidth value, and S204 is continued to be executed; if the remaining bandwidth value is not greater than the first reserved bandwidth value, it means that the current node does not have sufficient bandwidth resources reserved. At this time, it is judged that the remaining bandwidth value does not meet the first reserved bandwidth value, and S205 is continued to be executed. In addition, when the present application determines the second reserved bandwidth value according to the remaining bandwidth value, the remaining bandwidth value can be directly used as the second reserved bandwidth value, thereby reserving more resources.

[0093] In some embodiments of the present application, the process of recording the first reserved bandwidth value as the target reserved value includes: determining the reserved TC number in the first reservation message; recording the first reserved bandwidth value as the target reserved value of the reserved TC number; accordingly, when the present application records the second reserved bandwidth value as the target reserved value, the second reserved bandwidth value may be recorded as the target reserved value of the reserved TC number.

[0094] See also Figure 4 , is a schematic diagram of a reserved message structure provided in an embodiment of the present application. Figure 4 It can be seen that the control message includes: destination MAC (Media Access Control, physical address), source MAC, VLAN (Virtual Local Area Network) of the sending port (4 bytes), this protocol number 0x3737, reserved TC (Traffic Class, traffic category) number (1 byte), reserved TC bandwidth (3 bytes) and reserved (4 bytes). Each node in the network is configured with a unique MAC address representing itself. Figure 4The destination MAC in is the MAC of the adjacent node, and the adjacent node includes the upper node and the lower node, and the source MAC is the MAC of this node. That is, the first reserved message in the present application includes the reserved TC number, so the present application can determine the bandwidth reserved by the first reserved message according to the reserved TC number, and specifically what type of data is used to transmit. For each TC number, the corresponding reserved bandwidth can be set through the reserved message. Therefore, when recording the target reserved value, the present application first needs to determine the reserved TC number in the first reserved message, and then record the first reserved bandwidth value as the target reserved value of the reserved TC number.

[0095] In some embodiments of the present application, in the step of determining whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value, the following steps may be performed: obtaining the remaining bandwidth value of the current node, determining the available bandwidth value using the remaining bandwidth value, and determining whether the available bandwidth value is greater than the first reserved bandwidth value; if so, determining that the remaining bandwidth value satisfies the first reserved bandwidth value; if not, determining that the remaining bandwidth value does not satisfy the first reserved bandwidth value.

[0096] In the present application, in order to prevent the bandwidth resources of the current node from being fully allocated, resulting in other data not being allocated bandwidth resources, the remaining bandwidth value can be used to determine the available bandwidth value. The method for determining the available bandwidth value is not specifically limited here. The difference between the remaining bandwidth value and the spare bandwidth value can be calculated to determine the available bandwidth value, or the product of the remaining bandwidth value and the available coefficient can be calculated to determine the available bandwidth value. The spare bandwidth value and the available coefficient are both pre-set fixed values ​​and can be adjusted according to actual conditions. If the available bandwidth value is greater than the first reserved bandwidth value, it is determined that the remaining bandwidth value meets the first reserved bandwidth value, otherwise it is determined that the remaining bandwidth value does not meet the first reserved bandwidth value; accordingly, in this case, when the present application determines the second reserved bandwidth value according to the remaining bandwidth value, it can also determine the available bandwidth value by the remaining bandwidth value, and directly use the available bandwidth value as the second reserved bandwidth value, thereby reserving spare resources.

[0097] Furthermore, before the present application performs the step of determining the available bandwidth value by using the remaining bandwidth value and determining whether the available bandwidth value is greater than the first reserved bandwidth value, it can be determined whether the reserved TC number in the first reserved message is the TC number of the important data. If not, this step is continued to be performed. If so, S203 is performed. Correspondingly, if the reserved TC is the TC number of the important data and the remaining bandwidth value is not greater than the first reserved bandwidth value, S204 is performed. In this way, more bandwidth resources can be reserved for important types of data.

[0098] In summary, the present application can determine whether the remaining bandwidth value satisfies the first reserved bandwidth value by comparing the remaining bandwidth value with the first reserved bandwidth value. Accordingly, when the remaining bandwidth value does not meet the first reserved bandwidth value, the remaining bandwidth value can be directly used as the second reserved bandwidth value. This method can reserve more bandwidth resources for data transmission. The present application can also determine whether the available bandwidth value satisfies the first reserved bandwidth value by comparing the available bandwidth value with the first reserved bandwidth value. Accordingly, when the remaining bandwidth value does not meet the first reserved bandwidth value, the available bandwidth value can be directly used as the second reserved bandwidth value. This method can reserve spare resources to avoid other types of data having no bandwidth resources for reservation. The present application can also determine the data type of bandwidth reservation by the reserved TC number in the reserved message, thereby realizing bandwidth reservation for different types of data.

[0099] In another embodiment provided by the present application, after determining the second reserved bandwidth value according to the remaining bandwidth value, it also includes: judging whether the second reserved bandwidth value is less than a predetermined threshold; if so, determining a replacement node corresponding to the current node, and forwarding the first reservation message to the replacement node, so that the replacement node reserves bandwidth according to the first reservation message.

[0100] In the present application, if the remaining bandwidth value of the current node does not meet the first reserved bandwidth value, it means that the current node does not have sufficient bandwidth resources for reservation. At this time, the current node will determine the second reserved bandwidth value according to the remaining bandwidth value. However, if the readjusted second reserved bandwidth value is too small, it will affect the data transmission rate. When the second reserved bandwidth value is zero, it will directly lead to bandwidth reservation failure. Therefore, in the present application, after determining the second reserved bandwidth value according to the remaining bandwidth value, it can also be determined whether the second reserved bandwidth value is less than a predetermined threshold value. The predetermined threshold value can be customized according to actual needs and is not specifically limited here. If the second reserved bandwidth value is less than the predetermined threshold value, it means that the current node does not have sufficient bandwidth resources for reservation. At this time, the replacement node corresponding to the current node can be determined, and the first reserved message can be forwarded to the replacement node so that the replacement node can reserve bandwidth according to the first reserved message; if the second reserved bandwidth value is not less than the predetermined threshold value, then the subsequent steps of recording the second reserved bandwidth value as the target reserved value can be continued.

[0101] Among them, the replacement node in the present application is a node that replaces the current node to transmit data. The replacement node can be selected according to the actual situation. For example, a node that meets the distance requirements can be directly selected as the replacement node, or a pre-set replacement node can be selected, or a node can be automatically selected based on the remaining bandwidth of nearby nodes, or a replacement node can be selected based on any of the above selection conditions, such as: selecting a node with the largest remaining bandwidth value among the nodes that meet the distance requirements as the replacement node.

[0102] From the above, it can be seen that when the present application performs bandwidth reservation, if the second reserved bandwidth value adjusted according to the remaining bandwidth value is less than the predetermined threshold, in order to improve the bandwidth reservation value and the success rate, a replacement node can be selected and the first reservation message can be forwarded to the replacement node so that the replacement node can reserve bandwidth according to the first reservation message.

[0103] See also Figure 5 , Figure 5 A schematic flow chart of a bandwidth reservation method based on the QAV protocol provided in an embodiment of the present application, the method comprising:

[0104] S301, obtaining a first reservation message; the first reservation message includes a first reserved bandwidth value;

[0105] S302: Determine whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value;

[0106] If yes, execute S303; if no, execute S304;

[0107] S303, recording the first reserved bandwidth value as the target reserved value, and sending the first reservation message to the first target node, so that the first target node continues to reserve bandwidth according to the first reservation message, and continues to execute S306;

[0108] S304: Determine a second reserved bandwidth value according to the remaining bandwidth value, and record the second reserved bandwidth value as a target reserved value;

[0109] S305, generating a second reservation message according to the second reserved bandwidth value, sending the second reservation message to the second target node, so that the second target node reserves bandwidth according to the second reservation message, and continuing to execute S306;

[0110] S306, determining whether a fourth reserved message sent by other nodes is received within a predetermined time period; the fourth reserved message includes a fourth reserved bandwidth value;

[0111] If not, execute S307; if yes, execute S308;

[0112] S307, configuring bandwidth according to the target reserved value;

[0113] S308: If yes, select the fourth reserved bandwidth value with the smallest value to update the target reserved value; and continue to execute S306.

[0114] In the present application, after the current node sends the reservation message to the corresponding target node, if the target node needs to adjust the reserved bandwidth value in the reservation message, the target node will also send a message to the current node to adjust the reserved value. The present application refers to the message as the fourth reservation message, and the fourth reservation message includes the fourth reserved bandwidth value; and, after the current node sends the reservation message to the corresponding target node, it can also start the timer, set the timing duration to a predetermined duration, and receive the fourth reservation message sent by other nodes within the predetermined duration. The number of the fourth reservation messages can be one or more, so the number of the fourth reserved bandwidth values ​​can also be one or more. Since the current node has recorded the target reserved value according to the first reserved bandwidth value, or recorded the target reserved value according to the second reserved bandwidth value, after receiving each fourth reservation message, the present application needs to select the fourth reserved bandwidth value with the smallest value to update the target reserved value, and continue to execute S306.

[0115] See also Figure 6 , Figure 6 A flow chart for changing the QAV reserved bandwidth of a node is provided in an embodiment of the present application. If the current node needs to change the reserved bandwidth of a TC, the reserved bandwidth value of the TC is written into the "reserved TC bandwidth" field of the message, and the message is sent to the lower-level node, and a 2-second timer is started. If a lower reserved bandwidth value for the TC is received within 2 seconds, this bandwidth reservation value is recorded and the waiting continues; if the timer times out and no lower reserved bandwidth value is received, the hardware is configured according to the currently recorded reserved bandwidth value.

[0116] See also Figure 7 , Figure 7 Another flowchart for changing the QAV reserved bandwidth of a node provided in an embodiment of the present application, if the current node receives a reservation message sent by a previous node, it is necessary to determine whether the local downstream port meets the configuration requirements, that is: determine whether the remaining bandwidth value meets the reserved bandwidth value of the reservation message; if the requirements of the upper node are met, the reserved bandwidth value is recorded, and the reservation message is forwarded to the lower node port, and a 2-second timer is started at the same time; if the requirements cannot be met, the maximum value that can be reserved is calculated, and the calculated maximum value that can be reserved is sent to the upper node port and the lower node port through the reservation message, and a 2-second timer is started. If a lower reserved bandwidth value for TC is received within 2 seconds, this bandwidth reservation value is recorded and continues to wait; if the timer times out and no lower reserved bandwidth value is received, the hardware is configured according to the currently recorded reserved bandwidth value; wherein, the maximum value that can be reserved is the adjusted reserved bandwidth value, which can be 0, indicating that the reservation failed.

[0117] In summary, it can be seen that when the present scheme performs bandwidth reservation, if the remaining bandwidth value of the current node satisfies the first reserved bandwidth value of the first reservation message, the first reserved bandwidth value is recorded, and the first reservation message is sent to the first target node, so as to reserve the bandwidth of the first target node; otherwise, the reserved bandwidth is adjusted according to the remaining bandwidth value, and a second reservation message is generated according to the adjusted second reserved bandwidth value and sent to the second target node, and the second target node reserves bandwidth through the adjusted reserved bandwidth; and, after the present scheme receives the fourth reserved bandwidth value changed sent by other nodes, the fourth reserved bandwidth value with the smallest value can be selected to update the target reserved value. In this way, the reserved bandwidth value can be flexibly adjusted, thereby improving the success rate of bandwidth reservation.

[0118] See also Figure 8 , Figure 8 A schematic diagram of the structure of a bandwidth reservation device based on the QAV protocol provided in an embodiment of the present application, the device specifically includes:

[0119] The acquisition module 21 is used to acquire a first reservation message; the first reservation message includes a first reserved bandwidth value;

[0120] A first judgment module 22, used to judge whether the remaining bandwidth value of the current node meets the first reserved bandwidth value;

[0121] A first recording module 23, configured to record the first reserved bandwidth value as a target reserved value when the remaining bandwidth value of the current node satisfies the first reserved bandwidth value;

[0122] A first sending module 24, configured to send the first reservation message to a first target node, so that the first target node continues to reserve bandwidth according to the first reservation message;

[0123] A first determining module 25, configured to determine a second reserved bandwidth value according to the remaining bandwidth value when the remaining bandwidth value of the current node does not satisfy the first reserved bandwidth value;

[0124] A second recording module 26, configured to record the second reserved bandwidth value as a target reserved value;

[0125] A generating module 27, configured to generate a second reservation message according to the second reserved bandwidth value;

[0126] The second sending module 28 is configured to send the second reservation message to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

[0127] As an optional embodiment, the first recording module includes:

[0128] A first determining unit, configured to determine a reserved TC number in the first reservation message;

[0129] The recording unit is configured to record the first reserved bandwidth value as the target reserved value of the reserved TC number.

[0130] As an optional embodiment, if the current node is an originating node, the acquisition module includes:

[0131] An instruction receiving unit, configured to receive a bandwidth reservation trigger instruction; wherein the bandwidth reservation trigger instruction carries a first reserved bandwidth value;

[0132] A message generating unit is configured to generate a first reservation message according to the first reserved bandwidth value.

[0133] As an optional embodiment, if the current node is an originating node, the second target node is a lower-level node; if the current node is a passing node, the second target node is an upper-level node and a lower-level node.

[0134] As an optional embodiment, the bandwidth reservation device further includes:

[0135] A second judging module, configured to judge whether the second reserved bandwidth value is less than a predetermined threshold;

[0136] A second determination module, configured to determine a replacement node corresponding to the current node when the second reserved bandwidth value is less than a predetermined threshold;

[0137] The third sending module is used to forward the first reservation message to the replacement node, so that the replacement node reserves bandwidth according to the first reservation message.

[0138] As an optional embodiment, the first judgment module includes:

[0139] A first acquisition unit, used to acquire a remaining bandwidth value of a current node;

[0140] The first judging unit is configured to judge whether the remaining bandwidth value is greater than the first reserved bandwidth value; if so, judge that the remaining bandwidth value satisfies the first reserved bandwidth value; if not, judge that the remaining bandwidth value does not satisfy the first reserved bandwidth value.

[0141] As an optional embodiment, the first determining module is specifically configured to: use the remaining bandwidth value as the second reserved bandwidth value.

[0142] As an optional embodiment, the first judgment module includes:

[0143] A second acquisition unit is used to acquire the remaining bandwidth value of the current node;

[0144] A second determining unit, configured to determine an available bandwidth value using the remaining bandwidth value;

[0145] The second judgment unit is used to judge whether the available bandwidth value is greater than the first reserved bandwidth value; if so, judge that the remaining bandwidth value meets the first reserved bandwidth value; if not, judge that the remaining bandwidth value does not meet the first reserved bandwidth value.

[0146] As an optional embodiment, the bandwidth reservation device further includes:

[0147] A third judgment module is used to judge whether a fourth reservation message sent by other nodes is received within a predetermined time after the first reservation message is sent to the first target node, or after the second reservation message is sent to the second target node; the fourth reservation message includes a fourth reserved bandwidth value;

[0148] A configuration module, configured to perform bandwidth configuration according to the target reservation value when receiving a fourth reservation message sent by other nodes;

[0149] The updating module is used to select the fourth reserved bandwidth value with the smallest value to update the target reserved value when no fourth reservation message is received from other nodes, and trigger the third judgment module to continue to judge whether the fourth reservation message is received from other nodes within a predetermined time period.

[0150] As an optional embodiment, the bandwidth reservation device further includes:

[0151] The fourth sending module is used for selecting the fourth reserved bandwidth value with the smallest value to update the target reserved value, and then, if the current node has an upper-level node, sending the fourth reservation message to the upper-level node, so that the upper-level node reserves bandwidth according to the fourth reservation message.

[0152] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0153] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device specifically includes:

[0154] The processor 31, the memory 32 and a computer program stored in the memory 32 and executable on the processor 31. The processor 31 executes the steps of the bandwidth reservation method described in any of the above method embodiments through the computer program.

[0155] Among them, the processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 31 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 31 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 31 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0156] The memory 32 may include one or more computer-readable storage media, which may be non-transitory. The memory 32 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 32 is at least used to store the following computer program 321, wherein, after the computer program is loaded and executed by the processor 31, it can implement the relevant steps in the bandwidth reservation method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 32 may also include an operating system 322 and data 323, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 322 may include Windows, Unix, Linux, etc.

[0157] In some embodiments, the electronic device may further include a display screen 33 , an input / output interface 34 , a communication interface 35 , a sensor 36 , a power source 37 , and a communication bus 38 .

[0158] certainly, Fig. 9 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiments of the present application. In actual applications, the electronic device may include Fig. 9 More or fewer components than shown, or combinations of certain components.

[0159] In another exemplary embodiment, a computer storage medium is also provided, and when the program instructions are executed by a processor, the steps of the bandwidth reservation method described in any of the above method embodiments are implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0160] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0161] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0162] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A bandwidth reservation method based on the QAV protocol, characterized in that: include: Obtaining a first reserved message; The first reservation message includes a first reserved bandwidth value; Determine whether the remaining bandwidth value of the current node meets the first reserved bandwidth value; If yes, recording the first reserved bandwidth value as the target reserved value, and sending the first reservation message to the first target node, so that the first target node continues to reserve bandwidth according to the first reservation message; If not, determining a second reserved bandwidth value according to the remaining bandwidth value, and recording the second reserved bandwidth value as the target reserved value; A second reservation message is generated according to the second reserved bandwidth value, and the second reservation message is sent to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

2. The bandwidth reservation method according to claim 1, characterized in that: The step of recording the first reserved bandwidth value as a target reserved value includes: Determine the reserved TC number in the first reservation message; The first reserved bandwidth value is recorded as the target reserved value of the reserved TC number.

3. The bandwidth reservation method according to claim 1, characterized in that: If the current node is the originating node, the obtaining of the first reserved message includes: Receive a bandwidth reservation trigger instruction; wherein the bandwidth reservation trigger instruction carries a first reserved bandwidth value; A first reservation message is generated according to the first reserved bandwidth value.

4. The bandwidth reservation method according to claim 1, characterized in that: If the first target node is a final destination node, after sending the first reservation message to the first target node, the method further includes: The final node determines whether the remaining bandwidth value of the current node satisfies the first reserved bandwidth value; if so, records the first reserved bandwidth value as the target reserved value; If not, determine a third reserved bandwidth value according to the remaining bandwidth value of the current node, and record the third reserved bandwidth value as the target reserved value; generate a third reservation message according to the third reserved bandwidth value, and send the third reservation message to the upper-level node, so that the upper-level node reserves bandwidth according to the third reservation message.

5. The bandwidth reservation method according to claim 1, characterized in that: If the current node is the originating node, the second target node is the lower node; if the current node is the passing node, the second target node is the upper node and the lower node.

6. The bandwidth reservation method according to claim 1, characterized in that: After determining the second reserved bandwidth value according to the remaining bandwidth value, the method further includes: Determining whether the second reserved bandwidth value is less than a predetermined threshold; If so, a replacement node corresponding to the current node is determined, and the first reservation message is forwarded to the replacement node, so that the replacement node reserves bandwidth according to the first reservation message.

7. The bandwidth reservation method according to any one of claims 1 to 6, characterized in that: After sending the first reservation message to the first target node, or after sending the second reservation message to the second target node, the method further includes: Determine whether a fourth reserved message sent by other nodes is received within a predetermined time period; the fourth reserved message includes a fourth reserved bandwidth value; If not, bandwidth configuration is performed according to the target reserved value; if yes, the fourth reserved bandwidth value with the smallest value is selected to update the target reserved value; and the step of determining whether a fourth reserved message sent by other nodes is received within a predetermined time period is continued.

8. The bandwidth reservation method according to claim 7, characterized in that: After selecting the fourth reserved bandwidth value with the smallest value to update the target reserved value, the method further includes: If the current node has an upper-level node, the fourth reservation message is sent to the upper-level node, so that the upper-level node reserves bandwidth according to the fourth reservation message.

9. A bandwidth reservation device based on the QAV protocol, characterized in that: include: An acquisition module, used for acquiring a first reserved message; The first reservation message includes a first reserved bandwidth value; A first judgment module, used to judge whether the remaining bandwidth value of the current node meets the first reserved bandwidth value; A first recording module, configured to record the first reserved bandwidth value as a target reserved value when the remaining bandwidth value of the current node satisfies the first reserved bandwidth value; A first sending module, configured to send the first reservation message to a first target node, so that the first target node continues to reserve bandwidth according to the first reservation message; a first determining module, configured to determine a second reserved bandwidth value according to the remaining bandwidth value when the remaining bandwidth value of the current node does not satisfy the first reserved bandwidth value; A second recording module, configured to record the second reserved bandwidth value as a target reserved value; A generating module, configured to generate a second reserved message according to the second reserved bandwidth value; The second sending module is used to send the second reservation message to the second target node, so that the second target node reserves bandwidth according to the second reservation message.

10. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the bandwidth reservation method described in any one of claims 1 to 8 of the present application through the computer program.

11. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the steps of the bandwidth reservation method described in any one of claims 1 to 8 of the present application.