System and method for dynamic latency optimization of a kvm device
By deploying an evaluation module in the KVM device to collect and calculate latency data in real time and dynamically adjust the transmission interval, the latency problem of KVM devices in the power system caused by fixed parameter configuration is solved, realizing efficient resource utilization and real-time and accurate operation and maintenance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- STATE GRID BEIJING ELECTRIC POWER CO
- Filing Date
- 2026-03-27
- Publication Date
- 2026-06-26
AI Technical Summary
In power systems, the fixed parameter configuration of KVM devices leads to data congestion during peak hours and waste of network resources during off-peak hours. It cannot effectively adapt to scenarios with a large number of devices, dispersed locations, and frequent fluctuations in network load and transmission distance, affecting the real-time performance and accuracy of operation and maintenance.
By deploying evaluation modules at both the transmitter and receiver ends in the KVM device, latency data at each stage of the data transmission process can be collected and calculated in real time. This allows for dynamic adjustment of the data transmission interval, avoiding resource waste, optimizing latency, and adapting to dynamic loads.
It enables dynamic optimization of KVM device latency without increasing hardware investment, avoiding data congestion during peak periods and resource waste during off-peak periods, improving the real-time performance and accuracy of operation and maintenance, and adapting to changes in complex network environments.
Smart Images

Figure CN122293589A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system operation and maintenance technology, and more specifically, to a delay dynamic optimization system and method for KVM devices. Background Technology
[0002] In current power systems, based on safety and system uniformity requirements, remote monitoring and centralized control have become the main methods of power system operation and maintenance management, such as... Figure 1 As shown, Figure 1 This diagram illustrates the structure of a power equipment operation and maintenance system applied in current related technologies. The system includes a KVM device 100 (KVM stands for Keyboard VideoMouse, which allows direct access to and control of a remote computer via a direct connection to a keyboard, video, or mouse port), equipment 200 in the substation, and an operation and maintenance terminal 300. The KVM device 100 connects the operation and maintenance terminal 300 to the equipment 200. Utilizing KVM technology, operation and maintenance personnel in the dispatch center can operate each piece of equipment 200 in the substation through the operation and maintenance terminal 300 and view the screen of the corresponding equipment 200 without needing to connect a mouse, keyboard, or other input devices to each device, effectively achieving control over operation and maintenance safety.
[0003] In the early days, due to the relatively small number and concentrated nature of devices in power systems, short-distance transmission via dedicated cables between KVM transmitters and receivers was sufficient to ensure timely data transmission for maintenance. However, with the continuous development of power systems, their size has increased, and the number and distribution of devices within a single system have also grown. Consequently, the demand for KVM technology has become increasingly strong. On the other hand, the sheer size and complexity of these systems have led to increasingly complex and longer-distance network cabling for communication connections between KVM transmitters and receivers. This has resulted in significant signal latency issues with existing KVM technologies during maintenance, particularly when transmitting high-definition video signals and USB control signals via network cables. Latency issues can have a serious negative impact on power system operation. On the one hand, the control lag of operation signals from remote maintenance personnel will significantly reduce the real-time performance and accuracy of human-machine interaction. In high real-time applications such as power dispatching and protection configuration, this may lead to misoperation of control signals or system malfunctions, thereby causing power accidents. On the other hand, the delay of remote monitoring screens will prevent maintenance personnel from timely grasping the real-time operating status of equipment 200, reducing the efficiency of power system fault response and weakening the actual value of the dispatch center's monitoring of each piece of equipment 200.
[0004] Currently, latency issues with KVM devices have become a key concern for operations and maintenance (O&M) system developers. Existing solutions primarily involve improving the performance of physical devices and setting fixed parameter configurations. Improving physical device performance requires significant investment and can lead to unnecessary hardware resource waste during off-peak data communication periods, but it doesn't effectively address the latency issue between control signals and their corresponding display information during peak data periods. Setting fixed parameter configurations, including fixed transmission intervals and fixed bandwidth solutions, is too inefficient to meet the needs of the numerous and geographically dispersed devices (200) in current power systems. Furthermore, the inconsistent signal transmission distance between each device (200) and the O&M operation terminal (300) results in varying latency when O&M personnel operate different devices (200) through the O&M operation terminal (300). A uniform parameter configuration cannot adapt to all devices (200) or the dynamic load of the power system. In the daily operation of power systems, network load is highly volatile. For example, there are many maintenance tasks during the day and only inspections at night. Fixed transmission intervals can cause data packet queuing and congestion during peak periods, while affecting real-time performance and wasting network resources during low load periods. This cannot effectively solve the problem of time delay between the operation signals of system maintenance personnel and their corresponding operation results.
[0005] Therefore, without increasing hardware investment, how to get rid of the congestion and resource waste caused by the fixed parameter configuration of KVM devices in power operation and maintenance scenarios with a large number of devices under maintenance, scattered locations, and frequent fluctuations in network load and transmission distance, and effectively dynamically reduce and suppress the interaction latency of KVM devices, has become an urgent technical problem to be solved. Summary of the Invention
[0006] This invention provides a dynamic latency optimization system and method for KVM devices, which at least solves the technical problems of peak-hour data congestion and off-peak-hour network resource waste caused by fixed parameter configuration in related technologies.
[0007] One objective of this invention is to provide a dynamic latency optimization system and method for KVM devices, wherein the system and method dynamically adjust the data transmission interval based on the actual operating conditions of the KVM device to achieve dynamic optimization of transmission latency, thereby avoiding data congestion during peak periods and network resource waste during off-peak periods.
[0008] Another objective of this invention is to provide a dynamic latency optimization system and method for KVM devices. This system and method collect latency data at each stage of the data transmission process of the KVM device and use the collected data to calculate and use as a trigger condition for adjusting the data transmission interval, thereby ensuring the effective use of resources and avoiding resource waste.
[0009] Another objective of this invention is to provide a dynamic latency optimization system and method for KVM devices. This system and method calculate based on collected data to reasonably determine the data transmission interval, thereby achieving targeted optimization of the current operating state of the KVM device.
[0010] Another objective of this invention is to provide a dynamic latency optimization system and method for KVM devices. This system and method are based on targeted optimization of the data transmission interval of KVM devices, which enables dynamic adjustment of the data transmission interval and avoids the use of uniform and fixed parameter configurations, effectively adapting to the dynamic load of the operation and maintenance system.
[0011] Another objective of this invention is to provide a dynamic latency optimization system and method for KVM devices. This system and method avoid resource waste and ensure the real-time performance and accuracy of operation and maintenance by setting a threshold range for the data transmission interval and adjusting the data transmission interval within this threshold range.
[0012] Another objective of this invention is to provide a delay dynamic optimization system and method for KVM devices. When determining whether to optimize and update the transmission interval, the system and method also refer to previous data, making the determination of triggering optimization and the optimization results more consistent with the actual situation of the line, which is beneficial to improving the pertinence and effectiveness of delay dynamic optimization.
[0013] According to one aspect of the present invention, the present invention provides a latency dynamic optimization system for a KVM device. The KVM device includes a KVM transmitter and a KVM receiver. The latency dynamic optimization system for the KVM device includes: a transmitter acquisition and evaluation module and a transmitter scheduling and evaluation module deployed at the KVM transmitter, and a receiver scheduling and evaluation module and a receiver driver evaluation module deployed at the KVM receiver.
[0014] The transmitter acquisition and evaluation module is used to obtain the time T from when the relevant data enters the transmitter acquisition module of the KVM transmitter to when it is input to the transmitter scheduling module. acdelay ;
[0015] The transmitter scheduling evaluation module is used to acquire the duration T from the input of data to the output of data from the transmitter scheduling module. sc1delay And obtain the network time T when the KVM transmitter outputs data. ns Network time T ns The data is sent to the KVM receiver along with the data.
[0016] The receiver scheduling evaluation module is used to obtain the network time T for the receiver scheduling module to complete data reception. ne And calculate network time T ne and network time T nsThe difference is used to obtain the network transmission delay T. netdelay And obtain network time T ne The duration T between the moment the data is completely input to the receiving end driver module. sc2delay ;
[0017] The receiver driver evaluation module is used to obtain the time T from when the receiver driver module acquires data to when it completes data processing. drdelay ;
[0018] The transmitter scheduling and evaluation module obtains the duration T. acdelay Duration T netdelay Duration T sc2delay Duration T drdelay And calculate the data transmission delay T. delay Transmission delay T senddelay Receive transmission delay T recvdelay and network transmission latency T netdelay With data transmission delay T delay If the ratio R is less than a first preset threshold or greater than a second preset threshold, the data transmission interval of the transmitter scheduling module is adjusted, wherein the first preset threshold is less than the second preset threshold.
[0019] Furthermore, calculate the data transmission delay T. delay Transmission delay T senddelay Receive transmission delay T recvdelay The steps include: based on duration T acdelay Duration T sc1delay Calculate the transmission delay T senddelay Among them, the transmission delay T is calculated. senddelay The formula is: T senddelay =T acdelay +T sc1delay Based on duration T sc2delay Duration T drdelay Target transmission delay T' netdelay Calculate the received transmission delay T recvdelay Among them, the received transmission delay T is calculated. recvdelay The formula is: T recvdelay =T' netdelay +T sc2delay +T drdelay , where T' netdelay T is calculated N times in history netdelay The maximum value in the range, N>3, and N is a natural number; based on the transmission delay T senddelay The received transmission delay T recvdelay Calculate the data transmission delay T delay The data transmission delay T is calculated.delay The formula is: T delay =T senddelay +T recvdelay .
[0020] Furthermore, the transmitter scheduling evaluation module is used to calculate the minimum threshold T. interval_L and maximum threshold T interval_H and greater than or equal to the minimum threshold T interval_L And less than or equal to the maximum threshold T interval_H Set the transmission interval T within the range of the interval. interval Minimum threshold T interval_L and maximum threshold T interval_H The following steps were used to calculate the result:
[0021] Calculation duration T sc2delay With duration T drdelay Sum of these to obtain the first value;
[0022] Combine the first value and the duration T acdelay The maximum value in is determined as the transmission interval T. interval Minimum threshold T interval_L ;
[0023] Transmission delay T senddelay With the received transmission delay T recvdelay The maximum value in is determined as the transmission interval T. interval Maximum threshold T interval_H .
[0024] Furthermore, when the threshold T is greater than or equal to the minimum threshold T interval_L And less than or equal to the maximum threshold T interval_H Set the transmission interval T within the range of the interval. interval The steps include:
[0025] Calculate the initial value based on the historical network transmission delay calculated according to the preset number of times and the preset number of times;
[0026] Calculate initial values and duration T sc2delay and duration T drdelay The sum of these two values yields the transmission interval T. interval ;
[0027] Determine the transmission interval T interval Is it greater than or equal to the minimum threshold T? interval_L And the sending interval T interval Is it less than or equal to the maximum threshold T? interval_H If the transmission interval T interval Greater than or equal to the minimum threshold T interval_L And the sending interval T interval Less than or equal to the maximum threshold T interval_HThen the transmission interval T will be... interval This serves as the data transmission interval for the transmitter scheduling module.
[0028] Furthermore, where the initial value T'' interval The calculation formula is: T netdelayN T netdelayN-1 ...T1 represents the network transmission delay of the most recent N data collections.
[0029] Furthermore, the first preset threshold is 50%, and the second preset threshold is 70%.
[0030] According to another aspect of the present invention, the present invention provides a method for dynamic latency optimization of a KVM device, wherein the KVM device includes a KVM transmitter and a KVM receiver, the KVM transmitter includes: a transmitter acquisition and evaluation module and a transmitter scheduling and evaluation module, the KVM receiver includes: a receiver scheduling and evaluation module and a receiver driver evaluation module, and the method for dynamic latency optimization of the KVM device includes:
[0031] S1, Acquire latency data, wherein S11, acquire the time T from the time the corresponding data enters the transmitter acquisition module of the KVM transmitter to the time it is input to the transmitter scheduling module. acdelay S12. Obtain the time T from the input of data to the output of data from the transmitter scheduling module. sc1delay And the network time T when the KVM transmitter output data is acquired. ns Network time T ns The data is transmitted to the KVM receiver along with the data; S13, obtain the network time T for the receiver scheduling module to complete the data reception. ne And calculate network time T ne and network time T ns The difference is used to obtain the network transmission delay T. netdelay and obtaining network time T ne The duration T between the moment the data is completely input to the receiving end driver module. sc2delay S14. Obtain the time T from when the receiving end driver module acquires data to when it finishes processing the data. drdelay ;
[0032] S2. Calculate multiple delays based on the collected delay data, wherein the multiple delays include at least: data transmission delay T. delay Transmission delay T senddelay and the reception and transmission delay T recvdelay ;
[0033] S3, Calculate network transmission delay T netdelay and data transmission delay T delayIf the ratio R is less than a first preset threshold or greater than a second preset threshold, the data transmission interval of the transmitter scheduling module is adjusted, wherein the first preset threshold is less than the second preset threshold.
[0034] Furthermore, the steps for calculating multiple delays based on delay data include: based on duration T acdelay Duration T sc1delay Calculate the transmission delay T senddelay Among them, the transmission delay T is calculated. senddelay The formula is: T senddelay =T acdelay +T sc1delay Based on duration T sc2delay Duration T drdelay Target transmission delay T' netdelay Calculate the received transmission delay T recvdelay Among them, the received transmission delay T is calculated. recvdelay The formula is: T recvdelay =T' netdelay +T sc2delay +T drdelay , where T' netdelay T is calculated N times in history netdelay The maximum value in the range, N>3, and N is a natural number; based on the transmission delay T senddelay The received transmission delay T recvdelay Calculate the data transmission delay T delay The data transmission delay T is calculated. delay The formula is: T delay =T senddelay +T recvdelay .
[0035] Furthermore, in S3, the network transmission delay T is calculated. netdelay and data transmission delay T delay Following the ratio R, delay dynamic optimization methods also include:
[0036] S4. Set the sending interval T interval ;
[0037] S41. Determine the transmission interval T interval The range, including S411 and calculation time T. sc2delay With duration T drdelay S412, sum the first value with the duration T to obtain the first value; acdelay The maximum value in is determined as the transmission interval T. interval Minimum threshold T interval_L S413, Transmission delay T senddelay With the received transmission delay Trecvdelay The maximum value in is determined as the transmission interval T. interval Maximum threshold T interval_H ;
[0038] S42, at the minimum threshold T interval_L and maximum threshold T interval_H Set the transmission interval T within the range of the interval. interval .
[0039] Furthermore, at the minimum threshold T interval_L and maximum threshold T interval_H Set the transmission interval T within the range of the interval. interva The steps include:
[0040] S421. Based on the historical network transmission delay calculated according to the preset number of times and the preset number of times, calculate the initial value T''. interval ;
[0041] S422, Based on initial value T'' interval Duration T sc2delay Duration T drdelay Calculate the transmission interval T interval , among which, T interval =T'' interval +T sc2delay +T drdelay ;
[0042] S423. Determine the transmission interval T interval Is it greater than or equal to the minimum threshold T? interval_L And less than or equal to the maximum threshold T interval_H If the transmission interval T interval Greater than or equal to the minimum threshold T interval_L And less than or equal to the maximum threshold T interval_H Then the transmission interval T will be... interval This serves as the data transmission interval for the transmitter scheduling module.
[0043] Further, in step S421, the initial value T'' is calculated. interval The calculation formula is: T netdelayN T netdelayN-1 ...T1 represents the network transmission delay of the most recent N data collections.
[0044] Furthermore, the first preset threshold is 50%, and the second preset threshold is 70%. Attached Figure Description
[0045] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0046] Figure 1 A structural diagram of a power equipment operation and maintenance system applied in current related technologies is shown;
[0047] Figure 2 This is an interactive schematic diagram of a latency dynamic optimization system for a KVM device according to an embodiment of the present invention;
[0048] Figure 3 This is a structural diagram of a KVM device configured in a delay dynamic optimization system according to an embodiment of the present invention;
[0049] Figure 4 This is a structural diagram of a KVM transmitter and a KVM receiver according to an embodiment of the present invention;
[0050] Figure 5 This is a flowchart illustrating the steps of a dynamic latency optimization method for a KVM device according to an embodiment of the present invention. Detailed Implementation
[0051] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0052] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention 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 where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0053] It should be noted that all related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) collected and involved in this invention are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of this data comply with the relevant laws, regulations, and standards of the relevant regions, necessary confidentiality measures have been taken, and it does not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained only after receiving consent from the aforementioned user or organization.
[0054] In the daily operation of power systems, network load exhibits significant fluctuations. For example, during the day, there are many maintenance tasks, while at night only inspections are conducted. Fixed transmission intervals can lead to data packet queuing and congestion during peak periods, while impacting real-time performance and wasting network resources during low-load periods. This invention addresses this by collecting latency data at each stage of the KVM device's data transmission process in modules. This allows for precise quantification of the total latency and individual component latency of the KVM device, determining whether optimization is necessary. When optimization is required, parameters are flexibly adjusted, avoiding both data transmission congestion during peak maintenance periods and network resource waste during off-peak periods. This enables targeted optimization of data transmission for each device, avoiding the use of uniform, fixed parameter configurations. It effectively adapts to the dynamic load of the maintenance system without requiring hardware upgrades, thus avoiding substantial hardware optimization costs and resource waste. This approach is both practical and economical.
[0055] Specifically, the present invention provides a delay dynamic optimization system for a KVM device, with reference to... Figure 2 and Figure 3 and combined Figure 1 The KVM device's latency dynamic optimization system is deployed in the KVM device 100 of the communication connection device 200 and the operation and maintenance terminal 300. The KVM device 100 includes a KVM transmitter 10 and a KVM receiver 20. The KVM device's latency dynamic optimization system includes a transmitter acquisition and evaluation module 11 and a transmitter scheduling and evaluation module 12 deployed on the KVM transmitter 10, and a receiver scheduling and evaluation module 21 and a receiver driver evaluation module 22 deployed on the KVM receiver 20. The KVM device's latency dynamic optimization system collects latency data at each stage of the data transmission process based on the evaluation modules deployed on the KVM transmitter 10 and the KVM receiver 20, so as to accurately collect the latency during the operation of the KVM device 100, accurately know the working status of the operation and maintenance system, accurately determine whether optimization is needed, and provide data support for subsequent optimization.
[0056] Optionally, the number of components in the delay dynamic optimization system can be one, while in another embodiment, the number of components can be multiple, and there is no limit to the number.
[0057] Specifically, refer to Figure 2 The transmitter acquisition and evaluation module 11 is used to obtain the time T of the corresponding data from the transmitter acquisition module 101 entering the KVM transmitter 10 to the transmitter scheduling module 102. acdelay The transmitter scheduling and evaluation module 12 is used to acquire the duration T from the input of data to the output of data from the transmitter scheduling module 102. sc1delay Instant long T sc1delay The duration for which the transmitter scheduling module 102 processes data; wherein the transmitter scheduling module 102 further obtains the network time T when the KVM transmitter 100 outputs data. ns Network time T ns The data is sent to the KVM receiver 20.
[0058] The KVM receiver 20 receives data sent by the KVM transmitter 10, wherein the receiver scheduling evaluation module 21 is used to obtain the network time T for the receiver scheduling module 201 of the KVM receiver 20 to complete the data reception. ne And calculate network time T ne and network time T ns The difference is used to obtain the network transmission delay T. netdelay That is, network transmission delay T netdelay The time taken for the KVM transmitter 10 to send data to the KVM receiver 20 and complete the data reception reflects the latency incurred by the KVM transmitter 10 sending data to the KVM receiver 20. The receiver scheduling and evaluation module 21 further obtains the network time T. ne The duration T between the moment when the data is completely input to the receiver driver module 202 of the KVM receiver 20 and the moment when the data is completely input is the duration T. sc2delay The receiver driver evaluation module 22 is used to obtain the time T from when the receiver driver module 202 acquires data to when the data is processed. drdelay .
[0059] Based on the acquisition of various latency data during data transmission by the transmitter acquisition and evaluation module 11, the transmitter scheduling and evaluation module 12, the receiver scheduling and evaluation module 21, and the receiver driver evaluation module 22, the latency dynamic optimization system of the KVM device can accurately acquire the latency T. acdelay Duration T sc1delay Duration T netdelay Duration T sc2delay Duration Tdrdelay Based on accurate data collection at various time intervals, the KVM device's latency dynamic optimization system can accurately determine the total data transmission latency, the latency generated by the KVM transmitter 10, the latency generated by the KVM receiver 20, and the network latency generated during the process of the KVM transmitter 10 sending data to the KVM receiver 20. This ensures the accuracy of data acquisition and provides accurate data support for subsequent judgment and optimization.
[0060] Specifically, the transmitter scheduling and evaluation module 12 acquires the duration T collected by other modules. acdelay Duration T netdelay Duration T sc2delay Duration T drdelay And calculate the data transmission delay T. delay Transmission delay T senddelay Receive transmission delay T recvdelay and network transmission latency T netdelay and data transmission delay T delay The ratio R is adjusted when R is less than a first preset threshold or greater than a second preset threshold. The first preset threshold is less than the second preset threshold.
[0061] T senddelay =T acdelay +T sc1delay ;
[0062] T recvdelay =T' netdelay +T sc2delay +T drdelay , where T' netdelay T is the result of N previous calculations. netdelay The largest value in the range, N>3, and N is a natural number;
[0063] T delay =T senddelay +T recvdelay .
[0064] The transmitter scheduling and evaluation module 12 is based on the network transmission delay T. netdelay and data transmission delay T delay Calculate the delay ratio R (i.e., network transmission delay T). netdelay With data transmission delay T delay The ratio of latency to total latency (R) can be used to determine whether network transmission accounts for the majority of total latency, and thus decide whether it is necessary to adjust the transmission interval to optimize network performance and reduce total latency, ensuring the rationality of starting optimization.
[0065] Specifically, in this embodiment of the invention, the first preset threshold is set to 50%, and the second preset threshold is set to 70%. When the latency ratio R is less than the first preset threshold, meaning the network transmission latency accounts for a small proportion of the overall latency, the system may be under low load. When the latency ratio R is greater than the second preset threshold, meaning the network transmission latency accounts for a large proportion of the overall latency, the network may be under congestion. In this case, adjusting the data transmission interval at the transmitter (i.e., the interval between two consecutive data transmissions) allows for dynamic adjustment of the data transmission interval based on the latency ratio, adapting to changes in network load and ensuring data transmission efficiency and system stability. Shortening the transmission interval under low network load reduces resource idleness, while extending the transmission interval under high network load avoids data congestion. This avoids using a uniform, fixed parameter configuration, allowing for the adaptation of reasonable transmission intervals to different devices at different deployment distances, effectively adapting to the complexity and dynamic changes of the operation and maintenance system.
[0066] Specifically, in calculating the receive transmission delay T recvdelay At the same time, the network transmission latency T recorded in the past was also taken into account. netdelay This is to reduce the impact of fluctuations in the transmission rate caused by different instantaneous transmission loads on the line and sudden interference on the system's judgment.
[0067] In summary, by integrating the acquisition and evaluation modules and the scheduling and evaluation modules at the transmitter and receiver ends of the KVM device, real-time latency data during data transmission is obtained, including latency for data acquisition, internal scheduling, network transmission, and receiver processing. This enables the calculation of the ratio between network transmission latency and data transmission latency. Based on this ratio, the network load status can be determined. When the latency ratio is less than a first preset threshold, or greater than a second preset threshold, the data transmission interval is dynamically adjusted to optimize the transmitter's scheduling strategy. This effectively matches the dynamic needs of power system operation and maintenance, avoids resource waste or data congestion caused by improper transmission interval settings, and thus solves the technical problem in related technologies where fixed parameter configurations cannot meet the real-time signal transmission requirements of switches under dynamic load changes.
[0068] In practice, when the transmitter acquisition module 11 receives data input to the KVM transmitter 10, it immediately records the time of that moment as the start time of the data entering the KVM transmitter 10. The data is then transmitted to the transmitter scheduling module 102. The time spent in this process is the duration T. acdelay Afterwards, the transmitter scheduling module 102 begins processing the received data until the data is fully ready and output, a period of time called T. sc1delay And at this time, the transmitter scheduling acquisition module 12 records the output time T when the transmitter scheduling module 102 outputs data. nsThis timestamp is sent along with the data to the KVM receiver 20 for subsequent calculation of network transmission latency T. netdelay .
[0069] Furthermore, the moment when the data arrives at the receiving end scheduling module 201 and is fully received is the reception time T. ne The receiving end scheduling and evaluation module 21 obtains the reception time T when data reception is completed. ne And obtain the duration T of the data being sent from the receiving end scheduling module 201 to the receiving end driver module 202. sc2delay (That is, the transmission time from scheduling to driver processing), the time from when the receiving end driver module 202 processes the data until completion is the duration T. drdelay .
[0070] In particular, to improve the accuracy of adjusting the data transmission interval and ensure the timeliness and stability of system operation, this invention sets a minimum threshold T. interval_L and a maximum threshold T interval_H and greater than or equal to the minimum threshold T interval_L and less than or equal to the maximum threshold T interval_H Set the transmission interval T within the range of the interval. interval .
[0071] In this invention, the transmission interval T is determined. interval Minimum threshold T interval_L and the maximum threshold T interval_H Therefore, the transmission interval T is determined. interval The threshold range (i.e., [T]) interval_L T interval_H Based on this threshold range, the data transmission interval is adjusted to avoid resource waste while ensuring the real-time performance and accuracy of operation and maintenance.
[0072] To accurately determine the minimum threshold T interval_L and maximum threshold T interval_H The minimum threshold T is calculated through the following steps. interval_L and maximum threshold T interval_H :
[0073] Calculation duration T sc2delay With duration T drdelay Sum of these to obtain the first value;
[0074] Based on the first value and duration T acdelay The maximum value in is the transmission interval T. interval Minimum threshold T interval_L ;
[0075] Transmission delay T senddelayWith the received transmission delay T recvdelay The maximum value in is the transmission interval T. interval Maximum threshold T interval_H .
[0076] To accurately adjust the data transmission interval, the transmitter scheduling and evaluation module 12 calculates the transmission interval T through the following steps. interval This includes: calculating the initial value based on the historical network transmission delay calculated according to the preset number of times and the preset number of times; and the sending interval T. interval Initial value, duration T sc2delay and duration T drdelay The sum; and in the transmission interval T interval Greater than or equal to the minimum threshold T interval_L and less than or equal to the maximum threshold T interval_H In this case, the transmission interval T will be... interval This serves as the data transmission interval for the transmitter scheduling module.
[0077] Historical network transmission delays (e.g., T1, T2) calculated multiple times (i.e., a preset number of times) are obtained. netdelayN-1 ,…,T netdelayN The network transmission delay of the most recent N times and the preset number of times are included as calculation factors in the transmission interval T. interval The calculation is performed to obtain the transmission interval T. interval It can conform to the transmission path characteristics of the device 200 connected to the corresponding KVM device 100 and the operation and maintenance terminal 300, which is conducive to improving the pertinence and effectiveness of dynamic latency optimization.
[0078] Specifically, the initial value T'' interval The calculation formula is: T netdelayN T netdelayN-1 ...T1 represents the network transmission latency of the most recent N data collections. Based on the initial value and duration T... sc2delay and duration T drdelay Calculate the transmission interval T interval (Right now This gives us the transmission interval T. interval Thus, for scenarios with a large number of operating nodes and high network load in power systems, this invention effectively achieves dynamic optimization and adjustment of the transmission interval of the transmitter scheduling module, and optimizes the applicability of the KVM device's dynamic latency optimization system in complex network environments.
[0079] Figure 4 This is a structural diagram of a KVM transmitter and a KVM receiver according to an embodiment of the present invention, as shown below. Figure 4As shown, both the KVM transmitter 10 and the KVM receiver 20 include a CCM3310 microprocessor (a microcontroller) and a VS3000 data transmission device. The KVM transmitter 10 and the KVM receiver 20 are connected via a network cable. The CCM3310 microprocessor and the VS3000 data transmission device communicate via a Universal Asynchronous Receiver / Transmitter (UART) interface. UART-TX indicates data transmission, and UART-RX indicates data reception. In UART communication, the UART-TX pin is used for transmitting data, and the UART-RX pin is used for receiving data. The microprocessor and data transmission device can also communicate via parallel reception, SPI (Serial Peripheral Interface) (a synchronous serial data link standard), or Modbus (a standard serial communication protocol) bus in a serial interface. Alternatively, an integrated microprocessor and data transmission device solution can be used.
[0080] The transmitter acquisition module 101, transmitter scheduling module 102, transmitter acquisition evaluation module 11, and transmitter scheduling evaluation module 12 operate in the microprocessor CCM3310 of the KVM transmitter 10, and the receiver scheduling module 201, receiver driver module 202, receiver scheduling evaluation module 21, and receiver driver evaluation module 22 operate in the microprocessor CCM3310 of the KVM receiver 20.
[0081] The transmitter acquisition module 101 and transmitter acquisition evaluation module 11 can be integrated to perform evaluation during data acquisition at the KVM transmitter 10. The transmitter scheduling module 102 and transmitter scheduling evaluation module 12 can also be integrated. The receiver scheduling module 201 and receiver scheduling evaluation module 21 can also be integrated. The receiver driver module 202 and receiver driver evaluation module 22 can also be integrated.
[0082] In this invention, latency data is first measured at each stage of data acquisition, internal scheduling, network transmission, and receiving end processing. Then, based on all latency data, the network transmission latency and data transmission latency (i.e., total transmission latency) are calculated, and the ratio of network transmission latency to data transmission latency is determined. Based on this ratio, the data transmission interval is dynamically adjusted to ensure that the transmission interval is shortened under low network latency conditions to fully utilize network resources, while the transmission interval is appropriately extended under network congestion conditions to avoid data packet accumulation and maintain system stability. Furthermore, a threshold for adjusting the transmission interval can be set based on historical network transmission latency, ensuring the real-time performance and accuracy of remote operations, reducing the risk of misoperation due to signal latency issues, and improving the overall efficiency of power system operation and maintenance.
[0083] Further, refer to Figure 2 and Figure 5 and combined Figure 1 The present invention also provides a method for dynamic latency optimization of a KVM device, wherein the method for dynamic latency optimization of a KVM device includes the following steps:
[0084] S1. Collect latency data to accurately collect latency data of the KVM device 100 at each stage of data transmission, so as to accurately understand the working status of the operation and maintenance system, accurately determine whether optimization is needed, and provide data support for subsequent optimization.
[0085] S2. Calculate latency: Calculate the total latency and network latency using the collected latency data to provide accurate data support for subsequent judgment and optimization.
[0086] S3. Optimization Judgment: Based on the calculation results, determine whether to optimize. If no optimization is performed, the original transmission interval will continue to operate. If optimization is performed (triggered when the ratio is less than 50% or greater than 70%, i.e. when the delay ratio is less than the first preset threshold or greater than the second preset threshold), the transmission interval can be adjusted to ensure the effective use of resources and avoid resource waste.
[0087] Specifically, step S1 includes:
[0088] S11. Obtain the time T from when the relevant data enters the transmitter acquisition module of the KVM transmitter to when it is input to the transmitter scheduling module. acdelay ;
[0089] S12. Obtain the time T from the input of data to the transmitter scheduling module to the output of data from the transmitter scheduling module. sc1delay And the network time T when the KVM transmitter output data is acquired. ns Network time T ns The data is transmitted to the KVM receiver along with the data.
[0090] S13. Obtain the network time T for the receiving end scheduling module to complete data reception. ne And calculate network time T ne and network time T ns The difference is used to obtain the network transmission delay T. netdelay and obtaining network time T ne The duration T between the moment the data is completely input to the receiving end driver module. sc2delay ;
[0091] S14. Obtain the time T from when the receiving end driver module acquires data to when it completes data processing. drdelay To accurately collect duration T acdelay Duration T sc1delay Duration T netdelay Duration T sc2delay Duration T drdelay This provides data support for subsequent calculations.
[0092] Furthermore, step S2 specifically calculates the transmission delay T based on the data collected in step S1. senddelay The calculation formula is: T senddelay =T acdelay +T sc1delay ; Calculate the receive transmission delay T recvdelay The calculation formula is: T recvdelay =T' netdelay +T sc2delay +T drdelay , where T' netdelay T is the result of N previous calculations. netdelay The largest value in the set, N>3, and N is a natural number; calculate the data transmission delay T. delay The calculation formula is: T delay =T senddelay +T recvdelay This provides accurate data support for subsequent judgment and optimization, and also helps in calculating the received transmission delay T. recvdelay At the same time, the network transmission latency T recorded in the past was also taken into account. netdelay This is to reduce the impact of fluctuations in the transmission rate caused by different instantaneous transmission loads on the line and sudden interference on the system's judgment.
[0093] Further, in step S3, the network transmission delay T is calculated. netdelay and data transmission delay T delayIf the ratio R is less than a first preset threshold or greater than a second preset threshold, the data transmission interval of the transmitter scheduling module is adjusted. The first preset threshold is less than the second preset threshold. This can be used to determine whether network transmission accounts for the main part of the total latency, and then decide whether it is necessary to adjust the transmission interval to optimize network performance and reduce total latency, thus ensuring the rationality of starting optimization.
[0094] Specifically, in this embodiment of the invention, the first preset threshold is set to 50%, and the second preset threshold is set to 70%. When the latency ratio R is less than the first preset threshold, meaning the network transmission latency accounts for a small proportion of the overall latency, the system may be under low load. When the latency ratio R is greater than the second preset threshold, meaning the network transmission latency accounts for a large proportion of the overall latency, the network may be under congestion. In this case, adjusting the data transmission interval at the transmitter (i.e., the interval between two consecutive data transmissions) allows for dynamic adjustment of the data transmission interval based on the latency ratio, adapting to changes in network load and ensuring data transmission efficiency and system stability. Shortening the transmission interval under low network load reduces resource idleness, while extending the transmission interval under high network load avoids data congestion. This avoids using a uniform, fixed parameter configuration, allowing for the adaptation of reasonable transmission intervals to different devices at different deployment distances, effectively adapting to the complexity and dynamic changes of the operation and maintenance system.
[0095] Furthermore, the delay dynamic optimization method for the KVM device further includes step S4, setting the transmission interval, which includes the following steps:
[0096] S41. Determine the transmission interval T interval The scope includes:
[0097] S411, Calculation duration T sc2delay With duration T drdelay Sum of these to obtain the first value;
[0098] S412, Combine the first value and the duration T acdelay The maximum value in is determined as the transmission interval T. interval Minimum threshold T interval_L ;
[0099] S413, Transmission delay T senddelay With the received transmission delay T recvdelay The maximum value in is determined as the transmission interval T. interval Maximum threshold T interval_H ;
[0100] S42, at the minimum threshold T interval_L and maximum threshold T interval_H Set the transmission interval T within the range of the interval.interval This is to avoid wasting resources and to ensure the real-time and accuracy of operation and maintenance.
[0101] Specifically, step S42 includes:
[0102] S421. Based on the historical network transmission delay calculated according to the preset number of times and the preset number of times, calculate the initial value T''. interval ;
[0103] S422, Calculate the transmission interval T interval T interval =T'' interval +T sc2delay +T drdelay ;
[0104] S423. Determine the transmission interval T interval Is it greater than or equal to the minimum threshold T? interval_L Less than or equal to the maximum threshold T interval_H If so, then the transmission interval T will be sent. interval This serves as the data transmission interval for the transmitter scheduling module.
[0105] Specifically, in step S421, the initial value T'' is calculated. interval The calculation formula is: T netdelayN T netdelayN-1 ...T1 represents the network transmission delay from the most recent N data collections, calculated using historical network transmission delays (e.g., T1, T...) based on a preset number of data collections. netdelayN-1 ,…,T netdelayN The network transmission delay of the most recent N times and the preset number of times are included as calculation factors in the transmission interval T. interval The calculation is performed to obtain the transmission interval T. interval It can conform to the transmission path characteristics of the device 200 connected to the corresponding KVM device 100 and the operation and maintenance terminal 300, which is conducive to improving the pertinence and effectiveness of dynamic latency optimization.
[0106] According to another aspect of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the latency dynamic optimization method of the KVM device described above.
[0107] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a latency dynamic optimization method for a KVM device.
[0108] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0109] The embodiments or examples disclosed herein are not exhaustive, but merely illustrative of some embodiments or examples, and are not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment or example can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment or example can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment or example can be arbitrarily interchanged. Furthermore, optional methods or examples in a particular embodiment or example can be arbitrarily combined; moreover, embodiments or examples can be arbitrarily combined. For example, some or all steps of different embodiments or examples can be arbitrarily combined, and a particular embodiment or example can be arbitrarily combined with optional methods or examples of other embodiments or examples.
[0110] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0111] In the several embodiments provided by this invention, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection can be through some interfaces; the indirect coupling or communication connection of units or modules can be electrical or other forms.
[0112] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0113] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0114] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or 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 capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0115] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A delay dynamic optimization system for a KVM device, characterized in that, The KVM device includes a KVM transmitter and a KVM receiver. The latency dynamic optimization system of the KVM device includes: a transmitter acquisition and evaluation module and a transmitter scheduling and evaluation module deployed on the KVM transmitter, and a receiver scheduling and evaluation module and a receiver driver evaluation module deployed on the KVM receiver. The transmitter acquisition and evaluation module is used to obtain the time T from when the corresponding data enters the transmitter acquisition module of the KVM transmitter to when it is input to the transmitter scheduling module. acdelay ; The transmitter scheduling evaluation module is used to obtain the time T from the input of the data to the output of the data from the transmitter scheduling module. sc1delay And obtain the network time T when the KVM transmitter outputs the data. ns The network time T ns The data is sent to the KVM receiver along with the data. The receiving end scheduling evaluation module is used to obtain the network time T for the receiving end scheduling module to complete the reception of the data. ne And calculate the network time T. ne and the network time T ns The difference is used to obtain the network transmission delay T. netdelay And obtain the network time T ne The duration T between the moment the data is completely input to the receiving end driver module and the time T. sc2delay ; The receiver driver evaluation module is used to obtain the time T from when the receiver driver module acquires the data to when it finishes processing the data. drdelay ; The transmitter scheduling and evaluation module obtains the duration T. acdelay The duration T netdelay The duration T sc2delay The duration T drdelay And calculate the data transmission delay T. delay Transmission delay T senddelay Receive transmission delay T recvdelay and the network transmission delay T netdelay With the data transmission delay T delay If the ratio R is less than a first preset threshold, or if the ratio R is greater than a second preset threshold, the data transmission interval of the transmitter scheduling module is adjusted, wherein the first preset threshold is less than the second preset threshold.
2. The delay dynamic optimization system for the KVM device according to claim 1, characterized in that, Calculate data transmission delay T delay Transmission delay T senddelay Receive transmission delay T recvdelay The steps include: Based on the duration T acdelay The duration T sc1delay Calculate the transmission delay T senddelay The transmission delay T is calculated. senddelay The formula is: T senddelay =T acdelay +T sc1delay ; Based on the duration T sc2delay The duration T drdelay Target transmission delay T' netdelay Calculate the received transmission delay T recvdelay The received transmission delay T is calculated. recvdelay The formula is: T recvdelay =T' netdelay +T sc2delay +T drdelay , where T' netdelay T is calculated N times in history netdelay The maximum value in the range, N>3, and N is a natural number; Based on the transmission delay T senddelay The received transmission delay T recvdelay Calculate the data transmission delay T delay The data transmission delay T is calculated. delay The formula is: T delay =T senddelay +T recvdelay .
3. The delay dynamic optimization system for a KVM device according to claim 1, characterized in that, The transmitter scheduling evaluation module is used to calculate the minimum threshold T. interval_L and maximum threshold T interval_H and greater than or equal to the minimum threshold T interval_L And less than or equal to the maximum threshold T interval_H Set the transmission interval T within the range of the interval. interval The minimum threshold T interval_L and the maximum threshold T interval_H The following steps were used to calculate the result: Calculate the duration T sc2delay With the duration T drdelay Sum of these to obtain the first value; Combine the first value and the duration T acdelay The maximum value in is determined as the transmission interval T. interval The minimum threshold T interval_L ; The transmission delay T senddelay With the received transmission delay T recvdelay The maximum value in is determined as the transmission interval T. interval The maximum threshold T interval_H .
4. The delay dynamic optimization system for a KVM device according to claim 3, characterized in that, When greater than or equal to the minimum threshold T interval_L And less than or equal to the maximum threshold T interval_H Set the transmission interval T within the range of the interval. interval The steps include: Calculate the initial value based on the historical network transmission delay calculated corresponding to the preset number of times and the preset number of times; Calculate the initial value and the duration T. sc2delay and the duration T drdelay The sum of these two values yields the transmission interval T. interval ; Determine the transmission interval T interval Is it greater than or equal to the minimum threshold T? interval_L And the transmission interval T interval Is it less than or equal to the maximum threshold T? interval_H If the transmission interval T interval Greater than or equal to the minimum threshold T interval_L And the transmission interval T interval Less than or equal to the maximum threshold T interval_H The transmission interval T interval The data transmission interval serves as the scheduling module at the transmitting end.
5. The delay dynamic optimization system for a KVM device according to claim 1, characterized in that, The first preset threshold is 50%, and the second preset threshold is 70%.
6. A method for dynamic delay optimization of a KVM device, characterized in that, The KVM device includes a KVM transmitter and a KVM receiver. The KVM transmitter includes a transmitter acquisition and evaluation module and a transmitter scheduling and evaluation module. The KVM receiver includes a receiver scheduling and evaluation module and a receiver driver evaluation module. The latency dynamic optimization method of the KVM device includes: S1. Acquire latency data, wherein S11. Obtain the time T from the time the corresponding data enters the transmitter acquisition module of the KVM transmitter to the time it enters the transmitter scheduling module. acdelay S12. Obtain the time T from the input of the data to the output of the data from the transmitter scheduling module. sc1delay And the network time T when the KVM transmitter outputs the data. ns The network time T ns The data is transmitted to the KVM receiver along with the data; S13, obtain the network time T for the receiver scheduling module to complete the reception of the data. ne And calculate the network time T. ne and the network time T ns The difference is used to obtain the network transmission delay T. netdelay Obtain the network time T ne The duration T between the moment the data is completely input to the receiving end driver module and the time T. sc2delay S14. Obtain the time T from when the receiving end driver module acquires the data to when it finishes processing the data. drdelay ; S2. Calculate multiple delays based on the delay data, wherein the multiple delays include at least: data transmission delay T. delay Transmission delay T senddelay and the reception and transmission delay T recvdelay ; S3. Calculate the network transmission delay T. netdelay and the data transmission delay T delay If the ratio R is less than a first preset threshold, or if the ratio R is greater than a second preset threshold, the data transmission interval of the transmitter scheduling module is adjusted, wherein the first preset threshold is less than the second preset threshold.
7. The delay dynamic optimization method for a KVM device according to claim 6, characterized in that, The steps for calculating multiple delays based on the delay data include: Based on the duration T acdelay The duration T sc1delay Calculate the transmission delay T senddelay The transmission delay T is calculated. senddelay The formula is: T senddelay =T acdelay +T sc1delay ; Based on the duration T sc2delay The duration T drdelay Target transmission delay T' netdelay Calculate the received transmission delay T recvdelay The received transmission delay T is calculated. recvdelay The formula is: T recvdelay =T' netdelay +T sc2delay +T drdelay , where T' netdelay T is calculated N times in history netdelay The maximum value in the range, N>3, and N is a natural number; Based on the transmission delay T senddelay The received transmission delay T recvdelay Calculate the data transmission delay T delay The data transmission delay T is calculated. delay The formula is: T delay =T senddelay +T recvdelay .
8. The delay dynamic optimization method for a KVM device according to claim 6, characterized in that, In calculating the network transmission delay T netdelay and the data transmission delay T delay After the ratio R, the time delay dynamic optimization method further includes: S4. Set the sending interval T interval ; S41. Determine the transmission interval T interval The range, wherein S411, calculates the duration T sc2delay With the duration T drdelay S412, sum the first value and the duration T to obtain the first value; acdelay The maximum value in is determined as the transmission interval T. interval Minimum threshold T interval_L S413, the transmission delay T senddelay With the received transmission delay T recvdelay The maximum value in is determined as the transmission interval T. interval Maximum threshold T interval_H ; S42, at the minimum threshold T interval_L and the maximum threshold T interval_H The transmission interval T is set within the range of the interval. interval .
9. The delay dynamic optimization method for a KVM device according to claim 8, characterized in that, At the minimum threshold T interval_L and the maximum threshold T interval_H The transmission interval T is set within the range of the interval. interva The steps include: S421. Based on the historical network transmission delay calculated according to the preset number of times and the preset number of times, calculate the initial value T''. interval ; S422, Based on the initial value T'' interval The duration T sc2delay The duration T drdelay Calculate the transmission interval T interval , among which, T interval =T'' interval +T sc2delay +T drdelay ; S423, Determine the transmission interval T interval Is it greater than or equal to the minimum threshold T? interval_L And less than or equal to the maximum threshold T interval_H If the transmission interval T interval Greater than or equal to the minimum threshold T interval_L And less than or equal to the maximum threshold T interval_H Then the transmission interval T interval This serves as the data transmission interval for the transmitter scheduling module.
10. The delay dynamic optimization method for a KVM device according to claim 6, characterized in that, The first preset threshold is 50%, and the second preset threshold is 70%.