CN109274584B - Access method and device for access server, client device and storage medium - Google Patents

Access method and device for access server, client device and storage medium Download PDF

Info

Publication number
CN109274584B
CN109274584B CN201811142164.2A CN201811142164A CN109274584B CN 109274584 B CN109274584 B CN 109274584B CN 201811142164 A CN201811142164 A CN 201811142164A CN 109274584 B CN109274584 B CN 109274584B
Authority
CN
China
Prior art keywords
access
access server
list
server
server list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811142164.2A
Other languages
Chinese (zh)
Other versions
CN109274584A (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.)
Zhuomi Private Ltd
Original Assignee
Zhuomi Private 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 Zhuomi Private Ltd filed Critical Zhuomi Private Ltd
Priority to CN201811142164.2A priority Critical patent/CN109274584B/en
Publication of CN109274584A publication Critical patent/CN109274584A/en
Application granted granted Critical
Publication of CN109274584B publication Critical patent/CN109274584B/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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The embodiment of the invention provides an access method, an access device, client equipment and a storage medium for accessing a server, wherein the method comprises the following steps: receiving an access request of a user; judging whether the self has a stored access server list or not; if so, selecting the access server with the highest access speed from the stored access server list as a target access server; if not, obtaining and storing an access server list from the scheduling server, and selecting an access server with the optimal network performance from the access server list as a target access server; accessing a target access server; judging whether the current is idle or not; if so, after detecting each access server in the access server list, sequencing and updating the access server list according to the access speed, so that the client can access a better access server.

Description

Access method and device for access server, client device and storage medium
Technical Field
The present invention relates to the field of network communications, and in particular, to an access method and apparatus for accessing a server, a client device, and a storage medium.
Background
With the development of network communication computing, many network service systems have appeared, such as: instant messaging, video playback, network games, and social platforms, among others. These network services systems typically employ a client-server architecture. The user accesses the access server providing the service through the client software downloaded to the terminal device, thereby realizing the service function provided by the network.
Currently, many network service systems provide transnational services. Access servers of network service systems are located around the world. For example: to cover a wider communication range, a large instant messaging system typically has hundreds or even thousands of access servers located in various regions around the world.
The client needs to access an access server of instant messaging, and a target access server needs to be determined first. Firstly, a client sends an access request which is sent to a scheduling server of a network operator; the scheduling server selects a plurality of instant messaging access servers with optimal network performance in the country or region where the client is located as available access servers according to the country or region where the client is located, such as China or the United states, and generates a server list to return to the client; then, the client selects a target access server in the order of the server list and attempts to access the target access server.
The scheduling server only considers the network performance of the target access server when selecting the target access server. Therefore, in the actual operation process, even if the network performance of the target access server is optimal, the client may not be able to access the target access server, or the communication quality after accessing the target access server is not high. It can be seen that the target access server is not the optimal access server from the client perspective.
Disclosure of Invention
Embodiments of the present invention provide an access method, an access device, a client device, and a storage medium for accessing a server, so that a client accesses a better access server. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an access method for accessing a server, where the method includes: an access process and an access server list updating process;
wherein, the access process comprises:
receiving an access request of a user;
judging whether the self has a stored access server list or not;
if so, selecting the optimal access server from the stored access server list as a target access server; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle;
if not, obtaining and storing an access server list from the scheduling server, and selecting an optimal access server from the access server list as a target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
accessing a target access server;
the access server list update procedure includes:
when the access server list is idle, detecting the access speed of each access server in the access server list;
sequencing each access server in the access server list by taking the access speed as a quality index;
and updating the access server list.
Optionally, the obtaining and storing the access server list from the scheduling server includes:
sending an access request containing the far-end IP address of the client equipment to a dispatching server so that the dispatching server can analyze a network operator to which the client equipment belongs according to the far-end IP address of the client equipment and calculate by adopting an IP positioning GEOIP algorithm to obtain a target country region; taking each access server in a target country region as a candidate access server, sorting the candidate access servers in each candidate access server of the target country region by taking the network performance of the access servers as a good and bad index according to a network operator to which client equipment belongs, generating an access server list, and returning the access server list to the client equipment;
and receiving and storing the access server list returned by the scheduling server.
Optionally, the detecting the access speed of each access server in the access server list includes:
respectively sending Ping messages to each access server in the access server list;
recording the sending time of the Ping message and the receiving time of the Ping response message;
calculating the access speed of each access server accessed to the access server list according to the sending time of the Ping message and the receiving time of the Ping response message;
the sorting and updating of the access server list by using the access speed as the quality index comprises the following steps:
and sequencing the access servers in the access server list according to the access speed, and storing the sequenced access server list.
Optionally, the scheduling server ranks, in each candidate access server in the target country region according to a network operator to which the client device belongs, the candidate access servers using the network performance of the access server as a quality index to generate an access server list, where the method includes:
determining a target country region containing the geographic position according to the geographic position of the client device;
obtaining each candidate access server of an operator to which the client equipment belongs in the target country region as an undetermined access server;
acquiring the historical access rate of each user of each pending access server as the network performance of the access server;
and sequencing the access servers to be determined by taking the network performance of the access servers as a quality index to generate an access server list.
Optionally, the step of performing access speed detection on each access server in the access server list during idle time includes:
and in idle time, regularly detecting the access speed of each access server in the access server list.
Optionally, the method further includes: and if the target access server is not accessed successfully, selecting the next access server from the access server list as the target access server, and executing the step of accessing the target access server.
In a second aspect, an embodiment of the present invention provides an access apparatus for accessing a server, where the apparatus includes: the device comprises an access module and a list updating module;
the access module comprises:
a receiving unit: the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving an access request of a user;
the judging unit is used for judging whether the self has a stored access server list;
a first selection unit: the first judging unit is used for selecting an optimal access server from a stored access server list as a target access server when the judging result of the first judging unit is yes; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle;
a second selection unit: the access server list is obtained from the scheduling server and stored when the judgment result of the first judgment unit is negative, and the optimal access server is selected from the access server list as a target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
an access unit: used for accessing the target access server;
the list update module includes:
the detection unit is used for detecting the access speed of each access server in the access server list in idle time;
an update unit: the method is used for sequencing each access server in the access server list by taking the access speed as a good and bad index after the detection unit detects the access speed of each access server in the access server list in idle state, and updating the access server list.
Optionally, the second selecting unit includes: the device comprises an access request sending subunit, a list receiving subunit and a selecting subunit;
the access request sending subunit is used for sending an access request containing the far-end IP address of the client device to the scheduling server so that the scheduling server can analyze the network operator of the client device according to the far-end IP address of the client device and calculate by adopting an IP positioning GEOIP algorithm to obtain a target country region; taking each access server in a target country region as a candidate access server, sorting the candidate access servers in each candidate access server of the target country region by taking the network performance of the access servers as a good and bad index according to a network operator to which client equipment belongs, generating an access server list, and returning the access server list to the client equipment;
the list receiving subunit is used for receiving and storing the access server list returned by the scheduling server;
and the selection subunit is used for selecting the optimal access server from the access server list as the target access server.
Optionally, the detecting unit is specifically configured to send a Ping message to each access server in the access server list respectively when the detecting unit is idle, and record message sending time; recording the receiving time of the Ping response message, and calculating the access speed of accessing to each access server according to the sending time of the Ping response message and the receiving time of the Ping response message;
the updating unit is specifically configured to, when the detecting unit is idle, perform access speed detection on each access server in the access server list, sort the access servers in the access server list by using the access speed as a good/bad index, and store the sorted access server list.
Optionally, the detection unit is specifically configured to: and in idle time, regularly detecting the access speed of each access server in the access server list.
Optionally, the apparatus further comprises: a third selecting unit; and the access unit is used for selecting the next access server from the access server list as the target access server when the target access server is unsuccessfully accessed, and triggering the access unit to execute the access to the target access server.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the bus;
a memory for storing a computer program;
a processor for executing a program stored in the memory to perform the method steps of any of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the caption detection method according to any one of the first aspects.
According to the access method, the access device, the client equipment and the storage medium of the access server provided by the embodiment of the invention, the access speed of the access servers in the access server list is detected one by one when the client is idle, the access speed is used as a quality index to sequence the access servers in the server list, and the access server list is updated. When the target access server is determined, not only the network performance of the target access server is considered, but also the network link performance between the client and the target access server is considered, so that the client can determine the access server with higher speed as the target access server, and the problem caused by determining the target access server only by considering the network performance of the access server is avoided: the client can not access the target access server or the communication quality is poor after accessing the target access server, namely, the client can access a better access server.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1a is a schematic flowchart of an access process in an access method of an access server according to an embodiment of the present invention;
FIG. 1b is a schematic flowchart illustrating a process of updating a stored access server list during idle in the embodiment shown in FIG. 1 a;
fig. 2a is another schematic flow chart of an access process of an access method of an access server according to an embodiment of the present invention;
FIG. 2b is a schematic flowchart illustrating a process of updating the stored access server list during idle in the embodiment shown in FIG. 2 a;
fig. 3 is a schematic structural diagram of a determining apparatus of a target access server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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.
In order to enable a client to access a better access server, embodiments of the present invention provide an access method and apparatus for an access server, a client device, and a storage medium. The access speed of each access server in the access server list is detected one by the client when the client is idle, the access speed is used as a good and bad index, the access servers in the access server list are sequenced and updated, the link condition from the client to the access server is considered, the client can access a target access server with a high access speed, the condition that the client cannot access the target access server or the communication quality is poor after the client accesses the target access server due to the fact that the network performance of the target access server is only considered is avoided, and a user can access the access server with a better quality.
The access method of the access server provided by the embodiment of the invention is applied to the client equipment, the access process and the access server list updating process. In the embodiment of the present invention, the client device is not limited, and may be: desktop computers, portable computers or intelligent mobile terminals, etc.
As shown in fig. 1a, the method comprises the following steps:
s101, receiving an access request of a user.
In the embodiment of the invention, when a user needs to realize a network service function, an access request needs to be sent to client equipment at first to establish communication connection between the client equipment and an access server. For example: for the instant messaging system, the client device needs to access to the instant messaging access server to realize the login of the user. The client device detects that the user clicks a login button on the instant messaging client, namely an access request of the user is received.
S102, judging whether the self has a stored access server list, if so, executing step S103, otherwise, executing step S104.
S103, if yes, selecting the optimal access server from the stored access server list as the target access server. Step S105 is performed.
Specifically, in this step, the access server arranged first in the access server list may be selected as the target access server. Here, the stored access server list may include the respective access servers that have been arranged in order, where the access server arranged first serves as the optimal access server in the access server list.
In this embodiment, the stored access server list has two situations:
one is that: an un-updated list of access servers obtained from the scheduling server. The access server list is obtained from the scheduling server for accessing the access server in the case where the access server list is not stored in the client device, and the access server list is ordered by using the network performance of the access server as a good/bad index, wherein the access server arranged at the first position is the access server with the best network performance in the access server list.
The other is as follows: and updating the stored access server list in idle time to obtain an access server list, wherein the access server list is ordered by taking the access speed as a good and bad index, and the access server arranged at the first position is the access server with the highest access speed in the access server list.
And S104, obtaining and storing the access server list from the scheduling server, and selecting the optimal access server from the access server list as a target access server.
Specifically, in this step, the access server arranged first in the access server list may be selected from the access server list obtained by the scheduling server as the target access server. As can be seen from the foregoing, the arrangement is the access server with the best network performance.
In the embodiment of the invention, whether an accessible server list is stored locally is judged, and under the condition that the server list is stored, an optimal access server is selected from the locally stored access server list as a target access server and connection is established. In this case, the access server list does not need to be obtained from the scheduling server, and the access speed of the user client is improved.
And S105, accessing to the target access server.
In particular, a long connection between the client device and the target access server may be established.
In this embodiment, a process of updating the stored access server list in an idle state is shown in fig. 1b, and includes:
s106, in idle, detecting the access speed of each access server in the access server list;
s107, sequencing each access server in the access server list by using the access speed as a quality index;
and S108, updating the access server list.
In the embodiment of the invention, when the client is idle, the Ping detection attempt of the access server list is initiated by the client equipment, and the access server list is sorted and updated according to the access speed. For example: for the instant communication system, the client is idle, that is, the user is in a login state but does not receive and send messages, at the moment, the client performs access speed detection on each access server in the access server list, sorts each access server by taking the access speed as a quality index, and updates the access server list.
According to the access method of the access server provided by the embodiment of the invention, the access speed of the access servers in the access server list is detected one by the client when the client is idle, the access speed is used as a quality index to sequence the access servers in the server list, the access server list is updated, and when the target access server is determined, the network link condition between the client and the access server is considered, so that the condition that the client cannot access the target access server or the communication quality is poor after the client accesses the target access server because the target access server is determined only by considering the network performance of the access server is avoided, and a user can access a better access server.
As an implementation manner of the embodiment of the present invention, as shown in fig. 2a, an access process of an access method for accessing a server provided in the embodiment of the present invention may include:
s201, receiving an access request of a user.
In the embodiment of the invention, when the user needs to realize the network service function, the user needs to send an access request to the client device. For example: for the instant communication system, the client device detects that the user clicks a login button on the instant communication client, namely, an access request of the user is received.
S202, judging whether the self has a stored access server list, if so, executing the step S203; if not, step S204 is performed.
S203, selecting the optimal access server from the stored access server list as the target access server. Step S205 is performed.
S204, obtaining and storing the access server list from the scheduling server, and selecting the optimal access server from the access server list as a target access server.
In the embodiment of the invention, when a user needs to realize a network service function, a client firstly judges whether an accessible server list is stored locally. If so, the client selects the access server with the highest access speed as a target access server; and if not, acquiring and storing the access server list from the scheduling server, and selecting the access server with the optimal network performance as the target access server. Taking an instant communication system as an example, when a client requests to establish communication, the client firstly judges whether an accessible access server list is stored locally, if so, an access server with the highest access speed is selected from the stored access server list as a target access server; if not, the HTTP request is sent to the scheduling server, the access server list returned by the scheduling server is obtained and stored, and the access server with the highest access speed is used as the target access server, so that a user can access the network as soon as possible, and the user experience is improved.
Optionally, the scheduling server first analyzes the HTTP request including the remote IP address of the client, calculates the latitude and longitude where the client device is located by using the GEOIP (IP positioning algorithm), obtains the geographic location where the client device is located, and determines the target country region including the geographic location. Specifically, if the target country is wide in region, such as china, russia, and the united states, the country in which the client device is located may be used as the target country region; for countries with relatively narrow territories, the country in which the client device is located and its neighboring countries may be determined as target country regions, for example, when the geographic location is in france or uk, a plurality of european countries may be determined as target country regions. And then, obtaining each candidate access server of the network operator to which the client equipment belongs in the target country region as an access server to be determined, and sequencing the access servers to be determined according to the advantages and disadvantages of the access servers to be determined by taking the user historical access rate of each access server to be determined as a network performance index to obtain an access server list.
Optionally, the scheduling server determines a country region where the user is located by analyzing a remote IP address of the user client included in the HTTP request and using a GEOIP (IP positioning algorithm), and uses each candidate access server of a network operator to which the client device belongs in the target country region as an access server to be determined; and then, sequencing the servers to be accessed by taking the distance between the client equipment and the physical position of each server to be accessed as an index, generating an access server list, and returning the access server list to the client.
And S205, accessing to a target access server.
S206, judging whether the target server is accessed successfully. If not, step S207 is executed, and if it is successful, step S208 is executed, and the flow ends.
S207, taking the next access server in the access server list as a target server; step S205 is performed.
According to the access method of the access server provided by the embodiment of the invention, the access speed of the access servers in the access server list is detected one by the client when the client is idle, the access speed is used as a quality index to sequence the access servers in the server list, the access server list is updated, and when the target access server is determined, the network link condition between the client and the access server is considered, so that the condition that the client cannot access the target access server or the communication quality is poor after the client accesses the target access server because the target access server is determined only by considering the network performance of the access server is avoided, and a user can access a better access server.
In addition, in this embodiment, when the scheduling server generates the access server list, according to statistics of historical data, the access server with the fastest access speed corresponding to the network operator to which the user client belongs is obtained through a big data algorithm, so that the client obtains an accessible server that is better for the operator, and the client and the access server can be connected smoothly.
In addition, in this embodiment, when the target access server is unsuccessfully accessed, the next access server is selected from the access server list as the target access server for access, thereby further ensuring that the client can access the access server.
As an implementation manner of the embodiment of the present invention, as shown in fig. 2b, a method for updating an access server list according to the embodiment of the present invention may include:
in this embodiment, a process of updating the stored access server list in an idle state is shown in fig. 2b, and includes:
s209, judging whether the current is idle, if so, executing the step S402; if not, no further steps are performed.
S210, detecting the access speed of each access server in the access server list;
specifically, the Ping messages can be respectively sent to each access server in the access server list, the sending time of the Ping messages and the receiving time of the Ping response messages are recorded, and the access speed of accessing to each access server is calculated according to the sending time of the Ping messages and the receiving time of the Ping response messages;
s211, sequencing each access server in the access server list by using the access speed as a good and bad index;
s212, updating the access server list;
s213, starting a timer;
s214, judging whether the timing time length reaches the preset list updating time length, if so, returning to the step S209, otherwise, not executing other steps.
According to the access method of the access server provided by the embodiment of the invention, the access speed of the access servers in the access server list is detected one by the client when the client is idle, the access speed is used as a quality index to sequence the access servers in the server list, the access server list is updated, and when the target access server is determined, the network link condition between the client and the access server is considered, so that the condition that the client cannot access the target access server or the communication quality is poor after the client accesses the target access server because the target access server is determined only by considering the network performance of the access server is avoided, and a user can access a better access server.
In addition, in this embodiment, after the access speed of each access server in the access server list is detected at regular time, the access server list is sorted and updated according to the access speed. The time length for speed detection is preset by the timer, so that a better target access server can be further selected according to the access speed of the access server in the current access server list, and the method is more suitable for network change.
An embodiment of the present invention provides an access apparatus for accessing a server, and as shown in fig. 3, the apparatus includes: the device comprises an access module and a list updating module;
the access module 310 includes:
the receiving unit 311 is configured to receive an access request of a user.
The determining unit 312 is configured to determine whether there is a stored access server list.
A first selecting unit 313, configured to select an optimal access server from the stored access server list as a target access server when the first determining unit determines that the access server is the target access server; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle;
a second selecting unit 314, configured to, when the first determining unit determines that the access server is not the target access server, obtain and store an access server list from the scheduling server, and select an optimal access server from the access server list as the target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
an accessing unit 315, configured to access a target access server.
The list update module 320 includes:
a detecting unit 321, configured to perform access speed detection on each access server in the access server list when the access server is idle;
the update unit 322: the method is used for sequencing each access server in the access server list by taking the access speed as a good and bad index after the detection unit detects the access speed of each access server in the access server list in idle state, and updating the access server list.
According to the access device of the access server provided by the embodiment of the invention, the access speed of the access servers in the access server list is detected one by the client when the client is idle, the access speed is used as a quality index to sequence the access servers in the server list, the access server list is updated, and when the target access server is determined, the network link condition between the client and the access server is considered, so that the condition that the client cannot access the target access server or the communication quality is poor after the client accesses the target access server because the target access server is determined only by considering the network performance of the access server is avoided, and a user can access a better access server.
As an implementation manner of the embodiment of the present invention, the second selecting unit includes:
an access request sending subunit, configured to send an access request including a remote IP address of the client device to the scheduling server, so that the scheduling server parses the network operator of the client device according to the remote IP address of the client device and calculates and obtains a target country region by using an IP positioning GEOIP (IP positioning algorithm) algorithm; taking each access server in a target country region as a candidate access server, sorting the candidate access servers in each candidate access server of the target country region by taking the network performance of the access servers as a good and bad index according to a network operator to which client equipment belongs, generating an access server list, and returning the access server list to the client equipment;
the list receiving subunit is used for receiving and storing the access server list returned by the scheduling server;
and the selecting subunit is used for selecting the optimal access server from the access server list as the target access server.
As an implementation manner of the embodiment of the present invention, the detecting unit is specifically configured to send Ping messages to each access server in an access server list respectively when the detecting unit is idle, and record message sending time; recording the receiving time of the Ping response message, and calculating the access speed of accessing to each access server according to the sending time of the Ping response message and the receiving time of the Ping response message;
as an implementation manner of the embodiment of the present invention, the updating unit is specifically configured to, when the detecting unit is idle, perform access speed detection on each access server in the access server list, sort each access server in the access server list by using access speed as a good/bad index, and store the sorted access server list.
As an implementation manner of the embodiment of the present invention, the detecting unit is specifically configured to perform access speed detection on each access server in the access server list at regular time when the access server is idle.
As an implementation manner of the embodiment of the present invention, the apparatus further includes:
and the third selection unit is used for selecting the next access server from the access server list as the target access server when the target access server is unsuccessfully accessed, and triggering the access unit to execute the access to the target access server.
According to the access device of the access server provided by the embodiment of the invention, the access speed of the access servers in the access server list is detected one by the client when the client is idle, the access speed is used as a quality index to sequence the access servers in the server list, the access server list is updated, and when the target access server is determined, the network link condition between the client and the access server is considered, so that the condition that the client cannot access the target access server or the communication quality is poor after the client accesses the target access server because the target access server is determined only by considering the network performance of the access server is avoided, and a user can access a better access server.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404.
A memory 403 for storing a computer program.
The processor 401, when executing the program stored in the memory 403, implements the following steps:
an access process and an access server list updating process;
wherein, the access process comprises:
receiving an access request of a user;
judging whether the self has a stored access server list or not;
if so, selecting the optimal access server from the stored access server list as a target access server; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle;
if not, obtaining and storing an access server list from the scheduling server, and selecting an optimal access server from the access server list as a target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
accessing a target access server;
the access server list update procedure includes:
when the access server list is idle, detecting the access speed of each access server in the access server list;
sequencing each access server in the access server list by taking the access speed as a quality index;
and updating the access server list.
The electronic equipment provided by the embodiment of the invention realizes the access method of accessing the access server, and the access servers in the access server list are subjected to access speed detection one by the client side in idle, the access speed is used as a good and bad index to sequence the access servers in the server list, the access server list is updated, and the network link condition between the client side and the access server is considered when the target access server is determined, so that the condition that the client side cannot access the target access server or the communication quality is poor after the target access server is accessed due to the fact that the target access server is determined only by considering the network performance of the access server is avoided, and a user can access a better access server.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The method provided by the embodiment of the invention can be applied to client equipment. Specifically, the client device may be: desktop computers, portable computers or intelligent mobile terminals, etc. Without limitation, any electronic device that can implement the present invention is within the scope of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when executed by a processor, the computer program implements a first step of:
an access process and an access server list updating process;
wherein, the access process comprises:
receiving an access request of a user;
judging whether the self has a stored access server list or not;
if so, selecting the optimal access server from the stored access server list as a target access server; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle;
if not, obtaining and storing an access server list from the scheduling server, and selecting an optimal access server from the access server list as a target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
accessing a target access server;
the access server list update procedure includes:
when the access server list is idle, detecting the access speed of each access server in the access server list;
sequencing each access server in the access server list by taking the access speed as a quality index;
and updating the access server list.
The embodiment of the invention can detect the access speed of the access servers in the access server list one by one when the client is idle, sequence each access server in the server list by taking the access speed as a quality index, update the access server list, and consider the network link condition between the client and the access server when determining the target access server, thereby avoiding the condition that the client cannot access the target access server or the communication quality is poor after accessing the target access server because the target access server is determined only by considering the network performance of the access server, and enabling the user to access the more excellent access server.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. An access method for accessing a server, applied to a client device, the method comprising: an access process and an access server list updating process;
wherein, the access process comprises:
receiving an access request of a user;
judging whether the self has a stored access server list or not;
if so, selecting the optimal access server from the stored access server list as a target access server; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle; the list of the access servers that are not updated is: the access server list is sorted by taking the network performance of the access server as a quality index;
if not, obtaining and storing an access server list from the scheduling server, and selecting an optimal access server from the access server list as a target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
accessing a target access server;
the access server list update procedure includes:
when the access server list is idle, detecting the access speed of each access server in the access server list;
sequencing each access server in the access server list by taking the access speed as a quality index;
updating the access server list;
the step of detecting the access speed of each access server in the access server list in idle time comprises the following steps:
and in idle time, regularly detecting the access speed of each access server in the access server list.
2. The method of claim 1, wherein obtaining and storing the access server list from the scheduling server comprises:
sending an access request containing the far-end IP address of the client equipment to a dispatching server so that the dispatching server can analyze a network operator to which the client equipment belongs according to the far-end IP address of the client equipment and calculate by adopting an IP positioning GEOIP algorithm to obtain a target country region; taking each access server in a target country region as a candidate access server, sorting the candidate access servers in each candidate access server of the target country region by taking the network performance of the access servers as a good and bad index according to a network operator to which client equipment belongs, generating an access server list, and returning the access server list to the client equipment;
and receiving and storing the access server list returned by the scheduling server.
3. The method according to claim 1 or 2, wherein the detecting access speed of each access server in the access server list comprises:
respectively sending Ping messages to each access server in the access server list;
recording the sending time of the Ping message and the receiving time of the Ping response message;
calculating the access speed of each access server accessed to the access server list according to the sending time of the Ping message and the receiving time of the Ping response message;
the sorting and updating of the access server list by using the access speed as the quality index comprises the following steps:
and sequencing the access servers in the access server list according to the access speed, and storing the sequenced access server list.
4. The method of claim 2, wherein the scheduling server ranks the candidate access servers in each candidate access server of the target country according to a network operator to which the client device belongs, with network performance of the access server as a goodness indicator, and generates the access server list, including:
determining a target country region containing the geographic position according to the geographic position of the client device;
obtaining each candidate access server of an operator to which the client equipment belongs in the target country region as an undetermined access server;
acquiring the historical access rate of each user to be accessed into the server as the network performance of the access server;
the network performance of the access server is used as a quality index to sort the access servers to be determined, and an access server list is generated;
and in idle time, regularly detecting the access speed of each access server in the access server list.
5. The method of claim 1, further comprising: and if the target access server is not accessed successfully, selecting the next access server from the access server list as the target access server, and executing the step of accessing the target access server.
6. An access device for accessing a server, the access device being applied to a client device, the device comprising: the device comprises an access module and a list updating module;
the access module comprises:
a receiving unit: the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving an access request of a user;
the first judging unit is used for judging whether the first judging unit has a stored access server list;
a first selection unit: the first judging unit is used for selecting an optimal access server from a stored access server list as a target access server when the judging result of the first judging unit is yes; the stored access server list is: obtaining an access server list which is not updated from a scheduling server, or updating the stored access server list when the scheduling server is idle; the list of the access servers that are not updated is: the access server list is sorted by taking the network performance of the access server as a quality index;
a second selection unit: the access server list is obtained from the scheduling server and stored when the judgment result of the first judgment unit is negative, and the optimal access server is selected from the access server list as a target access server; the list of access servers obtained from the scheduling server is: the access server list is sorted by taking the network performance of the access server as a quality index;
an access unit: used for accessing the target access server;
the list update module includes:
the detection unit is used for detecting the access speed of each access server in the access server list in idle time;
an update unit: the detection unit is used for sequencing each access server in the access server list by taking the access speed as a good and bad index after detecting the access speed of each access server in the access server list when the detection unit is idle, and updating the access server list;
the detection unit is specifically configured to: and in idle time, regularly detecting the access speed of each access server in the access server list.
7. The apparatus of claim 6, wherein the second selecting unit comprises: the device comprises an access request sending subunit, a list receiving subunit and a selecting subunit;
the access request sending subunit is used for sending an access request containing the far-end IP address of the client device to the scheduling server so that the scheduling server can analyze the network operator to which the client device belongs according to the far-end IP address of the client device and calculate and obtain a target country region by adopting an IP positioning GEOIP algorithm; taking each access server in a target country region as a candidate access server, sorting the candidate access servers in each candidate access server of the target country region by taking the network performance of the access servers as a good and bad index according to a network operator to which client equipment belongs, generating an access server list, and returning the access server list to the client equipment;
the list receiving subunit is used for receiving and storing the access server list returned by the scheduling server;
and the selection subunit is used for selecting the optimal access server from the access server list as the target access server.
8. The apparatus according to claim 6 or 7, wherein the detecting unit is specifically configured to, when idle, send Ping messages to each access server in the access server list, and record message sending time; recording the receiving time of the Ping response message, and calculating the access speed of accessing to each access server according to the sending time of the Ping response message and the receiving time of the Ping response message;
the updating unit is specifically configured to, when the detecting unit is idle, perform access speed detection on each access server in the access server list, sort the access servers in the access server list by using the access speed as a good/bad index, and store the sorted access server list.
9. The apparatus of claim 6, further comprising: a third selecting unit; and the access unit is used for selecting the next access server from the access server list as the target access server when the target access server is unsuccessfully accessed, and triggering the access unit to execute the access to the target access server.
10. The client device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
11. A computer-readable storage medium comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 5.
CN201811142164.2A 2018-09-28 2018-09-28 Access method and device for access server, client device and storage medium Active CN109274584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811142164.2A CN109274584B (en) 2018-09-28 2018-09-28 Access method and device for access server, client device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811142164.2A CN109274584B (en) 2018-09-28 2018-09-28 Access method and device for access server, client device and storage medium

Publications (2)

Publication Number Publication Date
CN109274584A CN109274584A (en) 2019-01-25
CN109274584B true CN109274584B (en) 2021-10-15

Family

ID=65198760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811142164.2A Active CN109274584B (en) 2018-09-28 2018-09-28 Access method and device for access server, client device and storage medium

Country Status (1)

Country Link
CN (1) CN109274584B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769030B (en) * 2019-02-02 2022-01-11 京东科技控股股份有限公司 Method and apparatus for controlling access of applications
CN110855646B (en) * 2019-10-31 2021-08-06 苏州经贸职业技术学院 Approach loading system for network computer and application method
CN111147591B (en) * 2019-12-28 2023-04-07 杭州拓深科技有限公司 Optimization method for dynamic allocation equipment server of Internet of things
CN112422367B (en) * 2020-11-11 2021-10-22 成都渊数科技有限责任公司 Method and system for realizing network delay detection by cloud control strategy and multi-protocol
CN112436981B (en) * 2020-11-16 2021-10-15 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112637026B (en) * 2020-12-21 2022-11-29 厦门亿联网络技术股份有限公司 Access forwarding method and system for global service request
CN113923195A (en) * 2021-09-30 2022-01-11 完美世界(北京)软件科技发展有限公司 Scheduling system and method for instant communication service
CN114900395A (en) * 2022-05-09 2022-08-12 杭州义益钛迪信息技术有限公司 Virtual network signal switching method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625469A (en) * 2011-11-01 2012-08-01 北京小米科技有限责任公司 Method for mobile terminal to gain access to mobile internet
CN103188270A (en) * 2013-04-11 2013-07-03 腾讯科技(深圳)有限公司 Method, device and system for accessing recommended server to IP address
CN103188243A (en) * 2011-12-30 2013-07-03 北京神州泰岳软件股份有限公司 Method providing services for users in Internet and system providing services for users in Internet
CN103561022A (en) * 2013-10-31 2014-02-05 腾讯科技(深圳)有限公司 Voice service access method, related device and voice service system
CN104301439A (en) * 2014-11-13 2015-01-21 北京国双科技有限公司 Load balancing method, device and system
CN105871977A (en) * 2015-11-27 2016-08-17 乐视体育文化产业发展(北京)有限公司 Long connection establishment method and system, and devices
CN106506364A (en) * 2016-12-08 2017-03-15 努比亚技术有限公司 A kind of cut-in method, client and routing server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312573B (en) * 2013-06-14 2016-12-28 西安交通大学 A kind of domestic network system equipment finds and recognition methods
US10652240B2 (en) * 2014-05-29 2020-05-12 Entersekt International Limited Method and system for determining a compromise risk associated with a unique device identifier
CN107896241B (en) * 2017-10-23 2020-12-18 东软集团股份有限公司 Network access speed detection method and device, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625469A (en) * 2011-11-01 2012-08-01 北京小米科技有限责任公司 Method for mobile terminal to gain access to mobile internet
CN103188243A (en) * 2011-12-30 2013-07-03 北京神州泰岳软件股份有限公司 Method providing services for users in Internet and system providing services for users in Internet
CN103188270A (en) * 2013-04-11 2013-07-03 腾讯科技(深圳)有限公司 Method, device and system for accessing recommended server to IP address
CN103561022A (en) * 2013-10-31 2014-02-05 腾讯科技(深圳)有限公司 Voice service access method, related device and voice service system
CN104301439A (en) * 2014-11-13 2015-01-21 北京国双科技有限公司 Load balancing method, device and system
CN105871977A (en) * 2015-11-27 2016-08-17 乐视体育文化产业发展(北京)有限公司 Long connection establishment method and system, and devices
CN106506364A (en) * 2016-12-08 2017-03-15 努比亚技术有限公司 A kind of cut-in method, client and routing server

Also Published As

Publication number Publication date
CN109274584A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109274584B (en) Access method and device for access server, client device and storage medium
US10791416B2 (en) Systems and methods for optimizing message notification timing based on geographic location
CN107040494B (en) User account abnormity prevention method and system
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN106709341B (en) A kind for the treatment of method of virus and device for file packet
CN109644154B (en) Location-based access control for human dialog entities
US20160275557A1 (en) Systems and methods for optimizing message notification timing based on electronic content consumption associated with a geographic location
KR101696508B1 (en) Enhancement of positioning quality of service
CN111093159B (en) Message pushing method and device, server and computer readable storage medium
CN110933136A (en) Service node selection method, device, equipment and readable storage medium
CN109982034B (en) Access request processing method and device in video monitoring system
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN111163072A (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN109547427B (en) Blacklist user identification method and device, computer equipment and storage medium
US20210112025A1 (en) Method and server for processing messages
CN111835773B (en) User identity authentication system based on edge calculation
CN112825519B (en) Method and device for identifying abnormal login
CN111104376B (en) Resource file query method and device
CN112231566A (en) Information pushing method, device and system and readable storage medium
CN113098763A (en) Instant communication message sending method, device, storage medium and equipment
CN108337644B (en) Data processing method and device
CN112100471A (en) Distributed crawler task scheduling method, device, equipment and computer readable medium
CN108111561B (en) Data downloading method and equipment thereof
CN107196986B (en) Redirection method and device
CN114500454B (en) Method and device for detecting geographic position change of electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190606

Address after: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant after: Hong Kong Lemi Co., Ltd.

Address before: Kamana Bay

Applicant before: Happy honey Company Limited

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210527

Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, Singapore

Applicant after: Zhuomi Private Ltd.

Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant before: HONG KONG LIVE.ME Corp.,Ltd.

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