Method for reducing data transmission quantity of Ovirt cloud platform and Ovirt cloud platform

By using the hash value mechanism in the Ovirt cloud platform to determine whether data is sent repeatedly, the problem of repeated data transmission during data synchronization between the node end and the management end is solved, and the effect of significantly reducing bandwidth traffic is achieved.

CN118555306APending Publication Date: 2024-08-27SHENZHEN RENDERBUS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410708008.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, when the Ovirt cloud platform synchronizes data between the node end and the management end, it will cause a large amount of repeated data to be sent in a loop, resulting in unnecessary consumption of bandwidth traffic.

Method used

The hash value mechanism is used to process the data to be sent to determine whether it is the same as the hash value of the historically sent data. If it is the same, only the hash value will be sent. If it is different, the entire data and hash value will be sent. The management end will use the hash value based on the hash value. The value obtains the corresponding data from the database to reduce the transmission of duplicate data.

Benefits of technology

It significantly reduces the amount of data transmission and reduces the consumption of bandwidth traffic. For example, the amount of network interaction data on a single server in a day is reduced by 125 times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555306A
    Figure CN118555306A
Patent Text Reader

Abstract

The invention relates to a method for reducing data transmission quantity of an Ovirt cloud platform and the Ovirt cloud platform, and the method applied to a node end comprises the following steps: carrying out Hash processing on current to-be-sent data to obtain a Hash value of the current to-be-sent data; judging whether the hash value of the historical sent data is the same as the hash value of the current to-be-sent data or not; if yes, the hash value of the current to-be-sent data is sent to the management end, so that the management end obtains corresponding data in the database according to the hash value of the current to-be-sent data and returns the data to the page processing layer; and if not, sending the current to-be-sent data and the hash value of the current to-be-sent data to the management end, so that the management end returns the current to-be-sent data to the page processing layer. The size of the hash value is generally a few bytes, so that the hash value is used for replacing the transmission of repeated data, and the consumption of unnecessary bandwidth flow can be greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a method for reducing data transmission volume on an Ovirt cloud platform and an Ovirt cloud platform. Background Art

[0002] As the demand for IaaS (Infrastructure as a Service, cloud computing service model) cloud platforms increases, the physical resources that need to be managed by IaaS cloud platforms are increasing. As an IaaS virtualization cloud platform, Ovirt supports the management of physical servers. The management end needs to synchronize the hardware information of the physical server and the virtualization-related software version information in real time to use this information to create virtual machine resources. In the prior art, this information is collected from the node end, and then the node end is fully synchronized to the management end. However, the amount of data that needs to be synchronized each time is very large (about 500Kb at a time), and most of the data is repeated. A large amount of repeated data is sent cyclically, which will greatly consume unnecessary bandwidth traffic. Summary of the invention

[0003] In order to at least to some extent overcome the problem in the related art that when data is synchronized between a node end and a management end, a large amount of repeated data is sent cyclically, which greatly consumes unnecessary bandwidth traffic, the present application provides an Ovirt cloud platform method for reducing data transmission volume and an Ovirt cloud platform.

[0004] The scheme of this application is as follows:

[0005] According to a first aspect of an embodiment of the present application, there is provided an Ovirt cloud platform method for reducing data transmission volume, which is applied to a node end and includes:

[0006] Perform hash processing on the data to be sent to obtain the hash value of the data to be sent;

[0007] Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data;

[0008] If they are the same, the hash value of the current data to be sent is sent to the management end, so that the management end obtains the corresponding data in the database according to the hash value of the current data to be sent and returns it to the page processing layer;

[0009] If they are not the same, the current data to be sent and the hash value of the current data to be sent are sent to the management end, so that the management end returns the current data to be sent to the page processing layer.

[0010] Preferably, after obtaining the hash value of the current data to be sent, the method further includes:

[0011] The hash value of the current data to be sent is stored.

[0012] Preferably, determining whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data includes:

[0013] Find the hash value of the last sent data in the stored hash values;

[0014] Determine whether the hash value of the last sent data is the same as the hash value of the current data to be sent.

[0015] According to a second aspect of an embodiment of the present application, a method for reducing data transmission volume on an Ovirt cloud platform is provided, which is applied to a management end and includes:

[0016] Receive the hash value sent by the node;

[0017] Obtain data corresponding to the hash value in the database and send it to the page processing layer;

[0018] Receive the data sent by the node and the hash value of the data;

[0019] Forward the data sent by the node to the page processing layer.

[0020] Preferably, the method further comprises:

[0021] The data sent by the node and the hash value of the data are established and stored in the database.

[0022] According to a third aspect of an embodiment of the present application, an Ovirt cloud platform is provided, including:

[0023] Node side and management side;

[0024] The node performs hash processing on the data to be sent to obtain a hash value of the data to be sent;

[0025] Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data;

[0026] If they are the same, the hash value of the data to be sent is sent to the management end;

[0027] If they are not the same, the current data to be sent and the hash value of the current data to be sent are sent to the management end;

[0028] The management end receives the hash value sent by the node end; obtains the data corresponding to the hash value in the database and sends it to the page processing layer;

[0029] Receive the data sent by the node and the hash value of the data; forward the data sent by the node to the page processing layer.

[0030] Preferably, after obtaining the hash value of the data to be sent, the node also stores the hash value of the data to be sent.

[0031] Preferably, the node searches for the hash value of the data sent last time in the stored hash values; and determines whether the hash value of the data sent last time is the same as the hash value of the data to be sent currently.

[0032] Preferably, the management end establishes a corresponding relationship between the data sent by the node end and the hash value of the data and stores them in a database.

[0033] The technical solution provided by the present application may include the following beneficial effects: the method for reducing data transmission volume on the Ovirt cloud platform in the present application is applied to the node end, including: performing hash processing on the current data to be sent to obtain the hash value of the current data to be sent; judging whether the hash value of the historically sent data is the same as the hash value of the current data to be sent; if they are the same, sending the hash value of the current data to be sent to the management end, so that the management end obtains the corresponding data in the database according to the hash value of the current data to be sent and returns it to the page processing layer; if they are not the same, sending the current data to be sent and the hash value of the current data to be sent to the management end, so that the management end returns the current data to be sent to the page processing layer.

[0034] It should be noted that the management end needs to obtain data from the node end at short intervals. Since the data that needs to be synchronized between the node end and the management end is generally divided into the hardware information of the physical server and the software version information related to virtualization, the version generally does not change in a short period of time. At this time, the hardware information of the physical server and the software version information related to virtualization will not change in the adjacent data synchronizations. Based on this premise, this application introduces a hash value mechanism. Since the hash value generated by the same data is the same, this application determines whether the data has been sent by judging the hash value of the data to be sent each time. If the hash value of the historically sent data is the same as the hash value of the current data to be sent, it means that the same data has been sent in history. At this time, only the hash value of the current data to be sent needs to be sent to the management end, and the management end can obtain the data corresponding to the hash value in the database according to the hash value of the current data to be sent. The size of the hash value is generally just a few bytes. Replacing the sending of duplicate data with the hash value can greatly reduce the consumption of unnecessary bandwidth traffic.

[0035] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] Figure 1 It is a flowchart of a method for reducing data transmission volume on an Ovirt cloud platform applied to a node end provided by an embodiment of the present application;

[0038] Figure 2 It is a flowchart of a method for reducing data transmission volume on an Ovirt cloud platform applied to a management end provided by an embodiment of the present application;

[0039] Figure 3 It is a structural diagram of an Ovirt cloud platform provided by an embodiment of the present application.

[0040] Reference numerals: node end-31; management end-32. DETAILED DESCRIPTION

[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0042] Embodiment 1

[0043] Figure 1 This is a flow chart of a method for reducing data transmission volume on an Ovirt cloud platform applied to a node end provided by an embodiment of the present method, referring to Figure 1 , a method for reducing data transmission volume on an Ovirt cloud platform, applied to a node end, comprising:

[0044] S11: Perform hash processing on the data to be sent to obtain a hash value of the data to be sent;

[0045] S12: Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data;

[0046] S13: If they are the same, the hash value of the current data to be sent is sent to the management end, so that the management end obtains the corresponding data in the database according to the hash value of the current data to be sent and returns it to the page processing layer;

[0047] S14: If they are not the same, the current data to be sent and the hash value of the current data to be sent are sent to the management end, so that the management end returns the current data to be sent to the page processing layer.

[0048] It should be noted that the management end needs to obtain data from the node end at short intervals. Since the data that needs to be synchronized between the node end and the management end is generally divided into the hardware information of the physical server and the software version information related to virtualization, the version generally does not change in a short period of time. At this time, the hardware information of the physical server and the software version information related to virtualization will not change in several adjacent data synchronizations. Based on this premise, this method introduces a hash value mechanism. Since the hash value generated by the same data is the same, this method determines whether the data has been sent by judging the hash value of the data to be sent each time. If the hash value of the historically sent data is the same as the hash value of the current data to be sent, it means that the same data has been sent in history. At this time, it is only necessary to send the hash value of the current data to be sent to the management end, and the management end can obtain the data corresponding to the hash value in the database according to the hash value of the current data to be sent. The size of the hash value is generally just a few bytes. Replacing the sending of repeated data with the hash value can greatly reduce the consumption of unnecessary bandwidth traffic.

[0049] It should be noted that after obtaining the hash value of the current data to be sent, the method further includes:

[0050] The hash value of the current data to be sent is stored.

[0051] Further, determining whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data includes:

[0052] Find the hash value of the last sent data in the stored hash values;

[0053] Determine whether the hash value of the last sent data is the same as the hash value of the current data to be sent.

[0054] Since the hardware information of the physical server and the software version information related to virtualization generally do not change in a short period of time, that is, the hardware information of the physical server and the software version information related to virtualization will not change in several adjacent data synchronizations, when the present technical solution is executed, generally only the hash value of the current data to be sent is compared with the hash value of the last data sent, which can improve the comparison efficiency.

[0055] In practice, before sending data each time, the node performs hash processing on the current data to be sent (node_data) [new_hash=hash(node_data)], obtains the new_hash value and saves it in the hash Value set (hashValue=new_hash).

[0056] If the new_hash value at this time is equal to the hash value of the data sent last time in the hash Value set, only the new_hash value is sent to the management end, and no other data is sent.

[0057] If the new_hash value at this time is not equal to the hash value of the data sent last time in the hash Value set, the entire current data to be sent (node_data) is sent to the management end.

[0058] For example:

[0059] Assume that the management end needs to obtain data from the node end every 20 seconds

[0060] If the existing solution is implemented, the network data volume of a single computing node is:

[0061] The amount of network data in one minute = 60s / 20s*500Kb = 1500Kb;

[0062] The amount of network data in one day = the amount of network data in one minute * 60m * 24h / 1024 = 2110Mb After implementing this technical solution, the amount of network data on a single computing node is:

[0063] Hash value size = 4 bytes = 4 / 1024Kb

[0064] The amount of network data in one minute = 60s / 20s*(4 / 1024)Kb = 0.0117Kb;

[0065] Network data volume in one day = Network data volume in one minute * 60m * 24h / 1024 =

[0066] 16.875Mb

[0067] The amount of network interaction data for a single server in a day was reduced by 125 times.

[0068] Embodiment 2

[0069] Figure 2 This is a flow chart of a method for reducing data transmission volume on an Ovirt cloud platform applied to a management end, provided by an embodiment of the present method. Figure 2 , a method for reducing data transmission volume on an Ovirt cloud platform, applied to a management end, comprising:

[0070] S21: receiving the hash value sent by the node;

[0071] S22: Obtain data corresponding to the hash value in the database and send it to the page processing layer;

[0072] S23: receiving data sent by the node and the hash value of the data;

[0073] S24: Forward the data sent by the node to the page processing layer.

[0074] The method also includes:

[0075] The data sent by the node and the hash value of the data are established and stored in the database.

[0076] In specific practice, if the management end receives the entire data (node_data), it updates the entire data to the database and sends the received data to the page processing layer.

[0077] If the received value is new_hash, the data corresponding to the hash value is obtained from the database and sent to the page processing layer.

[0078] Embodiment 3

[0079] Figure 3 This is a schematic diagram of the structure of an Ovirt cloud platform provided by an embodiment of the method, referring to Figure 3 , an Ovirt cloud platform, comprising:

[0080] Node end 31 and management end 32;

[0081] The node end 31 performs hash processing on the data to be sent to obtain a hash value of the data to be sent.

[0082] Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data;

[0083] If they are the same, the hash value of the current data to be sent is sent to the management terminal 32;

[0084] If they are not the same, the current data to be sent and the hash value of the current data to be sent are sent to the management terminal 32;

[0085] The management terminal 32 receives the hash value sent by the node terminal 31; obtains the data corresponding to the hash value in the database and sends it to the page processing layer;

[0086] Receive the data sent by the node end 31 and the hash value of the data; forward the data sent by the node end to the page processing layer.

[0087] It should be noted that after obtaining the hash value of the data to be sent, the node end 31 also stores the hash value of the data to be sent.

[0088] It should be noted that the node end 31 searches the stored hash values ​​for the hash value of the data sent last time, and determines whether the hash value of the data sent last time is the same as the hash value of the data to be sent currently.

[0089] It should be noted that the management end 32 establishes a corresponding relationship between the data sent by the node end and the hash value of the data and stores them in the database.

[0090] It is understandable that the management end 32 needs to obtain data from the node end 31 at short intervals. Since the data that needs to be synchronized between the node end 31 and the management end 32 are generally divided into the hardware information of the physical server and the software version information related to virtualization, the version generally does not change in a short period of time. At this time, the hardware information of the physical server and the software version information related to virtualization will not change in the adjacent data synchronizations. Based on this premise, the Ovirt cloud platform introduces a hash value mechanism. Since the hash values ​​generated by the same data are the same, the Ovirt cloud platform judges the hash value of each data to be sent by the node end 31 to determine whether the data has been sent. If the hash value of the historically sent data is the same as the hash value of the current data to be sent, it means that the same data has been sent in history. At this time, it is only necessary to send the hash value of the current data to be sent to the management end 32, and the management end 32 can obtain the data corresponding to the hash value in the database according to the hash value of the current data to be sent. The size of the hash value is generally just a few bytes. Replacing the sending of repeated data with the hash value can greatly reduce the consumption of unnecessary bandwidth traffic.

[0091] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0092] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0093] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0094] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0095] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0096] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0097] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0098] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0099] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for reducing data transmission volume on an Ovirt cloud platform, applied to a node end, characterized in that: include: Perform hash processing on the data to be sent to obtain the hash value of the data to be sent; Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data; If they are the same, the hash value of the current data to be sent is sent to the management end, so that the management end obtains the corresponding data in the database according to the hash value of the current data to be sent and returns it to the page processing layer; If they are not the same, the current data to be sent and the hash value of the current data to be sent are sent to the management end, so that the management end returns the current data to be sent to the page processing layer.

2. The method according to claim 1, characterized in that After obtaining the hash value of the current data to be sent, the method further includes: The hash value of the current data to be sent is stored.

3. The method according to claim 2, characterized in that Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data, including: Find the hash value of the last sent data in the stored hash values; Determine whether the hash value of the last sent data is the same as the hash value of the current data to be sent.

4. A method for reducing data transmission volume on an Ovirt cloud platform, applied to a management end, characterized in that: include: Receive the hash value sent by the node; Obtain data corresponding to the hash value in the database and send it to the page processing layer; Receive the data sent by the node and the hash value of the data; Forward the data sent by the node to the page processing layer.

5. The method according to claim 4, characterized in that The method further comprises: The data sent by the node and the hash value of the data are established and stored in the database.

6. An Ovirt cloud platform, characterized in that: include: Node side and management side; The node performs hash processing on the data to be sent to obtain a hash value of the data to be sent; Determine whether the hash value of the historically sent data is the same as the hash value of the currently to-be-sent data; If they are the same, the hash value of the data to be sent is sent to the management end; If they are not the same, the current data to be sent and the hash value of the current data to be sent are sent to the management end; The management end receives the hash value sent by the node end; Obtain data corresponding to the hash value in the database and send it to the page processing layer; Receive the data sent by the node and the hash value of the data; Forward the data sent by the node to the page processing layer.

7. The Ovirt cloud platform according to claim 6, characterized in that: After obtaining the hash value of the current data to be sent, the node also stores the hash value of the current data to be sent.

8. The Ovirt cloud platform according to claim 7, characterized in that: The node searches for the hash value of the data sent last time in the stored hash values; and determines whether the hash value of the data sent last time is the same as the hash value of the data to be sent currently.

9. The Ovirt cloud platform according to claim 6, characterized in that: The management end establishes a corresponding relationship between the data sent by the node end and the hash value of the data and stores them in the database.