CN115277351B - Distributed management system - Google Patents

Distributed management system Download PDF

Info

Publication number
CN115277351B
CN115277351B CN202210894147.4A CN202210894147A CN115277351B CN 115277351 B CN115277351 B CN 115277351B CN 202210894147 A CN202210894147 A CN 202210894147A CN 115277351 B CN115277351 B CN 115277351B
Authority
CN
China
Prior art keywords
server
configuration
user equipment
network
configuration server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210894147.4A
Other languages
Chinese (zh)
Other versions
CN115277351A (en
Inventor
黄哲
李建松
韩子康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202210894147.4A priority Critical patent/CN115277351B/en
Publication of CN115277351A publication Critical patent/CN115277351A/en
Application granted granted Critical
Publication of CN115277351B publication Critical patent/CN115277351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A distributed management system includes a management server and a first configuration server. After receiving the request from the user equipment, the management server selects a configuration server which is connected with the user equipment before from a plurality of configuration servers for the user equipment according to a selection policy, and then the configuration server sends configuration information for configuring the user equipment to the user equipment. On the one hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may store the context information of the user equipment, so that a quick establishment of the connection can be achieved. On the other hand, since the selected configuration server establishes a connection with the user equipment before, the configuration server may acquire the configuration information of the user equipment after the connection is established last time, and then after the connection is completed this time, the configuration information may be quickly sent to the user equipment, so as to realize quick configuration of the user equipment.

Description

Distributed management system
Technical Field
The application relates to the technical field of network communication, in particular to a distributed management system.
Background
Currently, with the development of communication technology and the wide application of the internet, more and more users have a need for establishing a local area network.
In order to be able to establish a local area network, it is generally required that a user first purchases a user device provided by a service provider and then connects the user device to a network device of the service provider, which network device in combination with the user device provides the user with local area network services.
Before the user equipment is connected to the network equipment, the user equipment is also required to be connected to one configuration server in a plurality of configuration servers configured by the service provider, configuration information is sent to the user equipment by the configuration server, and configuration of relevant parameters of the user equipment is completed through the configuration information.
However, how to select an appropriate configuration server for the user equipment remains to be solved.
Disclosure of Invention
The application provides a distributed management system for selecting a proper configuration server for user equipment.
The embodiment of the application provides a distributed management system, which comprises a management server and a first configuration server; the management server is used for receiving a first request from user equipment, wherein the first request comprises identification information of the user equipment; selecting the first configuration server from M configuration servers according to a selection strategy; transmitting address information of the first configuration server to the user equipment; wherein the selection policy comprises: when the M configuration servers have the configuration server which is connected with the user equipment, selecting the configuration server which is connected with the user equipment for the last time as the first configuration server; the first configuration server is configured to receive a second request from the user equipment, where the second request is used to request to establish a connection; and establishing connection with the user equipment according to the second request.
In the above scheme, after receiving a request from a user device, a management server in the distributed management system selects a configuration server from a plurality of configuration servers for the user device, wherein the configuration server has been connected with the user device before, according to a selection policy, and then the configuration server sends configuration information for configuring the user device to the user device. On the one hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may store the context information of the user equipment, so that a quick establishment of the connection can be achieved. On the other hand, since the selected configuration server establishes a connection with the user equipment before, the configuration server may acquire the configuration information of the user equipment after the connection is established last time, and then after the connection is completed this time, the configuration information may be quickly sent to the user equipment, so as to realize quick configuration of the user equipment.
In a possible implementation method, the selection policy further includes: and when the M configuration servers do not have the configuration server which is connected with the user equipment, selecting the first configuration server according to the loads of the M configuration servers. For example, one configuration server with the lightest load is selected from the M configuration servers as the first configuration server. For another example, K configuration servers with the lightest load are selected from the M configuration servers, and then one is randomly selected from the K configuration servers as the first configuration server. The embodiment of the present application is not limited thereto.
According to the scheme, one configuration server is selected from the M configuration servers to be connected with the user equipment according to the loads of the M configuration servers, so that the scheme can realize load balancing among the plurality of configuration servers, and the performance of the distributed management system is improved.
In a possible implementation method, the first configuration server is further configured to send, after a connection is established with the user equipment, first record information to a database server, where the first record information is used to indicate that the connection has been established between the user equipment and the first configuration server.
In the above scheme, since the connection condition between the user equipment and the configuration server is recorded in the database server, when other equipment, such as the control server, needs to acquire the information of the configuration server establishing connection with the user equipment, the query result, that is, the information of the configuration server establishing connection with the user equipment, can be quickly and accurately obtained by querying the database server.
In a possible implementation method, the first configuration server is further configured to send a first deletion instruction to the database server after the connection with the user equipment is disconnected, where the first deletion instruction is used to instruct to delete the record information.
According to the scheme, after the first configuration server is disconnected with the user equipment, the record information for indicating the connection between the first configuration server and the user equipment is deleted, so that the accuracy of the record information in the database server can be maintained, further other equipment can accurately know the connection state between the user equipment and the configuration server by inquiring the database server, the load of the database server is reduced, the database table searching time is shortened, and the performance of the distributed management system is improved.
In a possible implementation method, the management system further includes a control server, where the control server is connected to the first configuration server; the control server is configured to receive a third request, where the third request includes identification information of the user equipment and first configuration information of the user equipment; determining the first configuration server which is kept connected with the user equipment according to the identification information of the user equipment; sending a fourth request to the first configuration server, wherein the fourth request comprises identification information of the user equipment and the first configuration information; the first configuration server is further configured to configure the user equipment according to the first configuration information.
According to the scheme, the control server determines the first configuration server which establishes connection with the user equipment, and then requests the first configuration server to configure the user equipment, so that the user equipment can be configured quickly and effectively.
In a possible implementation method, a control server determines the first configuration server that remains connected to the user equipment, specifically including: the control server determines the first configuration server to which the user equipment remains connected by querying a database server. For example, the control server sends a query request to the database server, the query request is used for querying the configuration server which is kept connected with the user equipment, then the database server obtains information of the configuration server which is kept connected with the user equipment, namely information of the first configuration server, based on the query request, and then sends the information of the first configuration server to the control server.
According to the scheme, the control server queries the database server, so that the configuration server which establishes connection with the user equipment can be quickly and accurately determined. In a possible implementation method, the control server is further configured to periodically send a probe message to the first configuration server; and when the response messages of the K detection messages sent in one period are not received, sending a second deletion instruction to a database server, wherein the second deletion instruction is used for indicating to delete second record information related to the first configuration server, the second record information is used for recording user equipment connected with the first configuration server, and K is a positive integer.
In the above scheme, the control server accurately judges the state of the first configuration server by periodically sending the probe message to the first configuration server and based on whether the response message is fed back by the first configuration server. If no response message for the probe message is received, indicating that the first configuration server is not on-line or powered off, the control server informs the database server to delete the record information related to the first configuration server, the record information being used for recording the user equipment connected to the first configuration server. Therefore, the accuracy of the recorded information in the database server is maintained, and other devices can accurately know the connection state between the user device and the configuration server by querying the database server.
In a possible implementation method, the first configuration server is further configured to send a third deletion instruction to the database server after restarting, where the third deletion instruction is used to instruct deletion of third record information related to the first configuration server, and the third record information is used to record a user equipment connected to the first configuration server.
In the above-mentioned scheme, when the first configuration server is restarted, the connection between the first configuration server and the user equipment which has been previously established is disconnected, so that the first configuration server notifies the database server to delete the record information related to the first configuration server, where the record information is used for recording the user equipment connected with the first configuration server. Therefore, the accuracy of the recorded information in the database server is maintained, and other devices can accurately know the connection state between the user device and the configuration server by querying the database server.
In a possible implementation method, the management system further includes a network server; the control server is used for receiving second configuration information; determining network equipment according to the second configuration information, and determining a network server which is kept connected with the network equipment; sending a fifth request to the network server, wherein the fifth request comprises identification information of the network equipment and the second configuration information; the network server is configured to configure the network device according to the second configuration information.
According to the scheme, the control server determines the network server which is connected with the network equipment, and then requests the network server to configure the network equipment, so that the network equipment can be configured quickly and effectively.
In a possible implementation method, a control server determines the network server that remains connected to the network device, specifically including: the control server determines the network server that remains connected to the network device by querying a database server. For example, the control server transmits a query request for querying the network server that remains connected to the network device to the database server, and then the database server acquires information of the network server that remains connected to the network device based on the query request, and then transmits the information of the network server to the control server.
In a possible implementation method, the network server is further configured to send a sixth request to the database server after restarting, where the sixth request is used to obtain a network device corresponding to the network server; and sending a seventh request to the network equipment corresponding to the network server, wherein the seventh request is used for requesting to establish the connection with the network equipment.
According to the scheme, after the network server is restarted, the connection between the network equipment and the network server is disconnected, the network server requests to the database server to acquire the network equipment corresponding to the network server and sends the connection request to the network equipment, so that the connection between the network server and the network equipment is established, the network server and the network equipment can be in a connection state for a long time, and the normal operation of the distributed management system can be guaranteed.
In a possible implementation method, the management server is a master-slave mode management server.
According to the scheme, the management server adopts the main and standby modes, and when the main management server has abnormal conditions, the standby management server can replace the main management server to work, so that the normal work of the distributed management system is guaranteed, and the performance of the distributed management system is improved.
In one possible implementation, the configuration server is a primary-standby mode configuration server. The configuration server here includes the first configuration server described above.
According to the scheme, the configuration server adopts the main-standby mode, and when the main configuration server has an abnormal condition, the standby configuration server can replace the main configuration server to work, so that the normal work of the distributed management system is guaranteed, and the performance of the distributed management system is improved.
In a possible implementation method, the control server is a master-slave mode control server.
According to the scheme, the control server adopts the main and standby modes, and when the main control server is abnormal, the standby control server can replace the main control server to work, so that the normal work of the distributed management system is guaranteed, and the performance of the distributed management system is improved.
In one possible implementation method, the network server is a master-slave mode network server.
According to the scheme, the network server adopts the main-standby mode, and when the main network server is abnormal, the standby network server can replace the main network server to work, so that the normal work of the distributed management system is guaranteed, and the performance of the distributed management system is improved.
Drawings
FIG. 1 is a schematic diagram of a distributed management system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a configuration method according to an embodiment of the present application;
fig. 3 is a flowchart of a method for configuring a user device by a configuration server according to an embodiment of the present application;
Fig. 4 is a flowchart of a method for configuring a network device by a network server according to an embodiment of the present application.
Detailed Description
Fig. 1 is a schematic diagram of a distributed management system according to an embodiment of the present application, where the system includes a management server and M configuration servers, where M is an integer greater than 1. Optionally, the system further comprises one or more of the following: a transit server, a control server, or a web server.
Wherein the number of network servers is one or more, the distributed management system of fig. 1 includes one network server as an example.
And the management server is used for selecting a proper configuration server for the user equipment. In a specific implementation, the management server may be a dispatch-IP server, although other servers are also possible, and the application is not limited in this regard.
And the configuration server is used for configuring the user equipment after the connection between the configuration server and the user equipment is established, such as configuring network bandwidth, user authority and the like.
And the control server is used for acquiring the configuration information and sending the configuration information to the corresponding configuration server, and the configuration server configures the user equipment based on the configuration information. And acquiring the configuration information and sending the configuration information to a corresponding network server, and configuring the network equipment by the network server based on the configuration information.
And the database server is used for recording the connection relation between the configuration server and the user equipment. For example, when a connection is established between a certain configuration server and a certain user equipment, a piece of record information is stored in the database server, and the record information records the connection relationship between the configuration server and the user equipment. Alternatively, if the connection is broken, the record information may be deleted from the database server. And the network server is also used for recording the connection relation between the network server and the network equipment. For example, when a connection is established between a certain network server and a certain network device, a piece of record information is stored in the database server, and the record information records the connection relationship between the network server and the network device.
And the network server is used for configuring the network equipment after the connection between the network server and the network equipment is established, for example, the corresponding relation between the network equipment and the user equipment served by the network equipment is configured.
The transfer server is used for receiving the configuration request carrying the configuration information from the user and forwarding the configuration request to the control server, so that the control server obtains the configuration information based on the configuration request. The transit server supports serving as a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) proxy service on the outside, and can convert HTTPs requests into HTTP requests.
The user equipment in the embodiment of the application refers to a hardware device used by a user to configure local area network services, and the user equipment can also be called a configuration box. In a specific implementation, the user equipment may be an EDGE device, but may also be other devices, which is not limited in this regard.
The network device in the embodiment of the application refers to a hardware device which is deployed by a service provider in a plurality of geographic positions and is used for providing local area network services for users, and the network device can also be called a network box. In a specific implementation, the network device may be a POP device, or may be another device, which is not limited in this regard.
In the embodiment of the application, after the user equipment establishes the connection with the network equipment, the local area network of the user can be formed, thereby providing local area network service for the user.
In one possible implementation, each of the servers in fig. 1 may be implemented in a master-slave mode. Taking the control server as an example, when the master-slave mode is adopted, the distributed management system at least comprises two control servers, wherein one master control server exists, and one or more slave control servers exist. When the primary control server fails or is overloaded, one or more backup control servers may be enabled to operate.
Fig. 2 is a flowchart of a method for establishing a connection between a ue and a configuration server according to an embodiment of the present application, and the method is described below with reference to the distributed management system shown in fig. 1. The method comprises the following steps:
in step 201, the user equipment sends a first request to a management server. Accordingly, the management server receives the first request.
The first request includes identification information of the ue, which may be, for example, a Sequence Number (SN), or other unique identification information.
The first request is for requesting selection of an appropriate configuration server for the user equipment.
A possible implementation method, after the user equipment is started or restarted, generates a request message 1, where the request message 1 includes identification information of the user equipment and a public network internet protocol (internet protocol, IP) +a public network port number, and then the user equipment sends the request message 1 to the transit server. The transit server converts the public network IP+public network port number in the request message 1 into a first VIP+intranet port number, and then the transit server sends a request message 2 to the management server, wherein the request message 2 comprises identification information of the user equipment and the first VIP+intranet port number. The public network IP+public network port number is used for performing external network access, and the first VIP+internal network port number is used for internal network access. VIP is an abbreviation for virtual IP (Virtual IP). Wherein the public network port number may be the same as or different from the internal network port number. The virtual IP in the embodiment of the present application may also be referred to as intranet IP.
Step 202, the management server selects one configuration server from the M configuration servers for the user equipment according to a preconfigured selection policy.
The embodiment of the application refers to the selected configuration server as a first configuration server.
The selection strategy is specifically as follows: and when the configuration server which is connected with the user equipment exists in the M configuration servers, selecting the configuration server which is connected with the user equipment for the last time as a first configuration server.
If there is a configuration server which has established a connection with the user equipment in the M configuration servers, the management server selects the configuration server which has established a connection with the user equipment last time as a first configuration server. Illustratively, the management server stores a hash table (hash), which is used to record information of the configuration server that the user device has been connected to last time. Therefore, the management server can query the hash table, and if the hash table does not record the information of the configuration server which is connected with the user equipment last time, the management server indicates that none of the M configuration servers has established connection with the user equipment. If the hash table records the information of the configuration server which is connected with the user equipment last time, the configuration server is the configuration server which is connected with the user equipment last time. It should be noted that, the hash table is dynamically updated, and then if the user equipment disconnects from the current configuration server and establishes a connection with another configuration server, the relevant record in the hash table is updated, which indicates that the configuration server that the user equipment has been connected last time is the other configuration server.
If there is no configuration server in the M configurations that has established a connection with the user device, the management server may select one configuration server from the M configuration servers as the first configuration server in other manners. For example, the least loaded configuration server is selected as the first configuration server. For another example, the least loaded N configuration servers are selected, N is an integer greater than 1, and one configuration server is randomly selected from the least loaded N configuration servers as the first configuration server. For another example, K configuration servers are randomly selected from the M configuration servers shown in fig. 1, K is an integer greater than 1, and then the configuration server with the lightest load is selected from the K configuration servers as the first configuration server.
In the above scheme for selecting the configuration server, the configuration server that has been connected with the user equipment last time is preferentially selected. Of course, if there is a configuration server that has been connected to the ue last time, but the configuration server load exceeds a certain threshold, the configuration server may not be selected, but one configuration server may be selected from the other M-1 configuration servers, for example, one configuration server may be selected according to the load of the M-1 configuration servers, and for a specific method, reference may be made to the foregoing description.
It should be noted that, the management server may also select the configuration server by other methods, which is not limited by the embodiment of the present application.
In step 203, the management server sends a first response to the user device.
The first response includes information of the first configuration server, which may be, for example, an IP address or identification information.
In step 204, the user device sends a second request to the first configuration server.
The second request is used for requesting to establish a connection, and the first configuration server responds to the second request to establish the connection between the user equipment and the first configuration server. The connection may be, for example, a transmission control protocol (Transmission Control protocol, TCP) connection, which is not limited in this regard by the present application.
Based on the above scheme, after receiving a request from a user device, the management server selects a configuration server from a plurality of configuration servers for the user device according to a selection policy, wherein the configuration server has previously established a connection with the user device, and then the configuration server sends configuration information for configuring the user device to the user device. On the one hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may store the context information of the user equipment, so that a quick establishment of the connection can be achieved. On the other hand, since the selected configuration server establishes a connection with the user equipment before, the configuration server may acquire the configuration information of the user equipment after the connection is established last time, and then after the connection is completed this time, the configuration information may be quickly sent to the user equipment, so as to realize quick configuration of the user equipment. In a possible implementation, following step 204, the following step 205 may also be performed.
In step 205, the first configuration server sends the first record information to the database server.
The first record information is used to indicate that the user equipment has established a connection with the first configuration server.
The implementation method of the first recorded information is described below in conjunction with a specific example.
Table 1 is a method for implementing the record information provided in the embodiment of the present application.
TABLE 1
netconf_stack device ID time netconf_node_id
10.1.34.193:8181 CTCE10140158EDGE 2022-01-01:01:01:01 10.1.40.158:5923
The first record information includes netconf _stack, device ID, time, and netconf _node_id. The netconf _stack is identification information of the first configuration server, where the identification information is expressed by vip+intranet port number, for example, 10.1.34.193:8181. The device ID is identification information of the user equipment, which may be a serial number of the user equipment, such as CTCE10140158EDGE. the time is used to indicate the time when the first configuration server establishes a connection with the user equipment, for example 2022-01-01:01:01:01.netconf _node_id is the public network ip+public network port number of the user equipment, for example, 10.1.40.158:5923.
Based on this step 205, since the connection situation between the user equipment and the configuration server is recorded in the database server, when other devices, such as the control server, need to learn the information of the configuration server that establishes a connection with the user equipment, the query result, that is, the information of the configuration server that establishes a connection with the user equipment, can be obtained quickly and accurately by querying the database server. In a possible implementation method, after the above step 205, if the first configuration server disconnects from the user equipment, the following step 206 may also be performed after the disconnection.
In step 206, the first configuration server sends a first deletion indication to the database server.
The first deletion instruction is for instructing deletion of the first recorded information.
Based on the step 206, after the first configuration server is disconnected from the user equipment, the record information for indicating the connection between the first configuration server and the user equipment is deleted, so that the accuracy of the record information in the database server can be maintained, and further, other equipment can accurately know the connection state between the user equipment and the configuration server by querying the database server, so that the load of the database server is reduced, the database table searching time is reduced, and the performance of the distributed management system is improved. Based on the example of table 1, the first record information in table 1 needs to be deleted after the first configuration server is disconnected from the user equipment.
In the implementation method, in the embodiment of the application, a distributed lock can be added to the online and offline tasks of the user equipment so as to avoid the error of the recorded information in the database server. Here, the user equipment is on-line, which means that the user equipment establishes a connection with a certain configuration server, and the user equipment is off-line, which means that the user equipment disconnects from the certain configuration server. The working principle of the distributed lock is described below in connection with an example.
At time t1, the user equipment 1 is on line and requests to establish a connection between the user equipment 1 and the configuration server 1, at which time the configuration server 1 generates a task 1, the task 1 is to add record information 1 to the database server, and the record information 1 is used to record a connection relationship between the user equipment 1 and the configuration server 1.
At time t2, the ue 1 goes offline and requests to delete the connection between the ue 1 and the configuration server 1, and at this time, the configuration server 1 generates a task 2, where task 2 is a request for the database server to delete the connection relationship between the ue 1 and the configuration server 1. However, if t2 and t1 are separated by a short time, the task 1 is still adding the record information 1 to the database server during processing, i.e., it is not yet available. If no distributed lock is added to the task, the task 1 and the task 2 are executed concurrently, and since the time required for the task 2 may be relatively short, the task 2 is executed first, that is, before the record information 1 is recorded in the database server, the database server performs the operation of deleting the connection relationship between the user equipment 1 and the configuration server 1. Since the connection relationship between the user equipment 1 and the configuration server 1 is not recorded in the database server, the deletion operation fails.
After the task 2 is executed, the task 1 is further processed, and after the task 1 is executed, record information 1 is added to the database server, where the record information 1 is used to record the connection relationship between the user equipment 1 and the configuration server 1. However, at this time, the connection between the user equipment 1 and the configuration server 1 has been disconnected, and thus the recorded information 1 belongs to an erroneous piece of information.
For this reason, the embodiment of the application can solve the above problem by adding a distributed lock to the task. Specifically, after the task 1 is generated, a distributed lock is added to the task 1, and before the task 1 is executed, the task 2 is newly added, and then the task 2 needs to be executed after the task 1 is executed and the distributed lock of the task 1 is released. Specifically, after the task 1 is executed, the record information 1 is generated in the database server, and then the task 2 is executed, the record information 1 is deleted, so that the correctness of the information in the database server is ensured.
Fig. 3 is a flowchart of a method for configuring a user device by a configuration server according to an embodiment of the present application, and the method is described below with reference to the distributed management system shown in fig. 1. This method may be implemented in conjunction with the embodiment of fig. 2 or may be implemented separately.
The method comprises the following steps:
In step 301, the control server receives a third request.
The control server has established a connection with the first configuration server before receiving the third request. The third request includes identification information of the user equipment and first configuration information of the user equipment.
In one possible implementation method, a user inputs a website, i.e. a public network ip+ port number, on a browser of a client, and pops up an interface, where the interface is used to configure a user device. The user inputs related information on the interface to generate first configuration information, wherein the first configuration information comprises a maximum bandwidth value, user authority and the like, and then the user clicks a submit button to generate a request message a, wherein the request message a comprises identification information of user equipment, the first configuration information and a public network IP+public network port number. And then the request message a is forwarded to a transfer server after passing through a firewall, the transfer server converts the public network IP+public network port number in the request message a into a second VIP+intranet port number, and sends a request message b to a control server according to the second VIP+intranet port number, wherein the request message b comprises identification information and first configuration information of user equipment. The public network IP+public network port number is used for performing external network access, and the second VIP+internal network port number is used for internal network access. Wherein the public network port number may be the same as or different from the internal network port number.
Step 302, the control server determines a first configuration server that is kept connected to the user equipment according to the identification information of the user equipment.
In one implementation, a control server determines a first configuration server that remains connected to a user device by querying a database server. For example, the control server transmits a query request to the database server, the query request being for querying the configuration server that remains connected to the user device, and the database server then acquires information of the configuration server that remains connected to the user device, that is, information of the first configuration server, based on the query request, and then transmits the information of the first configuration server to the control server. According to the scheme, the control server queries the database server, so that the configuration server which establishes connection with the user equipment can be quickly and accurately determined.
Typically, for a certain user equipment, if the user equipment has established a connection with a certain configuration server, a piece of record information is recorded in the database server, and the record information records the connection between the user equipment and the configuration server, but in special cases, a plurality of pieces of record information may be recorded in the database server. For example, the user device 1 establishes a connection with the configuration server 1 at time t1, and the database server then generates record information 1, which record information 1 records the connection between the user device 1 and the configuration server 1. Then at time t2 the user device 1 disconnects from the configuration server 1 and quickly establishes a connection with the configuration server 2, and if t2 is very short from t1 the configuration server 1 may not have yet deleted the above record 1, and the database server then generates record 2, which record 2 records the connection between the user device 1 and the configuration server 2, resulting in the simultaneous presence of record 1 and record 2 in the database server. In this case, if the control server finds information of a plurality of configuration servers in the database server according to the identification information of the user equipment, the control server may select one from the plurality of configuration servers according to the following method: the control server sends a request message to the plurality of configuration servers, respectively, the request message including information of the user equipment, and then the control server receives a response message from the plurality of configuration servers, respectively, the response message being used for indicating whether a connection is established with the user equipment, so that the control server can know the configuration server with which the user equipment is currently connected.
In step 303, the control server sends a fourth request to the first configuration server.
The fourth request includes identification information of the user equipment and the first configuration information.
In step 304, the first configuration server configures the user equipment according to the first configuration information.
That is, the first configuration server transmits first configuration information to the user equipment, and then the user equipment configures the user equipment according to the first configuration information.
According to the scheme, the control server determines the first configuration server which establishes connection with the user equipment, and then requests the first configuration server to configure the user equipment, so that the user equipment can be configured quickly and effectively.
In one possible implementation, the control server may probe the M configuration servers shown in fig. 1, e.g., the control server periodically sends probe messages to each configuration server. For convenience of explanation, the configuration server a among the M configuration servers is exemplified below. The control server periodically transmits probe messages to the configuration server a, and when no response message for K probe messages transmitted in one period is received from the configuration server a, K is a positive integer, that is, the control server transmits K probe messages to the configuration server a, and does not receive any response message from the configuration server a, the control server transmits a second deletion instruction to the database server for instructing deletion of record information related to the configuration server a for recording user equipment connected to the configuration server a. The configuration server A may be the first configuration server, or any of the other M-1 configuration servers. In this scheme, the control server accurately judges the state of the configuration server by periodically transmitting a probe message to the configuration server and based on whether the configuration server feeds back a response message. If no response message for the probe message is received, indicating that the configuration server is not on-line or powered off, the control server informs the database server to delete the record information related to the configuration server, the record information being used for recording the user equipment connected to the configuration server. Therefore, the accuracy of the recorded information in the database server is maintained, and other devices can accurately know the connection state between the user device and the configuration server by querying the database server. In a possible implementation method, after restarting, the first configuration server may send a third deletion instruction to the database server, where the third deletion instruction is used to instruct to delete third record information related to the first configuration server, where the third record information is used to record a user device connected to the first configuration server. In this case, when the first configuration server is restarted, the connection between the first configuration server and the user equipment that has been previously established is disconnected, so that the first configuration server notifies the database server to delete the record information related to the first configuration server, where the record information is used to record the user equipment connected to the first configuration server. Therefore, the accuracy of the recorded information in the database server is maintained, and other devices can accurately know the connection state between the user device and the configuration server by querying the database server.
Fig. 4 is a flowchart of a method for configuring a network device by a network server according to an embodiment of the present application, and the method is described below with reference to the distributed management system shown in fig. 1. The method may be implemented in conjunction with the embodiments of fig. 1 and/or fig. 2, or may be implemented separately.
The method comprises the following steps:
in step 401, the control server receives the second configuration information.
The control server has established a connection with the network server before receiving the second configuration information.
In one possible implementation method, a user inputs a website, i.e. a public network ip+a public network port number, on a browser of a client, and pops up an interface, where the interface is used to configure a network device. The user inputs related information on the interface to generate second configuration information, wherein the second configuration information comprises information of a plurality of geographic positions, namely, the user wants to form a local area network by the plurality of geographic positions. The user then clicks the "submit" button, generating a request message c comprising the second configuration information, and the public network IP + public network port number. And then the request message c is forwarded to a transfer server after passing through a firewall, the transfer server converts the public network IP+public network port number in the request message c into a third VIP+intranet port number, and sends a request message d to a control server according to the third VIP+intranet port number, wherein the request message d comprises identification information and second configuration information of network equipment. The public network IP+public network port number is used for performing external network access, and the third VIP+internal network port number is used for internal network access. Wherein the public network port number may be the same as or different from the internal network port number.
In step 402, the control server determines, according to the identification information of the network device, a network server that remains connected to the network device.
In one implementation, a control server determines a network server that remains connected to a network device by querying a database server. For example, the control server transmits a query request for querying the network server that remains connected to the network device to the database server, and then the database server acquires information of the network server that remains connected to the network device based on the query request, and then transmits the information of the network server to the control server. According to the scheme, the control server inquires the database server, so that the network server which is connected with the network equipment can be quickly and accurately determined.
It should be noted that, if the network server adopts the active-standby mode, the number of network servers that remain connected to the network device may be plural, and thus a plurality of pieces of record information may be stored in the database server, each piece of record information recording the connection states between the network device and the plurality of network servers. For example, the following table 2 records the connection relations between the network devices and the plurality of network servers.
TABLE 2
id border_address protocol_address status
10.1.40.154:10.1.34.193 10.1.40.154 10.1.34.193 online
10.1.40.154:10.1.34.193 10.1.40.154 10.1.34.194 online
The id in table 2 represents the correspondence between the IP address of the network device and the IP address of the network server, where the address_address is the IP address of the network device, and for example 10.1.40.154 is the IP address of the network device. The protocol_address indicates an IP address of the network server, for example, 10.1.34.193 is an IP address of the main network server, and 10.1.34.194 is an IP address of the standby network server. status indicates the connection status of the network device to the network server, e.g. online indicates online, i.e. connection establishment is successful.
If the connection between the network device and the network server is disconnected, status in the corresponding record information in the database server may be updated to offline.
In step 403, the control server sends a fifth request to the web server.
The fifth request includes second configuration information.
In one implementation method, the control server determines one or more network devices according to the second configuration information, then determines a network server connected with the one or more network devices, and sends a fifth request to the network server, wherein the fifth request comprises identification information of the network devices and the second configuration information. For example, the control server determines the network device 1 and the network device 2 according to the second configuration information, wherein the network device 1 is connected to the network server 1, and the network device 2 is connected to the network server 2, and then the control server sends a fifth request to the network device 1, where the fifth request includes the identification information of the network device 1 and the second configuration information, and sends a fifth request to the network device 2, where the fifth request includes the identification information of the network device 2 and the second configuration information.
The control server determines one or more network devices according to the second configuration information, for example, may be: the control server stores the corresponding relation between the information of the geographic position and the network equipment, so that the control server determines the corresponding network equipment according to the information of the geographic position in the second configuration information.
In step 404, the network server configures the network device according to the second configuration information.
That is, the network server transmits the second configuration information to the network device, and then the network device configures the network device according to the second configuration information. I.e. the network server sends the second configuration information to the network device.
According to the scheme, the control server determines the network server which is connected with the network equipment, and then requests the network server to configure the network equipment, so that the network equipment can be configured quickly and effectively.
In one possible implementation method, after restarting, the network server sends a sixth request to the database server, where the sixth request is used to obtain a network device corresponding to the network server, and then the network server sends a seventh request to the network device corresponding to the network server, where the seventh request is used to request to establish a connection with the network device. For example, the connection relationship between the network server a and 3 network devices is recorded in the database server, so after the network server a is restarted, the database server requests to acquire the network devices corresponding to the network server a, and then the database server sends information of the 3 network devices to the network server a, and the network server a reestablishes the connection with the 3 network devices respectively.
In the embodiment of the present application, the management server, the control server, the transit server and the configuration server may all adopt a primary-standby mode (also referred to as a dual-active mode or a primary-standby dual-active mode), and after the primary server is abnormally suspended, the standby server continues to process the service of the primary server and other subsequent services.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A distributed management system, which is characterized by comprising a management server, a control server and a first configuration server; the control server is connected with the first configuration server;
The management server is used for receiving a first request from user equipment, wherein the first request comprises identification information of the user equipment; selecting the first configuration server from M configuration servers according to a selection strategy, wherein M is an integer greater than 1; transmitting address information of the first configuration server to the user equipment; wherein the selection policy comprises: when the M configuration servers have the configuration server which is connected with the user equipment, selecting the configuration server which is connected with the user equipment for the last time as the first configuration server; if the load of the configuration server which is connected with the user equipment last time exceeds a certain threshold value, selecting one configuration server from other M-1 configuration servers as the first configuration server according to the load condition;
The first configuration server is configured to receive a second request from the user equipment, where the second request is used to request to establish a connection; establishing a connection with the user equipment according to the second request;
the control server is configured to receive a third request from the user equipment, where the third request includes identification information of the user equipment and first configuration information of the user equipment; determining the first configuration server which is kept connected with the user equipment according to the identification information of the user equipment; sending a fourth request to the first configuration server, wherein the fourth request comprises identification information of the user equipment and the first configuration information;
The first configuration server is further configured to configure the user equipment according to the first configuration information.
2. The system of claim 1, wherein the selection policy further comprises: and when the M configuration servers do not have the configuration server which is connected with the user equipment, selecting the first configuration server according to the loads of the M configuration servers.
3. The system according to claim 1 or 2, wherein the first configuration server is further configured to send, after establishing a connection with the user device, first record information to a database server, the first record information being used to indicate that the user device has established a connection with the first configuration server.
4. The system of claim 3, wherein the first configuration server is further configured to send a first deletion indication to the database server after the first configuration server disconnects from the user device, the first deletion indication being used to indicate deletion of the first record information.
5. The system of claim 1, wherein the control server is further configured to periodically send a probe message to the first configuration server; and when the response messages of the K detection messages sent in one period are not received, sending a second deletion instruction to a database server, wherein the second deletion instruction is used for indicating to delete second record information related to the first configuration server, the second record information is used for recording user equipment connected with the first configuration server, and K is a positive integer.
6. The system of claim 5, wherein the first configuration server is further configured to send a third deletion indication to a database server after a restart, the third deletion indication being used to indicate deletion of third record information related to the first configuration server, the third record information being used to record user equipment connected to the first configuration server.
7. The system of claim 6, wherein the system further comprises a web server;
The control server is used for receiving second configuration information from the user equipment; determining network equipment according to the second configuration information, and determining a network server which is kept connected with the network equipment; sending a fifth request to the network server, wherein the fifth request comprises identification information of the network equipment and the second configuration information;
the network server is configured to configure the network device according to the second configuration information.
8. The system of claim 7, wherein the network server is further configured to send a sixth request to a database server after restarting, the sixth request being for obtaining the network device corresponding to the network server; and sending a seventh request to the network equipment corresponding to the network server, wherein the seventh request is used for requesting to establish connection with the network equipment.
9. The system of claim 8, wherein the management server is a master-slave mode management server and the first configuration server is a master-slave mode configuration server.
CN202210894147.4A 2022-07-27 Distributed management system Active CN115277351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210894147.4A CN115277351B (en) 2022-07-27 Distributed management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210894147.4A CN115277351B (en) 2022-07-27 Distributed management system

Publications (2)

Publication Number Publication Date
CN115277351A CN115277351A (en) 2022-11-01
CN115277351B true CN115277351B (en) 2024-07-05

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143075A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for achieving load balance
CN102893557A (en) * 2010-03-22 2013-01-23 皇家Kpn公司 System and method for handling a configuration request

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102893557A (en) * 2010-03-22 2013-01-23 皇家Kpn公司 System and method for handling a configuration request
CN102143075A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for achieving load balance

Similar Documents

Publication Publication Date Title
US10680874B2 (en) Network service fault handling method, service management system, and system management module
CN107465767B (en) Data synchronization method and system
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
US9659075B2 (en) Providing high availability in an active/active appliance cluster
JP3966598B2 (en) Server selection system
US9391859B2 (en) Service coordination for a data center
JP4087271B2 (en) Proxy response device and network system
US9900385B2 (en) Connection management device, communication system, connection management method, and computer program product
US20120102192A1 (en) Network system
JP2014529366A (en) Send category information
US20130346513A1 (en) Migrating a chat message service provided by a chat server to a new chat server
CN110474802B (en) Equipment switching method and device and service system
JP6540063B2 (en) Communication information control apparatus, relay system, communication information control method, and communication information control program
CN112671554A (en) Node fault processing method and related device
TWI740210B (en) Method for terminal device management and server
CN114090342A (en) Storage disaster tolerance link management method, message execution node and storage control cluster
EP3171565B1 (en) Methods, devices and system for netconf hello packets interaction
CN115277351B (en) Distributed management system
JP2006236040A (en) Distributed server failure response program, server load distribution device and method
CN106708881B (en) Interaction method and device based on network file system
WO2018032499A1 (en) Load balancing method and associated device
CN115277351A (en) Distributed management system
CN114615248A (en) Remote operation control method and device, electronic equipment and storage medium
US11757987B2 (en) Load balancing systems and methods
CN113595894A (en) Communication method, device, equipment and medium between service nodes and client nodes

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant