CN112751931A - Network connection method and device, electronic device, and medium - Google Patents

Network connection method and device, electronic device, and medium Download PDF

Info

Publication number
CN112751931A
CN112751931A CN202011610838.4A CN202011610838A CN112751931A CN 112751931 A CN112751931 A CN 112751931A CN 202011610838 A CN202011610838 A CN 202011610838A CN 112751931 A CN112751931 A CN 112751931A
Authority
CN
China
Prior art keywords
connection
addresses
address
racing
group
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
CN202011610838.4A
Other languages
Chinese (zh)
Other versions
CN112751931B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202011610838.4A priority Critical patent/CN112751931B/en
Publication of CN112751931A publication Critical patent/CN112751931A/en
Application granted granted Critical
Publication of CN112751931B publication Critical patent/CN112751931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/822Collecting or measuring resource availability data

Landscapes

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

Abstract

The disclosure provides a network connection method and a network connection device, belongs to the technical field of communication, and can be used in finance or other fields. The network connection method comprises the following steps: receiving a network connection request; acquiring M IP addresses corresponding to the websites to be accessed based on the network connection request; according to the historical connection power of each IP address, sequencing the M IP addresses to obtain an IP address sequence, wherein the higher the historical connection power, the higher the sequencing of the IP addresses is; dividing every N IP addresses in the IP address sequence into a racing connection group to obtain an address group sequence; and according to the sequence of each racing connection group in the address group sequence, preferably using N IP addresses in the racing connection group with the highest sequence to initiate a connection attempt in parallel until any one IP address is successfully connected or all the M IP addresses are failed to be connected. The present disclosure also provides an electronic device, and a computer-readable storage medium.

Description

Network connection method and device, electronic device, and medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a network connection method and apparatus, an electronic device, and a medium.
Background
Under the wave of development of digital economy, the effectiveness and stability of network connection are of great importance. When a network connection is made, for example, a website provides multiple IP addresses to the outside, the client will usually try to establish the connection again through different IP addresses according to a certain time interval. Therefore, one IP address is often required to be started after the connection is failed, and the system connection waiting or overtime time is long in the weak network environment, so that the user experience is poor.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a network connection method, a network connection apparatus, an electronic device, and a medium, which can race for connection using a plurality of IP addresses according to a historical connection power.
One aspect of the disclosed embodiments provides a network connection method. The network connection method comprises the following steps: receiving a network connection request; acquiring M IP addresses corresponding to the websites to be accessed based on the network connection request, wherein M is an integer greater than or equal to 2; connecting into power according to the history of each IP address in the M IP addresses, and sequencing the M IP addresses to obtain an IP address sequence; the historical IP addresses in the M IP addresses are connected to be higher in power, and the IP addresses are ranked more front; dividing every N IP addresses in the IP address sequence into a racing connection group to obtain an address group sequence, wherein N is an integer greater than or equal to 2, and N is less than or equal to M; and preferably using N IP addresses in the racing connection group with the highest sequence to initiate a connection attempt in parallel according to the sequence of each racing connection group in the address group sequence until any one IP address is successfully connected or all the M IP addresses are failed to be connected.
According to an embodiment of the present disclosure, before the sorting the M IP addresses according to the historical connection success rates of the M IP addresses, the method further includes: and acquiring the historical connection power of each IP address in the M IP addresses, wherein the historical connection power of one IP address comprises the historical connection success times and connection success time or the historical connection failure times and connection failure time of the IP address.
According to an embodiment of the present disclosure, the sorting the M IP addresses according to the historical connection success rates of the M IP addresses includes at least one of: the higher the historical connection success frequency, the higher the ranking of the IP addresses; when the historical connection success times are the same, the closer the IP address sequence of the latest connection success time to the current time is; the higher the historical connection failure times, the later the IP address sequencing is; or the IP addresses which are closer to the current moment at the latest connection failure moment are ranked more backwards when the historical connection failure times are the same.
According to an embodiment of the present disclosure, the connection attempt initiated by N IP addresses in parallel in the racing connection group includes: initiating a connection attempt by a first IP address within the racing connection group; and initiating a connection attempt by the second IP address in response to a predetermined time after the initiation of the connection attempt by the first IP address and the network not yet being successfully connected; the first IP address and the second IP address are two IP addresses which are arranged in the racing connection group and are adjacent to each other before and after the ranking.
According to the embodiment of the present disclosure, the preferentially using N IP addresses in the racing connection group with the top rank in parallel to initiate a connection attempt according to the sequence of each racing connection group in the address group sequence includes: after the N IP addresses in the first racing connection group are failed to be connected, the N IP addresses in the second racing connection group are used for initiating connection attempts in parallel; the first racing connection group and the second racing connection group are two racing connection groups which are immediately adjacent to each other in sequence in the address group sequence.
According to an embodiment of the present disclosure, the method further comprises: and selecting the IP address which is successfully connected firstly for subsequent data communication.
According to the embodiment of the present disclosure, the method further includes updating the historical connection power of each IP address in the M IP addresses according to the connection success or failure condition of the M IP addresses in the current network connection process.
According to the embodiment of the disclosure, the M IP addresses are divided into two types of addresses in an IPv4 format and addresses in an IPv6 format; wherein the sorting the M IP addresses to obtain the IP address sequence further comprises: and alternately sorting the addresses in the IPv6 format and the addresses in the IPv4 format in the M IP addresses, wherein the addresses in the IPv6 format are earlier than the addresses in the IPv4 format in the alternate sorting. Wherein N is 2.
In another aspect of the disclosed embodiments, a network connection device is provided. The device comprises a request receiving module, a first obtaining module, a sorting module, a group dividing module and a racing connection module. The request receiving module is used for receiving a network connection request. The first obtaining module is used for obtaining M IP addresses corresponding to the websites to be accessed based on the network connection request, wherein M is an integer greater than or equal to 2. The sorting module is used for connecting into power according to the history of each IP address in the M IP addresses and sorting the M IP addresses to obtain an IP address sequence; and the IP addresses with higher power are sorted more in the past in the M IP addresses. The group division module is used for dividing every N IP addresses in the IP address sequence into a racing connection group to obtain an address group sequence, wherein N is an integer greater than or equal to 2, and N is less than or equal to M. The racing connection module is used for preferably using N IP addresses in the racing connection group with the front ranking according to the sequence of each racing connection group in the address group sequence to initiate a connection attempt in parallel until any one IP address is successfully connected or all the M IP addresses are failed to be connected.
According to an embodiment of the present disclosure, the apparatus further includes a second obtaining module. The second obtaining module is configured to obtain the historical connection power of each IP address in the M IP addresses, where the historical connection power of one IP address includes historical connection success times and connection success time of the IP address, or historical connection failure times and connection failure time of the IP address.
According to an embodiment of the present disclosure, the apparatus further comprises a communication control module. The communication control module is used for selecting the IP address which is successfully connected firstly to carry out subsequent data communication.
According to an embodiment of the present disclosure, the apparatus further comprises a connection record update module. The connection record updating module is used for updating the historical connection power of each IP address in the M IP addresses according to the successful or failed connection condition of the M IP addresses in the network connection process.
Another aspect of the disclosed embodiments provides an electronic device. The electronic device includes one or more memories, and one or more processors. The memory stores executable instructions. The processor executes the executable instructions to implement the method as described above.
Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of embodiments of the present disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
One or more of the above-described embodiments may provide the following advantages or benefits: the historical connection power of the IP addresses is comprehensively considered when the IP addresses are in racing connection, the IP addresses with high historical connection power are preferentially used for carrying out racing connection, and the priority of trying to connect by using the IP addresses is reduced for the IP addresses with high historical racing failure rate, so that the connection power can be increased in a weak network environment, and a user is helped to quickly select the optimal connection address.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of a network connection method and apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a network connection method according to an embodiment of the disclosure;
FIG. 3 schematically shows a schematic diagram of a sequence of IP addresses according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a schematic diagram of an IP address racing connection within a racing connection group, according to one embodiment of the disclosure;
FIG. 5 schematically illustrates an IP address racing connection within a racing connection group, according to another embodiment of the disclosure;
FIG. 6 schematically shows a flowchart illustration of a network connection method applied to IPv6 and IPv4 racing connections, according to an embodiment of the disclosure;
FIG. 7 is a schematic diagram illustrating a network request transmission flow in the method flow of FIG. 6;
FIG. 8 schematically illustrates a block diagram of a network connection device according to an embodiment of the disclosure; and
fig. 9 schematically shows a block diagram of an electronic device adapted to implement a network connection method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Embodiments of the present disclosure provide a network connection method, apparatus, electronic device, and medium that integrate historical connection of IP addresses into power for multiple IP racing connections.
The network connection method according to an embodiment of the present disclosure includes first receiving a network connection request. And then acquiring M IP addresses corresponding to the websites to be accessed based on the network connection request, wherein M is an integer greater than or equal to 2. And then, according to the historical connection power of each IP address in the M IP addresses, sequencing the M IP addresses to obtain an IP address sequence, wherein the higher the historical connection power in the M IP addresses is, the higher the sequencing of the IP addresses is. And then dividing every N IP addresses in the IP address sequence into a racing connection group to obtain an address group sequence, wherein N is an integer greater than or equal to 2, and N is less than or equal to M. And then, according to the sequence of each racing connection group in the address group sequence, preferably using N IP addresses in the racing connection group which is ranked at the top to initiate a connection attempt in parallel until any IP address is successfully connected or M IP addresses are failed to be connected.
In this way, when the IP addresses are in racing connection through a plurality of IP addresses, historical connection power of the IP addresses is comprehensively considered, the IP addresses with high historical connection power are preferentially used for racing connection, and the priority of trying connection by using the IP addresses is reduced for the IP addresses with high historical racing failure rate, so that the connection power can be increased in a weak network environment, and a user is helped to quickly select the optimal connection address.
It should be noted that the network connection method and apparatus determined in the embodiments of the present disclosure may be used in the financial field, and may also be used in any field other than the financial field, which is not limited in the present disclosure.
Fig. 1 schematically illustrates an application scenario 100 of a network connection method and apparatus according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a terminal device 101, a network 102, and a server (cluster) 103. Network 102 is used to provide communication links between terminal devices 101 and servers (clusters) 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal device 101 to interact with server (cluster) 103 over network 102 to receive or send messages or the like. Various messaging client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on terminal device 101.
The server (cluster) 103 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101.
In one embodiment, a website may have multiple images. For example, the servers (clusters) 103 may be distributed in different places, with multiple IP addresses assigned corresponding to the same domain name. Therefore, the server in any place is broken, and the other server can be accessed, so that the access of the website is not influenced, and the backup function is realized.
In another embodiment, as the current IPv4(Internet Protocol Version 4, Version 4 of the Internet communication Protocol) address is exhausted, it is imperative to switch to IPv6(Internet Protocol Version 6, Version 6 of the Internet communication Protocol), and in the transition phase from IPv4 to IPv6, some websites will support both IPv4 connection and IPv6 connection, and provide both IPv4 format address and IPv6 format address to the outside.
When a user accesses a website managed and supported by the server (cluster) 103 through the terminal device 1, the terminal device 1 may execute the network connection method of the embodiment of the present disclosure, sort and group a plurality of IP addresses corresponding to the accessed website according to the historical connection power, and perform racing connection among the plurality of IP addresses in the group, thereby increasing the connection power of the website and increasing the speed of establishing network connection.
The network connection method provided by the embodiment of the present disclosure may be generally performed by the terminal device 101. Accordingly, the network connection device provided by the embodiment of the present disclosure may be generally disposed in the terminal device 101.
It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
Fig. 2 schematically shows a flow chart of a network connection method according to an embodiment of the present disclosure.
As shown in fig. 2, the network connection method according to the embodiment may include operations S210 to S250.
In operation S210, a network connection request is received. The user may initiate a connection request via a client in the terminal device 1. For example, a user inputs information of a website to be accessed at a search interface of a browser. The terminal device 1 receives the network connection request, wherein the request may contain, for example, a domain name (e.g., www.xxx.com) of the visited website.
In operation S220, M IP addresses corresponding to a website to be accessed are obtained based on the network connection request, where M is an integer greater than or equal to 2. For example, in one embodiment, the client may upload the domain name in the network connection request to the domain name resolution server. After performing DNS (Domain Name System) resolution, the Domain Name server obtains an IP address list corresponding to the website Domain Name, and then returns the IP address list to the client. In another embodiment, for example, when the client is not connected for the first time and an IP address list corresponding to the domain name is cached in the operating system of the terminal device 101, the IP address list corresponding to the domain name of the website may be directly obtained from the cache.
In operation S230, the M IP addresses are sorted according to the historical connection power of each IP address in the M IP addresses, so as to obtain an IP address sequence. And the IP addresses with higher power are sorted in the M IP addresses in advance.
Fig. 3 schematically shows a schematic diagram of a sequence of IP addresses according to an embodiment of the present disclosure.
Referring to fig. 3, a plurality of IP addresses (illustrated in fig. 3 as IP1, IP2, IP3, IP4, IP5, IP6, …, where the numbers are only used to distinguish different IP addresses, and do not have a sequential meaning) are returned, for example, through the DNS nameserver in operation S220. The IP addresses are connected into a power sequence according to respective histories, wherein the IP addresses with higher power are connected in the history and the power sequence is higher.
According to an embodiment of the present disclosure, a historical connection success rate of each IP address of M IP addresses (e.g., IP1, IP2, IP3, IP4, IP5, IP6, and …) may be obtained before operation S230, where the historical connection power of one IP address includes a historical connection success number and a connection success time, or a historical connection failure number and a connection failure time of the IP address.
Thus, when sorting the plurality of IP addresses (e.g., IP1, IP2, IP3, IP4, IP5, IP6), this may be done according to any one of the following logic, or a combination of the following: the higher the historical connection success frequency, the higher the ranking of the IP addresses; or when the historical connection success times are the same, the IP addresses which are closer to the current time at the latest connection success time are ranked more forward; or, the higher the historical connection failure times, the later the IP address ranking; or when the historical connection failure times are the same, the IP addresses which are closer to the current time at the latest connection failure time are ranked more backwards.
Next, in operation S240, every N IP addresses in the IP address sequence are divided into a racing connection group, so as to obtain an address group sequence, where N is an integer greater than or equal to 2, and N is less than or equal to M.
Referring to fig. 3, when N is 2, the IPs 1 to IP6 may be divided into three racing connection groups, where the IPs 1 and IP2 belong to one racing connection group, the IPs 3 and IP4 belong to one racing connection group, and the IPs 5 and IP6 belong to one racing connection group.
When N is 3, the IPs 1-IP 6 may be divided into two racing connection groups, where IP1, IP2 and IP3 belong to one racing connection group, and IP4, IP5 and IP6 belong to the other racing connection group.
In other embodiments, N may take the value of 4 or even other values. The specific value of N may be selected and determined according to practical applications, which is not limited in this disclosure.
Then, in operation S250, according to the sequence of each racing connection group in the address group sequence, the N IP addresses in the racing connection group ranked at the top are preferentially used to initiate a connection attempt in parallel until any one IP address is successfully connected or M IP addresses are all failed to be connected.
For example, when the first racing connection group and the second racing connection group are two immediately preceding and succeeding in sequence in the address group sequence, after the connection of all the N IP addresses in the first racing connection group fails, the N IP addresses in the second racing connection group are used to initiate a connection attempt in parallel.
With continued reference to fig. 3, as previously described, when N is 2, the IPs 1-6 may be divided into three racing connection groups. Then IP3 and IP4 will initiate connection attempts in parallel when both IP1 and IP2 fail to connect. The situation is similar when N is 3. Therefore, when the network connection is established, the connection can be accelerated, and the historical connection is ensured to be connected into the IP address with high power to try racing connection preferentially.
According to the embodiment of the present disclosure, in operation S250, if the race connection is successful, that is, after any one of the M IP addresses is successfully connected, the IP address which is successfully connected first is selected for subsequent data communication. Once connection is initiated, whether the network is successfully connected or not is no longer controlled by the operation of the electronic device, so that a situation that a plurality of IP addresses are successfully connected exists, and at the moment, the IP address which is successfully connected first is selected for subsequent data transmission. The IP address which is successfully connected firstly is also the IP address which consumes the shortest time for connection, the strongest and most stable network signal of the IP address is shown in the connection process, and the timeliness and the stability of network communication can be improved by establishing connection by using the IP address to carry out subsequent communication.
According to the embodiment of the present disclosure, after operation S250, the historical connection power of each IP address in the M IP addresses may also be updated according to the connection success or failure condition of the M IP addresses in the current network connection process. The updated historical connection power can be used as the basis for sorting the IP addresses in the next network connection.
In one embodiment, the N IP addresses within the racing connection group initiating connection attempts in parallel may be, for example, the N addresses initiating connection attempts simultaneously.
Or, in another embodiment, in order to reduce the additional CPU, memory and network overhead caused by concurrent multiple connections, a connection attempt may be initiated by an IP address ranked earlier in the N addresses, and when the IP address is not successfully connected within a predetermined time after the connection is initiated by the address, a connection attempt may be initiated by an IP address subsequent to the IP address. For example, for any two IP addresses within a racing connection group that are immediately adjacent in sequence (e.g., named first IP address and second IP address, respectively), a connection attempt is initiated by the first IP address, and then in response to a predetermined time after the connection attempt is initiated by the first IP address and the network has not yet been successfully connected, a connection attempt is initiated by the second IP address.
Fig. 4 and fig. 5 respectively illustrate diagrams of connection attempts performed by N IP addresses in the racing connection group with a delay when N is 2 and N is 3, where the predetermined time for initiating a request with a delay is 300ms, and when connection fails within 3s after a connection request is initiated, the connection is set to fail.
Reference is first made to fig. 4. Fig. 4 schematically illustrates a schematic diagram of an IP address racing connection within a racing connection group, where N-2, according to an embodiment of the present disclosure.
Referring to fig. 3, IP1 and IP2 belong to one racing connection group in fig. 4. In the racing connection group, connection is firstly initiated by IP1, and after 300ms, if IP1 is not successfully connected, IP2 initiates connection racing.
And then the IP1 and the IP2 are successfully connected, and the address is used as the address for subsequently sending the network request data.
After the IP1 and the IP2 initiate connection requests, the connection is either successful or unsuccessful within 3s from the time when the connection is initiated, and the connection fails. Whether the connection is successful or failed, the corresponding connection record can be added for the subsequent IP address sorting basis.
If the IP1 connection fails, the IP2 also fails to connect successfully (i.e., connection fails) within the originating connection request 3 s. All IP addresses within the racing connection set fail to connect. At this time, the racing connection is required to be started in the next racing connection group (including IP3 and IP4), and the racing connection process is similar to the illustration of IP1 and IP2 in fig. 4, and is not described in detail.
Reference is next made to fig. 5. Fig. 5 schematically illustrates a schematic diagram of an IP address racing connection within a racing connection group, where N-3, according to another embodiment of the present disclosure.
Referring to fig. 3, in fig. 5, IP1, IP2 and IP3 belong to a racing connection group. Within the race connection set, a connection is first initiated by IP 1; then after 300ms, if the IP1 is not successfully connected, the IP2 initiates a connection attempt to perform connection racing; if no connection is successful by IP1 or IP2 after 300ms, IP3 initiates a connection attempt to compete for connection.
And then IP1, IP2 and IP3, which address is successfully connected first, take the address as the address for subsequently sending network request data.
After the IP1, IP2, and IP3 initiate connection requests, the connection is either successful or unsuccessful within 3s from the time when the connection is initiated, and the connection fails. Whether the connection is successful or failed, the corresponding connection record can be added for the subsequent IP address sorting basis.
If IP1, IP2, and IP3 all fail to connect, then all IP addresses within the racing connection group fail to connect. At this time, the racing connection is required to be started in the next racing connection group (including IP4, IP5 and IP6), and the racing connection process is similar to the illustration of IP1, IP2 and IP3 in fig. 5, and is not described again.
According to an embodiment of the present disclosure, the M IP addresses acquired in operation S220 are classified into two types, an IPv 4-formatted address and an IPv 6-formatted address. Therefore, when the M IP addresses are sorted in operation S230 to obtain the IP address sequence, the IPv6 formatted address and the IPv4 formatted address in the M IP addresses may be alternately sorted, where the IPv6 formatted address is earlier than the IPv4 formatted address in the alternate sorting. For example, the IPv 6-formatted address and the IPv 4-formatted address may be historically concatenated into two columns, respectively, and then the two columns may be alternately interleaved and combined into one address sequence, wherein IPv6 precedes IPv4 in the process of interleaving.
At the transition stage from IPv4 to IPv6, in the early stage of IPv6 construction, due to the fact that infrastructure is still imperfect, connectivity or reliability problems can occur in IPv6 in a certain proportion. According to the embodiment of the disclosure, in the IPv4 and IPv6 dual-stack network environments, a client can simultaneously obtain IPv4 and IPv6 addresses corresponding to a domain name during a website access process, and sequentially and concurrently initiate network connections according to an alternate sequence of IPv6 and IPv4 and by adopting time delay of, for example, a hundred millisecond order until a certain IP address is successfully established, and subsequently, the IP address can be selected to send an actual transaction request. Therefore, by means of sequential trial, connection establishment is guaranteed to be preferentially selected in the IPv6 address format under the normal network environment of the IPv 6. Moreover, by means of concurrent attempts, the connection to the IPv4 can be rapidly degraded under the abnormal scene of the IPv6 network, the invalid waiting time of the user is reduced, and the user experience is improved.
Meanwhile, when the IPv6 and the IPv4 are sequenced, the IPv6 is arranged in front in the alternative sequencing, the historical connection power of the IP addresses is comprehensively considered, the historical connection power is preferentially used for carrying out racing connection on the IP addresses with high power, and the priority of trying to connect by using the IP addresses is reduced for the IP addresses with high historical racing failure rate, so that the preferential use of the IPv6 is guaranteed, the connection power can be increased in a weak network environment, and a user is helped to quickly select the optimal connection address.
According to the embodiment of the present disclosure, in the IP address sequence in which the IPv6 formatted address and the IPv4 formatted address are alternately ordered, N-2 may be set when the racing connection group is divided in operation S240, so that, when each racing connection group is, for example, one IPv6 formatted address and one IPv4 formatted address, a connection attempt may be initiated in parallel by the method of the embodiment of the present disclosure to perform connection racing. Fig. 6 and 7 illustrate an application example of alternately ordering IPv6 and IPv4 for two race connections. It is understood that this example is illustrative only and does not constitute any limitation on the embodiments of the disclosure.
Fig. 6 schematically shows a flowchart of a network connection method applied to IPv6 and IPv4 racing connection according to an embodiment of the present disclosure.
As shown in fig. 6, the process can be divided into three phases of DNS resolution 601, address ordering 602, and connection bidding 603.
In DNS resolution 601: and simultaneously acquiring an AAAA record (IPv6) and an A record resolution (IPv4) address from the DNS server. Among them, AAAA is recorded as a DNS record that resolves a domain name to an address in IPv6 format, and a is recorded as a DNS record that resolves a domain name to an address in IPv4 format.
In address ordering 602: connecting DNS analysis results with history to form power, alternately sequencing according to the sequence of IPv6 and IPv4, and ensuring that the sequence of IPv6 format is in the front. Thereby giving preference to establishing a connection using IPV 6.
At the connection race 603: on the basis of serially and sequentially trying to establish connection with a server (cluster) 103 by using an IPv6 address, an asynchronous thread is newly added, connection with the server 103 is tried in parallel by using an IP address in an IPv4 format, and according to the successful connection condition and the time consumed by connection, the IP address which successfully establishes the connection firstly is selected to send a subsequent actual transaction request.
To reduce the resource consumption of additional clients and servers for synchronously initiating the IPv4 and IPv6 connections, after the IPv6 format address attempts to establish the connection unsuccessfully for a period of time (e.g., extending for 300ms), the thread for racing the IPv4 format IP address connection is started (refer to the aforementioned illustration of fig. 4). And selecting an IP for subsequent connection according to the successful connection condition and the connection speed of the IPv6 and the IPv4 addresses in one racing connection group, and closing racing failed connection.
Therefore, under the normal IPv4/IPv6 dual-stack network environment, the connection can be established by preferentially using the IPv6 address, and the development trend of gradually migrating to the IPv6 address is met. In addition, the problem of poor user experience caused by unstable network environment and long time consumption for degrading IPv4 in the early construction stage of IPv6 can be effectively solved, the degradation can be rapidly carried out in the abnormal network environment of IPv6, the network connection is established by using the IPv4 address, the user waiting time is reduced, and the user experience is improved.
Fig. 7 is a schematic diagram illustrating a network request transmission flow in the method flow illustrated in fig. 6.
As shown in fig. 7, according to the embodiment of the present disclosure, an original flow (i.e., a manner of sequentially trying to connect IP by IP) of a network library may be modified, and operations S701 to S709 are added.
In operation S701, a connection is newly established.
In operation S702, a candidate IP address (DNS resolution and ranking) is obtained: according to the AAAA record (IPv6) and A record analysis (IPv4) addresses of the operator LocalDNS range, the IP address sequence is adjusted to be IPv6 and IPv4 which are alternately ordered and are preferentially used by IPv 6; and sequentially using the sorted IP addresses as candidate IPs for the subsequent attempt to establish the connection.
In operation S703, it is determined whether the acquired candidate IP address satisfies a race condition: the racing condition can include that firstly, the operator returns two types of IP addresses, the first IP address is in an IPv6 format, and the second IP address is in an IPv4 format; and the IPv4 and IPv6 addresses in each racing connection group do not fail in the application use process. If the race condition is satisfied, operation S704 is continued. If the competition conditions are not met, returning to the original flow of the network library.
In operation S704, the promoter thread 1(IPv 6): an attempt is made to establish a connection using the IPv6 address format.
In operation S705, it is determined whether the sub-thread 1 can successfully establish a connection within a prescribed time (e.g., 300 ms). If the connection can be established through the IPv6 address, returning to the original flow of the network library and sending the network request data by using the connection;
in operation S706, if the child thread 1 is not successfully connected within the specified time, the promoter thread 2(IPv 4): a parallel attempt is made to establish a connection using the IPv4 address format.
In operation S707, when the race is not completed, the network thread is blocked and waits for the execution result of the sub-thread. If no blocking occurs, the connection is continuously waited for.
In operation S708, it is determined whether the race is ended: and if at least one of the two sub-threads is successfully connected or both of the two sub-threads fail, finishing the racing.
In operation S709, a connection racing winner is selected: selecting the IP address which successfully establishes the connection firstly, and subsequently sending network request data by the user; if the connection is not successfully established by both the IPv4 and the IPv6 addresses in one racing connection group, reselecting the IPv6 address and the IPv4 address in the next racing connection group, and re-executing the processes from operation S701 to operation S709 until the connection is successfully established or all the candidate IP addresses fail to throw out the connection abnormity.
Therefore, according to the historical successful connection condition, the IP address with high success rate is preferentially selected to try to establish the connection, and the frequent concurrent increase of CPU, memory and network overhead caused by multiple racing connections is reduced. And in an IPv4/IPv6 dual stack but IPv6 abnormal network environment, the method can be degraded quickly, and the IPv4 address is used for establishing network connection, so that the waiting time of a user is reduced, and the user experience is improved.
Fig. 8 schematically illustrates a block diagram of a network connection device 800 according to an embodiment of the disclosure.
As shown in fig. 8, the network connection apparatus 800 according to the embodiment of the present disclosure may include a request receiving module 810, a first obtaining module 820, an ordering module 830, a group dividing module 840, and a racing connection module 850. According to other embodiments of the present disclosure, the network connection apparatus 800 may further include a second obtaining module 860, and/or a communication control module 870, and/or a connection record updating module 880. The network connection apparatus 800 may be used to implement the network connection method described with reference to fig. 2 to 7.
Specifically, the request receiving module 810 is configured to receive a network connection request.
The first obtaining module 820 is configured to obtain M IP addresses corresponding to websites to be accessed based on the network connection request, where M is an integer greater than or equal to 2.
The sorting module 830 is configured to sort the M IP addresses according to the historical connection power of each IP address in the M IP addresses to obtain an IP address sequence; and the IP addresses with higher power are sorted in the M IP addresses in advance.
The group dividing module 840 is configured to divide each N IP addresses in the IP address sequence into a racing connection group, so as to obtain an address group sequence, where N is an integer greater than or equal to 2, and N is not greater than M.
The racing connection module 850 is configured to preferentially use the N IP addresses in the racing connection group ranked in the top in parallel to initiate a connection attempt according to the sequence of each racing connection group in the address group sequence until any one IP address is successfully connected or M IP addresses are all unsuccessfully connected.
The second obtaining module 860 is configured to obtain a historical connection success rate of each IP address in the M IP addresses before the M IP addresses are sorted, where the historical connection power of one IP address includes a historical connection success number and a connection success time of the IP address, or a historical connection failure number and a connection failure time of the IP address.
The communication control module 870 is configured to select the IP address with the first successful connection for subsequent data communication after any one of the IP addresses is successfully connected.
The connection record updating module 880 is configured to update the historical connection power of each IP address in the M IP addresses according to the connection success or failure condition of the M IP addresses in the network connection process.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any of the request receiving module 810, the first obtaining module 820, the sorting module 830, the group dividing module 840, the racing connection module 850, the second obtaining module 860, the communication control module 870, and the connection record updating module 880 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the request receiving module 810, the first obtaining module 820, the ordering module 830, the group dividing module 840, the racing connection module 850, the second obtaining module 860, the communication control module 870, and the connection record updating module 880 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or as hardware or firmware in any other reasonable manner of integrating or packaging circuits, or as any one of three implementations of software, hardware, and firmware, or as a suitable combination of any of them. Alternatively, at least one of request receiving module 810, first obtaining module 820, ranking module 830, group partitioning module 840, racing connection module 850, second obtaining module 860, communication control module 870, and connection record updating module 880 may be implemented at least in part as a computer program module that, when executed, may perform corresponding functions.
Fig. 9 schematically shows a block diagram of an electronic device 900 adapted to implement a network connection method according to an embodiment of the present disclosure. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 9, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 900 may also include input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product is run on an electronic device, the program code being adapted to cause the electronic device to carry out the image recognition method provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 901, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, and downloaded and installed through the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A network connection method, comprising:
receiving a network connection request;
acquiring M IP addresses corresponding to the websites to be accessed based on the network connection request, wherein M is an integer greater than or equal to 2;
connecting into power according to the history of each IP address in the M IP addresses, and sequencing the M IP addresses to obtain an IP address sequence; the historical IP addresses in the M IP addresses are connected to be higher in power, and the IP addresses are ranked more front;
dividing every N IP addresses in the IP address sequence into a racing connection group to obtain an address group sequence, wherein N is an integer greater than or equal to 2, and N is less than or equal to M; and
and according to the sequence of each racing connection group in the address group sequence, preferably using N IP addresses in the racing connection group with the highest sequence to initiate a connection attempt in parallel until any one IP address is successfully connected or all the M IP addresses are failed to be connected.
2. The method of claim 1, wherein prior to said sorting the M IP addresses according to their historical connection success rates, the method further comprises:
and acquiring the historical connection power of each IP address in the M IP addresses, wherein the historical connection power of one IP address comprises the historical connection success times and connection success time or the historical connection failure times and connection failure time of the IP address.
3. The method of claim 2, wherein the sorting the M IP addresses according to their historical connection success rates comprises at least one of:
the higher the historical connection success frequency, the higher the ranking of the IP addresses;
when the historical connection success times are the same, the closer the IP address sequence of the latest connection success time to the current time is;
the higher the historical connection failure times, the later the IP address sequencing is; or
When the historical connection failure times are the same, the IP addresses which are closer to the current time at the latest connection failure time are ranked more backwards.
4. The method of claim 1, wherein initiating connection attempts in parallel by N IP addresses within the racing connection group comprises:
within the group of racing connections,
initiating a connection attempt by the first IP address; and
initiating a connection attempt by a second IP address in response to a predetermined time after the initiation of the connection attempt by the first IP address and the network not yet being successfully connected;
the first IP address and the second IP address are two IP addresses which are arranged in the racing connection group and are adjacent to each other before and after the ranking.
5. The method of claim 4, wherein the prioritizing the N IP addresses in the racing connection groups that are ranked first in the precedence order of the respective racing connection groups in the address group sequence to initiate connection attempts in parallel comprises:
after the N IP addresses in the first racing connection group are failed to be connected, the N IP addresses in the second racing connection group are used for initiating connection attempts in parallel;
the first racing connection group and the second racing connection group are two racing connection groups which are immediately adjacent to each other in sequence in the address group sequence.
6. The method of claim 1, wherein the method further comprises:
and selecting the IP address which is successfully connected firstly for subsequent data communication.
7. The method of claim 1, wherein the method further comprises:
and updating the historical connection power of each IP address in the M IP addresses according to the successful or failed connection condition of the M IP addresses in the network connection process.
8. The method according to any one of claims 1 to 7, wherein the M IP addresses are classified into two types of IPv4 format addresses and IPv6 format addresses; wherein the sorting the M IP addresses to obtain the IP address sequence further comprises:
alternately sorting the addresses in IPv6 format and the addresses in IPv4 format from the M IP addresses, wherein the addresses in IPv6 format are earlier than the addresses in IPv4 format in the alternate sorting; wherein N is 2.
9. A network connection device comprising:
a request receiving module for receiving a network connection request;
a first obtaining module, configured to obtain, based on the network connection request, M IP addresses of a website to be accessed, where M is an integer greater than or equal to 2, and the M IP addresses correspond to M network systems;
the sorting module is used for connecting power according to the history of each IP address in the M IP addresses and sorting the M IP addresses to obtain an IP address sequence; the historical IP addresses in the M IP addresses are connected to be higher in power, and the IP addresses are ranked more front;
the group division module is used for dividing every N IP addresses in the IP address sequence into a racing connection group to obtain an address group sequence, wherein N is an integer greater than or equal to 2, and N is less than or equal to M; and
and the racing connection module is used for preferentially using N IP addresses in the racing connection group with the top sequence to initiate a connection attempt in parallel according to the sequence of each racing connection group in the address group sequence until any one IP address is successfully connected or all the M IP addresses are failed to be connected.
10. An electronic device, comprising:
one or more memories storing executable instructions; and
one or more processors executing the executable instructions to implement the method of any one of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
CN202011610838.4A 2020-12-29 2020-12-29 Network connection method and device, electronic device, and medium Active CN112751931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011610838.4A CN112751931B (en) 2020-12-29 2020-12-29 Network connection method and device, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011610838.4A CN112751931B (en) 2020-12-29 2020-12-29 Network connection method and device, electronic device, and medium

Publications (2)

Publication Number Publication Date
CN112751931A true CN112751931A (en) 2021-05-04
CN112751931B CN112751931B (en) 2022-10-14

Family

ID=75649722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011610838.4A Active CN112751931B (en) 2020-12-29 2020-12-29 Network connection method and device, electronic device, and medium

Country Status (1)

Country Link
CN (1) CN112751931B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473455A (en) * 2021-06-30 2021-10-01 荣耀终端有限公司 Terminal application networking method and terminal
CN114844866A (en) * 2022-03-29 2022-08-02 武汉斗鱼鱼乐网络科技有限公司 Network request connection method and related equipment
CN115022277A (en) * 2022-06-22 2022-09-06 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment under dual-stack network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173123A1 (en) * 2012-12-14 2014-06-19 Apple Inc. Address family preference in multiple network interface environments
CN104468852A (en) * 2013-09-18 2015-03-25 腾讯科技(北京)有限公司 Method, device and system for client to select IP link address
CN108173976A (en) * 2016-12-07 2018-06-15 腾讯科技(深圳)有限公司 Domain name analytic method and device
US10178032B1 (en) * 2015-09-23 2019-01-08 EMC IP Holding Company LLC Wide area network distribution, load balancing and failover for multiple internet protocol addresses
CN109743364A (en) * 2018-12-20 2019-05-10 广州市百果园信息技术有限公司 Multistep connection control method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173123A1 (en) * 2012-12-14 2014-06-19 Apple Inc. Address family preference in multiple network interface environments
CN104468852A (en) * 2013-09-18 2015-03-25 腾讯科技(北京)有限公司 Method, device and system for client to select IP link address
US10178032B1 (en) * 2015-09-23 2019-01-08 EMC IP Holding Company LLC Wide area network distribution, load balancing and failover for multiple internet protocol addresses
CN108173976A (en) * 2016-12-07 2018-06-15 腾讯科技(深圳)有限公司 Domain name analytic method and device
CN109743364A (en) * 2018-12-20 2019-05-10 广州市百果园信息技术有限公司 Multistep connection control method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473455A (en) * 2021-06-30 2021-10-01 荣耀终端有限公司 Terminal application networking method and terminal
CN113473455B (en) * 2021-06-30 2022-05-27 荣耀终端有限公司 Terminal application networking method and terminal
CN114844866A (en) * 2022-03-29 2022-08-02 武汉斗鱼鱼乐网络科技有限公司 Network request connection method and related equipment
CN115022277A (en) * 2022-06-22 2022-09-06 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment under dual-stack network
CN115022277B (en) * 2022-06-22 2024-05-14 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment under dual-stack network

Also Published As

Publication number Publication date
CN112751931B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN112751931B (en) Network connection method and device, electronic device, and medium
JP7252356B2 (en) MOBILE EDGE COMPUTING NODE SELECTION METHOD, APPARATUS AND SYSTEM AND COMPUTER PROGRAM
US10257115B2 (en) Cloud-based service resource provisioning based on network characteristics
US20070094361A1 (en) Multipath routing process
US20140122572A1 (en) Enterprise service bus routing system
JP2013507694A (en) System and method for increasing data communication speed and efficiency
US10924528B1 (en) Method to determine use of local and remote applications in a distributed multiuser environment for shared file resources
EP4035344A1 (en) Redirector based on resolver transparency
CN110580305A (en) Method, apparatus, system, and medium for generating identifier
CN106911735B (en) Data acquisition method and device
CN110515631B (en) Method for generating application installation data packet, server and computer storage medium
CN103338233A (en) Load balancing device, Web server, request information processing method and system
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
CN113938461B (en) Domain name cache analysis query method, device, equipment and storage medium
JP5662956B2 (en) Cluster system
CN114513487A (en) Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium
CN114584629B (en) Transaction message processing method and device
CN110765392A (en) Data loading method and device, storage medium and terminal
CN113285979B (en) Network request processing method, device, terminal and storage medium
CN115190062A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN112702441B (en) Container-based access data processing method, device, system and storage medium
US10819775B2 (en) Systems and methods for server failover and load balancing
CN112839071B (en) Training system, training data access method and device, electronic equipment and medium
CN114116655A (en) Parallel file storage method, device, equipment and storage medium based on virtual machine
CN108848175B (en) Method and device for establishing TCP connection

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