[go: up one dir, main page]

CN107396423A - Method for network access and device, storage medium and electronic installation - Google Patents

Method for network access and device, storage medium and electronic installation Download PDF

Info

Publication number
CN107396423A
CN107396423A CN201710620973.9A CN201710620973A CN107396423A CN 107396423 A CN107396423 A CN 107396423A CN 201710620973 A CN201710620973 A CN 201710620973A CN 107396423 A CN107396423 A CN 107396423A
Authority
CN
China
Prior art keywords
network
applications client
address sequence
address
access
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
CN201710620973.9A
Other languages
Chinese (zh)
Other versions
CN107396423B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710620973.9A priority Critical patent/CN107396423B/en
Publication of CN107396423A publication Critical patent/CN107396423A/en
Application granted granted Critical
Publication of CN107396423B publication Critical patent/CN107396423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

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

Abstract

The invention discloses a kind of method for network access and device, storage medium and electronic installation.Wherein, this method includes:Applications client obtains network insertion instruction, wherein, used access point identity during terminal request access objective network where carrying applications client in network insertion instruction;Response to network incoming instruction, applications client obtain network address sequence corresponding with access point identity from the network mapping file being locally stored, wherein, network address sequence includes one or more server address for being used to access objective network;Applications client determines the destination server address with terminal coupling in network address sequence, wherein, network address sequence includes destination server address;Applications client uses destination server address control terminal access objective network.The present invention solve access operation during network insertion it is more complicated caused by the relatively low technical problem of access efficiency.

Description

Method for network access and device, storage medium and electronic installation
Technical field
The present invention relates to internet arena, in particular to a kind of method for network access and device, storage medium and electricity Sub-device.
Background technology
During networking smart machine, change is moved with the position of smart machine, smart machine is connected Network also often switch between the different networks.
At present, after the network transformation that smart machine is connected, generally require intelligent terminal and go internet checking to work as again Most suitably used server network protocol address (Internet Protocol, abbreviation IP address) under preceding network, detailed process is as schemed Shown in 1:
The first step:Sending inquiry to certain domain name server (Domain Name Server, abbreviation dns server) please Ask, be adapted under requesting query current network to above-mentioned smart machine provide Internet service (for example, as shown in the figure with Exemplified by www.qq.com) server IP address;
Second step:Dns server returns to the IP address (such as 14.17.32.211) being applicable under current network;
3rd step:Smart machine can be used by inquiring about the IP address 14.17.32.211 got to access above-mentioned interconnection Net service (www.qq.com).
That is, in network of relation access technology, conventional access way is:The access point of each smart machine becomes After alternatively, applicable server ip address is all inquired about again by internet, and above-mentioned query process often takes and once looked into Failure is ask, will be unable to obtain applicable server ip address, so as to interim card occur or access phenomena such as failing.
To sum up, in the related art, most suitably used server ip address is inquired about repeatedly by internet, to realize that network connects The process entered, there is access operation it is more complicated caused by network insertion it is less efficient the problem of.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The embodiment of the present invention provides a kind of method for network access and device, storage medium and electronic installation, at least to solve The relatively low technical problem of the more complicated caused access efficiency of access operation during network insertion.
One side according to embodiments of the present invention, there is provided a kind of method for network access, including:Applications client obtains Network insertion instructs, wherein, terminal request access objective network when institute where carrying applications client in network insertion instruction The access point identity used;Response to network incoming instruction, applications client from the network mapping file being locally stored, obtain with Network address sequence corresponding to access point identity, wherein, network address sequence includes one or more for accessing target network The server address of network;Applications client determines the destination server address with terminal coupling in network address sequence, its In, network address sequence includes destination server address;Applications client is accessed using destination server address control terminal Objective network.
Another aspect according to embodiments of the present invention, a kind of network access device is additionally provided, applied to applications client, Including:First acquisition unit, for obtaining network insertion instruction, wherein, carry applications client institute in network insertion instruction The used access point identity when terminal request accesses objective network;Second acquisition unit, for response to network incoming instruction, From the network mapping file being locally stored, network address sequence corresponding with access point identity is obtained, wherein, network address sequence Row include one or more server address for being used to access objective network;Determining unit, in network address sequence The destination server address with terminal coupling is determined, wherein, network address sequence includes destination server address;Access is single Member, for using destination server address control terminal access objective network.
Another aspect according to embodiments of the present invention, a kind of network access device is additionally provided, applied to application server, Including:First receiving unit, the acquisition for acquisition request network address sequence for receiving applications client transmission are asked, Wherein, used access point identity when obtaining terminal request access objective network where applications client is carried in request; Determining unit, for the network quality data reported according to each terminal, it is determined that network address sequence corresponding with access point identity Row, wherein, network quality data is used for the network communication quality for indicating each terminal;Returning unit, for by network address sequence Row return to applications client, so that applications client stores network address sequence, and determine to be used for from network address sequence Destination server address used in terminal access objective network where controlling applications client.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, and above-mentioned storage medium includes storage Program, wherein, said procedure run when perform above-mentioned method for network access.
Another aspect according to embodiments of the present invention, additionally provides a kind of electronic installation, including memory, processor and deposits The computer program that can be run on above-mentioned memory and on above-mentioned processor is stored up, above-mentioned processor passes through above computer journey Sequence performs above-mentioned method for network access.
In embodiments of the present invention, the terminal request access target where applications client obtains and carries applications client During network after the network insertion instruction of used access point identity, network insertion instruction is responded, from the net being locally stored In network mapped file, obtain corresponding with access point identity network address sequence, that is to say, that applications client locally with Access point identity directly obtains the network address sequence for accessing objective network, so as to realize quickly from network address sequence Obtain and the destination server address of terminal adaptation, in order to quickly access objective network, network service corresponding to acquisition, and nothing Access step need to be all repeated in each access, search the server address of adaptation, searched the time to reach to save, improve The effect of network insertion efficiency, and then overcome the problem of network insertion is less efficient in correlation technique.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram according to a kind of method for network access of prior art;
Fig. 2 is a kind of application environment schematic diagram of optional method for network access according to embodiments of the present invention;
Fig. 3 is a kind of flow chart of optional method for network access according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of optional method for network access according to embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of optional network access device according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the optional network access device of another kind according to embodiments of the present invention;
Fig. 7 is a kind of schematic diagram of optional electronic installation according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of method for network access, as a kind of optional embodiment party Formula, the method for network access can be, but not limited to be applied in following application environment, as shown in Fig. 2 there is operation in terminal 202 Applications client, where applications client acquisition carries above-mentioned applications client during terminal request access objective network 204 After the network insertion instruction of used access point identity, above-mentioned network insertion instruction is responded, is reflected from the network being locally stored Penetrate in file, obtain network address sequence corresponding with above-mentioned access point identity;Wherein, above-mentioned network address sequence includes one Individual or multiple server address for being used to access above-mentioned objective network 204;And determined in above-mentioned network address sequence with it is upper The destination server address (address of server 206) of terminal coupling is stated, wherein, above-mentioned network address sequence includes above-mentioned target Server address;Then, above-mentioned terminal is controlled to access above-mentioned objective network 204 using above-mentioned destination server address.Wherein, on The network address sequence in network mapping file is stated to can be, but not limited to as terminal 202 by communication network 208 from server 210 Get.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
Alternatively, in the present embodiment, above-mentioned applications client can include but is not limited to game, communication tool, social activity Instrument, network office etc. are applied;Above-mentioned access point identity can include but is not limited to service set (Service Set Identifier, abbreviation SSID), APN (Acess Point Name, abbreviation APN), this present embodiment is not done and had Body limits.
In the present embodiment, the terminal request access objective network where applications client obtains and carries applications client When used access point identity network insertion instruction after, respond the network insertion instruction, reflected from the network being locally stored Penetrate in file, obtain network address sequence corresponding with access point identity, wherein, network address sequence includes one or more For accessing the server address of objective network;And the destination server with terminal coupling is determined in network address sequence Location, wherein, network address sequence includes destination server address;Then, applications client uses destination server address control Terminal processed accesses objective network.That is, directly obtained locally with access point identity for accessing mesh in applications client The network address sequence of network is marked, is quickly obtained so as to realize from network address sequence with the destination server of terminal adaptation Location, in order to quickly access objective network, network service corresponding to acquisition, without all repeating access in each access Step, the server address of adaptation is searched, search the time to reach to save, improve the effect of network insertion efficiency, and then overcome The problem of network insertion is less efficient in correlation technique.
Alternatively, in the present embodiment, above-mentioned terminal can include but is not limited at least one of:Mobile phone, flat board electricity Brain, notebook computer, desktop PC, DTV and other need the hardware device of network insertion.Above-mentioned communication network, target Network can include but is not limited at least one of:Wide area network, Metropolitan Area Network (MAN), LAN.A kind of above-mentioned simply example, this implementation Example does not do any restriction to this.
According to embodiments of the present invention, there is provided a kind of method for network access, as shown in figure 3, this method includes:
S302, applications client obtain network insertion instruction, wherein, carry applications client institute in network insertion instruction The used access point identity when terminal request accesses objective network;
S304, response to network incoming instruction, applications client are obtained and accessed from the network mapping file being locally stored Network address sequence corresponding to point identification, wherein, network address sequence includes one or more for accessing objective network Server address;
S306, applications client determine the destination server address with terminal coupling in network address sequence, wherein, Network address sequence includes destination server address;
S308, applications client use destination server address control terminal access objective network.
Alternatively, in the present embodiment, above-mentioned method for network access can be, but not limited to be applied to applications client use During wireless network access Internet service, so that terminal rapidly accesses network, network service corresponding to acquisition.Its In, above-mentioned applications client can be, but not limited to any game, communication tool, social tool, network office etc.;Above-mentioned wireless network Network include but is not limited to as communication base station network constructed by the WAP such as wireless router;Above-mentioned Internet service bag Include but be not limited to the Internet service that any Internet service provider provides.More than be a kind of example, the present embodiment to this not It is limited in any way.Wherein, in the present embodiment, above-mentioned objective network can include but is not limited to Wifi 2G 3G 4G etc. it is wireless Network, application corresponding to above-mentioned applications client can include but is not limited to game, communication tool, social tool, network office Deng application, above-mentioned is only a kind of example, does not do any restriction in the present embodiment to this.
It should be noted that in the present embodiment, the terminal where applications client obtains and carries applications client please When seeking access objective network after the network insertion instruction of used access point identity, network insertion instruction is responded, from this In the network mapping file of ground storage, network address sequence corresponding with access point identity is obtained, that is to say, that in application client End directly obtains the network address sequence for accessing objective network locally with access point identity, so as to realize quickly from network The destination server address with terminal adaptation is obtained in address sequence, in order to quickly access objective network, net corresponding to acquisition Network service, without all repeating access step in each access, the server address of adaptation is searched, is looked into reaching saving Look for the time, improve the effect of network insertion efficiency, and then overcome the problem of network insertion is less efficient in correlation technique.
Alternatively, in the present embodiment, above-mentioned network insertion instruction can be, but not limited to start networking process institute for terminal The network insertion instruction of triggering, but can also be not limited to after terminal location moves, by the network switching connected, and triggers To the network after switching network insertion instruction.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
Alternatively, in the present embodiment, the network address sequence in above-mentioned network mapping file can be, but not limited to pass through In the following manner obtains:
1) applications client sends to server and obtains request, to obtain net corresponding to the objective network to be accessed first Network address sequence;Network mapping file is established in applications client, for storing above-mentioned network address sequence and applications client Access point identity during the terminal request access of place;
2) in the case of local search failure, applications client sends the using default address sequence to application server One renewal request, the renewal of application server responses first request simultaneously return to the network address sequence after renewal to applications client, Applications client receives the network address sequence after above-mentioned renewal, and the network address sequence being locally stored is updated to from application Network address sequence after the renewal of received server-side;
3) obtain network insertion instruction before, or applications client using destination server address control terminal access After objective network, applications client sends the second renewal to application server and asked, and application server responses above-mentioned second are more New request, and network address sequence is returned to applications client, applications client receives above-mentioned network address sequence, and will be local The network address sequence of storage is updated to the network address sequence after the renewal with the reception of application server end.
Alternatively, in the present embodiment, after applications client sends acquisition request to application server, in addition to should The network quality data reported with server according to each terminal, it is determined that network address sequence corresponding with access point identity, its In, network quality data is used for the network communication quality for indicating each terminal.
It should be noted that above-mentioned network quality data, which can include but is not limited to following at least one, is used for instruction terminal Communication quality between objective network:Connect time-consuming, message delay, the number that breaks, connect into power etc..Above-mentioned is only a kind of Example, any restriction is not done to this in the present embodiment.
Alternatively, in the present embodiment, above-mentioned applications client to application server after acquisition request is sent, application Server can be, but not limited to determine network address sequence in the following manner:The net that application server reports according to each terminal Network qualitative data, big data analysis is carried out, to determine network address sequence corresponding with access point identity.Alternatively, in this reality Apply in example, above-mentioned application server determines that the mode of network address sequence can include but is not limited to:Application server is according to pre- If condition is classified to network quality data, sorted network quality data is obtained, wherein, preparatory condition is included below extremely It is one of few:Operator identifier, the network address section of game application corresponding to terminal seat area, terminal;Application server according to Sorted network quality data determines putting in order for server address in network address sequence.
Alternatively, in the present embodiment, applications client is reported to application server and accessed using destination server address The opportunity of caused objective network qualitative data can include but is not limited at least one of during objective network:Timing is held Row, network switching perform, start perform, network failure perform, wherein, timing perform can be, but not limited to for applications client by According to being sometime spaced qualitative data that objective network is reported to application server;Network switching, which performs, can be, but not limited to answer With client when objective network is changed, the network quality data of objective network after reporting switching preceding and/or switching;Start Execution can be, but not limited to as applications client report the network quality data of objective network to application server on startup; Network failure perform can be, but not limited to for access objective network failure when or in this connection break when, applications client to should The network quality data of objective network is reported with server.
Specifically illustrated with reference to the example below, step S402-S408 as shown in Figure 4, the applications client in terminal 402 Be stored with network mapping file, wherein, the network mapping file include the access point identity of terminal 402 with from application server Mapping relations between the 404 network address sequences got (also referred to as IP address sequence), wherein, application server 404 can With but be not limited to determine IP address sequence (S402) to be sent, then send (or response application client acquisition request institute Return) give applications client (step S404 as shown in the figure).Further, it is assumed that applications client is in the network mapping being locally stored The server that the terminal 402 access objective network is applicable is got in file (to be illustrated in figure 4 in the cluster of server 406 One server) corresponding to destination server address be IP 2, then applications client can by above-mentioned IP 2 access objective network, Network service corresponding to acquisition (step S406 as shown in the figure).
If in addition, above-mentioned applications client local network mapping file in do not get IP address in the case of, Renewal request is sent to application server 404, to obtain the IP address sequence of application server responses renewal request return (such as Step S404 shown in figure).
Furthermore the objective network qualitative data after access objective network can also be reported application service by applications client Device 404 (step S408 as shown in the figure), in order to which the network quality data that application server 104 reports with reference to each terminal determines The sorting position of IP address in transmitted IP address sequence.
By embodiments herein, directly obtained locally with access point identity for accessing target in applications client The network address sequence of network, quickly obtained so as to realize from network address sequence with the destination server of terminal adaptation Location, in order to quickly access objective network, network service corresponding to acquisition, without all repeating access in each access Step, the server address of adaptation is searched, search the time to reach to save, improve the effect of network insertion efficiency, and then overcome The problem of network insertion is less efficient in correlation technique.
As a kind of optional scheme, in applications client from the network mapping file being locally stored, obtain and access After network address sequence corresponding to point identification, in addition to:
S1, in the case where being not determined by destination server address from the network address sequence being locally stored, using visitor Family end sends the first renewal to application server using default address sequence and asked, wherein, the first renewal request is used for application The network address sequence that server request renewal is locally stored;
S2, applications client receive the network address sequence after the renewal that the renewal request of application server responses first returns Row;
The network address sequence being locally stored is updated to the net after the renewal of application server return by S3, applications client Network address sequence.
It should be noted that above-mentioned applications client can be, but not limited to any game, communication tool, social tool, net Network office etc.;Above-mentioned application server includes but is not limited to any application server corresponding with applications client.
For example, after applications client gets network insertion instruction, request access mesh is obtained from network insertion instruction The access point identity of the terminal of network is marked, and corresponding IP address sequence is extracted according to the access point identity from network mapping file Row.According to IP address priority in IP address sequence, IP address is obtained successively, attempts access objective network.For example, it is assumed that with connecing Entering IP address sequence corresponding to point identification includes:First server address is 59.37.96.63, and second server address is 59.29.85.67.Then applications client first can access objective network using first server address, use first clothes It is engaged in after the access failure of device address, reuses second server address access objective network, by that analogy, until with traveling through above-mentioned IP Location sequence.
Further, the situation of destination server address corresponding to the server that uses is not determined by above-mentioned IP address sequence Under, then renewal request can be sent to application server, in the network mapping file being locally stored with request renewal applications client IP address sequence so that continuous search of the IP address series relay that applications client can be in the updated obtains access target network Destination server address needed for network.
The embodiment provided by the application, destination server is being not determined by from the network address sequence being locally stored In the case of address, by application server send first renewal ask, with obtain application server responses this first renewal The network address sequence after the renewal of return is asked, and updates and is stored in local network mapping file, so as to ensure that at this In the case of not getting destination server address in the network address sequence of ground storage, application server is asked to update in time The network address sequence being locally stored, to ensure to obtain the destination server address for accessing objective network in time, reach and carry The effect of high network insertion efficiency, so avoid caused by the IP address in network address sequence is outmoded network insertion compared with Slowly, the problem of access efficiency is relatively low.
As a kind of optional scheme, applications client is determined to take with the target of terminal coupling in network address sequence Business device address includes:
S1, applications client repeat following steps, until getting destination server address:
S2, server address is obtained according to predetermined priority order from network address sequence as current server Location;
S3, the access procedure of access objective network is performed using current server address;
S4, in the case of accessing objective network not successfully in current server address, position is obtained from network address sequence Next server address after current server address is as current server address;
S5, in the case of being successfully accessed objective network in current server address, using current server address as target Server address.
Specifically illustrated with reference to the example below, so that applications client is the applications client of game application as an example, it is assumed that In network address sequence in the network mapping file being locally stored, IP address sequence corresponding with access point identity includes: First server address 59.37.96.63, second server address 59.29.85.67, the 3rd server address 59.37.46.61.The applications client of game application is when request accesses objective network, first by address 59.37.96.63, If this IP address can not access objective network, using second server address 59.29.85.67 in network address sequence, if Second server has accessed objective network, then stops, if not accessing, uses next server in network address sequence Address, by that analogy.
The embodiment provided by the application, applications client is from the network address sequence of local according to predetermined priority Sequentially, server address is obtained successively as current server address, is attempted access objective network, is asked so as to avoid in terminal When seeking access objective network, access every time all repeats the server address for searching adaptation, reaches and saves turn-on time, improves The effect of network insertion efficiency.
As a kind of optional scheme, before applications client obtains network insertion instruction, or, in applications client After destination server address control terminal access objective network, in addition to:
S1, applications client send the second renewal to application server and asked, wherein, the second renewal request is used to ask more Network address sequence in the network mapping file being newly locally stored;
S2, applications client receive the network address sequence that the renewal request of application server responses second returns;
The network address sequence being locally stored is updated to the net after the renewal of application server return by S3, applications client Network address sequence, wherein, it will store reflecting between after updating network address sequence and access point identity in network mapping file Penetrate relation.
Specifically illustrated with reference to the example below, it is assumed that to use destination server address control terminal in applications client Access after objective network, applications client timing is asked to application server exemplified by renewal network address sequence.Assuming that using Locally in currently stored network mapping file, IP address sequence corresponding with access point identity includes client:First clothes Be engaged in device address 59.37.96.63, second server address 59.29.85.67.When applications client is sent to application server During the second renewal request, application server can respond the second renewal request, newest network is returned to applications client Location sequence, it is assumed that IP address sequence corresponding with access point identity includes:First server address 59.29.85.67, second Individual server address 59.37.96.63, then applications client can be by the newest network address sequence renewal after above-mentioned renewal Into network mapping file.
The embodiment provided by the application, applications client send the second renewal to application server and asked, and according to The network mapping file for the newest network address sequence renewal local that application server returns, so as to ensure in applications client The accuracy of the network mapping file of storage, avoid because the network address in network address sequence is caused by outmoded Applications client can not access the situation of objective network, and then improve the effect of network insertion efficiency.
As a kind of optional scheme, after applications client obtains network insertion instruction, in addition to:
S1, in the case where the objective network that terminal request where applications client accesses is non-access first, using visitor Family end obtains network address sequence corresponding with access point identity from the network mapping file being locally stored;Or
S2, in the case where the objective network that terminal request where applications client accesses is accesses first, application client Hold to send to application server and obtain request, wherein, obtain request with being used for acquisition request network corresponding with access point identity Location sequence;Applications client receives application server responses and obtains the network address sequence that request returns;Applications client is at this The mapping relations between the network address sequence of return and access point identity are stored in the network mapping file on ground;Applications client Network address sequence corresponding with access point identity is obtained from network mapping file.
Specifically illustrated with reference to the example below, it is assumed that in applications client first to access the situation of above-mentioned objective network Under, IP address sequence is obtained from application service by DNS mechanism, it is assumed that IP address sequence corresponding with access point identity includes: First server address 59.37.96.63, second server address 59.29.85.67.Then applications client will be above-mentioned The IP address sequence got, stored with the mapping relations of corresponding access point identity to network mapping file.
Moreover, it is assumed that applications client for it is non-access above-mentioned objective network (again) first in the case of, then using visitor Family end can obtain IP address sequence corresponding with access point identity directly from the network mapping file being locally stored, and therefrom Destination server address is searched to access objective network.
By the application provide embodiment, in the case where applications client accesses objective network first, by should Sent with server and obtain request, to obtain network address sequence corresponding with access point identity;It is in addition, non-in applications client In the case of accessing objective network first, by directly extracting network address sequence in the network mapping file for locally searching storage Row, therefrom to obtain destination server address, objective network is directly accessed so as to realize using destination server address, so as to real The time for obtaining destination server address is now saved, improves network insertion efficiency.
As a kind of optional scheme, after applications client sends to application server and to obtain request, in addition to:
S1, the network quality data that application server reports according to each terminal, it is determined that net corresponding with access point identity Network address sequence, wherein, network quality data is used for the network communication quality for indicating each terminal.
Alternatively, in the present embodiment, step S1, the network quality data that application server reports according to each terminal, It is determined that network address sequence corresponding with access point identity includes:
S12, application server are classified according to preparatory condition to network quality data, obtain sorted network quality Data, wherein, preparatory condition includes at least one of:Operator identifier, application client corresponding to terminal seat area, terminal The network address section at end;
S14, application server determine server address in network address sequence according to sorted network quality data Put in order.
Specifically illustrated with reference to the example below, application server receives the network quality data that each terminal reports, and presses Above-mentioned network quality data is classified according to preparatory condition, it is assumed that preparatory condition is said by taking the operator identifier of terminal as an example It is bright:
Application server identifies above-mentioned application client after the acquisition request that applications client A is sent is obtained using IP storehouses Hold A operator.Then, the terminal consistent to operator identifier corresponding with applications client A (belongs to the end of same operator End) network quality data that is reported analyzed, with calculate and applications client used in access point identity it is corresponding most Excellent IP address sequence.
For example, application server receives the net that the applications client that IP address is 14.17.22.1/24 address fields reports Network qualitative data, application server learn that current address section connection server address is according to the result after above-mentioned analysis 59.37.96.63 server it is very high to access the mortality of objective network.Then application server is receiving this address field After the acquisition request that applications client is sent, understand above-mentioned server address 59.37.96.63 in the IP address sequence returned, IP address sequence end is aligned to, to reduce its priority, so as to realize the automatic identification adjustment to IP address sequence, to ensure The accuracy of network address sequence, improve the efficiency of network insertion.
As an alternative embodiment, use destination server address control terminal access target in applications client During network, in addition to:
S1 applications clients are reported to be accessed during objective network using destination server address to application server and produced Objective network qualitative data, wherein, objective network qualitative data be used for indicate that applications client uses destination server address The network communication quality accessed after objective network.
For example, when applications client is using server address 59.37.96.63 access objective networks, can report simultaneously correspondingly Objective network qualitative data, wherein, above-mentioned objective network qualitative data include it is following:Connection is time-consuming, message delay, broken string Number, connect into the data such as power.
Alternatively, in the present embodiment, applications client is reported to application server and accessed using destination server address Caused objective network qualitative data during objective network, so as to ensure that application server can obtain newest network in real time Qualitative data, to update network address sequence, ensure that the higher address of the priority of network address sequence is more preferable for network quality Address.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of network access device for being used to implement above-mentioned method for network access is additionally provided, Applied to applications client, as shown in figure 5, the device includes:
1) first acquisition unit 502, for obtaining network insertion instruction, wherein, carry application in network insertion instruction Used access point identity during terminal request access objective network where client;
2) second acquisition unit 504, for response to network incoming instruction, from the network mapping file being locally stored, obtain Network address sequence corresponding with access point identity is taken, wherein, network address sequence includes one or more for accessing mesh Mark the server address of network;
3) determining unit 506, for determining the destination server address with terminal coupling in network address sequence, its In, network address sequence includes destination server address;
4) access unit 508, for using destination server address control terminal access objective network.
Alternatively, in the present embodiment, above-mentioned network access device can be, but not limited to be applied to applications client use During wireless network access Internet service, so that terminal rapidly accesses network, network service corresponding to acquisition.Its In, above-mentioned applications client can be, but not limited to any game, communication tool, social tool, network office etc.;Above-mentioned wireless network Network include but is not limited to as communication base station network constructed by the WAP such as wireless router;Above-mentioned Internet service bag Include but be not limited to the Internet service that any Internet service provider provides.More than be a kind of example, the present embodiment to this not It is limited in any way.Wherein, in the present embodiment, above-mentioned objective network can include but is not limited to Wifi 2G 3G 4G etc. it is wireless Network, application corresponding to above-mentioned applications client can include but is not limited to game, communication tool, social tool, network office Deng application, above-mentioned is only a kind of example, does not do any restriction in the present embodiment to this.
It should be noted that in the present embodiment, the terminal where applications client obtains and carries applications client please When seeking access objective network after the network insertion instruction of used access point identity, network insertion instruction is responded, from this In the network mapping file of ground storage, network address sequence corresponding with access point identity is obtained, that is to say, that in application client End directly obtains the network address sequence for accessing objective network locally with access point identity, so as to realize quickly from network The destination server address with terminal adaptation is obtained in address sequence, in order to quickly access objective network, net corresponding to acquisition Network service, without all repeating access step in each access, the server address of adaptation is searched, is looked into reaching saving Look for the time, improve the effect of network insertion efficiency, and then overcome the problem of network insertion is less efficient in correlation technique.
Alternatively, in the present embodiment, above-mentioned network insertion instruction can be, but not limited to start networking process institute for terminal The network insertion instruction of triggering, but can also be not limited to after terminal location moves, by the network switching connected, and triggers To the network after switching network insertion instruction.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
Alternatively, in the present embodiment, the network address sequence in above-mentioned network mapping file can be, but not limited to pass through In the following manner obtains:
1) applications client sends to server and obtains request, to obtain net corresponding to the objective network to be accessed first Network address sequence;Network mapping file is established in applications client, for storing above-mentioned network address sequence and applications client Access point identity during the terminal request access of place;
2) in the case of local search failure, applications client sends the using default address sequence to application server One renewal request, the renewal of application server responses first request simultaneously return to the network address sequence after renewal to applications client, Applications client receives the network address sequence after above-mentioned renewal, and the network address sequence being locally stored is updated to from application Network address sequence after the renewal of received server-side;
3) obtain network insertion instruction before, or applications client using destination server address control terminal access After objective network, applications client sends the second renewal to application server and asked, and application server responses above-mentioned second are more New request, and network address sequence is returned to applications client, applications client receives above-mentioned network address sequence, and will be local The network address sequence of storage is updated to the network address sequence after the renewal with the reception of application server end.
Alternatively, in the present embodiment, after applications client sends acquisition request to application server, in addition to should The network quality data reported with server according to each terminal, it is determined that network address sequence corresponding with access point identity, its In, network quality data is used for the network communication quality for indicating each terminal.
It should be noted that above-mentioned network quality data, which can include but is not limited to following at least one, is used for instruction terminal Communication quality between objective network:Connect time-consuming, message delay, the number that breaks, connect into power etc..Above-mentioned is only a kind of Example, any restriction is not done to this in the present embodiment.
Alternatively, in the present embodiment, above-mentioned applications client to application server after acquisition request is sent, application Server can be, but not limited to determine network address sequence in the following manner:The net that application server reports according to each terminal Network qualitative data, big data analysis is carried out, to determine network address sequence corresponding with access point identity.Alternatively, in this reality Apply in example, above-mentioned application server determines that the mode of network address sequence can include but is not limited to:Application server is according to pre- If condition is classified to network quality data, sorted network quality data is obtained, wherein, preparatory condition is included below extremely It is one of few:Operator identifier, the network address section of game application corresponding to terminal seat area, terminal;Application server according to Sorted network quality data determines putting in order for server address in network address sequence.
Alternatively, in the present embodiment, applications client is reported to application server and accessed using destination server address The opportunity of caused objective network qualitative data can include but is not limited at least one of during objective network:Timing is held Row, network switching perform, start perform, network failure perform, wherein, timing perform can be, but not limited to for applications client by According to being sometime spaced qualitative data that objective network is reported to application server;Network switching, which performs, can be, but not limited to answer With client when objective network is changed, the network quality data of objective network after reporting switching preceding and/or switching;Start Execution can be, but not limited to as applications client report the network quality data of objective network to application server on startup; Network failure perform can be, but not limited to for access objective network failure when or in this connection break when, applications client to should The network quality data of objective network is reported with server.
Specifically illustrated with reference to the example below, step S402-S408 as shown in Figure 4, the applications client in terminal 402 Be stored with network mapping file, wherein, the network mapping file include the access point identity of terminal 402 with from application server Mapping relations between the 404 network address sequences got (also referred to as IP address sequence), wherein, application server 404 can With but be not limited to determine IP address sequence (S402) to be sent, then send (or response application client acquisition request institute Return) give applications client (step S404 as shown in the figure).Further, it is assumed that applications client is in the network mapping being locally stored The server that the terminal 402 access objective network is applicable is got in file (to be illustrated in figure 4 in the cluster of server 406 One server) corresponding to destination server address be IP 2, then applications client can by above-mentioned IP 2 access objective network, Network service corresponding to acquisition (step S406 as shown in the figure).
If in addition, above-mentioned applications client local network mapping file in do not get IP address in the case of, Renewal request is sent to application server 404, to obtain the IP address sequence of application server responses renewal request return (such as Step S404 shown in figure).
Furthermore the objective network qualitative data after access objective network can also be reported application service by applications client Device 404 (step S408 as shown in the figure), in order to which the network quality data that application server 104 reports with reference to each terminal determines The sorting position of IP address in transmitted IP address sequence.
By embodiments herein, directly obtained locally with access point identity for accessing target in applications client The network address sequence of network, quickly obtained so as to realize from network address sequence with the destination server of terminal adaptation Location, in order to quickly access objective network, network service corresponding to acquisition, without all repeating access in each access Step, the server address of adaptation is searched, search the time to reach to save, improve the effect of network insertion efficiency, and then overcome The problem of network insertion is less efficient in correlation technique.
As a kind of optional scheme, the network access device also includes:
1) the first transmitting element, for from the network mapping file being locally stored, obtaining corresponding with access point identity Network address sequence after, the situation of destination server address is being not determined by from the network address sequence being locally stored Under, send the first renewal to application server using default address sequence and ask, wherein, the first renewal request is used to take to application The network address sequence that business device request renewal is locally stored;
2) the first receiving unit, for receiving the renewal of application server responses first with asking the network after the renewal of return Location sequence;
3) the first updating block, for the network address being locally stored sequence to be updated to the renewal of application server return Network address sequence afterwards.
It should be noted that above-mentioned applications client can be, but not limited to any game, communication tool, social tool, net Network office etc.;Above-mentioned application server includes but is not limited to any application server corresponding with applications client.
For example, after applications client gets network insertion instruction, request access mesh is obtained from network insertion instruction The access point identity of the terminal of network is marked, and corresponding IP address sequence is extracted according to the access point identity from network mapping file Row.According to IP address priority in IP address sequence, IP address is obtained successively, attempts access objective network.For example, it is assumed that with connecing Entering IP address sequence corresponding to point identification includes:First server address is 59.37.96.63, and second server address is 59.29.85.67.Then applications client first can access objective network using first server address, use first clothes It is engaged in after the access failure of device address, reuses second server address access objective network, by that analogy, until with traveling through above-mentioned IP Location sequence.
Further, the situation of destination server address corresponding to the server that uses is not determined by above-mentioned IP address sequence Under, then renewal request can be sent to application server, in the network mapping file being locally stored with request renewal applications client IP address sequence so that continuous search of the IP address series relay that applications client can be in the updated obtains access target network Destination server address needed for network.
The embodiment provided by the application, destination server is being not determined by from the network address sequence being locally stored In the case of address, by application server send first renewal ask, with obtain application server responses this first renewal The network address sequence after the renewal of return is asked, and updates and is stored in local network mapping file, so as to ensure that at this In the case of not getting destination server address in the network address sequence of ground storage, application server is asked to update in time The network address sequence being locally stored, to ensure to obtain the destination server address for accessing objective network in time, reach and carry The effect of high network insertion efficiency, so avoid caused by the IP address in network address sequence is outmoded network insertion compared with Slowly, the problem of access efficiency is relatively low.
As a kind of optional scheme, determining unit 303 also includes:
1) processing module, for repeating following steps, until getting destination server address:From network address sequence Server address is obtained as current server address according to predetermined priority order in row;Performed using current server address Access the access procedure of objective network;In the case of accessing objective network not successfully in current server address, from network address Next server address after current server address is obtained in sequence as current server address;Taken currently In the case that business device address is successfully accessed objective network, using current server address as destination server address.
Specifically illustrated with reference to the example below, so that applications client is the applications client of game application as an example, it is assumed that In network address sequence in the network mapping file being locally stored, IP address sequence corresponding with access point identity includes: First server address 59.37.96.63, second server address 59.29.85.67, the 3rd server address 59.37.46.61.The applications client of game application is when request accesses objective network, first by address 59.37.96.63, If this IP address can not access objective network, using second server address 59.29.85.67 in network address sequence, if Second server has accessed objective network, then stops, if not accessing, uses next server in network address sequence Address, by that analogy.
The embodiment provided by the application, applications client is from the network address sequence of local according to predetermined priority Sequentially, server address is obtained successively as current server address, is attempted access objective network, is asked so as to avoid in terminal When seeking access objective network, access every time all repeats the server address for searching adaptation, reaches and saves turn-on time, improves The effect of network insertion efficiency.
As a kind of optional scheme, above-mentioned network access device also includes:
1) the second transmitting element, for obtain network insertion instruction before, or, use destination server address control After terminal access objective network processed, send the second renewal to application server and ask, wherein, the second renewal request is used to ask Update the network address sequence in the network mapping file being locally stored;
2) the second receiving unit, the network address sequence returned for receiving the renewal request of application server responses second;
3) the second updating block, for the network address being locally stored sequence to be updated to the renewal of application server return Network address sequence afterwards, wherein, will be stored in network mapping file network address sequence and access point identity after renewal it Between mapping relations.
Specifically illustrated with reference to the example below, it is assumed that to use destination server address control terminal in applications client Access after objective network, applications client timing is asked to application server exemplified by renewal network address sequence.Assuming that using Locally in currently stored network mapping file, IP address sequence corresponding with access point identity includes client:First clothes Be engaged in device address 59.37.96.63, second server address 59.29.85.67.When applications client is sent to application server During the second renewal request, application server can respond the second renewal request, newest network is returned to applications client Location sequence, it is assumed that IP address sequence corresponding with access point identity includes:First server address 59.29.85.67, second Individual server address 59.37.96.63, then applications client can be by the newest network address sequence renewal after above-mentioned renewal Into network mapping file.
The embodiment provided by the application, applications client send the second renewal to application server and asked, and according to The network mapping file for the newest network address sequence renewal local that application server returns, so as to ensure in applications client The accuracy of the network mapping file of storage, avoid because the network address in network address sequence is caused by outmoded Applications client can not access the situation of objective network, and then improve the effect of network insertion efficiency.
As a kind of optional scheme, above-mentioned network access device also includes:
1) the 3rd acquiring unit, for after network insertion instruction is obtained, terminal request to connect where applications client In the case that the objective network entered is non-access first, from the network mapping file being locally stored, acquisition and access point identity Corresponding network address sequence;Or
2) the 3rd transmitting element, the objective network accessed for the terminal request where applications client access first In the case of, sent to application server and obtain request, wherein, obtain request and be used for acquisition request net corresponding with access point identity Network address sequence;3rd receiving unit, the network address sequence for obtaining request for receiving application server responses and returning;Storage Unit, the mapping for being stored in the network mapping file of local between the network address sequence of return and access point identity are closed System;4th acquiring unit, for obtaining network address sequence corresponding with access point identity from network mapping file.
Specifically illustrated with reference to the example below, it is assumed that in applications client first to access the situation of above-mentioned objective network Under, IP address sequence is obtained from application service by DNS mechanism, it is assumed that IP address sequence corresponding with access point identity includes: First server address 59.37.96.63, second server address 59.29.85.67.Then applications client will be above-mentioned The IP address sequence got, stored with the mapping relations of corresponding access point identity to network mapping file.
Moreover, it is assumed that applications client for it is non-access above-mentioned objective network (again) first in the case of, then using visitor Family end can obtain IP address sequence corresponding with access point identity directly from the network mapping file being locally stored, and therefrom Destination server address is searched to access objective network.
By the application provide embodiment, in the case where applications client accesses objective network first, by should Sent with server and obtain request, to obtain network address sequence corresponding with access point identity;It is in addition, non-in applications client In the case of accessing objective network first, by directly extracting network address sequence in the network mapping file for locally searching storage Row, therefrom to obtain destination server address, objective network is directly accessed so as to realize using destination server address, so as to real The time for obtaining destination server address is now saved, improves network insertion efficiency.
As a kind of optional scheme, above-mentioned network access device also includes:
1) reporting unit, for using destination server address control terminal access objective network when, to application service Device is reported using caused objective network qualitative data during destination server address access objective network, wherein, target network Network qualitative data is used to indicate that applications client uses the network communication quality after destination server address access objective network.
For example, when applications client is using server address 59.37.96.63 access objective networks, can report simultaneously correspondingly Objective network qualitative data, wherein, above-mentioned objective network qualitative data include it is following:Connection is time-consuming, message delay, broken string Number, connect into the data such as power.
Alternatively, in the present embodiment, applications client is reported to application server and accessed using destination server address Caused objective network qualitative data during objective network, so as to ensure that application server can obtain newest network in real time Qualitative data, to update network address sequence, ensure that the higher address of the priority of network address sequence is more preferable for network quality Address.
According to embodiments of the present invention, a kind of network access device for being used to implement above-mentioned method for network access is additionally provided, Applied to application server, as shown in fig. 6, the device includes:
1) the first receiving unit 602, it is used for acquisition request network address sequence for receive applications client transmission Request is obtained, wherein, it is used when obtaining terminal request access objective network where applications client is carried in request to connect Enter point identification;
2) determining unit 604, for the network quality data reported according to each terminal, it is determined that corresponding with access point identity Network address sequence, wherein, network quality data is used to indicate the network communication quality of each terminal;
3) returning unit 606, for network address sequence to be returned into applications client, so that applications client stores network Address sequence, and determine that terminal access objective network is used where being used to control applications client from network address sequence Destination server address.
Alternatively, in the present embodiment, above-mentioned network access device can be, but not limited to be applied to applications client use During wireless network access Internet service, so that terminal rapidly accesses network, network service corresponding to acquisition.Its In, above-mentioned applications client can be, but not limited to any game, communication tool, social tool, network office etc.;Above-mentioned wireless network Network include but is not limited to as communication base station network constructed by the WAP such as wireless router;Above-mentioned Internet service bag Include but be not limited to the Internet service that any Internet service provider provides.More than be a kind of example, the present embodiment to this not It is limited in any way.Wherein, in the present embodiment, above-mentioned objective network can include but is not limited to Wifi 2G 3G 4G etc. it is wireless Network, application corresponding to above-mentioned applications client can include but is not limited to game, communication tool, social tool, network office Deng application, above-mentioned is only a kind of example, does not do any restriction in the present embodiment to this.
Alternatively, in the present embodiment, above-mentioned determining unit 604 includes:
1) sort module, for classifying according to preparatory condition to network quality data, sorted network matter is obtained Data are measured, wherein, preparatory condition includes at least one of:Operator identifier corresponding to terminal seat area, terminal, using visitor The network address section at family end;
2) determining module, for determining server address in network address sequence according to sorted network quality data Put in order.
Specifically illustrated with reference to the example below, application server receives the network quality data that each terminal reports, and presses Above-mentioned network quality data is classified according to preparatory condition, it is assumed that preparatory condition is said by taking the operator identifier of terminal as an example It is bright:
Application server identifies above-mentioned application client after the acquisition request that applications client A is sent is obtained using IP storehouses Hold A operator.Then, the terminal consistent to operator identifier corresponding with applications client A (belongs to the end of same operator End) network quality data that is reported analyzed, with calculate and applications client used in access point identity it is corresponding most Excellent IP address sequence.
For example, application server receives the net that the applications client that IP address is 14.17.22.1/24 address fields reports Network qualitative data, application server learn that current address section connection server address is according to the result after above-mentioned analysis 59.37.96.63 server it is very high to access the mortality of objective network.Then application server is receiving this address field After the acquisition request that applications client is sent, understand above-mentioned server address 59.37.96.63 in the IP address sequence returned, IP address sequence end is aligned to, to reduce its priority, so as to realize the automatic identification adjustment to IP address sequence, to ensure The accuracy of network address sequence, improve the efficiency of network insertion.
Embodiment 3
According to embodiments of the present invention, a kind of electronic installation for being used to implement above-mentioned method for network access, such as Fig. 7 are additionally provided Shown, the electronic installation includes:
1) memory 702, it is arranged to obtain network insertion instruction from applications client, wherein, taken in network insertion instruction Used access point identity when accessing objective network with terminal request where applications client;
2) processor 704, it is connected with memory 702, is arranged to response to network incoming instruction, applications client is deposited from local In the network mapping file of storage, network address sequence corresponding with access point identity is obtained, wherein, network address sequence includes One or more is used for the server address for accessing objective network;Applications client is determined in network address sequence and terminal The destination server address of matching, wherein, network address sequence includes destination server address;Applications client uses target Server address control terminal access objective network.
3) communication interface 706, it is connected with memory 702 and processor 704, is arranged to applications client and uses destination service Device address control terminal access objective network.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can With at least one network equipment in multiple network equipments in network.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, applications client obtain network insertion instruction, wherein, applications client place is carried in network insertion instruction Used access point identity when terminal request accesses objective network;
S2, response to network incoming instruction, applications client is from the network mapping file being locally stored, acquisition and access point Network address sequence corresponding to mark, wherein, network address sequence includes one or more clothes for being used to access objective network Business device address;
S3, applications client determine the destination server address with terminal coupling in network address sequence, wherein, net Network address sequence includes destination server address;
S4, applications client use destination server address control terminal access objective network.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (15)

  1. A kind of 1. method for network access, it is characterised in that including:
    Applications client obtains network insertion instruction, wherein, carry the applications client institute in the network insertion instruction The used access point identity when terminal request accesses objective network;
    Respond network insertion instruction, the applications client from the network mapping file being locally stored, obtain with it is described Network address sequence corresponding to access point identity, wherein, the network address sequence includes one or more for accessing institute State the server address of objective network;
    The applications client determines the destination server address with the terminal coupling in the network address sequence, its In, the network address sequence includes the destination server address;
    The applications client controls the terminal to access the objective network using the destination server address.
  2. 2. according to the method for claim 1, it is characterised in that in the applications client from the network mapping being locally stored In file, after obtaining network address sequence corresponding with described access point mark, in addition to:
    It is described to answer in the case where being not determined by the destination server address from the network address sequence being locally stored The first renewal is sent with client to application server using default address sequence to ask, wherein, the first renewal request is used In the network address sequence being locally stored to application server request renewal;
    The applications client receives the net after the renewal that the first renewal request described in the application server responses returns Network address sequence;
    The network address sequence being locally stored is updated to the renewal of the application server return by the applications client The network address sequence afterwards.
  3. 3. according to the method for claim 1, it is characterised in that the applications client is true in the network address sequence Make includes with the destination server address of the terminal coupling:
    The applications client repeats following steps, until getting the destination server address:
    Server address is obtained as current server address according to predetermined priority order from the network address sequence;
    The access procedure for accessing the objective network is performed using the current server address;
    In the case of accessing the objective network not successfully in the current server address, obtained from the network address sequence Next server address of the fetch bit after the current server address is as the current server address;
    In the case of being successfully accessed the objective network in the current server address, using the current server address as The destination server address.
  4. 4. according to the method for claim 1, it is characterised in that obtain network insertion in the applications client and instruct it Before, or, the applications client using the destination server address control the terminal access the objective network it Afterwards, in addition to:
    The applications client sends the second renewal to application server and asked, wherein, the second renewal request is used to ask Update the network address sequence in the network mapping file being locally stored;
    The applications client receives the network address sequence that the second renewal request described in the application server responses returns Row;
    The network address sequence being locally stored is updated to the renewal of the application server return by the applications client The network address sequence afterwards, wherein, in the network mapping file will store renewal after the network address sequence with Mapping relations between described access point mark.
  5. 5. according to the method for claim 2, it is characterised in that obtain network insertion in the applications client and instruct it Afterwards, in addition to:
    It is described to answer in the case where the objective network that terminal request where the applications client accesses is non-access first With client from the network mapping file being locally stored, the network address corresponding with described access point mark is obtained Sequence;Or
    In the case where the objective network that terminal request where the applications client accesses is accesses first, the application Client sends to the application server and obtains request, wherein, described obtain asks to be used for acquisition request and described access point The network address sequence corresponding to mark;The applications client receives acquisition request described in the application server responses and returned The network address sequence returned;The applications client stores the net of return in the network mapping file of local Mapping relations between network address sequence and described access point mark;The applications client obtains from the network mapping file Take the network address sequence corresponding with described access point mark.
  6. 6. according to the method for claim 5, it is characterised in that sent in the applications client to the application server After obtaining request, in addition to:
    The network quality data that the application server reports according to each terminal, it is determined that institute corresponding with described access point mark Network address sequence is stated, wherein, the network quality data is used for the network communication quality for indicating each terminal;
    Wherein, the network quality data that the application server reports according to each terminal, it is determined that with described access point mark pair The network address sequence answered includes:
    The application server is classified according to preparatory condition to the network quality data, obtains the sorted network Qualitative data, wherein, the preparatory condition includes at least one of:Operator identifier corresponding to terminal seat area, terminal, The network address section of the applications client;
    The application server according to the sorted network quality data with determining in the network address sequence server Location puts in order.
  7. 7. according to the method for claim 1, it is characterised in that in the applications client using the destination server When location controls the terminal access objective network, in addition to:
    The applications client reports to application server and accesses the objective network process using the destination server address In caused objective network qualitative data, wherein, the objective network qualitative data is used to indicate that the applications client uses The network communication quality that the destination server address is accessed after the objective network.
  8. A kind of 8. network access device, it is characterised in that applied to applications client, including:
    First acquisition unit, for obtaining network insertion instruction, wherein, the application visitor is carried in the network insertion instruction Used access point identity during terminal request access objective network where the end of family;
    Second acquisition unit, for responding the network insertion instruction, from the network mapping file being locally stored, acquisition and institute Network address sequence corresponding to access point identity is stated, wherein, the network address sequence includes one or more for accessing The server address of the objective network;
    Determining unit, for determining the destination server address with the terminal coupling in the network address sequence, its In, the network address sequence includes the destination server address;
    Access unit, for controlling the terminal to access the objective network using the destination server address.
  9. 9. device according to claim 8, it is characterised in that also include:
    First transmitting element, for from the network mapping file being locally stored, obtaining corresponding with described access point mark After network address sequence, the destination server address is being not determined by from the network address sequence being locally stored In the case of, send the first renewal to application server using default address sequence and ask, wherein, the first renewal request is used for The network address sequence being locally stored to application server request renewal;
    First receiving unit, described in after the renewal returned for receiving the first renewal request described in the application server responses Network address sequence;
    First updating block, returned more for the network address sequence being locally stored to be updated into the application server The network address sequence after new.
  10. 10. device according to claim 8, it is characterised in that also include:
    Second transmitting element, for obtain network insertion instruction before, or, controlled using the destination server address The terminal is accessed after the objective network, and sending the second renewal to application server asks, wherein, second renewal please Ask for asking to update the network address sequence in the network mapping file being locally stored;
    Second receiving unit, the network address returned for receiving the second renewal request described in the application server responses Sequence;
    Second updating block, returned more for the network address sequence being locally stored to be updated into the application server The network address sequence after new, wherein, it will store the network address sequence after updating in the network mapping file Mapping relations between being identified with described access point.
  11. 11. device according to claim 9, it is characterised in that also include:
    3rd acquiring unit, after being instructed in the acquisition network insertion, the terminal request where the applications client Access the objective network for it is non-first access in the case of, from the network mapping file being locally stored, obtain with The network address sequence corresponding to described access point mark;Or
    3rd transmitting element, it is to access first for the objective network that the terminal request where the applications client accesses In the case of, sent to the application server and obtain request, wherein, described obtain asks to be used for acquisition request and the access The network address sequence corresponding to point identification;3rd receiving unit, for receiving acquisition described in the application server responses Ask the network address sequence returned;Memory cell, for the storage return in the network mapping file of local Mapping relations between network address sequence and the described access point mark;4th acquiring unit, for being reflected from the network Penetrate and the network address sequence corresponding with described access point mark is obtained in file.
  12. A kind of 12. network access device, it is characterised in that applied to application server, including:
    First receiving unit, the acquisition for acquisition request network address sequence for receiving applications client transmission are asked, Wherein, it is described to obtain used access when the applications client place terminal request access objective network is carried in request Point identification;
    Determining unit, for the network quality data reported according to each terminal, it is determined that institute corresponding with described access point mark Network address sequence is stated, wherein, the network quality data is used for the network communication quality for indicating each terminal;
    Returning unit, for the network address sequence to be returned into the applications client, so that the applications client stores The network address sequence, and determine to be used to control terminal where the applications client to connect from the network address sequence Enter destination server address used in the objective network.
  13. 13. device according to claim 12, it is characterised in that the determining unit includes:
    Sort module, for classifying according to preparatory condition to the network quality data, obtain the sorted network Qualitative data, wherein, the preparatory condition includes at least one of:Operator identifier corresponding to terminal seat area, terminal, The network address section of the applications client;
    Determining module, for determining server address in the network address sequence according to the sorted network quality data Put in order.
  14. A kind of 14. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, when described program is run Perform the method described in any one of claim 1 to 7.
  15. 15. a kind of electronic installation, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, it is characterised in that the processor performs the claim 1 to 7 times by the computer program Method described in one.
CN201710620973.9A 2017-07-26 2017-07-26 Method for network access and device, storage medium and electronic device Active CN107396423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710620973.9A CN107396423B (en) 2017-07-26 2017-07-26 Method for network access and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710620973.9A CN107396423B (en) 2017-07-26 2017-07-26 Method for network access and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN107396423A true CN107396423A (en) 2017-11-24
CN107396423B CN107396423B (en) 2019-01-08

Family

ID=60341260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710620973.9A Active CN107396423B (en) 2017-07-26 2017-07-26 Method for network access and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN107396423B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743364A (en) * 2018-12-20 2019-05-10 广州市百果园信息技术有限公司 Multistep connection control method, device, computer equipment and storage medium
CN110225099A (en) * 2019-05-20 2019-09-10 中国平安财产保险股份有限公司 A kind of data processing method, front-end client, back-end server and storage medium
CN110290097A (en) * 2018-03-19 2019-09-27 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of data
CN112738866A (en) * 2020-12-31 2021-04-30 百果园技术(新加坡)有限公司 Terminal access method, device, equipment and medium
CN115102923A (en) * 2022-06-09 2022-09-23 Oppo广东移动通信有限公司 AGPS positioning starting method, device, equipment, medium and program product
WO2023151678A1 (en) * 2022-02-14 2023-08-17 华为技术有限公司 Communication method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147299A1 (en) * 2005-12-27 2007-06-28 Fujitsu Limited Wireless transmission device
CN102204349A (en) * 2008-09-29 2011-09-28 株式会社东芝 Pre-evaluation of multiple network access points
CN103581351A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method and device for having access to network
CN104852937A (en) * 2014-02-14 2015-08-19 腾讯科技(北京)有限公司 Network access method and device for mobile application
CN105050163A (en) * 2015-08-24 2015-11-11 小米科技有限责任公司 Method and device for network connection
CN106210155A (en) * 2015-04-29 2016-12-07 腾讯科技(深圳)有限公司 The method and apparatus connecting application server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147299A1 (en) * 2005-12-27 2007-06-28 Fujitsu Limited Wireless transmission device
CN102204349A (en) * 2008-09-29 2011-09-28 株式会社东芝 Pre-evaluation of multiple network access points
CN103581351A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method and device for having access to network
CN104852937A (en) * 2014-02-14 2015-08-19 腾讯科技(北京)有限公司 Network access method and device for mobile application
CN106210155A (en) * 2015-04-29 2016-12-07 腾讯科技(深圳)有限公司 The method and apparatus connecting application server
CN105050163A (en) * 2015-08-24 2015-11-11 小米科技有限责任公司 Method and device for network connection

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290097A (en) * 2018-03-19 2019-09-27 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of data
CN109743364A (en) * 2018-12-20 2019-05-10 广州市百果园信息技术有限公司 Multistep connection control method, device, computer equipment and storage medium
CN110225099A (en) * 2019-05-20 2019-09-10 中国平安财产保险股份有限公司 A kind of data processing method, front-end client, back-end server and storage medium
CN110225099B (en) * 2019-05-20 2023-10-24 中国平安财产保险股份有限公司 Data processing method, front-end client, back-end server and storage medium
CN112738866A (en) * 2020-12-31 2021-04-30 百果园技术(新加坡)有限公司 Terminal access method, device, equipment and medium
CN112738866B (en) * 2020-12-31 2024-04-30 百果园技术(新加坡)有限公司 Terminal access method, device, equipment and medium
WO2023151678A1 (en) * 2022-02-14 2023-08-17 华为技术有限公司 Communication method and apparatus
CN115102923A (en) * 2022-06-09 2022-09-23 Oppo广东移动通信有限公司 AGPS positioning starting method, device, equipment, medium and program product
CN115102923B (en) * 2022-06-09 2024-04-02 Oppo广东移动通信有限公司 AGPS positioning starting method, device, equipment, medium and program product

Also Published As

Publication number Publication date
CN107396423B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN107396423A (en) Method for network access and device, storage medium and electronic installation
KR102047010B1 (en) Server, device and method for providing instant messeging service by using relay chatbot
CN104980993B (en) Network access method, mobile communication terminal, network server and network access system
CN105376107A (en) Terminal test method and proxy server
CA2495093A1 (en) Providing routing information in a communication system
CN111885115B (en) Device binding changing method and device
CN107197059B (en) DNS (Domain name Server) analysis method and device
CN106484737A (en) A kind of network social intercourse method and network social intercourse device
EP1325422A1 (en) Method and system for interactively responding to instant messaging requests
CN107147560A (en) Data sharing method and device
CN106941507A (en) The dispatching method and device of request message
CN105306414A (en) Port vulnerability detection method, device and system
CN107872534A (en) Information pushing method and device, server and readable storage medium
CN107995285A (en) Method for information display, device, server and readable storage medium storing program for executing
CN104812021A (en) Method and device for accessing AC (access controller) by AP (access point)
CN114462588B (en) Training method, system and equipment of neural network model for detecting network intrusion
CN110241553A (en) Reservation control method and device for laundry equipment, storage medium and server
CN1126329C (en) Method and system for routing agent programs through communications network
CN102163197A (en) Skin changing method, system and device
CN110519810A (en) Business relay switching method, terminal device, storage medium and device
CN111093182B (en) Network optimal resource selection system for CPE (customer premises equipment)
CN106304030A (en) A kind of means of communication based on virtual identity information, Apparatus and system
CN107645570A (en) Client loading method and device
CN108810916A (en) Wi-Fi Hotspot recommends method, apparatus and storage medium
CN105009680A (en) Method, apparatus and system for establishing cooperative communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant