Bandwidth reservation method, system and network device for avb streams
By monitoring changes in AVB stream traffic and dynamically adjusting reserved bandwidth, the problem of resource waste caused by fixed bandwidth in existing technologies is solved, achieving efficient utilization and QoS guarantee.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-08
- Publication Date
- 2026-07-07
AI Technical Summary
In the existing AVB protocol, the bandwidth reservation for audio and video streams is fixed, which leads to resource waste when traffic is below peak and the streams cannot be used by other service streams, resulting in low network resource utilization.
By monitoring the traffic changes of AVB streams over N consecutive statistical windows, the reserved bandwidth is dynamically adjusted. The target bandwidth is dynamically adjusted by utilizing the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW.
It improves bandwidth utilization, ensures minimum transmission capacity of AVB streams, avoids transmission interruptions, and guarantees strict quality of service (QoS) through dynamic adjustments.
Smart Images

Figure CN122348930A_ABST
Abstract
Description
Technical Field
[0001] This application relates to network communication technology, and in particular to bandwidth reservation methods, systems and network devices for Ethernet audio video bridging (AVB) streams. Background Technology
[0002] In the existing AVB protocol standard, bandwidth is usually reserved statically for service streams such as audio streams and / or video streams according to the peak bandwidth. Once the reservation is successful, the reserved bandwidth remains unchanged until the service stream, such as audio stream and / or video stream, is deleted.
[0003] However, actual service flows such as audio and / or video streams often have significant fluctuations (e.g., still images, silent segments, or variable bitrate encoding). Once the actual traffic is far below the peak traffic allowed by the peak bandwidth, it means that the bandwidth reserved for that service flow is underutilized, the reserved bandwidth is idle, and cannot be used by other service flows, resulting in a serious waste of network resources. Summary of the Invention
[0004] This application provides a method, system, and network device for reserving bandwidth for AVB streams, so as to dynamically adjust the reserved bandwidth of AVB streams.
[0005] This embodiment provides a bandwidth reservation method for Ethernet audio / video bridging AVB streams. This method is applied to the AVB stream sending end and includes: Monitor the traffic changes of the first AVB stream within the statistical window. If the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, then determine the target bandwidth based on the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed for the first AVB stream. A bandwidth update signaling message is sent to each AVB switching device through which the first AVB stream passes. The bandwidth update signaling message carries the target bandwidth, so that each AVB switching device adjusts the current reserved bandwidth that has been reserved for the first AVB stream to the target bandwidth according to the target bandwidth.
[0006] A bandwidth reservation system for Ethernet audio and video bridging AVB streams, the system comprising: an AVB stream transmitter, an AVB stream receiver, and an AVB switching device through which the AVB stream transmitter passes to the AVB stream receiver; The AVB stream sender monitors the traffic changes of the first AVB stream within each statistical window. If the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, then the target bandwidth is determined based on the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed for the first AVB stream. A bandwidth update signaling is sent to each AVB switching device through which the first AVB stream passes. The bandwidth update signaling carries the target bandwidth, so that each AVB switching device adjusts the current reserved bandwidth already reserved for the first AVB stream to the target bandwidth according to the target bandwidth. Upon receiving the bandwidth update signaling, any AVB switching device, if it finds that the currently reserved bandwidth already reserved for the first AVB stream is less than the target bandwidth, then checks whether its local idle bandwidth is greater than the difference between the target bandwidth and the currently reserved bandwidth. If so, it continues to forward the bandwidth update signaling to the AVB stream receiving end.
[0007] A network device, the network device comprising: a processor and a machine-readable storage medium; The machine-readable storage medium stores computer instructions, which, when executed by the processor, perform the steps in the method described above.
[0008] As can be seen from the above technical solution, this embodiment monitors the traffic changes of the first AVB stream within a statistical window by the AVB stream sender. When the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, the current reserved bandwidth reserved for the first AVB stream by each AVB switching device through which the first AVB stream passes is dynamically adjusted by means of the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed by the first AVB stream. This achieves dynamic adjustment of the reserved bandwidth of the AVB stream and improves the utilization rate of the reserved bandwidth of the AVB stream.
[0009] Furthermore, this embodiment introduces the minimum reserved bandwidth (MinBW) and maximum reserved bandwidth (MaxBW) allowed for the first AVB flow when the traffic changes of the first AVB flow meet the reserved bandwidth adjustment requirements within N consecutive statistical windows. This adjusts the current reserved bandwidth (BaseBW) already reserved for the first AVB flow by each AVB switching device. This ensures that the first AVB flow can obtain the minimum transmission capacity at any time, avoiding transmission interruptions caused by excessive scaling down. It also prevents the first AVB flow from preempting bandwidth without restriction, avoiding affecting the bandwidth required by other high-priority flows in the network. While dynamically adjusting, it ensures strict quality of service (QoS). Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0011] Figure 1 A flowchart illustrating the method provided in this application embodiment; Figure 2 Network diagram for application examples provided in this application embodiment; Figure 3 This is a schematic diagram of frame preemption provided in an embodiment of this application; Figure 4 The system structure diagram provided for the embodiments of this application; Figure 5 The device structure diagram provided in the embodiments of this application; Figure 6 This is a hardware structure diagram provided for an embodiment of this application. Detailed Implementation
[0012] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0013] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0014] In vehicular network architectures or industrial audio / video transmission network architectures, there exists an AVB stream sender (Talker, such as a camera or microphone array), an AVB stream receiver (Listener), and an AVB switching device (bridge) through which the AVB stream travels from the sender to the receiver. In this network architecture (also known as a standard AVB network), all nodes (including the Talker, AVB switching device, etc.) synchronize their clocks using gPTP.
[0015] Based on the standard AVB protocol supported by the aforementioned network architecture, this embodiment adds real-time traffic awareness, dynamic bandwidth calculation, fast signaling interaction, dynamic scheduling, and fast bandwidth reclamation functions to the Talker to automatically adjust the reserved bandwidth of the AVB stream according to the real-time traffic of the AVB stream. An example is described below: See Figure 1 , Figure 1This is a flowchart illustrating a method provided in an embodiment of this application. The method is applied to a Talker. Figure 1 As shown, the method may include the following steps: Step 101: Monitor the traffic changes of the first AVB stream within the statistical window. If the traffic changes of the first AVB stream within N consecutive statistical windows all meet the reserved bandwidth adjustment requirements, then determine the target bandwidth based on the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed for the first AVB stream.
[0016] Here, the first AVB stream is any AVB stream emitted by the Talker.
[0017] In this embodiment, all devices within the AVB network can achieve high-precision clock synchronization, such as at the 125μs level, ensuring that the statistical window, scheduling sequence, and bandwidth adjustment command execution time of all devices remain consistent. Optionally, the statistical window here may be, for example, 0.125ms (i.e., 125μs), but this embodiment is not specifically limited to this.
[0018] For example, for the first AVB stream, Talker calculates the real-time or average rate by tracking the number of bytes sent / received and the number of frames received within each statistical window. As an example, if the real-time traffic over N consecutive statistical windows (e.g., 8 statistical windows) exceeds a preset upper limit of the current reserved bandwidth (e.g., 120%) and is less than the maximum allowed reserved bandwidth MaxBW for the first AVB stream, it is considered a traffic surge (i.e., the traffic changes of the first AVB stream within the N consecutive statistical windows meet the reserved bandwidth adjustment requirements). In this case, capacity expansion is triggered, and a new reserved bandwidth (e.g., target bandwidth) is determined for the first AVB stream. The final target bandwidth is greater than the current reserved bandwidth and less than or equal to the aforementioned maximum reserved bandwidth MaxBW. As an example, this embodiment can determine the target bandwidth based on the actual traffic of the first AVB stream within the N consecutive statistical windows, for example, by using the smaller value between the peak traffic within the N consecutive statistical windows and the aforementioned maximum reserved bandwidth MaxBW as the target bandwidth. For example: The maximum reserved bandwidth MaxBW is 200M and the minimum reserved bandwidth MinBW is 100M. If the peak traffic in N consecutive statistical windows is 130M and remains at least one statistical window, then the target bandwidth can be determined to be 130M.
[0019] As another embodiment, when the real-time traffic over N consecutive statistical windows (e.g., 8 statistical windows) is less than the preset lower limit of the current reserved bandwidth (e.g., 50%), it is determined that the traffic is idle (i.e., the traffic changes of the first AVB stream within the N consecutive statistical windows meet the reserved bandwidth adjustment requirements), and scaling down is triggered. The latest reserved bandwidth (e.g., target bandwidth) is re-determined for the first AVB stream. Here, the final determined target bandwidth is less than the current reserved bandwidth. As an embodiment, this embodiment can determine the target bandwidth based on the actual traffic of the first AVB stream within the N consecutive statistical windows. For example, the maximum traffic within the N consecutive statistical windows can be used as the target bandwidth, or the larger of the average traffic within the N consecutive statistical windows and the aforementioned minimum reserved bandwidth MinBW can be used as the target bandwidth. For example: the maximum reserved bandwidth MaxBW is 200M, the minimum reserved bandwidth MinBW is 80M, and if the peak traffic within the N consecutive statistical windows is 100M and remains at least one statistical window, then the target bandwidth can be determined to be 100M.
[0020] It should be noted that the reason why this embodiment uses the flow judgment of N consecutive statistical windows is to avoid frequent adjustments caused by instantaneous flow fluctuations and improve stability.
[0021] Step 102: Send a bandwidth update signaling message to each AVB switching device through which the first AVB stream passes. The bandwidth update signaling message carries the target bandwidth so that each AVB switching device adjusts the current reserved bandwidth that has been reserved for the first AVB stream to the target bandwidth according to the target bandwidth.
[0022] In this embodiment, the AVB switching devices through which the first AVB stream passes are the AVB switching devices from the AVB stream sending end of the first AVB stream to the AVB stream receiving end of the first AVB stream.
[0023] In this embodiment, the bandwidth update signaling is an extended signaling based on the AVB Stream Reservation Protocol (SRP). This bandwidth update signaling includes a Type-Length-Value (TLV) structure. The Type field in the TLV structure identifies the vendor-defined type, and the Value field carries the target bandwidth. The bandwidth update signaling also carries the Stream ID of the first AVB stream (so that each AVB switching device knows which AVB stream's reserved bandwidth to update) and the current gPTP timestamp. The purpose of carrying the current gPTP timestamp is to prevent the bandwidth update signaling from being overwritten by older signaling in some scenarios, thus highlighting the timeliness of the bandwidth update signaling through the current gPTP timestamp.
[0024] This concludes the process. Figure 1 The process is shown below.
[0025] pass Figure 1As shown in the flowchart, this embodiment monitors the traffic changes of the first AVB stream within a statistical window by the AVB stream sender. When the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, the current reserved bandwidth reserved for the first AVB stream by each AVB switching device through which the first AVB stream passes is dynamically adjusted by using the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed by the first AVB stream. This achieves dynamic adjustment of the reserved bandwidth of the AVB stream and improves the utilization rate of the reserved bandwidth of the AVB stream.
[0026] Furthermore, this embodiment introduces the minimum reserved bandwidth (MinBW) and maximum reserved bandwidth (MaxBW) allowed for the first AVB flow when the traffic changes of the first AVB flow meet the reserved bandwidth adjustment requirements within N consecutive statistical windows. This adjusts the current reserved bandwidth (BaseBW) already reserved for the first AVB flow by each AVB switching device. This ensures that the first AVB flow can obtain the minimum transmission capacity at any time, avoiding transmission interruptions caused by excessive scaling down. It also prevents the first AVB flow from preempting bandwidth without restriction, avoiding affecting the bandwidth required by other high-priority flows in the network. While dynamically adjusting, it ensures strict quality of service (QoS).
[0027] The following is a specific embodiment. Figure 1 The process is described as follows: First, for any AVB stream (this embodiment still uses the first AVB stream as an example), a three-level bandwidth model is introduced: minimum reserved bandwidth MinBW – current reserved bandwidth BaseBW – maximum reserved bandwidth MaxBW. Under normal conditions, the first AVB stream is transmitted according to BaseBW, and the traffic of the first AVB stream generally fluctuates elastically between MinBW and MaxBW. When the network is congested, the BaseBW of the first AVB stream automatically falls back to MinBW or the previous BaseBW to ensure the basic transmission of the first AVB stream. When traffic is idle, the BaseBW of the first AVB stream is quickly reduced and idle resources are released for reuse by other AVB streams, realizing a three-layer control of minimum, adaptive, and peak bandwidth. The following is a description of the embodiment: See Figure 2 , Figure 2 This is an application illustration provided for an embodiment of this application. For example... Figure 2As shown, the first step is to perform stream registration initialization: the Talker sends a stream registration request (Talker Advertise message) for the first AVB stream to the Listener. The stream registration request carries the minimum reserved bandwidth (MinBW) and maximum reserved bandwidth (MaxBW) allowed for the first AVB stream, unlike traditional stream registration requests which only carry a fixed reserved bandwidth. The stream registration request also carries the stream ID of the first AVB stream. In this embodiment, MinBW is the minimum bandwidth requested by the Talker when registering the first AVB stream, ensuring that the AVB switching device receiving the stream registration request for the first AVB stream reserves a minimum of MinBW for the first AVB stream, guaranteeing the basic transmission quality of the first AVB stream and serving as the bottom line for deterministic transmission. MaxBW is the maximum bandwidth requested by the Talker when registering the first AVB stream, serving as the adjustment boundary for subsequent adjustments to the reserved bandwidth for the first AVB stream, preventing the link's carrying capacity from being exceeded during traffic bursts. This bandwidth is not additionally reserved and is only used for traffic rate limiting.
[0028] AVB switch 201 first receives a stream registration request and checks the remaining free bandwidth (denoted as BW201) of the local output port (Port1_2) that sends the first AVB stream. If the remaining free bandwidth is greater than the aforementioned MinBW, then MinBW is reserved from the remaining free bandwidth of Port1_2 for the stream ID of the first AVB stream carried in the registration request. At this time, the remaining free bandwidth of Port1_2 is the difference between BW201 and MinBW. AVB switch 201 continues to send the stream registration request for the first AVB stream to the Listener. Of course, if AVB switch 201 finds that the remaining free bandwidth of Port1_2 is less than the aforementioned MinBW, it considers the reservation to have failed and returns a reservation failure signaling to the Talker. At this time, the reservation of the first AVB stream can be terminated.
[0029] When AVB switch 202 receives a stream registration request, it checks the remaining free bandwidth (denoted as BW202) of the output port (Port2_3) that sends the first AVB stream locally. If the remaining free bandwidth is greater than the aforementioned MinBW, it first reserves MinBW from the remaining free bandwidth of Port2_3 for the stream ID of the first AVB stream carried in the registration request. At this time, the remaining free bandwidth of Port2_3 is the difference between BW202 and MinBW. AVB switch 202 continues to send the stream registration request for the first AVB stream to the Listener. Of course, if AVB switch 202 finds that the remaining free bandwidth of Port2_3 is less than the aforementioned MinBW, it considers the reservation to have failed and returns a reservation failure signaling to the Talker, at which point the reservation of the first AVB stream can be terminated.
[0030] The processing methods for AVB switch 203 to AVB switch N are similar to those for AVB switch 201 and AVB switch 202 described above.
[0031] When the Listener receives the stream registration request for the first AVB stream, it will reply with a Ready message to the Talker, thus completing the stream registration for the first AVB stream.
[0032] After the first AVB stream is registered, initially, AVB switches 201 to N transmit the first AVB stream according to the currently reserved bandwidth. Subsequent changes may occur, as detailed below.
[0033] During the transmission of the first AVB stream, Talker will calculate the real-time rate or average rate by statistically analyzing the number of bytes sent / received and the number of frames within each statistical window. As an example, if the real-time traffic for N consecutive statistical windows (e.g., 8 statistical windows) exceeds a preset upper limit of the current reserved bandwidth (e.g., 120%) and is less than the maximum allowed reserved bandwidth MaxBW for the first AVB stream, it is determined to be a traffic surge (i.e., the traffic changes of the first AVB stream within the N consecutive statistical windows meet the reserved bandwidth adjustment requirements). At this point, capacity expansion will be triggered, and a new reserved bandwidth (e.g., target bandwidth) will be determined for the first AVB stream. The final target bandwidth is greater than the current reserved bandwidth and less than or equal to the aforementioned maximum reserved bandwidth MaxBW. As an example, this embodiment can determine the target bandwidth based on the actual traffic of the first AVB stream within the N consecutive statistical windows, for example, by using the smaller value between the peak traffic within the N consecutive statistical windows and the aforementioned maximum reserved bandwidth MaxBW as the target bandwidth. For example: The maximum reserved bandwidth MaxBW is 200M and the minimum reserved bandwidth MinBW is 100M. If the peak traffic in N consecutive statistical windows is 130M and remains at least one statistical window, then the target bandwidth can be determined to be 130M.
[0034] As another embodiment, when the real-time traffic over N consecutive statistical windows (e.g., 8 statistical windows) is less than the preset lower limit of the current reserved bandwidth (e.g., 50%), it is determined that the traffic is idle (i.e., the traffic changes of the first AVB stream within the N consecutive statistical windows meet the reserved bandwidth adjustment requirements), and scaling down is triggered. The latest reserved bandwidth (e.g., target bandwidth) is re-determined for the first AVB stream. Here, the final determined target bandwidth is less than the current reserved bandwidth. As an embodiment, this embodiment can determine the target bandwidth based on the actual traffic of the first AVB stream within the N consecutive statistical windows. For example, the maximum traffic within the N consecutive statistical windows can be used as the target bandwidth, or the larger of the average traffic within the N consecutive statistical windows and the aforementioned minimum reserved bandwidth MinBW can be used as the target bandwidth. For example: the maximum reserved bandwidth MaxBW is 200M, the minimum reserved bandwidth MinBW is 80M, and if the peak traffic within the N consecutive statistical windows is 100M and remains at least one statistical window, then the target bandwidth can be determined to be 100M.
[0035] After determining the target bandwidth, the Talker sends a bandwidth update request message to the Listener, as described in step 102. The bandwidth update request message carries the flow ID of the first AVB flow (so that each AVB switching device knows which AVB flow's reserved bandwidth to update), the current gPTP timestamp, and the target bandwidth carried according to the TLV structure.
[0036] AVB switch 201 first receives a bandwidth update signaling message. If it finds that the currently reserved bandwidth for the first AVB stream on the local port (Port1_2) is less than the target bandwidth, it checks whether the remaining idle bandwidth of the local port (Port1_2) is greater than the difference between the target bandwidth and the currently reserved bandwidth. If so, it reserves a portion of the remaining idle bandwidth of Port1_2 to adjust the currently reserved bandwidth for the first AVB stream to the target bandwidth, and continues to forward the bandwidth update signaling message to the Listener. Of course, if the AVB switch 201 detects that the remaining idle bandwidth of the local port (Port1_2) is less than the difference between the target bandwidth and the currently reserved bandwidth, it returns a reservation failure signaling message (Nack) to the Talker and no longer forwards the bandwidth update signaling message to the Listener. If the Talker receives a reservation failure signaling, it sends a notification to the Listener. This notification is used to instruct each AVB switching device through which the first AVB stream passes to maintain the current reserved bandwidth already reserved for the first AVB stream, or to instruct each AVB switching device through which the first AVB stream passes to adjust the current reserved bandwidth already reserved for the first AVB stream to the aforementioned minimum reserved bandwidth MinBW.
[0037] After receiving the bandwidth update signaling, AVB switch 202 to AVB switch N perform operations similar to those performed by AVB switch 201, which will not be described in detail here.
[0038] In this embodiment, AVB switching devices 201 to N will monitor the bandwidth utilization of the port that sends the first AVB stream locally in real time. If the bandwidth utilization is greater than a set bandwidth utilization threshold, such as 90%, a congestion event will be sent to the Talker.
[0039] If the Talker receives a congestion event from any AVB switching device through which the first AVB stream passes, and finds, based on historical records, that the current reserved bandwidth of each AVB switching device for the first AVB stream is not the minimum reserved bandwidth MinBW, it sends a congestion adjustment signaling to the Listener.
[0040] If AVB switching device 201 receives a congestion adjustment signaling message, it will adjust the current reserved bandwidth of the port Port1_2 that sends the first AVB stream locally to the minimum reserved bandwidth MinBW mentioned above, and continue to send congestion adjustment signaling messages to the Listener.
[0041] After receiving the congestion adjustment signaling, AVB switch 202 to AVB switch N perform operations similar to those performed by AVB switch 201, which will not be described in detail here.
[0042] Furthermore, after sending congestion adjustment signaling to the Listener, the Talker will initiate a frame preemption mechanism to prioritize and send higher-priority AVB streams when multiple AVB stream queues exist. For example, ... Figure 3 As shown, the Talker has queues 0 to 7, each with a different priority for the AVB stream. Queue 7 is designated Class A, queue 6 Class B, and queue 5 Class C. Queues 0 to 4 (queues 0-4) are for ordinary BE data. The priority order is: Class A (queue 7) > Class B (queue 6) > Dynamic AV stream (queue 5) > Ordinary BE data (queues 0-4). Based on the frame preemption mechanism, high-priority streams (Class A / B > Dynamic AV stream) can interrupt the transmission of long frames from low-priority streams, prioritizing time slot transmission and significantly reducing latency and jitter for high-priority streams. Additionally, as... Figure 3 As shown, in this embodiment, Class A / B queues still use standard CBS scheduling, maintaining fixed scheduling parameters to ensure that their latency and jitter metrics strictly comply with the AVB standard and are not affected by dynamic stream adjustments. Queue 5 uses DCBS (Dynamic Credit Shaping) scheduling, dynamically adjusting the idleSlope / sendSlope parameters, suitable for dynamic AV streams (audio / video / real-time streams). Queues 0-4 use best-effort (BE) scheduling.
[0043] In this embodiment, if the Talker does not receive the first AVB stream within a set time period, such as 2 seconds, it sends a bandwidth release signal (such as a Fast Release extended SRP message) to each AVB switching device through which the first AVB stream passes. This allows each AVB switching device to reclaim the currently reserved bandwidth that has been reserved for the first AVB stream according to the bandwidth release signal. The reclaimed bandwidth is then used by other streams, enabling rapid recycling of resources.
[0044] The methods provided by the embodiments of this application have been described above. The system provided by the embodiments of this application is described below: See Figure 4 , Figure 4 This is a system architecture diagram provided for an embodiment of this application. The system includes: an AVB stream transmitter, an AVB stream receiver, and an AVB switching device through which the AVB stream transmitter passes to the AVB stream receiver.
[0045] In this embodiment, the AVB stream sender, compared to existing technologies, adds functions such as traffic measurement, reserved bandwidth adjustment requirement judgment, dynamic SRP, and DCBS scheduling. Specifically, it is responsible for real-time statistics of actual traffic, judgment of reserved bandwidth adjustment requirements, initiation of reserved bandwidth updates, and dynamic scheduling parameter configuration, and is the initiating node for dynamically adjusting reserved bandwidth. For example, the AVB stream sender monitors the traffic changes of the first AVB stream in each statistical window. If the traffic changes of the first AVB stream in N consecutive statistical windows meet the reserved bandwidth adjustment requirements, then based on the traffic of the first AVB stream in the N consecutive statistical windows, and the minimum and maximum reserved bandwidths (MinBW and MaxBW) allowed for the first AVB stream, it determines the target bandwidth; and sends bandwidth update signaling to each AVB switching device through which the first AVB stream passes. The bandwidth update signaling carries the target bandwidth, so that each AVB switching device adjusts the current reserved bandwidth already reserved for the first AVB stream to the target bandwidth according to the target bandwidth.
[0046] Compared to existing technologies, any AVB switch adds bandwidth management, flow status, congestion detection, and rapid reclamation of reserved bandwidth. It is responsible for unified management of network-wide bandwidth resources, real-time maintenance of flow status (flow ID, MinBW / BaseBW / MaxBW, path information), network congestion detection, and rapid reclamation of idle bandwidth, serving as the core control node for dynamic bandwidth adjustment. Specifically, upon receiving the bandwidth update signaling, if any AVB switch finds that the currently reserved bandwidth for the first AVB flow is less than the target bandwidth, it checks whether its local idle bandwidth is greater than the difference between the target bandwidth and the currently reserved bandwidth. If so, it continues to forward the bandwidth update signaling to the AVB flow receiver; otherwise, it returns a reservation failure signaling to the AVB flow sender.
[0047] Upon receiving a reservation failure signaling from any AVB switching device, the AVB stream receiver further sends a notification to each AVB switching device through which the first AVB stream passes. The notification is used to instruct each AVB switching device through which the first AVB stream passes to maintain the current reserved bandwidth already reserved for the first AVB stream, or the notification is used to instruct each AVB switching device through which the first AVB stream passes to adjust the current reserved bandwidth already reserved for the first AVB stream to the minimum reserved bandwidth MinBW.
[0048] In this embodiment, the AVB stream receiver is equipped with QoS monitoring and status feedback. It is responsible for real-time monitoring of transmission quality indicators such as latency, jitter, and packet loss rate of the AVB stream, and feeding back information such as network congestion and abnormal stream status to the switch, providing a basis for adjusting the reserved bandwidth.
[0049] This application also provides corresponding... Figure 1 The apparatus for the process shown. See also Figure 5 , Figure 5 This is a structural diagram of a device provided in an embodiment of this application. The device is applied to an AVB stream transmitter, such as... Figure 5 As shown, the device may include: The monitoring unit is used to monitor the traffic changes of the first AVB stream within a statistical window. If the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, the target bandwidth is determined based on the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed for the first AVB stream. The processing unit is configured to send bandwidth update signaling to each AVB switching device through which the first AVB stream passes, the bandwidth update signaling carrying the target bandwidth, so that each AVB switching device adjusts the currently reserved bandwidth already reserved for the first AVB stream to the target bandwidth according to the target bandwidth.
[0050] Optionally, the processing unit further includes: A stream registration request for the first AVB stream is sent to the AVB stream receiver of the first AVB stream. The stream registration request carries the minimum reserved bandwidth (MinBW) and the maximum reserved bandwidth (MaxBW) allowed for the first AVB stream, so that the AVB switching device that receives the stream registration request initially reserves the minimum reserved bandwidth (MinBW) for the first AVB stream.
[0051] Optionally, the traffic changes of the first AVB stream within N consecutive statistical windows all meet the reserved bandwidth adjustment requirements, including: If the actual traffic of the first AVB stream is greater than the preset upper limit ratio of the current reserved bandwidth in N consecutive statistical windows, and is less than the maximum reserved bandwidth MaxBW, then it is determined that the traffic change of the first AVB stream in N consecutive statistical windows meets the reserved bandwidth adjustment requirements. The target bandwidth is greater than the current reserved bandwidth and less than or equal to the maximum reserved bandwidth MaxBW.
[0052] Optionally, the condition that the traffic changes of the first AVB stream in N consecutive statistical windows all meet the reserved bandwidth adjustment requirements includes: if the actual traffic of the first AVB stream in N consecutive statistical windows is less than the preset lower limit ratio of the current reserved bandwidth, then it is determined that the traffic changes of the first AVB stream in N consecutive statistical windows all meet the reserved bandwidth adjustment requirements. The target bandwidth is less than the currently reserved bandwidth.
[0053] Optionally, after sending bandwidth update signaling to each AVB switching device through which the first AVB stream passes, the processing unit further includes: If a reservation failure signal is received from any AVB switch, a notification is sent to each AVB switch through which the first AVB stream passes. The notification is used to instruct each AVB switch through which the first AVB stream passes to maintain the current reserved bandwidth already reserved for the first AVB stream, or the notification is used to instruct each AVB switch through which the first AVB stream passes to adjust the current reserved bandwidth already reserved for the first AVB stream to the minimum reserved bandwidth MinBW.
[0054] Optionally, the processing unit further includes: If a congestion event is received from any AVB switch through which the first AVB stream passes, and the current reserved bandwidth reserved by each AVB switch for the first AVB stream is not the minimum reserved bandwidth MinBW, a congestion adjustment signaling message is sent to each AVB switch through which the first AVB stream passes. The congestion adjustment signaling message is used to instruct each AVB switch through which the first AVB stream passes to adjust the current reserved bandwidth reserved for the first AVB stream to the minimum reserved bandwidth MinBW.
[0055] Optionally, the processing unit sending congestion adjustment signaling to each AVB switching device through which the first AVB flow passes further includes: A frame preemption mechanism is initiated to prioritize sending high-priority AVB streams when multiple AVB stream queues exist.
[0056] Optionally, if the processing unit does not receive the first AVB stream within a set time period, it sends a bandwidth release signaling message to each AVB switching device through which the first AVB stream passes, so that each AVB switching device can reclaim the currently reserved bandwidth that has been reserved for the first AVB stream according to the bandwidth release signaling message.
[0057] correspond Figure 5 The device shown in the embodiment of this application also provides a hardware structure diagram of the device. For example... Figure 6 As shown, this hardware architecture is applied to network devices such as AVB stream transmitters, and may include: a processor and a machine-readable storage medium; The machine-readable storage medium stores computer instructions, which, when executed by the processor, perform the steps in the method described above.
[0058] Based on the same application concept as the above method, this application embodiment also provides a machine-readable storage medium storing a plurality of computer instructions, which, when executed by a processor, can implement the method disclosed in the above examples of this application.
[0059] For example, the aforementioned machine-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, messages, etc. For instance, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0060] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0061] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0062] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0063] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable message processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable message processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0064] Furthermore, these computer program instructions can also be stored in a computer-readable storage medium that can direct a computer or other programmable message processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in the process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0065] These computer program instructions can also be loaded onto a computer or other programmable message processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0066] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for bandwidth reservation in Ethernet audio / video bridging AVB streams, characterized in that, This method is applied to the AVB stream sender and includes: Monitor the traffic changes of the first AVB stream within the statistical window. If the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, then determine the target bandwidth based on the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed for the first AVB stream. A bandwidth update signaling message is sent to each AVB switching device through which the first AVB stream passes. The bandwidth update signaling message carries the target bandwidth, so that each AVB switching device adjusts the current reserved bandwidth that has been reserved for the first AVB stream to the target bandwidth according to the target bandwidth.
2. The method according to claim 1, characterized in that, The method further includes: A stream registration request for the first AVB stream is sent to the AVB stream receiver of the first AVB stream. The stream registration request carries the minimum reserved bandwidth (MinBW) and the maximum reserved bandwidth (MaxBW) allowed for the first AVB stream, so that the AVB switching device that receives the stream registration request initially reserves the minimum reserved bandwidth (MinBW) for the first AVB stream.
3. The method according to claim 1, characterized in that, The requirement that the traffic changes of the first AVB stream in N consecutive statistical windows meet the reserved bandwidth adjustment requirements means that the actual traffic of the first AVB stream in N consecutive statistical windows is greater than the preset upper limit ratio of the current reserved bandwidth and less than the maximum reserved bandwidth MaxBW. The target bandwidth is greater than the current reserved bandwidth and less than or equal to the maximum reserved bandwidth MaxBW.
4. The method according to claim 1, characterized in that, The requirement that the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements means that the actual traffic of the first AVB stream within N consecutive statistical windows is less than the preset lower limit ratio of the current reserved bandwidth. The target bandwidth is less than the currently reserved bandwidth.
5. The method according to claim 1, characterized in that, After sending bandwidth update signaling to each AVB switching device through which the first AVB stream passes, the method further includes: If a reservation failure signal is received from any AVB switch, a notification is sent to each AVB switch through which the first AVB stream passes. The notification is used to instruct each AVB switch through which the first AVB stream passes to maintain the current reserved bandwidth already reserved for the first AVB stream, or the notification is used to instruct each AVB switch through which the first AVB stream passes to adjust the current reserved bandwidth already reserved for the first AVB stream to the minimum reserved bandwidth MinBW.
6. The method according to claim 1, characterized in that, The method further includes: If a congestion event is received from any AVB switch through which the first AVB stream passes, and the current reserved bandwidth reserved by each AVB switch for the first AVB stream is not the minimum reserved bandwidth MinBW, a congestion adjustment signaling message is sent to each AVB switch through which the first AVB stream passes. The congestion adjustment signaling message is used to instruct each AVB switch through which the first AVB stream passes to adjust the current reserved bandwidth reserved for the first AVB stream to the minimum reserved bandwidth MinBW.
7. The method according to claim 6, characterized in that, Sending congestion adjustment signaling to each AVB switching device through which the first AVB flow passes further includes: A frame preemption mechanism is initiated to prioritize sending high-priority AVB streams when multiple AVB stream queues exist.
8. The method according to claim 1, characterized in that, The method further includes: If the first AVB stream is not received within a set time period, a bandwidth release signaling message is sent to each AVB switching device through which the first AVB stream passes, so that each AVB switching device can reclaim the currently reserved bandwidth that has been reserved for the first AVB stream according to the bandwidth release signaling message.
9. A bandwidth reservation system for Ethernet audio / video bridging AVB streams, characterized in that, The system includes: an AVB stream transmitter, an AVB stream receiver, and AVB switching equipment traversed from the AVB stream transmitter to the AVB stream receiver; The AVB stream sender monitors the traffic changes of the first AVB stream within each statistical window. If the traffic changes of the first AVB stream within N consecutive statistical windows meet the reserved bandwidth adjustment requirements, then the target bandwidth is determined based on the traffic of the first AVB stream within N consecutive statistical windows, as well as the minimum reserved bandwidth MinBW and the maximum reserved bandwidth MaxBW allowed for the first AVB stream. A bandwidth update signaling is sent to each AVB switching device through which the first AVB stream passes. The bandwidth update signaling carries the target bandwidth, so that each AVB switching device adjusts the current reserved bandwidth already reserved for the first AVB stream to the target bandwidth according to the target bandwidth. Upon receiving the bandwidth update signaling, any AVB switching device, if it finds that the currently reserved bandwidth already reserved for the first AVB stream is less than the target bandwidth, then checks whether its local idle bandwidth is greater than the difference between the target bandwidth and the currently reserved bandwidth. If so, it continues to forward the bandwidth update signaling to the AVB stream receiving end.
10. The system according to claim 9, characterized in that, If any AVB switching device detects that its local idle bandwidth is less than the difference between the target bandwidth and the current reserved bandwidth, it returns a reservation failure signaling to the AVB stream sender. The AVB stream receiver, upon receiving a reservation failure signaling from any AVB switching device, further sends a notification to each AVB switching device through which the first AVB stream passes. The notification is used to instruct each AVB switching device through which the first AVB stream passes to maintain the current reserved bandwidth already reserved for the first AVB stream, or the notification is used to instruct each AVB switching device through which the first AVB stream passes to adjust the current reserved bandwidth already reserved for the first AVB stream to the minimum reserved bandwidth MinBW.
11. A network device, characterized in that, Network devices include: processors and machine-readable storage media; The machine-readable storage medium stores computer instructions that, when executed by the processor, perform the steps of any one of claims 1 to 8.