CN-122001930-A - Connection optimization method, system and related equipment of local area network server
Abstract
The invention provides a connection optimization method, a system and related equipment of a local area network server, wherein the method comprises the steps that the local area network server reports an intranet IP to a cloud public server, so that a client can acquire and attempt to establish local area network direct connection with the local area network server; and when the client side needs network diagnosis of the local area network server side, the client side sends a network detection instruction to the local area network server through WebSocket long connection, and the local area network server feeds back a result to the client side after executing the execution, so as to realize remote diagnosis of the link quality from the local area network server to the cloud gateway. According to the invention, the reliability of local area network connection and the fault detection efficiency are improved by constructing a mechanism for periodically carrying out anomaly monitoring and cross-terminal diagnosis on the client connection mode.
Inventors
- DENG JING
Assignees
- 深圳渊联技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260310
Claims (10)
- 1. A connection optimization method for a local area network server, comprising: the local area network server reports the intranet IP to the cloud public server for storage; Acquiring the intranet IP of the LAN server from the cloud public server through a client, and attempting to establish LAN direct connection with the LAN server based on the intranet IP; Periodically counting the connection modes of all the clients connected to the local area network server through the cloud public server, wherein the connection modes comprise local area network direct connection and forwarding through a cloud gateway; When the connection modes of all the clients are forwarded through a cloud gateway in one statistical period, judging that the intranet IP configuration stored by the cloud public server is abnormal, generating alarm information and pushing the alarm information to an operation and maintenance terminal; when the client needs to perform network diagnosis, acquiring a detection initiating terminal selected on the client, and if the detection initiating terminal is a local area network server, sending a first network detection instruction to the local area network server by the client through a WebSocket long connection; And receiving and executing the first network detection instruction through the local area network server, and feeding back a detection result to the client through the WebSocket long connection so as to evaluate the link quality from the local area network server to the cloud gateway.
- 2. The connection optimization method of the lan server according to claim 1, wherein the obtaining, by the client, the intranet IP of the lan server from the cloud public server, and attempting to establish a lan direct connection with the lan server based on the intranet IP includes: when the client tries to establish local area network direct connection with the local area network server and fails, the client is automatically switched to communicate with the local area network server in a forwarding mode through a cloud gateway.
- 3. The connection optimization method of the lan server according to claim 1, wherein the reporting, by the lan server, the own intranet IP to the cloud public server for storage further includes: predicting IP change probability based on the historical IP change record of the server and the lease of the DHCP server of the local area network; and when the IP change probability exceeds a preset threshold, actively pushing an IP pre-update notification to the cloud public server.
- 4. The connection optimization method of the local area network server according to claim 1, wherein the cloud public server extracts a connection link identifier to distinguish the connection mode by analyzing a communication log of the client and the local area network server, and the alarm information includes a server identifier, a statistics period, a connection mode distribution and abnormal reason speculation.
- 5. The connection optimization method of the lan server according to claim 1, wherein after receiving and executing the first network detection instruction by the lan server and feeding back a detection result to the client through the WebSocket long connection, further includes: A second network detection instruction with the cloud gateway is executed locally through the client to obtain a local detection result; And comparing and displaying the local detection result with the detection result fed back from the local area network server to further determine whether the network is blocked from the public network link from the client to the cloud gateway and/or from the local area network server to the intranet outlet link of the cloud gateway.
- 6. The connection optimization method of a lan server according to claim 1, wherein the first network detection instruction includes basic network detection, end-to-end full link topology discovery and evaluation, and application layer traffic simulation detection; The end-to-end full link topology discovery and evaluation comprises the steps of discovering and evaluating the complete network link topology from a detection initiating end to a target object and the quality of each node through an expansion instruction; The application layer service flow simulation detection comprises detecting delay and success rate of application layer communication by simulating data interaction of actual application.
- 7. The connection optimization method of a lan server according to claim 1, wherein the client needs to perform authority authentication based on a token of a currently logged-in user before sending the first network detection instruction to the lan server; after receiving the first network detection instruction, the local area network server needs to verify the signature and the authority contained in the first network detection instruction, and then performs detection after the signature and the authority pass the verification.
- 8. The connection optimization control system of the local area network server is characterized by comprising the following components: the IP reporting module is used for reporting the intranet IP of the local area network server to the cloud public server for storage; The connection attempt module is used for acquiring the intranet IP of the local area network server from the cloud public server through a client and attempting to establish local area network direct connection with the local area network server based on the intranet IP; The connection mode statistics module is used for periodically counting the connection modes of all the clients connected to the local area network server through the cloud public server, wherein the connection modes comprise local area network direct connection and forwarding through a cloud gateway; the anomaly judging module is used for judging that the intranet IP configuration stored by the cloud public server is anomalous when all the connection modes of the clients are forwarded through a cloud gateway in one statistical period, generating alarm information and pushing the alarm information to an operation and maintenance terminal; The network diagnosis module is used for acquiring a detection initiating terminal selected on the client when the client needs to perform network diagnosis, and if the detection initiating terminal is a local area network server, the client sends a first network detection instruction to the local area network server through a WebSocket long connection; And the link evaluation module is used for receiving and executing the first network detection instruction through the local area network server, and feeding back a detection result to the client through the WebSocket long connection so as to evaluate the link quality from the local area network server to the cloud gateway.
- 9. The connection optimization control device of the local area network server is characterized by comprising a memory and at least one processor, wherein the memory is stored with instructions, and the memory and the at least one processor are interconnected through a line; the at least one processor invokes the instructions in the memory to cause the connection optimization control device of the local area network server to perform the connection optimization method of the local area network server as claimed in any one of claims 1-7.
- 10. A computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements a connection optimization method of a local area network server according to any of claims 1-7.
Description
Connection optimization method, system and related equipment of local area network server Technical Field The present invention relates to the field of network communications technologies, and in particular, to a connection optimization method, system, and related device for a local area network server. Background In modern network architecture, deployment of a server in a lan is a common deployment mode, and a client may be located in the same lan or may be located in an external internet, so in order to improve communication efficiency, when the client and the server are in the same lan, direct connection (direct connection of the lan) by using intranet IP is the most efficient manner. The IP address of the server in the lan is generally dynamically allocated by a DHCP (dynamic host configuration protocol) server, and may be changed due to expiration of DHCP lease, restarting of network equipment, or change of network topology, if the lan server fails to report the changed new IP to the cloud public server in time due to the failure, even if the client in the same lan acquires an incorrect IP, the connection failure is usually silent in the prior art, the client automatically returns to a standby connection mode forwarded through the cloud gateway, so that it is difficult for an operation and maintenance personnel to actively and timely discover the abnormal IP configuration, and the operation and maintenance efficiency is low. Accordingly, the prior art is still in need of improvement and development. Disclosure of Invention The invention provides a connection optimization method, a connection optimization system and related equipment of a local area network server, and aims to solve the technical problems in the background technology in the prior art. The first aspect of the present invention provides a connection optimization method for a local area network server, including: the local area network server reports the intranet IP to the cloud public server for storage; Acquiring the intranet IP of the LAN server from the cloud public server through a client, and attempting to establish LAN direct connection with the LAN server based on the intranet IP; Periodically counting the connection modes of all the clients connected to the local area network server through the cloud public server, wherein the connection modes comprise local area network direct connection and forwarding through a cloud gateway; When the connection modes of all the clients are forwarded through a cloud gateway in one statistical period, judging that the intranet IP configuration stored by the cloud public server is abnormal, generating alarm information and pushing the alarm information to an operation and maintenance terminal; when the client needs to perform network diagnosis, acquiring a detection initiating terminal selected on the client, and if the detection initiating terminal is a local area network server, sending a first network detection instruction to the local area network server by the client through a WebSocket long connection; And receiving and executing the first network detection instruction through the local area network server, and feeding back a detection result to the client through the WebSocket long connection so as to evaluate the link quality from the local area network server to the cloud gateway. In an optional implementation manner of the first aspect of the present invention, the obtaining, by the client, the intranet IP of the lan server from the cloud public server, and after attempting to establish a lan direct connection with the lan server based on the intranet IP, the method includes: when the client tries to establish local area network direct connection with the local area network server and fails, the client is automatically switched to communicate with the local area network server in a forwarding mode through a cloud gateway. In an optional implementation manner of the first aspect of the present invention, after the local area network server reports the intranet IP of the local area network server to the cloud public server for storage, the method further includes: predicting IP change probability based on the historical IP change record of the server and the lease of the DHCP server of the local area network; and when the IP change probability exceeds a preset threshold, actively pushing an IP pre-update notification to the cloud public server. In an optional implementation manner of the first aspect of the present invention, the cloud public server analyzes the communication log between the client and the lan server, extracts a connection link identifier to distinguish the connection mode, and the alarm information includes a server identifier, a statistics period, a connection mode distribution and an anomaly reason speculation. In an optional implementation manner of the first aspect of the present invention, after the receiving and executing, by the lan server, the first network detect