CN110838991B - Gateway connection method, device, storage medium, electronic equipment and gateway equipment - Google Patents

Gateway connection method, device, storage medium, electronic equipment and gateway equipment Download PDF

Info

Publication number
CN110838991B
CN110838991B CN201911072159.3A CN201911072159A CN110838991B CN 110838991 B CN110838991 B CN 110838991B CN 201911072159 A CN201911072159 A CN 201911072159A CN 110838991 B CN110838991 B CN 110838991B
Authority
CN
China
Prior art keywords
gateway
terminal
information
detection information
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911072159.3A
Other languages
Chinese (zh)
Other versions
CN110838991A (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.)
Cloudminds Robotics Co Ltd
Original Assignee
Cloudminds Shanghai Robotics 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 Cloudminds Shanghai Robotics Co Ltd filed Critical Cloudminds Shanghai Robotics Co Ltd
Priority to CN201911072159.3A priority Critical patent/CN110838991B/en
Publication of CN110838991A publication Critical patent/CN110838991A/en
Application granted granted Critical
Publication of CN110838991B publication Critical patent/CN110838991B/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
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • H04L12/56Packet switching systems
    • H04L12/5691Access to open networks; Ingress point selection, e.g. ISP selection
    • H04L12/5692Selection among different networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a gateway connection method, a gateway connection device, a storage medium, electronic equipment and gateway equipment. The method is applied to gateway scheduling equipment and comprises the following steps: receiving gateway condition information sent by each gateway connected with gateway scheduling equipment; receiving gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by a terminal; and if the second gateway which is better than the first gateway to which the terminal is connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information, sending the redirection information to the second gateway to the first gateway. Through the scheme, the terminal can be switched to the second gateway which is better than the first gateway, so that the service quality of the terminal accessing to the network is ensured, the data access efficiency of the terminal is improved, and the reliability and stability of data transmission are improved.

Description

Gateway connection method, device, storage medium, electronic equipment and gateway equipment
Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a gateway connection method, a device, a storage medium, electronic equipment and gateway equipment.
Background
The gateway is also called gateway connector and protocol converter. The terminal needs to access the network through the gateway, so that operations such as data access and data transmission are performed.
Currently, the manner in which a terminal selects a gateway is mainly based on a local DNS (Domain Name System, domain name system protocol) server. When a terminal requests access to a network, the DNS server may assign a gateway to the terminal according to the IP address of the terminal, and the terminal accesses the network through the gateway. However, if the DNS server fails To connect due To downtime of the gateway allocated To the terminal, when the terminal needs To switch To another gateway, the TTL (Time-To-Live) of the local DNS server needs To be expired, and then the domain name resolution operation can be triggered again To allocate a new gateway To the terminal. The TTL of the DNS server is the residence time of a domain name resolution record in the DNS server, and the TTL timeout time of the DNS server is generally uncontrollable or longer, so that the time for the terminal to switch the gateway is longer.
Therefore, if the terminal selects a worse, farther and heavier gateway, the network quality accessed by the terminal is reduced, the data access and data transmission efficiency are affected, and the terminal cannot be switched to other gateways in time.
Disclosure of Invention
The invention aims to provide a gateway connection method, a gateway connection device, a storage medium, electronic equipment and gateway equipment.
According to a first aspect of the present disclosure, there is provided a gateway connection method applied to a gateway scheduling apparatus, including:
receiving gateway condition information sent by each gateway connected with the gateway scheduling equipment;
receiving gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by a terminal;
and if the fact that a second gateway which is better than a first gateway to which the terminal is connected currently exists in the gateways which are reachable by the terminal is determined according to the gateway detection information and the gateway condition information, sending redirection information to the second gateway to the first gateway.
Optionally, the receiving gateway probe information includes:
receiving the gateway probe information from the first gateway; or alternatively
And receiving the gateway detection information from the terminal.
Optionally, the gateway condition information includes gateway load information and back-end network state information of a gateway;
the method further comprises the steps of:
and under the condition that the gateway load information of the first gateway represents that the first gateway is in an overload state currently, or the back-end network state information of the first gateway represents that the back-end network of the first gateway is in an abnormal state currently, determining whether a second gateway which is better than the first gateway to be connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information.
Optionally, before receiving the gateway probe information, the method further includes:
receiving a gateway list acquisition request sent by the terminal;
and sending the gateway list to the terminal in response to receiving the gateway list acquisition request.
According to a second aspect of the present disclosure, there is provided a gateway connection method, applied to a terminal, including:
detecting each gateway in the gateway list to obtain detection information;
determining a first gateway to be connected according to the detection information;
sending gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in the gateway list by the terminal, and the gateway detection information is used for determining whether a second gateway which is better than the first gateway exists in gateways which are reachable by the terminal according to the gateway detection information by gateway scheduling equipment;
and if the redirection information sent by the first gateway to the second gateway is received, sending a connection request to the second gateway.
Optionally, the sending gateway probe information includes:
transmitting the gateway probe information to the first gateway, so that the first gateway transmits the gateway probe information to the gateway scheduling equipment; or alternatively
And sending the gateway detection information to the gateway scheduling equipment.
Optionally, before probing each gateway in the gateway list, the method further comprises:
sending a gateway list acquisition request to the gateway scheduling equipment;
and receiving the gateway list sent by the gateway scheduling equipment.
According to a third aspect of the present disclosure, there is provided a gateway connection method, applied to a gateway, including:
responding to a detection instruction sent by a receiving terminal, and sending a detection response instruction to the terminal;
receiving gateway detection information sent by the terminal, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by the terminal;
the gateway detection information is sent to gateway scheduling equipment, and the gateway detection information is used for the gateway scheduling equipment to determine whether a gateway better than the gateway exists in the gateways reachable by the terminal according to the gateway detection information;
and if the redirection information sent by the gateway scheduling equipment to the better gateway is received, sending the redirection information to the terminal.
According to a fourth aspect of the present disclosure, there is provided an apparatus for gateway connection, applied to a gateway scheduling device, comprising:
The receiving module is used for receiving gateway condition information sent by each gateway connected with the gateway scheduling equipment;
the receiving module is further used for receiving gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in the gateway list by the terminal;
and the sending module is used for sending the redirection information to the second gateway to the first gateway if the second gateway which is better than the first gateway to which the terminal is connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information.
Optionally, the receiving module includes:
a first receiving sub-module, configured to receive the gateway probe information from the first gateway; or alternatively
And the second receiving sub-module is used for receiving the gateway detection information from the terminal.
Optionally, the apparatus further comprises:
and the more optimal gateway determining module is used for determining whether a second gateway which is more optimal than the first gateway to be connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information under the condition that the gateway load information of the first gateway represents that the first gateway is in an overload state currently or the back-end network state information of the first gateway represents that the back-end network of the first gateway is in an abnormal state currently.
Optionally, the receiving module is further configured to receive a gateway list acquisition request sent by the terminal before receiving gateway probe information;
the sending module is further configured to send the gateway list to the terminal in response to receiving the gateway list acquisition request.
According to a fifth aspect of the present disclosure, there is provided an apparatus for gateway connection, applied to a terminal, comprising:
the detection module is used for detecting each gateway in the gateway list to obtain detection information;
the gateway determining module is used for determining a first gateway to be connected according to the detection information;
the sending module is used for sending gateway detection information, the gateway detection information comprises detection information obtained by detecting each gateway in the gateway list by the terminal, and the gateway detection information is used for determining whether a second gateway which is better than the first gateway exists in the gateways which are reachable by the terminal according to the gateway detection information by gateway scheduling equipment;
the sending module is further configured to send a connection request to the second gateway if the redirection information sent by the first gateway to the second gateway is received.
Optionally, the sending module includes:
A first sending submodule, configured to send the gateway probe information to the first gateway, so that the first gateway sends the gateway probe information to the gateway scheduling device; or alternatively
And the second sending submodule is used for sending the gateway detection information to the gateway scheduling equipment.
Optionally, the sending module is further configured to send a gateway list obtaining request to the gateway scheduling device before detecting each gateway in the gateway list;
the device also comprises a receiving module, which is used for receiving the gateway list sent by the gateway scheduling equipment.
According to a sixth aspect of the present disclosure, there is provided an apparatus for gateway connection, applied to a gateway, comprising:
the sending module is used for responding to the detection instruction sent by the receiving terminal and sending a detection response instruction to the terminal;
the receiving module is used for receiving gateway detection information sent by the terminal, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by the terminal;
the sending module is further configured to send the gateway detection information to a gateway scheduling device, where the gateway detection information is used for the gateway scheduling device to determine whether a gateway that is better than the gateway exists in gateways that are reachable by the terminal according to the gateway detection information;
The sending module is further configured to send the redirection information to the terminal if the redirection information sent by the gateway scheduling device to the better gateway is received.
According to a seventh aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the method provided by the first aspect of the present disclosure.
According to an eighth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the method provided by the second aspect of the present disclosure.
According to a ninth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the method provided by the third aspect of the present disclosure.
According to a tenth aspect of the present disclosure, there is provided an electronic device comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method provided by the first aspect of the present disclosure.
According to an eleventh aspect of the present disclosure, there is provided an electronic device comprising:
A memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method provided by the second aspect of the present disclosure.
According to a twelfth aspect of the present disclosure, there is provided a gateway apparatus comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method provided by the third aspect of the present disclosure.
In the above technical solution, the terminal may detect each gateway in the gateway list to obtain gateway detection information, where the gateway detection information may be sent to the gateway scheduling device, and the gateway scheduling device performs comprehensive judgment according to the gateway detection information and the gateway status information. If the gateway scheduling apparatus determines that there is a second gateway that is better than a first gateway to which the terminal is currently connected in gateways that are reachable by the terminal, redirection information to the second gateway may be sent to the first gateway. Therefore, the terminal can be switched to the second gateway which is better than the first gateway, so that the service quality of the terminal accessing the network is ensured, the data access efficiency of the terminal is improved, and the reliability and stability of data transmission are improved.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
FIG. 1 is a schematic diagram of an implementation environment of a gateway connection method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a gateway connection method according to an example embodiment;
fig. 3 is a flow chart illustrating a gateway connection method according to another exemplary embodiment;
fig. 4 is a flow chart illustrating a gateway connection method according to another exemplary embodiment;
fig. 5 is an interaction diagram between a gateway scheduling apparatus, a terminal, and a gateway in a gateway connection method according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating an apparatus for gateway connection according to an example embodiment;
fig. 7 is a block diagram of an apparatus for gateway connection according to another example embodiment;
fig. 8 is a block diagram of an apparatus for gateway connection according to another example embodiment;
FIG. 9 is a block diagram of an electronic device, shown in accordance with an exemplary embodiment;
fig. 10 is a block diagram of an electronic device, shown according to another exemplary embodiment.
Detailed Description
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
Fig. 1 is a schematic diagram of an implementation environment of a gateway connection method according to an exemplary embodiment. As shown in fig. 1, the implementation environment may include a gateway scheduling apparatus 101, a terminal 102, and a plurality of gateways, such as gateway 1031, gateway 1032, and the like. Wherein the terminal 102 may be communicatively coupled to the gateway scheduling apparatus 101, each gateway being communicatively coupled to the gateway scheduling apparatus 101, such that the gateway scheduling apparatus 101 may monitor the status of each gateway; the terminal 102 may detect each gateway and may select one of the gateways to connect to access the network through the gateway for data access, data transmission, and the like. The information transmission can be performed between any two of the gateway scheduling apparatus 101, the terminal 102, and the gateway by a wired communication method or a wireless communication method. When information is transmitted in a wireless communication manner, for example, communication manners such as 3G, 4G, 5G, eMTC, LTE, LTE-A, NB-IOT, zigBee, near field communication and the like can be adopted.
In the present disclosure, the gateway scheduling apparatus 101 may be a controller, such as a gateway controller, a global scheduling load balancing system (GlobalScheduleLoadBalance, GSLB), or may be a server, such as a gateway management server, a cloud server, or the like. The terminal 102 may be a terminal device such as a robot, a smart helmet, a smart phone, a tablet computer, etc. Fig. 1 only gives an illustration that the terminal 102 is a robot, but does not constitute a limitation of the embodiments of the present disclosure. The plurality of gateways may be VPN (Virtual Private Network ) gateways distributed throughout the area, through which the terminal 102 may access the network and establish VPN encrypted tunnels, and through which data is transmitted, and may provide secure network connection services for the terminal 102.
Fig. 2 is a flowchart illustrating a gateway connection method according to an exemplary embodiment, which may be applied to a gateway scheduling apparatus, such as the gateway scheduling apparatus 101 shown in fig. 1. As shown in fig. 2, the method may include:
in S201, gateway condition information transmitted by each gateway connected to the gateway scheduling apparatus is received.
The gateway condition information may include gateway load information and back-end network state information of the gateway. The gateway load information may characterize the current load state of the gateway, e.g., whether it is currently in an overload state. The gateway load information may include, for example, information of a CPU load, a memory load, a network card input/output load, and the like of the gateway. In one embodiment, when any of the gateway load information exceeds its corresponding load threshold, it may be determined that the gateway is currently in an overload state. For example, when the CPU load of the gateway is greater than the first load threshold, or the memory load is greater than the second load threshold, or the network card input/output load is greater than the third load threshold, it may be determined that the gateway is currently in an overload state. In another embodiment, the comprehensive load information corresponding to the gateway may be determined according to each gateway load information, for example, according to the CPU load, the memory load and the network card input/output load of the gateway, and when the comprehensive load information is greater than a load threshold (for example, a fourth load threshold), it may be determined that the gateway is currently in an overload state. The implementation manner of determining the comprehensive load information corresponding to the gateway may be: and averaging the CPU load, the memory load and the network card input/output load of the gateway to be used as the comprehensive load information of the gateway, or carrying out weighted summation on the CPU load, the memory load and the network card input/output load of the gateway to be used as the comprehensive load information of the gateway.
The first, second, third, and fourth load thresholds may be pre-calibrated based on experimental data.
The back-end network state information of the gateway may characterize whether the back-end network of the gateway is currently in an abnormal state. The backend network refers to a gateway-to-router network, a gateway-to-server network, and the like. The server may be, for example, a gateway dispatcher device 101, a voice recognition server, an image recognition server, or the like. Examples of the backend network being in an abnormal state may be a congestion phenomenon, an interruption phenomenon, etc. of the gateway-to-server or to-router network.
In the present disclosure, each gateway connected to the gateway scheduling apparatus 101 needs to collect own gateway condition information and transmit the gateway condition information to the gateway scheduling apparatus 101. For example, the gateway may send its current gateway status information to the gateway scheduling apparatus 101 every a first preset time period, where the first preset time period may be, for example, 1min or 2min, etc. In this way, the gateway scheduling apparatus 101 can acquire the gateway status information of each gateway connected thereto in real time, so that gateway scheduling and management can be performed in time according to the gateway status information of each gateway.
In S202, gateway probe information is received.
The gateway probe information may include probe information obtained by the terminal probing each gateway in the gateway list. The gateway list may be stored in the terminal in advance by a technician before the terminal leaves the factory, or may be sent to the terminal 102 after the gateway scheduling apparatus 101 receives the gateway list acquisition request sent by the terminal 102. The gateway list may store gateway addresses corresponding to a plurality of gateways, and the terminal may detect the corresponding gateway based on each gateway address, so as to obtain detection information for the gateway. The terminal may probe the gateway with a PING (Packet Internet Groper, internet packet explorer) command, for example, to obtain probe information.
In the present disclosure, the probe information may include reachability, one or more of the following: delay, jitter, packet loss rate, etc. The reachability indicates whether the network from the terminal 102 to the gateway is capable of being connected, and if the network from the terminal 102 to the gateway is capable of being connected, the network from the terminal 102 to the gateway is capable of being connected; if the terminal 102 is not reachable to the gateway, it means that the terminal 102 is not reachable to the gateway. The time delay represents the length of time required for data to be transmitted from the terminal 102 to the gateway, and the shorter the time delay, the higher the data transmission rate. Jitter expresses the degree of variation in the delay of a data packet, the smaller the jitter is, the more stable the network between the terminal 102 and the gateway is. The packet loss rate refers to the ratio of the number of lost data packets to the number of transmitted data packets in the data transmission process, and the lower the packet loss rate is, the more the integrity of data transmission can be ensured.
In one embodiment, the terminal 102 may send the gateway probe information directly to the gateway scheduling apparatus 101, i.e. the gateway scheduling apparatus 101 may receive the gateway probe information from the terminal 102.
In another embodiment, the terminal 102 may determine the first gateway to be connected according to the probe information, and send the gateway probe information to the first gateway, and the first gateway sends the gateway probe information to the gateway scheduling apparatus 101, that is, the gateway scheduling apparatus 101 may receive the gateway probe information from the first gateway. In this embodiment, the first gateway forwards the gateway probe information to the gateway scheduling apparatus 101, so that on one hand, the service provided by the gateway scheduling apparatus 101 to the outside is reduced, the probability that the gateway scheduling apparatus 101 is attacked and the transmitted data is tampered is reduced, the security of the gateway scheduling apparatus 101 and the data transmission is ensured, and on the other hand, the number of gateways is smaller than that of the terminals 102, and the gateway can package the data of a plurality of terminal apparatuses into a data packet for transmission, thereby reducing the pressure of the gateway scheduling apparatus 101 for receiving the data.
It should be noted that the execution sequence of S201 and S202 may be: the execution of S201 and then S202 may be performed first, or the execution of S202 and then S201 may be performed first, or the two may be performed simultaneously. Fig. 2 shows only an example of executing S201 first and then S202, but does not constitute a limitation of the present disclosure.
In S203, if it is determined that there is a second gateway that is better than the first gateway to which the terminal is currently connected in the gateways reachable by the terminal based on the gateway probe information and the gateway status information, redirection information to the second gateway is transmitted to the first gateway.
The gateway scheduling apparatus 101 may perform comprehensive judgment according to the gateway detection information and the gateway status information, so as to determine whether a gateway better than the first gateway exists.
In one embodiment, if the gateway load information of the first gateway indicates that the first gateway is not currently in an overload state, and the back-end network state information of the first gateway indicates that the back-end network of the first gateway is currently in a normal state, the gateway scheduling apparatus 101 may send acknowledgement information to the first gateway. The first gateway may send the acknowledgement information to the terminal 102 after receiving the acknowledgement information. In this way, the terminal 102 can confirm that gateway switching is not required according to the confirmation information, and send a connection request to the first gateway to access the network through the first gateway.
In another embodiment, for example, in a case where the gateway load information of the first gateway characterizes that the first gateway is currently in an overload state, for example, the integrated load information corresponding to the first gateway is greater than the fourth load threshold, the gateway scheduling apparatus 101 may determine, in the gateways reachable by the terminal 102, whether there is a gateway whose integrated load information is smaller than the integrated load information corresponding to the first gateway, and if there is a gateway whose integrated load information is smaller than the integrated load information corresponding to the first gateway, indicate that there is a second gateway that is better than the first gateway. Alternatively, the second gateway may be the gateway with the smallest current integrated load information among gateways reachable by the terminal 102. As another example, if the gateway load information of the first gateway indicates that the first gateway is not currently in an overload state, but the back-end network state information of the first gateway indicates that the back-end network of the first gateway is currently in an abnormal state, for example, an interruption phenomenon occurs from the first gateway to the voice recognition server, the gateway scheduling device 101 may determine, in the gateways reachable by the terminal 102, whether there is a gateway whose back-end network is currently in a normal state, and if there is a gateway whose back-end network is in a normal state, it indicates that there is a second gateway better than the first gateway.
If the gateway scheduling apparatus 101 determines that the second gateway is more optimal than the first gateway, the redirection information to the second gateway may be sent to the first gateway. The first gateway may send the redirection information to the terminal 102 after receiving the redirection information. In this way, the terminal 102 may learn that the second gateway is better according to the redirection information, and send a connection request to the second gateway to access the network through the second gateway. In this manner, the terminal 102 may switch to a second gateway that is better than the first gateway to ensure the efficiency and reliability of data transmission in the network.
In the above technical solution, the terminal may detect each gateway in the gateway list to obtain gateway detection information, where the gateway detection information may be sent to the gateway scheduling device, and the gateway scheduling device performs comprehensive judgment according to the gateway detection information and the gateway status information. If the gateway scheduling apparatus determines that there is a second gateway that is better than a first gateway to which the terminal is currently connected in gateways that are reachable by the terminal, redirection information to the second gateway may be sent to the first gateway. Therefore, the terminal can be switched to the second gateway which is better than the first gateway, so that the service quality of the terminal accessing the network is ensured, the data access efficiency of the terminal is improved, and the reliability and stability of data transmission are improved.
Fig. 3 is a flowchart illustrating a gateway connection method according to another exemplary embodiment, which is applicable to a terminal, such as terminal 102 in fig. 1. As shown in fig. 3, the method may include:
in S301, each gateway in the gateway list is probed to obtain probing information.
For example, the terminal 102 may send a probe instruction, such as a PING command, to each gateway in the gateway list, and the gateway may send a probe response instruction to the terminal 102 after receiving the probe instruction. Then, the terminal 102 may obtain, according to the probe response instruction sent by each gateway, probe information corresponding to each gateway, where the probe information includes, for example, reachability, one or more of delay, jitter, and packet loss rate.
In S302, a first gateway to be connected is determined according to the probe information.
For example, the endpoint 102 may rank the gateways in the gateway list according to the probe information to obtain gateway ranking information, which may characterize the order of merit for the respective gateways, from which the endpoint 102 may determine the first gateway to connect.
For example, if the probe information includes reachability and delay, the terminal 102 may sequentially determine, from short to long, a ranking condition of each gateway in the reachable gateways according to the delay, and determine the gateway with the shortest delay as the gateway with the highest ranking in the gateway ranking information. Or if the probe information includes reachability and jitter, the terminal 102 may determine, in the reachable gateways, the ordering condition of each gateway sequentially from small to large according to the jitter, and determine the gateway with the smallest jitter as the gateway with the highest ordering in the gateway ranking information. Or if the probe information includes reachability and packet loss rate, the terminal 102 may sequentially determine, from low to high, the ordering condition of each gateway in the reachable gateways according to the packet loss rate, and determine the gateway with the lowest packet loss rate as the gateway with the highest ordering in the gateway ranking information. .
As another example, when the probe information includes reachability and includes multiple of delay, jitter, and packet loss rate, the terminal 102 may perform weighted summation on multiple of delay, jitter, and packet loss rate corresponding to each gateway among reachable gateways, sequentially determine ordering conditions of each gateway from small to large according to the weighted summation result, and determine a gateway with the smallest weighted summation result as a gateway with the highest ordering in the gateway ordering information. For example, if the probe information includes reachability, delay and packet loss rate, the terminal 102 may determine, in the reachable gateways, the ordering condition of each gateway according to the weighted summation result of the delay and the packet loss rate corresponding to each gateway. Wherein, the weights occupied by the time delay and the packet loss rate are equal or unequal. When the two weights are not equal, the respective weights can be determined according to the type of data transmitted. For example, if important data needs to be transmitted, and integrity of data transmission needs to be ensured, the weight corresponding to the packet loss rate can be set relatively large. If the instant chat message needs to be transmitted, and more consideration is given to the efficiency and speed of message transmission, the weight corresponding to the delay can be set relatively larger. Thus, the respective weighted values are set according to the type of the transmitted message, which is more in accordance with the type of the transmitted message and more targeted. For another example, if the probe information includes reachability, delay, jitter, and packet loss rate, the terminal 102 may determine, in the reachable gateways, a ranking condition of each gateway according to a weighted sum result of the delay, jitter, and packet loss rate corresponding to each gateway. And, the weights occupied by the delay, the jitter and the packet loss rate may be equal or unequal, which is not limited in the disclosure. For example, the gateway list includes N gateways, where N is a positive integer, and the gateway ranking information may be gateway 1 and gateway 2 … gateway N from front to back.
In one embodiment, if a connection-oriented communication protocol is adopted between the terminal 102 and the gateway for information transmission, for example, using TCP (Transmission Control Protocol ) as an example, the terminal 102 may determine, as the first gateway, the gateway that is the top-ranked gateway ranking information and can establish a TCP connection. For example, gateway 1 is the top ranked gateway, and if the TCP connection between terminal 102 and gateway 1 is established successfully, gateway 1 may be determined to be the first gateway to be connected. The process of establishing the TCP connection may refer to related art in the art, and will not be described herein. If the TCP connection between the terminal 102 and the gateway 1 fails to be established, other gateways can be sequentially selected according to the ranking information of the gateways until the TCP connection is successfully established. For example, after the terminal 102 fails to establish a TCP connection with the gateway 1, it may choose to establish a TCP connection with the gateway 2, and after the TCP connection with the gateway 2 is established successfully, it may determine the gateway 2 as the first gateway to be connected. In this embodiment, the gateway probe information may further include TCP connection establishment result information, for example, TCP connection establishment failure between the terminal 102 and the gateway 1, and the gateway scheduling apparatus 101 may not determine the gateway 1 as a more optimal gateway when determining whether there is a more optimal gateway according to the gateway probe information and the gateway status information.
In another embodiment, if the terminal 102 and the gateway use a connectionless-oriented communication protocol for information transmission, such as UDP (User Datagram Protocal, user datagram protocol), the terminal 102 may determine the gateway that is the top-ranked gateway in the gateway ranking information as the first gateway to be connected, such as determining the gateway 1 as the first gateway to be connected.
In S303, gateway probe information is transmitted.
Alternatively, the terminal 102 may send the gateway probe information directly to the gateway scheduling apparatus 101. Alternatively, the terminal 102 may send the gateway probe information to the first gateway to send the gateway probe information by the first gateway to the gateway scheduling apparatus 101.
The gateway probe information includes probe information obtained by the terminal probing each gateway in the gateway list, and may further include the gateway ranking information described above, which may be used by the gateway scheduling apparatus 101 to determine whether there is a second gateway that is better than the first gateway in the gateways reachable by the terminal 102 according to the probe information. In the present disclosure, the gateway scheduling apparatus 101 may receive gateway status information transmitted from each gateway connected thereto and determine whether there is a second gateway better than the first gateway according to the gateway probe information and the gateway status information.
In S304, if the redirection information sent by the first gateway to the second gateway is received, a connection request is sent to the second gateway.
If the terminal 102 receives the redirection information sent by the first gateway to the second gateway, that is, indicates that the gateway scheduling apparatus 101 determines that there is a second gateway that is better than the first gateway, the terminal 102 may send a connection request to the second gateway to access the network through the second gateway.
Through the technical scheme, the terminal can be switched to the second gateway which is better than the first gateway, so that the service quality of the terminal accessing to the network is ensured, the data access efficiency of the terminal is improved, and the reliability and stability of data transmission are improved.
Fig. 4 is a flow chart illustrating a gateway connection method according to another exemplary embodiment, which is applicable to a gateway, such as gateway 1031 and gateway 1032 in fig. 1. As shown in fig. 4, the method may include:
in S401, in response to receiving the probe instruction sent by the terminal, a probe response instruction is sent to the terminal.
In S402, gateway probe information transmitted by a terminal is received.
Wherein the gateway probe information has been described above.
In S403, gateway probe information is transmitted to the gateway scheduling apparatus.
The gateway probe information is used by the gateway scheduling apparatus 101 to determine whether there is a gateway better than the present gateway among gateways reachable by the terminal 102. In the present disclosure, the gateway scheduling apparatus 101 may receive gateway status information transmitted from each gateway connected thereto, and determine whether there is a gateway better than the present gateway according to the received gateway probe information and gateway status information.
In S404, if the redirection information sent by the gateway scheduling apparatus to the better gateway is received, the redirection information is sent to the terminal.
If the gateway receives the redirection information sent by the gateway scheduling apparatus 101, that is, it indicates that the gateway scheduling apparatus 101 determines that there is a gateway better than the gateway, the redirection information may be sent to the terminal 102, so that the terminal 102 may learn the redirection information. The terminal 102 may then send a connection request to the better gateway through which to access the network.
By the technical scheme, the gateway scheduling equipment can select a better gateway for the terminal, so that the service quality of the terminal accessing the network is ensured, the data access efficiency of the terminal is improved, and the reliability and stability of data transmission are improved.
Please refer to fig. 5 to explain the detailed procedure of the gateway connection method provided in the present disclosure. Fig. 5 is an interaction diagram between a gateway scheduling apparatus, a terminal, and a gateway in a gateway connection method according to an exemplary embodiment. Such as gateway scheduling apparatus 101, terminal 102, gateway 1031, and gateway 1032 in fig. 1. It should be noted that fig. 5 illustrates the gateway 1031 and the gateway 1032 as examples, but does not limit the number of gateways in the present disclosure. As shown in fig. 5, the method may include:
in S501, the terminal 102 transmits a gateway list acquisition request to the gateway scheduling apparatus 101.
If the gateway list is not stored in the terminal 102 in advance, a gateway list acquisition request may be sent to the gateway scheduling apparatus 101 when the terminal is connected to the network.
In S502, the gateway scheduling apparatus 101 receives a gateway list acquisition request transmitted by the terminal 102.
In S503, the gateway scheduling apparatus 101 transmits a gateway list to the terminal 102 in response to receiving the gateway list acquisition request.
Specifically, the plurality of gateways in the gateway list sent by the gateway scheduling apparatus 101 to the terminal 102 may be a plurality of gateways closer to the terminal 102 to shorten the communication distance between the terminal 102 and the gateways. For the terminal 102 with stronger processing capability, the gateway scheduling apparatus 101 may also send a gateway list formed by all gateways to the terminal 102. The gateway list includes gateway addresses corresponding to the gateway 1031 and gateway addresses corresponding to the gateway 1032.
If the terminal 102 does not receive the gateway list sent by the gateway scheduling apparatus 101 within the second preset duration after sending the gateway list obtaining request, the timeout indication information may be sent to the gateway scheduling apparatus 101 to indicate that the gateway scheduling apparatus 101 does not receive the gateway list, and then wait for a new gateway list sent by the gateway scheduling apparatus 101.
In S504 (301), the terminal 102 probes each gateway in the gateway list to obtain probe information.
In S505, the terminal 102 transmits a probe instruction to the gateway 1031.
In S506, the gateway 1031 receives the probe instruction transmitted by the terminal 102.
In S507, the gateway 1031 transmits a probe response instruction to the terminal 102 in response to receiving the probe instruction transmitted by the terminal 102.
In S508, the terminal 102 receives the probe response instruction transmitted by the gateway 1031.
In S509, the terminal 102 transmits a probe instruction to the gateway 1032.
In 510, gateway 1032 receives the probe instruction sent by terminal 102.
In S511, the gateway 1032 transmits a probe response instruction to the terminal 102 in response to receiving the probe instruction transmitted by the terminal 102.
In S512, the terminal 102 receives the probe response instruction transmitted by the gateway 1032.
The execution sequence of S505 and S509 may be: the step S505 is executed first and then the step S509 is executed first, or the step S509 is executed then the step S505 is executed, or both may be executed simultaneously, which is not limited in the present disclosure.
In S513 (302), the terminal 102 determines a first gateway to be connected according to the probe information.
For example, the terminal 102 determines that the gateway 1031 is the first gateway to be connected based on the probe information. It should be noted that, if the terminal 102 detects that all the gateways in the gateway list are not reachable, an error prompt message may be sent to the gateway scheduling apparatus 101 to prompt that all the gateways in the gateway list sent by the gateway scheduling apparatus 101 before are not reachable, and then wait for a new gateway list sent by the gateway scheduling apparatus 101, and detect each gateway in the new gateway list.
In S514 (303), the terminal 102 transmits gateway probe information to the gateway 1031.
Specific embodiments of S504, S513, and S514 are shown in fig. 3, and are described in detail above, and are not described herein.
In S515 (402), the gateway 1031 receives the gateway probe information transmitted from the terminal 102.
In S516 (403), the gateway 1031 transmits the gateway probe information to the gateway scheduling apparatus 101.
The specific embodiments of S515 and S516 are shown in fig. 4, and are described in detail above, and are not described herein.
In S517 (202), the gateway scheduling apparatus 101 receives gateway probe information transmitted by the gateway 1031.
In S518, the gateway 1031 transmits the gateway status information to the gateway scheduling apparatus 101.
In S519, the gateway 1032 transmits the gateway status information to the gateway scheduling apparatus 101.
In S520 (201), the gateway scheduling apparatus 101 receives gateway status information transmitted by each gateway connected thereto.
Note that, fig. 5 is only an exemplary illustration of the execution sequence of S516, S518, and S519, and the disclosure is not limited in particular.
In S521 (203), the gateway scheduling apparatus 101 determines, from the gateway probe information and the gateway status information, that, among the gateways reachable by the terminal 102, there is a second gateway that is better than the first gateway to which the terminal 102 is currently connected, and transmits redirection information to the second gateway to the first gateway.
For example, the gateway scheduling apparatus 101 determines that there is a gateway 1032 that is better than the gateway 1031 among the gateways reachable by the terminal 102, and may determine the gateway 1032 as a second gateway that is better. Specific embodiments of S517, S520 and S521 are shown in fig. 2, and are described in detail above, and are not repeated here.
In S522, the gateway 1031 receives the redirection information transmitted by the gateway scheduling apparatus 101.
In S523, the gateway 1031 transmits redirection information to the terminal 102.
In S524, the terminal 102 receives the redirection information transmitted by the gateway 1031.
In S525, the terminal 102 transmits a connection request to the gateway 1032.
In one embodiment, if the terminal 102 and the gateway use the TCP protocol for information transmission, the terminal 102 may send a TCP connection request to the gateway 1032 first, and after the TCP connection is established successfully, send a VPN connection request to the gateway 1032 to access the network through the gateway 1032.
In another embodiment, if the UDP protocol is used for information transmission between the terminal 102 and the gateway, the terminal 102 may directly send a VPN connection request to the gateway 1032 to access the network through the gateway 1032.
It should be noted that, if the terminal 102 does not receive the redirection information sent by the gateway 1031 or the acknowledgement information for confirming that the gateway switching is not required after sending the gateway probe information to the gateway 1031 for the third preset time period, the gateway 1031 may be considered to be faulty. The endpoint 102 may select a third gateway ranked after gateway 1031 as the new first gateway based on the gateway ranking information and re-execute S514-S525.
Based on the same inventive concept, the present disclosure further provides an apparatus for gateway connection, and fig. 6 is a block diagram illustrating an apparatus for gateway connection according to an exemplary embodiment, which may be applied to a gateway scheduling device. As shown in fig. 6, the apparatus 600 may include:
a receiving module 601, configured to receive gateway status information sent by each gateway connected to the gateway scheduling apparatus;
the receiving module 601 is further configured to receive gateway detection information, where the gateway detection information includes detection information obtained by detecting each gateway in the gateway list by the terminal;
and a sending module 602, configured to send, to a first gateway to which the terminal is currently connected, redirection information to the second gateway if it is determined, according to the gateway detection information and the gateway status information, that there is a second gateway that is better than the first gateway to which the terminal is currently connected in the gateways reachable by the terminal.
By adopting the device, the terminal can detect each gateway in the gateway list to obtain the gateway detection information, the gateway detection information can be sent to the gateway scheduling equipment, and the gateway scheduling equipment comprehensively judges according to the gateway detection information and the gateway condition information. If the gateway scheduling apparatus determines that there is a second gateway that is better than a first gateway to which the terminal is currently connected in gateways that are reachable by the terminal, redirection information to the second gateway may be sent to the first gateway. Therefore, the terminal can be switched to the second gateway which is better than the first gateway, so that the service quality of the terminal accessing the network is ensured, the data access efficiency of the terminal is improved, and the reliability and stability of data transmission are improved.
Alternatively, the receiving module 601 may include:
a first receiving sub-module, configured to receive the gateway probe information from the first gateway; or alternatively
And the second receiving sub-module is used for receiving the gateway detection information from the terminal.
Optionally, the apparatus 600 may further include:
and the more optimal gateway determining module is used for determining whether a second gateway which is more optimal than the first gateway to be connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information under the condition that the gateway load information of the first gateway represents that the first gateway is in an overload state currently or the back-end network state information of the first gateway represents that the back-end network of the first gateway is in an abnormal state currently.
Optionally, the receiving module 601 is further configured to receive a gateway list obtaining request sent by the terminal before receiving gateway probe information;
the sending module 602 is further configured to send the gateway list to the terminal in response to receiving the gateway list obtaining request.
Fig. 7 is a block diagram illustrating an apparatus for gateway connection according to another exemplary embodiment, which may be applied to a terminal. As shown in fig. 7, the apparatus 700 may include:
A detection module 701, configured to detect each gateway in the gateway list to obtain detection information;
a gateway determining module 702, configured to determine a first gateway to be connected according to the probe information;
a sending module 703, configured to send gateway detection information, where the gateway detection information includes detection information obtained by the terminal detecting each gateway in the gateway list, and the gateway detection information is used by a gateway scheduling device to determine whether, according to the detection information, there is a second gateway that is better than the first gateway in gateways that are reachable by the terminal;
the sending module 703 is further configured to send a connection request to the second gateway if the redirection information sent by the first gateway to the second gateway is received.
Optionally, the sending module 703 may include:
a first sending submodule, configured to send the gateway probe information to the first gateway, so that the first gateway sends the gateway probe information to the gateway scheduling device; or alternatively
And the second sending submodule is used for sending the gateway detection information to the gateway scheduling equipment.
Optionally, the sending module 703 is further configured to send a gateway list obtaining request to the gateway scheduling apparatus before detecting each gateway in the gateway list;
The apparatus 700 may further include a receiving module configured to receive the gateway list sent by the gateway scheduling device.
Fig. 8 is a block diagram illustrating an apparatus for gateway connection according to another exemplary embodiment, which may be applied to a gateway. As shown in fig. 8, the apparatus 800 may include:
a sending module 801, configured to send a probe response instruction to a terminal in response to receiving a probe instruction sent by the terminal;
a receiving module 802, configured to receive gateway detection information sent by the terminal, where the gateway detection information includes detection information obtained by the terminal detecting each gateway in a gateway list;
the sending module 801 is further configured to send the gateway detection information to a gateway scheduling device, where the gateway detection information is used for the gateway scheduling device to determine whether a gateway that is better than the present gateway exists in gateways that are reachable by the terminal according to the gateway detection information;
the sending module 801 is further configured to send the redirection information to the terminal if the redirection information sent by the gateway scheduling apparatus to the better gateway is received.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 9 is a block diagram of an electronic device 900, according to an example embodiment. For example, the electronic device 900 may be provided as a server, i.e., the gateway management server or cloud server described above, or may be provided as a controller, such as the gateway controller described above, GSLB, etc. Referring to fig. 9, the electronic device 900 includes a processor 922, which may be one or more in number, and a memory 932 for storing computer programs executable by the processor 922. The computer program stored in memory 932 may include one or more modules each corresponding to a set of instructions. Further, the processor 922 may be configured to execute the computer program to perform the gateway connection method applied to the gateway scheduling apparatus described above.
In addition, the electronic device 900 may further include a power supply component 926 and a communication component 950, the power supply component 926 may be configured to perform power management of the electronic device 900, and the communication component 950 may be configured to enable communication of the electronic device 900, e.g., wired or wireless communication. In addition, the electronic device 900 may also include an input/output (I/O) interface 958. The electronic device 900 may operate based on an operating system stored in memory 932, such as Windows Server, mac OS XTM, unixTM, linuxTM, and the like.
In another exemplary embodiment, a computer readable storage medium is also provided, comprising program instructions which, when executed by a processor, implement the steps of the gateway connection method described above as applied to a gateway scheduling apparatus. For example, the computer readable storage medium may be the memory 932 described above including program instructions executable by the processor 922 of the electronic device 900 to perform the gateway connection method described above as applied to the gateway scheduling apparatus.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described gateway connection method applied to a gateway scheduling apparatus when executed by the programmable apparatus.
Fig. 10 is a block diagram of an electronic device 1000, shown in accordance with another exemplary embodiment. As shown in fig. 10, the electronic device 1000 may include: a processor 1001, and a memory 1002. The electronic device 1000 may also include one or more of a multimedia component 1003, an input/output (I/O) interface 1004, and a communication component 1005.
The processor 1001 is configured to control overall operations of the electronic device 1000 to complete all or part of the steps in the gateway connection method applied to the terminal. The memory 1002 is used to store various types of data to support operation at the electronic device 1000, which may include, for example, instructions for any application or method operating on the electronic device 1000, as well as application-related data, such as contact data, transceived messages, pictures, audio, video, and the like. The Memory 1002 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 1003 may include a screen and audio components. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 1002 or transmitted through the communication component 1005. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 1004 provides an interface between the processor 1001 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1005 is used for wired or wireless communication between the electronic device 1000 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 1005 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), digital signal processor (Digital Signal Processor, abbreviated as DSP), digital signal processing device (Digital Signal Processing Device, abbreviated as DSPD), programmable logic device (Programmable Logic Device, abbreviated as PLD), field programmable gate array (Field Programmable Gate Array, abbreviated as FPGA), controller, microcontroller, microprocessor, or other electronic components for performing the gateway connection method applied to the terminal as described above.
In another exemplary embodiment, there is also provided a computer readable storage medium including program instructions which, when executed by a processor, implement the steps of the gateway connection method as described above applied to a terminal. For example, the computer readable storage medium may be the memory 1002 including program instructions described above, which are executable by the processor 1001 of the electronic device 1000 to perform the gateway connection method applied to the terminal described above.
The present disclosure also provides a gateway device, including:
a memory having a computer program stored thereon;
And a processor for executing the computer program in the memory to implement the steps of the gateway connection method for a gateway provided by the present disclosure.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure.
In addition, the specific features described in the foregoing embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, the present disclosure does not further describe various possible combinations.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.

Claims (15)

1. A gateway connection method, applied to a gateway scheduling apparatus, comprising:
receiving gateway condition information sent by each gateway connected with the gateway scheduling equipment;
Receiving gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by a terminal;
and if the fact that a second gateway which is better than a first gateway to which the terminal is currently connected exists in the gateways which are reachable by the terminal is determined according to the gateway detection information and the gateway condition information, the redirection information which is sent to the second gateway to the first gateway is sent to the first gateway, wherein the first gateway is determined after the terminal determines the optimal gateway according to the detection information and establishes connection.
2. The method of claim 1, wherein the receiving gateway probe information comprises:
receiving the gateway probe information from the first gateway; or alternatively
And receiving the gateway detection information from the terminal.
3. The method of claim 1, wherein the gateway condition information includes gateway load information and back-end network state information of a gateway;
the method further comprises the steps of:
and under the condition that the gateway load information of the first gateway represents that the first gateway is in an overload state currently, or the back-end network state information of the first gateway represents that the back-end network of the first gateway is in an abnormal state currently, determining whether a second gateway which is better than the first gateway to be connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information.
4. The method of claim 1, further comprising, prior to receiving gateway probe information:
receiving a gateway list acquisition request sent by the terminal;
and sending the gateway list to the terminal in response to receiving the gateway list acquisition request.
5. The gateway connection method is characterized by being applied to a terminal and comprising the following steps:
detecting each gateway in the gateway list to obtain detection information;
determining a first gateway to be connected according to the detection information, wherein the first gateway is determined after the terminal determines an optimal gateway according to the detection information and establishes connection;
sending gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in the gateway list by the terminal, and the gateway detection information is used for determining whether a second gateway which is better than the first gateway exists in gateways which are reachable by the terminal according to the gateway detection information by gateway scheduling equipment;
and if the redirection information sent by the first gateway to the second gateway is received, sending a connection request to the second gateway.
6. The method of claim 5, wherein the sending gateway probe information comprises:
Transmitting the gateway probe information to the first gateway, so that the first gateway transmits the gateway probe information to the gateway scheduling equipment; or alternatively
And sending the gateway detection information to the gateway scheduling equipment.
7. The method of claim 5, wherein prior to probing each gateway in the list of gateways, the method further comprises:
sending a gateway list acquisition request to the gateway scheduling equipment;
and receiving the gateway list sent by the gateway scheduling equipment.
8. The gateway connection method is characterized by being applied to a first gateway, wherein the first gateway is determined after a terminal determines an optimal gateway according to detection information and establishes connection, and comprises the following steps:
responding to a detection instruction sent by a receiving terminal, and sending a detection response instruction to the terminal;
receiving gateway detection information sent by the terminal, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by the terminal;
the gateway detection information is sent to gateway scheduling equipment, and the gateway detection information is used for the gateway scheduling equipment to determine whether a gateway better than the gateway exists in the gateways reachable by the terminal according to the gateway detection information;
And if the redirection information sent by the gateway scheduling equipment to the better gateway is received, sending the redirection information to the terminal.
9. An apparatus for gateway connection, applied to a gateway scheduling device, comprising:
the receiving module is used for receiving gateway condition information sent by each gateway connected with the gateway scheduling equipment;
the receiving module is further used for receiving gateway detection information, wherein the gateway detection information comprises detection information obtained by detecting each gateway in the gateway list by the terminal;
and the sending module is used for sending redirection information to a first gateway to be connected to a second gateway if the second gateway which is better than the first gateway to be connected currently exists in the gateways which are reachable by the terminal according to the gateway detection information and the gateway condition information, wherein the first gateway is determined after the terminal determines the optimal gateway according to the detection information and establishes connection.
10. An apparatus for gateway connection, applied to a terminal, comprising:
the detection module is used for detecting each gateway in the gateway list to obtain detection information;
The gateway determining module is used for determining a first gateway to be connected according to the detection information, wherein the first gateway is determined after the terminal determines an optimal gateway according to the detection information and establishes connection;
the sending module is used for sending gateway detection information, the gateway detection information comprises detection information obtained by detecting each gateway in the gateway list by the terminal, and the gateway detection information is used for determining whether a second gateway which is better than the first gateway exists in the gateways which are reachable by the terminal according to the gateway detection information by gateway scheduling equipment;
the sending module is further configured to send a connection request to the second gateway if the redirection information sent by the first gateway to the second gateway is received.
11. The device for gateway connection is characterized by being applied to a first gateway, wherein the first gateway is determined after a terminal determines an optimal gateway according to detection information and establishes connection, and the device comprises:
the sending module is used for responding to the detection instruction sent by the receiving terminal and sending a detection response instruction to the terminal;
the receiving module is used for receiving gateway detection information sent by the terminal, wherein the gateway detection information comprises detection information obtained by detecting each gateway in a gateway list by the terminal;
The sending module is further configured to send the gateway detection information to a gateway scheduling device, where the gateway detection information is used for the gateway scheduling device to determine whether a gateway that is better than the gateway exists in gateways that are reachable by the terminal according to the gateway detection information;
the sending module is further configured to send the redirection information to the terminal if the redirection information sent by the gateway scheduling device to the better gateway is received.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1-8.
13. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-4.
14. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any of claims 5-7.
15. A gateway device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of claim 8.
CN201911072159.3A 2019-11-05 2019-11-05 Gateway connection method, device, storage medium, electronic equipment and gateway equipment Active CN110838991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911072159.3A CN110838991B (en) 2019-11-05 2019-11-05 Gateway connection method, device, storage medium, electronic equipment and gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911072159.3A CN110838991B (en) 2019-11-05 2019-11-05 Gateway connection method, device, storage medium, electronic equipment and gateway equipment

Publications (2)

Publication Number Publication Date
CN110838991A CN110838991A (en) 2020-02-25
CN110838991B true CN110838991B (en) 2023-05-16

Family

ID=69576219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911072159.3A Active CN110838991B (en) 2019-11-05 2019-11-05 Gateway connection method, device, storage medium, electronic equipment and gateway equipment

Country Status (1)

Country Link
CN (1) CN110838991B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104698A (en) * 2020-08-07 2020-12-18 深圳市星砺达科技有限公司 Method for accessing vehicle-mounted terminal to gateway, related equipment and medium
CN112738922B (en) * 2020-11-18 2023-07-21 青岛海尔科技有限公司 Data processing method and device, storage medium and electronic device
CN112653637A (en) * 2020-12-08 2021-04-13 青岛海尔科技有限公司 Mesh gateway selection method and device
CN112822735B (en) * 2020-12-31 2022-02-01 广州技象科技有限公司 Gateway switching management method, device, equipment and storage medium based on Internet of things
CN112367412B (en) * 2021-01-15 2021-04-06 广州技象科技有限公司 Equipment connection management method and device based on Internet of things
CN115378870A (en) * 2021-05-18 2022-11-22 中国移动通信有限公司研究院 Industrial gateway selection method and device
CN113472545B (en) * 2021-08-31 2022-02-01 阿里云计算有限公司 Equipment network access method, device, equipment, storage medium and communication system
CN114143251B (en) * 2021-12-08 2023-10-13 北京天融信网络安全技术有限公司 Intelligent routing method, intelligent routing device, electronic equipment and computer readable storage medium
CN114567524B (en) * 2022-03-14 2024-02-02 杭州萤石软件有限公司 Dynamic gateway communication system and method of (a)
CN114520779B (en) * 2022-04-20 2022-07-01 华锐分布式(北京)技术有限公司 Encryption gateway time delay measurement method, device and equipment based on class waveform matching
CN116112569B (en) * 2023-02-23 2023-07-21 安超云软件有限公司 Micro-service scheduling method and management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012142871A1 (en) * 2011-04-22 2012-10-26 中兴通讯股份有限公司 Multicast traffic forwarding method and multicast router in local area network
CN105245467A (en) * 2015-10-29 2016-01-13 中铁工程装备集团有限公司 Dynamic access method for router
WO2016076287A1 (en) * 2014-11-11 2016-05-19 シャープ株式会社 Terminal device, base station device, mme, and communications control method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8613072B2 (en) * 2009-02-26 2013-12-17 Microsoft Corporation Redirection of secure data connection requests
CN101711048B (en) * 2009-11-13 2012-02-08 西安电子科技大学 Method for choosing gateway in integrating process of mobile self-organization network and Internet
CN102300189B (en) * 2010-06-28 2014-02-12 国基电子(上海)有限公司 Gateway group unified authentication method, authentication gateway and data gateway
CN102223365B (en) * 2011-06-03 2014-02-12 杭州华三通信技术有限公司 User access method and device based on SSL (Secure Socket Layer) VPN (Virtual Private Network) gateway cluster
CN102223677B (en) * 2011-07-04 2014-02-12 重庆邮电大学 Switching method and switching system based on IASA (inter access system anchor) load balancing device
CN102695212B (en) * 2012-06-06 2015-05-13 上海乾视通信技术有限公司 Method for balancing loads of ad-hoc network gateways
CN104994066B (en) * 2015-05-22 2019-01-08 新华三技术有限公司 A kind of Network Access Method and device
CN105050139B (en) * 2015-07-27 2018-10-26 中国科学院信息工程研究所 A kind of gateway selection method and system based on global load balancing
CN105163349B (en) * 2015-08-03 2016-05-04 东南大学 A kind of multiple gateway Wireless Mesh network implementation method based on IEEE802.11s
US10361969B2 (en) * 2016-08-30 2019-07-23 Cisco Technology, Inc. System and method for managing chained services in a network environment
CN108616904B (en) * 2016-12-21 2021-07-02 上海未来宽带技术股份有限公司 Wireless frequency point management method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012142871A1 (en) * 2011-04-22 2012-10-26 中兴通讯股份有限公司 Multicast traffic forwarding method and multicast router in local area network
WO2016076287A1 (en) * 2014-11-11 2016-05-19 シャープ株式会社 Terminal device, base station device, mme, and communications control method
CN105245467A (en) * 2015-10-29 2016-01-13 中铁工程装备集团有限公司 Dynamic access method for router

Also Published As

Publication number Publication date
CN110838991A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
CN110838991B (en) Gateway connection method, device, storage medium, electronic equipment and gateway equipment
JP6106494B2 (en) COMMUNICATION CONTROL DEVICE, SERVER DEVICE, COMMUNICATION SYSTEM, AND PROGRAM
CN107534605B (en) Method for selecting a network connection concentrator
JP6279938B2 (en) Connection management apparatus, communication system, connection management method and program
CN106612284B (en) Streaming data transmission method and device
JP5867160B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
EP3364609B1 (en) Communication system, address notification device, communication control device, terminal, communication method, and program
US9231907B2 (en) Method for establishing connection between communication apparatuses, communication apparatus, and server apparatus
JP6167587B2 (en) Communication device, communication network system, and content server selection method in communication device
CN108512714B (en) Message transmission method, related equipment and system
JP2023542398A (en) Data processing methods, devices, related equipment and storage media
US11637874B2 (en) Communications apparatus, systems, and methods for preventing and/or minimizing session data clipping
JP2016208315A (en) Communication device, communication processing method, and communication program
JP2017502593A (en) Access node, mobility management network element, and paging message processing method
CN108574615B (en) Content transmission method, device and system based on multipath MPTCP
JP5662779B2 (en) Communication system and node device
US20150156164A1 (en) Communication system, communication control method, communication relay system, and communication relay control method
JP2014146876A (en) Message distribution system and message distribution method
JP5723808B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP5362026B2 (en) Communication failure factor estimation method, communication apparatus and program including the estimation method
US11799840B2 (en) Failure detection device, failure detection method, and failure detection program
US20230180324A1 (en) Methods and apparatus for providing backhaul communications services
JP6767947B2 (en) Line switching method
US20190191326A1 (en) Relay communication apparatus, method, and non-transitory computer-readable storage medium for storing program for relay communication
JP6554431B2 (en) Session control method and communication system

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: 20210305

Address after: 201111 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant after: Dalu Robot Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS Co.,Ltd.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 201111 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Applicant after: Dayu robot Co.,Ltd.

Address before: 201111 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant before: Dalu Robot Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant