A communication method based on multiple operating systems
By analyzing the storage size and response time change rate of data transmission between different operating systems, determining the sensitivity of data types and optimizing the transmission strategy, the problems of low data transmission efficiency and waste of resources between different operating systems are solved, and efficient and safe data transmission.
Patent Information
- Application Number
- CN202411639217.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-11-18
AI Technical Summary
The prior art has failed to effectively solve the problems of low efficiency and waste of resources during data transmission between different operating systems.
By obtaining the storage size change rate and response time change rate of each data type, determining its sensitivity type and sensitivity, dividing the data transmission packets and optimizing the transmission channel occupancy, and setting the backup and transmission lower limits according to the associated type of the data packet.
It significantly improves the efficiency and security of data transmission, reduces resource waste, improves the overall response capability and efficiency of the system, and enhances compatibility and stability across operating systems.
Smart Images

Figure CN119149474B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data communication, and in particular to a communication method based on multiple operating systems. Background Art
[0002] The multi-operating system-based communication method originates from the coexistence and interaction requirements of diverse operating systems in modern computing environments. This method allows different operating systems to effectively exchange data to achieve resource sharing and collaborative work, but there are also key challenges. Key challenges include how to deal with the compatibility, transmission efficiency and reliability of data packets; therefore, it is necessary to develop transmission and backup strategies for different types of data packets to adapt to the characteristics of multiple operating systems.
[0003] Chinese patent application publication number CN117851333A discloses a method for inter-core data communication of a multi-core operating system, including: after power-on, each core creates a socket descriptor pool, allocates and binds an inter-core socket to each core, and creates a receiving queue in a shared storage area for each inter-core socket; the receiving core receives a first data packet according to an inter-core interrupt sent by the sending core, allocates a new inter-core socket to the receiving core according to a connection request event in the first data packet, and uses the new inter-core socket to establish a communication link with the sending core; the receiving core receives a second data packet according to the inter-core interrupt sent by the sending core, receives and processes the data to be sent according to the processing data event in the second data packet; after processing, the new inter-core socket is released, and the communication link with the sending core is disconnected. It can be seen that the invention has the following problems:
[0004] The invention does not take into account the problem of low efficiency and waste of resources in the transmission and communication process of data of various data types in communication data packets due to changes in storage and response between different operating systems. Summary of the invention
[0005] To this end, the present invention provides a communication method based on multiple operating systems to overcome the problem in the prior art that data of each data type in a communication data packet is not considered to have low efficiency and waste of resources during the transmission communication process due to storage and response changes between different operating systems.
[0006] To achieve the above object, the present invention provides a communication method based on multiple operating systems, comprising:
[0007] Obtaining the bandwidth and ideal transmission time of a single transmission channel, obtaining the original storage size and original response time of each data type of the prior data in the original operating system, and the target storage size and target response time of each data type of the prior data when transmitted from the original operating system to the target operating system;
[0008] Determine the sensitivity type and sensitivity of the corresponding data type according to the storage size change rate and response time change rate of each data type;
[0009] Determine the data sensitivity equivalent of each data packet according to the sensitivity type and sensitivity of each data type;
[0010] Divide each data packet into a number of data transmission packets according to the ideal transmission time, the original storage size of each data packet in the original operating system and the bandwidth of a single transmission channel, and the estimated number of transmission channels corresponding to a single data transmission packet is 1;
[0011] Determine the number of transmission channel occupancy of the data transmission packet according to the original storage size of each data packet in a single data transmission packet and the corresponding data sensitivity equivalent, so as to determine the occupied transmission channel of the corresponding data transmission packet;
[0012] Determine the association type of each data packet in the original operating system to determine the backup lower limit and transmission lower limit of the corresponding data packet;
[0013] Determine the to-be-transmitted packets and partial transmission packets of the corresponding data packets according to the backup lower limit and the transmission lower limit of each data packet;
[0014] composing an actual transmission packet according to the partial transmission packets corresponding to each data packet in a single data transmission packet;
[0015] Data communication is performed according to the actual transmission packets corresponding to each data transmission packet and the occupied transmission channel.
[0016] Furthermore, the storage size change rate is a ratio of a target storage size to an original storage size, and the response time change rate is a ratio of a target response time to an original response time.
[0017] Further, the method of determining the sensitivity type of the corresponding data type according to the storage size change rate and the response time change rate of each data type includes:
[0018] Obtaining the storage size change rate and the response time change rate of a single data type;
[0019] Determine the sensitivity type of the corresponding data type according to the storage size change rate and the response time change rate, wherein:
[0020] If the storage size change rate and the response time change rate meet the sensitive condition, then the sensitive type of the data type is determined to be a strongly sensitive type;
[0021] If the storage size change rate and the response time change rate do not meet the sensitivity condition, the sensitive type of the data type is determined to be a weakly sensitive type;
[0022] Determine the sensitivity of each data type;
[0023] Wherein, the sensitive condition is satisfying the first sensitive condition, the second sensitive condition or the third sensitive condition;
[0024] The first sensitive condition is that the storage size change rate exceeds the storage limit range;
[0025] The second sensitive condition is that the response time change rate exceeds the response limit range;
[0026] The third sensitive condition is that the storage size change rate is within a storage preset range and the response time change rate is within a response preset range.
[0027] Further, the method of determining the sensitivity of the corresponding data type according to the storage size change rate and the response time change rate of each data type includes:
[0028] Get the sensitive type of a single data type;
[0029] The sensitivity of the corresponding data type is determined according to the sensitive type, wherein:
[0030] If a single data type is a strongly sensitive type, the sensitivity is the storage size change rate of the single data type;
[0031] If the single data type is a weakly sensitive type, the sensitivity is 1;
[0032] Determine the sensitivity of each data type.
[0033] Further, the data sensitivity equivalent of each data packet is determined according to the sensitivity type and sensitivity of each data type. The method for determining the data sensitivity equivalent of a single data packet according to the sensitivity type and sensitivity of each data type includes:
[0034] Determine the data types contained in a single data packet and the corresponding proportion of each data type;
[0035] Determine the data sensitivity equivalent of the corresponding data packet by assigning a weighted value to the sensitivity of the corresponding data type according to the proportion of each data type included;
[0036] Determining the data sensitivity equivalent of each data packet;
[0037] The sum of the proportions of data types contained in a single data packet is 1.
[0038] Furthermore, each data packet is divided into a number of data transmission packets according to the ideal transmission time, the original storage size of each data packet in the original operating system and the bandwidth of a single transmission channel, including:
[0039] Determine the redundant bandwidth and the actual bandwidth according to the bandwidth of a single transmission channel;
[0040] Determine the data transmission time according to the ratio of the original storage size of each data packet in the original operating system to the actual bandwidth;
[0041] Determine the benchmark quantity based on the ratio of data transmission time to ideal transmission time;
[0042] Dividing each data packet into the reference number of data transmission packets;
[0043] The original storage sizes of the data transmission packets in the original operating system are the same, and the sum of the redundant bandwidth and the actual bandwidth is the bandwidth of a single transmission channel.
[0044] Further, the number of transmission channel occupancy of the data transmission packet is determined according to the original storage size of each data packet in a single data transmission packet and the corresponding data sensitivity equivalent, including:
[0045] Determining the original storage size of a single data transmission packet according to the sum of the original storage sizes of the data packets in the single data transmission packet;
[0046] Determine the original storage size of a single data packet in a single data transmission packet and the corresponding data sensitivity equivalent to determine the target storage size of the data packet;
[0047] Determine the target storage size of the corresponding single data transmission packet according to the sum of the target storage sizes of the data packets in the single data transmission packet;
[0048] The number of transmission channels occupied by a single data transmission packet is determined according to the ratio of the target storage size to the original storage size of the data transmission packet, wherein:
[0049] If the ratio of the target storage size to the original storage size of a single data transmission packet is greater than or equal to a preset ratio, then the number of transmission channel occupancy of the data transmission packet is determined to be the ratio of the target storage size to the original storage size;
[0050] If the ratio of the target storage size to the original storage size of a single data transmission packet is smaller than a preset ratio, it is determined that the number of transmission channels occupied by the data transmission packet is the estimated number of transmission channels.
[0051] Further, the association type of each data packet in the original operating system is determined. The method for determining the association type of a single data packet in the original operating system includes:
[0052] If a single data packet can be run independently in the original operating system, its associated type is determined to be an independent type;
[0053] If a single data packet cannot be run independently in the original operating system, its association type is determined to be a non-independent type.
[0054] Further, determining a backup lower limit and a transmission lower limit of the corresponding data packet according to the association type of each data packet;
[0055] The backup lower limit of the independent type of data packet is smaller than the backup lower limit of the non-independent type of data packet, and the backup lower limit of a single data packet is larger than the transmission lower limit of the data packet.
[0056] Further, the method for determining the to-be-transmitted packets and the partially transmitted packets of the corresponding data packets according to the backup lower limit and the transmission lower limit of each data packet includes:
[0057] Backing up the data packet according to the backup lower limit of the single data packet to form backup lower limit backup packets;
[0058] Determine the packet to be transmitted according to the data packet and several corresponding backup packets;
[0059] Selecting part of the transmission packets of the data packet from the packets to be transmitted according to the transmission lower limit;
[0060] Determine the packets to be transmitted and the partially transmitted packets of each data packet.
[0061] Compared with the prior art, the beneficial effect of the present invention is that the communication method based on multiple operating systems provided by the present invention systematically analyzes and optimizes the data transmission process, significantly improving the efficiency and security of data transmission. By determining the sensitive type and sensitivity of the data type, the transmission channel occupancy of different data packets is effectively managed to ensure fast and reliable data transmission between multiple operating systems; at the same time, the subpacketization of each data packet and the reasonable configuration of the transmission channel greatly reduce the waste of resources, improve the overall responsiveness and efficiency of the system, and provide a solid foundation for cross-system communication.
[0062] Furthermore, by evaluating and managing the transmission requirements of different data types based on sensitivity, we ensure that highly sensitive data is effectively adjusted when it changes; setting the sensitivity of highly sensitive data to the storage size change rate helps to timely identify and respond to potential risks during the transmission process, thereby optimizing resource allocation and transmission strategies; setting the sensitivity of weakly sensitive data to 1 simplifies the management process and improves the overall efficiency of the system. This method not only improves the security of data transmission, but also enhances compatibility and stability across operating systems.
[0063] Furthermore, it improves the efficiency of data transmission and avoids unnecessary waste of resources, and also provides scientific support for data management in a multi-operating system environment.
[0064] Furthermore, by dynamically adjusting the ratio of redundant bandwidth to actual bandwidth, data transmission efficiency is optimized to ensure efficient data transmission under different network conditions; by reasonably dividing the relationship between data transmission packets and the number of channels, transmission time can be controlled and the response speed of the overall system can be improved; ensuring that the size of each data transmission packet is consistent, thereby simplifying data management and reducing the probability of errors; this flexible bandwidth management and data packet division strategy can effectively improve the utilization of network resources.
[0065] Furthermore, by reasonably calculating the ratio of the original storage size to the target storage size of the data transmission packet, the occupied number of transmission channels can be effectively optimized, thereby improving bandwidth utilization; setting a preset ratio can ensure that the redundant bandwidth is reasonably configured to avoid waste of resources; according to the difference in data sensitivity equivalents, the number of transmission channels is dynamically adjusted to ensure the reliability and real-time performance of data transmission; in addition, this method can reduce transmission delays, improve the overall performance of the system, and provide a more efficient solution for data interaction in a multi-operating system environment.
[0066] Furthermore, by distinguishing between independent and non-independent data packets, resource consumption and transmission delay can be reduced while ensuring transmission integrity. Independent data packets, due to their self-sufficiency, allow less backup and transmission, reducing system burden; while non-independent data packets ensure data integrity and collaborative operation requirements through more backup and transmission. This method effectively classifies data packets and optimizes backup and transmission strategies, thereby improving data communication efficiency and reliability in a multi-operating system environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 A step diagram of a communication method based on multiple operating systems according to an embodiment of the present invention;
[0068] Figure 2 A diagram of the steps of a method for dividing data into data transmission packets according to an embodiment of the present invention;
[0069] Figure 3 A diagram showing the steps of a method for determining the number of transmission channel occupancy of a single data transmission packet according to an embodiment of the present invention;
[0070] Figure 4 A diagram of the steps of a method for determining packets to be transmitted and partially transmitted packets of each data packet according to an embodiment of the present invention. DETAILED DESCRIPTION
[0071] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0072] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0073] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0074] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0075] See also Figure 1 As shown, it is a step diagram of a communication method based on multiple operating systems according to an embodiment of the present invention. An embodiment of the present invention provides a communication method based on multiple operating systems, which includes:
[0076] Step S1, obtaining the bandwidth and ideal transmission time of a single transmission channel, obtaining the original storage size and original response time of each data type of the priori data in the original operating system, and the target storage size and target response time of each data type of the priori data when transmitted from the original operating system to the target operating system; it can be understood that before formally performing data communication transmission, the priori data needs to be used for transmission between the original operating system and the target operating system, and the priori data includes all data types in the present invention;
[0077] Step S2, determining the sensitivity type and sensitivity of the corresponding data type according to the storage size change rate and response time change rate of each data type;
[0078] In implementation, step S2 includes step S21 and step S22, step S21 is to determine the sensitivity type of the corresponding data type according to the storage size change rate and response time change rate of each data type, and step S22 is to determine the corresponding sensitivity of each data type according to its sensitivity type;
[0079] Step S3, determining the data sensitivity equivalent of each data packet according to the sensitivity type and sensitivity of each data type; it can be understood that the data to be transmitted is composed of a plurality of data packets, each of which contains data of at least one data type;
[0080] Step S4, dividing each data packet into a plurality of data transmission packets according to the ideal transmission time, the original storage size of each data packet in the original operating system and the bandwidth of a single transmission channel, wherein the estimated number of transmission channels corresponding to a single data transmission packet is 1; it can be understood that a single data transmission packet is composed of a plurality of data packets, that is, the reference number is less than the number of data packets;
[0081] Step S5, determining the number of transmission channel occupancy of the data transmission packet according to the original storage size of each data packet in the single data transmission packet and the corresponding data sensitivity equivalent, so as to determine the occupied transmission channel of the corresponding data transmission packet (i.e. determining the occupied transmission channel according to the number of transmission channel occupancy of the single data transmission packet); it can be understood that when communicating the data to be transmitted, all data transmission packets are communicated simultaneously, so the actual number of transmission channels required is the sum of the number of transmission channel occupancy of each data transmission packet;
[0082] In implementation, multiple data packets of data to be transmitted are divided into three data transmission packets, and the number of transmission channels occupied by these three data transmission packets are 2, 2, and 3 respectively. Therefore, 7 transmission channels are required when communicating the data to be transmitted, of which two transmission channels are selected as the occupied transmission channels of the first data transmission packet, another two transmission channels are selected as the occupied transmission channels of the second data transmission packet, and the remaining three transmission channels are used as the occupied transmission channels of the third data transmission packet;
[0083] Step S6, determining the association type of each data packet in the original operating system to determine the backup lower limit and transmission lower limit of the corresponding data packet;
[0084] Step S7, determining the to-be-transmitted packets and the partially transmitted packets of the corresponding data packets according to the backup lower limit and the transmission lower limit of each data packet;
[0085] Step S8, forming an actual transmission packet of a single data transmission packet according to the partial transmission packets corresponding to each data packet in the single data transmission packet; in implementation, the first data transmission packet includes three data packets, and the three data packets correspond to the partial transmission packet n1, the partial transmission packet n2 and the partial transmission packet n3 respectively, then the actual transmission packet corresponding to the first data transmission packet should include the partial transmission packet n1, the partial transmission packet n2 and the partial transmission packet n3;
[0086] Step S9, data communication is performed on the occupied transmission channel according to the actual transmission packet corresponding to each data transmission packet; it can be understood that a single data transmission packet determines its corresponding actual transmission packet and occupied transmission channel, and the actual transmission packet is communicated / transmitted on the occupied transmission channel.
[0087] It can be understood that data types include six categories: (1) Numeric types, including integer types and floating-point types; integer types such as short integer, integer, long integer, etc. can be divided into signed and unsigned types; floating-point types such as single-precision floating-point type and double-precision floating-point type; (2) Character types, including ordinary character types and wide character types; ordinary character types usually represent a single character and store character values under a specific encoding; wide character types are used to store a wider character set and may take up more storage space; (3) Boolean type, which has only two values, namely true and false; (4) Enumeration type, which consists of a set of named constant values and can be used to represent specific states or options; (5) Structure type, a composite type formed by combining different types of data; (6) Pointer type, which stores the value of a memory address.
[0088] In the embodiment of the present invention, the data types include eight data types: integer type, floating point type, ordinary character type, wide character type, Boolean type, enumeration type, structure type and pointer type.
[0089] It can be understood that the communication method based on multiple operating systems provided by the present invention determines the sensitive type and sensitivity of the data type by comprehensively considering the storage size and response time of the data type, intelligently divides the data transmission packets and optimizes the occupancy of the transmission channel, and sets the backup and transmission lower limits according to the associated type of the data packet to ensure the integrity and efficiency of the data during the transmission process, thereby effectively improving the flexibility and reliability of communication between multiple operating systems: (1) By analyzing the storage size and response time of the data packet, the data transmission packets are reasonably divided, the bandwidth utilization is improved, and the overall transmission time is shortened; (2) By analyzing the sensitivity of different data types, the transmission strategy can be flexibly adjusted to meet diverse communication scenarios; (3) This method can dynamically adjust the transmission channel when transmitting a large number of data packets to adapt to system environments of different scales and complexities; (4) By determining the backup lower limit and the transmission lower limit, the reliability of data transmission is enhanced and the probability of transmission failure caused by network failure is reduced.
[0090] Specifically, in step S2, the storage size change rate is the ratio of the target storage size to the original storage size, and the response time change rate is the ratio of the target response time to the original response time.
[0091] Specifically, in step S2, the method of determining the sensitive type of the corresponding data type according to the storage size change rate and the response time change rate of each data type includes:
[0092] Step S211, obtaining the storage size change rate and the response time change rate of a single data type;
[0093] Step S212, determining the sensitivity type of the corresponding data type according to the storage size change rate and the response time change rate, wherein:
[0094] If the storage size change rate and the response time change rate meet the sensitive condition, then the sensitive type of the data type is determined to be a strongly sensitive type;
[0095] If the storage size change rate and the response time change rate do not meet the sensitivity condition, the sensitive type of the data type is determined to be a weakly sensitive type;
[0096] Step S213, determining the sensitive type of each data type according to step S211 and step S212;
[0097] Wherein, the sensitive condition is satisfying the first sensitive condition, the second sensitive condition or the third sensitive condition;
[0098] The first sensitive condition is that the storage size change rate exceeds the storage limit range;
[0099] The second sensitive condition is that the response time change rate exceeds the response limit range;
[0100] The third sensitive condition is that the storage size change rate is within a storage preset range and the response time change rate is within a response preset range.
[0101] It can be understood that (1) a storage standard range and a response standard range are pre-set, and both of these standard ranges are relatively small ranges. Therefore, when the storage size change rate of a certain data type is within the storage standard range and the response time change rate is within the response standard range, it can be considered that the data type does not change much on different operating systems, and is therefore judged to be weakly sensitive. Usually, the storage standard range and the response standard range are both [95%, 105%]. (2) The storage limit range and the response limit range are both relatively large ranges. When the storage size change rate of a certain data type exceeds the storage limit range or the response time change rate exceeds the response limit range, it is considered that the data of the data type on different operating systems changes greatly, and is therefore judged to be strongly sensitive. Usually, the storage limit range is [95%, 105%]. The range and response limit range are both [85%, 115%]; that is, the first sensitive condition is that the storage size change rate is less than 85% or the storage size change rate is greater than 115%, and the second sensitive condition is that the response time change rate is less than 85% or the response time change rate is greater than 115%; (3) The storage preset range is the part of the storage limit range excluding the storage standard range, and the response preset range is the part of the response limit range excluding the response standard range. When the storage size change rate of a certain data type is within the storage preset range and the response time change rate is within the response preset range, it is also considered that the data change of the data type on the operating system is large, and it is judged to be highly sensitive. Usually, the storage preset range and response preset range are both [85%, 95%] and [105%, 115%].
[0102] Therefore, in practice, for highly sensitive data, due to transmission fluctuations and time constraints, it is necessary to increase its transmission channels while ensuring its stable transmission.
[0103] In implementation, the sensitive type of each data type is determined according to the sensitive type determination method of a single data type.
[0104] Specifically, in step S2, the method of determining the sensitivity of the corresponding data type according to the storage size change rate and the response time change rate of each data type includes:
[0105] Step S221, obtaining the sensitive type of a single data type;
[0106] Step S222, determining the sensitivity of the corresponding data type according to the sensitive type, wherein:
[0107] If a single data type is a strongly sensitive type, the sensitivity is the storage size change rate of the single data type;
[0108] If the single data type is a weakly sensitive type, the sensitivity is 1;
[0109] Step S223, determining the sensitivity of each data type according to step S221 and step S222.
[0110] It is understandable that for strongly sensitive data types, its changes in the two operating systems need to be considered, and the main factor affecting its data communication is the change in storage size; therefore, for strongly sensitive data types, its storage size change rate is set as sensitivity.
[0111] It is understandable that by evaluating and managing the transmission requirements of different data types, we can ensure that highly sensitive data is effectively adjusted when it changes; setting the sensitivity of highly sensitive data to the storage size change rate helps to timely identify and respond to potential risks during the transmission process, thereby optimizing resource allocation and transmission strategies; setting the sensitivity of weakly sensitive data to 1 simplifies the management process and improves the overall efficiency of the system. This method not only improves the security of data transmission, but also enhances compatibility and stability across operating systems.
[0112] Specifically, in step S3, the data sensitivity equivalent of each data packet is determined according to the sensitivity type and sensitivity of each data type. The method for determining the data sensitivity equivalent of a single data packet according to the sensitivity type and sensitivity of each data type includes:
[0113] Step S31, determining the data types contained in a single data packet and the corresponding proportions of each data type;
[0114] Step S32, assigning weighted values to the sensitivities of the corresponding data types according to the proportions of the various data types included, to determine the data sensitivity equivalent of the corresponding data packet;
[0115] Step S33, determining the data sensitivity equivalent of each data packet according to step S31 and step S32;
[0116] The sum of the proportions of data types contained in a single data packet is 1.
[0117] In implementation, for data packet A, it is determined that data packet A contains data of three data types. According to step S31, the sensitivities of these three data types are determined to be a1, a2 and a3, respectively, and the proportions of these three data types are 4:3:3; according to step S32, the data sensitivity equivalent of the data packet is determined to be a1×0.4+a2×0.3+a3×0.3.
[0118] It can be understood that, through steps S31 and S32, weighted values are assigned according to the proportion of data types, so that the sensitivity of each data type (data sensitivity equivalent) can be dynamically adjusted for quantitative evaluation, thereby enhancing the adaptability and processing efficiency to diversified data; through clear data sensitivity equivalents, the transmission problems of highly sensitive data can be effectively identified and controlled in a cross-operating system environment, thereby optimizing data communication time and transmission resources, improving the efficiency of data transmission and avoiding unnecessary waste of resources; it can effectively handle data transmission needs between different operating systems, improve system compatibility and stability, and make data exchange smoother.
[0119] See also Figure 2 Specifically, in step S4, each data packet is divided into a plurality of data transmission packets according to the ideal transmission time, the original storage size of each data packet in the original operating system and the bandwidth of a single transmission channel, including:
[0120] Step S41, determining the redundant bandwidth and the actual bandwidth according to the bandwidth of a single transmission channel; it is understandable that in an actual network environment, the bandwidth of a single transmission channel is often not fixed, and may fluctuate due to factors such as network congestion and the impact of traffic of other users, which makes the actual bandwidth of the transmission channel during actual transmission not equal to the bandwidth of the transmission channel, so it is necessary to design the redundant bandwidth;
[0121] In implementation, the bandwidth of a single channel is 100Mbps, but the bandwidth in the actual transmission process may fluctuate between 50Mbps and 120Mbps; therefore, the redundant bandwidth is at most half of the bandwidth of the transmission channel, that is, the ratio of the redundant bandwidth to the actual bandwidth is at most 1:1, preferably, the ratio of the redundant bandwidth to the actual bandwidth is 3:7;
[0122] Step S42, determining the data transmission time according to the ratio of the original storage size of each data packet in the original operating system to the actual bandwidth;
[0123] It can be understood that, given that the total storage size of the transmission data packet is S, and the bandwidth of a single transmission channel is B (in bits / second), the time required to transmit this data packet is T=S / B. If you want to complete the transmission within the ideal transmission time, you can consider increasing the number of transmission channels, hoping to shorten the transmission time to 1 / m of the original (the ratio of the ideal transmission time to the data transmission time), then the theoretical number of transmission channels required is m (the ratio of the data transmission time to the ideal transmission time);
[0124] Step S43, determining a reference quantity according to a ratio of the data transmission time to the ideal transmission time;
[0125] It can be understood that for each transmission channel, a data transmission packet is provided for transmission, so the number of references is equal to the number of transmission channels;
[0126] Step S44, dividing each data packet into the reference number of data transmission packets;
[0127] Among them, the original storage size of each data transmission packet in the original operating system is the same. It can be understood that the original storage size of a single data transmission packet in the original operating system is the sum of the original storage sizes of all data packets in the data transmission packet in the original operating system. The purpose of making the original storage size of each data transmission packet in the original operating system equal can be achieved by splitting the data packet, that is, the data packet can be split into multiple data transmission packets;
[0128] The sum of the redundant bandwidth and the actual bandwidth is the bandwidth of a single transmission channel.
[0129] It can be understood that by dynamically adjusting the ratio of redundant bandwidth to actual bandwidth, the data transmission efficiency is optimized to ensure efficient data transmission under different network conditions; by reasonably dividing the relationship between data transmission packets and the number of channels, the transmission time can be controlled and the response speed of the overall system can be improved; ensuring that the size of each data transmission packet is consistent, thereby simplifying data management and reducing the probability of errors; this flexible bandwidth management and data packet division strategy can effectively improve the utilization of network resources.
[0130] See also Figure 3 , which is a step diagram of a method for determining the number of transmission channel occupancy of a single data transmission packet according to an embodiment of the present invention. Specifically, in step S5, the number of transmission channel occupancy of the data transmission packet is determined according to the original storage size of each data packet in the single data transmission packet and the corresponding data sensitivity equivalent, including:
[0131] Step S51, determining the original storage size of a single data transmission packet according to the sum of the original storage sizes of the data packets in the single data transmission packet;
[0132] Step S52, determining the original storage size of a single data packet in a single data transmission packet and the corresponding data sensitivity equivalent to determine the target storage size of the data packet;
[0133] Step S53, determining the target storage size of the corresponding single data transmission packet according to the sum of the target storage sizes of the data packets in the single data transmission packet;
[0134] Step S54, determining the number of transmission channel occupancy of the data transmission packet according to the ratio of the target storage size of the single data transmission packet to the original storage size, wherein:
[0135] If the ratio of the target storage size to the original storage size of a single data transmission packet is greater than or equal to a preset ratio, the number of transmission channels occupied by the data transmission packet is determined to be the ratio of the target storage size to the original storage size. When the ratio of the target storage size to the original storage size is less than / equal to 2:1 and greater than the preset ratio, the number of transmission channels occupied by the data transmission packet is 2; when the ratio of the target storage size to the original storage size is greater than 2:1, the number of transmission channels occupied is rounded off according to the principle of rounding off;
[0136] If the ratio of the target storage size to the original storage size of a single data transmission packet is smaller than a preset ratio, it is determined that the number of transmission channels occupied by the data transmission packet is the estimated number of transmission channels.
[0137] In implementation, the setting of the preset ratio should take into account the existence of redundant bandwidth, so its value range is generally set to 1.3:1~1.7:1. A range that is too small may result in too many transmission channels being occupied, resulting in a waste of computing resources / communication resources. A range that is too small may result in the reserved redundant bandwidth being unable to meet the transmission communication of a single data transmission packet, resulting in excessively long transmission time; therefore, in order to balance time and the number of transmission channels, the preset ratio is set to 1.5:1.
[0138] It is understandable that a transmission channel is initially set for a single data transmission packet, but the data sensitivity equivalents of each data packet in a single data transmission packet are different. If the data sensitivity equivalents of each data packet in a single data transmission packet are relatively large, the data transmission packet may change too much, and the reserved redundant bandwidth cannot meet the transmission requirements. Therefore, it is necessary to increase the number of transmission channels for the data transmission packet.
[0139] It can be understood that by reasonably calculating the ratio of the original storage size to the target storage size of the data transmission packet, the occupied number of transmission channels can be effectively optimized, thereby improving bandwidth utilization; setting a preset ratio can ensure that redundant bandwidth is reasonably configured to avoid waste of resources; according to the difference in data sensitivity equivalents, the number of transmission channels is dynamically adjusted to ensure the reliability and real-time performance of data transmission; in addition, this method can reduce transmission delays, improve the overall performance of the system, and provide a more efficient solution for data interaction in a multi-operating system environment.
[0140] Specifically, in step S6, the association type of each data packet in the original operating system is determined. The method for determining the association type of a single data packet in the original operating system includes:
[0141] If a single data packet can be run independently in the original operating system, its associated type is determined to be an independent type;
[0142] If a single data packet cannot be run independently in the original operating system (that is, other data packets must be run synchronously during operation), its associated type is determined to be a non-independent type.
[0143] It is understandable that whether a data packet can be run independently in the original operating system is determined on the original operating system; in implementation, it is necessary to determine in advance whether each data packet can be run independently.
[0144] Specifically, in the step S7, the backup lower limit and the transmission lower limit of the corresponding data packet are determined according to the association type of each data packet;
[0145] The backup lower limit of the independent type of data packet is smaller than the backup lower limit of the non-independent type of data packet, and the backup lower limit of a single data packet is larger than the transmission lower limit of the data packet.
[0146] It is understandable that the number of backups and transmissions of independent data packets can be small, because independent data packets do not need to cooperate with other data packets to run, and have no impact on the operation of other data packets. Therefore, after the transmission is completed, it can be determined whether the communication is complete based on the packet loss rate calculation in the prior art, and then determine whether to re-communicate the data packet; however, non-independent data packets must run in cooperation with other data packets, and the integrity of their communication has a great impact on other data packets, so their backup and transmission volumes should be set relatively large to avoid the impact of non-independent data packets on other data packets.
[0147] In practice, the backup lower limit of independent data packets is generally 3 to 5 copies, and the transmission lower limit is generally 1 to 3 copies; preferably, the backup lower limit is 3 copies, and the transmission lower limit is 1 copy.
[0148] In practice, the backup lower limit for non-independent data packets is generally 4 to 8 copies, and the transmission lower limit is generally 2 to 5 copies; preferably, the backup lower limit is 4 copies, and the transmission lower limit is 2 copies.
[0149] Understandably,
[0150] See also Figure 4 Specifically, in step S8, the method for determining the to-be-transmitted packets and the partially transmitted packets of the corresponding data packets according to the backup lower limit and the transmission lower limit of each data packet includes:
[0151] Step S81, backing up the data packet according to the backup lower limit of the single data packet to form backup lower limit backup packets;
[0152] Step S82, determining the packet to be transmitted according to the data packet and the corresponding backup packets; it can be understood that the packet to be transmitted is composed of a single data packet itself and the corresponding backup packets;
[0153] Step S83, selecting partial transmission packets of the data packet from the packets to be transmitted according to the transmission lower limit, wherein the partial transmission packets are data packets (data packets themselves / backup packets) selected from the packets to be transmitted with the transmission lower limit;
[0154] Step S84, determining the packets to be transmitted and the partial transmitted packets of each data packet according to steps S81 to S83.
[0155] In implementation, (1) for an independent type of data packet, its backup lower limit and transmission lower limit are 3 copies and 1 copy respectively, then there are three backup packages, and its to-be-transmitted package includes the original data packet itself and three backup packages, and the partial transmission package is to select a data packet itself or any backup package from the to-be-transmitted package; (2) for a non-independent type of data packet, its backup lower limit and transmission lower limit are 4 copies and 2 copies respectively, then there are four backup packages, and its to-be-transmitted package includes the original data packet itself and four backup packages, and the partial transmission package is to select a data packet itself + any backup package from the to-be-transmitted package, or, select any two backup packages.
[0156] It is understandable that by distinguishing between independent and non-independent data packets, resource consumption and transmission delay can be reduced while ensuring transmission integrity. Independent data packets, due to their self-sufficiency, allow less backup and transmission, reducing system burden; while non-independent data packets ensure data integrity and collaborative operation requirements through more backup and transmission. This method effectively classifies data packets and optimizes backup and transmission strategies, thereby improving data communication efficiency and reliability in a multi-operating system environment.
[0157] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0158] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A communication method based on multiple operating systems, characterized in that: include: Obtaining the bandwidth and ideal transmission time of a single transmission channel, obtaining the original storage size and original response time of each data type of the prior data in the original operating system, and the target storage size and target response time of each data type of the prior data when transmitted from the original operating system to the target operating system; Determine the sensitivity type and sensitivity of the corresponding data type according to the storage size change rate and response time change rate of each data type; Determining the data sensitivity equivalent of each data packet according to the sensitivity type and sensitivity of each data type, and the method for determining the data sensitivity equivalent of each data packet according to the sensitivity type and sensitivity of each data type includes: Determine the data types contained in a single data packet and the corresponding proportion of each data type; Determine the data sensitivity equivalent of the corresponding data packet by assigning a weighted value to the sensitivity of the corresponding data type according to the proportion of each data type included; Determining the data sensitivity equivalent of each data packet; Among them, the sum of the proportions of data types contained in a single data packet is 1; Divide each data packet into a number of data transmission packets according to an ideal transmission time, an original storage size of each data packet in an original operating system, and a bandwidth of a single transmission channel; Determine the number of transmission channel occupancy of the data transmission packet according to the original storage size of each data packet in a single data transmission packet and the corresponding data sensitivity equivalent, so as to determine the occupied transmission channel of the corresponding data transmission packet; The number of transmission channel occupancy of the data transmission packet is determined according to the original storage size of each data packet in a single data transmission packet and the corresponding data sensitivity equivalent, including: Determining the original storage size of a single data transmission packet according to the sum of the original storage sizes of the data packets in the single data transmission packet; Determine the original storage size of a single data packet in a single data transmission packet and the corresponding data sensitivity equivalent to determine the target storage size of the data packet; Determine the target storage size of the corresponding single data transmission packet according to the sum of the target storage sizes of the data packets in the single data transmission packet; The number of transmission channels occupied by a single data transmission packet is determined according to the ratio of the target storage size to the original storage size of the data transmission packet, wherein: If the ratio of the target storage size to the original storage size of a single data transmission packet is greater than or equal to a preset ratio, then the number of transmission channel occupancy of the data transmission packet is determined to be the ratio of the target storage size to the original storage size; When the ratio of the target storage size to the original storage size is less than or equal to 2:1 and greater than a preset ratio, the number of transmission channels occupied by the data transmission packet is 2; when the ratio of the target storage size to the original storage size is greater than 2:1, the number of transmission channels occupied is rounded off according to the principle of rounding; If the ratio of the target storage size to the original storage size of a single data transmission packet is less than a preset ratio, then determining that the number of transmission channels occupied by the data transmission packet is the estimated number of transmission channels; Determine the association type of each data packet in the original operating system to determine the backup lower limit and transmission lower limit of the corresponding data packet; Determine the to-be-transmitted packets and partial transmission packets of the corresponding data packets according to the backup lower limit and the transmission lower limit of each data packet; composing an actual transmission packet according to the partial transmission packets corresponding to each data packet in a single data transmission packet; Data communication is performed according to the actual transmission packets corresponding to each data transmission packet and the occupied transmission channel.
2. The communication method based on multiple operating systems according to claim 1, characterized in that: The storage size change rate is the ratio of the target storage size to the original storage size, and the response time change rate is the ratio of the target response time to the original response time.
3. The communication method based on multiple operating systems according to claim 1, characterized in that: The method of determining the sensitivity type of the corresponding data type according to the storage size change rate and the response time change rate of each data type includes: Obtaining the storage size change rate and the response time change rate of a single data type; Determine the sensitivity type of the corresponding data type according to the storage size change rate and the response time change rate, wherein: If the storage size change rate and the response time change rate meet the sensitive condition, then the sensitive type of the data type is determined to be a strongly sensitive type; If the storage size change rate and the response time change rate do not meet the sensitivity condition, the sensitive type of the data type is determined to be a weakly sensitive type; Determine the sensitivity of each data type; Wherein, the sensitive condition is satisfying the first sensitive condition, the second sensitive condition or the third sensitive condition; The first sensitive condition is that the storage size change rate exceeds the storage limit range; The second sensitive condition is that the response time change rate exceeds the response limit range; The third sensitive condition is that the storage size change rate is within a storage preset range and the response time change rate is within a response preset range.
4. The communication method based on multiple operating systems according to claim 3, characterized in that: The method of determining the sensitivity of the corresponding data type according to the storage size change rate and the response time change rate of each data type includes: Get the sensitive type of a single data type; The sensitivity of the corresponding data type is determined according to the sensitive type, wherein: If a single data type is a strongly sensitive type, the sensitivity is the storage size change rate of the single data type; If the single data type is a weakly sensitive type, the sensitivity is 1; Determine the sensitivity of each data type.
5. The communication method based on multiple operating systems according to claim 1, characterized in that: Each data packet is divided into several data transmission packets according to the ideal transmission time, the original storage size of each data packet in the original operating system and the bandwidth of a single transmission channel, including: Determine the redundant bandwidth and the actual bandwidth according to the bandwidth of a single transmission channel; Determine the data transmission time according to the ratio of the original storage size of each data packet in the original operating system to the actual bandwidth; Determine the benchmark quantity based on the ratio of data transmission time to ideal transmission time; Dividing each data packet into the reference number of data transmission packets; The original storage sizes of the data transmission packets in the original operating system are the same, and the sum of the redundant bandwidth and the actual bandwidth is the bandwidth of a single transmission channel.
6. The communication method based on multiple operating systems according to claim 1, characterized in that: Determine the association type of each data packet in the original operating system. The method for determining the association type of a single data packet in the original operating system includes: If a single data packet can be run independently in the original operating system, its associated type is determined to be an independent type; If a single data packet cannot be run independently in the original operating system, its association type is determined to be a non-independent type.
7. The communication method based on multiple operating systems according to claim 6, characterized in that: Determine the backup lower limit and transmission lower limit of the corresponding data packet according to the association type of each data packet; The backup lower limit of the independent type of data packet is smaller than the backup lower limit of the non-independent type of data packet, and the backup lower limit of a single data packet is larger than the transmission lower limit of the data packet.
8. The communication method based on multiple operating systems according to claim 7, characterized in that: The method for determining the to-be-transmitted packets and the partially transmitted packets of the corresponding data packets according to the backup lower limit and the transmission lower limit of each data packet includes: Backing up the data packet according to the backup lower limit of the single data packet to form backup lower limit backup packets; Determine the packet to be transmitted according to the data packet and several corresponding backup packets; Selecting part of the transmission packets of the data packet from the packets to be transmitted according to the transmission lower limit; Determine the packets to be transmitted and the partially transmitted packets of each data packet.
Citation Information
Patent Citations
Inter-core data communication method of multi-core operating system
CN117851333A
Data processing method and system, client, and page engine
CN104253788A
Method, monitoring equipment and system for carrying out privacy protection processing on information of user
CN109800603A