CN107404543A - A kind of APN distribution methods, device and terminal - Google Patents

A kind of APN distribution methods, device and terminal Download PDF

Info

Publication number
CN107404543A
CN107404543A CN201610330316.6A CN201610330316A CN107404543A CN 107404543 A CN107404543 A CN 107404543A CN 201610330316 A CN201610330316 A CN 201610330316A CN 107404543 A CN107404543 A CN 107404543A
Authority
CN
China
Prior art keywords
apn
communications applications
terminal
target
currently
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
Application number
CN201610330316.6A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610330316.6A priority Critical patent/CN107404543A/en
Priority to PCT/CN2016/091754 priority patent/WO2017197757A1/en
Publication of CN107404543A publication Critical patent/CN107404543A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4547Network directories; Name-to-address mapping for personal communications, i.e. using a personal identifier
    • 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
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of APN distribution methods, device and terminal, first sets the corresponding relation list of the communications applications comprising terminal and APN corresponding relations;Then when currently there is communications applications startup in detecting terminal, APN that can be corresponding to the communications applications that directly this is currently up according to the corresponding relation list lookup that pre-sets, then data are established using the APN of lookup to connect, is used for the communications applications of the new startup.Namely the present invention selection APN establish data connection when, the APN that directly can be matched according to the corresponding relation list selection pre-set with being currently up communications applications, therefore the data connection that can ensure to establish matches with the communications applications, and the data for avoiding gravity treatment APN to re-establish data connection and established as far as possible are connected to the unmatched problem of communications applications.The online quality of communications applications can be lifted, and can lifts the satisfaction of Consumer's Experience.

Description

A kind of APN distribution methods, device and terminal
Technical field
The present invention relates to the communications field, more particularly to a kind of APN distribution methods, device and terminal.
Background technology
With 3G (3Generation, third generation mobile communications technology)/4G (4Generation, the 4th Third-generation mobile communication technology) etc. mobile network fast development, support that the terminal of single or multiple 3G/4G cards can be with Prediction will be increased in a manner of explosion type.Mobile network data business must not as intelligent terminal simultaneously The key business that can lack.Terminal must use APN (Access Point using mobile network's online Name, APN).
APN refers to a kind of network access technique, must be configured when being surfed the Net by terminal (such as mobile phone) One parameter, which kind of access way it determines terminal by access network.
For terminal user, the external network type that can be accessed has a lot, such as:Internet、 WAP site, conglomerate's internal network, industry internal private network.And different APN, institute's energy The scope of access and the mode of access are different, and network side will access after how knowing terminal activation Which network is so as to distribute the IP of which network segment, and this will be distinguished by APN, i.e., APN determines Which type of network the mobile phone for having determined user accesses by which kind of access way.
Its APN configuration information of different operators is different.The project of customization, operator can carry For its corresponding APN information.APN key parameter is a lot, such as APN, IP type, APN type Etc.;Such as the APN types (APN type) that Android is supported have default, mms, supl, Dun etc..
All it is to need to establish wirelessly as long as mobile phone or other-end data switch open mode in the market Data network, and acquiescence establishes internet data connection first.Establishing data connection just needs to select Select APN.The scheme for selecting APN is Android ccf layer according to SIM card (Subscriber in terminal Identity Module, Subscriber Identity Module) in parameter MCC (Mobile Country Code, it is mobile National code), MNC (Mobile Network Code, Mobile Network Code) and SPN (Service Provider Name, operator's name) etc. parameter as screening conditions, from preset APN databases Middle general selects all APN for meeting the parameters such as this SIM card MCC, MNC, SPN.Then according to Order in database since sequence number it is small selection one support that the APN of Internet online is (namely silent Recognize APN), the internet data for establishing acquiescence connect.And successful connection state reporting to application layer. When some application needs online, inquire about first this whether there is using required data connection and whether Connected state, if there is and be connection, be exactly using the connection upload downloading data, reach The purpose of net, if application query connection is not present or state is disconnection, user is directly reported, Suspension state.
Currently used communications applications such as browser, wechat etc. are connected using internet data, when These applications need just to inquire about whether internet connections are connected state during online, decide whether to surf the Net; This kind of application can be used directly to be connected using the acquiescence APN data established.But there are some applications not The data that the APN of acquiescence can be used to establish connect, and are needed after now attempting failure for this kind of application again The APN of selection corresponding types establishes data connection and used for this kind of APN.For example, can not for some The application connected using the acquiescence APN data established, when it is opened, first attempt to be built with the APN of acquiescence Vertical data connection, one is found out when attempting failure from according to the APN for meeting terminal SIM card again Support the application APN establish data connection, for this using.And the terminal such as mobile phone is propped up at present The SIM card held is more and more, such as double 3G cards, double 4G cards etc., therefore comes for a terminal Say that the APN for meeting SIM card is also more and more, be that application is found again according to existing this mechanism Matching APN workload it is also increasing, efficiency is more and more lower.In addition, applied for some, It can use acquiescence APN establish data connect, but its network quality and it is bad or be not it is best, And existing mechanism this application can always using acquiescence APN establish data connect, can undoubtedly reduce The satisfaction of Consumer's Experience.
In summary, when terminal establishes data connection at present, no matter any application is currently run, all directly Data connection is established using acquiescence APN, is all first directly to be established using acquiescence APN when application is opened Default data connection, may not applied to for this application needs gravity treatment or is not optimal choosing Select, influence using online quality.Namely existing terminal is established in data connection procedure, is existed and is established data The APN according to corresponding to selecting current application, the data for causing to establish are not connected with current application not during connection The problem of matching.
In addition, at present for meeting each APN of SIM card in terminal, any application can in terminal Call, it is poor for network side safety.Such as the server of Docomo business systems upgrading is specially to enjoy Server, corresponding access APN are also the APN of specific dun types.Because any application can The APN of the dun types is called, so if certain rogue program calls the APN of the dun types to establish Connection just may be connected to system upgrade server, it is likely that cause system upgrade servers go down.
The content of the invention
The invention provides a kind of APN distribution methods, device and terminal, solves existing terminal selection APN Acquiescence APN is directly selected when establishing data connection, without according to current application corresponding selection, causing to establish Data connection may be mismatched with current application and then need to rebuild or influence application online quality and asking Topic.
In order to solve the above problems, the invention provides a kind of APN distribution methods, including:
Communications applications comprising terminal and the corresponding relation list of APN corresponding relations are set;
Detect in the terminal when currently having communications applications startup, according to the corresponding relation list lookup APN corresponding to the communications applications being currently up;
Data are established using the APN of lookup to connect.
In an embodiment of the present invention, in addition to at least one logical in the corresponding relation list The corresponding APN of letter application sets APN calling rules;Accordingly, established using the APN of lookup Data connection includes:
APN corresponding to the communications applications being currently up described in judgement whether there is APN calling rules, such as In the presence of selecting target APN from the APN found according to the APN calling rules, use institute State target APN and establish data connection.
In an embodiment of the present invention, in addition to at least one APN in the relation list Restriction rule is applied in setting;
Before establishing data connection using the target APN, in addition to make:
Judge whether the target is provided with to APN using restriction rule, such as exist, judge described newly ought Whether the communications applications of preceding startup meet that this applies restriction rule, such as meet, it is allowed to call the target APN。
In an embodiment of the present invention, the application restriction rule only supplies special inventory comprising APN In destinations traffic application call;Judge whether the communications applications meet the application restriction rule bag Include:
Whether the communications applications being currently up described in judgement are destinations traffic application in the special inventory, In this way, then meet.
In an embodiment of the present invention, in addition to:
When monitoring to establish data connection failure using the target APN, to the corresponding relation list Described in target APN corresponding to the communications applications that are currently up carry out deletion renewal;
And/or
Monitor after establishing network data using the target APN, the communications applications being currently up make During with other APN communication quality than good communication quality using target APN, the APN is replaced It is changed to target APN.
In an embodiment of the present invention, set and include communications applications and APN corresponding relations in terminal Corresponding relation list include:
The APN matched with the Subscriber Identity Module in the terminal is found from total APN databases to be put into Subscriber Identity Module APN databases;
Corresponding to being selected for the communications applications in the terminal from the Subscriber Identity Module APN databases APN establishes corresponding relation.
In an embodiment of the present invention, establishing data connection using the target APN includes:
Judge whether APN used in the currently-established data connection of the terminal is the target APN, in this way, connected using the data;Otherwise, data are re-established using target APN to connect.
In order to solve the above problems, present invention also offers a kind of APN distributors, including:
Correspondence setting module, for setting the communications applications of terminal corresponding with APN corresponding relations Relation list;
Processing module, when currently having communications applications startup for detecting in the terminal, according to described right Relation list is answered to search APN corresponding to the communications applications that this is currently up;
Connection establishment module, the APN for being searched using the processing module establish data connection.
In an embodiment of the present invention, in addition to APN calling rule setup modules, for institute State the APN corresponding at least one communications applications in corresponding relation list and APN calling rules are set;
The connection establishment module includes:
First judging submodule, for whether judging APN corresponding to the communications applications being currently up APN calling rules be present;
First choice submodule, for first judging submodule judged result for be when, according to The APN calling rules select target APN from the APN found, use the target APN Establish data connection.
In an embodiment of the present invention, restriction rule setup module and authentication module are applied in addition to;
It is described to be used to set at least one APN in the relation list using restriction rule setup module Put and apply restriction rule;
The authentication module includes:
Second judging submodule, establish data using the target APN for first choice submodule and connect Before connecing, judge whether the target APN is provided with using restriction rule;
Second selection submodule, in the presence of being in the judged result of second judging submodule, sentences Whether the communications applications being currently up of breaking meet that this applies restriction rule, such as meet, it is allowed to described in calling Target APN.
In order to solve the above problems, present invention also offers a kind of terminal, including memory and processor, The memory is used for storage program, and the processor is used to run described program execution following steps:
Communications applications comprising terminal and the corresponding relation list of APN corresponding relations are set;
Detect in the terminal when currently having communications applications startup, according to the corresponding relation list lookup APN corresponding to the communications applications being currently up;
Data are established using the APN of lookup to connect.
Beneficial effects of the present invention:
The invention provides a kind of APN distribution methods, device and terminal, first set comprising terminal Communications applications and the corresponding relation list of APN corresponding relations;Then have in terminal is detected and currently open , can directly according to the corresponding relation list lookup pre-set, this be currently up during dynamic communications applications Communications applications corresponding to APN, then using the APN of lookup establish data connect, so that this is new The communications applications of startup use.Namely the present invention selection APN establish data connection when, can directly according in advance The APN that the corresponding relation list selection first set matches with being currently up communications applications, therefore can protect The data connection that card is established matches with the communications applications, avoids gravity treatment APN to re-establish data company as far as possible The data for connecing and being established are connected to the unmatched problem of communications applications.The upper of communications applications can be lifted Net quality, and can lift the satisfaction of Consumer's Experience.
Further, the present invention can also set application limit at least one APN on the basis of the above System rule, need to be logical to this using restriction rule according to this when having communications applications to need to call the APN Letter application is authenticated, otherwise authentication, forbids calling by that could call.It can so ensure Special APN can only be called by specified communications applications, avoid malicious application from calling, and lift net The security of network side.
Brief description of the drawings
Fig. 1 is the APN distribution method schematic flow sheets that first embodiment of the invention provides;
Fig. 2 is the corresponding relation schematic diagram that first embodiment of the invention provides;
Fig. 3 is the APN distributors structural representation one that second embodiment of the invention provides;
Fig. 4 is the APN distributors structural representation two that second embodiment of the invention provides;
Fig. 5 is the APN distributors structural representation three that second embodiment of the invention provides;
Fig. 6 is the APN distributors structural representation four that second embodiment of the invention provides;
Fig. 7 is the terminal structure schematic diagram that third embodiment of the invention provides;
Fig. 8 is the APN allocation flow schematic diagrames for the mobile phone that third embodiment of the invention provides;
Fig. 9 is the schematic flow sheet that the communications applications that third embodiment of the invention provides use APN A;
The particular communications application that Figure 10 is the APN B that third embodiment of the invention provides calls schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describing, it is clear that described embodiment is part of the embodiment in the present invention, and The embodiment being not all of.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out under the premise of creative work the every other embodiment obtained, belong to the scope of protection of the invention.
Further annotation explanation is now made to the present invention by way of embodiment combination accompanying drawing.
First embodiment:
The demand that the present embodiment is applied according to different communication, it can first set what each communications applications were adapted to APN corresponding relation, then detect it is current have communications applications startup when, can be according to setting Corresponding relation directly finds the APN of matching, the relatively existing mode for directly selecting acquiescence APN, both It is avoided that established data connection can not be used by communications applications, when and can ensures the data connection established The type matched the most with the communications applications, ensure that communications applications have best online quality.The APN Distribution method is shown in Figure 1, including:
S101:Communications applications comprising terminal and the corresponding relation list of APN corresponding relations are set.
Total APN databases are included in terminal, total APN databases, which include, supports each operator in the whole world APN data.(it need to be included but is not limited to according to the APN selection parameters of the SIM card in terminal The parameters such as MCC, MNC, SPN) select in APN databases from this and matched with the SIM card APN be put into SIM card database.Then for terminal each communications applications from SIM card database APN establishes corresponding relation corresponding to selection.
S102:Detect in terminal when currently having communications applications startup, corresponding closed according to what is pre-set APN corresponding to the communications applications that serial table search starts before deserving.
S103:Data are established using the APN of lookup to connect;It can so ensure to be built to the full extent Vertical data connection matches with the communications applications being currently up so that the communications applications most quickly obtain most Good network quality.
It should be appreciated that in corresponding relation list in the present embodiment, a communications applications may correspond to One or more APN, an APN may also correspond to one or more communications applications.As shown in Figure 2:
APN corresponding to communications applications 1 has A, B, and APN corresponding to communications applications 2 has B, communication There are B, C using APN corresponding to 3.Can be according to the specific communication in specific terminal specific corresponding to relation Application type and specific APN types etc. specifically determine.
In addition, it is to be understood that the institute of terminal can be included in corresponding relation list in the present embodiment There is the APN corresponding to each communications applications in communications applications, namely terminal to be arranged in the corresponding relation There is clear and definite record in table.Also can be only comprising interested in user in corresponding relation list in the present embodiment Communications applications (hereinafter referred to as destinations traffic application) APN corresponding relations.For example, it is assumed that terminal In have 10 communications applications, user is only concerned about 4 therein, then is only included in the corresponding relation list The APN corresponding relations of this 4 each destinations traffic application;For remaining 6, then it is corresponding can to give tacit consent to it APN be exactly acquiescence APN in terminal, or using APN etc. corresponding to other rule selections.
Corresponding relation list based on above-mentioned foundation, can be according to the corresponding relation when communications applications start List is most fast, most accurately finds the APN matched with the communications applications, and then is established using the APN Data connect.But as described above, arrived for a communications applications according to corresponding relation list lookup Corresponding A PN is probably one, it is also possible to multiple.Therefore, it is right after APN corresponding to finding In the APN found how to be called with ensure the APN that finally calls be with communications applications the most Match somebody with somebody and be worth going into seriously the problem of.On the other hand, the present embodiment is setting above-mentioned corresponding relation list Afterwards, can also be further at least one communications applications in corresponding relation list (such as corresponding APN has multiple communications applications, or some specific communications application paid close attention to for user etc., Or directly to all communications applications in form) corresponding to APN set APN calling rules.Now The process that data connection is established using the APN of lookup is as follows:
After APN corresponding to finding, judge that APN corresponding to the communications applications being currently up is It is no APN calling rules to be present, such as exist, according to the APN calling rules from the APN found Target APN is selected, establishing data using target APN connects;Such as it is not present, then according to existing machine System or random selection mechanism select one as target APN from the APN found.
Specifically, the APN calling rules in the present embodiment, which can include APN, calls Cahn-Ingold-Prelog sequence rule;When sentencing When APN corresponding to the disconnected communications applications being currently up has APN calling rules, then adjusted according to APN The APN included with rule calls Cahn-Ingold-Prelog sequence rule, and Selection and call order is first from the APN found APN as target APN.Calling order matches the most for first APN with the communications applications The APN of one, the APN can ensure that communications applications have best online quality.
For example, for the communications applications 1 in Fig. 2, its corresponding APN has A, B two, it is assumed that logical Letter is best in quality using A online, is taken second place then corresponding calling order using B online quality For A first, B second.
In another example for communications applications 2, also can be logical to this when its corresponding APN only has a B Letter application sets calling order, and simply first now is exactly B.
, can also be according to tool in addition to online quality this considerations for each APN calling order Body demand specifically considers setting with reference to other factors.
In addition, for existing each APN, any communication application in terminal can be carried out calling and existing Potential safety hazard the problem of.The present embodiment, can also be to closing after above-mentioned corresponding relation list is set At least one APN (such as weights that the operator specific APN or user that specify are specified in series of tables Point APN etc.) set and apply restriction rule so that only meet that this applies the communications applications of restriction rule Just have permission and the APN is called.The security of network side can be so lifted, further lifting The satisfaction of Consumer's Experience.Now, before establishing data connection using target APN, then also need to this The access right of communications applications is authenticated, including:
Judge whether the target APN of selection is provided with using restriction rule, such as exist, judge that this is current Whether the communications applications of startup meet that this applies restriction rule, such as meet, it is allowed to invocation target APN;It is no Then, forbid transferring, and notify re-aiming APN.
In the present embodiment can be using restriction rule:APN is only supplied in special inventory (namely white list) Destinations traffic application call;Judge whether communications applications meet to include using restriction rule:Judge current Whether the communications applications of startup are destinations traffic application in special inventory, in this way, are then met;Otherwise, Judgement is unsatisfactory for, and no authority is called.
For example, call Cahn-Ingold-Prelog sequence rule, and pin when both having set APN for the communications applications 1 in Fig. 2 Application limitation is provided with to one of APN A corresponding to it (the APN A for being assumed to be sequence first) Rule;Then being established using the APN of lookup when data connect is included:
Cahn-Ingold-Prelog sequence rule is called to select first APN A to judge first as target APN according to APN APN A are provided with using restriction rule, then judge whether the communications applications meet that this applies restriction rule, As met, then have permission and be called, using the APN A as target APN;Otherwise, show to have no right Limit is called, and second APN B need to be selected to repeat above-mentioned deterministic process.
Above-mentioned example is the explanation called Cahn-Ingold-Prelog sequence rule and application restriction rule with reference to APN and carried out.Should When understanding, user can select any in setting above-mentioned two rule according to the actual demand of oneself One or all it is configured, and its object set also can be selected flexibly according to specific circumstances.
, can be to the actual use feelings of follow-up each terminal applies after setting mapping table in the present embodiment Condition is monitored, and can carry out appropriate adjustment to the mapping table of setting according to monitoring result, to protect Demonstrate,prove the accuracy and optimality of corresponding relation.For example, when finding a certain communications applications of terminal startup, use When one of APN establishes data connection failure corresponding to the communications applications, and/or should using the communication With corresponding APN network quality on the contrary without it is good using other APN network quality when, all Appropriate renewal can be carried out to corresponding relation to adjust.It is specific as follows:
Monitor, using when a target APN establishes data connection failure corresponding to communications applications, to show this APN and the communications applications simultaneously mismatch, to the target corresponding to the communications applications in corresponding relation list APN carries out deletion renewal;
After monitoring using a target APN establishes network data corresponding to communications applications, the communications applications The use of other APN (is probably outside communications applications corresponding A PN, it is also possible in corresponding A PN One, but be not to come first) communication quality than using the communications applications target APN During good communication quality, the APN is replaced with into target APN, also will the APN as new target APN.Such as the APN is placed on first of corresponding relation.
, may be after a starting up with regard to needing to build according to its facilities of surfing the Net for some terminals Vertical data connection, often data connection is established when now establishing data connection from acquiescence APN.Cause This, in the present embodiment, when the communications applications for being currently up, according to above-mentioned mapping table and/or tune After selecting target APN with rule, it can first judge that the currently-established data connection of terminal is used APN whether be exactly target APN, in this way, then directly connected using the data, be thus not required to Re-establish, resource can be saved, lift resource utilization, and lift networking efficiency simultaneously.As currently APN used in the data connection established is not target APN, then using target APN again Data connection is established so that communications applications use.
Second embodiment:
A kind of APN distributors are present embodiments provided, it is shown in Figure 3, including:
Correspondence setting module 31, for setting the communications applications of terminal and pair of APN corresponding relations Answer relation list;
There are total APN databases of the data comprising the APN for supporting each operator in the whole world in terminal.It is right It should be related to that setup module 31 (need to include but is not limited to according to the APN selection parameters of the SIM card in terminal The parameters such as MCC, MNC, SPN) select in APN databases from this and matched with the SIM card APN be put into SIM card database;Then it is terminal according to user instruction or other instructions or rule Each communications applications selected from SIM card database corresponding to APN establish corresponding relation.Obtained pair Answer in relation list, a communications applications may correspond to one or more APN, and an APN may also Corresponding one or more communications applications.
Processing module 32, when currently having communications applications startup for detecting in terminal, according to corresponding relation APN corresponding to the list lookup communications applications that are currently up;
Connection establishment module 33, the APN for being searched using processing module establish data connection, to protect The established data connection of card matches with the communications applications being currently up so that the communications applications are most quick Obtain best network quality.
It should be appreciated that all communications of terminal can be included in corresponding relation list in the present embodiment Using, namely APN corresponding to each communications applications in terminal is in the corresponding relation list There is clear and definite embodiment.Also user's communications applications of concern or some special applications can only be included.It is such as right This kind of communications applications in corresponding relation for acquiescence APN, in the corresponding relation list just without system Meter, as soon as when communications applications start and do not find the communications applications in the corresponding relation list, it is natural Show it is acquiescence APN corresponding to the communications applications.
Shown in Figure 4, the APN distributors in the present embodiment are also set including APN calling rules Put module 34, at least one communications applications in corresponding relation list (such as corresponding APN has multiple communications applications, or some specific communications application paid close attention to for user etc., Or directly to all communications applications in form) corresponding to APN set APN calling rules;
Connection establishment module 33 includes:
Whether the first judging submodule 331, APN corresponding to the communications applications being currently up for judgement deposit In APN calling rules;
First choice submodule 332, for the first judging submodule judged result for be when, according to The APN calling rules select target APN from the APN found, are established using target APN Data connect;Such as it is not present, then according to current mechanism or random selection mechanism from the APN found Selection one is as target APN.
APN calling rules in the present embodiment can include APN and call Cahn-Ingold-Prelog sequence rule;First judges submodule When block 331 judges that APN corresponding to the communications applications that are currently up has APN calling rules, then first The APN that selection submodule 332 includes according to APN calling rules calls Cahn-Ingold-Prelog sequence rule, from what is found The APN that Selection and call order is first in APN is as target APN.The APN that calling order is first For the APN of one matched the most with the communications applications, it is best that the APN can ensure that communications applications have Online quality.
It should be appreciated that for each APN calling order, except this considerations of online quality Outside, also setting can specifically be considered with reference to other factors according to real needs.
For existing each APN, any communication application in terminal can be carried out calling and existing safety The problem of hidden danger.The present embodiment can set to specific or all APN and apply restriction rule so that only Have and meet that this is called using just having permission for restriction rule to the APN.Network can so be lifted The security of side, further lift the satisfaction of Consumer's Experience.It is shown in Figure 5, now this implementation APN distributors in example also include applying restriction rule setup module 35 and authentication module 36.Using Restriction rule setup module 35 is used to set at least one APN in relation list application limitation rule Then;
Authentication module 36 also includes:
Second judging submodule 361, for establishing number using target APN in first choice submodule 331 Before connection, judge whether target APN is provided with using restriction rule;
Second selection submodule 362, in the presence of being in the judged result of the second judging submodule 361, Judge whether the communications applications being currently up meet that this applies restriction rule, such as meet, it is allowed to call institute State target APN;Otherwise, forbid calling, and notify first choice submodule 331 to reselect target APN。
Second selection submodule 334, in the presence of being in the judged result of the second judging submodule 333, Judge whether the communications applications being currently up meet that this applies restriction rule, such as meet, select the APN For target APN;Otherwise, forbid transferring the APN, APN need to be reselected.
It should be appreciated that the APN distributors in the present embodiment can be flexibly set comprising APN In calling rule setup module 34 and application restriction rule setup module 35 any one or directly include The two modules.
Shown in Figure 6 in the present embodiment, APN distributors also include monitoring with new module 37, For after mapping table is set, being monitored to the actual use situation of follow-up each terminal applies, And appropriate adjustment can be carried out to the mapping table of setting according to monitoring result and updated, to ensure corresponding close The accuracy and optimality of system.For example, when finding a certain communications applications of terminal startup, should using the communication When establishing data connection failure with corresponding one of APN, and/or using corresponding to the communications applications One APN network quality on the contrary without it is good using other APN network quality when, all can be to corresponding Relation carries out appropriate renewal adjustment.
, may be after a starting up with regard to needing to build according to its facilities of surfing the Net for some terminals Vertical data connection, often data connection is established when now establishing data connection from acquiescence APN.Cause This, in the present embodiment, when the communications applications for being currently up, according to above-mentioned mapping table and/or tune After selecting target APN with rule, it can first judge that the currently-established data connection of terminal is used APN whether be exactly target APN, in this way, then directly connected using the data, be thus not required to Re-establish, resource can be saved, lift resource utilization, and lift networking efficiency simultaneously.As currently APN used in the data connection established is not target APN, then using target APN again Data connection is established so that communications applications use.
3rd embodiment:
A kind of terminal is present embodiments provided, the terminal can be mobile phone terminal or other communication terminals, ask Shown in Figure 7, it includes memory 71 and processor 72, and memory 71 is used for storage program, place Manage the program that device 72 is used in run memory 71 and perform following APN assigning process:
Communications applications comprising terminal and the corresponding relation list of APN corresponding relations are set;
Detecting in terminal has current when having communications applications startup, and according to corresponding relation list lookup, this is current APN corresponding to the communications applications of startup;
Data are established using the APN of lookup to connect.
The detailed process that processor 72 performs said procedure distribution APN is referred to shown in embodiment one.For It is better understood from inventing, below using terminal as mobile phone, the mobile phone can be single SIM mobile phones, can also It is double SIM card or the mobile phone of the more SIM cards of support.The APN dynamic allocation procedures of the mobile phone please join As shown in Figure 8, including:
S801:When SIM card identification after, read mobile phone in SIM card APN selection parameters (including But MCC is not limited to, the parameter such as MNC, SPN;
S802:Judge to read and whether succeed, in this way, go to S803;Otherwise, S803 is gone to;
S803:Generate SIM card APN databases, matched comprising all with SIM card in the database APN;
S804:Selection acquiescence APN establishes the data connection of acquiescence;
S805:Ask the user whether to set corresponding relation and rule, in this way, go to S806;Otherwise, Go to S810;
S806:Store the mapping table set and rule (including but not limited to using restriction rule and It is at least one in APN calling rules);
S807:When having detected that new traffic application starts, according to mapping table and regular selection target APN establishes data connection;
S808:Whether the corresponding relation that monitoring communications applications subsequent use situation judges to set is optimal , in this way, go to S811;Otherwise, S809 is gone to;
S809:Situation according to monitoring goes back to S808 after being updated to corresponding relation;
S810:Data are established using the APN or default mechanism of last time to connect, and go to S811.
S811:Terminate.
In a wherein example, it is assumed that the communications applications 1 in the corresponding relation shown in Fig. 2 use target APN A, then call the process of using shown in Figure 9, including:
S901:Determine that communications applications 1 use target APN A according to above-mentioned mapping table and rule;
S902:Judge whether the APNx that mobile phone currently connects is exactly APN A, in this way, goes to S906; Otherwise, S903 is gone to;
S903:Data are established using APN A to connect;
S904:It is success to judge foundation, in this way, goes to S905;Otherwise, S907 is gone to;
S905:The data that communications applications 1 are established using APN A connect online.
S906:Communications applications 1 use current data connection online.
S907:Communications applications 1 are surfed the Net using the data connection of current default, and are updated APN A and be APNx。
In a wherein example, it is assumed that in the corresponding relation shown in Fig. 2, APN B can only be answered by communication Used with 3, then call the process of using shown in Figure 10, including:
S1001:Communications applications 3 bring into operation and require to call APN B;
S1002:Communications applications 3 in this way, go to S1003 whether in APN B white list;Otherwise, Go to S1005;
S1003:Data are established using APN B to connect;
S1004:The data that communications applications 3 are established using APN B connect online.
S1005:Failure is established in returned data connection.
Obviously, those skilled in the art should be understood that each module of the invention described above or each step can be with Realized with general computing device, they can be concentrated on single computing device, or are distributed in On the network that multiple computing devices are formed, alternatively, the program that they can be can perform with computing device Code is realized, it is thus possible to be stored in storage medium (ROM/RAM, magnetic disc, CD) In performed by computing device, and in some cases, can be to perform institute different from order herein The step of showing or describing, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So the present invention does not limit Combined in any specific hardware and software.
It the above is only the embodiment of the present invention, any formal limit not done to the present invention Make, every any simple modification made according to technical spirit of the invention to embodiment of above, be equal Change, combination or modification, still fall within the protection domain of technical solution of the present invention.

Claims (11)

  1. A kind of 1. APN distribution methods, it is characterised in that including:
    Communications applications comprising terminal and the corresponding relation list of APN corresponding relations are set;
    Detect in the terminal when currently having communications applications startup, according to the corresponding relation list lookup APN corresponding to the communications applications being currently up;
    Data are established using the APN of lookup to connect.
  2. 2. APN distribution methods as claimed in claim 1, it is characterised in that also include to described right Answer the APN corresponding at least one communications applications in relation list that APN calling rules are set;Accordingly , establishing data connection using the APN of lookup includes:
    APN corresponding to the communications applications being currently up described in judgement whether there is APN calling rules, such as In the presence of selecting target APN from the APN found according to the APN calling rules, use institute State target APN and establish data connection.
  3. 3. APN distribution methods as claimed in claim 2, it is characterised in that also include to the pass At least one APN in series of tables, which is set, applies restriction rule;
    Before establishing data connection using the target APN, in addition to make:
    Judge whether the target is provided with to APN using restriction rule, such as exist, judge described newly ought Whether the communications applications of preceding startup meet that this applies restriction rule, such as meet, it is allowed to call the target APN。
  4. 4. APN distribution methods as claimed in claim 3, it is characterised in that the application limitation rule The destinations traffic application call then only supplied comprising APN in special inventory;Whether judge the communications applications Meet that the application restriction rule includes:
    Whether the communications applications being currently up described in judgement are destinations traffic application in the special inventory, In this way, then meet.
  5. 5. the APN distribution methods as described in claim any one of 2-4, it is characterised in that also include:
    When monitoring to establish data connection failure using the target APN, to the corresponding relation list Described in target APN corresponding to the communications applications that are currently up deleted;
    And/or
    Monitor after establishing network data using the target APN, the communications applications being currently up make During with other APN communication quality than good communication quality using target APN, the APN is replaced with Target APN.
  6. 6. the APN distribution methods as described in claim any one of 1-4, it is characterised in that bag is set Include containing communications applications in terminal and the corresponding relation list of APN corresponding relations:
    The APN matched with the Subscriber Identity Module in the terminal is found from total APN databases to be put into Subscriber Identity Module APN databases;
    Corresponding to being selected for the communications applications in the terminal from the Subscriber Identity Module APN databases APN establishes corresponding relation.
  7. 7. the APN distribution methods as described in claim any one of 2-4, it is characterised in that use institute Stating target APN and establishing data and connect includes:
    Judge whether APN used in the currently-established data connection of the terminal is the target APN, in this way, connected using the data;Otherwise, data are re-established using target APN to connect.
  8. A kind of 8. APN distributors, it is characterised in that including:
    Correspondence setting module, for setting the communications applications of terminal are corresponding with APN corresponding relations to close Series of tables;
    Processing module, when currently having communications applications startup for detecting in the terminal, according to described right Relation list is answered to search APN corresponding to the communications applications that this is currently up;
    Connection establishment module, the APN for being searched using the processing module establish data connection.
  9. 9. APN distributors as claimed in claim 8, it is characterised in that also called including APN Rule setting module, for corresponding at least one communications applications in the corresponding relation list APN sets APN calling rules;
    The connection establishment module includes:
    First judging submodule, for judging whether APN corresponding to the communications applications being currently up deposits In APN calling rules;
    First choice submodule, for first judging submodule judged result for be when, according to The APN calling rules select target APN from the APN found, use the target APN Establish data connection.
  10. 10. APN distributors as claimed in claim 9, it is characterised in that also include application limit Rule setting module and authentication module processed;
    It is described to be used to set at least one APN in the relation list using restriction rule setup module Using restriction rule;
    The authentication module includes:
    Second judging submodule, connect for establishing data using the target APN in first choice submodule Before connecing, judge whether the target APN is provided with using restriction rule;
    Second selection submodule, in the presence of being in the judged result of second judging submodule, sentences Whether the communications applications being currently up of breaking meet that this applies restriction rule, such as meet, it is allowed to described in calling Target APN.
  11. 11. a kind of terminal, it is characterised in that including memory and processor, the memory is used for Storage program, the processor are used to run described program execution following steps:
    Communications applications comprising terminal and the corresponding relation list of APN corresponding relations are set;
    Detect in the terminal when currently having communications applications startup, according to the corresponding relation list lookup APN corresponding to the communications applications being currently up;
    Data are established using the APN of lookup to connect.
CN201610330316.6A 2016-05-18 2016-05-18 A kind of APN distribution methods, device and terminal Pending CN107404543A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610330316.6A CN107404543A (en) 2016-05-18 2016-05-18 A kind of APN distribution methods, device and terminal
PCT/CN2016/091754 WO2017197757A1 (en) 2016-05-18 2016-07-26 Method and device for apn assignment, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610330316.6A CN107404543A (en) 2016-05-18 2016-05-18 A kind of APN distribution methods, device and terminal

Publications (1)

Publication Number Publication Date
CN107404543A true CN107404543A (en) 2017-11-28

Family

ID=60324783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610330316.6A Pending CN107404543A (en) 2016-05-18 2016-05-18 A kind of APN distribution methods, device and terminal

Country Status (2)

Country Link
CN (1) CN107404543A (en)
WO (1) WO2017197757A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924828A (en) * 2018-06-25 2018-11-30 中国联合网络通信集团有限公司 A kind of APN adaptive approach, server-side and terminal
CN109510833A (en) * 2018-11-29 2019-03-22 北京车联天下信息技术有限公司 A kind of communication means and device based on a plurality of APN link
CN109890050A (en) * 2018-12-19 2019-06-14 深圳市优博讯科技股份有限公司 Android operation system switching at runtime APN method, storage medium and mobile terminal
CN110708694A (en) * 2019-10-15 2020-01-17 武汉诚迈科技有限公司 Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN112074001A (en) * 2020-08-27 2020-12-11 展讯半导体(成都)有限公司 Network access method and communication device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175283A (en) * 2007-11-28 2008-05-07 中兴通讯股份有限公司 Method for dynamically configuring name of access point
CN101909326A (en) * 2010-08-17 2010-12-08 中兴通讯股份有限公司 Selection method and device of access point
CN102438288A (en) * 2011-12-02 2012-05-02 深圳市融创天下科技股份有限公司 APN (Access Point Name) switch method and system as well as mobile terminal
US20130290549A1 (en) * 2012-04-26 2013-10-31 Samsung Electronics Co. Ltd. Method for managing network connection information and electronic device thereof
US20160066186A1 (en) * 2014-09-01 2016-03-03 Samsung Electronics Co., Ltd. Method for managing network access and electronic device therefor
CN105517105A (en) * 2014-09-23 2016-04-20 中兴通讯股份有限公司 Method and apparatus for accessing network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175283A (en) * 2007-11-28 2008-05-07 中兴通讯股份有限公司 Method for dynamically configuring name of access point
CN101909326A (en) * 2010-08-17 2010-12-08 中兴通讯股份有限公司 Selection method and device of access point
CN102438288A (en) * 2011-12-02 2012-05-02 深圳市融创天下科技股份有限公司 APN (Access Point Name) switch method and system as well as mobile terminal
US20130290549A1 (en) * 2012-04-26 2013-10-31 Samsung Electronics Co. Ltd. Method for managing network connection information and electronic device thereof
US20160066186A1 (en) * 2014-09-01 2016-03-03 Samsung Electronics Co., Ltd. Method for managing network access and electronic device therefor
CN105517105A (en) * 2014-09-23 2016-04-20 中兴通讯股份有限公司 Method and apparatus for accessing network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924828A (en) * 2018-06-25 2018-11-30 中国联合网络通信集团有限公司 A kind of APN adaptive approach, server-side and terminal
CN108924828B (en) * 2018-06-25 2021-08-31 中国联合网络通信集团有限公司 APN self-adaptation method, server and terminal
CN109510833A (en) * 2018-11-29 2019-03-22 北京车联天下信息技术有限公司 A kind of communication means and device based on a plurality of APN link
CN109890050A (en) * 2018-12-19 2019-06-14 深圳市优博讯科技股份有限公司 Android operation system switching at runtime APN method, storage medium and mobile terminal
CN110708694A (en) * 2019-10-15 2020-01-17 武汉诚迈科技有限公司 Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN112074001A (en) * 2020-08-27 2020-12-11 展讯半导体(成都)有限公司 Network access method and communication device

Also Published As

Publication number Publication date
WO2017197757A1 (en) 2017-11-23

Similar Documents

Publication Publication Date Title
CN107404543A (en) A kind of APN distribution methods, device and terminal
RU2524368C2 (en) Wireless communication device, method of providing access to wireless communication, base station and method of providing crossover to wireless communication network
CN108022100B (en) Cross authentication system and method based on block chain technology
CN103533189A (en) Method and apparatus for mobile seat call distribution
CN109474936A (en) Applied to the Internet of Things means of communication and system between multiple lora gateways
CN106201783B (en) A kind of data reconstruction method and device
CN106060034A (en) Account login method and device
CN101909277A (en) System and method for realizing real-name management and terminals
CN111787521A (en) Terminal application permission obtaining method, terminal equipment and USIM
CN106304033A (en) A kind of cellphone information defence method based on binding machine and card and system
CN105636016A (en) Method, apparatus, and system for network connection
CN106850703A (en) A kind of communication means and server based on social identity
CN115250213A (en) Method for connecting household appliance to product server
CN109672688A (en) Call processing method, device, equipment and storage medium
CN110138714A (en) Method, apparatus, electronic equipment and the storage medium of access process
CN106888446B (en) Methods, devices and systems for verification information recipient's property right identity
CN106961677A (en) A kind of management method and server, terminal
CN106529942B (en) The access method and terminal of a kind of nfc card
CN106304030A (en) A kind of means of communication based on virtual identity information, Apparatus and system
CN110198537A (en) Support eSIM management method, system and the eSIM activating method of multi-digital certificate
EP2622807A1 (en) Data filtering for communication devices
KR101641166B1 (en) Apparatus and system for providing lettering service
CN105959933A (en) Terminal control method and control device, and server
CN106339332B (en) A kind of information processing method, device and terminal
CN107770800A (en) ESIM card informations management method, equipment and server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171128

RJ01 Rejection of invention patent application after publication