Dynamic configuration method, electronic equipment, program product and storage medium
By analyzing dynamic configuration instructions and generating dynamic change strategies, the problem of unstable deterministic transmission indicators during parameter adjustment of TSN converter is solved, and the consistency and accuracy of data processing are maintained during parameter adjustment.
Patent Information
- Application Number
- CN202510466882.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2025-07-25
AI Technical Summary
During the parameter adjustment process of TSN converter, the prior art failed to effectively maintain the stability of deterministic transmission indicators, resulting in fluctuations in data flow parameters affecting the current operating status.
By analyzing dynamic configuration instructions, obtain the current running data of the TSN converter, generate a dynamic change policy, and make dynamic configuration changes to the initial configuration to ensure that the current running status is not affected when the parameters are adjusted.
It enhances the dynamic adaptability and data transmission performance of the TSN converter, maintains the accuracy and consistency of data processing, and ensures the stability of deterministic transmission indicators.
Smart Images

Figure CN120378926A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a dynamic configuration method, an electronic device, a program product, and a storage medium. Background Art
[0002] With the development of new applications such as the Internet of Things and autonomous driving, the real-time requirements of the network are becoming stronger and stronger, especially in scenarios with strict requirements for latency, such as sensor data collection in autonomous driving, vehicle motion control in driverless driving, and real-time data transmission in industrial Internet of Things.
[0003] For this reason, the TSN (Time Sensitive Networking) technology has emerged. This technology helps to achieve low-latency, high-reliability, low-jitter, and predictable network transmission to support low-latency real-time applications. The TSN technology builds a high-performance, scalable, and configurable real-time data transmission platform for real-time applications by integrating real-time data transmission functions into network devices. The new generation of TSN wireless access converged network provides a low-latency, high-reliability transmission environment for real-time applications by using technical means such as time synchronization, packet priority classification, traffic engineering, precise clock synchronization, guaranteed bandwidth, and low jitter.
[0004] In practical applications, the wireless network environment is complex and changeable. As an important part of data transmission orchestration, the TSN converter needs to dynamically adjust parameters according to network load, user requirements, service changes, etc. However, the general parameter adjustment method does not consider the current system state, and it is very easy to cause fluctuations in data stream parameters before and after adjustment, thus affecting the deterministic indicators.
[0005] Therefore, how to adjust parameters without affecting the current operating state and maintain the stability of deterministic transmission indicators is a problem that needs to be solved urgently at present. Summary of the Invention
[0006] Embodiments of the present invention provide a dynamic configuration method, an electronic device, a program product, and a storage medium to at least solve the technical problem of how to adjust parameters without affecting the current operating state and maintain the stability of deterministic transmission indicators.
[0007] According to one aspect of the embodiments of the present invention, a dynamic configuration method is provided, including: in response to obtaining a dynamic configuration instruction, parsing the dynamic configuration instruction to obtain a parsing result; according to the parsing result, obtaining statistical information, where the statistical information is used to characterize the current operating data of the TSN converter; according to the statistical information, determining a dynamic change strategy; and according to the dynamic change strategy, performing dynamic configuration change on the initial configuration in the TSN converter to obtain a target configuration.
[0008] Optionally, the parsing result includes a dynamic configuration type and dynamic configuration parameters, where the dynamic configuration parameters correspond to the dynamic configuration type, and the dynamic configuration type includes time slot configuration and flow characteristic parameter configuration.
[0009] Optionally, the statistical information includes a residence time window.
[0010] Optionally, obtaining the residence time window includes: obtaining the statuses of multiple data packets corresponding to multiple data packets; determining the left boundary and the right boundary of the residence time window according to the data packet statuses; and determining the residence time window according to the left boundary and the right boundary of the residence time window.
[0011] Optionally, determining the left boundary and the right boundary of the residence time window according to the data packet statuses includes: determining the left boundary of the residence time window according to the next time slot index of the current time slot index; in response to the data packet status indicating that there is a data packet in the residence state, determining the right boundary of the residence time window according to the next time slot index of the time slot corresponding to the maximum enqueue index of the data packet; or, in response to the data packet status indicating that there is no data packet in the residence state, determining the right boundary of the residence time window according to the left boundary.
[0012] Optionally, in the case where the dynamic configuration type is time slot configuration, determining the dynamic change policy according to the statistical information includes: determining the time slot length change parameter according to the parsing result; determining the time slot timeline according to the time slot length change parameter and the residence time window; and determining the dynamic change policy according to the time slot timeline.
[0013] Optionally, determining the dynamic change policy according to the time slot timeline includes: determining a first time region and a second time region according to the current time and the right boundary of the residence time window, where the first time region is the time period from the current time to the right boundary of the residence time window, and the second time region is the time period from the right boundary of the residence time window to the end of the time slot timeline; and determining the dynamic change policy as keeping the time slots in the first time region on the time slot timeline unchanged, and at the same time changing the time slots in the second time region on the time slot timeline according to the time slot length change parameter.
[0014] Optionally, in the case where the dynamic configuration type is flow characteristic parameter configuration, determining the dynamic change policy according to the statistical information includes: determining the flow characteristic parameter change parameter according to the parsing result; and determining the dynamic change policy according to the flow characteristic parameter change parameter and the residence time window.
[0015] Optionally, a dynamic change strategy is determined according to the flow characteristic parameters change parameter and the residence time window, including: determining a first time region and a second time region according to the current time and the right boundary of the residence time window, where the first time region is the time period from the current time to the right boundary of the residence time window, and the second time region is the time period from the right boundary of the residence time window to the end of the time slot time axis; for the data packets received in the first time region, determining the target delay of the data packets according to the minimum value of the target delay before change and the target delay after change in the flow characteristics of the flow to which the data packets belong, where the target delay before change is included in the statistical information, and the target delay after change is included in the flow characteristic parameters change parameter; or, for the data packets received in the second time region, determining the target delay of the data packets according to the target delay after change in the flow characteristics of the flow to which the data packets belong; determining the dynamic change strategy according to the target delay and the residence time window.
[0016] Optionally, in response to obtaining a dynamic configuration instruction, the dynamic configuration instruction is parsed to obtain a parsing result, including: performing a legality check on the dynamic configuration instruction according to a preset rule to obtain a check result; in response to the check result indicating that the dynamic configuration instruction is legal, adding the dynamic configuration instruction to a preset parsing queue; parsing the dynamic configuration instruction in the preset parsing queue to obtain a parsing result.
[0017] Optionally, the dynamic configuration method further includes: while performing a dynamic configuration change on a target module according to the dynamic change strategy, starting a timer, where the timer is configured according to the residence time window, and the residence time window is included in the statistical information; in response to the expiration of the timer, outputting a configuration completion instruction, where the configuration completion instruction is used to indicate that the dynamic configuration of the TSN converter is successfully changed.
[0018] According to another aspect of the embodiments of the present invention, an electronic device is further provided, including: a memory storing an executable program; a processor for running the program, where when the program runs, it executes the dynamic configuration method in any one of the above.
[0019] According to another aspect of the embodiments of the present invention, a computer program product is further provided, including a computer program, where when the computer program is executed by a processor, it implements the dynamic configuration method in any one of the above.
[0020] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium includes a stored executable program, and when the executable program runs, it controls the device where the computer-readable storage medium is located to execute the dynamic configuration method in any one of the above.
[0021] In an embodiment of the present invention, in response to obtaining a dynamic configuration instruction, the dynamic configuration instruction is parsed to obtain a parsing result; according to the parsing result, statistical information is obtained, where the statistical information is used to characterize the current operation data of the TSN converter; according to the statistical information, a dynamic change strategy is determined; according to the dynamic change strategy, the initial configuration is dynamically configured and changed to obtain a target configuration. By means of the real-time response to external dynamic configuration instructions, accurate parsing, acquisition of statistical information, and generation and execution of dynamic change strategies, the present invention dynamically changes the initial configuration to the target configuration, which can enhance the dynamic adaptation ability and data transmission performance of the TSN converter, without affecting the current operation state during parameter adjustment, ensuring the accuracy and coherence of data processing, and thus solving the technical problem of how to maintain the stability of the deterministic transmission index without affecting the current operation state during parameter adjustment. Description of the Drawings
[0022] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation to the present invention. In the drawings:
[0023] Figure 1 is a flowchart of a dynamic configuration method according to an embodiment of the present invention;
[0024] Figure 2 is a schematic structural diagram of a dynamic configuration device according to an embodiment of the present invention;
[0025] Figure 3 is a schematic execution architecture diagram of a dynamic configuration device according to an embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of a residence time window according to an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of a time axis used by a time slot change strategy according to an embodiment of the present invention;
[0028] Figure 6 is a schematic diagram of instruction processing timing according to an embodiment of the present invention;
[0029] Figure 7 is a schematic diagram of the timing of a dynamic configuration method according to an embodiment of the present invention;
[0030] Figure 8 is a schematic block diagram of a cooperative perception system according to an embodiment of the present invention. Detailed Embodiments
[0031] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.
[0033] It should be understood that 3GPP has conducted in-depth research on key standard directions such as the integration architecture, clock synchronization, and QoS (Quality of Service) mapping between the radio access network and TSN (Time-Sensitive Network). In the R16 version, TSN (Time-Sensitive Network) realized the integration of the radio access network as a transmission node into the existing TSN system, initially achieving the deterministic transmission goals of bounded delay, low jitter, and high reliability. In the R17 version, the ability of the radio access network to support the IEEE TSN protocol was further optimized and enhanced.
[0034] As converters between the wireless access network and the TSN system, DS-TT and NW-TT are the ingress and egress ports for TSN service data (time-sensitive data) in the deterministic wireless access network convergence architecture. As the egress port, to eliminate the uncertain latency and jitter caused by the air interface transmission for TSN services, the TSN converter supports providing hold-and-forward for traffic or latency shaping for TSN services, that is, the data residency mechanism. The data residency mechanism involves queue management, caching policies, transmission scheduling, etc. The shaping and scheduling of the TSN converter for TSN flows are based on time-slot scheduling and adopt an asynchronous forwarding mechanism. For example, an implemented enhanced CQF case: The time axis is divided into periodic time slices, and packets are imported into one of a group of egress queues according to time benchmarks through PSFP (per-flow filtering and policy). Similarly, the periodic gating scheduling mechanism is used to complete data transmission. In this case, the average latency and latency jitter of TSN services can be accurately controlled. Theoretically, the latency error between the scheduled packet and the target latency is within one scheduling period, and the latency jitter of services with the same QoS level also remains within one scheduling period.
[0035] However, in the actual deterministic wireless access network system, the QoS characteristics of TSN services will be dynamically adjusted according to network conditions and user requirements, such as the priority of TSN services, target latency, jitter metrics, etc. As an important part of data transmission orchestration, static configuration of the TSN converter is not conducive to adapting to this dynamically changing environment. To ensure the real-time, reliable, and efficient data transmission, the TSN converter needs to adopt a flexible configuration adjustment mechanism to dynamically adjust its internal configuration after receiving adjustment commands from the outside. The adjustment content can include time-slot configuration and flow characteristic parameter configuration. At the TSN converter, to ensure the accuracy and coherence of data processing and avoid logical confusion during the data enqueueing and dequeueing processes, when performing any dynamic adjustment of the configuration, the TSN converter must comply with the latency determinacy metric requirements of TSN flows and strive to maintain the stable state of the latency jitter metric, so as to ensure the timeliness and reliability of data transmission.
[0036] According to an embodiment of the present invention, an embodiment of a dynamic configuration method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system including at least one set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0037] The method embodiments can also be executed in an electronic device including a memory and a processor, a similar control device, or in the cloud. Taking the electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the above-mentioned electronic device may further include a communication device for communication functions and a display device. Those of ordinary skill in the art can understand that the above structural description is only illustrative and does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0038] The processor may include one or more processing units. For example: the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural-network processing unit (NPU), a tensor processing unit (TPU), a processing device of an artificial intelligent (AI) type processor, etc. Among them, different processing units may be independent components or integrated in one or more processors. In some instances, the electronic device may also include one or more processors.
[0039] The memory can be used to store computer programs, for example, store the computer program corresponding to the dynamic configuration method in the embodiments of the present invention. The processor realizes the above-mentioned dynamic configuration method by running the computer program stored in the memory. The memory may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some instances, the memory may further include a memory remotely set relative to the processor, and these remote memories can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0040] The communication device is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by the communication provider of the mobile terminal. In one example, the communication device includes a network interface controller (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly. In some embodiments of this solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, and can send instructions to the electronic device through the mobile device.
[0041] The display device can be a touch-screen liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display enables the user to interact with the user interface of the electronic device. In some embodiments, the above electronic device has a graphical user interface (GUI), and the user can perform human-computer interaction with the GUI by releasing and / or making gestures with a finger on the touch-sensitive surface. The executable instructions for performing the above human-computer interaction function are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0042] Figure 1 is a flowchart of a dynamic configuration method according to an embodiment of the present invention, as Figure 1 shown, the method includes the following steps:
[0043] Step S101, in response to obtaining a dynamic configuration instruction, parse the dynamic configuration instruction to obtain a parsing result.
[0044] Specifically, after receiving the dynamic configuration instruction sent from the outside, parsing the configuration instruction can convert the configuration instruction into a specific configuration type and a change value. For example, the instruction requires changing the target delay of a certain TSN service flow or updating the time slot length. The parsing result provides the key information required by the dynamic configuration control unit to further generate a dynamic change strategy.
[0045] Step S102, according to the parsing result, obtain statistical information, where the statistical information is used to characterize the current operating data of the TSN converter.
[0046] Specifically, after obtaining the parsing result, the current running data will be further collected and updated from the scheduling unit, enqueue control module, and dequeue control module of the TSN converter according to the parsing result, such as the number of resident messages, latency, target latency, and time slot configuration. The statistical information is the basis for generating the dynamic change strategy, ensuring that the current operating state and data processing situation of the TSN converter can be fully considered when generating the strategy, and avoiding negative impacts on the existing data flow caused by configuration changes.
[0047] Step S103: Determine the dynamic change strategy according to the statistical information.
[0048] Specifically, after obtaining the statistical information, a specific dynamic change strategy can be generated according to the statistical information. Exemplarily, it involves analyzing the statistical information to determine how to update the TSN flow characteristic parameters or time slot configuration without affecting the existing data flow scheduling. For example, when changing the time slot configuration, there is a delay change strategy for the time slot parameters. The resident time window is determined, and the data messages scheduled before the change are ensured to remain unchanged through the resident time window, and the changed parameters take effect at the beginning of the new scheduling cycle. When changing the flow characteristic parameter configuration, there is also a delay change strategy for the flow characteristic parameter configuration. The purpose of strategy generation is to ensure a smooth configuration change process and that the determinacy and reliability of data transmission are not affected.
[0049] Step S104: Perform dynamic configuration changes on the initial configuration in the TSN converter to obtain the target configuration according to the dynamic change strategy.
[0050] Specifically, after determining the dynamic change strategy, the dynamic change strategy will be sent to the target module (the module to be changed in configuration) that needs to be dynamically configured in the TSN converter, such as the time slot generation module, enqueue control module, or dequeue control module. The target module performs specific configuration update operations according to the received change strategy, changing the initial configuration to the target configuration, such as updating the time slot length, adjusting the TSN flow characteristic parameters, etc. This process ensures that the TSN converter can quickly adapt to changes in network conditions and user requirements, while maintaining the coherence of the data processing logic and the stability of the data transmission performance.
[0051] It can be understood that the dynamic configuration process in the present invention realizes the flexible configuration and efficient operation of the TSN converter by real-time parsing instructions, obtaining statistical information, determining the change strategy, and executing module configuration updates, ensuring the real-time, reliable, and deterministic transmission quality of the TSN service in the deterministic wireless access network.
[0052] In an embodiment of the present invention, in response to obtaining a dynamic configuration instruction, the dynamic configuration instruction is parsed to obtain a parsing result; according to the parsing result, statistical information is obtained, where the statistical information is used to characterize the current operation data of the TSN converter; according to the statistical information, a dynamic change strategy is determined; according to the dynamic change strategy, the initial configuration is dynamically configured and changed to obtain a target configuration. By means of the real-time response to external dynamic configuration instructions, accurate parsing, obtaining of statistical information, and generation and execution of dynamic change strategies, the present invention dynamically changes the initial configuration to the target configuration, which can enhance the dynamic adaptability and data transmission performance of the TSN converter, does not affect the current operation state while adjusting parameters, ensures the accuracy and coherence of data processing, and thus solves the technical problem of how to adjust parameters without affecting the current operation state and maintain the stability of deterministic transmission indicators.
[0053] Optionally, the parsing result includes a dynamic configuration type and dynamic configuration parameters, where the dynamic configuration parameters correspond to the dynamic configuration type, and the dynamic configuration type includes time slot configuration and flow characteristic parameter configuration.
[0054] Specifically, the dynamic configuration type refers to the type of configuration change to be executed, which can be specifically divided into two categories:
[0055] Time slot configuration: This type involves adjustments to aspects such as the time slot length and time slot generation rule in the TSN system. For example, if the network condition changes or the TSN service requirement is updated, the TSN converter needs to adjust the time slot length or reallocate time slots to optimize the data transmission efficiency or meet new quality of service (QoS) requirements.
[0056] Flow characteristic parameter configuration: This type mainly affects the arrangement and scheduling of data packets in the queue in the TSN service flow. For example, when the target delay or priority of the TSN service changes, the TSN converter needs to update the residence strategy of the data packets to ensure the determinism and low jitter of data transmission.
[0057] The dynamic configuration parameters corresponding to the dynamic configuration type means that each dynamic configuration type has its specific adjustment parameters. For example:
[0058] For time slot change, the dynamic configuration parameters include the new time slot length, the specific time point when the change takes effect, etc. These parameters will be used to generate a time slot parameter delay change strategy to ensure a smooth transition of the time slot parameters after the change and not affect the arrangement of the resident data packets.
[0059] For flow characteristic parameter change, the dynamic configuration parameters include the updated target delay, priority or queuing strategy, etc. These parameters will be used to generate a new residence strategy and scheduling rule to ensure that the data flow can still maintain good transmission performance under the new QoS requirements.
[0060] In summary, the dynamic configuration type in the parsing result indicates the configuration aspects that the TSN converter needs to adjust, while the dynamic configuration parameters specifically specify the content and details of these configuration changes, providing a clear operation guide for the dynamic configuration of the TSN converter, ensuring the smooth progress of configuration changes and the optimization of system performance.
[0061] Optionally, the statistical information includes a residence time window.
[0062] Specifically, the residence time window is a time window used by the TSN converter during the dynamic configuration process to ensure that the scheduling and arrangement of the resident data packets are not affected. Its acquisition and determination process are important bases for generating dynamic configuration policies.
[0063] Optionally, in some embodiments of the present invention, the statistical information further includes: enqueue control information, dequeue control information, current time slot index, queue status, and data packet status.
[0064] Specifically, the statistical information is an important basis for generating the dynamic configuration policy of the TSN converter. It contains a series of key indicators used to characterize the current operating state and data processing situation of the TSN converter. The following is an explanation of each item in the statistical information:
[0065] Enqueue control information: This involves the data managed by the enqueue control module of the TSN converter, specifically including the maximum enqueue time slot information and the scheduling rules of the TSN flow. The maximum enqueue time slot information is used to track the time slot when the latest data packet enters the queue in the system, which is crucial for determining the starting point of dynamic configuration changes. The scheduling rules indicate how data packets are arranged into specific time slot queues for residence according to their QoS levels and target delays.
[0066] Dequeue control information: This part of the information is provided by the dequeue control module and mainly involves the next-hop time slot information, that is, the time slot index corresponding to the expected dequeue time of the data packet. This helps the dynamic configuration control unit understand the scheduling status of the current data packet when generating change policies, ensuring that changes do not affect the normal dequeue of the scheduled data packets.
[0067] Current time slot index: Identifies the currently processed time slot, which is crucial for determining the residence time window and the effective time point of dynamic change policies. The current time slot index helps the TSN converter to keep track of its position on the system timeline and is the time basis for generating dynamic change policies.
[0068] Queue status: Reflects the current status of each time slot queue in the TSN converter, including the number of data packets in the queue, the queue type (associated with a specific QoS level or TSN flow), and the resources occupied by the queue. The statistics of the queue status help the dynamic configuration control unit understand the resource allocation situation and reasonably plan configuration changes.
[0069] Data packet status: Refers to the processing status of each data packet in the system, including its timestamp, target latency, current queue location, estimated dequeue time, etc. Real-time statistics of data packet status are crucial for generating dynamic change policies that do not affect the resident packets.
[0070] It can be understood that the comprehensive collection and analysis of statistical information provide a detailed data basis for the dynamic configuration control unit, enabling it to accurately generate and execute dynamic change policies after receiving and parsing dynamic configuration instructions, ensuring the real-time performance, reliability, and efficiency of the TSN converter. Especially when network conditions change or user requirements are updated, it can still maintain the determinacy of data transmission.
[0071] Optionally, obtaining the residence time window includes: obtaining multiple data packet statuses corresponding to multiple data packets; determining the left boundary and right boundary of the residence time window based on the data packet statuses; and determining the residence time window according to the left boundary and right boundary of the residence time window.
[0072] Specifically, obtaining multiple data packet statuses corresponding to multiple data packets: The statistics module collects the status information of all data packets in real time from the orchestration unit, enqueue control module, and dequeue control module of the TSN converter, including the timestamp, target latency, estimated egress timestamp, queue location information, etc. of the data packets. These status information comprehensively reflect the residence and scheduling of data packets in the network.
[0073] Determining the left boundary and right boundary of the residence time window based on the data packet status: Among the collected data packet statuses, the statistics module identifies all data packets in the resident state, that is, those packets that have not been scheduled for transmission. Based on the status of these data packets, the statistics module first determines the left boundary of the residence time window, which is the start time of the next time slot after the current time slot. Then, the statistics module finds the data packet with the latest estimated egress timestamp, and the start time of the next time slot corresponding to the maximum enqueue time slot index of this timestamp is the right boundary of the residence time window. This is because data packets in the resident state will at least reside in the current time slot or subsequent time slots waiting for scheduling. If there are no resident packets in the current system, the right boundary is considered to coincide with the left boundary. In this way, the residence time window is limited between the start of the next scheduling time slot and the end of the time slot corresponding to the latest estimated dequeue timestamp, ensuring that data packets within this time window will be processed according to the existing configuration.
[0074] Determine the residence time window based on the left boundary and the right boundary of the residence time window: Once the statistical module determines the left boundary and the right boundary of the residence time window, the residence time window can be clearly defined. The data packets within this time interval will not be affected by the upcoming dynamic configuration changes, thus ensuring the coherence of data packet processing and the determinacy of data transmission. For the data packets received after the residence time window, the dynamic configuration control unit will process them according to the new dynamic configuration policy to achieve smooth configuration switching.
[0075] It can be understood that the residence time window is an important time interval. Its left boundary is the start moment of the next time slot after the current time slot, and the right boundary is the start moment of the next time slot corresponding to the maximum enqueue index of the data packet. If there is no resident data packet in the current system, it is regarded as coinciding with the left boundary. The data packets within this time window are already resident and are subject to the current configuration constraints. The determination of the residence time window helps the dynamic configuration control unit identify which data packets should maintain the original configuration and which data packets can apply the new configuration, ensuring the smooth progress of the dynamic configuration process without affecting the transmission quality of the already processed data.
[0076] To sum up, the process of obtaining and determining the residence time window clarifies the scope and time points affected by dynamic configuration changes through real-time analysis of the status information of data packets, ensuring that while dynamically adjusting configuration parameters, it will not interfere with the processing of the already resident data packets in the current system, and effectively maintaining the real-time performance and reliability of data transmission in the TSN converter.
[0077] Optionally, determining the left boundary and the right boundary of the residence time window according to the data packet status includes: determining the left boundary of the residence time window according to the next time slot index of the current time slot index; in response to the data packet status indicating that there are data packets in the resident state, determining the right boundary of the residence time window according to the next time slot index corresponding to the maximum enqueue index of the data packet; or, in response to the data packet status indicating that there are no data packets in the resident state, determining the right boundary according to the left boundary.
[0078] Specifically, the determination of the left boundary is based on the next time slot index of the current time slot index. In actual operation, the TSN converter receives, arranges, and sends data packets in units of time slots. Each time slot corresponds to a queue, and the data packets are arranged in the queue of a certain time slot waiting for scheduling. Therefore, the current time slot index refers to the time slot being processed by the system, and the next time slot index points to the upcoming time slot. Defining the start moment of the time slot corresponding to the next time slot index as the left boundary of the residence time window means that any configuration change should only take effect when the current time slot is processed and the next time slot starts. The purpose of doing this is to avoid the data packets being processed from being affected by configuration changes and ensure that the data packets are scheduled and completed according to the original configuration.
[0079] Specifically, if the data packet status indicates the existence of data packets in the resident state (i.e., there are resident data packets in the current system), the determination of the right boundary focuses on the time slot corresponding to the maximum enqueue index of the data packet. The maximum enqueue index refers to the time slot index when the last data packet (or the latest data packet in the data stream) in the system is arranged to be enqueued. This data packet will be resident according to the existing configuration until the expected egress time slot. Since the configuration change affects the scheduling policy of the data packet, in order to ensure that the processing of all resident data packets follows the original configuration, the right boundary of the resident time window is set to the start time of the next time slot corresponding to the maximum enqueue index. This means that before the end of this time slot, the residence and scheduling of all data packets are not affected by the configuration change, thus ensuring the continuity and determinacy of data transmission.
[0080] If the data packet status indicates the non-existence of data packets in the resident state (i.e., there are no resident data packets in the current system), the right boundary is determined based on the left boundary, and the right boundary is regarded as coinciding with the left boundary.
[0081] Exemplarily, referring to Figure 4 p1 in, the enqueue control module is responsible for the residence arrangement of data packets. According to the received data packet timestamp and the reception time, combined with the TSN traffic flow characteristic parameters (QoS level, target delay, etc.), it calculates the expected egress timestamp and quantizes the expected egress timestamp to the scheduling time slot to complete the enqueue process of the data packet in the corresponding queue of this scheduling time slot; the egress control module is responsible for completing the dequeue process of the corresponding queue when the scheduling time slot arrives.
[0082] The embodiment of the present invention adopts an orchestration strategy based on an enhanced CQF method for target delay shaping, and the content and process are as follows:
[0083] The time slot generation module is responsible for generating the reference time slot interrupt for the scheduling orchestration of the enqueue control module and the dequeue control module. The orchestration unit maintains the corresponding relationship between time slots and queues. Each time slot corresponds to a queue, and the time slot and the queue are in a one-to-one mapping relationship; at the same time, the index value g tick is used as the identifier of the time slot and the queue, representing that the current scheduling time slot index is g tick , and its corresponding queue index is g tick .
[0084] Each time a data packet is received, the enqueue process of the enqueue control module is triggered, and its steps are as follows:
[0085] The enqueue control module calculates the expected egress timestamp of the data packet according to the received data packet timestamp and the target delay indicated by the QoS characteristics of the TSN traffic flow to which it belongs, and quantizes the expected egress timestamp to a specific time slot to obtain the enqueue index. Let t p be the packet timestamp, and T d,iFor the target delay of service qci = i, the enqueue control module calculates the estimated egress time of the data packet as t p +T d,i .
[0086] The enqueue control module determines whether to enqueue the data packet. Is the start time of the next time slot in the current time slot. If Indicates that the time when the data packet arrives at the TSN converter has timed out, the data packet is not enqueued and is directly sent to the dequeue control module for sending; if Then the data packet is placed in t p +T d,i The queue x corresponding to the time slot in which it is located satisfies Where Is the start time of time slot x, Is the end time of time slot x.
[0087] Each time slot interruption triggers the dequeue process of the dequeue control module. At the start of each time slot The time to complete time slot g tick The corresponding queue g tick Dequeue operation.
[0088] Refer to Figure 4 In p2, at time t, the dynamic configuration control unit receives a configuration instruction. At this time, there are several data packets in the TSN converter system in the resident state. To ensure that the dynamic configuration operation does not affect the scheduling of this part of the data packets, the statistical module obtains the resident time window as the basis for the dynamic change policy generation module to generate the policy. The resident time window refers to the time interval between the start of the next scheduling to be performed and the end of the time slot corresponding to the maximum egress timestamp of the data packets in the resident state in the system. For time t, if there are resident data packets in the current system, the resident time window W t Is expressed as follows:
[0089] W t =[W t,left , W t,right )
[0090] Where Is the left boundary of the resident time window W t , g tick+1 Is the index of the next time slot of the current time slot, Is the start time of the next time slot; Is the right boundary of the resident time window W t , g max(x)+1 Is the index of the next time slot corresponding to the time slot with the maximum enqueue index of the data packet, Is the start time of this time slot, that is, the end time of the maximum enqueue time slot. If there are no resident data packets in the current system, the resident time window Wt It is expressed as follows:
[0091] W t =(W t,left , W t,right )
[0092] At this time g tick+1 is the index of the next time slot of the current time slot, is the start time of the next time slot.
[0093] Optionally, in the case where the dynamic configuration type is the time slot configuration, according to the statistical information, determine the dynamic change strategy, including: determining the time slot length change parameter according to the parsing result; determining the time slot timeline according to the time slot length change parameter and the residence time window; determining the dynamic change strategy according to the time slot timeline.
[0094] Specifically, first, parse according to the received configuration instruction, and extract the specific parameters of the time slot length change from it. The parsing result includes not only the direction of the change (such as increasing or decreasing the time slot length), but also the specific value of the change. For example, if the instruction indicates that the time slot length needs to be adjusted from the current T1 to T2, the parsing module will identify T1 and T2 as part of the change content.
[0095] Based on the parsed time slot length change parameter and the residence time window, generate a new time slot timeline, which includes the left boundary and the right boundary of the residence time window. The time slot timeline is a time series that defines the start and end times of each time slot, as well as the time slot length. When determining the time slot timeline, consider the current time slot configuration and the upcoming time slot length change. This process ensures that the update of the time slot timeline can accurately reflect the requirements of the configuration instruction.
[0096] The combination of the time slot timeline and the residence time window provides a basis for generating the dynamic change strategy. The residence time window is a time range that identifies the positions of all the resident data packets in the system on the timeline, and is specifically defined by the left boundary and the right boundary of the residence time window. When generating the strategy, the existence of the residence time window will be considered to ensure that within this time window, the processing of the data packets is not affected by the new configuration. This means that only after the end of the residence time window does the new time slot length configuration start to take effect.
[0097] Generate the dynamic change strategy: Combining the update of the time slot timeline and the limitation of the residence time window, the module will generate a dynamic change strategy, which explains when and how to apply the new time slot length configuration, and at the same time ensures that for all the data packets within the residence time window, their residence and scheduling processes are carried out according to the original configuration and are not affected by the configuration change.
[0098] Exemplarily, the "time slot change strategy generation" sub-module is responsible for generating and sending the strategy changes of the time slot change type to the impact module, that is, the time slot generation module. For example, if the time slot length needs to be changed from to Maintain the status of the data packets that have completed the enqueue operation before the current moment t unchanged, including the enqueue queue index and the dequeue timing. The "time slot change strategy generation" sub-module adopts the "delayed change" strategy to complete the update of the time slot timeline. Before W t,right still adopt of the time slot width, and after W t,right adopt of the time slot width. The mapping relationship between the time slot and the queue is a one-to-one mapping both before and after the time slot change.
[0099] Optionally, according to the time slot timeline, determine the dynamic change strategy, including: determining the first time region and the second time region according to the current moment and the right boundary of the residence window. Among them, the first time region is the time period from the current moment to the right boundary of the residence window, and the second time region is the time period from the right boundary of the residence window to the end of the time slot timeline; determine the dynamic change strategy to keep the time slots in the first time region on the time slot timeline unchanged, and at the same time change the time slots in the second time region on the time slot timeline according to the time slot length change parameter.
[0100] The residence window is reflected on the time slot timeline and is defined by its left boundary W t,left and right boundary W t,right which identifies the effective processing time range of all the resident data packets in the system on the time slot timeline. The left boundary is the start moment of the next time slot of the current time slot, and the right boundary is defined as the start moment of the next time slot of the maximum enqueue time slot in the system, that is, the farthest scheduling time point of all the pending data packets in the current system.
[0101] According to the current moment and the right boundary of the residence window, determine the first time region on the time slot timeline. This region includes all the data packets that have completed scheduling or are being processed until the right boundary of the residence window. According to the right boundary of the residence window, determine the second time region on the time slot timeline. This region starts from the right boundary of the residence window, that is, from the time slots after the moment, until the end of the timeline or the next configuration change point.
[0102] Keep the time slots in the first time region unchanged and change the time slots in the second time region: When generating the dynamic change strategy, the time slot change strategy generation module will ensure that the time slots in the first time region remain unchanged, so as to avoid the impact of configuration changes on the processing of resident data packets. At the same time, the module will adjust the time slots in the second time region according to the received time slot length change parameter to adapt to the new network conditions or quality of service requirements. For example, if the time slot length needs to be changed from Change to Then all time slots after the right boundary time will adopt the new time slot length
[0103] Exemplarily, referring to Figure 5 , to avoid affecting the scheduling of data packets already in the resident state, the time slot change policy generation module adopts a time slot parameter delay change policy. Suppose a time slot change configuration instruction is received at time t. At this time, the time slots before W t,left have already been scheduled, and the dequeue timing of the resident state data packet scheduling is between W t,left and W t,right (excluding W t,right ). The time slot time axis still adopts the time slot width of t,right before W , and adopts the time slot width of t,right after W . The mapping relationship between time slots and queues is a one-to-one mapping before and after the time slot change.
[0104] In summary, by dividing different regions on the time slot time axis and setting different change policies for each region, the dynamic adjustment of the time slot configuration of the TSN converter is realized. When performing configuration changes, it can not only meet the new parameter requirements, but also will not interfere with the data packet processing process currently in progress in the system, thus improving the flexibility and efficiency of the network while ensuring the real-time and reliability of data transmission.
[0105] Optionally, when the dynamic configuration type is the flow characteristic parameter configuration, according to the statistical information, determine the dynamic change policy, including: according to the parsing result, determine the flow characteristic parameter change parameter; according to the flow characteristic parameter change parameter and the resident time window, determine the dynamic change policy.
[0106] Specifically, when the dynamic configuration control unit receives an external configuration instruction, the parsing and distribution module will perform a preliminary parsing on it to identify the specific content of the flow characteristic parameter change. The flow characteristic parameters include but are not limited to the priority of the TSN service, the target delay, the bandwidth allocation, etc. The changes of these parameters are due to the changes of network conditions or new requirements for the service quality of the TSN service. The parsing result not only indicates the flow characteristic parameter to be changed, but also includes the new parameter value.
[0107] Based on the changed parameters parsed from the flow characteristic parameters, the dynamic change policy generation module will generate a new incoming queue policy. The incoming queue policy is used to control the incoming queue control module and the outgoing queue control module, which defines how data packets are arranged into specific queues according to their flow characteristics and when they are scheduled to be sent out. For example, if the target delay changes from T1 to T2, the incoming queue policy will adjust the residence duration and the expected egress time of the data packets to meet the new target delay requirements.
[0108] The residence time window is an important consideration in determining the dynamic change policy. Within the residence time window, all the data packets that have already resided must be processed according to the current configuration to ensure the stability of their delay and jitter metrics. Therefore, when generating the policy, the dynamic change policy generation module will combine the incoming queue policy and the residence time window to ensure that the change policy only takes effect after the end of the residence time window, without affecting the already arranged data packets.
[0109] Through the above analysis and calculation, the module will generate a complete set of dynamic change policies. This set of policies not only includes the new flow characteristic parameters and the corresponding incoming queue policies, but also specifies the time point when the policy takes effect, that is, the end moment of the residence time window. Such a dynamic change policy ensures that the TSN service data flow can smoothly transition before and after the configuration change, meet the new QoS requirements, and at the same time does not affect the processing of the existing data.
[0110] Optionally, according to the flow characteristic change parameters and the residence time window, determine the dynamic change policy, including: determining a first time region and a second time region according to the current moment and the right boundary of the residence time window, where the first time region is the time period from the current moment to the right boundary of the residence time window, and the second time region is the time period from the right boundary of the residence time window to the end of the time slot time axis; for the data packets received in the first time region, determine the target delay of the data packets according to the minimum value of the target delay before change and the target delay after change in the flow characteristics of the flow to which the data packets belong, where the target delay before change is included in the statistical information and the target delay after change is included in the flow characteristic parameter change parameters; or, for the data packets received in the second time region, determine the target delay of the data packets according to the target delay after change in the flow characteristics of the flow to which the data packets belong; determine the dynamic change policy according to the target delay and the residence time window.
[0111] The first time region refers to the time period from the current moment to the right boundary of the residence time window. During this time period, all the newly received data packets are in a transitional stage of dynamic change. The TSN converter needs to adjust its processing policy according to the dynamic configuration parameters to ensure that the processing of these data packets not only meets the new configuration requirements but also does not violate the restrictions on the continuity and determinacy of data processing in the residence time window.
[0112] The second time region is the time period starting from after the right boundary of the residence window until the end of the time axis. During this time period, the TSN converter should process newly received data packets completely according to the updated configuration parameters, without considering the limitations of the residence window anymore.
[0113] The target delay corresponding to the data packets received in the first time region is the minimum of the target delay before the change and the target delay after the change in the flow characteristics of the data packet's flow. In the first time region, for newly received data packets, the TSN converter will use this minimum value to calculate their expected egress time slots, that is, adopt the shorter target delay for scheduling, so as to process these data packets as soon as possible before the end of the residence window, reduce delay jitter and improve the efficiency of data processing. Among them, the target delay before the change is included in the statistical information, and the target delay after the change is included in the flow characteristic parameter change parameters.
[0114] The target delay corresponding to the data packets received in the second time region is the target delay after the change in the flow characteristics of the data packet's flow. In the second time region, newly received data packets will use the updated target delay to determine their expected egress time slots, which can ensure that all data packets are processed in the system according to the new configuration parameters and meet the new quality of service requirements.
[0115] Exemplarily, the "orchestration change policy generation" sub-module is responsible for generating and sending the policy changes of the orchestration type to the impact module, that is, the enqueue control module. For example, when the target delay of the qci = i service data changes from adjusted to Keep the status of the data packets that have completed the enqueue operation before the current moment t unchanged; for newly received data packets within the range of [t~W t,right )), adopt the smaller target delay before and after the scheduling policy configuration, that is calculate the expected egress time slot, so as to adopt a relatively fast dequeue strategy in the contention area. If not timed out, perform the enqueue operation for the queue corresponding to this time slot. If timed out, do not perform the enqueue operation and directly send it to the dequeue control module for sending; for newly received data packets within the range of [W t,right ~∞), adopt the new target delay after the scheduling policy configuration to calculate the expected egress time slot. If not timed out and the enqueue operation is to be performed, perform the enqueue operation for the queue corresponding to this time slot. If timed out, do not perform the enqueue operation and directly send it to the dequeue control module for sending.
[0116] In summary, by adopting different egress slot strategies in different time regions, the immediacy of configuration changes and the continuity of data processing are effectively balanced. In the third time region, by adopting a shorter first egress slot, the TSN converter can process data packets faster, enabling them to transition to the new configuration in a smoother manner within the residence time window; while in the fourth time region, the TSN converter schedules completely according to the updated target delay, ensuring that the processing of all data packets conforms to the new configuration parameters and meets the requirements of the deterministic network for delay and jitter.
[0117] Optionally, in response to obtaining a dynamic configuration instruction, the dynamic configuration instruction is parsed to obtain a parsing result, including: performing a legality check on the dynamic configuration instruction according to a preset rule to obtain a check result; in response to the check result indicating that the dynamic configuration instruction is legal, adding the dynamic configuration instruction to a preset parsing queue; and parsing the dynamic configuration instruction in the preset parsing queue to obtain a parsing result.
[0118] Specifically, when a dynamic configuration instruction sent from the outside is received, the first step is to perform a legality check. This check is based on a preset rule and aims to verify whether the format, source, and content of the instruction meet the configuration requirements and security standards of the TSN converter. The purpose of the legality check is to prevent incorrect or malicious configuration instructions from interfering with or damaging the system and ensure the smooth progress of subsequent parsing and execution processes.
[0119] If the result of the legality check indicates that the dynamic configuration instruction is legal, then the instruction will be further processed; if the check result indicates that the instruction is illegal, the instruction will be discarded, and the system will also issue a warning or record this event. For a legal instruction, the next step is to add it to the preset parsing queue and wait for further parsing and processing.
[0120] The preset parsing queue is a queue for temporarily storing legal dynamic configuration instructions, and its design purpose is to process these instructions in an orderly manner to avoid conflicts and chaos during the instruction processing process. After a legal instruction is added to the parsing queue, it will wait for subsequent parsing and processing in the order of the queue.
[0121] A dynamic configuration instruction is taken out from the parsing queue and parsed according to the preset syntax and logical rules to understand the specific content of the instruction, such as the update information of TSN flow characteristic parameters, the change information of slot length, etc. The parsing result will include key information such as the type, parameters, and effective time of the instruction, providing a basis for the generation of subsequent dynamic change strategies.
[0122] Exemplarily, referring to Figure 6 , the above embodiments are implemented as follows:
[0123] Step 1, configure the receiving module to send the configuration signaling sent from the outside world to the parsing and distribution module;
[0124] Step 2, the parsing and distribution module performs a legality check and places the configuration signaling that passes the legality check into the waiting processing queue in the parsing and distribution module;
[0125] Step 3, if Step 2 is successful, return a successful reply to the configuration signaling, otherwise return a failure reply to the configuration signaling.
[0126] Optionally, the dynamic configuration method further includes: while performing a dynamic configuration change on the target module according to the dynamic change policy, start a timer, where the timer is configured according to the residence time window, and the residence time window is included in the statistical information; in response to the expiration of the timer, output a configuration completion instruction, where the configuration completion instruction is used to indicate that the dynamic configuration change of the TSN converter is successful.
[0127] Specifically, while performing the configuration change, the dynamic configuration control unit will start a timer. The duration of this timer is determined by the residence time window, that is, the time point when the change policy takes effect is set at the end of the residence time window. The residence time window is part of the statistical information, which defines a time range within which all resident data packets should be processed according to the original configuration to avoid the impact of configuration changes on them. The start of the timer essentially provides a time control mechanism to ensure that the configuration change takes effect immediately after the end of the residence time window.
[0128] Once the timer reaches the preset time point (i.e., the right boundary of the residence time window), the dynamic configuration control unit will output a configuration completion instruction. This means that all configuration change policies have been successfully changed and can be immediately applied to the target module in the system. At this time, the system state has transitioned from the residence time window to the time point allowing the application of the new configuration, and newly received data packets will be processed according to the updated configuration parameters.
[0129] Exemplarily, referring to Figure 7 , the above embodiments are implemented as follows:
[0130] Step 1, the parsing and distribution module retrieves data from the waiting processing message queue and performs parsing to obtain the configuration type and configuration content, and sends a configuration instruction to the dynamic change policy generation module;
[0131] Step 2, the dynamic change policy generation module sends a statistical message query to the statistical module, and the statistical module returns a statistical message reply to the dynamic change policy generation module;
[0132] Step 3: The dynamic change policy generation module maps to the internal processing sub-module according to the configuration type. The sub-module generates a change policy based on the statistical information and configuration content, and sends a change policy instruction to the specific impact module for dynamic configuration;
[0133] Step 4: After Step 3, the dynamic change policy generation module starts the W_(t,right) expiration timer. When the timer expires, it sends a configuration completion instruction to the parsing and distribution module; after receiving the configuration completion instruction, the parsing and distribution module can start the next configuration process.
[0134] It can be understood that through this process, the technical solution realizes precise control of dynamic configuration changes, ensures the continuity and determinacy of data packet processing. At the same time, through the use of the timer, the configuration changes can be seamlessly connected to the system operating state, realizing the efficiency and flexibility of the TSN converter. This mechanism is the key to realizing dynamic resource configuration of TSN services in a deterministic wireless access network, which can significantly improve the real-time performance, reliability and quality of service of the network.
[0135] Optionally, referring to Figure 2 , the present invention also provides a dynamic configuration device, which can be used to execute the method described in any of the above embodiments, and completes the internal deployment of the TSN converter in the form of a dynamic configuration control unit:
[0136] The dynamic configuration control unit provides an external interface for receiving external configuration instructions, such as TSN flow characteristic configuration, time slot change configuration;
[0137] The dynamic configuration control unit is connected to the time slot generation module, and is used to send time slot-related dynamic change policies to the time slot generation module, such as time slot length update, change effective time;
[0138] The dynamic configuration control unit is connected to the orchestration unit (including the enqueue control module and the dequeue control module) for obtaining statistical information as the basis parameters for generating dynamic change policies. For example, it is connected to the enqueue control module to obtain enqueue control information from the enqueue control module, such as the maximum enqueue time slot information, and is connected to the dequeue control module to obtain dequeue control information from the dequeue control module, such as the next-hop time slot information.
[0139] In Figure 2 In the dynamic configuration device shown, after receiving the data stream, it performs parsing processing on the data stream. The parsed data packets enter the queue storage and management module under the control of the enqueue control module, and the data packets in the queue storage and management module are output as a data stream under the control of the dequeue control module. The dynamic configuration control unit sends time slot-related dynamic change policies to the enqueue control module and the dequeue control module through the time slot generation module to change the control policies in the enqueue control module and the dequeue control module.
[0140] The dynamic configuration control unit provides the dynamic configuration function of the TSN converter. Refer to Figure 3 , which can be further divided into modules internally, including a configuration receiving module, a parsing and distribution module, a dynamic change policy generation module, and a statistics module:
[0141] The configuration receiving module is responsible for receiving configuration instructions from outside the TSN converter and submitting the configuration instructions to the parsing and distribution module;
[0142] The parsing and distribution module is responsible for performing legality checks and parsing on the configuration instructions sent by the configuration receiving module, mapping the instructions that pass the legality check to the corresponding sub-modules in the dynamic change policy generation module according to their configuration types, and sending them to the sub-modules;
[0143] The statistics module is responsible for information statistics to provide the necessary information for the operation of the dynamic change policy generation module;
[0144] The dynamic change policy generation module obtains dynamic change content (including change type and change value) from the parsing and distribution module, and obtains statistical information from the statistics module as input parameters for generating the dynamic change policy. Each sub-module in the dynamic change policy generation module is responsible for generating specific change policies and sending the change policies to the final impact module.
[0145] In some alternative embodiments of the present invention, the dynamic configuration method is exemplarily implemented as follows:
[0146] The dynamic configuration control unit provides system initial configuration parameters in a preset manner and maintains the configuration parameters during operation;
[0147] The TSN converter uses the configuration parameters for the processes of receiving, arranging, and sending data packets;
[0148] The configuration receiving module receives configuration instructions from outside the TSN converter and submits the configuration instructions to the parsing and distribution module;
[0149] The parsing and distribution module performs legality checks and parsing on the configuration instructions sent by the configuration receiving module, maps the instructions that pass the legality check to the corresponding sub-modules in the dynamic change policy generation module according to their configuration types, and sends them;
[0150] The sub-modules of the dynamic change policy generation module receive the configuration instructions, and generate change policies in combination with the statistical information obtained by the statistics module from the scheduling unit (such as the enqueue control module, dequeue control module, etc.);
[0151] The sub-modules of the dynamic change policy generation module send the change policies to the impact module;
[0152] The dynamic configuration control unit updates the configuration parameters after the new parameters take effect.
[0153] The embodiments of the present invention also provide some methods and processes for generating dynamic change strategies for different types of configurations:
[0154] The statistics module sets the numerical values of the statistics items required for some dynamic change strategies, which can be changed, increased or decreased according to requirements; the statistics module sends the statistical values to the dynamic change strategy generation module; the dynamic change strategy generation module generates dynamic change strategies with reference to the statistical values; the dynamic change strategy generation module sets some dynamic change strategy generation sub-modules for different types of configurations to process different types of configurations, which can be changed, increased or decreased according to requirements.
[0155] Refer to Figure 3 , the TSN converter provides the initial configuration parameters in a preset manner and maintains the configuration parameters during operation, and changes the configuration parameters according to the dynamic configuration strategy and process. The configuration parameters include time slot information, TSN flow characteristics, etc.
[0156] The dynamic configuration device exists in the internal structure of the TSN converter in the form of a dynamic configuration control unit, and this device includes a configuration receiving module, a parsing and distribution module, a dynamic change strategy generation module, and a statistics module.
[0157] The configuration receiving module is responsible for receiving configuration instructions from outside the TSN converter and submitting the configuration instructions to the parsing and distribution module. The parsing and distribution module is responsible for performing legality checks and parsing on the configuration instructions sent by the configuration receiving module, mapping the instructions that pass the legality checks to the corresponding sub-modules in the dynamic change policy generation module according to their configuration types and sending them to these sub-modules. For example, the "TSN flow characteristic list update" instruction is mapped to the "orchestration change policy generation" sub-module, and the "time slot length change" instruction is mapped to the "time slot change policy generation" sub-module. The dynamic configuration control unit can implement specific mappings according to requirements. The statistics module is responsible for information statistics to provide the necessary information for the operation of the dynamic change policy generation module. For example, the statistics module obtains enqueue control information from the enqueue control unit of the TSN converter orchestration component and dequeue control information from the dequeue control unit of the TSN converter orchestration component. The dynamic configuration control unit can increase, decrease, and change the statistical content according to requirements. The dynamic change policy generation module obtains dynamic change content (including change type and change value) from the parsing and distribution module and obtains statistical information from the statistics module as input parameters for dynamic change policy generation. The dynamic change policy generation sub-module is responsible for generating specific change policies and sending the change policies to the final impact module. For example, the orchestration change policy generation sub-module is responsible for orchestration-related configuration policies, and the generated result is sent to the enqueue control module; the time slot change policy generation sub-module is responsible for time slot-related configuration policies, and the generated result is sent to the time slot generation module. The dynamic configuration control unit can increase or decrease the change policies according to requirements.
[0158] Due to the data residency mechanism for TSN service flows in the TSN converter orchestration unit, in order not to affect the orchestration of packets in the residency state in the system, the dynamic change policy generation module requires the statistics module to obtain the current residency packet orchestration and scheduling information from the orchestration unit as the basis for dynamic change policy generation.
[0159] In the embodiment of the present invention, the TSN converter is based on time slot scheduling. The TSN converter, the wireless access network electronic device where it is located, and the marker data packet timestamp server use 802.1AS or IEEE 1588 to achieve clock synchronization.
[0160] The embodiment of the present invention provides a method for calculating the residency time window. Through the calculation of the residency time window, the current residency packet orchestration and scheduling information can be obtained. The schematic diagram of the residency time window is as Figure 4 shown:
[0161] As Figure 4As shown in P1: The enqueue control module is responsible for the residence scheduling of data packets. According to the received data packet timestamp and reception time, combined with the TSN traffic flow characteristic parameters (QoS level, target delay, etc.), it calculates the expected egress timestamp and quantizes the expected egress timestamp to the scheduling time slot, completing the enqueue process of the data packet in the corresponding queue of this scheduling time slot; the egress control module is responsible for completing the dequeue process of the corresponding queue when the scheduling time slot arrives.
[0162] An embodiment of the present invention can adopt an orchestration strategy based on an enhanced CQF method to perform target delay shaping. The content and process are as follows:
[0163] The time slot generation module is responsible for generating the reference time slot interrupt for the scheduling and orchestration of the enqueue control module and the dequeue control module. The orchestration unit maintains the corresponding relationship between time slots and queues. Each time slot corresponds to a queue, and the time slot and the queue are in a one-to-one mapping relationship; at the same time, the index value g tick is used as the identifier of the time slot and the queue, representing that the current scheduling time slot index is g tick , and its corresponding queue index is g tick .
[0164] Each time a data packet is received, the enqueue process of the enqueue control module is triggered. The steps are as follows:
[0165] Step 1, the enqueue control module calculates the expected egress timestamp of the data packet according to the received data packet timestamp and the target delay indicated by the QoS characteristics of the TSN traffic flow to which it belongs, and quantizes the expected egress timestamp to a specific time slot to obtain the enqueue index. Let t p be the packet timestamp, and T d,i be the target delay of service qci = i. Then the enqueue control module calculates the expected egress time of the data packet as t p +T d,i .
[0166] Step 2, the enqueue control module determines whether the data packet is to be enqueued. is the start moment of the next time slot under the current time slot. If represents that the arrival time of the data packet at the TSN converter has timed out, the data packet is not enqueued and is directly sent to the dequeue control module for sending; if then the data packet is put into the queue x corresponding to the time slot in which t p +T d,i is located, satisfying where is the start moment of time slot x, is the end moment of time slot x.
[0167] Each time a time slot interrupt is generated, the dequeue process of the dequeue control module is triggered. At the start of each time slot Complete time slot g at the moment tick Corresponding queue g tick for the dequeue operation.
[0168] As Figure 4 shown in P2: At time t, the dynamic configuration control unit receives a configuration instruction. At this time, there are several data packets in the TSN converter system that are in the resident state. To ensure that the dynamic configuration operation does not affect the scheduling of this part of the data packets, an embodiment of the present invention provides a method in which the statistical module obtains the resident time window as the basis for generating the policy of the dynamic change policy generation module. The resident time window refers to the time interval between the start of the next scheduling to the end of the time slot corresponding to the maximum egress timestamp of the data packets in the resident state in the system. For time t, if there are resident data packets in the current system, the resident time window W t is expressed as follows:
[0169] W t =[W t,left , Wt ,right )
[0170] where is the left boundary of the resident time window W t , g tick+1 is the index of the next time slot of the current time slot, is the start time of the next time slot; is the right boundary of the resident time window W t , g max(x)+1 is the index of the next time slot corresponding to the time slot with the maximum enqueue index of the data packet, is the start time of this time slot, that is, the end time of the maximum enqueue time slot. If there are no resident data packets in the current system, the resident time window W t is expressed as follows:
[0171] W t =(W t,left , W t,right )
[0172] At this time g tick+1 is the index of the next time slot of the current time slot, is the start time of the next time slot.
[0173] An embodiment of the present invention provides a method for generating a time slot change policy, and the process is as follows:
[0174] Step 1, the configuration receiving module receives the configuration instruction and forwards it to the parsing and distribution module;
[0175] Step 2, the parsing and distribution module parses out the time slot length change parameter, and the time slot length needs to be adjusted from to Send it to the time slot change policy generation sub-module in the dynamic change policy generation module according to the adjustment type and content.
[0176] Step 3, the time slot change policy generation sub-module obtains the residence time window W statistically by the current statistics module. t ;
[0177] Step 4, the time slot change policy generation sub-module regenerates the time slot time axis and sends it to the time slot generation module.
[0178] The generation rule of the time slot time axis is referred to Figure 5 , in order not to affect the scheduling of data packets that are already in the resident state, the time slot change policy generation module adopts the time slot parameter delay change policy. Suppose a time slot change configuration instruction is received at time t. At this time, the time slots before W t,left have been scheduled, and the dequeue time of the data packet scheduling in the resident state is between W t,left and W t,right (excluding W t,right ). The time slot time axis still adopts the t,right time slot width before W , and adopts the t,right time slot width after W . The mapping relationship between the time slot and the queue is a one-to-one mapping before and after the time slot change.
[0179] An embodiment of the present invention provides a method for generating an orchestration change policy, and the process is as follows:
[0180] Step 1, the configuration receiving module receives the configuration instruction and forwards it to the parsing and distribution module;
[0181] Step 2, the parsing and distribution module parses the updated content of the TSN flow characteristic parameters, and sends it to the orchestration change policy generation sub-module in the dynamic change policy generation module according to the adjustment type and content;
[0182] Step 3, the orchestration change policy generation sub-module obtains the residence time window W statistically by the current statistics module; t ;
[0183] Step 4, the orchestration change policy generation sub-module regenerates the TSN flow enqueue policy and sends it to the enqueue control module.
[0184] An embodiment of the present invention also provides an adjustment of the enqueue policy for a specific TSN service flow under orchestration change:
[0185] For the qci = i service data, the target delay is adjusted from to The data packets that have completed the enqueue operation before the current time t remain unchanged; [t~W t,right) The residence operation of newly received data packets within the range adopts the smaller target delay before and after the scheduling policy configuration, that is Calculate the expected egress time slot, so as to adopt a relatively fast dequeue strategy in the disputed area. If it does not time out, perform the enqueue operation for the queue corresponding to this time slot. If it times out, do not perform the enqueue operation and directly send it to the dequeue control module for issuance; [W t,right ~∞), the residence operation of newly received data packets within the range adopts the new target delay after the scheduling policy configuration Calculate the expected egress time slot. If the enqueue operation is performed without timing out, perform the enqueue operation for the queue corresponding to this time slot. If it times out, do not perform the enqueue operation and directly send it to the dequeue control module for issuance.
[0186] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that makes a contribution to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
[0187] Figure 8 is a structural block diagram of a dynamic configuration system 200 according to an embodiment of the present invention, as Figure 8 shown. The system includes: a parsing module 201, configured to parse the dynamic configuration instruction in response to obtaining the dynamic configuration instruction to obtain a parsing result; an obtaining module 202, configured to obtain statistical information according to the parsing result, where the statistical information is used to characterize the current running data of the TSN converter; a determining module 203, configured to determine a dynamic change strategy according to the statistical information; a configuration module 204, configured to perform dynamic configuration change on the initial configuration according to the dynamic change strategy to obtain a target configuration.
[0188] An embodiment of the present invention also provides an electronic device, including: a memory storing an executable program; a processor for running the program, where when the program runs, it executes the dynamic configuration method described in any of the above embodiments.
[0189] Optionally, in this embodiment, the processor in the above electronic device may be set to run the executable program to execute the following steps:
[0190] Step S101, in response to obtaining the dynamic configuration instruction, parse the dynamic configuration instruction to obtain a parsing result.
[0191] Step S102, obtain statistical information according to the parsing result, where the statistical information is used to characterize the current running data of the TSN converter.
[0192] Step S103, determine a dynamic change strategy according to the statistical information.
[0193] Step S104, perform dynamic configuration change on the initial configuration according to the dynamic change strategy to obtain a target configuration.
[0194] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.
[0195] An embodiment of the present invention also provides a computer program product, including a computer program, where the computer program implements the dynamic configuration method described in any of the above embodiments when executed by a processor.
[0196] Optionally, in this embodiment, when the above computer program is executed by a processor, the following steps are implemented:
[0197] Step S101, in response to obtaining a dynamic configuration instruction, parse the dynamic configuration instruction to obtain a parsing result.
[0198] Step S102, obtain statistical information according to the parsing result, where the statistical information is used to characterize the current running data of the TSN converter.
[0199] Step S103, determine a dynamic change strategy according to the statistical information.
[0200] Step S104, perform dynamic configuration change on the initial configuration according to the dynamic change strategy to obtain a target configuration.
[0201] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.
[0202] An embodiment of the present invention also provides a computer-readable storage medium, where the computer-readable storage medium includes a stored executable program, and when the executable program runs, it controls the device where the computer-readable storage medium is located to execute the dynamic configuration method described in any of the above embodiments.
[0203] Optionally, in this embodiment, the above executable program may be set to store an executable program for executing the following steps:
[0204] Step S101, in response to obtaining a dynamic configuration instruction, parse the dynamic configuration instruction to obtain a parsing result.
[0205] Step S102: Obtain statistical information according to the parsing result, where the statistical information is used to characterize the current running data of the TSN converter.
[0206] Step S103: Determine a dynamic change strategy according to the statistical information.
[0207] Step S104: Dynamically configure and change the initial configuration according to the dynamic change strategy to obtain the target configuration.
[0208] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.
[0209] In the above embodiments of the present invention, the descriptions of the respective embodiments have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0210] In some embodiments provided by the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of units or modules can be in an electrical or other form.
[0211] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0212] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0213] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs.
[0214] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A dynamic configuration method, characterized in that, including: In response to obtaining a dynamic configuration instruction, parsing the dynamic configuration instruction to obtain a parsing result; Obtaining statistical information according to the parsing result, where the statistical information is used to characterize the current operation data of the TSN converter; Determining a dynamic change strategy according to the statistical information; Performing dynamic configuration change on the initial configuration in the TSN converter according to the dynamic change strategy to obtain a target configuration.
2. The dynamic configuration method according to claim 1, wherein The parsing result includes a dynamic configuration type and dynamic configuration parameters, where the dynamic configuration parameters correspond to the dynamic configuration type, and the dynamic configuration type includes time slot configuration and flow characteristic parameter configuration.
3. The dynamic configuration method according to claim 1, wherein The statistical information includes a residence time window.
4. The dynamic configuration method according to claim 3, characterized in that, Obtaining the residence time window includes: Obtaining multiple data packet statuses corresponding to multiple data packets; Determining a left boundary of the residence time window and a right boundary of the residence time window according to the data packet status; Determining the residence time window according to the left boundary of the residence time window and the right boundary of the residence time window.
5. The dynamic configuration method according to claim 4, wherein The determining the left boundary of the residence time window and the right boundary of the residence time window according to the data packet status includes: Determining the left boundary of the residence time window according to the next time slot index of the current time slot index; In response to the data packet status indicating that there is a data packet in the residence state, determining the right boundary of the residence time window according to the next time slot index of the time slot corresponding to the maximum enqueue index of the data packet; Or, in response to the data packet status indicating that there is no data packet in the residence state, determining the right boundary of the residence time window according to the left boundary.
6. The dynamic configuration method according to claim 4, wherein When the dynamic configuration type is time slot configuration, the determining a dynamic change strategy according to the statistical information includes: Determining a time slot length change parameter according to the parsing result; Determining a time slot timeline according to the time slot length change parameter and the residence time window; Determining the dynamic change strategy according to the time slot timeline.
7. The dynamic configuration method according to claim 6, wherein Determining the dynamic change strategy according to the time slot timeline includes: Determining a first time region and a second time region according to the current time and the right boundary of the residence time window, where the first time region is the time period from the current time to the right boundary of the residence time window, and the second time region is the time period from the right boundary of the residence time window to the end of the time slot timeline; Determining the dynamic change strategy to keep the time slots in the first time region on the time slot timeline unchanged, and at the same time changing the time slots in the second time region on the time slot timeline according to the time slot length change parameter.
8. The dynamic configuration method according to claim 4, wherein When the dynamic configuration type is flow characteristic parameter configuration, the determining a dynamic change strategy according to the statistical information includes: Determining a flow characteristic parameter change parameter according to the parsing result; Determining the dynamic change strategy according to the flow characteristic parameter change parameter and the residence time window.
9. The dynamic configuration method according to claim 8, wherein Determining the dynamic change strategy according to the flow characteristic parameter change parameter and the residence time window includes: Determine a first time region and a second time region according to the current moment and the right boundary of the residence time window, where the first time region is the time period from the current moment to the right boundary of the residence time window, and the second time region is the time period from the right boundary of the residence time window to the end of the time slot time axis; For the data packets received in the first time region, determine the target delay of the data packets according to the minimum value of the target delay before change and the target delay after change in the flow characteristics of the flow to which the data packets belong, where the target delay before change is included in the statistical information, and the target delay after change is included in the flow characteristic parameter change parameter; Alternatively, for the data packets received in the second time region, determine the target delay of the data packets according to the target delay after change in the flow characteristics of the flow to which the data packets belong; Determine a dynamic change strategy according to the target delay and the residence time window.
10. The dynamic configuration method according to claim 1, wherein In response to obtaining a dynamic configuration instruction, parse the dynamic configuration instruction to obtain a parsing result, including: Perform a legality check on the dynamic configuration instruction according to a preset rule to obtain a check result; In response to the check result indicating that the dynamic configuration instruction is legal, add the dynamic configuration instruction to a preset parsing queue; Parse the dynamic configuration instructions in the preset parsing queue to obtain the parsing result.
11. The dynamic configuration method according to claim 1, wherein Further includes: While dynamically configuring and changing a target module according to the dynamic change strategy, start a timer, where the timer is configured according to a residence time window, and the residence time window is included in the statistical information; In response to the expiration of the timer, output a configuration completion instruction, where the configuration completion instruction is used to indicate that the dynamic configuration change of the TSN converter is successful.
12. An electronic device, characterized in that, Includes: A memory storing an executable program; A processor for running the program, where the program, when running, executes the method according to any one of claims 1 to 11.
13. A computer program product, characterized in that, Includes a computer program, where the computer program, when executed by a processor, implements the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, where, when the executable program runs, it controls the device where the storage medium is located to execute the method according to any one of claims 1 to 11.
Citation Information
Cited By
Data processor, method, electronic device and storage medium
CN121209965A
Data processor, method, electronic device and storage medium
CN121209965B