A data distribution method, device, system, equipment and medium
By establishing a communication tunnel between the terminal and the router and sending data directly to the target server, the problem of high data offloading cost in the existing technology is solved, and load balancing and cost reduction are achieved without changing the existing architecture.
Patent Information
- Application Number
- CN202211131102.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-16
AI Technical Summary
In the existing technology, it is difficult to realize data offloading without changing the existing architecture. Especially in an enterprise's multiple server environment, a load balancing server is required to forward user data, resulting in increased costs.
By determining the server network load corresponding to the terminal, selecting the target server, and establishing a communication tunnel between the terminal and the router corresponding to the target server, data is sent directly to the target server, thus realizing front-end offloading and eliminating the load balancing server.
It achieves load balancing without changing the existing network architecture, reduces the cost of purchasing load balancing servers for enterprises, and improves the efficiency of data distribution.
Smart Images

Figure CN115622943B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to communication technology, and in particular to a data diversion method, device, system, equipment and medium. Background Art
[0002] With the digital transformation of enterprises, more and more enterprises are beginning to use automated office software, so the performance requirements of office systems are getting higher and higher. In order to meet the needs of a large number of user groups, enterprises usually deploy multiple servers and add load balancing servers to transfer user data to different servers to achieve back-end data diversion. The structural diagram of the load balancing system in the prior art is as follows: Figure 1 shown.
[0003] exist Figure 1 The load balancing system includes a terminal 11, a network management server 12, a load balancing server 13, a router 14, a router 15, and servers 16-18.
[0004] Terminal 11 is connected to network management server 12 via the Internet, network management server 12 is connected to load balancing server 13 via the Internet, load balancing server 13 is connected to router 14 and router 15 respectively, router 14 is connected to server 16 and server 17 respectively, and router 15 is connected to server 18.
[0005] When a user accesses a service, the relevant request message will first enter the load balancing server. The load balancing server will find the server that provides services for it. Then the load balancing server will modify the destination address in the request message and forward the message request to the corresponding server, thereby realizing back-end data diversion.
[0006] If the load balancing server is deleted, backend data diversion cannot be achieved. Therefore, how to achieve data diversion without changing the existing architecture has become a problem that needs to be solved urgently. Summary of the invention
[0007] The present invention provides a data distribution method, device, system, equipment and medium to achieve data distribution without changing the existing architecture.
[0008] In order to solve the above problems, the present invention discloses a data splitting method, comprising:
[0009] Determine the network load of the server corresponding to the terminal that initiates the network registration request, calculate the load of the server, and select a target server;
[0010] The server determines the router information corresponding to the target server;
[0011] Establishing a communication tunnel between the terminal and the router;
[0012] The data of the terminal is sent to the target server through the communication tunnel.
[0013] Optionally, the target server includes: in the visual network, a control server connected to the visual network terminal, the control server being used to determine the network load of the server corresponding to the visual network terminal that initiates the network access registration request, wherein the control server is connected to the router through the visual network, and the router is connected to the server through the visual network.
[0014] Optionally, calculating the load of the server and selecting a target server includes:
[0015] Calculate the ratio of the network load of the server to the port bandwidth of the server to determine the load of the server;
[0016] The server with the smallest load is used as the target server.
[0017] Optionally, the establishing a communication tunnel between the terminal and the router includes:
[0018] Sending the device number of the terminal and the visual network subcode number to the router;
[0019] Sending the device number of the router and the visual network sub-number to the terminal;
[0020] A communication tunnel is established between the terminal and the router according to the visual networking sub-number of the terminal and the visual networking sub-number of the router.
[0021] In order to solve the above problems, the present invention further discloses a data splitting device, comprising:
[0022] A selection module, used to determine the network load of the server corresponding to the terminal that initiates the network registration request, calculate the load of the server, and select a target server;
[0023] A determination module, used to determine the router information corresponding to the target server;
[0024] An establishing module, used for establishing a communication tunnel between the terminal and the router;
[0025] A sending module is used to send the data of the terminal to the target server through the communication tunnel.
[0026] Optionally, the selection module includes:
[0027] A load unit, used to calculate the ratio of the network load of the server to the port bandwidth of the server, and determine the load of the server;
[0028] The sorting unit is used to select the server with the smallest load as the target server.
[0029] Optionally, the establishing module includes:
[0030] A first sending unit, used for sending the device number of the terminal and the visual network subcode number to the router;
[0031] A second sending unit, used to send the device number of the router and the visual network sub-number to the terminal;
[0032] A tunnel unit is used to establish a communication tunnel between the terminal and the router according to the visual networking sub-number of the terminal and the visual networking sub-number of the router.
[0033] In order to solve the above problems, the present invention also discloses a data distribution system, comprising:
[0034] A control server, a router and a server, wherein the control server is connected to the router via a visual network, and the router is connected to the server via a visual network;
[0035] The control server determines the network load of the server corresponding to the terminal that initiates the network registration request, calculates the load of the server, and selects a target server;
[0036] Determine the router information corresponding to the target server;
[0037] Establishing a communication tunnel between the terminal and the router;
[0038] The data of the terminal is sent to the server through the communication tunnel.
[0039] In order to solve the above problem, the present invention also discloses an electronic device, comprising:
[0040] one or more processors; and
[0041] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to perform the data diversion method.
[0042] In order to solve the above problem, the present invention also discloses a computer-readable storage medium, which stores a computer program that enables a processor to execute the data diversion method.
[0043] Compared with the prior art, the present invention has the following advantages:
[0044] The embodiment of the present invention determines the network load of the server corresponding to the terminal that initiates the network registration request, calculates the load of the server, and selects the target server; determines the router information corresponding to the target server; establishes a communication tunnel between the terminal and the router; and sends the data of the terminal to the server through the communication tunnel. That is, when the user accesses the server, the present invention establishes a communication tunnel between the terminal and the router, and then the terminal data is directly transmitted to the server through the tunnel, that is, when the user accesses the service, the data is already directed to the corresponding server when it is sent from the terminal, thereby realizing front-end diversion. That is to say, without changing the existing network architecture, load balancing is realized, and the load balancing server is abandoned, thereby reducing the cost overhead of the enterprise in purchasing the load balancing server.
[0045] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a structural diagram of an existing load balancing system;
[0047] Figure 2 is a structural schematic diagram of a data distribution system according to an embodiment of the present invention;
[0048] Figure 3 is a flow chart of a data offloading method according to an embodiment of the present invention;
[0049] Figure 4 It is a structural block diagram of a data distribution device described in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0051] In the prior art, data diversion is usually performed by means of a load balancing server. If the above-mentioned data diversion method is applied to the visual network, it is necessary to add a load balancing server to the architecture of the visual network. In this case, the architecture of the visual network needs to be adjusted. Since the adjustment of the architecture of the visual network will bring many problems, the inventor has proposed how to achieve load balancing without changing the existing network architecture. In order to solve the above-mentioned technical problems, the inventor of the present invention has innovatively proposed a front-end diversion method, that is, when the terminal accesses the network, the data is diverted according to the load balancing strategy. That is to say, when the terminal accesses the network, the target server is selected, and a communication tunnel is directly established with the terminal through the router corresponding to the target server, and the data is transmitted to the server through the communication tunnel, thereby achieving front-end diversion.
[0052] See also Figure 2 , which shows a structural schematic diagram of a data distribution system of the present invention, specifically comprising:
[0053] Terminal 21, management and control server 22, router 23, router 24, servers 25-27.
[0054] The terminal can be a visual networking terminal. If the terminal is a visual networking terminal, preferably, the visual networking terminal is a visual networking protocol driven VVOE terminal. The VVOE terminal mainly carries data. The data diversion process is explained below using the VVOE terminal as an example. The data diversion process of other terminals can be the data diversion process of the VVOE terminal.
[0055] The VVOE terminal 21 is connected to the control server 22 via the visual network, the control server 22 is connected to the routers 23 and 24 via the visual network, the router 23 is connected to the servers 25 and 26, and the router 24 is connected to the server 27.
[0056] The VVOE terminal sends a network registration request to the control server, and the control server responds to the network registration request to complete the login and registration of the VVOE terminal on the control server. After the VVOE terminal registration is completed, the control server can obtain the user rights of the VVOE terminal.
[0057] User rights refer to the services that users can access, such as: user access to office automation OA services, email, file transfer FTP, etc.
[0058] The router is used to report the network load of the server to the control server.
[0059] Specifically, the router reports the network load of the server corresponding to the user authority to the control server.
[0060] In actual applications, the router periodically reports the network load of the server corresponding to the user's permissions to the management and control server.
[0061] In a specific application, if the user authority is OA service, the router will obtain the network load of all servers with the user authority.
[0062] The control server calculates the load of the server and selects a target server; determines the router information corresponding to the target server; establishes a communication tunnel between the VVOE and the router, and sends the data of the VVOE terminal to the server through the communication tunnel.
[0063] In a specific application, the control server calculates the load of the server and selects the target server including:
[0064] Within a set time, calculating the ratio of the network load of the server to the port bandwidth of the server, and determining the load of the server;
[0065] The loads are sorted, and the server with the smallest load is used as the target server.
[0066] In actual applications, before determining the router information corresponding to the target server, the control server obtains the server list corresponding to the user authority and the router information corresponding to the servers in the server list; in this way, the control server searches the server list according to the IP address of the target server, and if the IP address of the target server exists, the router information corresponding to the target server is obtained, so that the control server can establish a communication tunnel between the VVOE terminal and the router.
[0067] In actual application, the control server establishes a communication tunnel between the VVOE terminal and the router in the following manner:
[0068] The device number and the visual network sub-code number of the VVOE terminal are sent to the router; the device number and the visual network sub-number of the router are sent to the VVOE; and a communication tunnel is established between the VVOE terminal and the router according to the visual network sub-number of the VVOE terminal and the visual network sub-number of the router.
[0069] Based on the structural diagram of the above data distribution system, the data distribution method of the present invention is described in detail.
[0070] Reference Figure 3 , which shows a flow chart of a data distribution method according to the present invention, the method specifically comprises:
[0071] Step 301: Determine the network load of the server corresponding to the terminal that initiates the network registration request, calculate the load of the server, and select a target server.
[0072] The terminal sends a network registration request to the control server, and the control server responds to the network registration request, so that the terminal realizes login registration on the control server, so that the control server can obtain the user rights of the terminal, which include any of the following: office automation OA service, mail service, file transfer service. In specific applications, different user rights can be provided according to different actual usage scenarios.
[0073] The management and control server receives the network load of the server corresponding to the user authority reported by the router, calculates the load of the server, and selects a target server.
[0074] The control server needs to obtain the network load of all servers with user permissions, so that the server load can be calculated based on the network load.
[0075] Network load generally refers to the size of data traffic.
[0076] For example: if the user authority is OA service, and the servers providing OA service are 4, 5, and 6, then the management and control server needs to obtain the network load of all servers providing OA service, that is, obtain the network load of server 4, the network load of server 5, and the network load of server 6.
[0077] As an implementation manner, calculating the load of the server and selecting the target server includes:
[0078] Within a set time, the proportion of the network load of the server occupying the port bandwidth of the server is calculated to determine the load of the server.
[0079] The loads are sorted, and the server with the smallest load is used as the target server.
[0080] In practical applications, the loads may be sorted from large to small or from small to large, and the server with the smallest load may be used as the target server.
[0081] For example: the network load of server 4 is 40, the network load of server 5 is 50, the network load of server 6 is 60, and the port bandwidth of the server is 100. Then the load of server 4 is 40%, the load of server 5 is 50%, and the load of server 6 is 60%. Then server 4 is used as the target server.
[0082] Step 302: Determine the router information corresponding to the target server.
[0083] The control server will obtain the server list and the routing information corresponding to the servers in the server list in advance, so that after determining the target server, the server list can be searched according to the IP address of the target server. If it exists, the router information corresponding to the target server is obtained.
[0084] In actual applications, if the management and control server obtains the user rights of the terminal, the management and control server will obtain the server list corresponding to the user rights and the router information corresponding to the servers in the server list. In this way, after determining the target server, the server list can be searched according to the IP address of the target server. If it exists, the router information corresponding to the target server is obtained.
[0085] Step 303: Establish a communication tunnel between the terminal and the router.
[0086] Step 304: Send the data of the terminal to the target server through the communication tunnel.
[0087] The communication tunnel is an encrypted link channel between the terminal and the router, and then the terminal's data is transmitted to the server through the communication tunnel.
[0088] The visual network link is opened through the communication tunnel, so that when the user accesses the server, the data traffic passes through the communication tunnel to directly pass the terminal data to the server.
[0089] As an implementation method, step 303 includes the following sub-steps:
[0090] Sub-step 3031: Send the device number of the terminal and the visual network sub-code number to the router.
[0091] The terminal can divide the virtual terminal interface corresponding to the device number and configure the corresponding visual network sub-number. The number of configurable visual network sub-numbers can be in the range of 1 to 65536.
[0092] Sub-step 3032: Send the device number of the router and the visual network sub-number to the terminal.
[0093] The router can divide the virtual terminal interface corresponding to the device number and configure the corresponding visual network sub-number. The number of configurable visual network sub-numbers can be in the range of 1 to 65536.
[0094] Sub-step 3033: Establish a communication tunnel between the terminal and the router according to the visual networking sub-number of the terminal and the visual networking sub-number of the router.
[0095] It should be noted that the present invention takes the terminal as an example to illustrate the process of establishing a communication tunnel between the terminal and the router. If the terminal is a visual networking terminal, or the process of establishing a communication tunnel for the visual networking terminal is a VVOE terminal, the process of establishing a communication tunnel for the terminal can refer to the process.
[0096] In this embodiment, the network load of the server corresponding to the terminal that initiates the network registration request is determined, the load of the server is calculated, and a target server is selected; the router information corresponding to the target server is determined; a communication tunnel is established between the terminal and the router; and the data of the terminal is sent to the server through the communication tunnel. That is to say, when a user accesses the server, the present invention establishes a communication tunnel between the terminal and the router, and then the data of the terminal is directly transmitted to the server through the tunnel, that is, when the user accesses the service, the data is already directed to the corresponding server when it is sent from the terminal, thereby realizing front-end diversion. That is to say, without changing the existing network architecture, load balancing is achieved, and the load balancing server is abandoned, thereby reducing the cost overhead of the enterprise in purchasing the load balancing server.
[0097] It should be noted that, for the above method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.
[0098] Based on the description of the above method embodiments, the present invention also provides corresponding device embodiments to implement the contents described in the above method embodiments.
[0099] Reference Figure 4 , which shows a structural diagram of a data distribution device according to an embodiment of the present invention, the device can be applied to a control server, or used in conjunction with a control server, including:
[0100] The selection module 401 is used to determine the network load of the server corresponding to the terminal that initiates the network registration request, calculate the load of the server, and select a target server.
[0101] The determination module 402 is used to determine the router information corresponding to the target server.
[0102] The establishing module 403 is used to establish a communication tunnel between the terminal and the router.
[0103] The sending module 404 is used to send the data of the terminal to the target server through the communication tunnel.
[0104] Optionally, the selection module includes:
[0105] A load unit, used to calculate the ratio of the network load of the server to the port bandwidth of the server, and determine the load of the server;
[0106] The sorting unit is used to select the server with the smallest load as the target server.
[0107] Optionally, the establishing module includes:
[0108] A first sending unit, used for sending the device number of the terminal and the visual network subcode number to the router;
[0109] A second sending unit, used to send the device number of the router and the visual network sub-number to the terminal;
[0110] A tunnel unit is used to establish a communication tunnel between the terminal and the router according to the visual networking sub-number of the terminal and the visual networking sub-number of the router.
[0111] In this embodiment, the network load of the server corresponding to the terminal that initiates the network registration request is determined, the load of the server is calculated, and a target server is selected; the router information corresponding to the target server is determined; a communication tunnel is established between the terminal and the router; and the data of the terminal is sent to the server through the communication tunnel. That is to say, when a user accesses the server, the present invention establishes a communication tunnel between the terminal and the router, and then the data of the terminal is directly transmitted to the server through the tunnel, that is, when the user accesses the service, the data is already directed to the corresponding server when it is sent from the terminal, thereby realizing front-end diversion. That is to say, without changing the existing network architecture, load balancing is achieved, and the load balancing server is abandoned, thereby reducing the cost overhead of the enterprise in purchasing the load balancing server.
[0112] As for the above-mentioned device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiment.
[0113] An embodiment of the present invention further provides an electronic device, including:
[0114] one or more processors; and
[0115] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to perform the data diversion method.
[0116] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program that enables a processor to execute the data diversion method.
[0117] Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0118] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0119] It is easy for a person skilled in the art to think that any combination of the above embodiments is feasible, so any combination of the above embodiments is an implementation scheme of the present invention, but due to space limitations, this specification will not be described in detail here. Although the preferred embodiments of the present invention have been described, once a person skilled in the art knows the basic creative concept, he can make other changes and modifications to these embodiments. Therefore, the attached claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0120] The data diversion method, device, system, equipment and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A data diversion method, It is characterized in that include: Determine the network load of the server corresponding to the user authority of the terminal that initiates the network registration request, calculate the load of the server, and select the target server, wherein the user authority includes any one of the following: office automation OA service, mail service, file transfer service; Determine the router information corresponding to the target server; Establishing a communication tunnel between the terminal and the router, wherein the communication tunnel is an encrypted link channel between the terminal and the router; Sending the data of the terminal to the target server through the communication tunnel; The establishing of a communication tunnel between the terminal and the router comprises: Sending the device number of the terminal and the visual network sub-number to the router; Sending the device number of the router and the visual network sub-number to the terminal; Establishing a communication tunnel between the terminal and the router according to the visual network sub-number of the terminal and the visual network sub-number of the router; The calculating the load of the server and selecting the target server comprises: The control server receives the network load of the server corresponding to the user authority reported by the router, calculates the ratio of the network load of the server to the bandwidth of the server port, and determines the load of the server; The server with the smallest load is used as the target server.
2. The method according to claim 1, It is characterized in that The target server includes: in the visual network, a control server connected to the visual network terminal, the control server is used to determine the network load of the server corresponding to the visual network terminal that initiates the network registration request, wherein the control server is connected to the router through the visual network, and the router is connected to the server through the visual network.
3. A data diversion device, It is characterized in that include: A selection module is used to determine the network load of the server corresponding to the user authority of the terminal that initiates the network registration request, calculate the load of the server, and select a target server, wherein the user authority includes any one of the following: office automation OA service, mail service, file transfer service; A determination module, used to determine the router information corresponding to the target server; An establishing module, used to establish a communication tunnel between the terminal and the router, wherein the communication tunnel is an encrypted link channel between the terminal and the router; A sending module, used to send the data of the terminal to the target server through the communication tunnel; The establishment module includes: A first sending unit, configured to send the device number of the terminal and the visual network sub-number to the router; A second sending unit, used to send the device number of the router and the visual network sub-number to the terminal; A tunnel unit, configured to establish a communication tunnel between the terminal and the router according to the visual network sub-number of the terminal and the visual network sub-number of the router; The selection module comprises: A load unit, used for receiving the network load of the server corresponding to the user authority reported by the router, calculating the proportion of the network load of the server occupying the port bandwidth of the server, and determining the load of the server; The sorting unit is used to select the server with the smallest load as the target server.
4. A data diversion system, It is characterized in that include: A control server, a router and a server, wherein the control server is connected to the router via a visual network, and the router is connected to the server via a visual network; The control server determines the network load of the server corresponding to the user authority of the terminal that initiates the network registration request, calculates the load of the server, and selects the target server, wherein the user authority includes any one of the following: office automation OA service, mail service, file transfer service; Determine the router information corresponding to the target server; Establishing a communication tunnel between the terminal and the router, wherein the communication tunnel is an encrypted link channel between the terminal and the router; Sending the data of the terminal to the server through the communication tunnel; The establishing of a communication tunnel between the terminal and the router comprises: Sending the device number of the terminal and the visual network sub-number to the router; Sending the device number of the router and the visual network sub-number to the terminal; Establishing a communication tunnel between the terminal and the router according to the visual network sub-number of the terminal and the visual network sub-number of the router; The calculating the load of the server and selecting the target server comprises: The control server receives the network load of the server corresponding to the user authority reported by the router, calculates the ratio of the network load of the server to the bandwidth of the server port, and determines the load of the server; The server with the smallest load is used as the target server.
5. An electronic device, It is characterized in that include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to perform the data diversion method as described in any one of claims 1 to 2.
6. A computer-readable storage medium, It is characterized in that The computer program stored therein enables the processor to execute the data splitting method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Tunnel establishment method and articulated naturality web system
CN110266577A
Audio and video stream load balancing method and device
CN111193788A
