CN105050163A - Method and device for network connection - Google Patents
Method and device for network connection Download PDFInfo
- Publication number
- CN105050163A CN105050163A CN201510524830.9A CN201510524830A CN105050163A CN 105050163 A CN105050163 A CN 105050163A CN 201510524830 A CN201510524830 A CN 201510524830A CN 105050163 A CN105050163 A CN 105050163A
- Authority
- CN
- China
- Prior art keywords
- network
- network address
- address
- local terminal
- network connection
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000012216 screening Methods 0.000 claims abstract description 51
- 238000003780 insertion Methods 0.000 claims description 163
- 230000037431 insertion Effects 0.000 claims description 163
- 238000013138 pruning Methods 0.000 claims description 32
- 238000012360 testing method Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 19
- 230000004044 response Effects 0.000 claims description 17
- 238000012546 transfer Methods 0.000 claims description 15
- 238000004458 analytical method Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 238000005457 optimization Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 230000013011 mating Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for network connection. The method comprises the following steps of: obtaining a first set containing at least two network addresses, and a local-terminal network access attribute; according to the local-terminal network access attribute, screening the network addresses in the first set to obtain a second set; and selecting the network address from the second set to perform network connection. In the technical scheme, the set of a plurality of network addresses is obtained from a server, and the plurality of network addresses are screened, thus, a terminal can perform network connection through the screened network address, the terminal can successfully connect to the optimized network address according to own attribute, time for building connection is reduced, and the work of analyzing the screened network address by the server is omitted, and thereby, burden on the server is reduced.
Description
Technical field
The disclosure relates to Internet technical field, particularly relates to a kind of method for connecting network and device.
Background technology
For the mobile terminal that access network often changes, finding an optimized server ip address (InternetProtocolAddress, internet protocol address) to set up network connection is extremely important and key.In correlation technique, usually by server to the network connection quality data analysis connected, thus draw the server ip address sequence of optimization, and this server ip address sequence is issued terminal, terminal is set up network successively according to server ip address sequence and is connected.
Summary of the invention
Disclosure embodiment provides a kind of method for connecting network and device.Described technical scheme is as follows:
First aspect, provides a kind of method for connecting network, comprising:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal;
According to the network insertion attribute of described local terminal, the network address in described first set is screened, obtains the second set;
From described second set, select the network address to carry out network connection.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Technique scheme, by obtaining the set of multiple network address from server, and multiple network address is screened, make terminal can carry out network connection by the network address after screening, terminal is not only enable successfully to be connected to the network address of optimization according to the attribute of self, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In one embodiment, the described network insertion attribute according to described local terminal, screens the network address in described first set, obtains the second set, comprising:
Obtain the network insertion attribute of the network address in described first set;
The network insertion attribute of the network address in the network insertion attribute of described local terminal and described first set is mated;
From described first set, delete the network address corresponding to the network insertion attribute do not matched with the network insertion attribute of described local terminal, obtain the second set.
In this embodiment, by the network insertion attribute of the network address in the network insertion attribute of local terminal and the first set is mated, get the second set, terminal can be screened the network address according to the attribute of self, thus be successfully connected to the network address of optimization, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In one embodiment, the network insertion attribute of described local terminal or the network insertion attribute of the described network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
In this embodiment, by mating different network insertion attributes, making matching result more accurate, increasing the screening dynamics of the network address in the first set, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, described first set is for presetting tree structure, and described default tree structure sets up according to the network insertion attribute of described at least two network addresss, and each node of described default tree structure comprises a network address.
In this embodiment, terminal, by screening the network address from default tree structure, can improve speed and the accuracy of the screening network address, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, the described network insertion attribute according to described local terminal, screens the network address in described first set, obtains the second set, comprising:
According to the network insertion attribute of described local terminal, carry out beta pruning process to the node in described default tree structure, obtain the tree structure after beta pruning, each node of the tree structure after described beta pruning comprises a network address.
In this embodiment, by carrying out beta pruning process to the collection of network addresses of tree structure, making the screening network address more quick and precisely, thus shortening the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, described from described second set select the network address to carry out network connection, comprising:
Obtain network condition information corresponding to the network address in described second set, described network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, described local terminal are corresponding with the described network address;
The priority of the described network address is determined according to described network condition information;
According to described priority, from described second set, the network address is selected to carry out network connection.
In this embodiment, the network condition information corresponding according to the network address determines the priority of the network address, and the network address carrying out connecting is selected according to priority, make terminal finally can be connected to the network address of network condition optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, described from described second set select the network address to carry out network connection, comprising:
To by described second set in the network address carry out network connect time parameter test, obtain network connection parameter, described network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
The network address is selected to carry out network connection according to described network connection parameter.
In this embodiment, network connection parameter is obtained by test, and select the network address to carry out network connection according to network connection parameter, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, describedly select the network address to carry out network connection according to described network connection parameter, comprising:
The priority of the described network address is determined according to described network connection parameter;
According to described priority, from described second set, the network address is selected to carry out network connection.
In this embodiment, the priority of the network address is determined by network connection parameter, and select the network address to carry out network connection according to priority, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, describedly select the network address to carry out network connection according to described network connection parameter, comprising:
Show described network connection parameter;
Operate in response to the selection received for the network address, network connection is carried out in the network address according to selecting.
In this embodiment, by network connection parameter is shown to user, and carry out network connection according to the selection of user operation, add the participation of user, the network address making terminal can be connected to user to think optimum, thus improve the Experience Degree of user.
In one embodiment, method according to claim 1, is characterized in that, described acquisition comprises the first set of at least two network addresss and the network insertion attribute of local terminal, comprising:
Send the information of the network insertion attribute whether obtaining described local terminal;
In response to receiving the selected operation of user to described information, obtain the network insertion attribute of described local terminal.
In this embodiment, whether the network insertion attribute obtaining local terminal is determined whether to the network insertion attribute authority obtaining local terminal according to user, thus improve the confidentiality of terminal data.
Second aspect, provides a kind of network connection device, comprising:
Acquisition module, comprises the first set of at least two network addresss and the network insertion attribute of local terminal for obtaining;
Screening module, for the network insertion attribute of local terminal got according to described acquisition module, screens the network address in described first set, obtains the second set;
Link block, for obtain from described screening module second set in select the network address to carry out network connection.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Said apparatus, acquisition module is by obtaining the set of multiple network address from server, and by screening module, multiple network address is screened, make terminal can carry out network connection by the network address after screening, terminal is not only enable successfully to be connected to the network address of optimization according to the attribute of self, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In one embodiment, described screening module comprises:
First obtains submodule, for obtaining the network insertion attribute of the network address in described first set;
Matched sub-block, the network insertion attribute of the network address that the network insertion attribute of local terminal and described first for being got by described acquisition module obtains in the first set that submodule gets mates;
Delete submodule, for from described first set, delete that described matched sub-block matches the network insertion attribute do not matched with the network insertion attribute of described local terminal corresponding to the network address, obtain the second set.
In this embodiment, matched sub-block is by mating the network insertion attribute of the network address in the network insertion attribute of local terminal and the first set, get the second set, make to delete submodule to screen the network address according to the attribute of self, thus be successfully connected to the network address of optimization, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In one embodiment, the network insertion attribute of described local terminal or the network insertion attribute of the described network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
In this embodiment, by mating different network insertion attributes, making matching result more accurate, increasing the screening dynamics of the network address in the first set, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, described first set is for presetting tree structure, and described default tree structure sets up according to the network insertion attribute of described at least two network addresss, and each node of described default tree structure comprises a network address.
In this embodiment, terminal, by screening the network address from default tree structure, can improve speed and the accuracy of the screening network address, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, described screening module comprises:
Process submodule, for the network insertion attribute of local terminal got according to described acquisition module, carry out beta pruning process to the node in described default tree structure, obtain the tree structure after beta pruning, each node of the tree structure after described beta pruning comprises a network address.
In this embodiment, process submodule, by carrying out beta pruning process to the collection of network addresses of tree structure, makes the screening network address more quick and precisely, thus shortens the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, described link block comprises:
Second obtains submodule, for obtaining network condition information corresponding to the network address in the second set that described screening module obtains, described network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, described local terminal are corresponding with the described network address;
Determine submodule, the network condition information for getting according to described second acquisition submodule determines the priority of the described network address;
Connexon module, for determining according to described the priority that submodule is determined, selects the network address to carry out network connection from described second set.
In this embodiment, determine that network condition information that submodule is corresponding according to the network address determines the priority of the network address, connexon module is according to determining that priority that submodule is determined selects the network address carrying out connecting, make terminal finally can be connected to the network address of network condition optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, described link block comprises:
Test submodule, is tested for the parameter of carrying out when network connects the network address in the second set obtained by described screening module, obtains network connection parameter, described network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
Chooser module, the network connection parameter for recording according to described test submodule selects the network address to carry out network connection.
In this embodiment, test submodule obtains network connection parameter by test, chooser module is tested according to test submodule the network connection parameter obtained and is selected the network address to carry out network connection, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, described chooser module, the network connection parameter for recording according to described test submodule determines the priority of the described network address; According to described priority, from described second set, the network address is selected to carry out network connection.
In this embodiment, chooser module determines the priority of the network address by network connection parameter, and select the network address to carry out network connection according to priority, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, described chooser module, for showing the network connection parameter that described test submodule records; Operate in response to the selection received for the described network address, network connection is carried out in the network address according to selecting.
In this embodiment, chooser module by network connection parameter is shown to user, and carries out network connection according to the selection operation of user, adds the participation of user, the network address making terminal can be connected to user to think optimum, thus improve the Experience Degree of user.
In one embodiment, described acquisition module comprises:
Prompting submodule, for sending the information of the network insertion attribute whether obtaining described local terminal;
3rd obtains submodule, in response to receiving the selected operation of user to the information that described prompting submodule sends, obtains the network insertion attribute of described local terminal.
In this embodiment, whether prompting submodule by authorizing user is pointed out, whether the 3rd acquisition submodule determines whether to the network insertion attribute authority of local terminal the network insertion attribute obtaining local terminal according to user simultaneously, thus improves the confidentiality of terminal data.
The third aspect, provides a kind of network connection device, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal;
According to the network insertion attribute of described local terminal, the network address in described first set is screened, obtains the second set;
From described second set, select the network address to carry out network connection.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Said apparatus, by obtaining the set of multiple network address from server, and multiple network address is screened, make terminal can carry out network connection by the network address after screening, terminal is not only enable successfully to be connected to the network address of optimization according to the attribute of self, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of a kind of method for connecting network according to an exemplary embodiment.
Fig. 2 is the flow chart of step S12 in a kind of method for connecting network according to an exemplary embodiment.
Fig. 3 is the flow chart of step S13 in a kind of method for connecting network according to an exemplary embodiment.
Fig. 4 is the flow chart of a kind of method for connecting network according to an exemplary embodiment one.
Fig. 5 is the flow chart of a kind of method for connecting network according to an exemplary embodiment two.
Fig. 6 is the block diagram of a kind of network connection device according to an exemplary embodiment.
Fig. 7 is the block diagram screening module in a kind of network connection device according to an exemplary embodiment.
Fig. 8 is the block diagram screening module in a kind of network connection device according to an exemplary embodiment.
Fig. 9 is the block diagram of link block in a kind of network connection device according to an exemplary embodiment.
Figure 10 is the block diagram of link block in a kind of network connection device according to an exemplary embodiment.
Figure 11 is the block diagram of acquisition module in a kind of network connection device according to an exemplary embodiment.
Figure 12 is a kind of block diagram being applicable to the device that network connects according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the flow chart of a kind of method for connecting network according to an exemplary embodiment, as shown in Figure 1, this method for connecting network is used in terminal, wherein, terminal can be the equipment such as mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant, and this method for connecting network comprises the following steps S11 to S13.
In step s 11, acquisition comprises the first set of at least two network addresss and the network insertion attribute of local terminal.
Wherein, the network insertion attribute of local terminal can comprise at least one item in the network address of access network type, vendor class, the Base Station Identification connected and Wifi focus.
This step S11 also can be embodied as following steps: the information sending the network insertion attribute whether obtaining local terminal; In response to receiving the selected operation of user to information, obtain the network insertion attribute of local terminal.Whether this execution mode authorizes according to the network insertion attribute of user to acquisition local terminal to implement; user can authorize the acquisition of all network insertion attributes; also can only authorize the acquisition of subnetwork switch-in attribute; such as; user only authorizes and obtains network type and these two network insertion attributes of vendor class; so other information of terminal would not be acquired, thus can protect the data of terminal, improve the confidentiality of terminal data.
In step s 12, according to the network insertion attribute of local terminal, the network address in the first set is screened, obtain the second set.
In this step, when screening the network address in the first set, by mating the network insertion attribute of the network address in the network insertion attribute of local terminal and the first set, screen according to matching result.Therefore, as shown in Figure 2, above-mentioned steps S12 can be embodied as following steps S121 to S123.
In step S121, obtain the network insertion attribute of the network address in the first set.Wherein, the network insertion attribute of the network address can comprise at least one item in the network address of access network type, vendor class, the Base Station Identification connected and Wifi focus.
In step S122, the network insertion attribute of the network address in the network insertion attribute of local terminal and the first set is mated.
In step S123, from the first set, delete the network address corresponding to the network insertion attribute do not matched with the network insertion attribute of local terminal, obtain the second set.
In step s 13, from the second set, the network address is selected to carry out network connection.
In the present embodiment, the first set can be the set that the network address arranges according to different network insertion attributive classifications, also can be the set of the corresponding relation between the network address and its each self-corresponding network insertion attribute.In network insertion attribute, network type comprises 3G, 4G or Wifi wireless network; Vendor class comprises movement, UNICOM or telecommunications; The Base Station Identification connected is No. ID of base station, because each base station divides respective ID interval, therefore, can judge the address of the network access device that this base station is corresponding according to connected Base Station Identification; The network address of Wifi focus is the IP address of Wifi focus, because Wifi focus is all to there being respective IP section, therefore, can judge the address of the network access device corresponding to this Wifi focus according to the network address of Wifi focus.Like this, mate according to different network insertion attributes, the second set can be obtained, second set comprises the network address after screening, such as, when network insertion attribute kit includes network type, if the network type of local terminal is 4G, the network address so belonging to 3G or Wifi wireless network in the network address will not match with the network type of local terminal, thus is deleted by from the first set.When network insertion attribute comprises the network address of connected Base Station Identification or Wifi focus, first terminal can determine the distance between the network access device that local terminal is corresponding with base station or Wifi focus, then recently screens the network address in the first set according to distance.
Adopt the technical scheme that disclosure embodiment provides, by obtaining the set of multiple network address from server, and multiple network address is screened, make terminal can carry out network connection by the network address after screening, terminal is not only enable successfully to be connected to the network address of optimization according to the attribute of self, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In addition, the first set can also be default tree structure, and this default tree structure sets up according to the network insertion attribute of at least two network addresss, and each node presetting tree structure comprises a network address.Now, step S12 can be embodied as following steps: according to the network insertion attribute of local terminal, carry out beta pruning process to the node in default tree structure, and obtain the tree structure after beta pruning, each node of the tree structure after beta pruning comprises a network address.Wherein, beta pruning process refers to the branch removing and do not match with the network insertion attribute of local terminal in default tree structure.Default tree structure is set up according to the network insertion attribute of the network address by the server end being positioned at network side, and the network insertion attribute of the network address can comprise one or more attributes in the network address of access network type, vendor class, the Base Station Identification connected and Wifi focus.Which kind of attribute the root node presetting tree structure is not limited to, and namely any one attribute all can be dispensed on the root node of default tree structure.Such as, network type is dispensed on root node, the root node so presetting tree structure comprises following three: 3G, 4G and Wifi wireless network, on second layer node, can distribute according to vendor class, namely the child node of root node 3G comprises movement, UNICOM and telecommunications respectively, the child node of root node 4G also comprises movement, UNICOM and telecommunications respectively, the child node of Wifi wireless network also comprises movement, UNICOM and telecommunications respectively, by that analogy, then according to other network insertion attributes next node layer is distributed.Again such as, vendor class is dispensed on root node, the root node so presetting tree structure comprises following three: movement, UNICOM and telecommunications, on second layer node, can distribute according to network type, i.e. the child node of root node movement comprises 3G, 4G and Wifi wireless network respectively, and the child node of root node UNICOM also comprises 3G, 4G and Wifi wireless network respectively, the child node of root node telecommunications also comprises 3G, 4G and Wifi wireless network respectively, etc.In this embodiment, terminal, by carrying out beta pruning process to the collection of network addresses of tree structure, can improve speed and the accuracy of the screening network address, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In above-mentioned any embodiment, because the network address in the second set is that terminal is obtained by matching network switch-in attribute, therefore, the network address in second set may have multiple, terminal needs in multiple network address, select the optimum network address to carry out network connection, illustrates how terminal selects the network address to carry out network connection in the second set below by way of different embodiment.
In one embodiment, as shown in Figure 3, above-mentioned steps S13 can be embodied as following steps S131 to S133.
In step S131, the network condition information that the network address in acquisition second set is corresponding; Network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, local terminal are corresponding with the network address.
In step S132, determine the priority of the network address according to network condition information.
In step S133, according to priority, from the second set, the network address is selected to carry out network connection.
Such as, when network condition information comprises access network type, if the network type of local terminal is 4G, and the network address in the second set both comprised 3G type, also comprise 4G type, so the priority of the network address of 4G type is by the priority of the network address higher than 3G type; When network condition packets of information includes network signal strength signal intensity, network signal intensity is stronger, and the priority of the network address of its correspondence is higher; When network condition information comprises the distance between the local terminal base station corresponding with the network address, the distance between the base station that local terminal is corresponding with the network address is nearer, and the priority of this network address is also higher.Wherein, distance between the base station that local terminal is corresponding with the network address is by calculating with under type: the current geographic position information first obtaining local terminal, then, according to the positional information of this base station of name acquiring of base station corresponding to the network address, finally, according to the current geographic position information of this locality and the distance between the positional information calculation local terminal of base station and this base station.After the priority determining multiple network address, network connection is carried out in the optional the highest network address of priority of selecting of terminal, according in the determined priority of above-mentioned rule, the network address that priority is the highest is also the optimum network address concerning terminal, therefore, this embodiment makes terminal finally can be connected to the network address of network condition optimum, thus it is higher to make terminal carry out the speed of network service, and the Experience Degree of user's online is higher.
In another embodiment, above-mentioned steps S13 can be embodied as following steps: test the parameter of being undertaken when network connects by the network address in the second set, obtain network connection parameter, network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one; The network address is selected to carry out network connection according to network connection parameter.In this embodiment, terminal connects by carrying out traversal to the network address in the second set, in the process that traversal connects, often carry out network connection by a network address, just current network connection parameter is once tested, finally obtain the network connection parameter that each network address is corresponding, select the network address to carry out network connection by terminal according to network connection parameter.Terminal can select the network address that transfer rate is maximum, packet loss is maximum or time delay is minimum, or transfer rate, packet loss, time delay are weighted and consider to select the optimum network address, therefore, by the technical scheme of the present embodiment, make terminal can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In the above-described embodiments, terminal selects the network address to have following two kinds of modes according to network connection parameter.Mode one: the priority determining the network address according to network connection parameter; According to priority, from the second set, the network address is selected to carry out network connection.In which one, transfer rate in network connection parameter is maximum, packet loss is maximum or time delay is minimum, the priority of the then corresponding network address is higher, network connection is carried out in the optional the highest network address of priority of selecting of terminal, thus be connected to the network address of network connection parameter optimum, make terminal carry out the speed of network service higher, the Experience Degree of user's online is higher.Mode two: display network connection parameter; Operate in response to the selection received for the network address, network connection is carried out in the network address according to selecting.In which two, terminal shows the network connection parameter tested and obtain on current screen, and carry out network connection according to the selection of user, selection operation is the selection that user carries out the network address for the network connection parameter that terminal shows, user can select wherein that transfer rate is maximum, the network address that packet loss is maximum or time delay is minimum, or by transfer rate, packet loss, time delay is weighted to be considered to select the optimum network address, also multiple network address can be selected, network connection is carried out successively by terminal, if terminal successfully carries out network connection by selected first network address, then no longer carry out network connection by other network addresss, if terminal carries out network connection failure by selected first network address, then according to the order of the user-selected network address, network connection is carried out by second network address, until network successful connection.
Below by way of two specific embodiments, a kind of method for connecting network that the disclosure provides is described.
Embodiment one
Fig. 4 is the flow chart of a kind of method for connecting network according to an exemplary embodiment one.In this embodiment, the first set is for presetting tree structure, and this default tree structure is that the server end being positioned at network side is set up according to the network insertion attribute of at least two network addresss, and each node presetting tree structure comprises a network address.As shown in Figure 4, the method is used for, in terminal, comprising the following steps S41-S46.
In step S41, when carrying out network and connecting, obtain the network insertion attribute of the network address of presetting in tree structure, the network insertion attribute of local terminal and default tree structure.
In step S42, the network insertion attribute of the network address in the network insertion attribute of local terminal and default tree structure is mated.
In step S43, when the network insertion attribute of local terminal and the network insertion attribute of the network address do not match, delete the node that this network address is corresponding in default tree structure, obtain the tree structure after beta pruning.
In step S44, the parameter of being undertaken by the network address in the tree structure after beta pruning when network connects is tested, obtains network connection parameter; Wherein, network connection parameter comprise transfer rate, packet loss and time Yanzhong one or more.
In step S45, determine the priority of the network address according to network connection parameter.
In step S46, according to priority, from the tree structure after beta pruning, the network address is selected to carry out network connection.
Adopt the technical scheme of the present embodiment one, network connection parameter is obtained by test, and the priority of the network address is determined according to network connection parameter, and then select the network address to carry out network connection, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher, meanwhile, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
Embodiment two
Fig. 5 is the flow chart of a kind of method for connecting network according to an exemplary embodiment two.In this implements, the first set is the set of at least two network addresss, and as shown in Figure 5, the method is used for, in terminal, comprising the following steps S51-S56.
In step s 51, when carrying out network and connecting, obtain the network insertion attribute of the network address in the first set, the network insertion attribute of local terminal and the first set.
In step S52, the network insertion attribute of the network address in the network insertion attribute of local terminal and the first set is mated.
In step S53, from the first set, delete the network address corresponding to the network insertion attribute do not matched with the network insertion attribute of local terminal, obtain the second set.
In step S54, the parameter of being undertaken when network connects by the network address in the second set is tested, obtains network connection parameter; Wherein, network connection parameter comprise transfer rate, packet loss and time Yanzhong one or more.
In step S55, display network connection parameter.
In step S56, according to shown network connection parameter, the selection of the network address being operated in response to receiving user, carrying out network connection according to the selected network address.
Adopt the technical scheme of the present embodiment two, network connection parameter is obtained by test, and carry out network connection according to the selection of user operation, add the participation of user, the network address making terminal finally can be connected to user to think optimum, thus improve the Experience Degree of user, and it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher, simultaneously, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.
Fig. 6 is the block diagram of a kind of network connection device according to an exemplary embodiment, and this device can realize becoming the some or all of of electronic equipment by software, hardware or both combinations.With reference to Fig. 6, this network connection device comprises:
Acquisition module 61 is configured to obtain and comprises the first set of at least two network addresss and the network insertion attribute of local terminal.
Screening module 62 is configured to the network insertion attribute of the local terminal got according to acquisition module 61, screens the network address in the first set, obtains the second set.
Link block 63 is configured to select the network address to carry out network connection from the second set that screening module 62 obtains.
Said apparatus, acquisition module 61 is by obtaining the set of multiple network address from server, and by screening module 62, multiple network address is screened, make terminal can carry out network connection by the network address after screening, terminal is not only enable successfully to be connected to the network address of optimization according to the attribute of self, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In one embodiment, as shown in Figure 7, screen module 62 to comprise:
First obtains the network insertion attribute that submodule 621 is configured to the network address in acquisition first set;
The network insertion attribute of the network address that the network insertion attribute and first that matched sub-block 622 is configured to the local terminal got by acquisition module 61 obtains in the first set that submodule gets mates;
Delete submodule 623 and be configured to delete from the first set the network address corresponding to network insertion attribute that matched sub-block 622 matches does not match with the network insertion attribute of local terminal, obtain the second set.
In this embodiment, matched sub-block 622 is by mating the network insertion attribute of the network address in the network insertion attribute of local terminal and the first set, get the second set, make to delete submodule 623 to screen the network address according to the attribute of self, thus be successfully connected to the network address of optimization, shorten the required time that connects, the work of the server analysis screening network address can also be saved, thus alleviate the burden of server.
In one embodiment, the network insertion attribute of local terminal or the network insertion attribute of the network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
In this embodiment, by mating different network insertion attributes, making matching result more accurate, increasing the screening dynamics of the network address in the first set, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, the first set is for presetting tree structure, and default tree structure sets up according to the network insertion attribute of at least two network addresss, and each node presetting tree structure comprises a network address.
In this embodiment, terminal, by screening the network address from default tree structure, can improve speed and the accuracy of the screening network address, thus shorten the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, as shown in Figure 8, screen module 62 to comprise:
Process submodule 624 is configured to the network insertion attribute of the local terminal got according to acquisition module 61, carries out beta pruning process to the node in default tree structure, and obtain the tree structure after beta pruning, each node of the tree structure after beta pruning comprises a network address.
In this embodiment, process submodule 624, by carrying out beta pruning process to the collection of network addresses of tree structure, makes the screening network address more quick and precisely, thus shortens the time of terminal network connection, improve the efficiency being connected to optimal network.
In one embodiment, as shown in Figure 9, link block 63 comprises:
Second obtains submodule 631 is configured to obtain network condition information corresponding to the network address of screening in the second set of module acquisition, and network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, local terminal are corresponding with the network address;
Determine that submodule 632 is configured to obtain according to second the priority that the network condition information that gets of submodule determines the network address;
Connexon module 633 is configured to according to determining the priority that submodule 632 is determined, from the second set, select the network address to carry out network connection.
In this embodiment, determine that network condition information that submodule 632 is corresponding according to the network address determines the priority of the network address, connexon module 633 is according to determining that priority that submodule 632 is determined selects the network address carrying out connecting, make terminal finally can be connected to the network address of network condition optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, as shown in Figure 10, link block 63 comprises:
Test submodule 634 be configured to by screening module 62 obtain second set in the network address carry out network connection time parameter test, obtain network connection parameter, network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
The network connection parameter that chooser module 635 is configured to record according to test submodule 634 selects the network address to carry out network connection.
In this embodiment, test submodule 634 obtains network connection parameter by test, chooser module 635 is tested according to test submodule 634 network connection parameter obtained and is selected the network address to carry out network connection, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, the network connection parameter that chooser module 635 is configured to record according to test submodule 634 determines the priority of the network address; According to priority, from the second set, the network address is selected to carry out network connection.
In this embodiment, chooser module 635 determines the priority of the network address by network connection parameter, and select the network address to carry out network connection according to priority, make terminal finally can be connected to the network address of network connection parameter optimum, thus it is higher to make terminal carry out the speed of network service, the Experience Degree of user's online is higher.
In one embodiment, chooser module 635 is configured to show the network connection parameter tested submodule 634 and record; Operate in response to the selection received for the network address, network connection is carried out in the network address according to selecting.
In this embodiment, chooser module 635 by network connection parameter is shown to user, and carries out network connection according to the selection operation of user, adds the participation of user, the network address making terminal can be connected to user to think optimum, thus improve the Experience Degree of user.
In one embodiment, as shown in figure 11, acquisition module 61 comprises:
Prompting submodule 611 is configured to send the information of the network insertion attribute whether obtaining local terminal;
3rd obtains submodule 612 is configured in response to receiving the selected operation of user to the information that prompting submodule 611 sends, and obtains the network insertion attribute of local terminal.
In this embodiment, whether prompting submodule 611 by authorizing user is pointed out, whether the 3rd acquisition submodule 612 determines whether to the network insertion attribute authority of local terminal the network insertion attribute obtaining local terminal according to user simultaneously, thus improves the confidentiality of terminal data.
In the exemplary embodiment, a kind of network connection device is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, processor is configured to:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal;
According to the network insertion attribute of local terminal, the network address in the first set is screened, obtain the second set;
From the second set, select the network address to carry out network connection.
Above-mentioned processor also can be configured to:
According to the network insertion attribute of local terminal, the network address in the first set is screened, obtains the second set, comprising:
Obtain the network insertion attribute of the network address in the first set;
The network insertion attribute of the network address in the network insertion attribute of local terminal and the first set is mated;
From the first set, delete the network address corresponding to the network insertion attribute do not matched with the network insertion attribute of local terminal, obtain the second set.
Above-mentioned processor also can be configured to:
The network insertion attribute of local terminal or the network insertion attribute of the network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
Above-mentioned processor also can be configured to:
First set is for presetting tree structure, and default tree structure sets up according to the network insertion attribute of at least two network addresss, and each node presetting tree structure comprises a network address.
Above-mentioned processor also can be configured to:
According to the network insertion attribute of local terminal, the network address in the first set is screened, obtains the second set, comprising:
According to the network insertion attribute of local terminal, carry out beta pruning process to the node in default tree structure, obtain the tree structure after beta pruning, each node of the tree structure after beta pruning comprises a network address.
Above-mentioned processor also can be configured to:
From the second set, select the network address to carry out network connection, comprising:
The network condition information that the network address in acquisition second set is corresponding, network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, local terminal are corresponding with the network address;
The priority of the network address is determined according to network condition information;
According to priority, from the second set, the network address is selected to carry out network connection.
Above-mentioned processor also can be configured to:
From the second set, select the network address to carry out network connection, comprising:
To by second set in the network address carry out network connect time parameter test, obtain network connection parameter, network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
The network address is selected to carry out network connection according to network connection parameter.
Above-mentioned processor also can be configured to:
Select the network address to carry out network connection according to network connection parameter, comprising:
The priority of the network address is determined according to network connection parameter;
According to priority, from the second set, the network address is selected to carry out network connection.
Above-mentioned processor also can be configured to:
Select the network address to carry out network connection according to network connection parameter, comprising:
Display network connection parameter;
Operate in response to the selection received for the network address, network connection is carried out in the network address according to selecting.
Above-mentioned processor also can be configured to:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal, comprising:
Send the information of the network insertion attribute whether obtaining local terminal;
In response to receiving the selected operation of user to information, obtain the network insertion attribute of local terminal.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 12 is the block diagram of a kind of device for network connection according to an exemplary embodiment.Such as, device 1200 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
Device 1200 can comprise following one or more assembly: processing components 1202, memory 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor cluster 1214, and communications component 1216.
The integrated operation of the usual control device 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing unit 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Memory 1204 is configured to store various types of data to be supported in the operation of equipment 1200.The example of these data comprises for any application program of operation on device 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1204 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1206 is device 1200 provide electric power.Electric power assembly 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between device 1200 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 1208 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1200 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when device 1200 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loud speaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1214 comprises one or more transducer, for providing the state estimation of various aspects for device 1200.Such as, sensor cluster 1214 can detect the opening/closing state of equipment 1200, the relative positioning of assembly, such as assembly is display and the keypad of device 1200, the position of all right checkout gear 1200 of sensor cluster 1214 or device 1200 assemblies changes, the presence or absence that user contacts with device 1200, the variations in temperature of device 1200 orientation or acceleration/deceleration and device 1200.Sensor cluster 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between device 1200 and other equipment.Device 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communication component 1216 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1204 of instruction, above-mentioned instruction can perform said method by the processor 1220 of device 1200.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of device 1200, make device 1200 can perform above-mentioned method for connecting network, method comprises:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal;
According to the network insertion attribute of local terminal, the network address in the first set is screened, obtain the second set;
From the second set, select the network address to carry out network connection.
According to the network insertion attribute of local terminal, the network address in the first set is screened, obtains the second set, comprising:
Obtain the network insertion attribute of the network address in the first set;
The network insertion attribute of the network address in the network insertion attribute of local terminal and the first set is mated;
From the first set, delete the network address corresponding to the network insertion attribute do not matched with the network insertion attribute of local terminal, obtain the second set.
The network insertion attribute of local terminal or the network insertion attribute of the network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
First set is for presetting tree structure, and default tree structure sets up according to the network insertion attribute of at least two network addresss, and each node presetting tree structure comprises a network address.
According to the network insertion attribute of local terminal, the network address in the first set is screened, obtains the second set, comprising:
According to the network insertion attribute of local terminal, carry out beta pruning process to the node in default tree structure, obtain the tree structure after beta pruning, each node of the tree structure after beta pruning comprises a network address.
From the second set, select the network address to carry out network connection, comprising:
The network condition information that the network address in acquisition second set is corresponding, network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, local terminal are corresponding with the network address;
The priority of the network address is determined according to network condition information;
According to priority, from the second set, the network address is selected to carry out network connection.
From the second set, select the network address to carry out network connection, comprising:
To by second set in the network address carry out network connect time parameter test, obtain network connection parameter, network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
The network address is selected to carry out network connection according to network connection parameter.
Select the network address to carry out network connection according to network connection parameter, comprising:
The priority of the network address is determined according to network connection parameter;
According to priority, from the second set, the network address is selected to carry out network connection.
Select the network address to carry out network connection according to network connection parameter, comprising:
Display network connection parameter;
Operate in response to the selection received for the network address, network connection is carried out in the network address according to selecting.
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal, comprising:
Send the information of the network insertion attribute whether obtaining local terminal;
In response to receiving the selected operation of user to information, obtain the network insertion attribute of local terminal.
Those skilled in the art, at consideration specification and after putting into practice disclosure herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.
Claims (21)
1. a method for connecting network, is characterized in that, comprising:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal;
According to the network insertion attribute of described local terminal, the network address in described first set is screened, obtains the second set;
From described second set, select the network address to carry out network connection.
2. method according to claim 1, is characterized in that, the described network insertion attribute according to described local terminal, screens, obtain the second set, comprising the network address in described first set:
Obtain the network insertion attribute of the network address in described first set;
The network insertion attribute of the network address in the network insertion attribute of described local terminal and described first set is mated;
From described first set, delete the network address corresponding to the network insertion attribute do not matched with the network insertion attribute of described local terminal, obtain the second set.
3. method according to claim 1 and 2, is characterized in that, the network insertion attribute of described local terminal or the network insertion attribute of the described network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
4. method according to claim 1, it is characterized in that, described first set is for presetting tree structure, and described default tree structure sets up according to the network insertion attribute of described at least two network addresss, and each node of described default tree structure comprises a network address.
5. method according to claim 4, is characterized in that, the described network insertion attribute according to described local terminal, screens, obtain the second set, comprising the network address in described first set:
According to the network insertion attribute of described local terminal, carry out beta pruning process to the node in described default tree structure, obtain the tree structure after beta pruning, each node of the tree structure after described beta pruning comprises a network address.
6. method according to claim 1 or 5, is characterized in that, describedly from described second set, selects the network address to carry out network connection, comprising:
Obtain network condition information corresponding to the network address in described second set, described network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, described local terminal are corresponding with the described network address;
The priority of the described network address is determined according to described network condition information;
According to described priority, from described second set, the network address is selected to carry out network connection.
7. method according to claim 1, is characterized in that, described from described second set select the network address to carry out network connection, comprising:
To by described second set in the network address carry out network connect time parameter test, obtain network connection parameter, described network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
The network address is selected to carry out network connection according to described network connection parameter.
8. method according to claim 7, is characterized in that, describedly selects the network address to carry out network connection according to described network connection parameter, comprising:
The priority of the described network address is determined according to described network connection parameter;
According to described priority, from described second set, the network address is selected to carry out network connection.
9. method according to claim 7, is characterized in that, describedly selects the network address to carry out network connection according to described network connection parameter, comprising:
Show described network connection parameter;
Operate in response to the selection received for the network address, network connection is carried out in the network address according to selecting.
10. method according to claim 1, is characterized in that, described acquisition comprises the first set of at least two network addresss and the network insertion attribute of local terminal, comprising:
Send the information of the network insertion attribute whether obtaining described local terminal;
In response to receiving the selected operation of user to described information, obtain the network insertion attribute of described local terminal.
11. 1 kinds of network connection devices, is characterized in that, comprising:
Acquisition module, comprises the first set of at least two network addresss and the network insertion attribute of local terminal for obtaining;
Screening module, for the network insertion attribute of local terminal got according to described acquisition module, screens the network address in described first set, obtains the second set;
Link block, for obtain from described screening module second set in select the network address to carry out network connection.
12. devices according to claim 11, is characterized in that, described screening module comprises:
First obtains submodule, for obtaining the network insertion attribute of the network address in described first set;
Matched sub-block, the network insertion attribute of the network address that the network insertion attribute of local terminal and described first for being got by described acquisition module obtains in the first set that submodule gets mates;
Delete submodule, for from described first set, delete that described matched sub-block matches the network insertion attribute do not matched with the network insertion attribute of described local terminal corresponding to the network address, obtain the second set.
13. devices according to claim 11 or 12, it is characterized in that, the network insertion attribute of described local terminal or the network insertion attribute of the described network address comprise following at least one:
Access network type;
Vendor class;
The Base Station Identification connected;
The network address of Wifi focus.
14. devices according to claim 11, it is characterized in that, described first set is for presetting tree structure, and described default tree structure sets up according to the network insertion attribute of described at least two network addresss, and each node of described default tree structure comprises a network address.
15. devices according to claim 14, is characterized in that, described screening module comprises:
Process submodule, for the network insertion attribute of local terminal got according to described acquisition module, carry out beta pruning process to the node in described default tree structure, obtain the tree structure after beta pruning, each node of the tree structure after described beta pruning comprises a network address.
16. devices according to claim 11 or 15, it is characterized in that, described link block comprises:
Second obtains submodule, for obtaining network condition information corresponding to the network address in the second set that described screening module obtains, described network condition information comprises following at least one item: the distance between the base station that access network type, network signal intensity, described local terminal are corresponding with the described network address;
Determine submodule, the network condition information for getting according to described second acquisition submodule determines the priority of the described network address;
Connexon module, for determining according to described the priority that submodule is determined, selects the network address to carry out network connection from described second set.
17. devices according to claim 14, is characterized in that, described link block comprises:
Test submodule, is tested for the parameter of carrying out when network connects the network address in the second set obtained by described screening module, obtains network connection parameter, described network connection parameter comprise transfer rate, packet loss and time Yanzhong at least one;
Chooser module, the network connection parameter for recording according to described test submodule selects the network address to carry out network connection.
18. devices according to claim 17, is characterized in that, described chooser module, and the network connection parameter for recording according to described test submodule determines the priority of the described network address; According to described priority, from described second set, the network address is selected to carry out network connection.
19. devices according to claim 17, is characterized in that, described chooser module, for showing the network connection parameter that described test submodule records; Operate in response to the selection received for the network address shown by described display sub-module, network connection is carried out in the network address according to selecting.
20. devices according to claim 11, is characterized in that, described acquisition module comprises:
Prompting submodule, for sending the information of the network insertion attribute whether obtaining described local terminal;
3rd obtains submodule, in response to receiving the selected operation of user to the information that described prompting submodule sends, obtains the network insertion attribute of described local terminal.
21. 1 kinds of network connection devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain and comprise the first set of at least two network addresss and the network insertion attribute of local terminal;
According to the network insertion attribute of described local terminal, the network address in described first set is screened, obtains the second set;
From described second set, select the network address to carry out network connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524830.9A CN105050163A (en) | 2015-08-24 | 2015-08-24 | Method and device for network connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524830.9A CN105050163A (en) | 2015-08-24 | 2015-08-24 | Method and device for network connection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105050163A true CN105050163A (en) | 2015-11-11 |
Family
ID=54456253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510524830.9A Pending CN105050163A (en) | 2015-08-24 | 2015-08-24 | Method and device for network connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105050163A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107396423A (en) * | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
CN107666414A (en) * | 2017-07-24 | 2018-02-06 | 平安科技(深圳)有限公司 | A kind of network performance optimizing method, system and computer-readable recording medium |
CN108064071A (en) * | 2018-02-13 | 2018-05-22 | 广东欧珀移动通信有限公司 | Method for connecting network, device, storage medium and electronic equipment |
CN109862606A (en) * | 2019-02-26 | 2019-06-07 | 广州乐摇摇信息科技有限公司 | Self-service device communication means, apparatus and system |
CN110972234A (en) * | 2019-11-28 | 2020-04-07 | 维沃移动通信有限公司 | A network connection method and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110047603A1 (en) * | 2006-09-06 | 2011-02-24 | John Gordon | Systems and Methods for Obtaining Network Credentials |
CN103167558A (en) * | 2011-12-08 | 2013-06-19 | 华为技术有限公司 | Access method and system, user equipment and network side equipment |
CN103379480A (en) * | 2012-04-17 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Wireless network connection method and wireless network connection apparatus |
CN103442160A (en) * | 2013-08-02 | 2013-12-11 | 乐视致新电子科技(天津)有限公司 | Network switching method and intelligent television |
CN104469840A (en) * | 2014-12-24 | 2015-03-25 | 陆俊 | Network access method and system |
-
2015
- 2015-08-24 CN CN201510524830.9A patent/CN105050163A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110047603A1 (en) * | 2006-09-06 | 2011-02-24 | John Gordon | Systems and Methods for Obtaining Network Credentials |
CN103167558A (en) * | 2011-12-08 | 2013-06-19 | 华为技术有限公司 | Access method and system, user equipment and network side equipment |
CN103379480A (en) * | 2012-04-17 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Wireless network connection method and wireless network connection apparatus |
CN103442160A (en) * | 2013-08-02 | 2013-12-11 | 乐视致新电子科技(天津)有限公司 | Network switching method and intelligent television |
CN104469840A (en) * | 2014-12-24 | 2015-03-25 | 陆俊 | Network access method and system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107666414A (en) * | 2017-07-24 | 2018-02-06 | 平安科技(深圳)有限公司 | A kind of network performance optimizing method, system and computer-readable recording medium |
CN107396423A (en) * | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
CN107396423B (en) * | 2017-07-26 | 2019-01-08 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic device |
CN108064071A (en) * | 2018-02-13 | 2018-05-22 | 广东欧珀移动通信有限公司 | Method for connecting network, device, storage medium and electronic equipment |
CN108064071B (en) * | 2018-02-13 | 2020-06-16 | Oppo广东移动通信有限公司 | Network connection method, device, storage medium and electronic equipment |
CN109862606A (en) * | 2019-02-26 | 2019-06-07 | 广州乐摇摇信息科技有限公司 | Self-service device communication means, apparatus and system |
CN109862606B (en) * | 2019-02-26 | 2021-03-19 | 广州乐摇摇信息科技有限公司 | Self-service equipment communication method, device and system |
CN110972234A (en) * | 2019-11-28 | 2020-04-07 | 维沃移动通信有限公司 | A network connection method and electronic device |
WO2021104246A1 (en) * | 2019-11-28 | 2021-06-03 | 维沃移动通信有限公司 | Network connection method and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104159275B (en) | Method for connecting network and device | |
CN104703295A (en) | Network access method and network access device | |
CN105652672A (en) | Method and apparatus for controlling intelligent device | |
CN104936304A (en) | Intelligent equipment binding method, intelligent equipment, and server | |
CN104869574A (en) | Wireless network connection method and apparatus | |
CN104318741A (en) | Bluetooth device control method and device | |
CN104640234A (en) | Method and device for accessing to wireless network | |
CN104853336A (en) | Method for discovering intelligent equipment, method for accessing to internet and devices thereof | |
CN104468329A (en) | Member adding method and device based on instant messaging | |
CN104539639A (en) | User information acquisition method and device | |
CN104812092A (en) | Networking method and device for smart devices | |
CN104506443A (en) | Router setting interface display method and device | |
CN105245595A (en) | Service response method and service response device | |
CN104717554A (en) | Smart television control method and device and electronic equipment | |
CN105163366A (en) | Wireless network connection method and device | |
CN106792448A (en) | Bluetooth connecting method and device, system | |
CN105050163A (en) | Method and device for network connection | |
CN105704016A (en) | Group message shielding processing method, device and terminal | |
CN104835100A (en) | Traveling negotiation method, apparatus, terminal and server | |
CN104837178A (en) | Network accessing method and device | |
CN104994541A (en) | Network flow correction method and device | |
CN105530129A (en) | Router reset method and device | |
CN105554087A (en) | Information setting method and device | |
CN105207813A (en) | Intelligent equipment sorting method and apparatus | |
CN104243607A (en) | Method and device for acquiring equipment information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151111 |
|
RJ01 | Rejection of invention patent application after publication |