Communication method and system among multiple software operation environments

By analyzing and optimizing the network protocol stack and cross-platform compatibility protocol, the compatibility and flexibility problems in cross-software environment data exchange are solved, efficient and reliable data transmission is achieved, and bandwidth utilization and communication paths are optimized.

CN120353616APending Publication Date: 2025-07-22SHANXI HUAXU YUANYU INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510242934.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

The existing technology lacks compatibility and flexibility in data exchange across software environments. Especially among different operating systems or virtual environments, mechanisms such as shared memory and message queues face security and efficiency problems, and lack dynamic response capabilities to real-time network states, resulting in data delay and bandwidth resources waste when network load fluctuates, affecting application efficiency and reliability.

Method used

By obtaining the protocol identification, version number and packaging format of the network protocol stack and cross-platform compatible protocols, analyzing the packet encoding format and control fields, analyzing the communication identification and field length, generating protocol matching index, measuring packet transmission interval and packet loss rate, adjusting the data transmission window and compression ratio, optimizing the communication path, and ensuring that data is transmitted through the optimal path.

Benefits of technology

It improves the accuracy and efficiency of cross-platform data transmission, reduces communication delay and resource waste, and enhances the reliability of network communication and overall system efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353616A_ABST
    Figure CN120353616A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of inter-process communication, in particular to a communication method and system among multiple software operating environments, which comprises the following steps of: acquiring protocol identifiers, version numbers and packaging formats of a network protocol stack and a cross-platform compatible protocol, analyzing coding formats and control fields of data packets, extracting communication identifiers and field lengths, and establishing a network protocol stack and a cross-platform compatible protocol; and analyzing the compatibility of the coding format, and generating a protocol matching index. According to the method and the device, fine communication adaptation can be realized by acquiring and analyzing key parameters of a network protocol, such as a protocol identifier and a packaging format, through an innovative scheme, so that the accuracy and the efficiency of cross-platform data transmission are optimized, the accuracy of data packet coding and control field analysis is improved, and the data transmission efficiency is improved. In addition, by monitoring network performance and dynamically adjusting a sending window and a compression ratio, the bandwidth utilization rate and the reliability of network communication are remarkably improved, a communication path is deeply analyzed and optimized, and it is ensured that data are transmitted through an optimal path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of inter - process communication, and particularly to a communication method and system between multiple software running environments. Background Art

[0002] The technical field of inter - process communication includes various technical means, enabling different software processes running on the same computer to exchange and synchronize information. The core content of this field is to provide methods and protocols to support data transmission and interaction of control signals, including but not limited to mechanisms such as message queues, shared memory, semaphores, and sockets. Multiple processes can send data or instructions to each other while running independently, realizing resource sharing and task coordination.

[0003] Among them, the communication method between multiple software running environments refers to the data exchange method between processes in different software running environments such as different operating systems, virtual machines, or containers. It focuses on achieving cross - environment communication through means such as networks, API calls, or system - level scheduling. The specific methods involve using specific network protocol stacks or cross - platform compatible communication protocols to ensure that information can be accurately transmitted between different software environments.

[0004] The prior art shows insufficient compatibility and flexibility in cross - software - environment data exchange. Especially between different operating systems or virtual environments, common mechanisms such as shared memory and message queues face security and efficiency problems, lack the ability to dynamically respond to real - time network status, and cannot adjust communication strategies according to network load changes. This leads to the inability to maintain performance during high - fluctuation network loads, resulting in data latency, waste of bandwidth resources, and even data loss, reducing the application efficiency and reliability of the prior art in dynamic and variable network environments. Summary of the Invention

[0005] In order to solve the technical problems existing in the prior art, such as insufficient compatibility and flexibility in cross - software - environment data exchange, especially between different operating systems or virtual environments, common mechanisms such as shared memory and message queues face security and efficiency problems, lack the ability to dynamically respond to real - time network status, cannot adjust communication strategies according to network load changes, resulting in the inability to maintain performance during high - fluctuation network loads, leading to data latency, waste of bandwidth resources, and even data loss, reducing the application efficiency and reliability of the prior art in dynamic and variable network environments, the embodiments of the present invention provide a communication method and system between multiple software running environments. The technical solutions are as follows:

[0006] On the one hand, a communication method between multiple software running environments is provided, including the following steps:

[0007] S1: Obtain the protocol identifiers, version numbers, and encapsulation formats of the network protocol stack and cross-platform compatible protocols, parse the encoding format and control fields of the data packet, extract the communication identifier and field length, analyze the compatibility of the encoding format, and generate a protocol matching index;

[0008] S2: Based on the protocol matching index, measure the data packet transmission interval, determine the average transmission speed, record the interval when data arrives and calculate the offset, compare the packet loss rate, and analyze the device load occupancy to obtain the environmental status indicators;

[0009] S3: Invoke the environmental status indicators, extract the data packet capacity and bandwidth range, measure the packet loss interval and calculate the retransmission delay, adjust the data sending window and compression ratio, and determine the protocol conversion method to obtain the communication optimization configuration;

[0010] S4: Based on the communication optimization configuration, measure the task request and response time, analyze the path data transmission performance, calculate the data transmission efficiency, identify the path with stable data flow, and generate the transmission adjustment path;

[0011] S5: Invoke the transmission adjustment path, extract the data throughput of the path, identify the trend of delay change, detect the packet loss fluctuation range, analyze the load balancing state of the data, and evaluate the link performance fluctuation to generate the communication efficiency evaluation result.

[0012] On the other hand, the protocol matching index includes the field identification compliance rate, the encoding format matching degree, and the control field adaptation score. The environmental status indicators include the transmission interval deviation value, the average transmission speed value, the data packet loss rate, and the device load rate. The communication optimization configuration includes the data sending window size, the compression ratio setting value, and the protocol conversion selection. The transmission adjustment path includes the optimized communication path identifier, the path data throughput, and the path stability rating. The communication efficiency evaluation result includes the communication efficiency indicator, the data packet loss frequency, and the network load response performance.

[0013] On the other hand, the steps for obtaining the protocol matching index are specifically as follows:

[0014] S101: Obtain the protocol identifiers, numbered versions, and encapsulation formats of the network protocol stack and cross-platform compatible protocols, parse the encoding format and control fields of the network transmission data packet, extract the communication identifier and field length, analyze the arrangement order of the data format, determine whether the field distribution conforms to the protocol format, screen the key fields, and generate the key field feature set;

[0015] S102: Based on the key field feature set, compare the field format with the protocol stack, determine the field arrangement order and value range, analyze the association mode between fields, judge the fluctuation of field data, identify the data structure deviating from the standard, and generate the protocol format matching result;

[0016] S103: Invoke the protocol format matching result, identify the adaptation situation between the fields and the communication protocol, analyze the encapsulation format of the data packet and verify whether the field arrangement meets the protocol requirements, filter out the communication methods with differences, calculate the deviation degree between the protocol fields and the standard format, and obtain the protocol matching index.

[0017] On the other hand, the steps for obtaining the environmental status indicators are specifically as follows:

[0018] S201: Based on the protocol matching index, obtain the timestamp of the data packet transmission, calculate the transmission interval between adjacent data packets and determine the transmission rate, measure the data arrival interval at the difference time points, calculate the average transmission speed, and generate the transmission rate indicator;

[0019] S202: Invoke the transmission rate indicator, extract the arrival time of each data packet, analyze the time difference between the data packets, compare the number of received and lost data packets during transmission, calculate the packet loss rate, and generate the packet loss rate index;

[0020] S203: Utilize the packet loss rate index to monitor the data processing and storage occupancy of the device, determine the operating load and memory utilization rate of the device, analyze the influence degree of the processing capacity of the network device on data transmission, calculate the occupancy ratio of the device load, and obtain the environmental status indicator.

[0021] On the other hand, the steps for obtaining the communication optimization configuration are specifically as follows:

[0022] S301: Invoke the environmental status indicator, analyze the data packet capacity of the network protocol and the usage range of the network bandwidth, monitor the transmission characteristics of different types of data packets, calculate the data packet compatibility, evaluate the compatibility between the data packet size and the network bandwidth, verify the matching situation between the data packet capacity and the bandwidth performance, and generate the data transmission adaptability;

[0023] S302: Based on the data transmission adaptability, measure the packet loss interval time, record the time points of data packet retransmission, calculate the average value of the retransmission delay, adjust the data sending window according to the bandwidth usage and data traffic, and generate the transmission window configuration;

[0024] S303: Invoke the transmission window configuration, analyze the influence of the data compression ratio on the transmission efficiency, adjust the data compression settings, and then match the protocol conversion method according to the real-time network changes to obtain the communication optimization configuration.

[0025] On the other hand, the formula for calculating the data packet compatibility is as follows:

[0026]

[0027] Evaluate the compatibility between the data packet size and the network bandwidth, verify the matching of the data packet capacity and the bandwidth performance, and generate the data transmission adaptability;

[0028] Among them, C represents the data packet compatibility, P s represents the size of the sth data packet, B represents the network bandwidth, P r represents the size of the rth data packet, u represents the total number of data packets, P q represents the size of the qth data packet, w represents the total number of data packets transmitted within the time window, and t represents the total number of data packets.

[0029] On the other hand, the specific steps for obtaining the transmission adjustment path are as follows:

[0030] S401: Based on the communication optimization configuration, measure the request and response times of task data in a multi-software operating environment, record the start time point of each request, calculate the time difference between the request and the response, analyze the response characteristics of the task on each software communication path, and generate the task delay characteristic value;

[0031] S402: Invoke the task delay characteristic value, record the transmission time of the data packet, analyze the transmission rate of the data stream on the path, judge the data transmission differences between different paths, determine the data throughput and stability of the communication path, and generate the path traffic stability;

[0032] S403: Based on the path traffic stability, compare the data flow trends between communication paths, analyze the load balancing situation of the data stream on the path, adjust the allocation ratio of the data on the path, and generate the transmission adjustment path.

[0033] On the other hand, when calculating the time difference between the request and the response, the formula is used:

[0034]

[0035] Analyze the response characteristics of the task on each software communication path, and generate the task delay characteristic value;

[0036] Among them, ΔT d represents the corrected time difference of the dth request, represents the response time of the dth request, represents the sending time of the dth request, N represents the total number of requests, represents the response time of the eth request, represents the sending time of the eth request, M represents the total number of paths of the task, W f represents the weight of the fth path, D f represents the delay of the fth path.

[0037] On the other hand, the steps for obtaining the communication efficiency evaluation result are specifically as follows:

[0038] S501: Based on the transmission adjustment path, extract the data throughput on the adjusted communication path, calculate the flow and speed of the data on each path, determine the total data transmission volume on the differential path, analyze the change in communication efficiency, and generate a path throughput characteristic index;

[0039] S502: Invoke the path throughput characteristic index, identify the trend of delay change on the communication path, calculate the time difference of data transmission for each path, record the time interval of packet loss, analyze the abnormal fluctuation in data transmission, and generate a transmission stability eigenvalue;

[0040] S503: Based on the transmission stability eigenvalue, detect the load balancing state on the communication path, analyze the data flow stability under different load conditions, evaluate the performance of the communication link under different network loads, and generate a communication efficiency evaluation result.

[0041] On the other hand, a communication system between multiple software operating environments is provided. This system is applied to the communication method between multiple software operating environments and includes:

[0042] The protocol analysis and matching module obtains the protocol identifiers, numbers, versions, and encapsulation formats of the network protocol stack and cross-platform compatible protocols, parses the encoding format and control fields of the data packet, extracts the communication identifier and field length, analyzes the compatibility of the encoding format, and generates a protocol matching index;

[0043] The network performance monitoring module, based on the protocol matching index, measures the data packet transmission interval, determines the average transmission speed, records the interval of data arrival and calculates the offset, compares the packet loss rate, and analyzes the device load occupancy to obtain the environmental status index;

[0044] The communication optimization configuration module invokes the environmental status index, extracts the data packet capacity and bandwidth range, measures the packet loss interval and calculates the retransmission delay, adjusts the data sending window and compression ratio, and determines the protocol conversion method to obtain the communication optimization configuration;

[0045] The transmission path optimization module, based on the communication optimization configuration, measures the task request and response time, analyzes the path data transmission performance, calculates the data transmission efficiency, identifies the path with stable data flow, and generates a transmission adjustment path;

[0046] The communication efficiency evaluation module invokes the transmission adjustment path, extracts the data throughput of the path, identifies the trend of delay change, detects the packet loss fluctuation interval, analyzes the load balancing state of the data, and evaluates the link performance fluctuation to generate a communication efficiency evaluation result.

[0047] The beneficial effects brought by the technical solutions provided in the embodiments of the present invention at least include:

[0048] By obtaining and analyzing the key parameters of network protocols, such as protocol identifiers and encapsulation formats, the innovative solution can achieve fine-grained communication adaptation, thereby optimizing the accuracy and efficiency of cross-platform data transmission. It not only improves the accuracy of packet encoding and control field parsing, but also significantly enhances the bandwidth utilization rate and the reliability of network communication by monitoring network performance and dynamically adjusting the sending window and compression ratio. The in-depth analysis and optimization of the communication path ensure that data is transmitted through the optimal path, reducing communication latency and resource waste, and significantly enhancing the overall communication efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0050] Figure 1 is the main step flow chart of the present invention;

[0051] Figure 2 is the step flow chart of S1 of the present invention;

[0052] Figure 3 is the step flow chart of S2 of the present invention;

[0053] Figure 4 is the step flow chart of S3 of the present invention;

[0054] Figure 5 is the step flow chart of S4 of the present invention;

[0055] Figure 6 is the step flow chart of S5 of the present invention;

[0056] Figure 7 is the system block diagram of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0057] The following describes the technical solutions in the present invention with reference to the drawings.

[0058] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "example" in the present invention should not be construed as more preferred or more advantageous than other embodiments or design solutions. Exactly speaking, the use of the word "example" is intended to present concepts in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or either one of the two.

[0059] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference is not emphasized, their intended meanings are the same. "Of", "corresponding", and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference is not emphasized, their intended meanings are the same.

[0060] In the embodiments of the present invention, sometimes a subscript such as W1 may be written in a non-subscript form such as W1. When the difference is not emphasized, their intended meanings are the same.

[0061] To make the technical problems, technical solutions, and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments.

[0062] The embodiments of the present invention provide a communication method between multiple software operating environments, such as Figure 1 shown, including the following steps:

[0063] S1: Obtain the protocol identifier, number version, and encapsulation format of the network protocol stack and the cross-platform compatible protocol, parse the encoding format and control fields of the network transmission data packet, extract the communication identifier and field length, compare the field structure with the protocol stack, analyze the compatibility of the encoding format, and generate a protocol matching index;

[0064] S2: Based on the protocol matching index, extract the data packet transmission interval time, determine the average transmission speed, record the time interval when the data arrives and calculate the time offset, compare the total amount of transmitted and received data and the packet loss rate, analyze the device load occupancy, and obtain the environmental status index;

[0065] S3: Invoke the environmental status index, analyze the data packet capacity and bandwidth range of the network protocol, measure the packet loss interval time and calculate the data retransmission delay, adjust the data sending window and compression ratio according to the bandwidth usage, determine the optimal protocol conversion method, and obtain the communication optimization configuration;

[0066] S4: Based on the communication optimization configuration, measure the task data request and response time in the multi-software operating environment, analyze the data transmission performance of the communication path of the software, calculate the data transmission efficiency of each path, identify the path with stable data flow, and generate a transmission adjustment path;

[0067] S5: Invoke the transmission adjustment path, extract the data throughput of the adjusted communication path, identify the delay change trend of the different paths, detect the packet loss fluctuation range, analyze the load balancing state during data transmission, and evaluate the performance fluctuation of the communication link under different loads, and generate a communication efficiency evaluation result.

[0068] The protocol matching index includes the field recognition compliance rate, the coding format matching degree, and the control field adaptation score. The environmental status indicators include the transmission interval deviation value, the average transmission speed value, the data packet loss rate, and the device load rate. The communication optimization configuration includes the data sending window size, the compression ratio setting value, and the protocol conversion selection. The transmission adjustment path includes the optimized communication path identifier, the path data throughput, and the path stability rating. The communication efficiency evaluation result includes the communication efficiency indicator, the data packet loss frequency, and the network load response performance.

[0069] As Figure 2 shown, the steps for obtaining the protocol matching index are specifically as follows:

[0070] S101: Obtain the protocol identifier, number version, and encapsulation format of the network protocol stack and the cross-platform compatible protocol, parse the coding format and control fields of the network transmission data packet, extract the communication identifier and field length, analyze the arrangement order of the data format, determine whether the field distribution conforms to the protocol format, screen the key fields, and generate the key field feature set;

[0071] Extract the protocol identifier from the packet header. The identifiers of different protocols are usually stored in fixed positions. For example, the protocol field of an IPv4 packet is located at the 9th byte of the header. Bitwise operations can be used to parse the protocol type. The parsing of numbered versions depends on the protocol format. For example, the version field of HTTP / 2.0 is usually stored at the beginning of the request header. The parsing method can be based on regular expression matching or string splitting to obtain the version number. For example, HTTP / 1.1 can be parsed as the floating-point number 1.1. The recognition of encapsulation formats involves different encapsulation structures at the protocol layer. For example, the frame header of an Ethernet frame contains the destination MAC address, source MAC address, and type field. The value of the type field can be used to distinguish protocols such as IP and ARP. The parsing of the packet encoding format needs to consider ASCII, UTF-8, or binary formats. For example, the prefix of a UTF-8 encoded packet contains the BOM bytes (0xEF, 0xBB, 0xBF). The encoding method can be determined by detecting the first 3 bytes of the packet. The parsing of control fields requires extracting specific bits in the protocol header. For example, the TCP flag field includes SYN, ACK, FIN, etc. After parsing with a bit mask, the connection status of the current packet can be determined. The extraction of communication identifiers can be based on the protocol data stream. For example, the source port number and destination port number of a TCP packet can be used to identify a session. The calculation of field lengths requires traversing the packet structure. For example, the header length of an IPv4 packet is fixed at 20 bytes, but the variable-length option field needs to be dynamically calculated based on the option length field. The judgment of the arrangement order of data formats involves offset verification of fields. For example, in an Ethernet frame, the destination MAC address field is located in the first 6 bytes, and the source MAC address field is in the next 6 bytes. The protocol standard can be matched through offset calculation. The judgment of whether the field distribution conforms to the protocol format involves integrity verification. For example, a UDP protocol datagram contains source port, destination port, length, and checksum fields. If a certain field is missing or the order is incorrect, it may lead to protocol mismatch. The screening of key fields is based on the importance of the fields. For example, in an HTTP request, the Host field is used to identify the target server. If it is missing, it may affect communication. Therefore, it can be marked as a key field. All the extracted and analyzed data forms a key field feature set.

[0072] S102: Based on the key field feature set, compare the field format with the protocol stack, determine the field arrangement order and value range, analyze the association pattern between fields, judge the fluctuation of field data, identify data structures that deviate from the standard, and generate a protocol format matching result;

[0073] Based on the keyword field feature set, compare the field format with the protocol stack to determine the field arrangement order and value range. When comparing the field arrangement order, the field offsets in the protocol standard can be referred to. For example, in the TCP protocol, the source port field should be located at packet offsets 0 - 15 bits, and the destination port field should be located at 16 - 31 bits. The method of offset comparison can be used to verify whether the field order conforms to the protocol definition. The determination of the value range involves the validity of the field data. For example, the IP address field is represented in dotted decimal notation, and the value range of each part should be between 0 - 255. If the field exceeds this range, there is an abnormality. For example, the address 300.168.1.1 can be directly determined as illegal. The analysis of the association pattern between fields can be based on the field logical relationship. For example, the sequence number and acknowledgment number in the TCP protocol have an increasing relationship. The difference between the two can be calculated. If the acknowledgment number is less than the sequence number of the previous packet, there is a disorder or packet loss situation. The fluctuation of the field data can be calculated by statistical methods. For example, calculate the variance of the field value: where x q represents the field value, μ is the field mean, and P is the total number of packets. If the variance is greater than the set threshold, the numerical fluctuation of the field is large. For example, if the threshold is set to 50 and the variance of a certain field is calculated to be 80, it means that the data of this field fluctuates greatly. The identification of non-standard data structures can adopt the threshold determination method. For example, the total packet length should conform to the protocol-defined range. For example, the total length of an IPv4 packet should be between 20 - 65535 bytes. If the packet length exceeds this range, it is a non-standard packet, and a protocol format matching result is generated.

[0074] S103: Invoke the protocol format matching result, identify the adaptation of the fields to the communication protocol, analyze the encapsulation format of the packet and verify whether the field arrangement meets the protocol requirements, screen out the communication methods with differences, calculate the deviation degree of the protocol fields from the standard format, and obtain the protocol matching index.

[0075] Compare the protocol adaptability using the matched field format. For example, the HTTP protocol requires the request header to contain the Host field. It is possible to check whether the data packet contains this field. If it is missing, it is determined to be incompatible. Analyzing the encapsulation format of the data packet requires detecting the header and tail structures of the data packet. For example, the header of an Ethernet frame contains a preamble and an SFD (Start Frame Delimiter). If the header fields are missing or in the wrong order, the data packet encapsulation format does not meet the standard. Verifying the field arrangement involves the alignment of each field. For example, the TCP option field uses a 32-bit alignment method. If the field offset is not a multiple of 4, there is an arrangement error. When screening for communication methods with differences, the encapsulation methods of different protocols can be compared. For example, the WebSocket protocol uses an HTTP message during the initial handshake phase and a binary frame format for subsequent data transmission. If the data packet prefix conforms to the HTTP format but the subsequent data does not conform to the WebSocket frame structure, the data packet comes from a different communication method. The calculation of the deviation degree of the protocol field from the standard format can use a matching degree scoring method. For example, calculate the matching degree of the data packet fields: where, S c is the number of matched fields, and S t is the total number of fields defined by the protocol. If the matching degree is lower than 80%, it is determined that the data packet has a large deviation from the standard protocol, and the protocol matching index is calculated.

[0076] Such as Figure 3 shown, the steps for obtaining the environmental status indicators are specifically as follows:

[0077] S201: Based on the protocol matching index, obtain the timestamp of the data packet transmission, calculate the transmission interval between adjacent data packets and determine the transmission rate, measure the arrival interval of data at different time points, calculate the average transmission speed, and generate a transmission rate indicator;

[0078] Parse the timestamp field from the data packet header. Different protocols have different timestamp formats. For example, in the TCP protocol, the timestamp option field occupies 10 bytes and stores a 32-bit time value and a 32-bit echo time value. This field can be extracted by parsing the header offset. For connectionless protocols such as UDP, the operating system socket can be used to receive the timestamp to record the arrival time of the data packet. The transmission interval between adjacent data packets can be calculated by the timestamp difference. For example, let the timestamp of the first data packet be T1 and the timestamp of the second data packet be T2, then the transmission interval is: ΔT = T2 - T1. The calculation of the transmission rate can be combined with the data packet size. For example, let the data packet size be D bytes and the transmission interval be ΔT seconds, then the rate calculation is: Where V represents the transmission rate (bytes / second). To measure the data arrival interval at different time points of the difference, the timestamps of multiple data packets need to be recorded, and their time increments are calculated. The average value of multiple intervals is taken as the transmission speed. For example, if the timestamps of four data packets are T1 = 1.2s, T2 = 1.4s, T3 = 1.8s, and T4 = 2.3s respectively, then the adjacent intervals are 0.2s, 0.4s, and 0.5s. Calculate the average transmission interval: The transmission rate can be obtained by calculating the total data transmission amount divided by the total time difference. For example, if the total data size is 1024 bytes and the total time difference is 2s, then: = 512 bytes / second, forming the transmission rate index.

[0079] S202: Invoke the transmission rate index, extract the arrival time of each data packet, analyze the time difference between data packets, compare the number of received and lost data packets during transmission, calculate the packet loss rate, and generate the packet loss rate index;

[0080] Extract the arrival time sequence of all data packets from the recorded timestamp data, calculate the time interval between data packets. For example, if the timestamp sequence of data packets is {1.2s, 1.4s, 1.8s, 2.3s}, the adjacent time intervals can be calculated as {0.2s, 0.4s, 0.5s}. Compare the number of received and lost data packets during transmission, and the number of received packets and the number of packets that should arrive within a certain time can be counted. Let the total number of transmitted data packets be P t and the number of received data packets be P r Then the packet loss rate is calculated as: where L is the packet loss rate. If the total number of transmitted data packets is 1000 and 950 are received, then: The packet loss rate index can be calculated based on the packet loss rates of multiple time windows. Suppose the packet loss rates in different time periods are 5%, 3%, and 6% respectively. The weighted average packet loss rate can be calculated: Form the packet loss rate index.

[0081] S203: Use the packet loss rate index to monitor the data processing and storage occupancy of the device, determine the operating load and memory utilization rate of the device, analyze the impact of the processing capacity of the network device on data transmission, calculate the occupancy ratio of the device load, and obtain the environmental status index.

[0082] Statistical current data processing rate of the device, that is, the amount of data processed per unit time. Let the data processing rate be R (bytes / second). The storage occupancy can be calculated based on the used amount and the total capacity of the system storage. For example, if the total storage capacity of the device is S total and the currently used storage amount is S used Then the storage utilization rate is: If the total storage capacity of the device is 100 GB and the current usage is 60 GB, then: The calculation of the device operation load can be comprehensively evaluated by combining the CPU occupancy rate and the data processing rate. Let the current CPU occupancy rate be C and the maximum allowable occupancy rate of the system be C max , and the load ratio can be calculated as: If the current CPU occupancy is 45% and the maximum allowable usage rate is 90%, then: By combining the packet loss rate index to analyze the influence degree of the network device processing ability, the change of the packet loss rate under different load levels can be compared, and the occupancy ratio of the device load can be calculated to form an environmental state index.

[0083] Such as Figure 4 As shown, the steps for obtaining the communication optimization configuration are specifically as follows:

[0084] S301: Invoke the environmental state index, analyze the packet capacity of the network protocol and the usage range of the network bandwidth, monitor the transmission characteristics of different types of packets, calculate the packet compatibility, evaluate the compatibility between the packet size and the network bandwidth, verify the matching situation between the packet capacity and the bandwidth performance, and generate the data transmission adaptability;

[0085] Calculate the packet compatibility, using the formula:

[0086]

[0087] Evaluate the compatibility between the packet size and the network bandwidth, verify the matching situation between the packet capacity and the bandwidth performance, and generate the data transmission adaptability;

[0088] Among them, C represents the packet compatibility, P s represents the size of the s-th packet, B represents the network bandwidth, P r represents the size of the r-th packet, u represents the total number of packets, P q represents the size of the q-th packet, w represents the total number of packets transmitted within the time window, and t represents the total number of packets;

[0089] The packet size is monitored by the network traffic analysis system, with the unit of byte (B). The set interval is based on the average packet size in the actual network environment, and the value range is usually between 64 B and 1518 B;

[0090] 8 packets are sampled by the traffic monitoring system, and their sizes are recorded as:

[0091] P1 = 128 B, P2 = 256 B, P3 = 512 B, P4 = 1024 B, P5 = 1500 B, P6

[0092] = 600B, P7 = 1200B, P8 = 1400B;

[0093] Among them, P s Take all packet sizes, P r Take half of the packet size, P q Take all packet sizes;

[0094] Network bandwidth B, the network bandwidth is obtained by monitoring through network devices, with the unit of Mbps. In reality, the Ethernet bandwidth range is between 10 Mbps and 1 Gbps. In this calculation, the current network bandwidth is 100 Mbps, and when converted to the byte unit, B = 12.5 MBps = 12500000 Bps;

[0095] Total number of packets u;

[0096] Calculated through the traffic statistics module, the total number of packets u = 8;

[0097] Total number of packets w transmitted in the time window;

[0098] Monitor the number of packets transmitted within a specific time window (1 second), and set the average transmission rate of packets within this window to 1000 packets / second. In this calculation, take w = 1000;

[0099] Calculate the number of packets t involved;

[0100] Set the number of packets t used for calculation to 5, that is, select 5 out of 8 sampled packets for calculation;

[0101] Formula calculation and derivation process:

[0102] The first step: Calculate the numerator part;

[0103] Calculate

[0104] Select t = 5 packets from the packet set:

[0105] P1 = 128B, P2 = 256B, P3 = 512B, P4 = 1024B, P5 = 1500B;

[0106]

[0107] = 12499872 + 12499744 + 12499488 + 12498976 + 12498500;

[0108] = 62496580;

[0109] The second step: Calculate the first term of the denominator;

[0110] Calculate

[0111] Take all u = 8 data packets:

[0112]

[0113] =(1.024×10 -6 ) 2 +(2.048×10 -6 ) 2 +(4.096×10 -6 ) 2 +

[0114] (8.192×10 -6 ) 2 +(1.2×10 -5 ) 2 +(4.8×10 -6 ) 2 +(9.6×10 -6 ) 2 +(1.12×10 -5 ) 2 ;

[0115] ≈1.04858×10 -10 ;

[0116] Take the square root:

[0117]

[0118] Step 3: Calculate the second term of the denominator;

[0119] Calculate

[0120]

[0121] Step 4: Calculate the result

[0122]

[0123] Analysis of the calculation result:

[0124] This result shows that the value of the data packet compatibility C is relatively large, reflecting the matching degree between the current data packet size and the network bandwidth. From the calculation, the deviation between the data packet size and the bandwidth in the numerator part is relatively large, indicating that the bandwidth far exceeds the current data packet requirements and there is a problem of low utilization rate. The value in the denominator part represents the square ratio of the data packet relative to the bandwidth and the average data packet size within the time window. The calculated smaller value further amplifies the value of C, indicating that the current network bandwidth is not fully utilized under the current data packet traffic situation.

[0125] S302: Measure the packet loss interval time based on the data transmission adaptability, record the time points of packet retransmission, calculate the average value of the retransmission delay, adjust the data sending window according to the bandwidth usage and data traffic, and generate a transmission window configuration;

[0126] Record the arrival timestamps {T A , T B ,..., T N} of the data packets, and calculate the interval ΔT between adjacent packet losses loss : ΔT loss = T j+1 - T j . If the arrival timestamp of a certain data packet is T A = 10ms, T B = 15ms, T C = 28ms, then: ΔT1 = 15 - 10 = 5ms, ΔT2 = 28 - 15 = 13ms. Record the time points of packet retransmission. For example, if it is detected that the data packet P X is lost at T C = 28ms and retransmitted at T D = 35ms, then the retransmission delay is calculated as: D resend = T resend - T lost , D resend = 35 - 28 = 7ms. Calculate the average retransmission delay of all retransmitted data packets: where Q is the number of retransmitted data packets. If the retransmission delays of three retransmitted data packets are 7ms, 9ms, and 6ms respectively, then: Adjust the data sending window according to the bandwidth usage and data traffic. Let the initial window size be W init , and the adjusted window size be W adj . Calculate based on the bandwidth utilization rate B ratio : W adj = W init × (1 - B ratio ). For example, if the initial window size is 64KB and the bandwidth occupancy rate is 60%, then: W adj = 64 × (1 - 0.6) = 25.6KB. After adjusting the data sending window, generate a transmission window configuration.

[0127] S303: Invoke the transmission window configuration, analyze the impact of the data compression ratio on the transmission efficiency, adjust the data compression settings, and then match the protocol conversion method according to the real-time network changes to obtain a communication optimization configuration.

[0128] Calculate the compression ratio C rate : where S orig is the original data size, Scomp is the size of the compressed data. If the original data is 500 KB and the compressed data is 350 KB, then: Calculate the transmission rate V after compression compressed : where T data is the data packet transmission duration. If T data = 5 ms, then: Compare the data transmission durations T orig and T comp . If T orig = 7 ms and T comp = 5 ms, then: ΔT comp = T orig - T comp = 7 - 5 = 2 ms. Match the protocol conversion method according to the real-time network changes, and calculate the throughput T of the current protocol transmission net : where D transmit is the amount of data transmitted per unit time, and T interval is the time interval. If the data transmission amount is 10 MB and the time interval is 2 s, then: If the throughput is lower than the threshold (such as below 5 Mbps), then select a more efficient protocol, such as switching from TCP to UDP. Match the protocol conversion method according to the calculation results to obtain the communication optimization configuration.

[0129] Such as Figure 5 shown, the steps to obtain the transmission adjustment path are specifically as follows:

[0130] S401: Based on the communication optimization configuration, measure the request and response times of task data in multiple software operating environments, record the start time points of each request, calculate the time difference between the request and the response, analyze the response characteristics of the task on each software communication path, and generate task delay characteristic values;

[0131] Calculate the time difference between the request and the response, using the formula:

[0132]

[0133] Analyze the response characteristics of the task on each software communication path, and generate task delay characteristic values;

[0134] where, ΔT d represents the corrected time difference of the d-th request, represents the response time of the d-th request, represents the sending time of the d-th request, N represents the total number of requests, represents the response time of the e-th request, Represents the sending time of the e-th request, M represents the total number of paths of the task, W f Represents the weight of the f-th path, D f Represents the delay of the f-th path;

[0135] W f The weight of the f-th path, calculated as:

[0136]

[0137] Where:

[0138] P f Represents the historical packet loss rate of the f-th path, with a value range between 0 and 1;

[0139] B f Represents the bandwidth occupancy rate of the f-th path, with a value range between 0 and 1;

[0140] The calculated W f Is normalized so that the sum of the weights of all paths is 1.

[0141] D f The delay of the f-th path;

[0142] Calculated by a network monitoring tool, and the round-trip delay value is obtained by using an end-to-end Ping test. The unit is milliseconds (ms);

[0143] Calculation example:

[0144] Known data:

[0145] The d-th request:

[0146] Total number of requests N = 5;

[0147] Other requests:

[0148]

[0149] Number of communication paths M = 3, parameters of each path:

[0150] Path 1: P1 = 0.02, B1 = 0.4, D1 = 15.6ms;

[0151] Path 2: P2 = 0.05, B2 = 0.6, D2 = 20.8ms;

[0152] Path 3: P3 = 0.03, B3 = 0.5, D3 = 18.3ms;

[0153] Calculation process: 1. Calculate the weight W of each path f :

[0154]

[0155] Normalization processing:

[0156]

[0157]

[0158] Calculate the average time difference term:

[0159]

[0160] Calculate the path weighted delay:

[0161]

[0162] Calculate ΔT d :

[0163] ΔT d = |120.5 - 100.3| + (15.86 × 18.22);

[0164] = 20.2 + 289.08 = 309.28 ms;

[0165] This result indicates that the calculated request-response time difference after adjustment is 309.28 ms, which includes the correction term based on the original data and the path weighted impact, and can more accurately reflect the communication delay characteristics of the task.

[0166] S402: Invoke the task delay eigenvalue, record the transmission time of the data packet, analyze the transmission rate of the data stream on the path, judge the data transmission difference between different paths, determine the data throughput and stability of the communication path, and generate the path traffic stability;

[0167] Collect the start time T send and arrival time T recv of the data stream transmission on different paths, and calculate the transmission time T transfer of a single data packet: T transfer = T recv - T send . If the start time of a certain data packet is T send = 1.05 s and the arrival time is T recv = 1.15 s, then: T transfer = 1.15 - 1.05 = 0.10 s, and analyze the transmission rate R flow of the data stream on the path: where D pkt is the data packet size. If the data packet size is 1000 KB and the transmission time is 0.10 s, then: When judging the data transmission difference between different paths, it is necessary to calculate the throughput T of different paths throughput , and the throughput of a certain path is set as: If the data packet rates in a certain path are 60 Mbps, 70 Mbps, and 80 Mbps respectively, then: T throughput = 60 + 70 + 80 = 210 Mbps, and calculate the stability index σ of the path R : If the average value R avg is 70 Mbps, and the calculated σ R = 10 Mbps, it means that the path transmission fluctuates greatly. Calculate the throughput and stability of each path to generate the path traffic stability.

[0168] S403: Based on the path traffic stability, compare the data flow trends between communication paths, analyze the load balancing situation of the data flow on the paths, adjust the data allocation ratio on the paths, and generate the transmission adjustment path.

[0169] Statistically analyze the data traffic ratio F of different paths route : where V total is the total data volume. If the data volume of path 1 is 200 MB and the total data volume is 800 MB, then: When analyzing the load balancing situation of the data flow on the paths, calculate the load balancing ratio B between the paths eq : If σ R = 10 Mbps, R avg = 70 Mbps, then: When adjusting the data allocation ratio on the paths, set the new data allocation volume V adj : If the current path data volume is 200 MB and B eq = 14.3%, then: V adj = 200×(1 - 0.143) = 171.4 MB. Adjust the data allocation ratio on the paths according to the calculation results to generate the transmission adjustment path.

[0170] As Figure 6 shown, the steps for obtaining the communication efficiency evaluation results are specifically as follows:

[0171] S501: Based on the transmission adjustment path, extract the data throughput on the adjusted communication path, calculate the data flow and speed on each path, determine the total data transmission volume on the different paths, analyze the change in communication efficiency, and generate the path throughput characteristic index;

[0172] Calculate the flow F of each path pathand data transfer speed S path 。The data traffic can be calculated by the total number of data packets D total on the path: where D pkt,y represents the size of the y-th data packet on the path. If there are three data packets on the path with sizes of 500KB, 700KB, and 600KB respectively, then: F path = 500 + 700 + 600 = 1800KB. Calculate the average transfer speed S path on the path. Let the total data volume F path be transmitted within the time interval T interval : If the data volume is 1800KB and the transmission time is 3s, then: When determining the total data transmission volume on the differential path, it is necessary to count the data throughput T through of different paths: If the rates of three paths are 500KB / s, 600KB / s, and 700KB / s respectively, then: T through = 500 + 600 + 700 = 1800KB / s. Calculate the change in communication efficiency and generate the path throughput characteristic index.

[0173] S502: Invoke the path throughput characteristic index, identify the trend of delay change on the communication path, calculate the time difference of data transmission for each path, record the time interval of packet loss, analyze the abnormal fluctuations in data transmission, and generate the transmission stability characteristic value;

[0174] Calculate the time difference T delay of data packets within the path. Let the arrival time of the n-th data packet be T arr,n , and the transmission time interval between adjacent data packets is: T delay,n = T arr,n - T arr,n-1 . If the arrival times of data packets on a certain path are 1.2s, 1.5s, and 2.0s respectively, then: T delay,1 = 1.5 - 1.2 = 0.3s, T delay,2 = 2.0 - 1.5 = 0.5s. When recording the time interval of packet loss, it is necessary to identify the time stamp of the unreceived data packet and calculate the loss time interval. Let the time interval of the lost data packet be [T loss,start , T loss,end , then: T loss = T loss,end - T loss,start . If the packet loss occurs between 3.0s and 3.6s: T loss = 3.6 - 3.0 = 0.6s. When analyzing the abnormal fluctuations in data transmission, it is necessary to calculate the standard deviation σ T: Among them, T mean is the average delay. If the average delay of the path data packet is 0.4 s, and σ T = 0.1 s is calculated, it indicates that the path delay fluctuation is small, forming a transmission stability eigenvalue.

[0175] S503: Based on the transmission stability eigenvalue, detect the load balancing state on the communication path, analyze the data flow stability under different load conditions, evaluate the performance of the communication link under different network loads, and generate a communication efficiency evaluation result.

[0176] Calculate the load ratio L path of each path: Among them, F total is the total data volume of all paths. If the data volume of path 1 is 600 MB and the total data volume is 1800 MB, then: When analyzing the data flow stability under different load conditions, calculate the load balancing coefficient B eq of the path: If σ T = 0.1 s and T mean = 0.4 s, then: Adjust the data allocation ratio on the path. Let the new data allocation volume be F adj : If the current path data volume is 600 MB and B eq = 25%, then: F adj = 600×(1 - 0.25) = 450 MB. Adjust the data allocation ratio on the path according to the calculation result to generate a communication efficiency evaluation result.

[0177] As Figure 7 shown, a communication system between multiple software operating environments includes:

[0178] The protocol analysis and matching module obtains the protocol identifiers, numbers, versions, and encapsulation formats of the network protocol stack and cross-platform compatible protocols, parses the encoding format and control fields of the data packet, extracts the communication identifier and field length, analyzes the compatibility of the encoding format, and generates a protocol matching index;

[0179] The network performance monitoring module measures the data packet transmission interval, determines the average transmission speed, records the interval of data arrival and calculates the offset, compares the packet loss rate, and analyzes the device load occupancy based on the protocol matching index to obtain the environmental status indicators;

[0180] The communication optimization configuration module calls the environmental status indicators, extracts the data packet capacity and bandwidth range, measures the packet loss interval and calculates the retransmission delay, adjusts the data sending window and compression ratio, determines the protocol conversion method, and obtains the communication optimization configuration;

[0181] Based on the communication optimization configuration, the transmission path optimization module measures the task request and response time, analyzes the path data transmission performance, calculates the data transmission efficiency, identifies the paths with stable data flow, and generates transmission adjustment paths.

[0182] The communication efficiency evaluation module calls the transmission adjustment paths, extracts the data throughput of the paths, identifies the trend of latency change, detects the range of packet loss fluctuations, analyzes the load balancing state of the data, evaluates the link performance fluctuations, and generates the communication efficiency evaluation results.

[0183] It should be understood that the term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. Here, A and B can be singular or plural. Additionally, the character " / " in this article generally represents an "or" relationship between the associated objects before and after, but it may also represent an "and / or" relationship, which can be specifically understood by referring to the context before and after.

[0184] In the present invention, "at least one" means one or more, and "a plurality" means two or more. "At least one of the following items" or its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple.

[0185] It should be understood that in various embodiments of the present invention, the magnitudes of the serial numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

[0186] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.

[0187] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the devices, apparatuses, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0188] In several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only 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 device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0189] 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 distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0190] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0191] If the above functions are implemented in the form of software function units and sold or used as independent products, they 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 part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0192] As described above, the above are only specific implementation manners of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A communication method between multiple software operating environments, characterized in that, The method includes: S1: Obtain the protocol identifier, version number, and encapsulation format of the network protocol stack and the cross-platform compatible protocol, parse the encoding format and control fields of the data packet, extract the communication identifier and field length, analyze the compatibility of the encoding format, and generate a protocol matching index; S2: Based on the protocol matching index, measure the data packet transmission interval, determine the average transmission speed, record the interval of data arrival and calculate the offset, compare the packet loss rate, and analyze the device load occupancy to obtain the environmental status indicators; S3: Invoke the environmental status indicators, extract the data packet capacity and bandwidth range, measure the packet loss interval and calculate the retransmission delay, adjust the data sending window and compression ratio, and determine the protocol conversion method to obtain the communication optimization configuration; S4: Based on the communication optimization configuration, measure the task request and response time, analyze the path data transmission performance, calculate the data transmission efficiency, identify the path with stable data flow, and generate the transmission adjustment path; S5: Invoke the transmission adjustment path, extract the data throughput of the path, identify the trend of latency change, detect the packet loss fluctuation range, analyze the load balancing state of the data, and evaluate the link performance fluctuation to generate the communication efficiency evaluation result.

2. The communication method between multiple software operating environments according to claim 1, characterized in that, The protocol matching index includes the field identification compliance rate, the encoding format matching degree, and the control field adaptation score. The environmental status indicators include the transmission interval deviation value, the average transmission speed value, the data packet loss rate, and the device load rate. The communication optimization configuration includes the data sending window size, the compression ratio setting value, and the protocol conversion selection. The transmission adjustment path includes the optimized communication path identifier, the path data throughput, and the path stability rating. The communication efficiency evaluation result includes the communication efficiency indicator, the data packet loss frequency, and the network load response performance.

3. The communication method between multiple software operating environments according to claim 1, wherein The specific steps for obtaining the protocol matching index are as follows: S101: Obtain the protocol identifier, version number, and encapsulation format of the network protocol stack and the cross-platform compatible protocol, parse the encoding format and control fields of the network transmission data packet, extract the communication identifier and field length, analyze the arrangement order of the data format, judge whether the field distribution conforms to the protocol format, screen the key fields, and generate the key field feature set; S102: Based on the key field feature set, compare the field format with the protocol stack, determine the field arrangement order and value range, analyze the association mode between fields, judge the fluctuation situation of field data, identify the data structure deviating from the standard, and generate the protocol format matching result; S103: Invoke the protocol format matching result, identify the adaptation situation between the field and the communication protocol, analyze the encapsulation format of the data packet and verify whether the field arrangement meets the protocol requirements, screen the communication methods with differences, calculate the deviation degree between the protocol field and the standard format, and obtain the protocol matching index.

4. The communication method between multiple software operating environments according to claim 1, wherein The specific steps for obtaining the environmental status indicators are as follows: S201: Based on the protocol matching index, obtain the time stamps of data packet transmission, calculate the transmission interval between adjacent data packets and determine the transmission rate, measure the data arrival interval at different time points, calculate the average transmission speed, and generate the transmission rate indicator; S202: Invoke the transmission rate metric, extract the arrival time of each data packet, analyze the time difference between data packets, compare the number of received and lost data packets during transmission, calculate the packet loss rate, and generate a packet loss rate index; S203: Utilize the packet loss rate index to monitor the data processing and storage occupancy of the device, determine the operating load and memory utilization rate of the device, analyze the impact degree of the processing capacity of the network device on data transmission, calculate the occupancy ratio of the device load, and obtain the environmental status metric.

5. The communication method between multiple software operating environments according to claim 1, characterized in that The steps for obtaining the communication optimization configuration are specifically as follows: S301: Invoke the environmental status metric, analyze the data packet capacity of the network protocol and the usage range of the network bandwidth, monitor the transmission characteristics of different types of data packets, calculate the data packet compatibility, evaluate the compatibility between the data packet size and the network bandwidth, verify the matching situation between the data packet capacity and the bandwidth performance, and generate the data transmission adaptability; S302: Based on the data transmission adaptability, measure the packet loss interval time, record the time points of data packet retransmission, calculate the average value of the retransmission delay, adjust the data sending window according to the bandwidth usage and data traffic, and generate the transmission window configuration; S303: Invoke the transmission window configuration, analyze the impact of the data compression rate on the transmission efficiency, adjust the data compression settings, and then match the protocol conversion method according to the real-time network changes to obtain the communication optimization configuration.

6. The communication method between multiple software operating environments according to claim 6, wherein The formula for calculating the data packet compatibility is as follows: Evaluate the compatibility between the data packet size and the network bandwidth, verify the matching situation between the data packet capacity and the bandwidth performance, and generate the data transmission adaptability; Among them, C represents the packet compatibility, P s represents the size of the s-th packet, B represents the network bandwidth, P r represents the size of the r-th packet, u represents the total number of packets, P q represents the size of the q-th packet, w represents the total number of packets transmitted within the time window, and t represents the total number of packets.

7. The communication method between multiple software operating environments according to claim 1, wherein The steps for obtaining the transmission adjustment path are specifically as follows: S401: Based on the communication optimization configuration, measure the request and response times of task data in a multi-software operating environment, record the start time points of each request, calculate the time difference between the request and the response, analyze the response characteristics of the task on each software communication path, and generate the task delay characteristic value; S402: Invoke the task delay characteristic value, record the transmission time of the data packet, analyze the transmission rate of the data stream on the path, judge the data transmission difference between different paths, determine the data throughput and stability of the communication path, and generate the path traffic stability; S403: Based on the path traffic stability, compare the data flow trends between communication paths, analyze the load balancing situation of the data stream on the path, adjust the allocation ratio of the data on the path, and generate the transmission adjustment path.

8. The communication method between multiple software operating environments according to claim 7, characterized in that, The formula for calculating the time difference between the request and the response is as follows: Analyze the response characteristics of the task on each software communication path, and generate the task delay characteristic value; where, ΔT d represents the corrected time difference of the d-th request, represents the response time of the d-th request, represents the transmission time of the d-th request, N represents the total number of requests, represents the response time of the e-th request, represents the transmission time of the e-th request, M represents the total number of paths of the task, W f represents the weight of the f-th path, D f represents the delay of the f-th path.

9. The communication method between multiple software operating environments according to claim 1, characterized in that The steps for obtaining the communication efficiency evaluation result are specifically as follows: S501: Based on the transmission adjustment path, extract the data throughput on the adjusted communication path, calculate the data flow and speed on each path, determine the total data transmission volume on different paths, analyze the change in communication efficiency, and generate the path throughput characteristic metric; S502: Invoke the path throughput characteristic metrics, identify the latency change trend on the communication path, calculate the time difference of each path data transmission, record the time interval of packet loss, analyze the abnormal fluctuations in data transmission, and generate a transmission stability eigenvalue; S503: Based on the transmission stability eigenvalue, detect the load balancing state on the communication path, analyze the data flow stability under different load conditions, evaluate the performance of the communication link under different network loads, and generate a communication efficiency evaluation result.

10. A communication system between multiple software operating environments, the communication system between the multiple software operating environments being used to implement the communication method between the multiple software operating environments according to any one of claims 1-9, characterized in that, The system includes: The protocol analysis and matching module obtains the protocol identifiers, number versions, and encapsulation formats of the network protocol stack and cross-platform compatible protocols, parses the encoding format and control fields of the data packets, extracts the communication identifiers and field lengths, analyzes the compatibility of the encoding formats, and generates a protocol matching index; The network performance monitoring module measures the packet transmission interval, determines the average transmission speed, records the interval of data arrival and calculates the offset based on the protocol matching index, compares the packet loss rate, and analyzes the device load occupancy to obtain the environmental status metrics; The communication optimization configuration module invokes the environmental status metrics, extracts the packet capacity and bandwidth range, measures the packet loss interval and calculates the retransmission delay, adjusts the data sending window and compression ratio, and determines the protocol conversion method to obtain the communication optimization configuration; The transmission path optimization module measures the task request and response times, analyzes the path data transmission performance, calculates the data transmission efficiency, identifies the paths with stable data flow directions, and generates transmission adjustment paths based on the communication optimization configuration; The communication efficiency evaluation module invokes the transmission adjustment paths, extracts the data throughput of the paths, identifies the latency change trend, detects the packet loss fluctuation intervals, analyzes the load balancing state of the data, and evaluates the link performance fluctuations to generate a communication efficiency evaluation result.

Citation Information

Cited By

  • Parallel coding and decoding method based on multipath network TCP-UDP

    CN121284131A