CN115695407A - Remote equipment connection method and system supporting multi-server environment and server group - Google Patents

Remote equipment connection method and system supporting multi-server environment and server group Download PDF

Info

Publication number
CN115695407A
CN115695407A CN202211222263.8A CN202211222263A CN115695407A CN 115695407 A CN115695407 A CN 115695407A CN 202211222263 A CN202211222263 A CN 202211222263A CN 115695407 A CN115695407 A CN 115695407A
Authority
CN
China
Prior art keywords
server
equipment
channel
remote
forwarding
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
CN202211222263.8A
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.)
Shenzhen Tenda Technology Co Ltd
Original Assignee
Shenzhen Tenda 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 Shenzhen Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN202211222263.8A priority Critical patent/CN115695407A/en
Publication of CN115695407A publication Critical patent/CN115695407A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a remote equipment connection method, a remote equipment connection system and a server group supporting a multi-server environment, and belongs to the technical field of communication. The remote equipment connection method comprises the steps of analyzing a remote access request initiated by a user to obtain an equipment identifier; acquiring an equipment channel according to the equipment identifier; forwarding the request data according to the acquired equipment channel; and receiving the response request of the equipment end and forwarding the response request to the user. The invention has the beneficial effects that: under the condition that the service is not interrupted, the problem of resource pressure can be solved by a mode of expanding the server, and the service continuity and the high availability of the system are guaranteed.

Description

Remote equipment connection method and system supporting multi-server environment and server group
Technical Field
The invention relates to the technical field of communication, in particular to a remote equipment connection method supporting a multi-server environment, a system adopting the remote equipment connection method and a server group.
Background
The remote connection service provides convenience for a client to still access and operate network equipment deployed in a local area network in any network, is popular with the client, and is realized by providing a unified equipment management server depending on equipment suppliers. A single server is typically used to provide the connection service.
In current single service deployment, all network devices are on-line to the same server, and a user can remotely connect and operate any on-line device directly through a server domain name. The process is realized by one server, and the problem of server consistency does not exist.
As shown in fig. 1, the whole system is composed of three parts, namely a network device with an embedded client, a device management server X and a remote user terminal, wherein the server X is used as a relay between the device and the user terminal to support the remote connection and operation of the former by the latter. The following preconditions for the realization of a remote connection:
1. a client embedded in the equipment carries equipment information in advance and initiates a login authentication request to a server;
2. the server processes the request and responds to the result; if the authentication is successful, a connection channel (hereinafter referred to as a device channel) with the device is created on the server to form a binding relationship. Meanwhile, a remote link carrying the equipment identifier is established and permanently maintained in the life cycle of the equipment; thereafter, the user can connect and operate the designated device using the remote link in any network.
As the number of devices sold by manufacturers increases, the device management server faces a serious resource pressure and has to be selected to expand capacity. In consideration of flexibility of capacity expansion and high availability, horizontally expanding services, and forming a server cluster is the best choice.
Server clustering means that all devices and users have randomness when logging in to the server through the domain name. However, the server that the remote device requires the user to log in to and the server that manages the device must be the same server, and if they are different, the remote connection will inevitably fail.
Therefore, the prior art has the following problems:
1. the deployment of a single server can meet the remote connection function, but the shutdown and the expansion are needed, so the flexibility is poor; once the server fails, the service is interrupted, and the reliability is poor;
2. the deployment of a single server is directly switched into the deployment of multiple services, the original single server of the transit service is changed into a service group consisting of a plurality of servers, and the relationship between the domain name and the servers is changed from one to many. The user logs in the server and becomes random, and the devices are randomly and uniformly distributed on the unknown service. However, the user can only realize the connection and operation of the specific device depending on the binding relationship between the transit server and the device, and once the server where the user logs in is not the same as the server for managing the device, the remote connection fails.
Therefore, the invention provides a method, which aims to solve the problem of connection failure of user remote equipment in a multi-server environment.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a remote device connection method supporting a multi-server environment, and also provides a system and a server group for realizing the remote device connection method supporting the multi-server environment.
The invention relates to a remote equipment connection method supporting a multi-server environment, which comprises the following steps:
s1: analyzing a remote access request initiated by a user to obtain an equipment identifier;
s2: acquiring an equipment channel according to the equipment identifier;
s3: forwarding the request data according to the acquired equipment channel;
s4: and receiving the response request of the equipment end and forwarding the response request to the user.
The invention is further improved, in step S2, the step of obtaining the device channel includes:
obtaining the device channel from the local machine, if the device channel information does not exist in the server, further comprising:
and acquiring the equipment channel from the associated server.
The invention is further improved, and the realization method of the step of obtaining the equipment channel from the associated server comprises the following steps:
traversing the address list of the server group and connecting the associated servers;
querying a device channel from an association server;
if the equipment channel exists, the address of the associated server is obtained;
the remote access link is reassembled and redirected to the new access link.
The invention is further improved, the address list of the traversing server group, the realization method of connecting the associated server is:
and sending the connection requests one by one according to the address list of the server group, and applying for the connected associated servers to query the equipment channels in respective services.
The invention is further improved, in step S4, after the new access link is redirected, the associated server executes steps S1-S4 to complete the remote access.
The invention also provides a system for realizing the remote equipment connection method supporting the multi-server environment, which comprises the following steps:
an identification analysis module: the device is used for analyzing a remote access request initiated by a user and acquiring a device identifier;
an equipment channel acquisition module: the device channel is obtained according to the device identifier;
a request forwarding module: the device channel forwarding unit is used for forwarding request data according to the acquired device channel;
a response forwarding module: and the response request is used for receiving the response request of the equipment end and forwarding the response request to the user.
The invention also provides a server group which comprises a plurality of servers connected with each other and is used for realizing the remote equipment connection method supporting the multi-server environment.
The invention is further improved and also comprises a domain name resolution device which is respectively connected with each server in the server group and is also used for resolving the domain names of users and devices.
The invention is further improved, and the IP addresses of a plurality of servers adopt the same domain name.
Compared with the prior art, the invention has the beneficial effects that: the multi-server deployment can solve the problem of resource pressure in a server expansion mode under the condition of uninterrupted service when the server has a resource bottleneck, thereby ensuring service continuity and high availability of the system;
according to the invention, by binding a plurality of server IP addresses to the same domain name, the domain names are unified, so that the domain name purchase cost can be reduced, the online path of equipment can be unique, the equipment is uniformly distributed in each server, and the resource utilization rate is improved.
Drawings
In order to illustrate the present application or prior art more clearly, a brief description of the drawings needed for the description of the embodiments or prior art will be given below, it being clear that the drawings in the following description are some embodiments of the present application and that other drawings can be derived from them by a person skilled in the art without inventive effort.
FIG. 1 is a schematic diagram of a prior art single server network deployment;
FIG. 2 is a schematic diagram of a server farm network deployment according to the present invention;
FIG. 3 is a schematic diagram of a user remote access implementation method of the present invention;
FIG. 4 is a detailed flow chart of an embodiment of the present invention.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof in the description and claims of this application and the description of the figures above, are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the foregoing drawings are used for distinguishing between different objects and not for describing a particular sequential order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
Considering that a server accessed in a remote connection process of a user in a multi-service system has randomness, the invention provides a remote connection method based on a multi-service environment. The method utilizes communication among servers to ensure that when a remote connection request is made, even if a user randomly connects to other servers, the connection can be transferred to the transit server, thereby smoothly completing the remote connection. The server farm structure of the present invention is shown in FIG. 2.
The server group comprises more than 2 servers, and all the servers can communicate with each other. In addition, a domain name resolution device is also arranged and respectively connected with each server for resolving the domain names of the remote user and the remote device.
If the device a is online to the server a, the domain name is resolved into IP _ a by the domain name resolution device, and the user a can and can only remotely access the device a managed by the user a through the server a.
Similarly, if the B device is on line to the server B, the domain name is resolved into IP _ B by the domain name resolution device, and the user B can and can only remotely access the B device managed by the user B through the server B. Therefore, the problem that the remote connection fails due to the fact that the server for logging in by the user is not the same as the server for managing the equipment can be effectively solved.
The invention discloses a remote equipment connection method supporting a multi-server environment, which comprises the following steps:
s1: analyzing a remote access request initiated by a user to obtain an equipment identifier;
s2: acquiring an equipment channel according to the equipment identifier;
s3: forwarding the request data according to the acquired equipment channel;
s4: and receiving the response request of the equipment end and forwarding the response request to the user.
Correspondingly, the system of the remote equipment connection method supporting the multi-server environment mainly comprises an identification analysis module, an equipment channel acquisition module, a request forwarding module and a response forwarding module. The identification analysis module accepts a remote connection request of a user to a certain device and analyzes a device identification; the equipment channel acquisition module is responsible for acquiring an equipment channel from a local server or a server cluster; the request forwarding module and the response forwarding module are responsible for forwarding interactive data between the user and the equipment.
As shown in fig. 3, the specific processing method of the remote connection method among the user, the device and the server cluster of the present invention is as follows:
1. a user acquires a remote link of a certain device and initiates a remote connection request to the certain device to a server group through a terminal;
2. any possible server receives a remote access request initiated by a user and accepts a server analysis equipment identifier;
3. the server group inquires and acquires an equipment channel in the service group according to the identification through inter-service communication, and finally sends the remote request data to the equipment end through the equipment channel;
3. after the equipment receives the data, the equipment responds to the request and forwards the response data to the user terminal for processing through the server.
In the remote connection processing method, the core is that a channel acquisition module utilizes communication between services to search and acquire equipment channels in a service group, thereby ensuring that remote connection is successfully completed.
As shown in fig. 4, as an embodiment of the present invention, a specific process of the server farm according to the present invention executing the remote device connection method supporting the multi-server environment is as follows:
firstly, monitoring a connection request of an associated service on a fixed port when each service program is started;
in the operation process of the first server, if a remote connection request of a user comes, firstly analyzing and acquiring an identifier of the current remote connection device from request data, and then searching a device channel from a local machine according to the device identifier;
if the first server has the channel of the equipment, the service can complete the remote connection and operation, directly sends the remote request data to the equipment end through the channel and completes the subsequent data interaction;
if the first server does not have the equipment channel, the server traverses the address list of the associated servers, sends connection requests to the associated second servers one by one, and applies for inquiring the channel of the equipment in respective services of the second servers;
if the equipment channel does not exist on each server, the remote access fails; if the equipment channel exists on any second server, the first server uses the address of the second server to reestablish a new link of the remote access;
the first server redirects the remote connection request to the second server through the new link, and the second server completes the remote operation.
Therefore, after the method and the system are used, when the server has resource bottlenecks, the problem of resource pressure can be solved in a mode of expanding the server under the condition that the service is not interrupted, and the service continuity and the high availability of the system are guaranteed.
Preferably, the invention can bind a plurality of server IP addresses to the same domain name, and the uniform domain name can not only reduce the purchase cost of the domain name, but also ensure that the online path of the equipment is unique and is uniformly distributed in each server, thereby improving the utilization rate of resources.
The above-described embodiments are intended to be illustrative, and not restrictive, of the invention, and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (9)

1. A method for remote device connection supporting a multi-server environment, comprising the steps of:
s1: analyzing a remote access request initiated by a user to obtain an equipment identifier;
s2: acquiring an equipment channel according to the equipment identifier;
s3: forwarding the request data according to the acquired equipment channel;
s4: and receiving the response request of the equipment end and forwarding the response request to the user.
2. The remote device connection method supporting a multi-server environment according to claim 1, wherein: in step S2, the step of obtaining the device channel includes:
obtaining the device channel from the local machine, if the device channel information does not exist in the server, further comprising:
and acquiring the equipment channel from the associated server.
3. The remote device connection method supporting a multi-server environment according to claim 2, wherein: the method for acquiring the equipment channel from the associated server comprises the following steps:
traversing the address list of the server group and connecting the associated servers;
querying a device channel from an association server;
if the equipment channel exists, the address of the associated server is obtained;
the remote access link is reassembled and redirected to the new access link.
4. The remote device connection method supporting a multi-server environment according to claim 3, wherein: the method for traversing the address list of the server group and connecting the associated servers comprises the following steps:
and sending the connection requests one by one according to the address list of the server group, and applying for the connected associated servers to query the equipment channels in respective services.
5. The remote device connection method supporting a multi-server environment according to claim 3, wherein: in step S4, after the new access link is redirected, the associated server executes steps S1-S4 to complete remote access.
6. A system including the remote device connection method supporting a multi-server environment according to any one of claims 1 to 5, comprising:
an identification analysis module: the device is used for analyzing a remote access request initiated by a user and acquiring a device identifier;
an equipment channel acquisition module: the device channel is obtained according to the device identifier;
a request forwarding module: the device channel forwarding unit is used for forwarding request data according to the acquired device channel;
a response forwarding module: and the response request is used for receiving the response request of the equipment end and forwarding the response request to the user.
7. A server farm comprising a plurality of servers connected to each other for implementing the remote device connection method supporting a multi-server environment according to any one of claims 1 to 5.
8. The server farm of claim 7, wherein: the domain name resolution equipment is also used for resolving domain names of users and equipment.
9. The server farm of claim 8, wherein: the IP addresses of a plurality of servers adopt the same domain name.
CN202211222263.8A 2022-10-08 2022-10-08 Remote equipment connection method and system supporting multi-server environment and server group Pending CN115695407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211222263.8A CN115695407A (en) 2022-10-08 2022-10-08 Remote equipment connection method and system supporting multi-server environment and server group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211222263.8A CN115695407A (en) 2022-10-08 2022-10-08 Remote equipment connection method and system supporting multi-server environment and server group

Publications (1)

Publication Number Publication Date
CN115695407A true CN115695407A (en) 2023-02-03

Family

ID=85065499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211222263.8A Pending CN115695407A (en) 2022-10-08 2022-10-08 Remote equipment connection method and system supporting multi-server environment and server group

Country Status (1)

Country Link
CN (1) CN115695407A (en)

Similar Documents

Publication Publication Date Title
CN111641583B (en) Internet of things resource access system and resource access method
CN104144098B (en) Information push method, system and push server equipment
USRE45806E1 (en) System and method for the optimization of database access in data base networks
US20080147830A1 (en) Selective sub-net filtering in a pre-boot execution environment (pxe)
RU2464722C2 (en) Method, device and system for distribution of messages
WO2015043455A1 (en) Data transmission method, device, and system
CN113259423B (en) Method and device for client networking access in P2P system
WO2020206660A1 (en) Network resource request method and apparatus, electronic device and storage medium
CN102035815A (en) Data acquisition method, access node and data acquisition system
EP1198102B1 (en) Extendable provisioning mechanism for a service gateway
CN101242306A (en) Method, system, device and server for automatic discovery of network device
CN109618003B (en) Server planning method, server and storage medium
JP2008522464A (en) Method and system for agent to redirect terminal request
CN112003963B (en) Method, system, device and medium for mounting volume on bare metal server
CN114338769B (en) Access request processing method and device
CN112671554A (en) Node fault processing method and related device
CN107707939B (en) Video access method, access balance server, central server and system
CN111193778B (en) Method and device for balancing WEB service load
CN116974948A (en) Service system testing method, system, equipment and medium
KR100619424B1 (en) Dynamic burn rack monitor listener server
CN115695407A (en) Remote equipment connection method and system supporting multi-server environment and server group
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN109144919B (en) Interface switching method and device
CN111935329B (en) Domain name resolution method and device
CN108462897A (en) A kind of method of data capture and device of network failure

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