CN110740162A - Communication link establishing method, device, electronic equipment and medium - Google Patents

Communication link establishing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN110740162A
CN110740162A CN201910818501.3A CN201910818501A CN110740162A CN 110740162 A CN110740162 A CN 110740162A CN 201910818501 A CN201910818501 A CN 201910818501A CN 110740162 A CN110740162 A CN 110740162A
Authority
CN
China
Prior art keywords
message server
server
message
target
router
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.)
Granted
Application number
CN201910818501.3A
Other languages
Chinese (zh)
Other versions
CN110740162B (en
Inventor
傅昱宸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shangxiang Network Technology Co ltd
Original Assignee
Shanghai Lianshang Network 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910818501.3A priority Critical patent/CN110740162B/en
Publication of CN110740162A publication Critical patent/CN110740162A/en
Application granted granted Critical
Publication of CN110740162B publication Critical patent/CN110740162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides communication link establishment methods and devices for a remote control router, electronic equipment and computer readable media, wherein the method comprises the steps of receiving an access request sent by a target router and used for accessing the remote control server, responding to the access request, selecting a target message server from an available message server set according to priority information of the message server, and establishing a communication link between the target router and the remote control server according to the selected target message server so that the target router can access the remote control server through the communication link.

Description

Communication link establishing method, device, electronic equipment and medium
Technical Field
The application relates to the technical field of internet, in particular to communication link establishing methods and devices for a remote control router, electronic equipment and computer readable media.
Background
With the rapid development of internet and internet of things technologies, routers have become popular and used, people can use mobile terminals such as mobile phones to connect with routers through local authentication or remote authentication (for example, user website authentication, also called Portal authentication), and then access wireless networks provided by routers.
In the remote authentication process, the router is required to send authentication information to the remote control server, and the remote control server informs the router of releasing after passing the authentication according to the authentication information. The communication between the remote control server and the router needs to be realized by a message server, and the message server forwards the message between the remote control server and the router.
However, if the message server fails, the router cannot perform remote authentication.
Disclosure of Invention
The purpose of this application is to provide kinds of communication link establishment methods and apparatuses for remote control router, kinds of electronic devices and kinds of computer readable media.
The aspect of the present application provides a communication link establishment method for a remote control router, for a routing server, comprising:
receiving an access request sent by a target router and used for accessing a remote control server;
in response to the access request, selecting a target message server from the set of available message servers according to the priority information of the message server; and the number of the first and second groups,
and establishing a communication link between the target router and the remote control server according to the selected target message server so that the target router accesses the remote control server through the communication link.
A second aspect of the present application provides a communication link establishing apparatus for a remote control router, for a route server, comprising:
the access request receiving module is used for receiving an access request which is sent by the target router and used for accessing the remote control server;
an access request response module, configured to respond to the access request, and select a target message server from the set of available message servers according to priority information of the message server; and the number of the first and second groups,
and the communication link establishing module is used for establishing a communication link between the target router and the remote control server according to the selected target message server so that the target router accesses the remote control server through the communication link.
A third aspect of the present application provides electronic devices comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to perform the method of the aspect of the present application.
A fourth aspect of the present application provides a computer readable medium having stored thereon computer readable instructions executable by a processor to perform the method of aspect of the present application.
Compared with the prior art, the communication link establishment method for the remote control router provided by the application provides a scheme for selecting the target message server from the available message server set to establish the communication link, upon receiving an access request for accessing a remote control server from a target router, by selecting a target message server from a set of available message servers based on priority information of the message server, and establishing a communication link between the target router and the remote control server according to the selected target message server, such that said target router accesses said remote control server via said communication link, thereby ensuring that said selected target message server has a high availability, and further, the problem that the router cannot carry out remote authentication due to the fact that a failed message server is used for communication is avoided.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a system framework diagram provided by embodiments of the present application;
FIG. 2 is a flow chart of communication link establishment methods for a remote control router as provided by embodiments of the present application;
FIG. 3 is a schematic diagram of communication link establishing means for a remote control router, as provided by embodiments of the present application;
FIG. 4 shows a schematic diagram of electronic devices provided by embodiments of the present application;
FIG. 5 shows a schematic diagram of computer media as provided by embodiments of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
Additionally, the terms "," "second," and the like, are used to distinguish one object from another, and not to describe a particular order.
For ease of understanding, a system framework diagram according to an embodiment of the present application will be briefly described as follows:
in the prior art, a router and a remote control server communicate with each other through a fixed message server, so that when the message server fails, the problem that the router cannot perform remote authentication is caused, and the network connection efficiency is affected.
Please refer to fig. 1, which shows system framework diagrams provided by embodiments of the present application, as shown in the diagram, in the embodiment of the present application, a message server cluster is used to implement communication between a router and a remote control server, a routing server is additionally provided to establish a communication link, and optionally, a distributed coordination service (Zookeeper, ZK for short) system may be further added to store and manage related information.
Specifically, when a router needs to perform remote authentication, an access request may be sent to a routing server, the routing server selects a message server with higher availability from the message server cluster, and allocates the message server to the router, a communication link between the target router and the remote control server is established according to the selected target message server, so that the target router accesses the remote control server through the communication link, and the selected message server with high availability performs forwarding of messages between the remote control server and the router, thereby avoiding a problem that the router cannot perform remote authentication due to communication using a failed message server.
It should be noted that the above description of the system framework is only an exemplary description to help those skilled in the art understand the solution of the present application, and the following description of the embodiment of the communication link establishment method for a remote control router can be understood with reference to fig. 1 and the above description, but the above description does not represent any limitation.
The routing server, the message server, the remote control server, the distributed coordination service system, and the like, referred to in fig. 1, may also adopt other names in practical application, and may specifically adopt an entity server to implement the names, and may also adopt a virtual server to implement the names (for example, through software), and those skilled in the art may determine the names to be the same or equivalent concepts according to the functions and functions implemented by the names, and the embodiments of the present application are not described in detail in again.
Referring to fig. 2, which shows a flowchart of communication link establishment methods for a remote control router provided in embodiments of the present application, as shown in fig. 2, the communication link establishment method for a remote control router, for a routing server, may include the following steps:
step S101: and receiving an access request sent by the target router for accessing the remote control server.
In this embodiment of the present application, when a target router needs to access a remote control server, the target router may send the access request to the routing server, so as to trigger the routing server to allocate a message server with high availability to the target router.
Step S102: in response to the access request, a target message server is selected from the set of available message servers according to the priority information of the message server.
In the embodiment of the application, the message server with high availability can be selected according to the priority information of the message server.
The priority information may be determined according to information that can represent the available status of the message server, such as load information of the message server.
For example, in , before selecting the target message server from the set of available message servers according to the priority information of the message server, the method may further include:
acquiring load information of each message server in the available message server set;
determining priority information of each message server according to the load information;
the selecting a target message server from the set of available message servers according to the priority information of the message server may include:
and selecting a target message server in the available message server set according to the priority information in the order from high priority to low priority.
Through the embodiment, the priority information of the message servers can be determined according to the load condition of the message servers, and then the target message servers are selected according to the sequence of the priorities from high to low, so that the selected target message servers have high availability, and the problem that the router cannot perform remote authentication due to communication by using a failed message server can be effectively solved.
In , the load information may include at least items of current connection number, CPU usage, memory usage, input output throughput.
Wherein the current connection number refers to the number of routers to which the message server is currently connected.
The above-mentioned multiple items of load information can reflect the current availability of the message server from different aspects, and it is easy to understand that the greater the load of the message server, the worse its availability.
In addition to the above-described embodiments, in modifications, the load information includes a plurality of items;
the determining the priority information of each message server according to the load information may include:
for each message server, carrying out weighted calculation on a plurality of items of load information of the message server to obtain a load index of the message server;
and determining the priority information of each message server according to the inverse relation between the load index and the priority.
For example, the load information includes a current connection number, a CPU utilization rate, a memory utilization rate, and an input/output throughput IO, and then the load index may be calculated according to the following formula:
the load index is the current connection number a + CPU utilization b + memory utilization c + input/output throughput IO d.
The above a, b, c, and d are weights of each item of load information, and those skilled in the art can flexibly set and adjust the weights according to actual requirements, and the embodiments of the present application are not limited.
According to the embodiment, the load index can be determined in a weighting mode according to a plurality of items of load information, and the priority information of each message server is determined according to the inverse proportion relation, so that the available condition of the message servers can be more comprehensively and accurately reflected by the priority information, therefore, a target message server selected based on the priority information has higher availability, and the problem that the router cannot perform remote authentication due to communication by using a failed message server can be more effectively avoided.
In modifications of the embodiment of the present application, a distributed coordination service system may be introduced to store and manage related information, and after determining priority information of each message server according to the load information, the method may further include:
storing the priority information of each message server to a distributed coordination service system;
the selecting a target message server from the set of available message servers according to the priority information may include:
selecting a target message server in the set of available message servers according to the priority information read from the distributed coordination service system.
Through the embodiment, the priority information can be stored and managed by using the distributed coordination service system, higher storage, query and management efficiency is achieved, the selection speed of the target message server is favorably improved, the establishment efficiency of the communication link is further improved, and the network access speed is improved.
In addition to the above embodiments, in modified embodiments, after storing the priority information of each message server in the distributed coordination service system, the method further includes:
and periodically updating the priority information of each message server stored in the distributed coordination service system according to a preset updating period.
The update period may be flexibly set according to actual requirements, for example, 1 minute, 5 minutes, 10 minutes, and the like, and the embodiment of the present application is not limited.
The method for updating the priority information may be that load information of each message server in the available message server set is periodically acquired according to the update period, priority information of each message server is determined according to the load information, and then the latest priority information is stored in the distributed coordination service system, so as to update the priority information.
By the embodiment, the corresponding priority information can be updated in time according to the actual availability of the message server, the problems of low availability and the like of the selected target message server caused by the variation of the availability of the message server are avoided, so that the target message server with high availability is more effectively selected, and the problem that the router cannot perform remote authentication caused by communication by using a failed message server is further avoided .
Step S103: and establishing a communication link between the target router and the remote control server according to the selected target message server so that the target router accesses the remote control server through the communication link.
In this step, information such as an IP address, an MAC address, and a port of the target message server may be sent to the target router, so that the target router may directly access the target message server according to the information, and access to the remote control server may be achieved through the target message server.
Compared with the prior art, the communication link establishment method for the remote control router provided by the embodiment of the application provides a scheme for selecting the target message server from the available message server set to establish the communication link, upon receiving an access request for accessing a remote control server from a target router, by selecting a target message server from a set of available message servers based on priority information of the message server, and establishing a communication link between the target router and the remote control server according to the selected target message server, such that said target router accesses said remote control server via said communication link, thereby ensuring that said selected target message server has a high availability, and further, the problem that the router cannot carry out remote authentication due to the fact that a failed message server is used for communication is avoided.
In modified embodiments of the embodiment of the present application, before the selecting a target message server from the set of available message servers according to the priority information of the message server, the method may further include:
determining a currently available message server from a message server cluster through a heartbeat detection mechanism;
and determining an available message server set according to the currently available message servers.
Through the embodiment, an available message server set (equivalent to times of screening) can be determined from the message server cluster according to the heartbeat detection mechanism, and then a target message server with high availability (equivalent to second screening) is selected based on the available message server set.
Based on the foregoing embodiment, in , in some variations, the determining, by the heartbeat detection mechanism, a currently available message server from a message server cluster may include:
performing heartbeat detection on each message server in the message server cluster to obtain available state information of each message server;
updating the equipment information of each message server stored in the distributed coordination service system according to the available state information;
determining currently available message servers from the distributed coordination service system.
Through the embodiment, the device information such as the available state information and the like can be stored and managed by using the distributed coordination service system, higher storage, query and management efficiency is achieved, the selection speed of the target message server is favorably improved, the establishment efficiency of the communication link is further improved, and the network access speed is improved.
Based on any implementation manner described above, the message server may include a Mosquitto message server implemented based on MQTT (message queuing technical transport, internet of things message protocol) protocol.
For facilitating understanding of the communication link establishing method for the remote control router provided in the foregoing embodiment, the following description is given in conjunction with a specific embodiment, where the foregoing embodiment related to the communication link establishing method for the remote control router may be understood by referring to the following description of the specific embodiment, and the following exemplary description may also be understood by referring to any foregoing description related to the embodiment related to the communication link establishing method for the remote control router, and some contents are not described again.
According to the specific implementation manners of the embodiment of the application, the remote control server communicates with the router through an MQTT protocol to remotely control the router, such as authentication internet access, MosQuitto ( implementation manners of the MQTT protocol, which are used for communication between Internet of things equipment and a service end and types of message servers) used currently do not support distributed clustering, that is, the current MQTT service is single-point, and if the MQTT service (namely the message server) has a problem, the router fails to perform authentication internet access.
Specifically, the establishment of the communication link between the target router and the remote control server may be achieved by:
s201, when the Rc (i.e. the remote control server) is started, each node (how many nodes are deployed) of the Mosquitto cluster (i.e. the message server cluster) is subscribed, and initialization information such as an IP address, a port, and a domain name of the node (i.e. the message server) is sent to the routing server.
S202, the routing server registers initialization information of each node of the Mosquitto into Zk (namely, a distributed coordination service system).
S203, the Rc monitors the heartbeat of each node of the Mosquitto, sends a command every 1 minute to test whether the Mosquitto node is available, and informs the routing server that the Mosquitto node is offline if the Mosquitto node fails to return for 3 times continuously.
S204, the routing server monitors the node survival state (namely the available state information) obtained by Rc detection, and updates the node survival state information to Zk.
S205, the Rc acquires the state (i.e. load information, such as the number of connections, the cpu usage rate, the memory occupancy rate, the IO throughput, etc.) of each node to the routing server at regular time (e.g. every 5 minutes).
And S206, the routing server calculates and updates the load index of each node according to the state of each node every 1 minute (for example, a calculation formula is 70% load index + 70% cpu + 10% memory + 10% io 10%, wherein each weight can be dynamically adjusted), and updates the load index or priority information to Zk.
S207, when the router is started, the router server is accessed, the router server obtains available nodes, pieces of Mosquitto node information are returned to the router according to the load index or the priority information (the lower the load index is, the higher the priority is, and the higher the return probability is), and meanwhile, the node connection number is recorded and added by 1.
And S208, the router establishes connection with the returned Mosquitto node and starts communication.
S209, when the router is disconnected, the Rc informs the routing server, and the routing server records that the node connection number is reduced by 1.
It should be noted that, in the foregoing embodiment of the present application, the routing server may directly obtain the available state information, the load information, and the like from the message server cluster, or may indirectly obtain the available state information, the load information, and the like through the remote control server, which are all within the protection scope of the present application.
Through the implementation mode, the selected target message server can be ensured to have high availability, and the problem that the router cannot perform remote authentication due to the fact that a failed message server is used for communication is avoided.
In addition, the embodiment determines the available target message server according to the load information of the message server, so that the load control of each message server can be realized from to a certain extent, and the load of each message server is ensured to be controllable.
In the embodiments described above, communication link establishing methods for a remote control router are provided, and correspondingly communication link establishing devices for a remote control router are also provided, the communication link establishing devices for a remote control router provided in the embodiments of the present application can implement the communication link establishing methods for a remote control router described above, and the communication link establishing devices for a remote control router can be implemented by software, hardware or a combination of software and hardware.
As shown in fig. 3, the communication link establishing apparatus 10 for remotely controlling a router, which is used for a routing server, may include:
an access request receiving module 101, configured to receive an access request sent by a target router and used for accessing a remote control server;
an access request response module 102, configured to respond to the access request, select a target message server from the set of available message servers according to priority information of the message server; and the number of the first and second groups,
a communication link establishing module 103, configured to establish a communication link between the target router and the remote control server according to the selected target message server, so that the target router accesses the remote control server through the communication link.
In the modified embodiment, the device 10 may further include:
a load information obtaining module, configured to obtain load information of each message server in the available message server set;
the priority information determining module is used for determining the priority information of each message server according to the load information;
the access request response module 102 may include:
and the message server selection unit is used for selecting a target message server in the available message server set according to the priority information in the sequence from high priority to low priority.
In variations, the load information may include at least items of current connection number, CPU usage, memory usage, input output throughput.
In variations, the load information may include a plurality of items;
the priority information determination module may include:
the load index calculation unit is used for carrying out weighted calculation on the plurality of items of load information of each message server to obtain the load index of the message server;
and the priority determining unit is used for determining the priority information of each message server according to the inverse relation between the load index and the priority.
In the modified embodiment, the device 10 may further include:
the priority information storage module is used for storing the priority information of each message server to a distributed coordination service system;
the message server selecting unit may include:
and the priority information reading subunit is used for selecting a target message server from the available message server set according to the priority information read from the distributed coordination service system.
In the modified embodiment, the device 10 may further include:
and the priority information updating module is used for periodically updating the priority information of each message server stored in the distributed coordination service system according to a preset updating period.
In the modified embodiment, the device 10 may further include:
the available server determining module is used for determining the current available message server from the message server cluster through a heartbeat detection mechanism;
and the available server set determining module is used for determining an available message server set according to the currently available message server.
In , the available server determination module may include:
a heartbeat detection unit, configured to perform heartbeat detection on each message server in the message server cluster to obtain available state information of each message server;
an available state information updating unit, configured to update, according to the available state information, device information of each message server stored in the distributed coordination service system;
an available server determination unit, configured to determine a currently available message server from the distributed coordination service system.
In variations, the message server may comprise a Mosquitto message server.
The communication link establishing apparatus 10 for a remote control router provided in the embodiment of the present application has the same advantageous effects as the communication link establishing method for a remote control router provided in the foregoing embodiment of the present application with the same inventive concept.
The embodiment of the present application further provides electronic devices corresponding to the communication link establishment method for a remote control router provided in the foregoing embodiment, where the electronic devices may be servers, including independent servers or server clusters, and the servers may be physical servers or virtual servers, which may both be used to execute the communication link establishment method for a remote control router, and this embodiment of the present application is not limited in this embodiment.
Referring to fig. 4, a schematic diagram of electronic devices provided in embodiments of the present application is shown, as shown in fig. 4, the electronic device 20 includes a processor 200, a memory 201, a bus 202 and a communication interface 203, the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202, a computer program operable on the processor 200 is stored in the memory 201, and the processor 200 executes the computer program to execute the communication link establishment method for a remote control router provided in any embodiment of the present application.
The Memory 201 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least disk memories, and the communication connection between the network element of the system and at least other network elements is realized through at least communication interfaces 203 (which may be wired or wireless), and the internet, domain network, local network, metropolitan area network, and the like may be used.
The bus 202 may be an ISA bus, a PCI bus, an EISA bus, etc., which may be divided into an address bus, a data bus, a control bus, etc., wherein the memory 201 is used for storing a program, and the processor 200 executes the program after receiving an execution instruction, and the communication link establishment method for a remote control router disclosed in any embodiments of the present application may be applied to the processor 200, or may be implemented by the processor 200.
The Processor 200 may be an type integrated circuit chip having signal Processing capability, and in the implementation process, the steps of the method may be implemented by instructions in the form of hardware integrated logic or software in the Processor 200, the Processor 200 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), etc., a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable array (FPGA) or other programmable logic device, discrete or transistor logic, discrete hardware components, and the methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed.
The electronic device provided by the embodiment of the application and the method for establishing the communication link for the remote control router provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the electronic device.
The present embodiment further provides computer-readable media corresponding to the communication link establishment method for a remote control router provided in the foregoing embodiment, please refer to fig. 5, which shows a computer-readable storage medium, which is an optical disc 30, and on which a computer program (i.e., a program product) is stored, where the computer program is executed by a processor to execute the communication link establishment method for a remote control router provided in any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail in herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the communication link establishment method for the remote control router provided by the embodiment of the present application have the same beneficial effects as the method adopted, executed or implemented by the application program stored in the computer-readable storage medium.
It should also be noted that in some alternative implementations, each block of the flowchart and/or block diagram illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units into logical functional divisions may be realized in other ways, and for example, multiple units or components may be combined or integrated into another systems, or features may be omitted or not executed, and at the other point, the shown or discussed coupling or direct coupling or communication connection between each other may be through communication interfaces, indirect coupling or communication connection between the units or devices may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in places, or may also be distributed on multiple network units.
In addition, functional units in the embodiments of the present application may be integrated into processing units, or each unit may exist alone physically, or two or more units are integrated into units.
Based on the understanding, the technical solution of the present application, which is essentially or partially contributed to by the prior art, or the technical solution may be embodied in the form of a software product, which is stored in storage media and includes instructions for causing computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the methods described in the embodiments of the present application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure, and the present disclosure should be construed as being covered by the claims and the specification.

Claims (12)

1, A communication link establishment method for a remote control router, for a route server, comprising:
receiving an access request sent by a target router and used for accessing a remote control server;
in response to the access request, selecting a target message server from the set of available message servers according to the priority information of the message server; and the number of the first and second groups,
and establishing a communication link between the target router and the remote control server according to the selected target message server so that the target router accesses the remote control server through the communication link.
2. The method of claim 1, wherein prior to selecting the target message server from the set of available message servers based on the priority information of the message server, further comprising:
acquiring load information of each message server in the available message server set;
determining priority information of each message server according to the load information;
the selecting a target message server from the set of available message servers according to the priority information of the message servers includes:
and selecting a target message server in the available message server set according to the priority information in the order from high priority to low priority.
3. The method of claim 2, wherein the load information comprises at least items of current connection number, CPU usage, memory usage, and input/output throughput.
4. The method of claim 2, wherein the load information comprises a plurality of items;
the determining the priority information of each message server according to the load information includes:
for each message server, carrying out weighted calculation on a plurality of items of load information of the message server to obtain a load index of the message server;
and determining the priority information of each message server according to the inverse relation between the load index and the priority.
5. The method of claim 2, wherein after determining the priority information of each message server according to the load information, further comprising:
storing the priority information of each message server to a distributed coordination service system;
selecting a target message server in the set of available message servers according to the priority information, comprising:
selecting a target message server in the set of available message servers according to the priority information read from the distributed coordination service system.
6. The method of claim 5, wherein after storing the priority information of each message server in the distributed coordination service system, further comprising:
and periodically updating the priority information of each message server stored in the distributed coordination service system according to a preset updating period.
7. The method of claim 1, wherein prior to selecting the target message server from the set of available message servers based on the priority information of the message server, further comprising:
determining a currently available message server from a message server cluster through a heartbeat detection mechanism;
and determining an available message server set according to the currently available message servers.
8. The method of claim 7, wherein determining a currently available message server from a cluster of message servers via a heartbeat detection mechanism comprises:
performing heartbeat detection on each message server in the message server cluster to obtain available state information of each message server;
updating the equipment information of each message server stored in the distributed coordination service system according to the available state information;
determining currently available message servers from the distributed coordination service system.
9. The method of any , wherein the message server comprises a Mosquitto message server.
10, A communication link establishing apparatus for remotely controlling a router, for a route server, comprising:
the access request receiving module is used for receiving an access request which is sent by the target router and used for accessing the remote control server;
an access request response module, configured to respond to the access request, and select a target message server from the set of available message servers according to priority information of the message server; and the number of the first and second groups,
and the communication link establishing module is used for establishing a communication link between the target router and the remote control server according to the selected target message server so that the target router accesses the remote control server through the communication link.
11, electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to implement the method as claimed in any of claims 1 to 9 and .
12, computer readable media having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the method of any of claims 1 to 9 and .
CN201910818501.3A 2019-08-30 2019-08-30 Communication link establishing method, device, electronic equipment and medium Active CN110740162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910818501.3A CN110740162B (en) 2019-08-30 2019-08-30 Communication link establishing method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818501.3A CN110740162B (en) 2019-08-30 2019-08-30 Communication link establishing method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110740162A true CN110740162A (en) 2020-01-31
CN110740162B CN110740162B (en) 2022-12-02

Family

ID=69268066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818501.3A Active CN110740162B (en) 2019-08-30 2019-08-30 Communication link establishing method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110740162B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510472A (en) * 2020-03-11 2020-08-07 苏州浪潮智能科技有限公司 Client cluster management method, system, terminal and storage medium
CN112235417A (en) * 2020-11-09 2021-01-15 北京百度网讯科技有限公司 Method and device for sending debugging instruction
CN113778504A (en) * 2021-02-26 2021-12-10 西安京迅递供应链科技有限公司 Publishing method, publishing system and routing device
CN114124970A (en) * 2021-11-29 2022-03-01 深圳腾视科技有限公司 Terminal communication coordination service system and method
CN114338499A (en) * 2021-12-29 2022-04-12 中国电信股份有限公司 Data transmission method, device thereof and electronic equipment
CN114338690A (en) * 2021-12-30 2022-04-12 中国电信股份有限公司 Server selection method and device and electronic equipment
CN114390594A (en) * 2021-12-26 2022-04-22 西北工业大学 Improved AODV routing protocol based on load balancing
CN114760360A (en) * 2020-12-29 2022-07-15 网神信息技术(北京)股份有限公司 Request response method and device, electronic equipment and computer readable storage medium
CN114978942A (en) * 2022-05-13 2022-08-30 深信服科技股份有限公司 Router detection method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302565A (en) * 2015-05-12 2017-01-04 浙江格林蓝德信息技术有限公司 The dispatching method of service server and system
CN106657287A (en) * 2016-11-30 2017-05-10 广州市千钧网络科技有限公司 Data access method and system
CN107547563A (en) * 2017-09-25 2018-01-05 新华三信息安全技术有限公司 A kind of authentication method and device
US20180159920A1 (en) * 2016-12-07 2018-06-07 Alibaba Group Holding Limited Server load balancing method, apparatus, and server device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302565A (en) * 2015-05-12 2017-01-04 浙江格林蓝德信息技术有限公司 The dispatching method of service server and system
CN106657287A (en) * 2016-11-30 2017-05-10 广州市千钧网络科技有限公司 Data access method and system
US20180159920A1 (en) * 2016-12-07 2018-06-07 Alibaba Group Holding Limited Server load balancing method, apparatus, and server device
CN107547563A (en) * 2017-09-25 2018-01-05 新华三信息安全技术有限公司 A kind of authentication method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
翟雅荣: "基于容器的分布式融合通信服务器的设计与实现", 《中国优秀硕士论文全文数据库信息科技辑》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510472A (en) * 2020-03-11 2020-08-07 苏州浪潮智能科技有限公司 Client cluster management method, system, terminal and storage medium
CN112235417A (en) * 2020-11-09 2021-01-15 北京百度网讯科技有限公司 Method and device for sending debugging instruction
US11860749B2 (en) 2020-11-09 2024-01-02 Beijing Baidu Netcom Science and Technology Co., Ltd Method and apparatus for sending debugging instruction
CN114760360A (en) * 2020-12-29 2022-07-15 网神信息技术(北京)股份有限公司 Request response method and device, electronic equipment and computer readable storage medium
CN114760360B (en) * 2020-12-29 2023-12-22 奇安信网神信息技术(北京)股份有限公司 Request response method, request response device, electronic equipment and computer readable storage medium
CN113778504A (en) * 2021-02-26 2021-12-10 西安京迅递供应链科技有限公司 Publishing method, publishing system and routing device
CN113778504B (en) * 2021-02-26 2024-05-17 西安京迅递供应链科技有限公司 Publishing method, publishing system and routing device
CN114124970A (en) * 2021-11-29 2022-03-01 深圳腾视科技有限公司 Terminal communication coordination service system and method
CN114124970B (en) * 2021-11-29 2024-09-10 深圳腾视科技有限公司 Terminal communication coordination service system and method
CN114390594A (en) * 2021-12-26 2022-04-22 西北工业大学 Improved AODV routing protocol based on load balancing
CN114338499B (en) * 2021-12-29 2024-05-14 中国电信股份有限公司 Data transmission method, device and electronic equipment
CN114338499A (en) * 2021-12-29 2022-04-12 中国电信股份有限公司 Data transmission method, device thereof and electronic equipment
CN114338690A (en) * 2021-12-30 2022-04-12 中国电信股份有限公司 Server selection method and device and electronic equipment
CN114978942A (en) * 2022-05-13 2022-08-30 深信服科技股份有限公司 Router detection method and device, electronic equipment and storage medium
CN114978942B (en) * 2022-05-13 2024-05-24 深信服科技股份有限公司 Router detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110740162B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN110740162B (en) Communication link establishing method, device, electronic equipment and medium
CN112087312B (en) Method, device and equipment for providing edge service
CN107078969B (en) Realize computer equipment, the system and method for load balancing
CN110365748B (en) Service data processing method and device, storage medium and electronic device
US20200195511A1 (en) Network management method and related device
CN109547286B (en) CDN node selection method, device and storage medium
CN113783922A (en) Load balancing method, system and device
CN109510878B (en) Long connection session keeping method and device
CN111212134A (en) Request message processing method and device, edge computing system and electronic equipment
US20180270291A1 (en) Adaptive communication control device
CN102137014A (en) Resource management method, system and resource manager
EP3547102B1 (en) Object storage system with multi-level hashing function for storage address determination
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
CN107105013B (en) File processing method, server, terminal and system
CN107172214B (en) Service node discovery method and device with load balancing function
US10178033B2 (en) System and method for efficient traffic shaping and quota enforcement in a cluster environment
CN113014611B (en) Load balancing method and related equipment
CN105430028B (en) Service calling method, providing method and node
CN107667513B (en) System and method for remote network topology discovery
CN114911602A (en) Load balancing method, device, equipment and storage medium for server cluster
CN108111431B (en) Service data sending method, device, computing equipment and computer readable storage medium
CN114048028A (en) Service calling method and device, storage medium and electronic equipment
WO2018089339A1 (en) Method and system for affinity load balancing
CN109831385B (en) Message processing method and device and electronic equipment
US10963183B2 (en) Technologies for fine-grained completion tracking of memory buffer accesses

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
TA01 Transfer of patent application right

Effective date of registration: 20210419

Address after: 200131 Zone E, 9th floor, No.1 Lane 666, zhangheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Shanghai Shangxiang Network Technology Co.,Ltd.

Address before: 201306, N2025 building, 24 building, Xincheng Road, 2 mud town, Shanghai, Pudong New Area

Applicant before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant