CN109274584A - Cut-in method, device, client device and the storage medium of access server - Google Patents

Cut-in method, device, client device and the storage medium of access server Download PDF

Info

Publication number
CN109274584A
CN109274584A CN201811142164.2A CN201811142164A CN109274584A CN 109274584 A CN109274584 A CN 109274584A CN 201811142164 A CN201811142164 A CN 201811142164A CN 109274584 A CN109274584 A CN 109274584A
Authority
CN
China
Prior art keywords
access server
access
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.)
Granted
Application number
CN201811142164.2A
Other languages
Chinese (zh)
Other versions
CN109274584B (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
Happy Honey Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Happy Honey Co Ltd filed Critical Happy Honey Co 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

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 a kind of cut-in method of access server, device, client device and storage mediums, this method comprises: receiving the access request of user;Judge the access server list for itself whether having preservation;If so, the access server for then selecting access speed most fast from the access server list of preservation is as target access server;If nothing, access server list is obtained from dispatch server and is saved, the access server for selecting network performance optimal from access server list is as target access server;Access target access server;Whether judgement is current idle;If it is, the access server list is ranked up and is updated by access speed speed after detecting to each access server in access server list, client access more preferably access server can be made.

Description

Cut-in method, device, client device and the storage medium of access server
Technical field
The present invention relates to network communication fields, more particularly to the cut-in method, device, client of a kind of access server Equipment and storage medium.
Background technique
With network communication calculate development, there are many network service systems, such as: instant messaging, video playing, Online game and social platform etc..These network service systems generally use the framework of client-server.User is logical Cross download to terminal device client software be linked into provide service access server, thus realize network provide service Function.
Currently, many network service systems all provide transnational service.The access server of network service system is arranged on All over the world.Such as: in order to cover wider communication range, large-scale instantaneous communication system would generally be in global each region Up to a hundred or even thousands of access servers of interior setting.
Client will access the access server of instant messaging, first determine target access server.Firstly, client is sent out Access request out, the access request are sent to the dispatch server of network operator;Dispatch server is according to where client Country, such as China or the U.S., selection be located at client where country in multiple network performances most Excellent instant messaging access server generates server list and returns to client as that can use access server;Then, client Server list sequence, selection target access server are pressed in end, and attempt to be linked into target access server.
Since dispatch server is in selection target access server, the network of target access server itself is only accounted for Performance.Therefore, in actual moving process, though the network performance of target access server be it is optimal, client also has can Target access server can not be accessed, or the not high situation of communication quality occur after having accessed target access server.As it can be seen that For client angle, target access server is not optimal access server.
Summary of the invention
A kind of cut-in method for being designed to provide access server of the embodiment of the present invention, device, client device and Storage medium, so that client is linked into more preferably access server.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of cut-in methods of access server, which comprises access Process and access server list update process;
Wherein, the access procedure, comprising:
Receive the access request of user;
Judge the access server list for itself whether having preservation;
If so, then selecting optimal access server as target access service from the access server list of preservation Device;The access server list of the preservation, are as follows: the access server list not updated obtained from dispatch server, or Access server list after being updated when idle to the access server list saved;
If nothing, access server list is obtained from dispatch server and is saved, is selected from access server list Optimal access server is as target access server;The access server list obtained from dispatch server are as follows: with The access server list that the network performance of access server is ranked up as superiority and inferiority index;
Access target access server;
The access server list update process, comprising:
During idle time, access speed detection is carried out to each access server in access server list;
Each access server in the access server list is arranged using access speed speed as superiority and inferiority index Sequence;
Update the access server list.
It is optionally, described to obtain access server list from dispatch server and save, comprising:
The access request that the far-end IP address comprising client device is sent to dispatch server, so that dispatch server root According to the far-end IP address of client device, parses client device belonging network operator and GEOIP algorithm is positioned using IP It calculates and obtains target country region;Using each access server in target country region as candidate access server, according to Client device belonging network operator, in each candidate access server in target country region, with access server Network performance is ranked up candidate access server as superiority and inferiority index, generates access server list, is back to the visitor Family end equipment;
The access server list that dispatch server returns is received to be saved.
Optionally, each access server carries out access speed detection in described pair of access server list, comprising:
Into access server list, each access server sends Ping message respectively;
Record the receiving time of Ping message sending time and Ping response message;
According to the receiving time of the sending time of Ping message and Ping response message, calculating is linked into access server column The access speed of each access server in table;
It is described using access speed speed as superiority and inferiority index to each access server in the access server list into Row sorts and updates the access server list, comprising:
Each access server in access server list is ranked up by the speed of access speed, and saves sequence Access server list afterwards.
Optionally, the dispatch server is according to client device belonging network operator, in each of target country region In a candidate's access server, candidate access server is arranged using the network performance of access server as superiority and inferiority index Sequence generates access server list, comprising:
According to the geographical location where client device, the target country region comprising the geographical location is determined;
It obtains in the target country region, each candidate access server of the client device operator is made For access server undetermined;
Obtain network performance of the user's history access rate of each access server undetermined as access server;
Access server undetermined is ranked up using the network performance of access server as superiority and inferiority index, generates access clothes Business device list.
Optionally, it is described during idle time, access speed detection is carried out to each access server in access server list The step of, comprising:
During idle time, access speed detection periodically is carried out to each access server in access server list.
Optionally, the method also includes: if target access server access it is unsuccessful, from access server list It is middle to select next access server as target access server, the step of executing the access target access server.
Second aspect, the embodiment of the invention provides a kind of access device of access server, described device includes: access Module and list update module;
The AM access module, comprising:
Receiving unit: for receiving the access request of user;
Judging unit, the access server list for judging itself whether to have preservation;
First selecting unit: for when the judging result of first judging unit be when, from the access service of preservation Select optimal access server as target access server in device list;The access server list of the preservation, are as follows: from The access server list not updated that dispatch server obtains, or the access server list saved is carried out during idle time Updated access server list;
Second selecting unit: for being obtained from dispatch server when the judging result of first judging unit is no Access server list simultaneously saves, and selects optimal access server as target access service from access server list Device;The access server list obtained from dispatch server are as follows: using the network performance of access server as superiority and inferiority index The access server list being ranked up;
Access unit: for accessing target access server;
The list update module, comprising:
Probe unit, for during idle time, carrying out access speed spy to each access server in access server list It surveys;
Updating unit: for the probe unit during idle time, to access server list in each access server into After the detection of row access speed, using access speed speed as superiority and inferiority index to each access service in the access server list Device is ranked up, and updates the access server list.
Optionally, second selecting unit, comprising: access request transmission sub-unit, list reception subelement and selection Subelement;
The access request transmission sub-unit, for sending the far-end IP address comprising client device to dispatch server Access request so that far-end IP address of the dispatch server according to client device, parses network described in client device Operator simultaneously calculates acquisition target country region using IP positioning GEOIP algorithm;By each access clothes in target country region Business device is as candidate access server, each candidate according to client device belonging network operator, in target country region In access server, candidate access server is ranked up using the network performance of access server as superiority and inferiority index, is generated Access server list is back to the client device;
The list reception subelement, the access server list for receiving dispatch server return are saved;
The selection subelement, for selecting optimal access server to access from access server list as target Server.
Optionally, the probe unit is specifically used for during idle time, respectively each access clothes into access server list Business device sends Ping message, and recorded message sending time;The receiving time for recording Ping response message, according to Ping message The receiving time of sending time and Ping response message calculates the access speed for being linked into each access server;
The updating unit is specifically used for the probe unit during idle time, to each access in access server list After server carries out access speed detection, using access speed speed as superiority and inferiority index to each in the access server list Access server is ranked up, and saves the access server list after sequence.
Optionally, the probe unit, is specifically used for: during idle time, periodically to each access in access server list Server carries out access speed detection.
Optionally, described device further include: third selecting unit;For target access server access it is unsuccessful when, It selects next access server as target access server from access server list, triggers the access unit and execute Access target access server.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein processor, communication interface, memory complete mutual communication by bus;
Memory, for storing computer program;
Processor realizes any method and step of first aspect for executing the program stored on memory.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium It is stored with computer program in storage media, first aspect any mark is realized when the computer program is executed by processor The step of inscribing caption detection method.
Cut-in method, device, client device and the storage medium of a kind of access server provided in an embodiment of the present invention, By carrying out access speed detection one by one to the access server in access server list when the client free time, with access speed Speed is ranked up each access server in the server list as superiority and inferiority index, updates access server list. When determining target access server, the network performance of target access server is not only allowed for, it is also considered that arrive client to mesh The network link performance between access server is marked, enables the client to the access server of fast speed being determined as target to connect Enter server, avoids as only considering access server network performance and determine caused by target access server: client Target access server can not be accessed or access the bad problem of communication quality after target access server, that is, had access to More preferably access server.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 a is a kind of process signal of access procedure in the cut-in method of access server provided in an embodiment of the present invention Figure;
Fig. 1 b is the process that is updated during idle time to the access server list saved in Fig. 1 a illustrated embodiment Schematic diagram;
Fig. 2 a is that another process of the access procedure of the cut-in method of access server provided in an embodiment of the present invention is shown It is intended to;
Fig. 2 b is the process that is updated during idle time to the access server list saved in Fig. 2 a illustrated embodiment Schematic diagram;
Fig. 3 is a kind of structural schematic diagram of the determining device of target access server provided in an embodiment of the present invention;
Fig. 4 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to make client be linked into more preferably access server, the embodiment of the invention provides a kind of access servers Cut-in method, device, client device and storage medium.By client during idle time to each in access server list Access server carries out access speed detection one by one, and using access speed speed as superiority and inferiority index, to the access server Each access server is ranked up and updates in list, it is contemplated that the link circuit condition of client to access server, so that objective Family end has access to the faster target access server of access speed, avoids only consideration target access server network performance When caused client can not access target access server or access the bad situation of communication quality after target access server, Make user's access more preferably access server.
A kind of cut-in method of access server provided in an embodiment of the present invention is applied to client device, access procedure With access server list update process.In the embodiment of the present invention, which without limitation, can be with are as follows: desk-top calculating Machine, portable computer or intelligent mobile terminal etc..
As shown in Figure 1a, this method access procedure includes:
S101 receives the access request of user.
In embodiments of the present invention, when user needs to realize network service function, it is necessary first to be issued to client device Access request, to establish the communication connection of client device and access server.Such as: for instantaneous communication system, client Equipment needs to be linked into instant messaging access server, to realize the login of user.Client device detects that user clicks i.e. When communication customer end on login button, that is, receive the access request of user.
S102 judges the access server list for itself whether having preservation, if so, step S103 is executed, if not provided, Then follow the steps S104.
S103, if so, then selecting optimal access server to connect as target from the access server list of preservation Enter server.Execute step S105.
Primary access server is arranged in access server list as mesh specifically, can choose in this step Tag splice enters server server.It here, may include having arranged each of sequence to connect in the access server list of preservation Enter server, wherein be arranged in primary access server as access server optimal in access server list.
In the present embodiment, there are two types of situations for the access server list of the preservation:
One is: the access server list not updated obtained from dispatch server.This access service not updated In the case that device list is no preservation access server list in client device, in order to be linked into access server from tune Spend what server obtained, which be ranked up using the network performance of access server as superiority and inferiority index Access server list, wherein being arranged in primary access server is that network performance is optimal in access server list Access server.
Another kind is: the access server list after being updated during idle time to the access server list saved, The access server list is the access server list being ranked up using access speed speed as superiority and inferiority index, wherein row Being listed in primary access server is the access server that access speed is most fast in access server list.
S104 obtains access server list from dispatch server and saves, selects from access server list optimal Access server as target access server.
Specifically, in this step access server can be selected from the access server list that dispatch server obtains Primary access server is arranged in list as target access server server.By foregoing teachings it is found that being arranged in First is exactly the optimal access server of network performance.
In embodiments of the present invention, first determine whether locally whether store accessible server list, be stored with clothes It is engaged in selecting optimal access server to access as target from the access server list being locally stored in the case where device list Server simultaneously establishes connection.In this case, it does not need to obtain access server list from dispatch server, improves user visitor The access speed at family end.
S105 is linked into target access server.
Specifically, can be the long connection for establishing client device and target access server.
In the present embodiment, the process being updated during idle time to the access server list saved is as shown in Figure 1 b, Include:
S106 carries out access speed detection to each access server in access server list during idle time;
S107, using access speed speed as superiority and inferiority index to each access server in the access server list into Row sequence;
S108 updates the access server list.
In embodiments of the present invention, it when the client free time, is initiated by client device to access server list Ping detection is attempted, and access server list is ranked up and is updated by the speed of access speed.Such as: for instant messaging System, client is idle, that is, refers to that user is in logging state, but do not have messaging, at this time by client to access service Each access server in device list carries out access speed detection, using access speed speed as superiority and inferiority index to each access Server is ranked up, and updates access server list.
A kind of cut-in method of access server provided in an embodiment of the present invention during idle time takes access by client Access server in business device list carries out access speed detection one by one, using access speed speed as superiority and inferiority index to the clothes Each access server is ranked up in business device list, updates access server list, when determining target access server, is considered Client has been arrived to the network link situation between access server, has been avoided due to only considering that access server network performance comes It determines and leads to after client caused by target access server can not access target access server or access target access server Believe the bad situation of quality, makes user's access more preferably access server.
As a kind of embodiment of the embodiment of the present invention, as shown in Figure 2 a, a kind of access provided in an embodiment of the present invention The access procedure of the cut-in method of server may include:
S201 receives the access request of user.
In embodiments of the present invention, it when user needs to realize network service function, needs to issue to client device and access Request.Such as: in instantaneous communication system, client device detect user click the login on instant communication client by Button has received the access request of user.
S202 judges the access server list for itself whether having preservation, if so, thening follow the steps S203;If not, Then follow the steps S204.
S203 selects optimal access server as target access server from the access server list of preservation. Execute step S205.
S204 obtains access server list from dispatch server and saves, selects from access server list optimal Access server as target access server.
In embodiments of the present invention, when user needs to realize network service function, whether client first determines whether local Store accessible server list.If so, the access server that then client selects access speed most fast connects as target Enter server;If access server list no, is obtained and saved from dispatch server, the optimal access of selection network performance Server is as target access server.By taking instant communicating system as an example, when client request, which is established, to be communicated, client is first Judge locally whether store accessible access server list, if so, selecting from the access server list of preservation The most fast access server of access speed is as target access server;If it is not, HTTP can be sent to dispatch server Request obtains the access server list that dispatch server returns and saves, and then the access server that access speed is most fast As target access server, allow users to access network as early as possible, the user experience is improved.
Optionally, dispatch server first parses the HTTP request containing client far-end IP address, utilizes GEOIP (IP location algorithm) calculates longitude and latitude locating for client device, obtains the geographical location where it, determines to include the ground Manage the target country region of position.Specifically, if target country's area addresses are broad, such as China, Russia, the U.S., that It can be using client device the country in which it is located as target country region;It, then can will be objective for the country that region is relatively narrow Family end equipment the country in which it is located and its neighbouring country are determined as target country region, can will be more if geographical location is in France or when Britain A European countries are determined as target country region.Then, client device belonging network operator in target country region is obtained Each candidate access server speed is accessed with the user's history of each access server undetermined as access server undetermined Rate is ranked up access server undetermined as network performance index, according to its superiority and inferiority, obtains access server list.
Optionally, dispatch server is used by the user client far-end IP address for including in parsing HTTP request GEOIP (IP location algorithm) determines user the country in which it is located region, and client device belonging network in target country region is transported The each candidate access server for seeking quotient, as access server undetermined;Then, with client device apart from each access undetermined The distance of server physical position is index, is ranked up to each access server undetermined, generates access server list, returns It is back to client.
S205 is linked into target access server.
S206 judges to access whether destination server succeeds.If it fails, step S207 is executed, if it succeeds, holding Row step S208 terminates process.
S207, using next access server in access server list as destination server;Execute step S205.
A kind of cut-in method of access server provided in an embodiment of the present invention during idle time takes access by client Access server in business device list carries out access speed detection one by one, using access speed speed as superiority and inferiority index to the clothes Each access server is ranked up in business device list, updates access server list, when determining target access server, is considered Client has been arrived to the network link situation between access server, has been avoided due to only considering that access server network performance comes It determines and leads to after client caused by target access server can not access target access server or access target access server Believe the bad situation of quality, makes user's access more preferably access server.
In addition, dispatch server is when generating access server list, according to the system to historical data in the present embodiment Meter, obtains the most fast access service of access speed corresponding with user client belonging network operator by big data algorithm Device, obtain client more preferably can access server for this operator, and it is smooth with access server to be conducive to client Establish connection.
Further more, in the present embodiment in the case where target access server accesses unsuccessful situation, then from access server list It is middle that next access server is selected to be accessed as target access server, it further ensures client and has access to To access server.
As a kind of embodiment of the embodiment of the present invention, as shown in Figure 2 b, a kind of access provided in an embodiment of the present invention The update method of server list may include:
In the present embodiment, the process being updated during idle time to the access server list saved is as shown in Figure 2 b, Include:
S209, whether judgement is current idle, if so, thening follow the steps S402;If it is not, then not executing other steps.
S210 carries out access speed detection to each access server in access server list;
Specifically, Ping message can be sent each access server into access server list respectively, and record The receiving time of Ping message sending time and Ping response message, according to the sending time of Ping message and Ping response message Receiving time, calculate and be linked into the access speed of each access server;
S211, using access speed speed as superiority and inferiority index to each access server in the access server list into Row sequence;
S212 updates the access server list;
S213 starts timer;
S214, judges whether timing length reaches preset list update duration, if so, return step S209, otherwise Other steps are not executed.
A kind of cut-in method of access server provided in an embodiment of the present invention during idle time takes access by client Access server in business device list carries out access speed detection one by one, using access speed speed as superiority and inferiority index to the clothes Each access server is ranked up in business device list, updates access server list, when determining target access server, is considered Client has been arrived to the network link situation between access server, has been avoided due to only considering that access server network performance comes It determines and leads to after client caused by target access server can not access target access server or access target access server Believe the bad situation of quality, makes user's access more preferably access server.
In addition, timing carries out access speed detection to each access server in access server list in the present embodiment Afterwards, the access server list is ranked up and is updated by access speed speed.Speed spy is carried out by the way that timer is default The duration of survey, can be further according to the access speed for being currently accessed access server in server list, and selection is more preferably Target access server, more adaptation network change.
The embodiment of the invention provides a kind of access devices of access server, as shown in figure 3, the device includes: access Module and list update module;
The AM access module 310, comprising:
Receiving unit 311, for receiving the access request of user.
Judging unit 312, the access server list for judging itself whether to have preservation.
First selecting unit 313, for when the first judging unit judging result be when, from the access service of preservation Select optimal access server as target access server in device list;The access server list of the preservation, are as follows: from The access server list not updated that dispatch server obtains, or the access server list saved is carried out during idle time Updated access server list;
Second selecting unit 314, for being obtained from dispatch server when the first judging unit judging result is no Access server list simultaneously saves, and selects optimal access server as target access service from access server list Device;The access server list obtained from dispatch server are as follows: using the network performance of access server as superiority and inferiority index The access server list being ranked up;
Access unit 315, for accessing target access server.
The list update module 320, comprising:
Probe unit 321, for during idle time, carrying out access speed to each access server in access server list Detection;
Updating unit 322: during idle time for the probe unit, to each access server in access server list After carrying out access speed detection, access each in the access server list is taken using access speed speed as superiority and inferiority index Business device is ranked up, and updates the access server list.
A kind of access device of access server provided in an embodiment of the present invention during idle time takes access by client Access server in business device list carries out access speed detection one by one, using access speed speed as superiority and inferiority index to the clothes Each access server is ranked up in business device list, updates access server list, when determining target access server, is considered Client has been arrived to the network link situation between access server, has been avoided due to only considering that access server network performance comes It determines and leads to after client caused by target access server can not access target access server or access target access server Believe the bad situation of quality, makes user's access more preferably access server.
As a kind of embodiment of the embodiment of the present invention, above-mentioned second selecting unit, comprising:
Access request transmission sub-unit, for sending connecing for the far-end IP address comprising client device to dispatch server Enter request, so that far-end IP address of the dispatch server according to client device, parses network operation described in client device Quotient simultaneously calculates acquisition target country region using IP positioning GEOIP (IP location algorithm) algorithm;It will be each in target country region A access server is as candidate access server, according to client device belonging network operator, in target country region In each candidate's access server, candidate access server is arranged using the network performance of access server as superiority and inferiority index Sequence generates access server list, is back to the client device;
List reception subelement, the access server list for receiving dispatch server return are saved;
Subelement is selected, for selecting optimal access server as target access service from access server list Device.
As a kind of embodiment of the embodiment of the present invention, above-mentioned probe unit is specifically used for during idle time, respectively to connecing Enter each access server in server list and sends Ping message, and recorded message sending time;Record Ping response message Receiving time, according to the receiving time of the sending time of Ping message and Ping response message, calculating is linked into each access The access speed of server;
As a kind of embodiment of the embodiment of the present invention, above-mentioned updating unit is specifically used for the probe unit in sky Idle, after carrying out access speed detection to each access server in access server list, using access speed speed as excellent Bad index is ranked up each access server in the access server list, and saves the access server column after sequence Table.
As a kind of embodiment of the embodiment of the present invention, above-mentioned probe unit is specifically used for during idle time, and timing is docked Enter each access server in server list and carries out access speed detection.
As a kind of embodiment of the embodiment of the present invention, the device further include:
Third selecting unit, for being selected from access server list when target access server access is unsuccessful Next access server triggers the access unit and executes access target access server as target access server.
A kind of access device of access server provided in an embodiment of the present invention during idle time takes access by client Access server in business device list carries out access speed detection one by one, using access speed speed as superiority and inferiority index to the clothes Each access server is ranked up in business device list, updates access server list, when determining target access server, is considered Client has been arrived to the network link situation between access server, has been avoided due to only considering that access server network performance comes It determines and leads to after client caused by target access server can not access target access server or access target access server Believe the bad situation of quality, makes user's access more preferably access server.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 4, include processor 401, communication interface 402, Memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are complete by communication bus 404 At mutual communication.
Memory 403, for storing computer program.
Processor 401 when for executing the program stored on memory 403, realizes following steps:
Access procedure and access server list update process;
Wherein, the access procedure, comprising:
Receive the access request of user;
Judge the access server list for itself whether having preservation;
If so, then selecting optimal access server as target access service from the access server list of preservation Device;The access server list of the preservation, are as follows: the access server list not updated obtained from dispatch server, or Access server list after being updated when idle to the access server list saved;
If nothing, access server list is obtained from dispatch server and is saved, is selected from access server list Optimal access server is as target access server;The access server list obtained from dispatch server are as follows: with The access server list that the network performance of access server is ranked up as superiority and inferiority index;
Access target access server;
The access server list update process, comprising:
During idle time, access speed detection is carried out to each access server in access server list;
Each access server in the access server list is arranged using access speed speed as superiority and inferiority index Sequence;
Update the access server list.
A kind of electronic equipment provided in an embodiment of the present invention realizes the cut-in method for being linked into access server, passes through Client carries out access speed detection to the access server in access server list during idle time one by one, fast with access speed Slowly each access server in the server list is ranked up as superiority and inferiority index, updates access server list, really Set the goal access server when, it is contemplated that client is avoided to the network link situation between access server due to only Access server network performance is considered to determine that client caused by target access server can not access target access server Or the bad situation of communication quality after access target access server, make user's access more preferably access server.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
Method provided in an embodiment of the present invention can be applied to client device.Specifically, the client device can be with are as follows: Desktop computer, portable computer or intelligent mobile terminal etc..It is not limited thereto, it is any that electricity of the invention may be implemented Sub- equipment, all belongs to the scope of protection of the present invention.
The embodiment of the invention also provides a kind of computer readable storage medium, stored in the computer readable storage medium There is computer program, which realizes the first following steps when being executed by processor:
Access procedure and access server list update process;
Wherein, the access procedure, comprising:
Receive the access request of user;
Judge the access server list for itself whether having preservation;
If so, then selecting optimal access server as target access service from the access server list of preservation Device;The access server list of the preservation, are as follows: the access server list not updated obtained from dispatch server, or Access server list after being updated when idle to the access server list saved;
If nothing, access server list is obtained from dispatch server and is saved, is selected from access server list Optimal access server is as target access server;The access server list obtained from dispatch server are as follows: with The access server list that the network performance of access server is ranked up as superiority and inferiority index;
Access target access server;
The access server list update process, comprising:
During idle time, access speed detection is carried out to each access server in access server list;
Each access server in the access server list is arranged using access speed speed as superiority and inferiority index Sequence;
Update the access server list.
The embodiment of the present invention can by client during idle time to access server list in access server one by one Carry out access speed detection, using access speed speed as superiority and inferiority index to each access server in the server list into Row sequence, updates access server list, when determining target access server, it is contemplated that client is between access server Network link situation, avoid as only considering access server network performance and determine visitor caused by target access server Family end can not access target access server or access the bad situation of communication quality after target access server, access user More preferably access server.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of cut-in method of access server, which is characterized in that be applied to client device, which comprises access Process and access server list update process;
Wherein, the access procedure, comprising:
Receive the access request of user;
Judge the access server list for itself whether having preservation;
If so, then selecting optimal access server as target access server from the access server list of preservation; The access server list of the preservation, are as follows: the access server list not updated obtained from dispatch server, or in the free time When the access server list saved is updated after access server list;
If nothing, access server list is obtained from dispatch server and is saved, is selected from access server list optimal Access server as target access server;The access server list obtained from dispatch server are as follows: with access The access server list that the network performance of server is ranked up as superiority and inferiority index;
Access target access server;
The access server list update process, comprising:
During idle time, access speed detection is carried out to each access server in access server list;
Each access server in the access server list is ranked up using access speed speed as superiority and inferiority index;
Update the access server list.
2. the method according to claim 1, wherein described obtain access server list simultaneously from dispatch server It saves, comprising:
The access request that the far-end IP address comprising client device is sent to dispatch server, so that dispatch server is according to visitor The far-end IP address of family end equipment is parsed client device belonging network operator and is calculated using IP positioning GEOIP algorithm Obtain target country region;Using each access server in target country region as candidate access server, according to client End equipment belonging network operator, in each candidate access server in target country region, with the network of access server Performance is ranked up candidate access server as superiority and inferiority index, generates access server list, is back to the client Equipment;
The access server list that dispatch server returns is received to be saved.
3. method according to claim 1 or 2, which is characterized in that each access clothes in described pair of access server list Business device carries out access speed detection, comprising:
Into access server list, each access server sends Ping message respectively;
Record the receiving time of Ping message sending time and Ping response message;
According to the receiving time of the sending time of Ping message and Ping response message, calculating is linked into access server list The access speed of each access server;
It is described that each access server in the access server list is arranged using access speed speed as superiority and inferiority index Sequence simultaneously updates the access server list, comprising:
By access speed speed to access server list in each access server be ranked up, and save sequence after Access server list.
4. according to the method described in claim 2, it is characterized in that, the dispatch server is according to client device belonging network Operator is referred to using the network performance of access server as superiority and inferiority in each candidate access server in target country region Mark is ranked up candidate access server, generates access server list, comprising:
According to the geographical location where client device, the target country region comprising the geographical location is determined;
Obtain in the target country region, each candidate access server of the client device operator be used as to Determine access server;
The user's history access rate for obtaining each access server undetermined, the network performance as access server;
Access server undetermined is ranked up using the network performance of access server as superiority and inferiority index, generates access server List.
5. the method according to claim 1, wherein
It is described during idle time, the step of access speed detection is carried out to each access server in access server list, comprising:
During idle time, access speed detection periodically is carried out to each access server in access server list.
6. the method according to claim 1, wherein the method also includes: if target access server connects Enter unsuccessful, then selects next access server as target access server from access server list, described in execution The step of accessing target access server.
7. a kind of access device of access server, which is characterized in that be applied to client device, described device includes: access Module and list update module;
The AM access module, comprising:
Receiving unit: for receiving the access request of user;
Judging unit, the access server list for judging itself whether to have preservation;
First selecting unit: for being arranged from the access server of preservation when the judging result of first judging unit, which is, is Select optimal access server as target access server in table;The access server list of the preservation, are as follows: from scheduling The access server list not updated that server obtains, or the access server list saved is updated during idle time Access server list afterwards;
Second selecting unit: for being accessed from dispatch server when the judging result of first judging unit is no Server list simultaneously saves, and selects optimal access server as target access server from access server list;Institute State the access server list obtained from dispatch server are as follows: arranged using the network performance of access server as superiority and inferiority index The access server list of sequence;
Access unit: for accessing target access server;
The list update module, comprising:
Probe unit, for during idle time, carrying out access speed detection to each access server in access server list;
Updating unit: during idle time for the probe unit, each access server in access server list is connect After entering speed detection, using access speed speed as superiority and inferiority index to each access server in the access server list into Row sequence, updates the access server list.
8. device according to claim 7, which is characterized in that second selecting unit, comprising: access request sends son Unit, list reception subelement and selection subelement;
The access request transmission sub-unit, for sending connecing for the far-end IP address comprising client device to dispatch server Enter request, so that far-end IP address of the dispatch server according to client device, parses network operation described in client device Quotient simultaneously calculates acquisition target country region using IP positioning GEOIP algorithm;By each access server in target country region Each candidate access as candidate access server, according to client device belonging network operator, in target country region In server, candidate access server is ranked up using the network performance of access server as superiority and inferiority index, generates access Server list is back to the client device;
The list reception subelement, the access server list for receiving dispatch server return are saved;
The selection subelement, for selecting optimal access server as target access service from access server list Device.
9. a kind of client device, which is characterized in that including processor, communication interface, memory and communication bus, wherein place Device, communication interface are managed, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-6.
10. a kind of computer readable storage medium, which is characterized in that including processor and machine readable storage medium, the machine Device readable storage medium storing program for executing is stored with the machine-executable instruction that can be executed by the processor, and the processor is by the machine Executable instruction promotes: realizing any method and step of claim 1-6.
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 true CN109274584A (en) 2019-01-25
CN109274584B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769030A (en) * 2019-02-02 2019-05-17 京东数字科技控股有限公司 The method and apparatus of access for control applications
CN110855646A (en) * 2019-10-31 2020-02-28 苏州经贸职业技术学院 Approach loading system for network computer and application method
CN111147591A (en) * 2019-12-28 2020-05-12 杭州拓深科技有限公司 Optimization method for dynamic allocation equipment server of Internet of things
CN112422367A (en) * 2020-11-11 2021-02-26 成都渊数科技有限责任公司 Method and system for realizing network delay detection by cloud control strategy and multi-protocol
CN112436981A (en) * 2020-11-16 2021-03-02 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112637026A (en) * 2020-12-21 2021-04-09 厦门亿联网络技术股份有限公司 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 (10)

* 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
CN103312573A (en) * 2013-06-14 2013-09-18 西安交通大学 Household network system equipment discovery and recognition protocol
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
US20170195298A1 (en) * 2014-05-29 2017-07-06 Entersekt International Limited Method and System for Determining a Compromise Risk Associated with a Unique Device Identifier
CN107896241A (en) * 2017-10-23 2018-04-10 东软集团股份有限公司 Detection method, device, storage medium and the electronic equipment of network access speed

Patent Citations (10)

* 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
CN103312573A (en) * 2013-06-14 2013-09-18 西安交通大学 Household network system equipment discovery and recognition protocol
CN103561022A (en) * 2013-10-31 2014-02-05 腾讯科技(深圳)有限公司 Voice service access method, related device and voice service system
US20170195298A1 (en) * 2014-05-29 2017-07-06 Entersekt International Limited Method and System for Determining a Compromise Risk Associated with a Unique Device Identifier
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
CN107896241A (en) * 2017-10-23 2018-04-10 东软集团股份有限公司 Detection method, device, storage medium and the electronic equipment of network access speed

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769030A (en) * 2019-02-02 2019-05-17 京东数字科技控股有限公司 The method and apparatus of access for control applications
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
CN110855646A (en) * 2019-10-31 2020-02-28 苏州经贸职业技术学院 Approach loading system for network computer and application method
CN111147591A (en) * 2019-12-28 2020-05-12 杭州拓深科技有限公司 Optimization method for dynamic allocation equipment server of Internet of things
CN111147591B (en) * 2019-12-28 2023-04-07 杭州拓深科技有限公司 Optimization method for dynamic allocation equipment server of Internet of things
CN112422367A (en) * 2020-11-11 2021-02-26 成都渊数科技有限责任公司 Method and system for realizing network delay detection by cloud control strategy and multi-protocol
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
CN112436981A (en) * 2020-11-16 2021-03-02 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112637026A (en) * 2020-12-21 2021-04-09 厦门亿联网络技术股份有限公司 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

Also Published As

Publication number Publication date
CN109274584B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
CN109274584A (en) Cut-in method, device, client device and the storage medium of access server
US6871076B2 (en) Method and system for automatically adjusting location based system information in a mobile computer
CN102546656B (en) Method, system and device for finding user in social network
US10135923B2 (en) Data transfer method and system
CN103905471B (en) Information-pushing method, server and the social networks of social networks
CN107872534B (en) Information pushing method and device, server and readable storage medium
CN105898085B (en) Harass recognition methods and the device of communications account
EP3541098A1 (en) Processing method for communication identifier binding and terminal
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN109741060A (en) Information inquiry system, method, device, electronic equipment and storage medium
CN107896235B (en) Information pushing method and device, network access equipment, terminal and social server
CN104852937B (en) Method for network access and device for mobile application
CN108712519A (en) Localization method, device and the storage medium of IP address
CN111106983B (en) Method and device for detecting network connectivity
CN108781342A (en) Virtual SIM card distribution, the method and relevant device for accessing network
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN110162270A (en) Date storage method, memory node and medium based on distributed memory system
CN104426881A (en) Method and device for detecting malicious behavior
CN105939355A (en) Data access method and system, as well as client and server
CN113168402A (en) Managing data resources
CN105203121A (en) Dynamically Integrating Offline And Online Suggestions In A Geographic Application
CN107682194B (en) It obtains, the methods, devices and systems of processing configuration information
CN113806086A (en) Openstack storage method, device and medium using iSCSI multipath balance docking
CN106375551B (en) Information interaction method, device and terminal
EP3407568A1 (en) Service processing method and device

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