CN108307393A - Network flow resource sharing method, device, system and storage medium - Google Patents

Network flow resource sharing method, device, system and storage medium Download PDF

Info

Publication number
CN108307393A
CN108307393A CN201710719430.2A CN201710719430A CN108307393A CN 108307393 A CN108307393 A CN 108307393A CN 201710719430 A CN201710719430 A CN 201710719430A CN 108307393 A CN108307393 A CN 108307393A
Authority
CN
China
Prior art keywords
terminal
shared
sharing
information
network flow
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
CN201710719430.2A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710719430.2A priority Critical patent/CN108307393A/en
Publication of CN108307393A publication Critical patent/CN108307393A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Metering, charging or billing arrangements specially adapted for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based

Abstract

The embodiment of the invention discloses a kind of network flow resource sharing method, device, system and storage mediums;The embodiment of the present invention establish share terminal with after the wireless network connection for being shared terminal, it can be counted by the uninterrupted for sharing network flow resource used in terminal by sharing terminal-pair, and the network flow resource is controlled based on statistical result;The program can greatly improve the controllability shared and flexibility, be conducive to the utilization rate for improving network flow resource, flow is avoided to waste.

Description

Network flow resource sharing method, device, system and storage medium
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of network flow resource sharing method, device, system and deposits Storage media.
Background technology
With popularizing for intelligent terminal (abbreviation terminal), network in people's lives also increasingly attach most importance to by institute's role It wants.By network, people can carry out information inquiry, office, amusement, social activity and shopping, etc., almost omnipotent, because How this, more easily access network, also becomes people's problem of interest in recent years.
Based on the problem, the prior art proposes network flow resource sharing technology, and so-called network flow resource sharing refers to Be a kind of technology that network flow resource that user is possessed itself is supplied to other users to use.Usually, Ke Yitong It crosses and realizes the network flow resource sharing using cipher authentication or by the way of entering (portal) certification in router, alternatively, The network flow resource can also be realized by opening Wireless Fidelity (Wifi, Wireless Fidelity) hot spot in terminal Share.
In the research and practice process to the prior art, it was found by the inventors of the present invention that existing network flow resource It is poor to share scheme flexibility, and there is uncontrollability, be easy to cause the waste of network flow resource.
Invention content
A kind of network flow resource sharing method of offer of the embodiment of the present invention, device, system and storage medium, can be to dividing The network flow resource enjoyed is controlled, and is greatly improved its flexibility and is improved the utilization rate of network flow resource, avoids flowing Amount waste.
The embodiment of the present invention provides a kind of network flow resource sharing method, applied to sharing terminal, including:
Receive the connection request for being shared terminal transmission, mark connection request carrying authentication information and shared terminal Know;
When determining that the authentication is passed according to the authentication information, the mark foundation of being shared terminal according to described share terminal with Network flow resource sharing is shared terminal by the wireless network connection shared between terminal to described;
Uninterrupted to being shared network flow resource used in terminal counts;
The network flow resource is controlled based on statistical result.
The embodiment of the present invention also provides a kind of network flow resource sharing method, applied to being shared terminal, including:
Share inquiry request to server transmission;
Receive the candidate terminal list that server shares inquiry request return according to;
Terminal is shared in selection from the candidate terminal list, and obtains the mark for sharing terminal;
To server transmission share acquisition request, it is described share obtain request carry share terminal mark, shared end The mark at end with shared user information;
It receives server and shares the authentication information corresponding with terminal is shared for obtaining request return according to;
Connection request is sent to terminal is shared, the connection request carries the authentication information and shared the mark of terminal Know, when determining that the authentication is passed according to the authentication information to share terminal, is established and divided according to the mark for being shared terminal Enjoy terminal and the wireless network connection shared between terminal;
The network flow resource shared terminal and shared is obtained based on the wireless network connection.
The embodiment of the present invention also provides a kind of network flow resource sharing method, is applied to server, including:
Receive by shared terminal transmission share acquisition request, it is described share obtain request carry share terminal mark, Shared the mark of terminal and is shared user information;
When according to the mark for being shared terminal with being shared user information determination and being shared terminal and meet preset condition, It is obtained according to the mark for sharing terminal and shares the corresponding authentication information of terminal;
The authentication information is sent to terminal is shared, to be shared terminal based on the authentication information and to share terminal Establish wireless network connection;
The statistical result for sharing terminal transmission is received, the statistical result is shared by sharing terminal-pair used in terminal The uninterrupted of network flow resource, which is counted, to be obtained, and the network flow resource passes through the wireless network by sharing terminal Network connection, which is supplied to, is shared terminal;
According to the statistical result, charging is carried out according to preset strategy.
Correspondingly, the embodiment of the present invention also provides a kind of sharing apparatus, including:
Receiving unit, for receiving the connection request for being shared terminal transmission, the connection request carry authentication information and Shared the mark of terminal;
Unit is established, when for determining that the authentication is passed according to the authentication information, according to the mark for being shared terminal Terminal and the wireless network connection shared between terminal are shared in foundation, and network flow resource sharing is divided to described Enjoy terminal;
Statistic unit, for being counted to the uninterrupted for being shared network flow resource used in terminal;
Control unit controls the network flow resource for being based on statistical result.
Correspondingly, the embodiment of the present invention also provide it is a kind of by sharing apparatus, including:
First transmission unit, for sharing inquiry request to server transmission;
First receiving unit shares the candidate terminal list of inquiry request return for receiving server according to;
Selecting unit shares terminal for being selected from the candidate terminal list, and obtains the mark for sharing terminal;
Second transmission unit, for server transmission share acquisition request, it is described share acquisition request carry share end The mark at end, the mark for being shared terminal and shared user information;
Second receiving unit shares the corresponding with terminal is shared of acquisition request return for receiving server according to Authentication information;
Third transmission unit, for terminal transmission connection request is shared, the connection request to carry the authentication information Shared according to described when determining that the authentication is passed according to the authentication information to share terminal with the mark for being shared terminal Terminal and the wireless network connection shared between terminal are shared in the mark foundation of terminal;
Acquiring unit, for obtaining the network flow resource shared terminal and shared based on the wireless network connection.
Correspondingly, the embodiment of the present invention also provides a kind of server, including:
Request reception unit, for receive by shared terminal transmission share acquisition request, it is described share acquisition request take Band shares the mark of terminal, is shared the mark of terminal and shared user information;
Acquiring unit, for being shared terminal symbol with user information determination is shared according to the mark for being shared terminal When closing preset condition, is obtained according to the mark for sharing terminal and share the corresponding authentication information of terminal;
Transmission unit, for the terminal transmission authentication information is shared, the authentication to be based on to be shared terminal Information establishes wireless network connection with terminal is shared;
As a result receiving unit, for receiving the statistical result for sharing terminal transmission, the statistical result is by sharing terminal-pair It is counted and is obtained by the uninterrupted for sharing network flow resource used in terminal, the network flow resource is by sharing Terminal is supplied to by the wireless network connection is shared terminal;
Charging Detail Record unit, for according to the statistical result, charging to be carried out according to preset strategy.
Correspondingly, the embodiment of the present invention also provides a kind of network flow resource sharing system, including the embodiment of the present invention carries Supply any sharing apparatus, by sharing apparatus and server.
In addition, the embodiment of the present invention also provides a kind of storage medium, which is stored with a plurality of instruction, and the instruction is suitable It is loaded in processor, to execute any network flow resource point for being applied to share terminal provided in an embodiment of the present invention Enjoy the step in method.
The embodiment of the present invention also provides another storage medium, which is stored with a plurality of instruction, which is suitable for Processor is loaded, to execute any network flow resource sharing side applied to server provided in an embodiment of the present invention Step in method.
The embodiment of the present invention establish share terminal with after the wireless network connection for being shared terminal, can be by sharing end End counts the uninterrupted for being shared network flow resource used in terminal, and based on statistical result to the network flow Amount resource is controlled, can only blindly provide network flow resource to the scheme for being shared terminal accordingly, with respect to existing and Speech, can greatly improve the controllability shared and flexibility, be conducive to the utilization rate for improving network flow resource, avoid flow unrestrained Take.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 a are the schematic diagram of a scenario of network flow resource sharing method provided in an embodiment of the present invention;
Fig. 1 b are another schematic diagram of a scenario of network flow resource sharing method provided in an embodiment of the present invention;
Fig. 1 c are the flow charts of network flow resource sharing method provided in an embodiment of the present invention;
Fig. 1 d are the flow diagrams for sharing end side in network flow resource sharing method provided in an embodiment of the present invention;
Fig. 2 a are another flow charts of network flow resource sharing method provided in an embodiment of the present invention;
Fig. 2 b are the flow signals for being shared end side in network flow resource sharing method provided in an embodiment of the present invention Figure;
Fig. 3 a are the another flow charts of network flow resource sharing method provided in an embodiment of the present invention;
Fig. 3 b are the flow diagrams of server side in network flow resource sharing method provided in an embodiment of the present invention;
Fig. 4 is the another flow chart of network flow resource sharing method provided in an embodiment of the present invention;
Fig. 5 a are the structural schematic diagrams of sharing apparatus provided in an embodiment of the present invention;
Fig. 5 b are another structural schematic diagrams of sharing apparatus provided in an embodiment of the present invention;
Fig. 6 a are the structural schematic diagrams provided in an embodiment of the present invention by sharing apparatus;
Fig. 6 b are another structural schematic diagrams provided in an embodiment of the present invention by sharing apparatus;
Fig. 7 a are the structural schematic diagrams of server provided in an embodiment of the present invention;
Fig. 7 b are another structural schematic diagrams of server provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of network flow resource sharing system provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
A kind of network flow resource sharing method of offer of the embodiment of the present invention, device, system and storage medium.
Wherein, the network flow resource sharing system may include the embodiment of the present invention provided any share dress It sets, for example shares terminal, and any server provided including the embodiment of the present invention, in addition, the network flow resource Share system can also be provided any by sharing apparatus including the embodiment of the present invention, for example be shared terminal, etc..
For example, by the network flow resource sharing system include share terminal, server with shared terminal for, referring to Fig. 1 a and Fig. 1 b, can preserve a plurality of record in service, and every record shares terminal for preserving one and (such as shares terminal mark Know) and the correspondence of hot information (title and password of such as hot spot) it is corresponding optionally can also to preserve each hot spot Share amount information and/or accounting policy information etc., in this way, when server receive by shared terminal transmission inquiry of sharing ask When asking, this plurality of record can be supplied in the form of candidate terminal list and be shared terminal, by being shared terminal selection Need to access shares terminal, and is determining that this is shared terminal and meets preset condition, such as after delivering certain deposit, by this The password of the authentication information such as hot spot for sharing terminal of selection is supplied to this to be shared terminal, by being shared terminal according to the authentication Information initiates the connection request to terminal is shared, and shares terminal after receiving the connection request, can be according in the connection request The authentication information of carrying is authenticated, if authentication does not pass through, refuses the connection request, if conversely, the authentication is passed, basis should The mark for being shared terminal carried in connection request, which is established, shares terminal and the wireless network connection between being shared terminal, To give this to be shared terminal network flow resource sharing, then, to being shared the stream of network flow resource used in terminal Amount size is counted, and is controlled the network flow resource based on statistical result, for example statistical result is sent to clothes Business device, so that server carries out charging according to accounting policy information, and/or, when the flow shared according to statistical result determination is big It is small when being more than preset first threshold value, the data packet for being shared terminal transmission is intercepted, and disconnect the wireless network connection, etc..
Wherein, the record that server is preserved can be supplied to server by sharing terminal, for example, with reference to Fig. 1 a, share Terminal can send the request of network flow resource sharing to server, be that this shares terminal distribution hot spot letter with trigger the server Breath, and the hot information is returned to and shares terminal, hot spot is opened according to the hot information by sharing terminal, alternatively, referring to figure Corresponding hot information after voluntarily can also opening hot spot by sharing terminal, is sent to server to preserve by 1b, etc. Deng;Optionally, amount information and/or charging policy letter can also be shared by the network flow resource that needs are shared by sharing terminal The information such as breath are also provided to server.
It is described in detail separately below.
The present embodiment will be described from the angle of sharing apparatus, which can specifically be integrated in the equipment such as terminal In, which may include the equipment such as mobile phone, tablet computer, and/or laptop.For convenience, of the invention real It applies in example, is known as the terminal for being integrated with the sharing apparatus to share terminal.
A kind of network flow resource sharing method, applied to sharing terminal, including:Receive the connection for being shared terminal transmission The mark that request carrying authentication information at the connection request and is shared terminal;When determining that the authentication is passed according to the authentication information, root The mark for being shared terminal according to this is established and shares terminal and the wireless network connection between being shared terminal, by network flow Resource sharing gives this to be shared terminal;Uninterrupted to being shared network flow resource used in terminal counts;Base The network flow resource is controlled in statistical result.
As illustrated in figure 1 c, the detailed process of the network flow resource sharing method can be as follows:
101, the connection request for being shared terminal transmission is received.
Wherein, which can carry the information such as authentication information and the mark of being shared terminal.Authentication information can be with Including the information such as password and/or identifying code, the mark for being shared terminal may include the media access control for being shared terminal (MAC, Media Access Control, i.e. physical address), user identity identification code (SIM, Subscriber Identification Module) or International Mobile Equipment Identity code (IMEI, International Mobile Equipment Identity) etc..
When it is implemented, can utilize Virtual Private Network (VPN, Virtual Private Network) control into Journey (i.e. the control program of VPN, also referred to as VPN programs) is shared the connection request of terminal transmission to receive.I.e. as shown in Figure 1 d, Before step " connection request of terminal transmission is shared in reception ", which can also include:
The Virtual Private Network shared in terminal is opened, and calls the control process of the Virtual Private Network.
Then at this point, specifically the connection for being shared terminal transmission can be received by the control process of the Virtual Private Network Request.
Wherein, the control process of the Virtual Private Network is for controlling Virtual Private Network, and the Virtual Private Network can To be established by virtual network device, such as Microsoft Loopback Adapter.Wherein, the function of the Microsoft Loopback Adapter can be come in several ways It realizes, for example, can be realized by tun/tap drivers, so-called tun, expression is virtual point-to-point equipment, and Tap then indicates virtual ethernet device, both equipment can implement different encapsulation for data packet, then, then by void The control process of quasi- dedicated network carries out network address translation (NAT, Network Address to the data packet after encapsulation Translation it after), is sent in wide area network by live network equipment such as network interface card.It should be noted that for convenience, In embodiments of the present invention, it will be illustrated by taking the function using tun to realize Microsoft Loopback Adapter as an example.
Optionally, it receiving by before being shared the connection request that terminal is sent, hot spot can also be opened by sharing terminal, so as to Subsequently can by the hot spot by network flow resource sharing to being shared terminal.Wherein, which can directly be existed by user Share in terminal and establish, can also voluntarily be established according to hot information provided by the server by sharing terminal, i.e., such as Fig. 1 d institutes Show, before step " connection request of terminal transmission is shared in reception ", which can also include:
Hot information input by user is obtained, hot spot is opened according to the hot information, and the hot information is sent to clothes Business device, so that server preserves the hot information and shares the correspondence of terminal.
Alternatively, the request of network flow resource sharing is sent to server, so that the server is according to the network flow resource Share request to share terminal distribution hot information, receives the hot information that server returns, and open according to the hot information Hot spot.
Wherein, which may include the title of hot spot and the authentication information of hot spot etc., which can wrap Include the information such as password and/or identifying code.
It should be noted that regardless of the hot spot is established using which kind of mode, it is required to preserve hot information in server, Shared terminal in this way, can subsequently be supplied to the authentication information (such as password and/or identifying code) in the hot information, Connection request is sent to share terminal to terminal is shared.
Optionally, share terminal be sent to server network flow resource sharing request in, charging can also be carried Policy information and/or share amount information, wherein accounting policy information is for indicate how to being shared net used in terminal Network floating resources carry out charging, and share the amount for the network flow resource that amount information is then used to indicate for sharing, for example, It can indicate when being shared uninterrupted used in terminal more than first threshold, then disconnect and share terminal and shared terminal Between wireless network connection, etc..
Wherein, the accounting policy information with share amount information and can be configured according to the demand of practical application, i.e., Before step " sending the request of network flow resource sharing to server ", which can also wrap It includes:
The setting information for obtaining about charging policy and/or sharing amount generates charging policy letter according to the setting information Cease and/or share amount information.
Wherein, should about charging policy and/or share the setting information of amount can be by user according to actual demand or happiness It is configured well, details are not described herein.
Optionally, if the hot spot is directly established in sharing terminal by user, heat can opened by sharing terminal After point, then by accounting policy information and/or share amount information and be supplied to server, i.e., " is opened according to the hot information in step Open hot spot " after, which can also include:
The setting information for obtaining about charging policy and/or sharing amount generates charging policy letter according to the setting information Amount information is ceased and/or shared, the accounting policy information is sent to server and/or shares amount information.
It should be noted that when hot spot is by user directly when being established in sharing terminal, in addition to that can pass through independence Message hot information is sent to except server, can also ask to send out the hot information by network flow resource sharing Give server.If asking hot information being sent to server by network flow resource sharing, server is receiving After network flow resource sharing request, can first judge whether carry hot information in network flow resource sharing request, If so, server extracts hot information from network flow resource sharing request, and preserves the hot information and share end The correspondence at end, for example preserve the correspondence of the hot information and the mark for sharing terminal;If it is not, then server executes The step of " being to share terminal distribution hot information according to network flow resource sharing request ".
Similarly, when hot spot is accounting policy information and/or to share volume by user directly when being established in sharing terminal Information is spent other than it can be sent to server by independent message, it can also be by carrying in network flow resource sharing Server is sent in request, details are not described herein.
102, according to the authentication information determine the authentication is passed when, according to this shared terminal mark foundation share terminal with The wireless network connection between being shared terminal, gives this to be shared terminal network flow resource sharing.
For example, hot spot has had been established to share terminal, and for containing authentication information in hot information, then at this point, tool Body can allow this to be shared terminal and access the hot spot, by network flow when determining that the authentication information is matched with hot information Amount resource sharing gives this to be shared terminal.
Wherein it is determined that authentication information and the whether matched mode of hot information can there are many, if for example, the connection request In entrained authentication information it is consistent with authentication information included in the hot information, then institute in the connection request can be confirmed The authentication information of carrying is matched with hot information, otherwise, if inconsistent, can confirm authentication letter entrained in the connection request Breath is mismatched with hot information.For another example, if included in authentication information and the hot information entrained in the connection request Authentication information meet preset function relationship, then entrained authentication information and hot information can be confirmed in the connection request Match, otherwise, if being unsatisfactory for the preset function relationship, can confirm authentication information and hot information entrained in the connection request Mismatch, etc., wherein the preset function relationship can be configured according to the demand of practical application.
For example, being specially Wifi with the hot spot, which is specially Wifi passwords, and matching way is to judge " even Whether consistent connect authentication information included in authentication information and hot information entrained in request " for, then at this point, it is specific It may determine that whether Wifi passwords entrained in the connection request are consistent with the Wifi passwords for the hot spot that terminal is opened are shared, If consistent, allow this to be shared terminal and access the hot spot, shares terminal to set up and shared the Wifi between terminal Connection, gives this to be shared terminal network flow resource sharing, otherwise, if inconsistent, refuse this and is shared terminal access The hot spot.
It should be noted that the wireless network connection is other than it may include Wifi connections, can also including bluetooth etc. its His wireless network connection in embodiments of the present invention, will be illustrated by taking Wifi is connected as an example for convenience.
103, the uninterrupted for being shared network flow resource used in terminal is counted.
For example, specifically can be by the control process of Virtual Private Network (i.e. VPN), come to being shared used in terminal The uninterrupted of network flow resource is counted.
This is because after sharing terminal and being shared terminal and establish wireless network connection, is shared terminal and be sent to The data packet of wide area network is required to the tun by sharing terminal, then, the control process of the Virtual Private Network by sharing terminal Corresponding data packet is obtained from tun, after carrying out NAT conversions, just can be sent to wide area network by sharing the true network interface card of terminal, Therefore, how many network flow resources are occupied by the data packet for sharing transmitted by terminal, shares the Virtual Private Network of terminal Control process can know, so, it can be by the control process of the Virtual Private Network (i.e. VPN), come to being shared terminal The uninterrupted of used network flow resource is counted.
104, the network flow resource is controlled based on statistical result.
Wherein, the mode of control can there are many, for example, specific may be used any one following mode:
(1) charging:
Statistical result is sent to server, so that server is according to the statistical result, charging is carried out according to preset strategy.
(2) flow control:
When determining that the uninterrupted is more than preset first threshold value according to statistical result, the data for being shared terminal transmission are intercepted Packet, and disconnect the wireless network connection.
(3) charging and flow control:
Statistical result is sent to server, so that server is according to the statistical result, charging is carried out according to preset strategy; When determining that the uninterrupted is more than preset first threshold value according to statistical result, the data packet for being shared terminal transmission is intercepted, is disconnected The wireless network connection, and server is notified to stop charging.
Wherein, in (2) and (3), specifically it can be shared terminal hair by the control process of Virtual Private Network to intercept It send to the data packet of the Virtual Private Network, and disconnects the wireless network connection.Wherein, it intercepts and refers to that terminal will not be shared The data packet of transmission is sent to wide area network.
Optionally, when carrying out flow control, in addition to can intercept and divided when uninterrupted is more than preset first threshold value , can also be when uninterrupted be by excess except the data packet for enjoying terminal transmission, trigger the server notice is shared terminal, with Just shared terminal can in time know, i.e., step " controlling the network flow resource based on statistical result " can also wrap It includes:
When determining that the uninterrupted is more than default second threshold according to statistical result, notice server traffic i.e. by excess, So that server sends instruction flow i.e. by the prompt message of excess to being shared terminal.
Wherein, which is less than first threshold, and first threshold and the value of second threshold can be according to actually answering Demand is configured, and details are not described herein.
In addition, it should be noted that, it, can be with when determining that the uninterrupted is less than preset first threshold value according to statistical result The data packet for being shared terminal transmission is sent to wide area network, for example, can be sent to by the control process to being shared terminal The data packet of the Virtual Private Network carries out network address translation and then sends out transformed data packet by wide area network Give, etc., details are not described herein.
From the foregoing, it will be observed that the present embodiment is receiving the connection request for being shared terminal transmission, and according in the connection request When the authentication information of carrying determines that the authentication is passed, the mark foundation that terminal can be shared according to this is shared terminal and is shared with this Network flow resource sharing is given this to be shared terminal, and made to being shared terminal by the wireless network connection between terminal The uninterrupted of network flow resource is counted, and then, is controlled the network flow resource based on statistical result, For example flow control and/or charging etc. are carried out, accordingly, with respect to the existing network flow resource that can only blindly provide to being shared For the scheme of terminal, the controllability shared and flexibility can be greatly improved, is conducive to the utilization for improving network flow resource Rate avoids flow from wasting.
The present embodiment will be described from by the angle of sharing apparatus, this can specifically be integrated in terminal etc. by sharing apparatus In equipment, which may include the equipment such as mobile phone, tablet computer, and/or laptop.For convenience, in this hair In bright embodiment, the terminal by sharing apparatus will be integrated with and be known as being shared terminal.That is, the embodiment of the present invention can also provide Another network flow resource sharing method, applied to terminal is shared, as shown in Figure 2 a, the network flow resource sharing method Detailed process can be as follows:
201, share acquisition request to server transmission.
Wherein, this is shared to obtain request and carry and shares the mark of terminal, shared the mark of terminal and shared user's letter Breath etc.;The mark for sharing terminal may include the MAC Address for sharing terminal, SIM codes or IMEI code etc., be shared the mark of terminal Knowledge may include the MAC Address for being shared terminal, SIM codes or IMEI code etc., and it may include being divided to be shared user information then Enjoy the information such as user name, account name, and/or the account number cipher at family.
Wherein, which can be by being shared user (user for being shared terminal) from sharing user It is obtained at (user for sharing terminal), can also be supplied to by server and be shared terminal, you can choosing, as shown in Figure 2 b, Before step " sharing acquisition request to server transmission ", which can also include:
Share inquiry request to server transmission, receives the candidate terminal row that server shares inquiry request return according to this Table, terminal is shared in selection from the candidate terminal list, and obtains the mark for sharing terminal.
Wherein, it may include multiple marks for sharing terminal in candidate terminal list, such as share MAC Address, the SIM of terminal Code or IMEI code etc.;Optionally, can also include each sharing that terminal is corresponding to share amount information and/or charging policy letter Breath etc., for example, with reference to table one.
Table one:
Share the mark of terminal 1 Share amount information 1 Accounting policy information 1 ……
Share the mark of terminal 2 Share amount information 2 Accounting policy information 3 ……
Share the mark of terminal 3 Share amount information 3 Accounting policy information 3 ……
…… …… …… ……
If having selected " sharing terminal 1 " as sharing terminal for example, being shared user, at this point, being shared terminal can be with It obtains and is somebody's turn to do " mark for sharing terminal 1 ", such as share the MAC Address of terminal 1, then, share acquisition request to server transmission, and This share obtain request in carry this share the MAC Address of terminal 1, this terminal (being shared terminal) MAC Address and by Share user information etc..
202, it receives server and shares the authentication information corresponding with terminal is shared for obtaining request and returning according to this.
It, can be according to being shared the mark of terminal and shared for example, server is after receiving this and sharing acquisition request User information determines that this is shared whether terminal meets preset condition, if meeting preset condition, server is to being shared terminal Authentication information is returned to, i.e., the authentication information corresponding with terminal is shared that service returns can be received by being shared terminal at this time;It is no Then, if not meeting preset condition, server can directly refuse this and share acquisition request, alternatively, can also be default according to this Condition generates operation prompt information, and sends the operation prompt information to terminal is shared, i.e., being shared terminal at this time can connect Receive the operation prompt information.
Wherein, which can be configured according to the demand of practical application, for example, can be set as " delivered The deposit of default amount ", that is, the mark that server can be shared terminal according to this is shared with user information determination is shared Whether the deposit of amount is preset in delivered to terminal, is shared terminal if so, determining and meets preset condition;If not, it is determined that quilt Share terminal and do not meet preset condition, can generate prompt by share user need deliver deposit operation prompt information, etc..
203, to terminal transmission connection request is shared, which carries the authentication information and is shared the mark of terminal Know, when determining that the authentication is passed according to the authentication information to share terminal, end is shared in the mark foundation that terminal is shared according to this It holds and the wireless network connection between being shared terminal.
Wherein, for details, reference can be made to upper one embodiment for the mode of establishing of authentication and wireless network connection, no longer superfluous herein It states.
204, the network flow resource shared terminal and shared is obtained based on the wireless network connection.
That is, after establishing and sharing terminal and shared wireless network connection between terminal, shared terminal By the wireless network connection, data packet to be sent to and shares terminal, the network flow resource that terminal is shared by this should Data packet is sent to wide area network.
Optionally, in order to improve the flexibility of control, the network flow resource is in addition to that can be provided freely to be shared end Except end, it is possibility to have be supplied to repaying and shared terminal, for example, can be by server according to being shared the terminal-pair network flow The service condition of resource is measured, the uninterrupted such as used carries out charging, i.e., as shown in Figure 2 b, " wireless network is based in step Network connection, which obtains, shares the network flow resource that terminal is shared " after, which can also include:
The notics of charge that server is sent is received, is paid according to the notics of charge, wherein the notics of charge is based on quilt The uninterrupted for sharing the network flow resource that terminal uses carries out charging and generates.
Optionally, will be more than to share the amount of sharing that terminal is arranged (such as to count when being shared flow used in terminal As a result it is more than second threshold) when, the instruction flow of server transmission can also be received i.e. by the prompt of excess letter by being shared terminal Breath.
Similarly, when being shared flow used in terminal, more than the amount of sharing that terminal is arranged is shared, (such as statistical result is super Cross first threshold) when, the prompt message that the instruction connection of server transmission has disconnected can also be received by being shared terminal.
From the foregoing, it will be observed that the terminal of sharing accessed required for terminal can be obtained from server by being shared of the present embodiment Then authentication information initiates the connection request based on the authentication information to terminal is shared, share terminal with foundation and shared terminal Between wireless network connection, and then obtained based on the wireless network connection and share the network flow resource that terminal shared;By The situation of sharing of each network flow resource for sharing terminal can be managed by server, for example distributed in the program With charge etc., accordingly, with respect to it is existing can only from share sharing information and authentication information are obtained in terminal scheme for, can be with To be shared terminal and providing the selection space of bigger, is conducive to improve the controllability shared and flexibility, is conducive to improve network The utilization rate of floating resources, avoids flow from wasting.
The present embodiment will be described from the angle of server, i.e., the embodiment of the present invention also provides a kind of network flow resource Sharing method is applied to server, including:
It receives to be shared and obtains request sharing for terminal transmission, this is shared acquisition request and carries mark, the quilt for sharing terminal Share the mark of terminal and is shared user information;The mark for being shared terminal according to this is divided with user information determination is shared When enjoying terminal and meeting preset condition, is obtained according to the mark for sharing terminal and share the corresponding authentication information of terminal;To being shared end End sends the authentication information, and wireless network connection is established with terminal is shared based on the authentication information to be shared terminal;It receives Share statistical result transmitted after terminal-pair is counted by the uninterrupted for sharing network flow resource used in terminal, According to the statistical result, charging is carried out according to preset strategy.
As shown in Figure 3a, the detailed process of the network flow resource sharing method can be as follows:
301, it receives to be shared and obtains request sharing for terminal transmission.
Wherein, this is shared to obtain request and carry and shares the mark of terminal, shared the mark of terminal and shared user's letter Breath etc.;The mark for sharing terminal may include the MAC Address for sharing terminal, SIM codes or IMEI code etc., be shared the mark of terminal Knowledge may include the MAC Address for being shared terminal, SIM codes or IMEI code etc., and it may include being divided to be shared user information then Enjoy the information such as user name, account name, and/or the account number cipher at family.
Wherein, which can be obtained by being shared user from user is shared, can also be by server It is supplied to and is shared terminal, you can choosing, as shown in Figure 3b, " receives to be shared and obtain request sharing for terminal transmission " in step Before, which can also include:
Receive by shared terminal transmission share inquiry request, according to this share inquiry request obtain candidate terminal list, The candidate terminal list is returned to terminal is shared.
Wherein, the mark that terminal multiple can be shared in the candidate terminal list, such as shares MAC Address, the SIM of terminal Code or IMEI code etc.;Optionally, can also include each sharing that terminal is corresponding to share amount information and/or charging policy letter Breath etc., for details, reference can be made to upper one embodiment, and details are not described herein.
It should be noted that server is in addition to that can preserve each mark for sharing terminal, share amount information and/or charging Except the information such as policy information, it is also necessary to which preservation each shares the corresponding hot information of terminal, for example, being believed these with server For breath preserves in the database, then the format of the database can be as shown in Table 2.
Table two:
Share the mark of terminal 1 Hot information 1 Share amount information 1 Accounting policy information 1 ……
Share the mark of terminal 2 Hot information 2 Share amount information 2 Accounting policy information 3 ……
Share the mark of terminal 3 Hot information 3 Share amount information 3 Accounting policy information 3 ……
…… …… …… …… ……
As it can be seen that in the database, a plurality of record can be preserved, each record shares terminal for preserving each Mark and the correspondence of hot information optionally can also preserve that mark that each shares terminal is its corresponding to be shared The correspondence of amount information and accounting policy information.Wherein, which may include the title of hot spot and the mirror of hot spot Information etc. is weighed, which may include the information such as password and/or identifying code.
That is, server receive by shared terminal transmission share acquisition request after, can from the database obtain point The mark of terminal is enjoyed, and accordingly generates candidate terminal list, is shared terminal to be supplied to, certainly, in the candidate terminal list Each terminal of sharing can also be carried and share the other informations such as amount information and accounting policy information accordingly.It should be noted that For the ease of subsequently to being shared terminal, whether the permission with the network flow resource shared using this is judged, in the time It selects in terminal list, can not generally carry corresponding hot information, or only carry hotspot name, but do not carry corresponding authentication Information knows authentication information to avoid lack of competence by terminal is shared, to cause unnecessary loss.
In addition, optional, the hot information preserved in server can be provided by sharing terminal, can also be by server Share terminal from behavior to be allocated, i.e., as shown in Figure 3b, " receives to be shared and obtain request sharing for terminal transmission " in step Before, which can also include:
The network flow resource sharing request for sharing terminal transmission is received, is point according to network flow resource sharing request Terminal distribution hot information is enjoyed, the hot information is returned to terminal is shared.
Alternatively, receiving the hot information for sharing terminal transmission, preserves the hot information and share the correspondence of terminal, than Such as, may include the hot information and the correspondence of mark, etc. of sharing terminal.
302, the mark for being shared terminal according to this determines that being shared terminal meets preset condition with user information is shared When, it is obtained according to the mark for sharing terminal and shares the corresponding authentication information of terminal.
Optionally, however, it is determined that shared terminal and do not meet preset condition, then can directly refused this and share acquisition request, or Person can also generate operation prompt information according to the preset condition, and send the operation prompt information to terminal is shared, i.e., should Network flow resource sharing method can also include:
When being shared the mark of terminal according to this and shared user information determination and shared terminal and do not meet preset condition, Operation prompt information is generated according to the preset condition, and the operation prompt information is sent to terminal is shared.
Wherein, which can be configured according to the demand of practical application, for example, can be set as " delivered " being shared the mark of terminal with being shared user information determination and shared terminal according to this is for the deposit of default amount ", i.e. step It is no to meet preset condition " may include:
Shared the mark of terminal according to this and shared user information determination and shared terminal whether volume is preset in delivered The deposit of degree meets preset condition if so, determining and being shared terminal;If not, it is determined that shared terminal and do not meet default item Part.
303, the authentication information is sent to being shared terminal, be based on the authentication information to be shared terminal and share terminal Establish wireless network connection.
Wherein, being shared terminal can specifically be joined based on the authentication information with the method that terminal establishes wireless network connection is shared See the embodiment of front, details are not described herein.
304, the statistical result for sharing terminal transmission is received.
Wherein, the statistical result by share terminal-pair shared the uninterrupted of network flow resource used in terminal into Row statistics obtains, and the network flow resource is then to be supplied to by the wireless network connection by sharing terminal to be shared end End, for details, reference can be made to the embodiments of front, and details are not described herein.
305, according to the statistical result, charging is carried out according to preset strategy.
For example, if having saved this in the server shares the corresponding accounting policy information of terminal, at this point it is possible to according to The statistical result carries out charging according to the accounting policy information of setting.
Wherein, which can be supplied to server by sharing terminal, for example, can be with the shape of independent message Formula is sent to server, alternatively, can also carry network flow resource sharing request in, etc..
Optionally, server can also execute other operations according to the instruction for sharing terminal, for example stop charging, etc. Deng that is, after step " according to the statistical result, charging is carried out according to preset strategy ", the network flow resource sharing method is also May include:
The notice for the instruction stopping charging for sharing terminal transmission is received, the notice for stopping charging according to the instruction stops to quilt Share the charging of terminal.
Wherein, the notice of instruction stopping charging determining that the uninterrupted is more than pre- by sharing terminal according to statistical result If being generated when first threshold, for details, reference can be made to the embodiments of front, and details are not described herein.
Optionally, when stopping charging, server can also send the prompt that instruction connection has disconnected to terminal is shared Information, to be shared the case where terminal can know the wireless network connection in time.
Optionally, in order to enable by share terminal can carry out in advance disconnect the wireless network connection preparation, the service Device can also send instruction flow i.e. by the prompt message of excess to terminal is shared;" according to the statistical result, pressed in step Charging is carried out according to preset strategy " after, which can also include:
The instruction flow for sharing terminal transmission is received i.e. by the notice of excess, is by the logical of excess according to the instruction flow Know, instruction flow is sent i.e. by the prompt message of excess to terminal is shared.
Wherein, which is determining that the uninterrupted surpasses by sharing terminal by the notice of excess according to statistical result It being generated when crossing default second threshold, the second threshold and first threshold can be configured according to the demand of practical application, and the Two threshold values are less than first threshold.
From the foregoing, it will be observed that the server of the present embodiment receive by shared terminal transmission share acquisition request, and determine When being shared terminal and meeting preset condition, the authentication information for sharing corresponding to terminal can be supplied to and be shared terminal so that Wireless network connection can be established based on the authentication information with terminal is shared by being shared terminal, so that sharing terminal can incite somebody to action Network flow resource sharing carries out the uninterrupted for being shared network flow resource used in terminal to being shared terminal Statistics;Hereafter, server can also receive the statistical result for sharing terminal transmission, and according to the statistical result, according to default plan Slightly carry out charging.Since the server of the program can carry out pipe to the situation of sharing of each network flow resource for sharing terminal Reason, such as distribution and charge etc. can only provide sharing information from sharing terminal accordingly, with respect to existing scheme to terminal is shared And authentication information, and for can only blindly providing network flow resource to the scheme for being shared terminal, it can greatly improve point The controllability enjoyed and flexibility are conducive to the utilization rate for improving network flow resource, flow are avoided to waste.
According to method described in above example, it will be specifically integrated in share in terminal with sharing apparatus below, be divided It enjoys device and is specifically integrated in and shared in terminal, and it is specially terminal A to share terminal, shared for terminal is specially terminal B It is described in further detail.
As shown in figure 4, a kind of network flow resource sharing method, detailed process can be as follows:
401, terminal B shares inquiry request to server transmission.
402, server shares inquiry request according to this and obtains candidate terminal row after receiving this and sharing inquiry request Table, and return to the candidate terminal list to terminal B.
Wherein, the mark that terminal multiple can be shared in the candidate terminal list, such as shares MAC Address, the SIM of terminal Code or IMEI code etc.;Optionally, can also include each sharing that terminal is corresponding to share amount information and/or charging policy letter Breath etc..
For example, by taking the mark for sharing terminal is specially to share the MAC Address of terminal as an example, then server is receiving terminal After what B was sent shares inquiry request, each MAC Address for sharing terminal, hot spot name can be specifically obtained from presetting database Claim, share amount information and accounting policy information etc., then, accordingly generate candidate terminal list, and by the candidate terminal list It is sent to terminal B.Wherein, which specifically can be as shown in Table 3.
Table three:
Share the mark of terminal Hotspot name Share amount information Accounting policy information
MAC Address 1 Sun 100M 2 yuan/M ……
MAC Address 2 Amy 50M 1 yuan/M ……
MAC Address 3 Good 60M 3 yuan/M ……
…… …… …… …… ……
Wherein, a plurality of record can be preserved in the presetting database, each record shares terminal for preserving each The correspondence of mark and hot information optionally can also preserve its corresponding point of the mark that each shares terminal Enjoy the correspondence of amount information and accounting policy information.
Wherein, the hot information which preserves may include the title of hot spot and the authentication information of hot spot etc., the mirror It may include the information such as password and/or identifying code to weigh information.The hot information can be provided by sharing terminal, can also be by servicing Device is shared terminal from behavior and is allocated, i.e., before step " acquisition of sharing that server receiving terminal B is sent is asked ", the net Network floating resources sharing method can also include:
Server receives the network flow resource sharing request for sharing terminal transmission, is asked according to the network flow resource sharing It asks to share terminal distribution hot information, the hot information is returned to terminal is shared.
Alternatively, server receives the hot information for sharing terminal transmission, preserves the hot information and share terminal iidentification Correspondence.
For example, be to share terminal distribution, and this is shared for terminal is terminal A by server with hot information, then terminal A After opening Virtual Private Network (VPN), the request of network flow resource sharing can be sent to server, when server receives It after being asked to the network flow resource sharing, can be asked according to the network flow resource sharing, be terminal A according to preset strategy Hot information is distributed, for example, the hot information may include:Hotspot name is " sun ", and the password of hot spot is " 12345678 ", Then, the correspondence of the mark (such as MAC Address 1) of the hot information and terminal A is preserved to the presetting database of server In.
In addition, server can also preserve, terminal A is corresponding to share the other informations such as amount information and accounting policy information, The corresponding other informations such as amount information and accounting policy information of sharing of terminal A can be by terminal A in the form of independent message It is sent to server, can also carry and be sent to server in the request of network flow resource sharing.For example, when terminal A is being opened After having opened Virtual Private Network (VPN), can obtain share user (i.e. the user of terminal A) input about charging policy and/ Or share the setting information of amount, accounting policy information is generated according to the setting information and/or share amount information, it then, will The accounting policy information and/or share amount information carry network flow resource sharing request in be sent to server, etc., The embodiment of front can be specifically referred to, details are not described herein.
Similarly, the hot information during other are shared can also be supplied to server through the above way, so that service It can be preserved in device a plurality of about the record for sharing terminals share information.
403, after receiving the candidate terminal list, what selection needed to access from the candidate terminal list divides terminal B Terminal is enjoyed, and obtains the mark for sharing terminal.
For example, still by taking table three as an example, if terminal B has selected " MAC Address 1 ", since 1 corresponding terminal of MAC Address is Therefore terminal A can determine that the selected terminals of sharing of terminal B are terminal A at this time.
Wherein, step 401~403 are optional step.
404, terminal B shares acquisition request to server transmission, this shares the mark for obtaining request carried terminal A, terminal B Mark with shared user (i.e. the user of terminal B) information etc..
Wherein, the mark of terminal A may include MAC Address, SIM codes or IMEI code of terminal A etc., and the mark of terminal B can With MAC Address, SIM codes or IMEI code etc. including terminal B, and it may include being shared user's to be shared user information then The information such as user name, account name, and/or account number cipher;It for convenience, in the present embodiment, will be with the mark of terminal A Know the MAC Address for being terminal A, and being identified as the MAC Address of terminal B for terminal B illustrates.
405, server is after receiving this and sharing acquisition request, according to the mark of terminal B with to be shared user information true Determine whether terminal B meets preset condition, if so, 406 are thened follow the steps, if it is not, then can directly refuse this shares acquisition request, Alternatively, operation prompt information can also be generated according to the preset condition, and the operation prompt information is sent to terminal B.
Wherein, which can be configured according to the demand of practical application, for example, being " with the preset condition Deliver the deposit for presetting amount ", and terminal B is identified as the MAC Address of terminal B, then at this point it is possible to according to terminal B's MAC Address with by shared user information determine this by shared user whether delivered preset amount deposit, if so, determine eventually End B meets preset condition, then executes step 406;If not, it is determined that terminal B does not meet preset condition, and then directly refuses this Share acquisition request, alternatively, operation prompt information can also be generated according to the preset condition, and sends the operation to terminal B and carry Show information, for example prompts this to be shared user and need to deliver the deposit, etc. for presetting amount.
406, server sends the authentication information in the hot information of terminal A to terminal B.
407, terminal B is after receiving the authentication information, according to the mark (such as MAC Address of terminal A) of terminal A to terminal A sends connection request, wherein the connection request carries the authentication information and the mark (such as MAC Address of terminal B) of terminal B.
408, terminal A authenticates authentication information entrained in the connection request after receiving the connection request, If the authentication is passed, 409 are thened follow the steps, if authentication does not pass through, refuses the connection request.
Wherein, the mode of authentication can there are many, for example, by taking the authentication information is specially the password of hot spot as an example, then this When, terminal A can determine in the connection request entrained hot spot password whether the password one with the terminal A hot spots preserved It causes, if unanimously, it is determined that the authentication is passed, step 409 is executed, otherwise, if inconsistent, it is determined that authentication does not pass through, and refuses the company Connect request.
For example, by taking the password for the hot spot " sun " that terminal A is opened is " 12345678 " as an example, if the connection request is taken The password (i.e. authentication information) of band is " 12345678 ", then at this point, terminal A can determine that the authentication is passed, if conversely, the connection is asked It is not " 12345678 " to seek entrained password (i.e. authentication information), for example is " 87654321 ", then terminal A can determine authentication Do not pass through, and so on, etc..
It should be noted that other than the mode of above-mentioned carry out password match, there can also be other authentication modes, than Such as, it may be determined that whether the password of entrained hot spot accord with the passwords of the terminal A hot spots preserved in the connection request Preset function relationship is closed, if so, determining that the authentication is passed, if enough, it is determined that authentication not by, etc., for details, reference can be made to fronts Embodiment, details are not described herein.
409, terminal A establishes the wireless network connection between terminal A and terminal B according to the mark of terminal B, by network Floating resources are shared with terminal B.
It is wireless between terminal A and terminal B to set up i.e. at this point, terminal A can allow terminal B to access the hot spot Network connection, such as Wifi connections, to give the network flow resource sharing of terminal A to terminal B.
410, terminal A counts the uninterrupted of network flow resource used in terminal B, obtains statistical result.
For example, terminal A can be by the control process of Virtual Private Network (i.e. VPN), to network used in terminal B The uninterrupted of floating resources is counted, and statistical result is obtained.
Wherein, the frequency of statistics can depending on the demand of practical application, for example, can count primary per hour, or It counts within every 30 minutes primary, etc..
411, statistical result is sent to server by terminal A.
It should be noted that statistical result can be sent to server by terminal A after obtaining statistical result every time, Statistical result can be sent to server according to certain frequency, wherein the frequency can according to the demand of practical application into Row setting, for example, sending per hour primary, etc., details are not described herein.
412, server is after receiving statistical result, and according to the statistical result, charging is carried out according to preset strategy.
For example, if the corresponding accounting policy informations of terminal A have been saved in the server, at this point it is possible to according to the system Meter according to accounting policy information as a result, carry out charging.
For example, or by taking the information that table three is recorded as an example, according to table three it is found that hot spot " sun " that terminal A is opened Accounting policy information is that " 2 yuan/M " therefore can be according to the standard of 2 yuan/M, to (the i.e. statistics knot of flow used in terminal B Fruit) charging is carried out, if for example, terminal B has used 10M flows, charging result is 20 yuan, if terminal B has used 15M, Charging result is 30 yuan, and so on, etc..
413, when terminal A determines that the uninterrupted is more than preset first threshold value according to statistical result, intercept what terminal B was sent Data packet disconnects the wireless network connection, and then the notice for sending instruction stopping charging executing step 414 to server.
Wherein, which can be configured according to the demand of practical application, for example, still recorded with table three Information, and the wireless network connection be Wifi networks for, according to table three it is found that hot spot " sun's " that terminal A is opened shares Amount information is " 100M ", and therefore, whether terminal A can determine the uninterrupted more than 100M according to statistical result, if being more than, Then intercept the data packet that terminal B is sent by Wifi networks, for example, specifically can by Virtual Private Network (VPN) control into Journey intercepts the data packet that terminal B is sent by the Wifi networks, and disconnects the Wifi networks, further, it is also possible to send instruction Stop the notice of charging to server, then executes step 414.Wherein, the data packet hair for referring to not sending terminal B is intercepted It send to wide area network.
Optionally, when carrying out flow control, in addition to terminal can be intercepted when uninterrupted is more than preset first threshold value , can also be in uninterrupted i.e. by excess except the data packet that B is sent, for example determine that the uninterrupted is more than default second threshold Value, trigger the server notifies terminal B flows i.e. by excess, so that terminal B can be known in time.
Wherein, which can be configured according to the demand of practical application, and the second threshold is less than the first threshold Value, for example, by taking the second threshold is 80M as an example, then:
When terminal A determines that the uninterrupted is more than 80M according to the statistical result, instruction flow can be sent to server is By the notice of excess, when server receive the instruction flow i.e. by the notice of excess after, can will according to the instruction flow The notice of excess sends instruction flow i.e. by the prompt message of excess to terminal B.
Wherein, which can carry out the particular content of the prompt message of excess according to the demand of practical application Setting, such as:" sharing flow used in you more than 80M, i.e., by excess ", etc., details are not described herein.
In addition, it should be noted that, it, can be with when determining that the uninterrupted is less than preset first threshold value according to statistical result The data packet for being shared terminal transmission is sent to wide area network, for example, can be sent to by the control process to being shared terminal The data packet of the Virtual Private Network carries out network address translation and then sends out transformed data packet by wide area network Give, etc., details are not described herein.
414, after the notice for receiving instruction stopping charging, the notice for stopping charging according to the instruction stops server Charging to terminal B.
After stopping charging, final charging result can be sent to terminal B by server, by terminal B according to the meter Expense result is paid the bill, if for example, terminal B has used 100M altogether, at this time, it may be necessary to deliver 200 yuan, etc..
Optionally, when stopping charging, server can also send the prompt message that instruction connection has disconnected to terminal B, The case where can knowing the wireless network connection in time so as to terminal B.
Wherein, the content for the prompt message that instruction connection has disconnected can specifically be set according to the demand of practical application It sets, for example, could be provided as:" it has been more than to use amount to share flow used in you, and connection has disconnected ", etc., herein not It repeats again.
From the foregoing, it will be observed that the server of the present embodiment can preserve multiple phases for sharing the network flow resource that terminal is shared Information is closed, such as accounting policy information and shares amount information, when being shared terminal and needing, is supplied to and is shared terminal and carry out Selection, and when determining that being shared terminal meets preset condition, the mirror of the selected hot spot for sharing terminal of terminal will be shared Power information is supplied to and is shared terminal, and the sharing in the hot spot that terminal is started of the selection is accessed to be shared terminal, hereafter, It can be counted by the uninterrupted for sharing network flow resource used in terminal by sharing terminal-pair, and be based on the statistics As a result come the operations such as charged and determine whether to disconnect.Since the program can be shared to sharing required for terminal Network flow resource flexibly controlled, accordingly, with respect to the existing network flow resource that can only blindly provide to being shared For the scheme of terminal, the controllability shared and flexibility can be greatly improved, is conducive to the utilization for improving network flow resource Rate avoids flow from wasting.
In order to preferably implement above method, the embodiment of the present invention also provides a kind of sharing apparatus of network flow resource, Abbreviation sharing apparatus, the sharing apparatus can be specifically integrated in the equipment such as terminal, which may include mobile phone, tablet electricity The equipment such as brain, and/or laptop.
For example, as shown in Figure 5 a, which may include receiving unit 501, establishes unit 502, statistic unit 503 It, specifically can be as follows with control unit 504:
(1) receiving unit 501;
Receiving unit 501, for receiving the connection request for being shared terminal transmission.
Wherein, which can carry the information such as authentication information and the mark of being shared terminal.Authentication information can be with Including the information such as password and/or identifying code, the mark for being shared terminal may include the MAC Address for being shared terminal, SIM codes, Or IMEI code etc..
When it is implemented, can be divided to receive using the control process (i.e. the control program of VPN) of Virtual Private Network Enjoy the connection request of terminal transmission.I.e. as shown in Figure 5 b, which can also include opening unit 505, as follows:
Opening unit 505 for opening the Virtual Private Network shared in terminal, and calls the control of the Virtual Private Network Process processed.
Receiving unit 501 specifically can be used for being shared terminal by the control process of the Virtual Private Network to receive The connection request of transmission.
Optionally, it receiving by before being shared the connection request that terminal is sent, hot spot can also be opened by sharing terminal, so as to Subsequently can by the hot spot by network flow resource sharing to being shared terminal.Wherein, which can directly be existed by user Share in terminal and establish, can also voluntarily be established according to hot information provided by the server by sharing terminal, i.e., such as Fig. 5 b institutes Show, which can also set up unit 506 including hot spot, as follows:
Hot spot sets up unit 506, can be used for obtaining hot information input by user, and heat is opened according to the hot information Point, and the hot information is sent to server, so that server preserves the hot information and shares the correspondence of terminal.
Alternatively, hot spot sets up unit 506, can be used for sending the request of network flow resource sharing to server, so as to this Server shares terminal distribution hot information according to network flow resource sharing request, receives the hot spot letter that server returns Breath, and hot spot is opened according to the hot information.
Wherein, which may include the title of hot spot and the authentication information of hot spot etc., which can wrap Include the information such as password and/or identifying code.
Optionally, share terminal be sent to server network flow resource sharing request in, charging can also be carried Policy information and/or share amount information, wherein accounting policy information is for indicate how to being shared net used in terminal Network floating resources carry out charging, and share the amount for the network flow resource that amount information is then used to indicate for sharing, for example, It can indicate when being shared uninterrupted used in terminal more than first threshold, then disconnect and share terminal and shared terminal Between wireless network connection, etc..
Wherein, the accounting policy information with share amount information and can be configured according to the demand of practical application, i.e., As shown in Figure 5 b, which can also include setting unit 507, as follows:
The setting unit 507, can be used for obtaining about charging policy and/or share the setting information of amount, according to this Setting information generates accounting policy information and/or shares amount information.
Wherein, should about charging policy and/or share the setting information of amount can be by user according to actual demand or happiness It is configured well, details are not described herein.
Optionally, if the hot spot is directly established in sharing terminal by user, heat can opened by sharing terminal After point, by accounting policy information and/or is shared amount information by setting unit 507 and be supplied to server.
(2) unit 502 is established;
Unit 502 is established, when for determining that the authentication is passed according to the authentication information, the mark that terminal is shared according to this is built It is vertical to share terminal and the wireless network connection between being shared terminal, give this to be shared end network flow resource sharing End.
For example, hot spot has had been established to share terminal, and for containing authentication information in hot information, then the foundation list Member 502 allows this to be shared terminal and accesses the hot spot when being specifically determined for the authentication information and being matched with hot information, To give this to be shared terminal network flow resource sharing.
Wherein it is determined that authentication information and the whether matched mode of hot information can there are many, for details, reference can be made to fronts Embodiment of the method, details are not described herein.
(3) statistic unit 503;
Statistic unit 503, for being counted to the uninterrupted for being shared network flow resource used in terminal.
For example, statistic unit 503, it specifically can be by the control process of Virtual Private Network (i.e. VPN), come to being shared The uninterrupted of network flow resource used in terminal is counted.
(4) control unit 504;
Control unit 504 controls the network flow resource for being based on statistical result.
For example, control unit 504, specifically can be used for being based on statistical result, according to accounting policy information and/or shares volume Degree information controls the network flow resource.
Wherein, the mode of control can there are many, for example, can be as follows:
The control unit 504 specifically can be used for statistical result being sent to server, so that server is according to the statistics As a result, carrying out charging according to preset strategy.
Alternatively, the control unit 504, specifically can be used for determining that the uninterrupted is more than default first according to statistical result When threshold value, intercepts this and shared the data packet of terminal transmission, and disconnect the wireless network connection.
Alternatively, the control unit 504, specifically can be used for statistical result being sent to server, so as to server according to The statistical result carries out charging according to preset strategy;When determining that the uninterrupted is more than preset first threshold value according to statistical result, The data packet for being shared terminal transmission is intercepted, disconnects the wireless network connection, and server is notified to stop charging.
Wherein, it can specifically be shared terminal to intercept by the control process of Virtual Private Network and be sent to the virtual private The data packet of network, and disconnect the wireless network connection.
Optionally, when control unit 504 carries out flow control, in addition to that can be more than preset first threshold value in uninterrupted When, it intercepts except the data packet for being shared terminal transmission, can also be when uninterrupted be by excess, trigger the server notifies quilt Share terminal, can know in time to be shared terminal, i.e.,:
The control unit 504, when can be also used for determining that the uninterrupted is more than default second threshold according to statistical result, Notify server traffic i.e. by excess, so that server sends instruction flow i.e. by the prompt message of excess to being shared terminal.
Wherein, which is less than first threshold, and first threshold and the value of second threshold can be according to actually answering Demand is configured, and details are not described herein.
In addition, it should be noted that, it, can be with when determining that the uninterrupted is less than preset first threshold value according to statistical result By by shared terminal transmission data packet be sent to wide area network, for example, can by control unit 504 by the control process to quilt Then transformed data packet is sent to wide area network, etc. by the data packet progress network address translation for sharing terminal transmission, Details are not described herein.
When it is implemented, above each unit can be realized as independent entity, arbitrary combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
From the foregoing, it will be observed that the sharing apparatus of the present embodiment is receiving the connection request for being shared terminal transmission, and according to this When the authentication information that is carried in connection request determines that the authentication is passed, the mark of terminal can be shared by establishing unit 502 according to this Know to establish and share terminal and the wireless network connection between being shared terminal, gives this to be shared network flow resource sharing Terminal, and the uninterrupted for being shared network flow resource used in terminal is counted by statistic unit 503, then, The network flow resource is controlled based on statistical result by control unit 504, for example carries out flow control and/or charging Deng, accordingly, with respect to it is existing can only blindly provide network flow resource to the scheme for being shared terminal for, can carry significantly The controllability and flexibility that height is shared are conducive to the utilization rate for improving network flow resource, flow are avoided to waste.
Correspondingly, the embodiment of the present invention also provide a kind of network flow resource by sharing apparatus, referred to as by sharing apparatus, This can be specifically integrated in the equipment such as terminal by sharing apparatus, which may include mobile phone, tablet computer, and/or notes This apparatus such as computer.
For example, as shown in Figure 6 a, this by sharing apparatus may include the first transmission unit 601, the first receiving unit 602, Selecting unit 603, the second transmission unit 604, the second receiving unit 605, third transmission unit 606 and acquiring unit 607, specifically It can be as follows:
First transmission unit 601, for sharing inquiry request to server transmission.
First receiving unit 602 shares the candidate terminal list that inquiry request returns for receiving server according to this.
Selecting unit 603 shares terminal for being selected from the candidate terminal list, and obtains the mark for sharing terminal.
Second transmission unit 604, for sharing acquisition request to server transmission, this, which shares to obtain request and carry, shares end The mark at end, the mark for being shared terminal and shared user information.
Wherein, the mark for sharing terminal may include the MAC Address for sharing terminal, SIM codes or IMEI code etc., be shared The mark of terminal may include the MAC Address for being shared terminal, SIM codes or IMEI code etc., and being shared user information then can be with Include the information such as the user name for being shared user, account name, and/or account number cipher.
Second receiving unit 605, share for receiving server according to this obtain that request returns with share terminal-pair and answer Authentication information;
Third transmission unit 606, for share terminal send connection request, the connection request carry the authentication information and The mark for being shared terminal is shared terminal when determining that the authentication is passed according to the authentication information to share terminal according to this Mark, which is established, shares terminal and the wireless network connection between being shared terminal.
Wherein, authentication and wireless network connection establish embodiment of the mode for details, reference can be made to front, no longer superfluous herein It states.
Acquiring unit 607, for obtaining the network flow resource shared terminal and shared based on the wireless network connection.
That is, after establishing and sharing terminal and shared wireless network connection between terminal, shared terminal By the wireless network connection, data packet to be sent to and shares terminal, will pass through the network flow resource for sharing terminal The data packet is sent to wide area network, for example, can will specifically be counted by third transmission unit 606 by the wireless network connection It is sent to according to packet and shares terminal, etc..
Optionally, in order to improve the flexibility of control, the network flow resource is in addition to that can be provided freely to be shared end Except end, it is possibility to have be supplied to repaying and shared terminal, for example, can be by server according to being shared the terminal-pair network flow The service condition of resource is measured, the uninterrupted such as used carries out charging, i.e., as shown in Figure 6 b, this can also be wrapped by sharing apparatus Third receiving unit 608 and payment unit 609 are included, it is as follows:
The third receiving unit 608 can be used for receiving the notics of charge that server is sent, wherein the notics of charge base Charging is carried out in the uninterrupted for being shared the network flow resource that terminal uses and is generated.
The payment unit 609 can be used for being paid according to the notics of charge.
Optionally, will be more than to share the amount of sharing that terminal is arranged (such as to count when being shared flow used in terminal As a result it is more than second threshold) when, the second receiving unit 605 can also receive instruction flow i.e. the carrying excess of server transmission Show information.
Similarly, when being shared flow used in terminal, more than the amount of sharing that terminal is arranged is shared, (such as statistical result is super Cross first threshold) when, the second receiving unit 605 can also receive the prompt message that the instruction connection of server transmission has disconnected.
When it is implemented, above each unit can be realized as independent entity, arbitrary combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
From the foregoing, it will be observed that needed for second receiving unit 605 by sharing apparatus of the present embodiment can obtain from server That to be accessed shares the authentication information of terminal, then, is based on the authentication information from third transmission unit 606 and is initiated to terminal is shared Connection request shares terminal with foundation and is shared the wireless network connection between terminal, and then being based on by acquiring unit 607 should The network flow resource that terminal is shared is shared in wireless network connection acquisition;Since the program can be by server come to each point The situation of sharing for enjoying the network flow resource of terminal is managed, such as distribution and charge etc., accordingly, with respect to it is existing can only be from Can be to be shared terminal and provide the selection sky of bigger for sharing the scheme for obtaining sharing information and authentication information in terminal Between, be conducive to improve the controllability shared and flexibility, be conducive to the utilization rate for improving network flow resource, avoids flow unrestrained Take.
Correspondingly, the embodiment of the present invention also provides a kind of server, as shown in Figure 7a, which may include that request connects Unit 701, acquiring unit 702, transmission unit 703, result receiving unit 704 and Charging Detail Record unit 705 are received, it specifically can be as follows:
(1) request reception unit 701;
Request reception unit 701 obtains request sharing for terminal transmission for receiving to be shared.
Wherein, this is shared to obtain request and carry and shares the mark of terminal, shared the mark of terminal and shared user's letter Breath etc.;The mark for sharing terminal may include the MAC Address for sharing terminal, SIM codes or IMEI code etc., be shared the mark of terminal Knowledge may include the MAC Address for being shared terminal, SIM codes or IMEI code etc., and it may include being divided to be shared user information then Enjoy the information such as user name, account name, and/or the account number cipher at family.
(2) acquiring unit 702;
Acquiring unit 702, the mark for being shared terminal according to this are shared terminal with user information determination is shared When meeting preset condition, is obtained according to the mark for sharing terminal and share the corresponding authentication information of terminal.
Wherein, which can be configured according to the demand of practical application, for example, can be set as " delivered Deposit of default amount ", etc..
(3) transmission unit 703;
Transmission unit 703 is believed to be shared terminal based on the authentication for sending the authentication information to being shared terminal It ceases and shares terminal and establish wireless network connection.
Wherein, being shared terminal can specifically be joined based on the authentication information with the method that terminal establishes wireless network connection is shared See the embodiment of front, details are not described herein.
In addition, it should be noted that, which can be carried by transmission unit 703 from the hot information that server preserves It obtains, wherein the hot information preserved in server can be provided by sharing terminal, such as by request reception unit 701 The hot information for sharing terminal transmission is received, is allocated alternatively, terminal can also be shared from behavior by server, i.e., such as Fig. 7 b Shown, which can also include processing unit 706, as follows:
The request reception unit 701 can be also used for receiving the network flow resource sharing request for sharing terminal transmission.
The processing unit 706 can be used for being believed to share terminal distribution hot spot according to network flow resource sharing request Breath.
The transmission unit 703 can be also used for returning to the hot information to sharing terminal.
(4) result receiving unit 704;
As a result receiving unit 704, for receiving the statistical result for sharing terminal transmission.
Wherein, the statistical result by share terminal-pair shared the uninterrupted of network flow resource used in terminal into Row statistics obtains, and the network flow resource is then to be supplied to by the wireless network connection by sharing terminal to be shared end End, for details, reference can be made to the embodiments of front, and details are not described herein.
(5) Charging Detail Record unit 705;
Charging Detail Record unit 705, for according to the statistical result, charging to be carried out according to preset strategy.
For example, if having saved this in the server shares the corresponding accounting policy information of terminal, at this point, Charging Detail Record unit 705 can carry out charging according to the statistical result according to the accounting policy information of setting.
Optionally, however, it is determined that shared terminal and do not meet preset condition, then can directly refused this and share acquisition request, or Person can also generate operation prompt information according to the preset condition, and send the operation prompt information to terminal is shared, i.e.,:
The transmission unit 703 can be also used for being shared the mark of terminal according to this and being shared user information and determine quilt When sharing terminal and not meeting preset condition, operation prompt information is generated according to the preset condition, and should to being shared that terminal sends Operation prompt information.
Wherein, sharing the mark of terminal can be obtained by being shared user from user is shared, and can also be carried by server Terminal is shared in supply, i.e.,:
The request reception unit 701, can be also used for receiving shared terminal transmission share inquiry request.
The acquiring unit 702 can be also used for sharing inquiry request acquisition candidate terminal list according to this.
For example, the acquiring unit 702, specifically can be used for sharing inquiry request according to this and shares end from database acquisition The mark at end generates candidate terminal list according to the mark for sharing terminal got.
Wherein, the candidate terminal list in addition to may include it is multiple share the mark of terminal other than, can also include each Share that terminal is corresponding to share amount information and/or accounting policy information etc., i.e.,:
The acquiring unit 702 specifically can be used for sharing inquiry request according to this and share terminal from database acquisition It identifies, share that terminal is corresponding to share amount information and/or accounting policy information etc., and according to the mark for sharing terminal got Know, share terminal it is corresponding share amount information and/or accounting policy information etc. generate candidate terminal list, for details, reference can be made to preceding The embodiment in face, details are not described herein.
The transmission unit 703 can be also used for returning to the candidate terminal list to being shared terminal.
Optionally, server can also execute other operations according to the instruction for sharing terminal, for example stop charging, etc. Deng that is,:
The result receiving unit 704 can be also used for receiving the notice that the instruction for sharing terminal transmission stops charging.
Then at this point, Charging Detail Record unit 705, the notice that can be also used for stopping according to the instruction charging stop to being shared terminal Charging.
Wherein, the notice of instruction stopping charging determining that the uninterrupted is more than pre- by sharing terminal according to statistical result If being generated when first threshold, for details, reference can be made to the embodiments of front, and details are not described herein.
Optionally, when stopping charging, server can also send the prompt that instruction connection has disconnected to terminal is shared Information, to be shared the case where terminal can know the wireless network connection in time, i.e.,:
The result receiving unit 704 can be also used for receiving the instruction flow for sharing terminal transmission i.e. by the notice of excess.
The transmission unit 703 can be also used for being sent to terminal is shared i.e. by the notice of excess according to the instruction flow Indicate flow i.e. by the prompt message of excess.
Wherein, which is determining that the uninterrupted surpasses by sharing terminal by the notice of excess according to statistical result It being generated when crossing default second threshold, the second threshold and first threshold can be configured according to the demand of practical application, and the Two threshold values are less than first threshold.
When it is implemented, above each unit can be realized as independent entity, arbitrary combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
From the foregoing, it will be observed that the server of the present embodiment receive by shared terminal transmission share acquisition request, and determine When being shared terminal and meeting preset condition, can by transmission unit 703 by the authentication information for sharing corresponding to terminal be supplied to by Share terminal so that wireless network connection can be established based on the authentication information with terminal is shared by being shared terminal, so that Sharing terminal can be by network flow resource sharing to being shared terminal, and to being shared network flow resource used in terminal Uninterrupted counted;Hereafter, the result receiving unit 704 of server can also receive the statistics knot for sharing terminal transmission Fruit, and by Charging Detail Record unit 705 according to the statistical result, charging is carried out according to preset strategy.Since the server of the program can be with The situation of sharing of each network flow resource for sharing terminal is managed, such as distribution and charge etc., accordingly, with respect to existing There is scheme that can only provide sharing information and authentication information to terminal is shared from sharing terminal, and network flow can only be blindly provided For resource is measured to the scheme for being shared terminal, the controllability shared and flexibility can be greatly improved, is conducive to improve network The utilization rate of floating resources, avoids flow from wasting.
Correspondingly, the embodiment of the present invention also provides a kind of network flow resource sharing system, may include implementation of the present invention Any server that any sharing apparatus and the embodiment of the present invention that example is provided are provided;In addition, the network flow Resource sharing system can also be provided any by sharing apparatus including the embodiment of the present invention.
Wherein, which can specifically be integrated in and share in terminal, can be specifically integrated in and be divided by sharing apparatus It enjoys in terminal, for example, as shown in figure 8, can be as follows:
Shared terminal 801, for sharing acquisition request to the transmission of server 802, this is shared to obtain request and carry and share The mark of terminal 803, the mark for being shared terminal 801 and shared user information etc., receives server 802 and shared according to this and is obtained The authentication information corresponding with terminal 803 is shared for taking request to return sends connection request, the connection request to terminal 803 is shared It carries the authentication information and is shared the mark of terminal 801.
Server 802 shares acquisition request for receiving by shared that terminal 801 sends, this is shared acquisition request and carries Share the mark of terminal 803, shared the mark of terminal 801 and shared user information;Shared the mark of terminal 801 according to this Know with when being shared user information determination and being shared terminal 801 and meet preset condition, is obtained point according to the mark for sharing terminal 803 Enjoy 803 corresponding authentication information of terminal;The authentication information is sent to terminal 801 is shared;Reception shares terminal 803 to being shared The statistical result transmitted after being counted of the uninterrupted of network flow resource used in terminal 801, according to the statistics knot Fruit carries out charging according to preset strategy.
Share terminal 803, for receiving the connection request shared terminal 801 and sent, which carries authentication letter The mark for ceasing and being shared terminal 801;When determining that the authentication is passed according to the authentication information, the mark of terminal 801 is shared according to this Know to establish and share terminal 803 and the wireless network connection between being shared terminal 801, by network flow resource sharing to should Shared terminal 801;Uninterrupted to being shared network flow resource used in terminal 801 counts;Based on statistics As a result the network flow resource is controlled.
The specific implementation of above each equipment can be found in the embodiment of front, and details are not described herein.
Since the network flow resource sharing system may include any sharing apparatus that the embodiment of the present invention is provided And server, it is thereby achieved that having achieved by any sharing apparatus and server that the embodiment of the present invention is provided Beneficial effect, for details, reference can be made to the embodiments of front, and details are not described herein.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, terminal can be shared as the embodiment of the present invention, such as schemed Shown in 9, which may include radio frequency (RF, Radio Frequency) circuit 901, includes one or more calculating It is the memory 902 of machine readable storage medium storing program for executing, input unit 903, display unit 904, sensor 905, voicefrequency circuit 906, wireless Fidelity (Wifi, Wireless Fidelity) module 907, include there are one or more than one processing core processor The components such as 908 and power supply 909.It will be understood by those skilled in the art that terminal structure shown in Fig. 9 was not constituted to end The restriction at end may include either combining certain components or different components arrangement than illustrating more or fewer components. Wherein:
RF circuits 901 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 908 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 901 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuits 901 can also by radio communication with network and its He communicates equipment.The wireless communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 902 can be used for storing software program and module, and processor 908 is stored in memory 902 by operation Software program and module, to perform various functions application and data processing.Memory 902 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to terminal (such as audio data, phone directory etc.) etc..In addition, memory 902 may include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 902 can also include Memory Controller, to provide processor 908 and input unit 903 to memory 902 Access.
Input unit 903 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, in a specific embodiment In, input unit 903 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or tactile Control plate, collect user on it or neighbouring touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and drive corresponding connection to set according to preset formula It is standby.Optionally, touch sensitive surface may include two parts of touch detection apparatus and touch controller.Wherein, touch detection apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from Touch information is received on touch detection apparatus, and is converted into contact coordinate, then gives processor 908, and can reception processing Order that device 908 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 903 can also include other input equipments.Specifically, other are defeated Enter equipment and can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse It is one or more in mark, operating lever etc..
Display unit 904 can be used for showing information input by user or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.Display Unit 904 may include display panel, optionally, may be used liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, when touch sensitive surface detects on it or after neighbouring touch operation, send processing to Device 908 is followed by subsequent processing device 908 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although in fig.9, touch sensitive surface and display panel are to realize input and input as two independent components Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Terminal may also include at least one sensor 905, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or the back of the body when terminal is moved in one's ear Light.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) acceleration Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 906, loud speaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 906 can By the transformed electric signal of the audio data received, it is transferred to loud speaker, voice signal output is converted to by loud speaker;It is another The voice signal of collection is converted to electric signal by aspect, microphone, and audio data is converted to after being received by voicefrequency circuit 906, then After the processing of audio data output processor 908, through RF circuits 901 to be sent to such as another terminal, or by audio data Output is further processed to memory 902.Voicefrequency circuit 906 is also possible that earphone jack, with provide peripheral hardware earphone with The communication of terminal.
Wifi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by Wifi modules 907 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown Wifi modules 907, but it is understood that, and it is not belonging to must be configured into for terminal, it can not change as needed completely Become in the range of the essence of invention and omits.
Processor 908 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 902, and call and be stored in memory 902 Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 908 can wrap Include one or more processing cores;Preferably, processor 908 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 908.
Terminal further includes the power supply 909 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 908 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 909 can also include one or more direct current or AC power, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation In example, the processor 908 in terminal can be corresponding by the process of one or more application program according to following instruction Executable file is loaded into memory 902, and runs the application program being stored in memory 902 by processor 908, from And realize various functions:
The connection request for being shared terminal transmission is received, which carries authentication information and the mark of being shared terminal Know;When determining that the authentication is passed according to the authentication information, the mark foundation that terminal is shared according to this is shared terminal and is shared with this Network flow resource sharing is given this to be shared terminal by the wireless network connection between terminal;It uses being shared terminal The uninterrupted of network flow resource counted;The network flow resource is controlled based on statistical result.
For example, specifically can statistical result be sent to server, so that server is according to the statistical result, according to default Strategy carries out charging.
Or, when determining that the uninterrupted is more than preset first threshold value according to statistical result, intercepts and shared terminal transmission Data packet, and disconnect the wireless network connection.
Or, statistical result is sent to server, so that server is according to the statistical result, counted according to preset strategy Take;When determining that the uninterrupted is more than preset first threshold value according to statistical result, the data packet for being shared terminal transmission is intercepted, is broken The wireless network connection is opened, and server is notified to stop charging.
Optionally, it receiving by before being shared the connection request that terminal is sent, hot spot can also be opened by sharing terminal, so as to Subsequently can by the hot spot by network flow resource sharing to being shared terminal.Wherein, which can directly be existed by user Share in terminal and establish, can also voluntarily be established according to hot information provided by the server by sharing terminal, i.e. processor 908 The application program being stored in memory 902 can also be run, to implement function such as:
Hot information input by user is obtained, hot spot is opened according to the hot information, and the hot information is sent to clothes Business device, so that server preserves the hot information and shares the correspondence of terminal.
Alternatively, the request of network flow resource sharing is sent to server, so that the server is according to the network flow resource Share request to share terminal distribution hot information, receives the hot information that server returns, and open according to the hot information Hot spot.
Wherein, which may include the title of hot spot and the authentication information of hot spot etc., which can wrap Include the information such as password and/or identifying code.
Optionally, accounting policy information can also be sent and/or share amount information non-server, wherein charging policy Information to being shared network flow resource used in terminal for indicate how carry out charging, and share amount information and be then used for Indicate the amount of the network flow resource for sharing.
Above each operation is for details, reference can be made to the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the terminal (sharing terminal) of the present embodiment is receiving the connection request for being shared terminal transmission, And when determining that the authentication is passed according to the authentication information carried in the connection request, the mark that terminal can be shared according to this is established Share terminal and the wireless network connection between being shared terminal, give this to be shared terminal network flow resource sharing, And the uninterrupted for being shared network flow resource used in terminal is counted, then, based on statistical result to the net Network floating resources are controlled, for example carry out flow control and/or charging etc., can only blindly be provided accordingly, with respect to existing For network flow resource is to the scheme for being shared terminal, the controllability shared and flexibility can be greatly improved, is conducive to carry The utilization rate of high network flow resource, avoids flow from wasting.
In addition, the embodiment of the present invention also provides a kind of server, as shown in Figure 10, involved by the embodiment of the present invention And server structural schematic diagram, specifically:
The server may include one or processor 1001, one or more meters of more than one processing core The components such as memory 1002, power supply 1003 and the input unit 1004 of calculation machine readable storage medium storing program for executing.Those skilled in the art can be with Understand, server architecture does not constitute the restriction to server shown in Figure 10, may include more more or fewer than illustrating Component either combines certain components or different components arrangement.Wherein:
Processor 1001 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part by running or execute the software program and/or module that are stored in memory 1002, and calls and is stored in memory Data in 1002, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, Processor 1001 may include one or more processing cores;Preferably, processor 1001 can integrate application processor and modulatedemodulate Adjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor Main processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1001.
Memory 1002 can be used for storing software program and module, and processor 1001 is stored in memory by operation 1002 software program and module, to perform various functions application and data processing.Memory 1002 can include mainly Storing program area and storage data field, wherein storing program area can storage program area, the application journey needed at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be created according to using for server Data etc..In addition, memory 1002 may include high-speed random access memory, can also include nonvolatile memory, A for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 1002 Can also include Memory Controller, to provide access of the processor 1001 to memory 1002.
Server further includes the power supply 1003 powered to all parts, it is preferred that power supply 1003 can pass through power management System and processor 1001 are logically contiguous, to realize management charging, electric discharge and power managed etc. by power-supply management system Function.Power supply 1003 can also include one or more direct current or AC power, recharging system, power failure monitor The random components such as circuit, power supply changeover device or inverter, power supply status indicator.
The server may also include input unit 1004, which can be used for receiving the number or character of input Information, and generate keyboard related with user setting and function control, mouse, operating lever, optics or trace ball signal Input.
Although being not shown, server can also be including display unit etc., and details are not described herein.Specifically in the present embodiment, Processor 1001 in server can according to following instruction, by the process of one or more application program is corresponding can It executes file to be loaded into memory 1002, and the application program being stored in memory 1002 is run by processor 1001, It is as follows to realize various functions:
It receives to be shared and obtains request sharing for terminal transmission, this is shared acquisition request and carries mark, the quilt for sharing terminal Share the mark of terminal and is shared user information;The mark for being shared terminal according to this is divided with user information determination is shared When enjoying terminal and meeting preset condition, is obtained according to the mark for sharing terminal and share the corresponding authentication information of terminal;To being shared end End sends the authentication information, and wireless network connection is established with terminal is shared based on the authentication information to be shared terminal;It receives Share statistical result transmitted after terminal-pair is counted by the uninterrupted for sharing network flow resource used in terminal, According to the statistical result, charging is carried out according to preset strategy.
Optionally, when the notice for receiving the instruction stopping charging for sharing terminal transmission, can also stop counting according to the instruction The notice taken stops charging.
Wherein, it is extracted in the hot information that authentication information can be preserved from server.It should be noted that institute in server The hot information of preservation can be provided by sharing terminal, can also be shared terminal from behavior by server and be allocated, that is, handle Device 1001 can also run the application program being stored in memory 1002, to realize following functions:
The network flow resource sharing request for sharing terminal transmission is received, is point according to network flow resource sharing request Terminal distribution hot information is enjoyed, the hot information is returned to terminal is shared.
Alternatively, receiving the hot information for sharing terminal transmission, preserves the hot information and share the correspondence of terminal, than Such as, may include the hot information and the correspondence of mark, etc. of sharing terminal.
The specific implementation of above each operation, reference can be made to the embodiment of front, details are not described herein.
From the foregoing, it will be observed that the server of the present embodiment receive by shared terminal transmission share acquisition request, and determine When being shared terminal and meeting preset condition, the authentication information for sharing corresponding to terminal can be supplied to and be shared terminal so that Wireless network connection can be established based on the authentication information with terminal is shared by being shared terminal, so that sharing terminal can incite somebody to action Network flow resource sharing carries out the uninterrupted for being shared network flow resource used in terminal to being shared terminal Statistics;Hereafter, server can also receive the statistical result for sharing terminal transmission, and according to the statistical result, according to default plan Slightly carry out charging.Since the server of the program can carry out pipe to the situation of sharing of each network flow resource for sharing terminal Reason, such as distribution and charge etc. can only provide sharing information from sharing terminal accordingly, with respect to existing scheme to terminal is shared And authentication information, and for can only blindly providing network flow resource to the scheme for being shared terminal, it can greatly improve point The controllability enjoyed and flexibility are conducive to the utilization rate for improving network flow resource, flow are avoided to waste.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with It is completed by instructing, or controls relevant hardware by instructing and complete, which can be stored in one and computer-readable deposit In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be handled Device is loaded, to execute any network flow resource sharing side for being applied to share terminal that the embodiment of the present invention is provided Step in method.For example, the instruction can execute following steps:
The connection request for being shared terminal transmission is received, which carries authentication information and the mark of being shared terminal Know;When determining that the authentication is passed according to the authentication information, the mark foundation that terminal is shared according to this is shared terminal and is shared with this Network flow resource sharing is given this to be shared terminal by the wireless network connection between terminal;It uses being shared terminal The uninterrupted of network flow resource counted;The network flow resource is controlled based on statistical result.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute that the embodiment of the present invention provided any is applied to Share the step in the transfer method of the virtual resource of terminal, it is thereby achieved that the embodiment of the present invention provided it is any The advantageous effect achieved by transfer method applied to the virtual resource for sharing terminal, refers to the embodiment of front, herein not It repeats again.
Similarly, the embodiment of the present invention also provides another storage medium, wherein be stored with a plurality of instruction, which can be by Processor is loaded, to execute any network flow resource sharing applied to server that the embodiment of the present invention is provided Step in method.For example, the instruction can execute following steps:
It receives to be shared and obtains request sharing for terminal transmission, this is shared acquisition request and carries mark, the quilt for sharing terminal Share the mark of terminal and is shared user information;The mark for being shared terminal according to this is divided with user information determination is shared When enjoying terminal and meeting preset condition, is obtained according to the mark for sharing terminal and share the corresponding authentication information of terminal;To being shared end End sends the authentication information, and wireless network connection is established with terminal is shared based on the authentication information to be shared terminal;It receives Share statistical result transmitted after terminal-pair is counted by the uninterrupted for sharing network flow resource used in terminal, According to the statistical result, charging is carried out according to preset strategy.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include:ROM, RAM, disk or CD etc..
By the instruction stored in the storage medium, can execute that the embodiment of the present invention provided any is applied to Step in the transfer method of the virtual resource of server, it is thereby achieved that any answering of being provided of the embodiment of the present invention The advantageous effect achieved by transfer method for the virtual resource of server, refers to the embodiment of front, no longer superfluous herein It states.
A kind of network flow resource sharing method, device, system and storage is provided for the embodiments of the invention above to be situated between Matter is described in detail, and principle and implementation of the present invention are described for specific case used herein, above The explanation of embodiment is merely used to help understand the method and its core concept of the present invention;Meanwhile for those skilled in the art Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as limiting the invention.

Claims (28)

1. a kind of network flow resource sharing method, which is characterized in that applied to sharing terminal, including:
Receive the connection request for being shared terminal transmission, mark connection request carrying authentication information and shared terminal;
When determining that the authentication is passed according to the authentication information, the mark foundation of being shared terminal according to described share terminal with it is described Shared the wireless network connection between terminal, network flow resource sharing is shared into terminal to described;
Uninterrupted to being shared network flow resource used in terminal counts;
The network flow resource is controlled based on statistical result.
2. according to the method described in claim 1, it is characterized in that, it is described based on statistical result to the network flow resource into Row control, including:
Statistical result is sent to server, so that server is according to the statistical result, charging is carried out according to preset strategy.
3. according to the method described in claim 1, it is characterized in that, it is described based on statistical result to the network flow resource into Row control, including:
When determining that the uninterrupted is more than preset first threshold value according to statistical result, the data for being shared terminal transmission are intercepted Packet, and disconnect the wireless network connection.
4. according to the method described in claim 1, it is characterized in that, it is described based on statistical result to the network flow resource into Row control, including:
Statistical result is sent to server, so that server is according to the statistical result, charging is carried out according to preset strategy;
When determining that the uninterrupted is more than preset first threshold value according to statistical result, the data for being shared terminal transmission are intercepted Packet, disconnects the wireless network connection, and server is notified to stop charging.
5. method according to claim 3 or 4, which is characterized in that further include:
When determining that the uninterrupted is more than default second threshold according to statistical result, notice server traffic i.e. by excess, with Just server sends instruction flow i.e. by the prompt message of excess to terminal is shared, and the second threshold is less than first threshold.
6. method according to claim 3 or 4, which is characterized in that described to receive the connection request for being shared terminal transmission Before, further include:
The Virtual Private Network shared in terminal is opened, and calls the control process of the Virtual Private Network;
The data packet of terminal transmission is shared in the interception, including:Terminal is shared by the control process intercept and is sent to institute State the data packet of Virtual Private Network.
7. method according to claim 3 or 4, which is characterized in that further include:
When determining that the uninterrupted is less than preset first threshold value according to statistical result, by the control process to being shared The data packet that terminal is sent to the Virtual Private Network carries out network address translation, and transformed data packet is passed through wide area Net is sent.
8. method according to any one of claims 1 to 4, which is characterized in that described to receive the company for being shared terminal transmission Before connecing request, further include:
The request of network flow resource sharing is sent to server, so that the server is asked according to the network flow resource sharing It asks to share terminal distribution hot information;
The hot information that server returns is received, and hot spot is opened according to the hot information;
The mark foundation for when determining that the authentication is passed according to the authentication information, being shared terminal according to described share terminal with Network flow resource sharing is shared terminal, specially by the wireless network connection shared between terminal to described: When determining that the authentication information is matched with hot information, the terminal of being shared is allowed to access the hot spot, by network flow Resource sharing is shared terminal to described.
9. according to the method described in claim 8, it is characterized in that, network flow resource sharing request carries charging policy Information and/or share amount information, it is described send the request of network flow resource sharing to server before, further include:
Obtain about charging policy and/or share the setting information of amount;
Accounting policy information is generated according to the setting information and/or shares amount information.
10. method according to any one of claims 1 to 4, which is characterized in that described to receive the company for being shared terminal transmission Before connecing request, further include:
Obtain hot information input by user;
Hot spot is opened according to the hot information, and the hot information is sent to server, described in server preservation Hot information and the correspondence for sharing terminal;
The mark foundation for when determining that the authentication is passed according to the authentication information, being shared terminal according to described share terminal with Network flow resource sharing is shared terminal, specially by the wireless network connection shared between terminal to described: When determining that the authentication information is matched with hot information, the terminal of being shared is allowed to access the hot spot, by network flow Resource sharing is shared terminal to described.
11. according to the method described in claim 10, it is characterized in that, it is described according to the hot information open hot spot after, Further include:
Obtain about charging policy and/or share the setting information of amount;
Accounting policy information is generated according to the setting information and/or shares amount information;
The accounting policy information is sent to server and/or shares amount information.
12. a kind of network flow resource sharing method, which is characterized in that it is applied to server, including:
Receive by shared terminal transmission share acquisition request, it is described share obtain request carry share terminal mark, divided It enjoys the mark of terminal and is shared user information;
When according to the mark for being shared terminal with being shared user information determination and being shared terminal and meet preset condition, according to The corresponding authentication information of terminal is shared in the mark acquisition for sharing terminal;
The authentication information is sent to terminal is shared, to be shared terminal based on the authentication information and to share terminal foundation Wireless network connection;
The statistical result for sharing terminal transmission is received, the statistical result is shared network used in terminal by sharing terminal-pair The uninterrupted of floating resources, which is counted, to be obtained, and the network flow resource is connected by sharing terminal by the wireless network It connects to be supplied to and is shared terminal;
According to the statistical result, charging is carried out according to preset strategy.
13. according to the method for claim 12, which is characterized in that further include:
When according to the mark for being shared terminal with being shared user information determination and being shared terminal and do not meet preset condition, root Operation prompt information is generated according to the preset condition, and the operation prompt information is sent to terminal is shared.
14. according to the method for claim 12, which is characterized in that according to the mark for being shared terminal with shared use Family information determination is shared whether terminal meets preset condition, including:
According to the mark for being shared terminal with shared user information determination shared terminal whether delivered preset amount Deposit;
Meet preset condition if so, determining and being shared terminal;
If not, it is determined that shared terminal and do not meet preset condition.
15. according to claim 12 to 14 any one of them method, which is characterized in that described receive is shared terminal transmission Before sharing acquisition request, further include:
Receive by shared terminal transmission share inquiry request;
Candidate terminal list is obtained according to the inquiry request of sharing;
The candidate terminal list is returned to terminal is shared.
16. according to claim 12 to 14 any one of them method, which is characterized in that it is described according to the statistical result, it presses After carrying out charging according to preset strategy, further include:
The notice for the instruction stopping charging for sharing terminal transmission is received, the instruction stops the notice of charging by sharing terminal in root Result determines according to statistics generates when the uninterrupted is more than preset first threshold value;
The notice for stopping charging according to the instruction stops the charging to being shared terminal.
17. according to claim 12 to 14 any one of them method, which is characterized in that it is described according to the statistical result, it presses After carrying out charging according to preset strategy, further include:
The instruction flow for sharing terminal transmission is received i.e. by the notice of excess, the instruction flow is i.e. by the notice of excess by sharing Terminal is generated when determining that the uninterrupted is more than default second threshold according to statistical result, and the second threshold is less than first Threshold value;
According to the instruction flow i.e. by the notice of excess, instruction flow is sent i.e. by the prompt of excess letter to terminal is shared Breath.
18. according to claim 12 to 14 any one of them method, which is characterized in that described receive is shared terminal transmission Before sharing acquisition request, further include:
Receive the network flow resource sharing request for sharing terminal transmission;
According to network flow resource sharing request to share terminal distribution hot information, the hot information includes the mirror Weigh information;
The hot information is returned to terminal is shared.
19. according to the method for claim 18, which is characterized in that the network flow resource sharing request carries charging plan Slightly information, it is described according to the statistical result, charging is carried out according to preset strategy, including:
According to the statistical result, charging is carried out according to accounting policy information.
20. a kind of sharing apparatus, which is characterized in that including:
Receiving unit, for receiving the connection request for being shared terminal transmission, the connection request carries authentication information and is divided Enjoy the mark of terminal;
Unit being established, when for determining that the authentication is passed according to the authentication information, being established according to the mark for being shared terminal Share terminal and the wireless network connection shared between terminal, network flow resource sharing is shared into end to described End;
Statistic unit, for being counted to the uninterrupted for being shared network flow resource used in terminal;
Control unit controls the network flow resource for being based on statistical result.
21. sharing apparatus according to claim 20, which is characterized in that further include opening unit;
Opening unit, for opening the Virtual Private Network shared in terminal, and call the control of the Virtual Private Network into Journey;
Described control unit is sent to the Virtual Private Network specifically for being shared terminal by the control process intercept Data packet.
22. the sharing apparatus according to claim 20 or 21, which is characterized in that further include that hot spot sets up unit;
The hot spot sets up unit, for server send network flow resource sharing request, so as to the server according to The network flow resource sharing request receives the hot information that server returns, and root to share terminal distribution hot information Hot spot is opened according to the hot information;
Described to establish unit, when being specifically used for determining that the authentication information is matched with hot information, permission is described to be shared terminal The hot spot is accessed, network flow resource sharing is shared into terminal to described.
23. the sharing apparatus according to claim 20 or 21, which is characterized in that further include setting unit;
The setting unit, the setting information for obtaining about charging policy and/or sharing amount, according to the setting information It generates accounting policy information and/or shares amount information;
Described control unit is specifically used for being based on statistical result, according to accounting policy information and/or shares amount information to described Network flow resource is controlled.
24. a kind of server, which is characterized in that including:
Request reception unit, for receive by shared terminal transmission share acquisition request, it is described share acquisition request carry point The mark of terminal is enjoyed, is shared the mark of terminal and is shared user information;
Acquiring unit, for according to the mark for being shared terminal with shared user information determination shared terminal meet it is pre- If when condition, being obtained according to the mark for sharing terminal and sharing the corresponding authentication information of terminal;
Transmission unit, for the terminal transmission authentication information is shared, the authentication information to be based on to be shared terminal Wireless network connection is established with terminal is shared;
As a result receiving unit, for receiving the statistical result for sharing terminal transmission, the statistical result is divided by sharing terminal-pair The uninterrupted for enjoying network flow resource used in terminal is counted and is obtained, and the network flow resource is by sharing terminal It is supplied to by the wireless network connection and is shared terminal;
Charging Detail Record unit, for according to the statistical result, charging to be carried out according to preset strategy.
25. server according to claim 24, which is characterized in that further include processing unit;
The request reception unit is additionally operable to receive the network flow resource sharing request for sharing terminal transmission;
The processing unit, for sharing terminal distribution hot information according to network flow resource sharing request;
The transmission unit is additionally operable to return to the hot information to sharing terminal.
26. a kind of network flow resource sharing system, which is characterized in that share including claim 20 to 23 any one of them Device and claim 24 to 25 any one of them server.
27. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 1 to 11 any one of them network flow resource sharing method is required with perform claim.
28. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 12 to 19 any one of them network flow resource sharing methods is required with perform claim.
CN201710719430.2A 2017-08-21 2017-08-21 Network flow resource sharing method, device, system and storage medium Pending CN108307393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710719430.2A CN108307393A (en) 2017-08-21 2017-08-21 Network flow resource sharing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710719430.2A CN108307393A (en) 2017-08-21 2017-08-21 Network flow resource sharing method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN108307393A true CN108307393A (en) 2018-07-20

Family

ID=62869214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710719430.2A Pending CN108307393A (en) 2017-08-21 2017-08-21 Network flow resource sharing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN108307393A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093806A1 (en) * 2018-11-06 2020-05-14 阿里巴巴集团控股有限公司 Data processing method and apparatus, and computing device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117906A (en) * 2013-02-27 2013-05-22 广东欧珀移动通信有限公司 Flow control method for process of sharing WiFi (wireless fidelity) hot spot for mobile terminals
CN103596121A (en) * 2013-10-30 2014-02-19 北京网河时代科技有限公司 Flow sharing method for wireless mobile networks
CN105246046A (en) * 2015-11-13 2016-01-13 Tcl集团股份有限公司 Method and device for sharing flow of mobile terminal
CN105472593A (en) * 2015-12-25 2016-04-06 北京奇虎科技有限公司 Method and system for realizing borrowing of Internet surfing traffic of mobile terminal
CN105610989A (en) * 2016-03-26 2016-05-25 上海斐讯数据通信技术有限公司 Data traffic sharing method and system
CN106059780A (en) * 2016-05-05 2016-10-26 广东小天才科技有限公司 Method and system of sharing traffic between mobile terminals
CN106330471A (en) * 2016-10-25 2017-01-11 珠海格力电器股份有限公司 Mobile terminal data flow sharing method, device and system
CN106658457A (en) * 2016-12-16 2017-05-10 深圳市金立通信设备有限公司 Reminding method of flow shared by hotspot and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117906A (en) * 2013-02-27 2013-05-22 广东欧珀移动通信有限公司 Flow control method for process of sharing WiFi (wireless fidelity) hot spot for mobile terminals
CN103596121A (en) * 2013-10-30 2014-02-19 北京网河时代科技有限公司 Flow sharing method for wireless mobile networks
CN105246046A (en) * 2015-11-13 2016-01-13 Tcl集团股份有限公司 Method and device for sharing flow of mobile terminal
CN105472593A (en) * 2015-12-25 2016-04-06 北京奇虎科技有限公司 Method and system for realizing borrowing of Internet surfing traffic of mobile terminal
CN105610989A (en) * 2016-03-26 2016-05-25 上海斐讯数据通信技术有限公司 Data traffic sharing method and system
CN106059780A (en) * 2016-05-05 2016-10-26 广东小天才科技有限公司 Method and system of sharing traffic between mobile terminals
CN106330471A (en) * 2016-10-25 2017-01-11 珠海格力电器股份有限公司 Mobile terminal data flow sharing method, device and system
CN106658457A (en) * 2016-12-16 2017-05-10 深圳市金立通信设备有限公司 Reminding method of flow shared by hotspot and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093806A1 (en) * 2018-11-06 2020-05-14 阿里巴巴集团控股有限公司 Data processing method and apparatus, and computing device and storage medium

Similar Documents

Publication Publication Date Title
US10341716B2 (en) Live interaction system, information sending method, information receiving method and apparatus
CN104735057B (en) Share the method and device of equipment control
US10637668B2 (en) Authentication method, system and equipment
CN104380776B (en) A kind of method for connecting network, hot terminal and management terminal
US9985938B2 (en) User control over WIFI network access
KR101641146B1 (en) Service sharing system and apparatus
EP3242461B1 (en) Intelligent device control method and device
US10531285B2 (en) Method of changing profile using identification module and electronic device implementing same
US20180368058A1 (en) Method for controlling device access, and related device and system
US20200053068A1 (en) Wireless Local Area Network WLAN Access Method, Terminal, and Server
CN104144402B (en) Realize the method and relevant apparatus of mobile terminal localized roaming
CN104601207B (en) A kind of data transmission method, user terminal and system
CN105577698B (en) Method and apparatus for access control clients auxiliary roaming
US9351165B2 (en) Identity verifying method, account acquiring method, and mobile terminal
CN107393178B (en) Mobile power supply, mobile power supply system, sharing request method, intelligent terminal and storage medium
CN104468464B (en) verification method, device and system
EP2814276B1 (en) Access authentication method and device for wireless local area network hotspot
CN103475996B (en) Method for connecting network, network share method and device
TWI333776B (en) Method, apparatus and article to remotely associate wireless communications devices with subscriber identities and /or proxy wireless communications devices
CN103634109B (en) Operation right authentication method and device
CN106887773B (en) A kind of management system and method for intelligent socket
CN103731810B (en) access point sharing method and device
CN104243517B (en) Content share method and device between different terminals
CN103634294B (en) Information verifying method and device
US9178915B1 (en) Cookie preservation when switching devices

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