Detailed description of the invention
In the following description, for purposes of illustration, for complete to one or more embodiment is providedFoliation solution, has set forth many details. But, clearly, can there is no these details yetSituation under realize these embodiment. In other example, one or more embodiment for convenience of description,Known structure and equipment illustrate with the form of block diagram.
In existing network traffics processing scheme, for user, if of that month terminal set meal streamAmount is tood many or too much for use and will be cleared the end of month while being left, and can not be accumulated in the set meal flow of next month, instantlyWhen the set meal flow of individual month is not enough, wanting to continue online will extraneous expense expenses of surfing Internet, and user all the timeCannot use substantially terminal set meal flow. For the problems referred to above, the invention provides a kind of terminal flowShare method, making has in remaining situation at user's terminal set meal flow, can be by remaining flowBe shared with others, avoid the zero clearing by operator; In the time that customer flow is not enough, can think point by searchingThereby the people who enjoys self residual flow uses remaining flow in this person's set meal.
Below with reference to accompanying drawing, specific embodiments of the invention are described in detail.
Fig. 1 shows the flow process of sharing method according to the terminal flow of the embodiment of the present invention.
As shown in Figure 1, the terminal flow that the embodiment of the present invention provides is shared method, comprising:
Step S110: first terminal sends and shares flow request to flow share service device.
First terminal includes but not limited to terminal, notebook computer, PDA of user etc. Make with user AWith terminals share flow be example, when user A terminal flow has residue while wanting to be shared with other users, userA is sent and shares flow request to flow share service device by terminal, and flow share service device receives thisAfter request, can carry out to user A and share the operation that flow is relevant.
Step S120: flow share service device generates hotspot name and focus password according to sharing flow request,And send to first terminal.
User A shares flow and first needs to create shared focus, and other users are logining after this shared focus,Could use the flow of sharing focus founder. What user A sent to flow share service device shares flowRequest comprises user A to be wanted to create the information of sharing focus, receives and shares stream at flow share service deviceAfter amount request, obtain user A and want to create the information of sharing focus, generate at random immediately hotspot name andFocus password sends in the terminal of user A, creates and shares focus for user A.
In addition, other users obtain the actual flow for use founder of flow of sharing focus founder.
Step S130: first terminal creates shared focus according to hotspot name and focus password.
Create by terminal at user A and share after focus, if there are other users to step on into this shared focus,User A just can be shared with the user who steps on into this shared focus by the terminal flow of oneself, steps on into this and sharesThe user of focus just can use the terminal flow online that creates the user A that shares focus.
Step S140: the second terminal is obtained the hotspot name of sharing focus, and is uploaded to flow share serviceDevice.
The second terminal is what other users' terminal, notebook computer, PDA etc. can use traffic onlineEquipment, other users are taking user B as example, and user B wants the flow of user A, first, userB finds the shared focus of the terminal establishment of user A by terminal, then, obtain the heat of this shared focusPoint title, is uploaded to flow share service device.
Step S150: flow share service device sends the focus password corresponding with hotspot name to the second terminal.
Flow share service device receives after the hotspot name that the terminal of user B uploads, and can inquire about and this heatFocus password corresponding to some title, is sent to focus password in the terminal of user B.
Step S160: share focus according to focus password by the second terminal login, obtain flow.
Receive in the terminal of user B after the focus password of flow share service device transmission, heat is shared in loginPoint, flow online that just can user A.
It should be noted that, want the user who shares flow to serve as flow participator, want use trafficUser serves as flow user, and a user both can serve as flow participator and also can serve as flow usePerson. In order to prevent from rubbing the generation of net phenomenon, in the specific embodiment of the present invention, adopt by setting upAn account systematic unity is managed flow participator and flow user, wants to share flow or makes userWhile using flow, first login account system, does not have the user of login account system just cannot obtain others like thisThe flow of sharing out. Meanwhile, for the purpose of justice, user must first be shared with him by the flow of oneselfAfter people, could use other people flow.
In the process of shared flow, the number between first terminal, the second terminal and flow share service deviceAccording to interaction as shown in Figure 2:
S201: first terminal sends and shares flow request to flow share service device.
S202: flow share service device generates hotspot name and focus password according to sharing flow request.
S203: the hotspot name of generation and focus password are sent to first terminal by flow share service device.
S204: first terminal creates shared focus according to hotspot name and focus password.
S205: the second terminal is obtained the hotspot name of the shared focus of first terminal establishment.
S206: the hotspot name of obtaining is uploaded to flow share service device by the second terminal.
S207: flow share service device sends the focus password corresponding with hotspot name to the second terminal.
In addition, share focus in the second terminal according to focus password login, while using the flow of first terminal,The byte number of the flow of the first terminal of use is reported flow share service device by the second terminal, and first eventuallyThe byte number of the flow that is shared with the second terminal can be reported flow share service device by end, and flow is shared clothesBusiness device can record the byte number of the flow of first terminal and the second terminal to report.
Share method in order to illustrate in greater detail terminal flow provided by the invention, Fig. 3 shows according to thisThe terminal flow of inventive embodiments is shared the detailed process of method. As shown in Figure 3, the embodiment of the present invention is carriedThe terminal flow of confession is shared method and is comprised:
Step S310: user's login account system.
Account system can adopt the mode of account management to manage the user in this system, does not login this and isThe user of system wants to login the necessary first register account number of this system, logins this system, by the account of registrationHave the user of account to login this system according to registered account, account system also can adopt otherMode is managed the user in this system.
After user's login account system, account system can present two functions to user, and a function is " to divideEnjoy flow ", another function is " use traffic ". For the user of login account system for the first time, mustMust first use " sharing flow " function, could use " use traffic " being shared with after other customer flowFunction. Therefore, user for the first time login account system can only first select to share traffic engineering capability, for non-The user of a login account system, after login account system, can select according to own actual demandShare traffic engineering capability or use traffic function, user selects to share traffic engineering capability and is equal to the shared clothes of flowBusiness device sends shares flow request, and user's choice for use traffic engineering capability is equal to flow share service device to be sent outSend use traffic request, flow share service device operates accordingly according to the type of request.
Step S320: judge that user selects to share traffic engineering capability or use traffic function, if user selectsShare traffic engineering capability, execution step S330; If user's choice for use traffic engineering capability, performs step S360.
Share traffic engineering capability and the use traffic function user Lai Shuoshi for the non-system of login account for the first timeTwo functions arranged side by side.
Step S330: set up Wi-Fi Hotspot.
In order to prevent not adding the user of account system to connect this Wi-Fi Hotspot and use establishment Wi-Fi HotspotUser's flow, Wi-Fi Hotspot title and password must obtain from flow share service device. Particularly,Generate 16 alphanumeric random combines by flow share service device, by random Wi-Fi-Share+16 positionFront 8 characters of combination are as hotspot name, and rear 8 characters of 16 random combines are close as focusCode. Such as, hotspot name is Wi-Fi-Share23sd3231, focus password is da2383re, but thisThe bright random combine that is not limited to generate 16 characters.
Wherein, Wi-Fi-Share is the beginning of hotspot name, is convenient to other users and finds, and also canTo change other the beginning of hotspot name into.
In addition, flow share service device also can generate the character combination of other figure place at random, by a partCharacter is as the hotspot name of sharing focus, and another part character is as the focus password of sharing focus.
Step S340: another user accesses the Wi-Fi Hotspot of foundation.
Particularly, taking user B as example, the process of the Wi-Fi Hotspot that user B access is set up is: usingAfter the B login account system of family, the focus of scanning Wi-Fi-Share beginning around, finds after focus focusAfter title, 8 characters upload to flow share service device, whether judge user B by flow share service deviceFor sharing the user of inflow-rate of water turbine, if so, the password that flow share service device inquires Wi-Fi Hotspot is sent outGive this user B, user B obtains after password, and login Wi-Fi Hotspot also can be surfed the Net; If not,The password that flow share service device does not send Wi-Fi Hotspot to user B, and point out user B first to share streamAmount.
In addition, user is in the time sharing flow, and flow share service device can arrange flow that user sharesSize, for example, party A-subscriber has the residual flow of 50M, and he can be shared with party B-subscriber 20M flow,Remaining 30M flow oneself uses, and this flow of having avoided party B-subscriber to obtain from party A-subscriber exceedes AThe remaining flow of user itself. But, if do not have other users to access the Wi-Fi heat that party A-subscriber sets upPoint, this party A-subscriber cannot share flow.
Step S350: the flow information that flow share service device recording user is shared and another user useFlow information.
Flow share service device can be added up each user and is shared with other users' by setting up tables of dataFlow information and each user use other users' flow information, and tables of data is as follows:
In order to ensure the fairness between user, user uses the byte number of other users' flow not to be greater thanThe byte number of the flow that user self shares away, for example user shares away 50M flow, and user is maximumCan use other users' 50M flow, but the flow of the flow of sharing away and use can accumulate,The summation of flow using is less than or the summation of the flow that equals to share away.
The object that flow share service device records flow information is to control user and uses other user's flowAmount, taking party A-subscriber and party B-subscriber as example, if party B-subscriber shared 50M flow, party B-subscriber's energyUse 50M flow from party A-subscriber, if when the flow process that user B uses from party A-subscriber arrives 50M,Flow share service device is notified being connected of the terminal disconnection of user A and the terminal of user B, limits with thisThe flow that party B-subscriber uses, prevents that the flow amount that party B-subscriber obtains from exceeding the flow of himself sharing awayAmount. But C user also accesses the Wi-Fi Hotspot that party A-subscriber creates, the flow accumulation that C user usesIn the discharge record of sharing to party A-subscriber (flow that flow+C that flow=B that A shares uses uses), withThis analogizes, and more its operable flows of flow that party A-subscriber shares are more.
In addition, in mobile network, flow is divided into three types according to speed, be respectively 4G, 3G and2G, is equivalent to three speed class, i.e. 4G network speed > 3G network speed > 2G network speed, flow share service deviceRecord the speed class of flow and other users of each user use that each user is shared with other userThe speed class of flow, the speed class of other users' that user will use flow be less than or etc.Be shared with the speed class of other users' flow in user, user can use after sharing high speed flowLow speed flow, but user can not use high speed flow after sharing low speed flow. Particularly, if user dividesEnjoy to other users be 4G flow, this user can use other users' 4G, 3G or 2G streamAmount; If what user was shared with other users is 3G flow, this user can use other users'2G or 3G flow; If what user was shared with other users is 2G flow, this user can only useOther users' 2G flow.
The mode limited subscriber that records the speed class of flow by flow share service device uses other usersFlow, can realize by two kinds of modes:
1, login after shared focus by terminal user, use before other users' flow, flow is sharedServer judges whether the speed class of the shared focus that this user logins by terminal is less than or equal to flowThis user of share service device record gives the speed class of other users' flow by terminals share; IfThat this user can use the flow of sharing focus by terminal; If not, flow share serviceDevice notice is connected the terminal of this user's terminal disconnection and the shared focus of establishment.
2, login by terminal user and share before focus, flow share service device judges that user passes through terminalWhether the speed class that is shared with other users' flow is less than or equal to the speed class of this shared focus;If so, flow share service device sends the focus password corresponding with hotspot name to this user's terminal,This user is logined and is shared the flow that uses other users after focus by terminal according to focus password; If not,Flow share service device does not send the focus password corresponding with hotspot name to this user's terminal.
It should be noted that, the speed class of sharing focus is the speed that creates the flow of the terminal of sharing focusDegree grade. In addition, in the process of user's use traffic, the every use of user 1M flow will report streamAmount share service device, flow share service device subtracts 1 by spendable user flow value, when retrievable flowValue is 0 o'clock, and flow share service device disconnects network automatically, and user cannot continue to use shared flow.
Step S360: judge whether user shares inflow-rate of water turbine, if so, execution step S370; If not,Execution step S390.
If user shares inflow-rate of water turbine, further judge whether this user also has spendable flow, ifUser does not share inflow-rate of water turbine, cannot use other users' flow, first shares flow can to one of userPrompting.
Step S370: judge whether user has spendable flow, if had, perform step S380;If no, perform step S390.
In the time of user's choice for use traffic engineering capability, flow share service device can judge whether this user in addition canThe flow using, if had, continues the step of follow-up other users' of use flow; If no,Illustrate that user has not had spendable flow or this user not to share inflow-rate of water turbine.
The flow of the flow of wherein, spendable flow=shared-used.
Step S380: find the Wi-Fi Hotspot that user sets up around, and access this Wi-Fi Hotspot and obtainFlow.
User accesses the process refer step S340 of Wi-Fi Hotspot.
Access after this Wi-Fi Hotspot user, other users' that flow share service device recording user usesFlow, interrupt network in the time that the spendable flow value of user is 0, that is to say, flow share service deviceUsing spendable this user flow value as critical value, automatic in the time that the flow of user's use reaches critical valueDisconnect network. For example, for example user once shared 50M flow, and now the spendable flow of user is 50M,Using 50M flow as critical value, use 30M flow from other users now, spendable streamAmount deducts 30M, and also remaining 20M, if continue use traffic, can only use at most 20M, namelyAutomatic interrupt network when the flow that user uses reaches critical value 50M.
In addition, if the shared focus that user does not find other users to set up, this user cannot useOther users' flow.
Step S390: the flow that cannot use other users.
Because user does not have spendable flow, flow process finishes.
The terminal flow that above-mentioned steps S310~S390 describes the embodiment of the present invention in detail to be provided is shared method,Have in remaining situation at customer flow, after registration terminal flow share system, by flow share serviceThe hotspot name that device generates and focus password create shares focus, and remaining flow is shared with to other users,In the time that customer flow deficiency need to be obtained flow, after registration terminal flow share system, re-use periphery peopleThe flow of sharing out, makes user can more reasonably use terminal set meal flow.
Corresponding with the shared method of above-mentioned terminal flow, the invention provides a kind of terminal flow shared system.
Fig. 4 shows according to the first logical construction of the terminal flow shared system of the embodiment of the present invention.
As shown in Figure 4, the terminal flow shared system 400 that the embodiment of the present invention provides, comprises and shares requestTransmitting element 410, shared focus creating unit 420, hotspot name acquiring unit 430, shared focus are stepped onRecord unit 440.
Wherein, share request transmitting unit 410 for sending to flow share service device by first terminalShare flow request.
Share hotspot name and the focus of focus creating unit 420 for sending according to flow share service devicePassword is created and is shared focus by first terminal.
Hotspot name acquiring unit 430 is shared the hotspot name of focus for obtaining by the second terminal, andBe uploaded to flow share service device.
Share focus login unit 440 corresponding with hotspot name for what send according to flow share service deviceFocus password share focus by the second terminal login.
Fig. 5 shows according to the second logical construction of the terminal flow shared system of the embodiment of the present invention.
As shown in Figure 5, share focus login unit 440 and comprise speed class judge module 441, forShare in the process of focus according to sharing 440 logins of focus login unit, judge the stream of the second terminals shareWhether the speed class of amount is less than or equal to the speed class of sharing focus; If so, flow share serviceDevice sends the focus password corresponding with hotspot name to the second terminal.
Terminal flow shared system 400 also comprises byte number record cell 450, for sharing focus in basis440 logins of login unit are shared after focus, the byte number of the flow of the use of record the second terminal to report;If the byte number of the flow of the use of the second terminal to report is more than or equal to the second terminals share to other eventuallyThe byte number of the flow of end, the disconnection of flow share service device notice first terminal is connected with the second terminal.
Corresponding with terminal flow sharing method, the present invention also provides a kind of flow share service device, its numberAccording to handling process as shown in Figure 6, taking user A and user B as example, flow provided by the invention is shared clothesThe data processing method of business device 600 comprises:
Step S601: the flow request of sharing sending by terminal according to user A generates hotspot name and heatPoint password, and the hotspot name of generation and focus password are sent to the terminal of user A.
Step S602: the hotspot name of uploading by terminal according to user B, sends to the terminal of user BThe focus password corresponding with the hotspot name of uploading.
Wherein, flow share service device 600 is shared flow request what send by terminal according to user AGenerate in the process of hotspot name and focus password, flow share service device 600 generate 16 characters withMachine combination, wherein front 8 characters are as hotspot name, and rear 8 characters are as focus password.
In a detailed description of the invention of the data processing method of share service device 600, logical at user BCross terminal login and share focus, in the process of the flow of user A, user B will use by terminalThe byte number of flow report to flow share service device 600, flow share service device 600 recording user BThe byte number of the flow by terminal to report, namely recording user A by terminals share to user B'sThe byte number of flow; If user B is more than or equal to user B by the byte number of the flow of terminal to reportGive the byte number of other user's flow by terminals share, flow share service device is notified the end of user AEnd disconnects and being connected of the terminal of user B.
In another detailed description of the invention of the data processing method of share service device 600, at user BLogin in the process of sharing focus by terminal, flow share service device 600 judges that user B passes through terminalWhether the speed class that is shared with other users' flow is less than or equal to the speed class of this shared focus;If so, flow share service device 600 is close to the terminal transmission of the user B focus corresponding with hotspot nameCode. In another detailed description of the invention of the data processing method of share service device 600, at user BLogin and share focus by terminal, in the process of the flow of user A, flow share service device 600Limited subscriber A is the size to the flow of user B by terminals share.
In three detailed description of the invention of the data processing method of above-mentioned share service device 600, enforcement orderIn no particular order.
The present invention is also corresponding provides a kind of device end, and referring to Fig. 7, this device end 700 comprises terminal streamAmount shared system 400 and flow share service device 600; Wherein,
Terminal flow shared system 400 has the structure described in Fig. 5, flow share service device 600For the flow share service device described in Fig. 6, specifically, referring to describing above, repeat no more herein.
More than describe terminal flow provided by the invention in detail and share method and system, user is at terminal coverWhen meal flow residue, send and share flow request to flow share service device, by flow share service deviceThe hotspot name generating and focus password create shares focus, and remaining flow in set meal is shared with to otherUser, avoids the waste of user terminal set meal flow, and user, in the time of terminal set meal underfed, finds itThe shared focus that he user creates, and obtain focus password from flow share service device, user passes through focusPassword login is shared after focus, and the flow that uses other users to provide, avoids the online outside user's amount paidExpense, makes user can use more reasonably, substantially terminal set meal flow.
The above be only the specific embodiment of the present invention, but protection scope of the present invention is not limited toIn this, any be familiar with those skilled in the art the present invention disclose technical scope in, can be easilyExpect changing or replacing, within all should being encompassed in protection scope of the present invention. Therefore, protection of the present inventionScope should described be as the criterion with the protection domain of claim.