CN107070669A - The connection control method and device of a kind of terminal - Google Patents
The connection control method and device of a kind of terminal Download PDFInfo
- Publication number
- CN107070669A CN107070669A CN201710193588.0A CN201710193588A CN107070669A CN 107070669 A CN107070669 A CN 107070669A CN 201710193588 A CN201710193588 A CN 201710193588A CN 107070669 A CN107070669 A CN 107070669A
- Authority
- CN
- China
- Prior art keywords
- terminal
- charge mode
- identification information
- request message
- data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
- H04L12/1407—Policy-and-charging control [PCC] architecture
Abstract
The disclosure provides a kind of connection control method and device of terminal, and this method includes:Receive the first kind request message for carrying out self terminal;The identification information of terminal is parsed from first kind request message;Obtain the charge mode corresponding with the identification information;The first kind response message for the first kind request message is sent to terminal, the first kind response message carries the charge mode, so that terminal carries out Access Control according to the charge mode.Pass through the technical scheme of the disclosure, access device can obtain the charge mode of terminal, and the charge mode is sent to terminal, terminal carries out Access Control according to charge mode, when terminal accesses internet, terminal can perceive charge mode, and control according to charge mode APP internet behavior.
Description
Technical field
The present invention relates to the connection control method and device of communication technical field, more particularly to a kind of terminal.
Background technology
With the fast development of development of Mobile Internet technology, mobile Internet has become an indispensable part.It is mobile
Terminal (such as smart mobile phone, IPAD) can pass through 3G network, 4G networks, WIFI (Wireless Fidelity, Wireless Fidelity)
The modes such as focus access internet, in network signal coverage, and user can anywhere or anytime be accessed by mobile terminal
Internet, facilitates user to access internet, improves user's impression.
But, when mobile terminal accesses internet by modes such as 3G network, 4G networks, WIFI hot spots, user can not
Charge mode is perceived, so that the internet behavior using (APP) can not be controlled according to charge mode.
The content of the invention
The disclosure provides a kind of connection control method of terminal, and applied to access device, methods described includes:
Receive the first kind request message for carrying out self terminal;
The identification information of the terminal is parsed from the first kind request message;
Obtain the charge mode corresponding with the identification information;
The first kind response message for the first kind request message, the first kind response report are sent to the terminal
Text carries the charge mode, so that the terminal carries out Access Control according to the charge mode.
The disclosure provides a kind of connection control method of terminal, applied to certificate server, including:
Receive the request message for asking charge mode from access device;
Inquiry charge mode corresponding with the request message;
The response message of the request message is sent to access device, the response message carries the charge mode, with
Make access device that charge mode is sent into terminal, Access Control is carried out according to charge mode by terminal.
The disclosure provides a kind of connection control method of terminal, and applied to terminal, methods described includes:
First kind request message is sent to access device, the first kind request message carries the mark letter of the terminal
Breath, so that the access device obtains the charge mode corresponding with the identification information;
Receive the first kind response message for the first kind request message that the access device is returned;
The charge mode is parsed from the first kind response message;
Access Control is carried out according to the charge mode.
The disclosure provides a kind of access control apparatus of terminal, and applied to access device, described device includes:
Receiving module, the first kind request message of self terminal is carried out for receiving;
Parsing module, the identification information for parsing the terminal from the first kind request message;
Acquisition module, for obtaining the charge mode corresponding with the identification information;
Sending module, for sending the first kind response message for the first kind request message, institute to the terminal
State first kind response message and carry the charge mode, so that the terminal carries out Access Control according to the charge mode.
The disclosure provides a kind of access control apparatus of terminal, applied to certificate server, including:
Receiving module, the request message of charge mode is asked for receiving being used for from access device;
Enquiry module, for inquiring about charge mode corresponding with the request message;
Sending module, the response message for sending the request message to the access device, the response message is taken
With the charge mode, so that charge mode is sent to terminal by the access device, and by the terminal according to charge mode
Carry out Access Control.
The disclosure provides a kind of access control apparatus of terminal, and applied to terminal, described device includes:
Sending module, for sending first kind request message to access device, the first kind request message carries described
The identification information of terminal, so that access device obtains the charge mode corresponding with the identification information;
Receiving module, is responded for receiving the first kind for the first kind request message that the access device is returned
Message;
Parsing module, for parsing the charge mode from the first kind response message;
Control module, for carrying out Access Control according to the charge mode.
Based on above-mentioned technical proposal, in the embodiment of the present disclosure, access device can get the charge mode of terminal, and will
The charge mode is sent to terminal, so that terminal carries out Access Control according to charge mode, 3G network, 4G nets are passed through in terminal
When the modes such as network, WIFI hot spot access internet, terminal can perceive charge mode, and control APP according to charge mode
Internet behavior, improve user experience.
Brief description of the drawings
, below will be to the disclosure in order to clearly illustrate the embodiment of the present disclosure or technical scheme of the prior art
The accompanying drawing used required in embodiment or description of the prior art is briefly described, it should be apparent that, in describing below
Accompanying drawing is only some embodiments described in the disclosure, for those of ordinary skill in the art, can also be according to this public affairs
These accompanying drawings for opening embodiment obtain other accompanying drawings.
Fig. 1 is the application scenarios schematic diagram in a kind of embodiment of the disclosure;
Fig. 2 is the flow chart of the connection control method of the terminal in a kind of embodiment of the disclosure;
Fig. 3 is the flow chart of the connection control method of the terminal in disclosure another embodiment;
Fig. 4 is the hardware structure diagram of the access device in a kind of embodiment of the disclosure;
Fig. 5 is the structure chart of the access control apparatus of the terminal in a kind of embodiment of the disclosure;
Fig. 6 is the hardware structure diagram of the certificate server in a kind of embodiment of the disclosure;
Fig. 7 is the structure chart of the access control apparatus of the terminal in a kind of embodiment of the disclosure;
Fig. 8 is the hardware structure diagram of the terminal in a kind of embodiment of the disclosure;
Fig. 9 is the structure chart of the access control apparatus of the terminal in a kind of embodiment of the disclosure.
Embodiment
The term used in the disclosure is merely for the sake of the purpose of description specific embodiment, and the unrestricted disclosure.This public affairs
" one kind ", " described " and "the" opened with the singulative used in claims are also intended to including most forms, unless
Context clearly shows that other implications.It is also understood that term "and/or" used herein refers to comprising one or more
Associated any or all of project listed may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of disclosure scope, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as
One information.Depending on linguistic context, in addition, used word " if " can be construed to " ... when " or " when ... "
Or " in response to determining ".
Propose a kind of connection control method of terminal in the embodiment of the present disclosure, this method can apply to include access to set
In standby, terminal system, and terminal accesses internet by access device.Access device can be BRAS (Broadband
Remote Access Server, Broadband Remote Access Server) equipment, terminal can be mobile eventually for smart mobile phone, IPAD etc.
End, or the terminal device such as notebook computer, PC (Personal Computer, personal computer).It is shown in Figure 1,
For the application scenarios schematic diagram of the embodiment of the present disclosure, terminal is connected to access device by access point, and access device takes with certification
Business device connection, certificate server can be AAA (Authentication Authorization Accounting, Certificate Authority
Charging) server.
It is shown in Figure 2, it is the flow chart of the connection control method of terminal, this method can include:
Step 201, terminal sends first kind request message, the mark of the first kind request message carried terminal to access device
Know information.The identification information can be authentication information (such as username and password), MAC (Media Access Control, medium
Access control) address, IP address etc., this identification information is not limited.
Step 202, access device receives the first kind request message for carrying out self terminal, and is parsed from first kind request message
Go out the identification information of terminal.Wherein, after first kind request message is received, access device may determine that first kind request message
Whether it is preset kind message, if it is, performing the step of parsing identification information from first kind request message, and performs
Subsequent step;If it is not, then being handled using traditional process.
In one example, when terminal accesses internet by modes such as 3G network, 4G networks, WIFI hot spots, it can relate to
And to two processes, one is verification process, and another is address allocation procedure.In verification process, it can verify that terminal is
It is no legal, if to allow accessing terminal to network;, it is necessary to be terminal distribution IP address in address allocation procedure., can be with based on this
The preset kind message in access device is set to include the authentication request packet in verification process, and/or, in address allocation procedure
Address requests message (such as DHCP (Dynamic Host Configuration Protocol, DHCP) please
Seek message).If the first kind request message that access device is received is authentication request packet and/or Address requests message, so that it may
To parse the identification information of terminal from first kind request message, it is possible to perform subsequent step.
In one example, preset kind message refers to the message for asking charge mode, if preset kind message bag
Authentication request packet is included, means that authentication request packet is used to trigger access device execution verification process, and trigger access device
The charge mode of terminal is obtained, and charge mode is returned into terminal.If preset kind message includes Address requests message, with regard to table
Show that Address requests message is used to trigger access device execution address allocation procedure, and trigger the charging mould that access device obtains terminal
Formula, and charge mode is returned into terminal.
Step 203, access device obtains the charge mode corresponding with the identification information.
In one example, can be with for the process of " access device obtain charge mode " corresponding with the identification information
Including but not limited to following manner:The Equations of The Second Kind that mode one, access device carry the identification information to certificate server transmission please
Message is sought, so that certificate server inquires about the charge mode corresponding with the identification information.Then, access device receives authentication service
The Equations of The Second Kind response message for the Equations of The Second Kind request message that device is returned, and parsed from the Equations of The Second Kind response message with being somebody's turn to do
Charge mode corresponding to identification information.Mode two, access device are obtained and the mark by the identification information-enquiry mapping table
Know the corresponding charge mode of information;Wherein, the mapping table can be used for record identification information pass corresponding with charge mode
System.
For mode one, Equations of The Second Kind request message can be with the identification information of carried terminal and charge mode attribute, and is somebody's turn to do
Charge mode attribute represents that Equations of The Second Kind request message is used to ask charge mode.Moreover, Equations of The Second Kind request message can be tradition
Type message or new type message., then can be to traditional message (such as authentication request packet if traditional type message
Deng) be extended, so that traditional message on the basis of traditional function, can carry identification information and charge mode attribute, after
And pass through traditional message request charge mode.If new type message, then a kind of new message can be defined, the new message can
Identification information and charge mode attribute are carried, then passes through the new message request charge mode.
In mode one, access device sends Equations of The Second Kind request message to certificate server, and the Equations of The Second Kind request message can
To carry identification information and charge mode attribute, the charge mode attribute can be default mark, such as DD, the charge mode
Attribute is used to ask charge mode.Certificate server is after Equations of The Second Kind request message is received, because Equations of The Second Kind request message is taken
Band charge mode attribute, i.e. access device are asking the charge mode of the identification information, therefore, and certificate server is first inquired about certainly
Whether body supports charge mode attribute.If not supporting charge mode attribute, then it represents that certificate server does not allow charge mode
Notify, to access device, to terminate flow.If supporting charge mode attribute, then it represents that certificate server allows to notify charge mode
To access device, therefore, certificate server is from local search to charge mode (the certificate server sheet corresponding with the identification information
The corresponding relation of ground meeting record identification information and charge mode), and the Equations of The Second Kind for carrying the charge mode is returned to access device
Response message.Access device is after the Equations of The Second Kind response message is received, it is possible to parsed from the Equations of The Second Kind response message
Charge mode corresponding to the identification information.
For mode two, access device obtains corresponding with the identification information by the identification information-enquiry mapping table
Charge mode before, mapping table can also be safeguarded, the mapping table can be pre-configured with or access
Equipment is got after relevant information from certificate server, is locally generated.
The process of mapping table is locally generated for access device, can be included:Access device is to certificate server
The 3rd class request message is sent, so that multiple terminals that certificate server inquiry is associated with the access device are (i.e. by the access
The terminal of equipment access network) identification information and charge mode.Then, access device receives being directed to for certificate server return
3rd class response message of the 3rd class request message, and parse from the 3rd class response message the mark letter of multiple terminals
Breath and charge mode.Then, access device records the identification information of each terminal and the charging mould of the terminal in mapping table
The corresponding relation of formula.
For mode two, the 3rd class request message can carry access device information and charge mode attribute, and the meter
Expense mode attribute represents that the 3rd class request message is used to ask charge mode.Moreover, the 3rd class request message can be traditional class
Type message or new type message., then can be to traditional message (such as authentication request packet) if traditional type message
It is extended, so that traditional message can carry access device information and charge mode attribute on the basis of traditional function, after
And pass through traditional message request charge mode.If new type message, then a kind of new message can be defined, the new message can
Access device information and charge mode attribute are carried, then passes through the new message request charge mode.
In mode two, access device sends the 3rd class request message to certificate server, and the 3rd class request message can
To carry access device information and charge mode attribute, the charge mode attribute can be default mark, such as DD, the charging
Mode attribute is used to ask charge mode.Certificate server is after the 3rd class request message is received, because the 3rd class asks to report
Text carries the charge mode that charge mode attribute, i.e. access device are asking the access device information, therefore, certificate server
First inquire about whether itself supports charge mode attribute.If not supporting charge mode attribute, then it represents that certificate server do not allow by
Charge mode notifies, to access device, to terminate flow.If supporting charge mode attribute, then it represents that certificate server allows charging
Pattern notification is to access device, and therefore, certificate server is from local search to multiple terminals corresponding with the access device information
Identification information and charge mode, and the 3rd class of the identification information and charge mode that carry multiple terminals is returned to access device
Response message, access device is after the 3rd class response message is received, it is possible to parsed from the 3rd class response message many
The identification information and charge mode of individual terminal, and the identification information of each terminal and the charging of the terminal are recorded in mapping table
The corresponding relation of pattern.
For example, certificate server can be with the information shown in Maintenance Table 1, it is assumed that access device information is access device 1, then recognizes
Demonstrate,prove server can from local search to identification information A with charge mode A corresponding relation, identification information B and charge mode B
Corresponding relation, therefore, carried in the 3rd class response message identification information A and charge mode A corresponding relation, identification information B with
Charge mode B corresponding relation, moreover, access device is after the 3rd class response message is received, the mapping table of maintenance can
With as shown in table 2.
Table 1
Table 2
Identification information | Charge mode |
Identification information A | Charge mode A |
Identification information B | Charge mode B |
Step 204, access device sends the first kind response message for first kind request message (as recognizing to terminal
Demonstrate,prove authentication response message, the address response message for Address requests message of request message), first kind response message carries meter
Take pattern, the charge mode includes charging methods of volume of flow, time-based charging pattern.
Step 205, the first kind response message for first kind request message that terminal reception access device is returned, and from
Charge mode (charging methods of volume of flow or time-based charging pattern) is parsed in first kind response message.
In one example, access device can add an option (option) in first kind response message, and lead to
Cross the option and carry the charge mode.For example, the option can include type field, length field, value field etc. three
Field;Wherein, the numerical value of type field can be 514, and represent current option carryings is charge mode;The number of length field
It is worth the length for option;The numerical value of value field is that 0 or 1,0 expression charge mode is charging methods of volume of flow, and 1 represents charging mould
Formula is time-based charging pattern.Certainly, above-mentioned each numerical value (such as 514,0,1) is the example of the disclosure, and this numerical value is not limited
System.
Step 206, terminal carries out Access Control according to the charge mode.
In one example, for the process of " terminal according to the charge mode carry out Access Control ", it can include but not
It is limited to following manner:If the charge mode is charging methods of volume of flow,:When the APP of terminal produces the number for accessing internet
According to, and the data be specified type data when, then can to user export whether allow send the data prompting message;So
Afterwards, if receiving the response for allowing to send the data, the data can be sent, are not permitted if not receiving response or receiving
Perhaps the response of the data is sent, then can abandon the data.Or, if charge mode is time-based charging pattern,:When terminal
APP produces the data for accessing internet, and the data are when being specified type data, then can directly transmit the data.
In actual applications, a large amount of APP can be installed in terminal, and some APP are understood under active after there is redaction
Carry, and more redaction, or even can stealthily download.If the charge mode of terminal is charging methods of volume of flow, a large amount of expenses will be produced.
For above-mentioned discovery, in the embodiment of the present disclosure, terminal is after charge mode is obtained, it is possible to connect according to the charge mode
Enter control, that is, control APP internet behavior.
For example, if charge mode is charging methods of volume of flow, terminal can set flag bit strict check, to represent
Charge mode is charging methods of volume of flow, at this time, it may be necessary to limit specified type data.If charge mode is time-based charging pattern,
Terminal can set flag bit loose check, need not limit specified to represent charge mode as time-based charging pattern, now
Categorical data, can let pass and access all data of internet.
The data for being used to access internet produced for APP, can include specified type data and non-designated number of types
According to.Specified type data can include FTP (File Transfer Protocol, FTP) type data,
The data of TFTP (Trivial File Transfer Protocol, TFTP) type, BT (Bit
Torrent, bit stream) type data etc., rather than specified type data can include other numbers outside specified type data
According to such as browsing the data of webpage.In one example, specified type data can be distinguished based on data content and non-designated
Categorical data, is not limited to this mode.In another example, because the flow of specified type data is larger, non-designated type
The flow of data is smaller, therefore a threshold value (5M) can be set, when the corresponding downloading flow of data is more than threshold value, it is believed that data
It is to specify categorical data, when the corresponding downloading flow of data is not more than threshold value, it is believed that data are non-specified type data.
In summary, if APP produces the non-designated categorical data for accessing internet, no matter charge mode is flowmeter
Take pattern, or time-based charging pattern, terminal directly transmits data.If APP produces the specified type for accessing internet
Data, then terminal first inquire about flag bit.If flag bit is loose check, expression charge mode is time-based charging pattern, terminal
Directly transmit data.If flag bit is strict check, expression charge mode is charging methods of volume of flow, and terminal can eject dialogue
Frame, the prompting message for whether allowing to send data is exported to user;If user allows to send, terminal, which can be received, to be allowed to send number
According to response, and send data;If user does not allow to send, terminal can receive the response for not allowing to send data, and terminal is lost
Abandon the data;If user does not check prompting message, terminal will not receive response, and terminal abandons the data.
In one example, above-mentioned terminal can also be WIFI hot spot, and other terminals can also be accessed by the terminal
To internet.In the case, the processing in the case of the following two kinds can also be included:
Situation one, the first Terminal Type for being linked into the terminal, set up what is be connected in first Terminal Type with the terminal
During, the charge mode can be sent to the first Terminal Type by the terminal.Wherein, first Terminal Type refers to that the terminal is obtained
The terminal accessed after to charge mode.For example, the terminal is after charge mode is got, if there is the first Terminal Type to be linked into
The terminal, first Terminal Type, which needs first to set up with the terminal, to be connected, and such as sets up WIFI connections, mode is set up not to this connection
It is limited.During first Terminal Type and the terminal are set up and be connected, the charge mode can be sent to this by the terminal
First Terminal Type.
Situation two, the second Terminal Type for being linked into the terminal, first remove the connection of second Terminal Type and the terminal
Relation, to trigger second Terminal Type reconnect;During second Terminal Type and the terminal are set up and be connected, this is counted
Expense pattern is sent to the second Terminal Type.Wherein, second Terminal Type refers to that the terminal gets the end accessed before charge mode
End.For example, the terminal is before charge mode is got, there is the second Terminal Type to be set up with the terminal and be connected;The terminal exists
After getting charge mode, first disconnect the connection with second Terminal Type, with trigger second Terminal Type again with the terminal
Connection is set up, WIFI connections are such as set up, setting up mode to this connection is not limited.Set up in second Terminal Type and the terminal
During connecting (re-establishing connection), the charge mode can be sent to second Terminal Type by the terminal.
Based on above-mentioned technical proposal, in the embodiment of the present disclosure, access device can get the charge mode of terminal, and will
The charge mode is sent to terminal, so that terminal carries out Access Control according to charge mode, 3G network, 4G nets are passed through in terminal
When the modes such as network, WIFI hot spot access internet, terminal can perceive charge mode, and control APP according to charge mode
Internet behavior, and improve Consumer's Experience.
The flow chart of the connection control method of the terminal proposed based on the design same with the above method, the embodiment of the present disclosure
Referring also to shown in Fig. 3, this method can apply to certificate server, and this method can include:
Step 301, the request message for asking charge mode from access device is received.
Step 302, charge mode corresponding with the request message is inquired about.
Step 303, the response message of the request message is sent to access device, the response message carries charge mode, with
Make access device that charge mode is sent into terminal, Access Control is carried out according to charge mode by terminal.
In one example, for the process of " inquiry charge mode corresponding with the request message ", it can include:If should
The identification information of request message carried terminal, and the request message is used for the charge mode of requesting terminal, i.e. the request message is
Equations of The Second Kind request message in above-described embodiment, then certificate server inquire about the charge mode corresponding with the identification information.Or,
If the request message is used for the charge mode for multiple terminals that request is associated with access device, i.e. the request message is above-mentioned implementation
The identification information and meter of the 3rd class request message in example, then multiple terminals that certificate server inquiry is associated with the access device
Take pattern.
For the processing procedure of certificate server, referring to the description of above-described embodiment, it will not be repeated here.
Based on the open design same with the above method, the embodiment of the present disclosure also provides a kind of Access Control dress of terminal
Put, the access control apparatus of the terminal is applied in access device.The access control apparatus of the terminal can be realized by software,
It can be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as the device on a logical meaning,
It is that corresponding computer program instructions are formed in the processor by the access device where it, reading non-volatile storage
's.For hardware view, as shown in figure 4, being the access device where the access control apparatus of the terminal of disclosure proposition
A kind of hardware structure diagram, in addition to the processor shown in Fig. 4, nonvolatile memory, it is hard that access device can also include other
Part, is such as responsible for forwarding chip, network interface, the internal memory of processing message;For from hardware configuration, the access device is also possible to
It is distributed apparatus, potentially includes multiple interface cards, to carry out the extension of Message processing in hardware view.
As shown in figure 5, the structure chart of the access control apparatus of the terminal proposed for the disclosure, including:
Receiving module 11, the first kind request message of self terminal is carried out for receiving;
Parsing module 12, the identification information for parsing the terminal from the first kind request message;
Acquisition module 13, for obtaining the charge mode corresponding with the identification information;
Sending module 14, for sending the first kind response message for the first kind request message to the terminal,
The first kind response message carries the charge mode, so that the terminal carries out Access Control according to the charge mode.
In one example, the acquisition module 13, specifically for obtaining the charging mould corresponding with the identification information
During formula, the Equations of The Second Kind request message for carrying the identification information is sent to certificate server, so that the authentication service
Device inquires about the charge mode corresponding with the identification information;Receive being asked for the Equations of The Second Kind for the certificate server return
The Equations of The Second Kind response message of message, and parse from the Equations of The Second Kind response message charging mould corresponding with the identification information
Formula;Or,
By the identification information-enquiry mapping table, the charge mode corresponding with the identification information is obtained;Wherein,
The mapping table is used for the corresponding relation of record identification information and charge mode.
The acquisition module 13, is additionally operable to by the identification information-enquiry mapping table, obtaining and the mark
Before the corresponding charge mode of information, the 3rd class request message is sent to certificate server, so that the certificate server is inquired about
The identification information and charge mode of the multiple terminals associated with the access device;Receive being directed to for the certificate server return
3rd class response message of the 3rd class request message, and parse from the 3rd class response message mark of multiple terminals
Know information and charge mode;The corresponding of the identification information of each terminal and the charge mode of the terminal is recorded in mapping table
Relation.
In one example, the acquisition module 13 is sent to the certificate server the Equations of The Second Kind request message or
The 3rd class request message carries charge mode attribute described in person, wherein, the charge mode attribute represents that the Equations of The Second Kind please
Message or the 3rd class request message is asked to be used to ask charge mode.
Based on the open design same with the above method, a kind of Access Control dress of terminal is also provided in the embodiment of the present disclosure
Put, can apply in certificate server.The access control apparatus of the terminal can be realized by software, can also by hardware or
The mode of person's software and hardware combining is realized.It is by where it as the device on a logical meaning exemplified by implemented in software
Corresponding computer program instructions formation in the processor of certificate server, reading non-volatile storage.From hardware view
For, as shown in fig. 6, a kind of hardware configuration of the certificate server where the access control apparatus of the terminal proposed for the disclosure
Figure, in addition to the processor shown in Fig. 6, nonvolatile memory, certificate server can also include other hardware, such as be responsible for place
Manage forwarding chip, network interface, internal memory of message etc.;For from hardware configuration, the certificate server is also possible to be distributed
Equipment, potentially includes multiple interface cards, to carry out the extension of Message processing in hardware view.
As shown in fig. 7, the structure chart of the access control apparatus of the terminal proposed for the disclosure, including:
Receiving module 21, the request message of charge mode is asked for receiving being used for from access device;
Enquiry module 22, for inquiring about charge mode corresponding with the request message;
Sending module 23, the response message for sending the request message to the access device, the response message
The charge mode is carried, so that charge mode is sent to terminal by the access device, and by the terminal according to charging mould
Formula carries out Access Control.
The enquiry module 22, specifically for during corresponding with request message charge mode is inquired about, if
The identification information of the request message carried terminal, and charge mode of the request message for asking the terminal, then look into
Ask the charge mode corresponding with the identification information;Or,
If the request message is used for the charge mode of multiple terminals for asking associate with the access device, inquire about and
The identification information and charge mode of multiple terminals of the access device association.
Based on the open design same with the above method, a kind of Access Control of terminal is additionally provided in the embodiment of the present disclosure
Device, the access control apparatus of the terminal is applied in terminal.Wherein, the access control apparatus of the terminal can be real by software
It is existing, it can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as on a logical meaning
Device, is that corresponding computer program instructions are formed in the processor by the terminal where it, reading non-volatile storage
's.For hardware view, as shown in figure 8, one kind of the terminal where the access control apparatus of the terminal proposed for the disclosure
Hardware structure diagram, in addition to the processor shown in Fig. 8, nonvolatile memory, terminal can also include other hardware, such as be responsible for
Handle forwarding chip, network interface, internal memory of message etc.;For from hardware configuration, the terminal is also possible to be distributed apparatus,
Multiple interface cards are potentially included, to carry out the extension of Message processing in hardware view.
As shown in figure 9, the structure chart of the access control apparatus of the terminal proposed for the disclosure, including:
Sending module 31, for sending first kind request message to access device, the first kind request message carries institute
The identification information of terminal is stated, so that access device obtains the charge mode corresponding with the identification information;
Receiving module 32, rings for receiving the first kind for the first kind request message that the access device is returned
Answer message;
Parsing module 33, for parsing the charge mode from the first kind response message;
Control module 34, for carrying out Access Control according to the charge mode.
In one example, the control module 34, specifically for carrying out Access Control according to the charge mode
During, if the charge mode is charging methods of volume of flow, when the APP of the terminal produces the data for accessing internet,
And the data are when being specified type data, then export whether allow the prompting message that sends the data to user;If receiving
To the response for allowing to send the data, then the data are sent, if not receiving response or receiving does not allow to send institute
The response of data is stated, then abandons the data;
If the charge mode is time-based charging pattern, when the APP of the terminal produces the data for accessing internet,
And the data be specified type data when, then send the data.
If the terminal is WIFI hot spot, the sending module 31 is additionally operable in the parsing module from the first kind
After parsing the charge mode in response message, the first Terminal Type for being linked into the terminal, in the first kind
During terminal is connected with terminal foundation, the charge mode is sent to first Terminal Type;For being linked into
Second Terminal Type of the terminal, removes second Terminal Type and the annexation of the terminal, to trigger the Equations of The Second Kind
Terminal is reconnected;During second Terminal Type and the terminal are set up and be connected, the charge mode is sent to
Second Terminal Type;
Wherein, first Terminal Type refers to that the terminal gets the terminal accessed after charge mode;Described second
Terminal Type refers to that the terminal gets the terminal accessed before charge mode.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity,
Or realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware when open.
It should be understood by those skilled in the art that, embodiment of the disclosure can be provided as method, system or computer program
Product.Therefore, the disclosure can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the embodiment of the present disclosure can be used wherein includes computer usable program code one or more
The computer that computer-usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
The disclosure is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present disclosure
Figure and/or block diagram are described.It is generally understood that by each in computer program instructions implementation process figure and/or block diagram
Flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer journeys can be provided
Sequence instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices processor with
Produce a machine so that being produced by the instruction of computer or the computing device of other programmable data processing devices is used for
Realize the dress for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Put.
Moreover, these computer program instructions can also be stored in computer or the processing of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory is produced
Manufacture including command device, the command device is realized in one flow of flow chart or multiple flows and/or block diagram one
The function of being specified in individual square frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so that in computer
Or the instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram
The step of function of being specified in one square frame or multiple square frames.
It will be understood by those skilled in the art that embodiment of the disclosure can be provided as method, system or computer program product.
Therefore, the disclosure can be using the implementation in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
The form of example.Moreover, the disclosure can be used wherein includes the calculating of computer usable program code at one or more
The computer that machine usable storage medium is implemented on (can include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
Embodiment of the disclosure is the foregoing is only, the disclosure is not limited to.For those skilled in the art
For, the disclosure can have various modifications and variations.It is all any modifications made within the spirit and principle of the disclosure, equivalent
Replace, improve etc., it should be included within the right of the disclosure.
Claims (15)
1. a kind of connection control method of terminal, applied to access device, it is characterised in that including:
Receive the first kind request message for carrying out self terminal;
The identification information of the terminal is parsed from the first kind request message;
Obtain the charge mode corresponding with the identification information;
The first kind response message for the first kind request message is sent to the terminal, the first kind response message is taken
With the charge mode, so that the terminal carries out Access Control according to the charge mode.
2. according to the method described in claim 1, it is characterised in that
The process for obtaining the charge mode corresponding with the identification information, is specifically included:
The Equations of The Second Kind request message for carrying the identification information is sent to certificate server so that certificate server inquiry with
Charge mode corresponding to the identification information;Receive that the certificate server returns for the of the Equations of The Second Kind request message
Two class response messages, and parse the charge mode corresponding with the identification information from the Equations of The Second Kind response message;Or,
By the identification information-enquiry mapping table, the charge mode corresponding with the identification information is obtained;Wherein, it is described
Mapping table is used for the corresponding relation of record identification information and charge mode.
3. method according to claim 2, it is characterised in that described by the identification information-enquiry mapping table,
Obtain before the charge mode corresponding with the identification information, methods described also includes:
The 3rd class request message is sent to certificate server, so that what certificate server inquiry was associated with the access device
The identification information and charge mode of multiple terminals;
Receive the 3rd class response message for the 3rd class request message that the certificate server is returned, and from described the
The identification information and charge mode of multiple terminals are parsed in three class response messages;
The corresponding relation of the identification information of each terminal and the charge mode of the terminal is recorded in mapping table.
4. a kind of connection control method of terminal, applied to certificate server, it is characterised in that including:
Receive the request message for asking charge mode from access device;
Inquiry charge mode corresponding with the request message;
The response message of the request message is sent to access device, the response message carries the charge mode, so as to connect
Enter equipment and charge mode is sent to terminal, Access Control is carried out according to charge mode by terminal.
5. method according to claim 4, it is characterised in that
The process for inquiring about charge mode corresponding with the request message, is specifically included:
If the identification information of the request message carried terminal, and charging mould of the request message for asking the terminal
Formula, then inquire about the charge mode corresponding with the identification information;Or,
If the request message is used for the charge mode of multiple terminals for asking to associate with the access device, inquire about with it is described
The identification information and charge mode of multiple terminals of access device association.
6. a kind of connection control method of terminal, applied to terminal, it is characterised in that methods described includes:
First kind request message is sent to access device, the first kind request message carries the identification information of the terminal, with
The access device is set to obtain the charge mode corresponding with the identification information;
Receive the first kind response message for the first kind request message that the access device is returned;
The charge mode is parsed from the first kind response message;
Access Control is carried out according to the charge mode.
7. method according to claim 6, it is characterised in that
The process that Access Control is carried out according to the charge mode, is specifically included:
If the charge mode is charging methods of volume of flow, when the APP of the terminal produces the data for accessing internet, and institute
When stating data for specified type data, then the prompting message for whether allowing to send the data is exported to user;If receiving fair
Perhaps the response of the data is sent, then sends the data, if not receiving response or receiving does not allow to send the number
According to response, then abandon the data;
If the charge mode is time-based charging pattern, when the APP of the terminal produces the data for accessing internet, and institute
When stating data for specified type data, then the data are sent.
8. method according to claim 6, it is characterised in that if the terminal is WIFI hot spot, described from described first
Parsed in class response message after the charge mode, methods described also includes:
The first Terminal Type for being linked into the terminal, the process being connected is set up in first Terminal Type with the terminal
In, the charge mode is sent to first Terminal Type;
The second Terminal Type for being linked into the terminal, removes second Terminal Type and the annexation of the terminal, with
Second Terminal Type is triggered to reconnect;, will be described during second Terminal Type and the terminal are set up and be connected
Charge mode is sent to second Terminal Type;
Wherein, first Terminal Type refers to that the terminal gets the terminal accessed after charge mode;The Equations of The Second Kind is whole
End refers to that the terminal gets the terminal accessed before charge mode.
9. a kind of access control apparatus of terminal, applied to access device, it is characterised in that including:
Receiving module, the first kind request message of self terminal is carried out for receiving;
Parsing module, the identification information for parsing the terminal from the first kind request message;
Acquisition module, for obtaining the charge mode corresponding with the identification information;
Sending module, for sending the first kind response message for the first kind request message, described the to the terminal
One class response message carries the charge mode, so that the terminal carries out Access Control according to the charge mode.
10. device according to claim 9, it is characterised in that
The acquisition module, specifically for during the charge mode corresponding with the identification information is obtained, being taken to certification
Business device sends the Equations of The Second Kind request message for carrying the identification information, so that certificate server inquiry and the identification information
Corresponding charge mode;Receive the Equations of The Second Kind response report for the Equations of The Second Kind request message that the certificate server is returned
Text, and parse the charge mode corresponding with the identification information from the Equations of The Second Kind response message;Or,
By the identification information-enquiry mapping table, the charge mode corresponding with the identification information is obtained;Wherein, it is described
Mapping table is used for the corresponding relation of record identification information and charge mode;
Wherein, the acquisition module, is additionally operable to by the identification information-enquiry mapping table, obtaining believing with the mark
Before ceasing corresponding charge mode, the 3rd class request message is sent to certificate server so that certificate server inquiry with
The identification information and charge mode of multiple terminals of the access device association;Receive the certificate server return is directed to institute
The 3rd class response message of the 3rd class request message is stated, and parses from the 3rd class response message mark of multiple terminals
Information and charge mode;The corresponding pass of the identification information of each terminal and the charge mode of the terminal is recorded in mapping table
System.
11. a kind of access control apparatus of terminal, applied to certificate server, it is characterised in that including:
Receiving module, the request message of charge mode is asked for receiving being used for from access device;
Enquiry module, for inquiring about charge mode corresponding with the request message;
Sending module, the response message for sending the request message to the access device, the response message carries institute
Charge mode is stated, so that charge mode is sent to terminal by the access device, and is carried out by the terminal according to charge mode
Access Control.
12. device according to claim 11, it is characterised in that
The enquiry module, specifically for during charge mode corresponding with the request message is inquired about, if described please
The identification information of message carried terminal, and charge mode of the request message for asking the terminal are asked, then inquiry and institute
State charge mode corresponding to identification information;Or,
If the request message is used for the charge mode of multiple terminals for asking to associate with the access device, inquire about with it is described
The identification information and charge mode of multiple terminals of access device association.
13. a kind of access control apparatus of terminal, applied to terminal, it is characterised in that including:
Sending module, for sending first kind request message to access device, the first kind request message carries the terminal
Identification information so that access device obtains the charge mode corresponding with the identification information;
Receiving module, report is responded for receiving the first kind for the first kind request message that the access device is returned
Text;
Parsing module, for parsing the charge mode from the first kind response message;
Control module, for carrying out Access Control according to the charge mode.
14. device according to claim 13, it is characterised in that
The control module, specifically for during Access Control is carried out according to the charge mode, if the charging mould
Formula is charging methods of volume of flow, when the APP of the terminal produces the data for accessing internet, and the data are specified type
During data, then the prompting message for whether allowing to send the data is exported to user;If receiving allows to send the data
Response, then send the data, if not receiving response or receiving the response for not allowing to send the data, abandons institute
State data;
If the charge mode is time-based charging pattern, when the APP of the terminal produces the data for accessing internet, and institute
When stating data for specified type data, then the data are sent.
15. device according to claim 13, it is characterised in that if the terminal is WIFI hot spot, the sending module,
It is additionally operable to after the parsing module parses the charge mode from the first kind response message, for being linked into
The first Terminal Type of terminal is stated, during first Terminal Type and the terminal are set up and be connected, by the charge mode
It is sent to first Terminal Type;
The second Terminal Type for being linked into the terminal, removes second Terminal Type and the annexation of the terminal, with
Second Terminal Type is triggered to reconnect;, will be described during second Terminal Type and the terminal are set up and be connected
Charge mode is sent to second Terminal Type;
Wherein, first Terminal Type refers to that the terminal gets the terminal accessed after charge mode;The Equations of The Second Kind is whole
End refers to that the terminal gets the terminal accessed before charge mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193588.0A CN107070669A (en) | 2017-03-28 | 2017-03-28 | The connection control method and device of a kind of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193588.0A CN107070669A (en) | 2017-03-28 | 2017-03-28 | The connection control method and device of a kind of terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107070669A true CN107070669A (en) | 2017-08-18 |
Family
ID=59620996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710193588.0A Pending CN107070669A (en) | 2017-03-28 | 2017-03-28 | The connection control method and device of a kind of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107070669A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698760A (en) * | 2017-10-23 | 2019-04-30 | 华为技术有限公司 | A kind of flow processing method and user face device and terminal device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571368A (en) * | 2010-12-27 | 2012-07-11 | 中兴通讯股份有限公司 | Charging method and access device |
CN105591762A (en) * | 2015-07-29 | 2016-05-18 | 杭州华三通信技术有限公司 | User charging method and device |
CN105760198A (en) * | 2016-02-19 | 2016-07-13 | 吴伟东 | Mobile phone app updating method and system |
-
2017
- 2017-03-28 CN CN201710193588.0A patent/CN107070669A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571368A (en) * | 2010-12-27 | 2012-07-11 | 中兴通讯股份有限公司 | Charging method and access device |
CN105591762A (en) * | 2015-07-29 | 2016-05-18 | 杭州华三通信技术有限公司 | User charging method and device |
CN105760198A (en) * | 2016-02-19 | 2016-07-13 | 吴伟东 | Mobile phone app updating method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698760A (en) * | 2017-10-23 | 2019-04-30 | 华为技术有限公司 | A kind of flow processing method and user face device and terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9301122B2 (en) | Apparatus and method for establishing a personal network for providing a CPNS service | |
EP3148225A1 (en) | Bluetooth connection-based audio playback method and apparatus | |
CN103475577B (en) | Method, device and network equipment for obtaining characteristic information | |
CN103607290B (en) | A kind of method and apparatus that network connection parameter is set | |
CN106851632A (en) | A kind of smart machine accesses the method and device of WLAN | |
CN107529160A (en) | A kind of VoWiFi method for network access and system, terminal and wireless access points equipment | |
CN111083695B (en) | 5G communication card-free access method, equipment and storage medium | |
CN108293055A (en) | Method, apparatus and system for authenticating to mobile network and for by the server of device authentication to mobile network | |
CN105574948A (en) | Checking-in method and equipment | |
US9241269B1 (en) | Method to identify a customer on a Wi-Fi network | |
CN109561059A (en) | A kind of account login method and its system, terminal, storage medium | |
CN109769249A (en) | A kind of authentication method, system and its apparatus | |
CN106559787A (en) | Method for network access, apparatus and system | |
CN112580730A (en) | Terminal type identification method and device | |
CN106453349A (en) | An account number login method and apparatus | |
CN108966230A (en) | Share the method and apparatus of wireless access point | |
CN105072212B (en) | To code method and to code system | |
CN107135506A (en) | A kind of portal authentication methods, apparatus and system | |
CN108156586A (en) | Phone number acquisition methods and system, server, storage medium | |
CN107070669A (en) | The connection control method and device of a kind of terminal | |
CN109981558B (en) | Authentication method, equipment and system of intelligent household equipment | |
CN105282821A (en) | Terminal and method for connecting the terminal with wireless fidelity WiFi access point | |
CN107635229A (en) | A kind of method and apparatus shared WIFI | |
CN108966206A (en) | Data traffic sharing method, device, terminal and storage medium | |
TWI606739B (en) | A system and method for establishing communications |
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: 20170818 |
|
RJ01 | Rejection of invention patent application after publication |