CN115277351A - Distributed management system - Google Patents

Distributed management system Download PDF

Info

Publication number
CN115277351A
CN115277351A CN202210894147.4A CN202210894147A CN115277351A CN 115277351 A CN115277351 A CN 115277351A CN 202210894147 A CN202210894147 A CN 202210894147A CN 115277351 A CN115277351 A CN 115277351A
Authority
CN
China
Prior art keywords
server
configuration
user equipment
network
information
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.)
Pending
Application number
CN202210894147.4A
Other languages
Chinese (zh)
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
Priority date (The priority date 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 date listed.)
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/CN115277351A/en
Publication of CN115277351A publication Critical patent/CN115277351A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

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 has previously established connection with the user equipment from the plurality of configuration servers for the user equipment according to the selection policy, and then the configuration server sends configuration information for configuring the user equipment to the user equipment. On one hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may store context information of the user equipment, and thus, a fast establishment of a connection may be achieved. On the other hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may have already acquired the configuration information of the user equipment after the connection was established last time, and then after the connection is completed this time, the configuration server may quickly send the configuration information to the user equipment, thereby realizing 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
At present, with the development of communication technology and the wide application of the internet, more and more users have a need to establish a local area network.
In order to establish a local area network, a user is generally required to purchase a user device provided by a service provider, and then connect the user device to a network device of the service provider, and the network device provides a local area network service for the user in conjunction with the user device.
Before the user equipment is connected to the network equipment, the user equipment also needs to be connected to one of a plurality of configuration servers configured by the service provider, the configuration server sends configuration information to the user equipment, and the configuration of relevant parameters of the user equipment is completed through the configuration information.
However, how to select a suitable configuration server for the user equipment remains to be solved.
Disclosure of Invention
The application provides a distributed management system for selecting a suitable 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 policy; sending address information of the first configuration server to the user equipment; wherein the selection policy comprises: when a configuration server which has established connection with the user equipment exists in the M configuration servers, selecting the configuration server which has established connection with the user equipment for the last time as the first configuration server; the first configuration server is used for receiving a second request from the user equipment, and the second request is used for requesting to establish connection; and establishing connection with the user equipment according to the second request.
In the above scheme, after receiving the request from the user equipment, the management server in the distributed management system selects, for the user equipment, a configuration server that has previously established a connection with the user equipment from the plurality of configuration servers according to the selection policy, and then the configuration server sends configuration information for configuring the user equipment to the user equipment. On one hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may store context information of the user equipment, and thus, a fast establishment of a connection may be achieved. On the other hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may have already acquired the configuration information of the user equipment after the connection was established last time, and then after the connection is completed this time, the configuration server may quickly send the configuration information to the user equipment, thereby realizing quick configuration of the user equipment.
In a possible implementation method, the selecting policy further includes: and when the configuration server which is connected with the user equipment does not exist in the M configuration servers, selecting the first configuration server according to the loads of the M configuration servers. For example, the 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 configuration server is randomly selected from the K configuration servers as the first configuration server. The embodiment of the present application is not limited to this.
According to the scheme, one configuration server is selected from the M configuration servers to be connected with the user equipment according to the load of the M configuration servers, so that the scheme can realize load balance 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 the connection with the user equipment is established, first record information to a database server, where the first record information is used to indicate that the connection between the user equipment and the first configuration server has been established.
According to the scheme, because 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 connected with the user equipment, the query result, namely the information of the configuration server connected with the user equipment, can be quickly and accurately acquired 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 disconnecting the connection with the user equipment, 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 establishment of 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 kept, 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 time for searching the database table is reduced, 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 keeps connection 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 the 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 connected with the user equipment, and then requests the first configuration server to configure the user equipment, so that the user equipment can be rapidly and effectively configured.
In a possible implementation method, the determining, by a control server, the first configuration server that is in connection with the user equipment specifically includes: the control server determines the first configuration server that remains connected to the user device by querying a database server. For example, the control server sends an inquiry request to the database server, where the inquiry request is used to inquire the configuration server that is in connection with the user equipment, and then the database server obtains information of the configuration server that is in connection with the user equipment, that is, information of the first configuration server, based on the inquiry 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, and the configuration server connected with the user equipment can be determined quickly and accurately. In a possible implementation method, the control server is further configured to periodically send a probe message to the first configuration server; when a response message aiming at K detection messages sent in one period is 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.
According to the scheme, the control server sends the detection message to the first configuration server periodically, and the state of the first configuration server is accurately judged based on whether the first configuration server feeds back the response message or not. If no response message is received for the probe message, indicating that the first configuration server is not online or powered off, the control server notifies the database server to delete the record information related to the first configuration server, wherein 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 equipment can accurately know the connection state between the user equipment and the configuration server by inquiring the database server.
In a possible implementation method, the first configuration server is further configured to send, after the reboot, 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, and the third record information is used to record user equipment connected to the first configuration server.
According to the scheme, when the first configuration server is restarted, the connection between the first configuration server and the user equipment which has previously established the connection is disconnected, so that the first configuration server informs the database server to delete the record information related to the first configuration server, and 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 equipment can accurately know the connection state between the user equipment and the configuration server by inquiring 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 the identification information of the network equipment and the second configuration information; and the network server is used for configuring the network equipment according to the second configuration information.
According to the scheme, the control server determines the network server connected with the network equipment, and then requests the network server to configure the network equipment, so that the network equipment can be rapidly and effectively configured.
In a possible implementation method, the determining, by a control server, the network server that is connected to the network device specifically includes: the control server determines the network server that remains connected to the network device by querying a database server. For example, the control server sends an inquiry request to the database server, where the inquiry request is used to inquire the network server connected to the network device, and then the database server obtains information about the network server connected to the network device based on the inquiry request, and then sends the information about 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 the restart, 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 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 the database server to acquire the network equipment corresponding to the network server and sends a 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 work of the distributed management system is guaranteed.
In a possible implementation method, the management server is a master/standby mode management server.
According to the scheme, the management server adopts the main and standby mode, when the main management server is in an abnormal condition, the standby management server can replace the main management server to work, the normal work of the distributed management system is guaranteed, and therefore the performance of the distributed management system is improved.
In a possible implementation method, the configuration server is a configuration server in a master/standby mode. The configuration server herein includes the first configuration server described above.
According to the scheme, the configuration server adopts the main and standby mode, when the main configuration server is in an abnormal condition, the standby configuration server can replace the main configuration server to work, the normal work of the distributed management system is guaranteed, and therefore the performance of the distributed management system is improved.
In a possible implementation method, the control server is a control server in a master/standby mode.
According to the scheme, the control server adopts a main standby mode, when the main control server is in an abnormal condition, the standby control server can replace the main control server to work, the normal work of the distributed management system is guaranteed, and therefore the performance of the distributed management system is improved.
In a possible implementation method, the network server is a network server in a master/standby mode.
According to the scheme, the network servers adopt the main and standby modes, when the main network server is in an abnormal condition, the standby network server can replace the main network server to work, the normal work of the distributed management system is guaranteed, and therefore 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 flowchart of a configuration method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for configuring a user equipment by a configuration server according to an embodiment of the present application;
fig. 4 is a flowchart illustrating 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 distributed management system provided in 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 devices: a relay server, a control server or a network server.
The number of the network servers is one or more, and the distributed management system includes one network server in fig. 1 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, and may also be another server, which is not limited in this application.
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 relationship between the configuration server and the user equipment. For example, when a connection is established between a certain configuration server and a certain user device, 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 device. Alternatively, if the connection is broken, the record information may be deleted from the database server. And the system is also used for recording the connection relationship between the network server and the network equipment. For example, when a connection is established between a network server and a 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.
The network server is configured to configure the network device after establishing a connection between the network server and the network device, for example, configure a corresponding relationship between the network device and a user device served by the network device.
The transfer server is used for receiving a configuration request carrying configuration information from a user and forwarding the configuration request to the control server, so that the control server acquires the configuration information based on the configuration request. The Transfer server supports serving as a Hyper Text Transfer Protocol (HTTP) proxy service, and can convert an HTTPs request into an HTTP request.
The user equipment in the embodiments of the present application refers to a hardware device used by a user for configuring a local area network service, and may also be referred to as a configuration box. In a specific implementation, the user equipment may be an EDGE device, and may also be other devices, which is not limited in this application.
The network device in the embodiment of the present application refers to a hardware device, which is deployed by a service provider at multiple geographic locations and is used to provide a local area network service for a user, and the network device may also be referred to as a network box. In a specific implementation, the network device may be a POP device, and may also be other devices, which is not limited in this application.
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, so that the local area network service is provided for the user.
In a possible implementation method, each server in fig. 1 may be implemented in an active/standby mode. Taking a control server as an example, when the active/standby mode is adopted, the distributed management system at least includes two control servers, where one primary control server exists and one or more standby control servers exist. When the main control server fails or is overloaded, one or more standby control servers can be started to work.
Fig. 2 is a schematic flowchart of a method for establishing a connection between a user equipment 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, a 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 user equipment, 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 a 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 (IP) + a public network port number, and then the user equipment sends the request message 1 to a relay server. The transit server converts the public network IP + public network port number in the request message 1 into a first VIP + internal network port number, and then the transit server sends a request message 2 to the management server, wherein the request message 2 comprises the identification information of the user equipment and the first VIP + internal network port number. The public network IP + public network port number is used for accessing an external network, and the first VIP + internal network port number is used for accessing an internal network. VIP is an abbreviation for Virtual IP (Virtual IP). The public network port number and the internal network port number may be the same or different. The virtual IP in the embodiment of the present application may also be referred to as an intranet IP.
Step 202, the management server selects a configuration server from M configuration servers for the user equipment according to the pre-configured selection policy.
In the embodiment of the present application, the selected configuration server is referred to 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 most recently as a first configuration server.
If the configuration server which is connected with the user equipment exists in the M configuration servers, the management server selects the configuration server which is connected with the user equipment most recently as a first configuration server. Illustratively, the management server stores a hash table (hash) for recording information of the configuration server to which the user device has last connected. Therefore, the management server may query the hash table, and if the hash table does not record the information of the configuration server to which the user equipment has been connected last time, it indicates that none of the M configuration servers has established a 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 ue disconnects from the current configuration server and establishes a connection with another configuration server, the relevant record in the hash table is updated to indicate that the configuration server to which the ue has last connected is the other configuration server.
If there is no configuration server in the M configurations that has established a connection with the user equipment, 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 server is selected as the first configuration server. For another example, N configuration servers with the lightest load are selected, where N is an integer greater than 1, and one configuration server is randomly selected from the N configuration servers with the lightest load as the first configuration server. For another example, K configuration servers are randomly selected from the M configuration servers shown in fig. 1, where 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 of selecting a configuration server, a configuration server that has been connected to the user equipment most recently is preferentially selected. Of course, if there is a configuration server that has established a connection with the user equipment for the last time, but the load of the configuration server exceeds a certain threshold, the configuration server may not be selected, but one configuration server may be selected from other M-1 configuration servers, for example, one configuration server may be selected according to the load of the M-1 configuration servers, and the specific method may refer to the foregoing description.
It should be noted that the management server may also select the configuration server by other methods, and the embodiment of the present application is not limited.
Step 203, the management server sends a first response to the user equipment.
The first response includes information of the first configuration server, for example, the information of the first configuration server may be an IP address or identification information.
Step 204, the user equipment sends a second request to the first configuration server.
The second request is used for requesting to establish connection, and the first configuration server responds to the second request and establishes connection between the user equipment and the first configuration server. The connection may be, for example, a Transmission Control Protocol (TCP) connection, which is not limited in the present application.
Based on the above solution, after receiving the request from the user equipment, the management server selects, according to the selection policy, a configuration server that has previously established a connection with the user equipment from the plurality of configuration servers for the user equipment, and then the configuration server sends configuration information for configuring the user equipment to the user equipment. On one hand, since the selected configuration server has previously established a connection with the user equipment, the context information of the user equipment may be stored in the configuration server, and thus, a quick connection establishment may be achieved. On the other hand, since the selected configuration server has previously established a connection with the user equipment, the configuration server may have already acquired 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 implement quick configuration of the user equipment. In a possible implementation method, after the 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 following describes an implementation method of the first record information with reference to a specific example.
Table 1 shows an implementation method of recording information according to an 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. Where netconf _ stack is identification information of the first configuration server, and the identification information is expressed by VIP + intranet port number, such as 10.1.34.193. The device ID is identification information of the user equipment, which may be a serial number of the user equipment, such as CTCE10140158EDGE. time is used to indicate the time when the first configuration server establishes a connection with the user equipment, such as 2022-01. netconf _ node _ id is the public network IP + public network port number of the user equipment, such as 10.1.40.158.
Based on the step 205, since the connection status between the ue and the configuration server is recorded in the database server, when other devices, such as the control server, need to acquire the information of the configuration server connected to the ue, the query result, that is, the information of the configuration server connected to the ue, can be quickly and accurately obtained by querying the database server. In a possible implementation method, after the step 205, if the first configuration server disconnects from the user equipment, after the disconnection, the following step 206 may also be performed.
In step 206, the first configuration server sends a first deletion indication to the database server.
The first deletion instruction is used for instructing deletion of the first recorded information.
Based on this step 206, after the first configuration server is disconnected from the user equipment, the record information for indicating the establishment of 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 devices can accurately know the connection state between the user equipment and the configuration server by querying the database server, thereby reducing the load of the database server, reducing the time for searching the database table, and improving the performance of the distributed management system. Based on the example of table 1, after the first configuration server is disconnected from the user equipment, the first record information in table 1 needs to be deleted.
In an implementation method, in the embodiment of the present application, a distributed lock may be added to an online task and a offline task of a user equipment, so as to avoid an error in recorded information in a database server. Here, the user equipment is online, which means that the user equipment establishes a connection with a certain configuration server, and the user equipment is offline, which means that the user equipment disconnects from the certain configuration server. The working principle of the distributed lock is explained in connection with an example.
At time t1, the user equipment 1 goes online and requests to establish a connection between the user equipment 1 and the configuration server 1, and at this time, the configuration server 1 generates a task 1, where 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 user equipment 1 goes offline and requests to delete the connection between the user equipment 1 and the configuration server 1, at this time, the configuration server 1 generates a task 2, and the task 2 requests the database server to delete the connection between the user equipment 1 and the configuration server 1. However, if t2 is separated from t1 by a short time, the task 1 is still in the process, i.e. it is not yet available to add the record information 1 to the database server. 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 recorded information 1 is recorded in the database server, the database server executes an operation of deleting the connection relationship between the user equipment 1 and the configuration server 1. Since the database server does not record the connection relationship between the user equipment 1 and the configuration server 1, the deletion operation fails.
After the task 2 is executed, the task 1 is added with record information 1 in the database server during the processing process, and after the task 1 is executed, the record information 1 is used for recording 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 therefore the recorded information 1 belongs to an erroneous piece of information.
For this reason, the embodiments of the present application may solve the above problem by adding a distributed lock to a 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 at this time, the task 2 needs to be executed after the task 1 is executed and after the distributed lock of the task 1 is released. Specifically, after the task 1 is executed, the recorded information 1 is generated in the database server, and then the task 2 is executed, the recorded information 1 is deleted, so that the accuracy of the information in the database server is ensured.
Fig. 3 is a schematic flowchart of a method for configuring a user equipment 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. The method may be implemented in combination 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 a 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, which is used for configuring user equipment. The user inputs relevant information on the interface, first configuration information is generated, wherein the first configuration information comprises a maximum bandwidth value, user authority and the like, then the user clicks a 'submit' button, and a request message a is generated, and the request message a comprises identification information of the 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 + internal network port number, and sends a request message b to the control server according to the second VIP + internal network port number, wherein the request message b comprises the identification information of the user equipment and the first configuration information. The public network IP + public network port number is used for accessing an outer network, and the second VIP + inner network port number is used for accessing an inner network. The public network port number and the internal network port number can be the same or different.
Step 302, the control server determines a first configuration server 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 sends an inquiry request to the database server, where the inquiry request is used to inquire the configuration server that is in connection with the user equipment, and then the database server obtains information of the configuration server that is in connection with the user equipment, that is, information of the first configuration server, based on the inquiry 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, and the configuration server connected with the user equipment can be determined quickly and accurately.
Generally, for a certain ue, if the ue has established a connection with a certain configuration server, a record information is recorded in the database server, and the record information records the connection between the ue and the configuration server, but in a special case, a plurality of record information may be recorded in the database server. For example, the user equipment 1 establishes a connection with the configuration server 1 at time t1, and then the database server generates the record information 1, where the record information 1 records the connection between the user equipment 1 and the configuration server 1. Then at time t2, the user equipment 1 disconnects from the configuration server 1, and establishes a connection with the configuration server 2 quickly, if t2 is very short from t1, the configuration server 1 may not have time to delete the recorded information 1, and then the database server generates the recorded information 2, and the recorded information 2 records the connection between the user equipment 1 and the configuration server 2, so that the recorded information 1 and the recorded information 2 exist in the database server at the same time. In this case, if the control server finds information of the 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, wherein the request message comprises information of the user equipment, and then the control server receives a response message from the plurality of configuration servers respectively, wherein the response message is used for indicating whether the connection is established with the user equipment, so that the control server can know the configuration server which is currently established with the user equipment.
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.
Step 304, the first configuration server configures the user equipment according to the first configuration information.
That is, the first configuration server sends 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 connected with the user equipment, and then requests the first configuration server to configure the user equipment, so that the user equipment can be rapidly and effectively configured.
In a possible implementation method, the control server may perform probing on the M configuration servers shown in fig. 1, for example, the control server periodically sends a probe message to each configuration server. For convenience of explanation, the configuration server a among the M configuration servers will be described as an example. The control server periodically sends a probe message to the configuration server a, and when no response message aiming at K probe messages sent in one period is received from the configuration server a, where K is a positive integer, that is, the control server sends K probe messages to the configuration server a, and does not receive any response message from the configuration server a, the control server sends a second deletion instruction to the database server, where the second deletion instruction is used to instruct to delete the record information related to the configuration server a, and the record information is used to record the user equipment connected to the configuration server a. The configuration server a may be the first configuration server, or may be any server among the other M-1 configuration servers. According to the scheme, the control server sends the detection message to the configuration server periodically, and the state of the configuration server is accurately judged based on whether the configuration server feeds back the response message or not. If no response message to the probe message is received, indicating that the configuration server is not online or powered off, the control server informs the database server to delete the record information related to the configuration server, wherein the record information is used for recording the user equipment connected with the configuration server. Therefore, the accuracy of the recorded information in the database server is maintained, and other equipment can accurately know the connection state between the user equipment and the configuration server by inquiring the database server. In a possible implementation method, after the reboot, 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, and the third record information is used to record user equipment connected to the first configuration server. According to the scheme, when the first configuration server is restarted, the connection between the first configuration server and the user equipment with the connection established previously is disconnected, so that the first configuration server informs the database server to delete the record information related to the first configuration server, wherein 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 equipment can accurately know the connection state between the user equipment and the configuration server by inquiring the database server.
Fig. 4 is a flowchart illustrating 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 combination with the embodiments of fig. 1 and/or fig. 2, or may be implemented separately.
The method comprises the following steps:
step 401, the control server receives second configuration information.
The control server has established a connection with the network server before receiving the second configuration information.
In a possible implementation method, a user inputs a website, i.e., public network IP + public network port number, on a browser of a client, and pops up an interface, which is used for configuring 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 combine the plurality of geographic positions into a local area network. The user then clicks the "submit" button, resulting in a request message c, which includes the second configuration information, and the public network IP + public network port number. And then, after passing through a firewall, the request message c is forwarded to a transfer server, the transfer server converts the public network IP + public network port number in the request message c into a third VIP + internal network port number, and sends a request message d to the control server according to the third VIP + internal network port number, wherein the request message d comprises identification information of the network equipment and second configuration information. And the public network IP + public network port number is used for accessing an external network, and the third VIP + internal network port number is used for accessing an internal network. The public network port number and the internal network port number can be the same or different.
Step 402, the control server determines a network server connected to the network device according to the identification information of 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 sends an inquiry request to the database server, where the inquiry request is used to inquire the network server connected to the network device, and then the database server obtains information about the network server connected to the network device based on the inquiry request, and then sends the information about the network server to the control server. According to the scheme, the control server queries the database server, and the network server connected with the network equipment can be determined quickly and accurately.
It should be noted that, if the network server adopts the active/standby mode, the number of the network servers connected to the network device may be multiple, so that multiple pieces of record information may be stored in the database server, and each piece of record information records the connection state between the network device and the multiple network servers. For example, table 2 below records the connection relationships between the network device 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
Wherein id in table 2 represents a corresponding relationship between an IP address of the network device and an IP address of the network server, and the border _ address is the IP address of the network device, for example, 10.1.40.154 is the IP address of the network device. 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 and the network server, for example, online indicates online, i.e. the 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 an implementation method, a control server determines one or more network devices according to second configuration information, then determines a network server connected to the one or more network devices, and sends a fifth request to the network server, where the fifth request includes identification information of the network device 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, where the network device 1 is connected to the network server 1, and the network device 2 is connected to the network server 2, the control server sends a fifth request to the network device 1, where the fifth request includes the identification information and the second configuration information of the network device 1, and sends a fifth request to the network device 2, where the fifth request includes the identification information and the second configuration information of the network device 2.
The control server determines one or more network devices according to the second configuration information, such as: the control server stores the corresponding relationship between the information of the geographical position and the network equipment, so that the control server determines the corresponding network equipment according to the information of the geographical position in the second configuration information.
And step 404, the network server configures the network device according to the second configuration information.
That is, the network server sends the second configuration information to the network device, and then the network device configures the network device according to the second configuration information. That is, the network server transmits the second configuration information to the network device.
According to the scheme, the control server determines the network server connected with the network equipment, and then requests the network server to configure the network equipment, so that the network equipment can be rapidly and effectively configured.
In a possible implementation method, after the network server is restarted, the network server sends a sixth request to the database server, where the sixth request is used to obtain the 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 database server records the connection relationship between the network server a and 3 network devices, so that after the network server a is restarted, the database server requests the database server to acquire the network device corresponding to the network server a, the database server sends the 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.
It should be noted that, in the embodiment of the present application, the management server, the control server, the transfer 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.
As will be appreciated by one skilled in the art, 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 so forth) 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 changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A distributed management system is characterized by comprising 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 policy, wherein M is an integer greater than 1; sending address information of the first configuration server to the user equipment; wherein the selection policy comprises: when a configuration server which has established connection with the user equipment exists in the M configuration servers, selecting the configuration server which has established connection with the user equipment for the last time as the first configuration server;
the first configuration server is used for receiving a second request from the user equipment, and the second request is used for requesting to establish connection; and establishing connection with the user equipment according to the second request.
2. The system of claim 1, wherein the selection policy further comprises: and when the configuration server which is connected with the user equipment does not exist in the M configuration servers, selecting the first configuration server according to the loads of the M configuration servers.
3. The system of claim 1 or 2, wherein the first configuration server is further configured to send first record information to a database server after establishing the connection with the user equipment, the first record information indicating that the user equipment 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 equipment, the first deletion indication indicating deletion of the first record information.
5. The system of any one of claims 1 to 4, further comprising a control server, the control server being 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 the 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.
6. The system of claim 5, wherein the control server is further configured to periodically send probe messages to the first configuration server; when no response message aiming at K detection messages sent in one period is 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.
7. The system of any one of claims 1 to 6, wherein the first configuration server is further configured to send a third deletion instruction to the database server after the reboot, the third deletion instruction being configured to instruct deletion of third record information related to the first configuration server, the third record information being configured to record the user equipment connected to the first configuration server.
8. The system of any one of claims 1 to 7, wherein the system further comprises a web 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 the identification information of the network equipment and the second configuration information;
and the network server is used for configuring the network equipment according to the second configuration information.
9. The system of claim 8, wherein the network server is further configured to send a sixth request to a database server after the reboot, the sixth request being used to obtain 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.
10. The system of any one of claims 1 to 9, 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 2022-07-27 Distributed management system Pending CN115277351A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN115277351A true CN115277351A (en) 2022-11-01

Family

ID=83771364

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115277351A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350734A (en) * 2007-07-20 2009-01-21 中兴通讯股份有限公司 Method for automatically configuring server associated by automatic configuration terminal equipment
CN101771730A (en) * 2008-11-28 2010-07-07 华为终端有限公司 Method, device and system for issuing service
CN102143075A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for achieving load balance
US20110296444A1 (en) * 2010-05-31 2011-12-01 Hon Hai Precision Industry Co., Ltd. Customer premises equipment and method for processing commands
CN102893557A (en) * 2010-03-22 2013-01-23 皇家Kpn公司 System and method for handling a configuration request
US20130268578A1 (en) * 2012-04-10 2013-10-10 Arabinda Bose Method And Apparatus For Facilitating Communications With A Managed Client Device
CN104079630A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Business server side load balancing method, client side, server side and system
CN104821891A (en) * 2009-11-23 2015-08-05 皇家Kpn公司 Method and system for remote equipment management
CN114006807A (en) * 2020-07-14 2022-02-01 青岛海信电子产业控股股份有限公司 Client terminal equipment, configuration method thereof and configuration server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350734A (en) * 2007-07-20 2009-01-21 中兴通讯股份有限公司 Method for automatically configuring server associated by automatic configuration terminal equipment
CN101771730A (en) * 2008-11-28 2010-07-07 华为终端有限公司 Method, device and system for issuing service
CN104821891A (en) * 2009-11-23 2015-08-05 皇家Kpn公司 Method and system for remote equipment management
CN102893557A (en) * 2010-03-22 2013-01-23 皇家Kpn公司 System and method for handling a configuration request
US20110296444A1 (en) * 2010-05-31 2011-12-01 Hon Hai Precision Industry Co., Ltd. Customer premises equipment and method for processing commands
CN102143075A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for achieving load balance
US20130268578A1 (en) * 2012-04-10 2013-10-10 Arabinda Bose Method And Apparatus For Facilitating Communications With A Managed Client Device
CN104079630A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Business server side load balancing method, client side, server side and system
CN114006807A (en) * 2020-07-14 2022-02-01 青岛海信电子产业控股股份有限公司 Client terminal equipment, configuration method thereof and configuration server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LING ZHENG: "Resarch and Application of CWMP in Distributed Network Management System", 《2012 INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND SERVICE SYSTEM》 *
郑诚: "CPE的WAN配置管理协议的研究与设计", 《中国优秀硕士学位论文全文数据库》 *

Similar Documents

Publication Publication Date Title
WO2020253266A1 (en) Method for providing edge service, apparatus and device
US9154557B2 (en) Automatic proxy registration and discovery in a multi-proxy communication system
US10680874B2 (en) Network service fault handling method, service management system, and system management module
US9300534B2 (en) Method for optimally utilizing a peer to peer network
US8261339B2 (en) Dynamic network tunnel endpoint selection
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
US8543692B2 (en) Network system
US10313452B2 (en) Migrating a chat message service provided by a chat server to a new chat server
US10320898B2 (en) Automated multi-network failover for data centers
US9900385B2 (en) Connection management device, communication system, connection management method, and computer program product
CN110474802B (en) Equipment switching method and device and service system
CN112039710B (en) Service fault processing method, terminal equipment and readable storage medium
CA2595684C (en) Method for optimally utilizing a peer to peer network
CN112671554A (en) Node fault processing method and related device
JP6540063B2 (en) Communication information control apparatus, relay system, communication information control method, and communication information control program
US20160065678A1 (en) Communication system, management computer, and session information migration method
TWI740210B (en) Method for terminal device management and server
CN115277351A (en) Distributed management system
US20220263759A1 (en) Addressing method, addressing system, and addressing apparatus
WO2019242459A1 (en) Node switching method, network node, network system, and storage medium
KR100450605B1 (en) A web application sever and method for providing dynamic contents thereof
US9019964B2 (en) Methods and systems for routing application traffic
US11876684B1 (en) Controlled cross-cell migration of data in cell-based distributed computing architecture
CN115103004A (en) Session establishing method, device, equipment and storage medium
WO2024013719A1 (en) Domain name system based global server load balancing service

Legal Events

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