CN112822088A - Network connection method and device, electronic equipment, processor and storage medium - Google Patents

Network connection method and device, electronic equipment, processor and storage medium Download PDF

Info

Publication number
CN112822088A
CN112822088A CN202011633179.6A CN202011633179A CN112822088A CN 112822088 A CN112822088 A CN 112822088A CN 202011633179 A CN202011633179 A CN 202011633179A CN 112822088 A CN112822088 A CN 112822088A
Authority
CN
China
Prior art keywords
connection
client
target network
network connection
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011633179.6A
Other languages
Chinese (zh)
Other versions
CN112822088B (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.)
Hillstone Networks Co Ltd
Original Assignee
Hillstone Networks 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 Hillstone Networks Co Ltd filed Critical Hillstone Networks Co Ltd
Priority to CN202011633179.6A priority Critical patent/CN112822088B/en
Publication of CN112822088A publication Critical patent/CN112822088A/en
Application granted granted Critical
Publication of CN112822088B publication Critical patent/CN112822088B/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/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls

Landscapes

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

Abstract

The invention discloses a network connection method and device, electronic equipment, a processor and a storage medium. Wherein, the method comprises the following steps: when a first connection request from a client is received, establishing a first connection of the client, wherein the first connection request carries identification information of the client; acquiring a target network connection line matched with the client based on the identification information; sending the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to a server based on whether to start a connection selection function locally or not and the IP address information; and if the second connection request is received, establishing a second connection with the client based on the target network connection line. The invention solves the technical problem that the cross-operator network influences the access rate of the user to access the internal resources of the company in the prior art.

Description

Network connection method and device, electronic equipment, processor and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a network connection method and apparatus, an electronic device, a processor, and a storage medium.
Background
Currently, there are multiple ISPs (Internet Service providers) in the network, for example. AT & T, NTT DoComo, T-Mobile, Vodafone and the like which are popular abroad, and China Mobile, China telecom and the like which are popular AT home. Due to the competition between the network architecture of operators and the operators, the problems of small bandwidth, large delay, serious packet loss and the like exist in the process of communication among the operators, and the problems can influence the use experience of users.
At present, large-scale Virtual Private Networks (VPN) are often cross-ISP, and the application effect of VPN is seriously influenced by the problems of small bandwidth, large delay and high packet loss rate among different ISPs.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a network connection method and device, electronic equipment, a processor and a storage medium, which are used for at least solving the technical problem that cross-operator network influences the access rate of a user for accessing internal resources of a company in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a network connection method, including: when a first connection request from a client is received, establishing a first connection of the client, wherein the first connection request carries identification information of the client; acquiring a target network connection line matched with the client based on the identification information; sending the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to a server based on whether to start a connection selection function locally or not and the IP address information; and if the second connection request is received, establishing a second connection with the client based on the target network connection line, wherein the first connection and the second connection are respectively provided with different network connection lines by different internet service providers.
Optionally, obtaining a target network connection line matched with the client based on the identification information includes: detecting whether a service end starts an automatic detection function, wherein the automatic detection function is used for detecting whether the target network connection line matched with the identification information exists or not; if the detection result is yes, a plurality of network connection lines provided by a plurality of internet service providers are searched based on the identification information, and at least one target network connection line is obtained.
Optionally, the issuing, to the client, the IP address information of the target network connection line includes: if the target network connecting lines are multiple, sequencing the multiple target network connecting lines to obtain a sequencing result; determining priorities of a plurality of target network connection lines based on the sequencing result; and based on the priorities of the target network connecting lines, the IP address information of the target network connecting line with the highest priority is sent to the client.
Optionally, searching a plurality of network connection lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connection line, including: and searching a plurality of network connecting lines based on the identification information by adopting an internet route searching algorithm to obtain at least one target network connecting line.
Optionally, the method further includes: when the target network connecting line is detected to be abnormal, determining a standby network connecting line and IP address information of the standby network connecting line; and sending a notification message and the IP address information of the standby network connection line to the client, wherein the notification message is used for describing the occurrence of the abnormality of the target network connection line.
According to another aspect of the embodiments of the present invention, there is also provided a network connection device, including: the system comprises a first connection module, a second connection module and a third connection module, wherein the first connection module is used for establishing a first connection of a client when receiving a first connection request from the client, and the first connection request carries identification information of the client; the acquisition module is used for acquiring a target network connection line matched with the client based on the identification information; the issuing module is used for issuing the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to the server or not based on whether to start a connection selection function locally or not and the IP address information; a second connection module, configured to establish a second connection with the client based on the target network connection line if the second connection request is received, where the first connection and the second connection are provided by different internet service providers respectively.
Optionally, the obtaining module includes: a detecting unit, configured to detect whether a service end starts an automatic detection function, where the automatic detection function is configured to detect whether the target network connection line matching the identification information exists; and the obtaining unit is used for searching a plurality of network connecting lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connecting line if the detection result is positive.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and to perform any one of the above-mentioned network connection methods.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program is configured to execute any one of the network connection methods when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the above network connection methods.
In the embodiment of the invention, when a first connection request from a client is received, a first connection of the client is established, wherein the first connection request carries identification information of the client; acquiring a target network connection line matched with the client based on the identification information; sending the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to a server based on whether to start a connection selection function locally or not and the IP address information; if the second connection request is received, establishing a second connection with the client based on the target network connection line, wherein the first connection and the second connection are provided with different network connection lines by different internet service providers respectively, so that the purpose of reducing the influence of a cross-operator network on the rate of accessing the internal resources of the company by the user is achieved, the technical effect of improving the response efficiency of the user for accessing the server is achieved, and the technical problem that the cross-operator network influences the access rate of the user for accessing the internal resources of the company in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of network connectivity according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative network connection method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative network connection method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network connection device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a network-connected embodiment, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a network connection method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, when a first connection request from a client is received, establishing a first connection of the client, wherein the first connection request carries identification information of the client;
step S104, acquiring a target network connection line matched with the client based on the identification information;
step S106, the IP address information of the target network connection line is sent to the client, wherein the client determines whether to send a second connection request to a server side based on whether a connection selection function is started locally or not and the IP address information;
step S108, if the second connection request is received, establishing a second connection with the client based on the target network connection line, wherein the first connection and the second connection are provided by different internet service providers respectively.
In the embodiment of the invention, when a first connection request from a client is received, a first connection of the client is established, wherein the first connection request carries identification information of the client; acquiring a target network connection line matched with the client based on the identification information; sending the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to a server based on whether to start a connection selection function locally or not and the IP address information; if the second connection request is received, establishing a second connection with the client based on the target network connection line, wherein the first connection and the second connection are provided with different network connection lines by different internet service providers respectively, so that the purpose of reducing the influence of a cross-operator network on the rate of accessing the internal resources of the company by the user is achieved, the technical effect of improving the response efficiency of the user for accessing the server is achieved, and the technical problem that the cross-operator network influences the access rate of the user for accessing the internal resources of the company in the prior art is solved.
Optionally, the network connection method provided by the embodiment of the present application may be applied to a scenario in which a client accesses a server using different ISP lines, for example, an application scenario in which a company user accesses internal resources of a company through a remote tunnel access technology SSL VPN by using the client.
In the embodiment of the present application, the SSL VPN is a novel VPN technology that uses an SSL protocol to implement remote access, and after the Server starts the optimal path detection function, when a user (Client) accesses the SSL VPN (Server) through an optimal channel, the optimal path detection function enables the Client accessing different ISP lines to automatically select a fastest line to connect to the SSL VPN, so as to access internal resources of a company quickly and efficiently.
In the embodiment of the application, the second connection with the client is established based on the target network connection line, so that the influence of a cross-operator network on the rate of accessing the internal resources of a company by a user can be reduced, the operation is convenient and efficient, the use complexity of the user cannot be increased, and the stability of the user in the use process is ensured.
Through the embodiment of the application, the influence of the cross-operator network on the rate of accessing the internal resources of the company by the user can be reduced, the operation is convenient and efficient, the complexity of the user can not be increased, the stability of the user in the use process is ensured, the response efficiency of the user in accessing the server is improved, and the experience of the user is improved.
In this embodiment of the application, the client determines whether a second connection request occurs to the server based on whether the optimal path selection function is locally enabled, where if the optimal path selection function is not locally enabled, the client does not consider whether to establish a new second connection, and if the optimal path selection function is locally enabled, the client considers whether to send a probe request based on the received IP address information to establish a new second connection.
The precondition for the client to start the connection selection function is that the server applies for two target network connection lines located in different ISP internet service providers to the network in advance, and uses 2 device-end interfaces as SSL VPN channel output interfaces, and the server locally starts the function of automatically detecting the optimal channel and configures the server for detection, so that the client locally can start the optimal path selection function.
In an optional embodiment, obtaining a target network connection line matched with the client includes:
step S202, detecting whether a service end starts an automatic detection function, wherein the automatic detection function is used for detecting whether the target network connection line matched with the identification information exists or not;
step S204, if the detection result is yes, searching a plurality of network connection lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connection line.
In order to implement the optimal path connection, as shown in fig. 2, the interaction flow between the server and the client is as follows: when the Client is connected to the Server through the first connection (IP address 1), the Server detects whether an automatic detection function, namely an automatic detection optimal channel function, is started, and if the Server is detected to locally start the automatic detection optimal channel function, a plurality of network connection lines provided by a plurality of Internet service providers are searched based on the identification information to obtain at least one target network connection line.
In an optional embodiment, the sending the IP address information of the target network connection line to the client includes:
step S302, if the target network connection lines are multiple, sequencing the multiple target network connection lines to obtain a sequencing result;
step S304, determining the priority of the target network connection lines based on the sequencing result;
step S306, based on the priorities of the target network connection lines, sending the IP address information of the target network connection line with the highest priority to the client.
In the embodiment of the application, the server realizes the detection function of the optimal path through an ISP (internet service provider) route searching technology, if the target network connecting lines are multiple, the multiple target network connecting lines are sequenced to obtain a sequencing result; and determining the priorities of a plurality of target network connecting lines based on the sequencing result, and sending the IP address information of the target network connecting line with the highest priority to the client.
In the embodiment of the application, after receiving the IP address information of the target network connection line, the Client selects to disconnect the current first connection according to whether the Client itself opens the optimal channel function, and uses the IP address information of the target network connection line recommended by the Server to request to establish the second connection, or directly ignores the IP address information of the target network connection line recommended by the Server and continues the current first connection.
Still as shown in fig. 2, the Client is connected to the Server through the first connection (2.2.2.2), the Server issues the optimal IP (3.3.3.2) to the Client, if the Client turns on the optimal path selection function, the Server may choose to disconnect the current first connection, reestablish the second connection with the Server using 3.3.3.2, and if the Client does not turn on the optimal path selection function, continue the current first connection.
In an optional embodiment, finding a plurality of network connection lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connection line comprises:
step S402, using an internet route search algorithm to search a plurality of network connection lines based on the identification information, so as to obtain at least one target network connection line.
Optionally, the server may obtain a target network connection line matched with the client by using an optimal path detection method based on an ISP or an optimal path detection method based on UDP packet probing.
In an optional embodiment, the method further includes:
step S502, when detecting the abnormality of the target network connection line, determining a backup network connection line and the IP address information of the backup network connection line;
step S504, sending a notification message and the IP address information of the standby network connection line to the client, where the notification message is used to describe that the target network connection line is abnormal.
In the embodiment of the application, the Server terminal detects that any change exists in the target network connection line, and the Server terminal should notify the Client terminal, and then the Client terminal determines whether to reestablish the connection according to the notification message provided by the Server terminal, so as to ensure the stability of the connection between the Client terminal and the Server terminal.
As an optional embodiment, the client may further automatically determine an optimal link by sending a UDP probe packet, and select an optimal channel for connection to establish a connection with the server.
As shown in fig. 3, a company selects a Hillstone entity firewall device as an SSL VPN device, and accesses the internet through two different internet access lines ISP1 and ISP2, and company employees located at different geographical locations and using different ISPs access headquarters resources.
If a user located in city a using ISP1 connects to an interface located in ISP2, the function will automatically switch its connection to using ISP1 interface, thus ensuring optimization of the connection; similarly, if a user in city B using ISP2 connects to the interface in ISP1, the function will automatically switch its connection to the interface using ISP2, thus ensuring the optimization of the connection; if a user located in city C using ISP2 connects to the interface located in ISP2, this function will continue to connect his connection to the interface of ISP2, thus ensuring an optimum connection; if a user in city D using ISP3 accesses the ISP interface by default, or if the user is assigned to an ISP by an administrator, such as ISP1, the user will automatically switch to the ISP1 interface.
Optionally, if a user is in the process of using the ISP1 to communicate, if a problem occurs in the ISP1 line, the ISP1 may be switched to the ISP2, so as to ensure the normal operation of communication. If the optimal channel detection function of the equipment end is started, the Hillstone equipment of the equipment end judges the ISP type of the Hillstone equipment through the source access address of the client, according to the judgment result, the server end reorders and issues the IP of the outgoing interface to the client according to the priority, and the client selects the connected optimal channel.
Example 2
According to an embodiment of the present invention, an embodiment of an apparatus for implementing the network connection method is further provided, and fig. 4 is a schematic structural diagram of a network connection apparatus according to an embodiment of the present invention, as shown in fig. 4, the network connection apparatus includes: a first connection module 400, an acquisition module 402, a distribution module 404, and a second connection module 406, wherein:
a first connection module 400, configured to establish a first connection of a client when receiving a first connection request from the client, where the first connection request carries identification information of the client; an obtaining module 402, configured to obtain a target network connection line matched with the client based on the identification information; an issuing module 404, configured to issue the IP address information of the target network connection line to the client, where the client determines whether to send a second connection request to the server based on whether to locally start a connection selection function and the IP address information; a second connection module 406, configured to establish a second connection with the client based on the target network connection line if the second connection request is received, where the first connection and the second connection are provided by different internet service providers respectively.
In an optional embodiment, the obtaining module includes: a detecting unit, configured to detect whether a service end starts an automatic detection function, where the automatic detection function is configured to detect whether the target network connection line matching the identification information exists; and the obtaining unit is used for searching a plurality of network connecting lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connecting line if the detection result is positive.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted that the first connection module 400, the obtaining module 402, the issuing module 404, and the second connection module 406 correspond to steps S102 to S108 in embodiment 1, and the modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here again.
The network connection device may further include a processor and a memory, where the first connection module 400, the obtaining module 402, the issuing module 404, the second connection module 406, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to an embodiment of the present application, there is also provided an embodiment of a non-volatile storage medium. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, and when the program runs, the apparatus in which the nonvolatile storage medium is located is controlled to execute any one of the network connection methods.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of mobile terminals, and the nonvolatile storage medium includes a stored program.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: when a first connection request from a client is received, establishing a first connection of the client, wherein the first connection request carries identification information of the client; acquiring a target network connection line matched with the client based on the identification information; sending the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to a server based on whether to start a connection selection function locally or not and the IP address information; and if the second connection request is received, establishing a second connection with the client based on the target network connection line, wherein the first connection and the second connection are respectively provided with different network connection lines by different internet service providers.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: detecting whether a service end starts an automatic detection function, wherein the automatic detection function is used for detecting whether the target network connection line matched with the identification information exists or not; if the detection result is yes, a plurality of network connection lines provided by a plurality of internet service providers are searched based on the identification information, and at least one target network connection line is obtained.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: if the target network connecting lines are multiple, sequencing the multiple target network connecting lines to obtain a sequencing result; determining priorities of a plurality of target network connection lines based on the sequencing result; and based on the priorities of the target network connecting lines, the IP address information of the target network connecting line with the highest priority is sent to the client.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: and searching a plurality of network connecting lines based on the identification information by adopting an internet route searching algorithm to obtain at least one target network connecting line.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: when the target network connecting line is detected to be abnormal, determining a standby network connecting line and IP address information of the standby network connecting line; and sending a notification message and the IP address information of the standby network connection line to the client, wherein the notification message is used for describing the occurrence of the abnormality of the target network connection line.
According to an embodiment of the present application, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to execute a program, where the program executes any one of the network connection methods.
According to an embodiment of the present application, there is also provided an embodiment of an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the network connection methods.
There is further provided, in accordance with an embodiment of the present application, an embodiment of a computer program product, which, when executed on a data processing device, is adapted to execute a program that initializes the steps of the network connection method of any of the above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
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, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A network connection method, comprising:
when a first connection request from a client is received, establishing a first connection of the client, wherein the first connection request carries identification information of the client;
acquiring a target network connection line matched with the client based on the identification information;
sending the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to a server side based on whether to locally start a connection selection function and the IP address information;
and if the second connection request is received, establishing a second connection with the client based on the target network connection line, wherein the first connection and the second connection are respectively provided with different network connection lines by different internet service providers.
2. The method of claim 1, wherein obtaining a target network connection line matched with the client based on the identification information comprises:
detecting whether a server side starts an automatic detection function or not, wherein the automatic detection function is used for detecting whether the target network connection line matched with the identification information exists or not;
if the detection result is yes, searching a plurality of network connection lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connection line.
3. The method of claim 2, wherein sending the IP address information of the target network connection to the client comprises:
if the target network connecting lines are multiple, sequencing the multiple target network connecting lines to obtain a sequencing result;
determining priorities of a plurality of target network connection lines based on the sorting result;
and based on the priorities of the target network connecting lines, the IP address information of the target network connecting line with the highest priority is sent to the client.
4. A method as claimed in claim 2, wherein finding a plurality of said network connections provided by a plurality of internet service providers based on said identification information, resulting in at least one of said target network connections, comprises:
and searching a plurality of network connecting lines based on the identification information by adopting an internet route searching algorithm to obtain at least one target network connecting line.
5. The method according to any one of claims 1 to 4, further comprising:
when the target network connecting line is detected to be abnormal, determining a standby network connecting line and IP address information of the standby network connecting line;
and issuing a notification message and the IP address information of the standby network connection line to the client, wherein the notification message is used for describing the abnormity of the target network connection line.
6. A network connection device, comprising:
the system comprises a first connection module, a second connection module and a third connection module, wherein the first connection module is used for establishing a first connection of a client when receiving a first connection request from the client, and the first connection request carries identification information of the client;
the acquisition module is used for acquiring a target network connection line matched with the client based on the identification information;
the issuing module is used for issuing the IP address information of the target network connection line to the client, wherein the client determines whether to send a second connection request to the server based on whether to start a connection selection function locally or not and the IP address information;
and a second connection module, configured to establish a second connection with the client based on the target network connection line if the second connection request is received, where the first connection and the second connection are provided by different internet service providers respectively.
7. The apparatus of claim 6, wherein the obtaining module comprises:
the detection unit is used for detecting whether an automatic detection function is started by a server or not, wherein the automatic detection function is used for detecting whether the target network connection line matched with the identification information exists or not;
and the obtaining unit is used for searching a plurality of network connecting lines provided by a plurality of internet service providers based on the identification information to obtain at least one target network connecting line if the detection result is positive.
8. A non-volatile storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the network connection method of any of claims 1 to 5.
9. A processor for running a program, wherein the program is arranged to perform the network connection method of any one of claims 1 to 5 when running.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the network connection method of any one of claims 1 to 5.
CN202011633179.6A 2020-12-31 2020-12-31 Network connection method and device, electronic equipment, processor and storage medium Active CN112822088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011633179.6A CN112822088B (en) 2020-12-31 2020-12-31 Network connection method and device, electronic equipment, processor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011633179.6A CN112822088B (en) 2020-12-31 2020-12-31 Network connection method and device, electronic equipment, processor and storage medium

Publications (2)

Publication Number Publication Date
CN112822088A true CN112822088A (en) 2021-05-18
CN112822088B CN112822088B (en) 2022-08-26

Family

ID=75858289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011633179.6A Active CN112822088B (en) 2020-12-31 2020-12-31 Network connection method and device, electronic equipment, processor and storage medium

Country Status (1)

Country Link
CN (1) CN112822088B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285798A (en) * 2021-12-22 2022-04-05 北京达佳互联信息技术有限公司 Data transmission method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090086742A1 (en) * 2007-08-24 2009-04-02 Rajat Ghai Providing virtual services with an enterprise access gateway
CN103004167A (en) * 2010-04-06 2013-03-27 高通股份有限公司 Cooperative bandwidth aggregation using multipath transport
CN106789537A (en) * 2017-01-20 2017-05-31 网宿科技股份有限公司 A kind of VPN construction method and system
CN106878135A (en) * 2016-12-21 2017-06-20 新华三技术有限公司 A kind of connection method and device
CN107395683A (en) * 2017-06-26 2017-11-24 网宿科技股份有限公司 The system of selection of a kind of time source path and server
CN109474506A (en) * 2018-11-15 2019-03-15 中国联合网络通信集团有限公司 Establish the method and device of Virtual Private Network vpn service
CN110247836A (en) * 2018-12-29 2019-09-17 锐捷网络股份有限公司 Communication means and device based on multi-operator network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090086742A1 (en) * 2007-08-24 2009-04-02 Rajat Ghai Providing virtual services with an enterprise access gateway
CN103004167A (en) * 2010-04-06 2013-03-27 高通股份有限公司 Cooperative bandwidth aggregation using multipath transport
CN106878135A (en) * 2016-12-21 2017-06-20 新华三技术有限公司 A kind of connection method and device
CN106789537A (en) * 2017-01-20 2017-05-31 网宿科技股份有限公司 A kind of VPN construction method and system
CN107395683A (en) * 2017-06-26 2017-11-24 网宿科技股份有限公司 The system of selection of a kind of time source path and server
CN109474506A (en) * 2018-11-15 2019-03-15 中国联合网络通信集团有限公司 Establish the method and device of Virtual Private Network vpn service
CN110247836A (en) * 2018-12-29 2019-09-17 锐捷网络股份有限公司 Communication means and device based on multi-operator network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285798A (en) * 2021-12-22 2022-04-05 北京达佳互联信息技术有限公司 Data transmission method and device
CN114285798B (en) * 2021-12-22 2023-12-26 北京达佳互联信息技术有限公司 Data transmission method and device

Also Published As

Publication number Publication date
CN112822088B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
EP2169877B1 (en) Processing method and device for qinq termination configuration
US8385224B2 (en) Shared Wi-Fi / wireless broadband access
EP3021558B1 (en) Switching method for network interfaces, access device and computer storage medium
US20140369202A1 (en) Method, device, and system for message distribution
WO2022078475A1 (en) Application service path establishing method and apparatus for multi-card terminal, and storage medium, and terminal
CN103596290A (en) Wireless multi-network integration method
CN109218456B (en) Method and device for processing aging time of MAC address table
US20110231492A1 (en) Method and means for supporting user terminal to access network in fixed access network
CN107070790B (en) Route learning method and routing equipment
CN103262611A (en) Gateway relocation control method in mobile communication system, and control device
US20170171698A1 (en) Near Field Discovery Method, User Equipment, and Storage Medium
CN112822088B (en) Network connection method and device, electronic equipment, processor and storage medium
CN110769019B (en) Session processing method, device, system, storage medium and computing equipment
CN107786441B (en) Communication method, OpenFlow switch and communication system
CN110166518B (en) Session information transmission method, device, storage medium and electronic device
CN104869118B (en) A kind of method and system for realizing DDoS defence based on dynamic tunneling technique
US20150222591A1 (en) Method, Device, and System for Acquiring Internet Protocol Address
CN103327482B (en) Terminal and network method for handover control
CN106936718B (en) PPPoE message transmission method and PPPoE server
CN114286403A (en) Switching method and switching device for internet access mode of gateway equipment
CN109510882B (en) Communication method and device between game clients, storage medium and electronic device
CN114268578A (en) Data transmission method, device and equipment for switching line and storage medium
CN103856571A (en) Self-adaptive network connection method and system
CN111405025A (en) Data transmission method and device, transmission equipment and readable storage medium
EP2037709B1 (en) Mobile communication terminal

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
GR01 Patent grant
GR01 Patent grant