Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of method for network access; Be applicable to that mainly terminal equipment passes through in the process of wireless data cat access network; Or terminal equipment is linked in the process of network through hotspot; Present embodiment is that network access equipment is the performed methods of equipment such as above-mentioned wireless data cat or hotspot, and flow chart is as shown in Figure 1, comprising:
Step 101 receives the access request of first terminal equipment.
When first terminal equipment need pass through the network access equipment access network; First terminal equipment can send the request of access and give network access equipment; The sign that in inserting request, can comprise this first terminal equipment; Such as medium access control (Media Access Control, MAC) information such as address.
There is second terminal equipment in step 102 in the terminal equipment of accessed network access device, then execution in step 103; If there is not second terminal equipment, whether decision will insert the first terminal equipment access network of asking correspondence after then ignoring this access request or carrying out other judgement further.
Optional; Before execution in step 102, can also check when whether terminal equipment quantity that this network access equipment connects has reached the higher limit that is allowed; Can directly not insert first terminal equipment if reach higher limit yet, if reach higher limit, execution in step 102.
Wherein, the time of the second terminal equipment access network access device is greater than the time window that presets, and the network traffic data that inserts between back and the network access equipment has regularity; Or the time of the second terminal equipment access network access device greater than the time window that presets, and and network access equipment between network traffic data be 0.Be appreciated that the flow that communicates generation between terminal equipment and the networking access device can comprise data traffic, can also comprise the flow etc. of signaling traffic, just the network traffic data between them is limited in the present embodiment such as the control signaling; The regularity that above-mentioned network traffic data has can comprise that the time interval that produces network traffic data is identical; The duration T F that produces network traffic data is identical; Network traffic data F identical or in preset time window δ T rule such as generation repeatedly, the data of regularly sending connection state to network access equipment such as terminal equipment keep with being connected of network access equipment etc.
In the present embodiment; Network access equipment need be monitored the network connection state of the terminal equipment that inserts; Monitor such as information such as the sign of network traffic (comprising data traffic and the signaling traffic) F between TD turn-on time of terminal equipment, terminal equipment and the network access equipment, the duration T F that produces network traffic, terminal equipment and terminal equipment being broken off the time point that is connected with network access equipment and disconnect cause; Network access equipment just knows that terminal equipment that has inserted and the terminal equipment of just having initiated the request that inserts are linked into the situation of this network access equipment like this; Preferably; Network access equipment can write down the network connection state information of the terminal equipment of monitoring; And in the process of record, when network access equipment receives the order that terminal equipment initiatively breaks off connection, or under the situation of non-network access equipment automatic disconnection such as the overtime disconnection connection of terminal equipment no signal; In order to save the space, network access equipment can be removed all corresponding records of its this terminal equipment.
After network access equipment receives the request of access; Can judge the current network connection status of accessed terminal equipment earlier; If the turn-on time that has second terminal equipment is greater than the time window δ T that presets; And the network traffic data after inserting is 0, explains that then these second terminal equipments that inserted possibly have no network traffic data to produce in the long period that connects network access equipment, think that second terminal equipment is in the idle condition that network uses; If the turn-on time that has second terminal equipment is greater than the time window δ T that presets; And the network traffic data after inserting has regularity; Then explain and to have only some to have the data of rule information between second terminal equipment and the network access equipment in order to guarantee handshaking information that network is connected etc.; And do not have the user to make second terminal use the flow of network through operating second terminal equipment; Promptly this second terminal equipment is in the idle condition that network uses, and at this moment, network access equipment can break off and being connected of this second terminal equipment that has inserted.
Step 103; Disconnection is connected with this second terminal equipment that has inserted; Further; Network access equipment can also be provided with precedence designation position P for second terminal equipment that breaks off, so that network access equipment when receiving the access request of second terminal equipment once more, can preferentially be linked into second terminal equipment with precedence designation position P that breaks off in the network access equipment.
Need to prove; Network access equipment is for the setting of precedence designation position P; So long as this network access equipment is will break off the terminal equipment that has inserted according to certain strategy decision the time; Can precedence designation position P be set for the terminal equipment that breaks off, and when the terminal equipment with precedence designation position P once more during the access network access device, network access equipment can remove the precedence designation position of this terminal equipment; But network access equipment can't be deleted the network connection state information of the terminal equipment of this disconnection, so that get ready for this terminal equipment is connected in the network access equipment again; And when initiatively breaking off with being connected of network access equipment for terminal equipment, network access equipment then can not be provided with the precedence designation position for this terminal equipment.Network access equipment is provided with the precedence designation position for the accessed terminal equipment that breaks off like this; Can guarantee that the terminal equipment that has before inserted can preferentially connect network access equipment when needed again, can make when improving the network access equipment utilization rate that like this utilization rate of network access equipment is comparatively fair.
Step 104 is with the above-mentioned first terminal equipment access network.
It is thus clear that; In embodiments of the present invention, after network access equipment receives the access request of first terminal equipment, if when having second terminal equipment in the terminal equipment of accessed network access device; Disconnection is connected with second terminal equipment, and with this first terminal equipment access network.Wherein the time of the second terminal equipment access network access device is greater than the time window that presets, and and network access equipment between network traffic data have regularity or network traffic data is 0.Like this when the access request of new transmission; Network access equipment can withdraw from the time of can letting second terminal equipment that inserted not use in the free time and being connected of this network access equipment; Really there is first terminal equipment that needs to insert and let; So can be owing to the terminal equipment that inserts this network access equipment does not use network and inserts the terminal equipment limited amount of this network access equipment; And cause the new access request of initiating to pass through this network access equipment access network, thereby improved the utilization rate of network access equipment.
With reference to shown in Figure 2; In a concrete embodiment; After if network access equipment receives the request of access; Confirm do not have the condition of carrying out in the above-mentioned steps 102, promptly in the terminal equipment of accessed network access device, do not have the second above-mentioned terminal equipment, then need to carry out earlier following step:
Step 105; Judge that whether the first corresponding terminal equipment of above-mentioned access request is to there being punishment flag bit B; If first terminal equipment has corresponding punishment flag bit, think that then this first terminal equipment is unstable with being connected of network access equipment before, execution in step 106; If first terminal equipment does not have corresponding punishment flag bit; Then set up the occasional passage of the terminal equipment corresponding or directly carry out above-mentioned steps 104 with inserting request, further, if first terminal equipment does not have corresponding punishment flag bit; Network access equipment needs also to confirm earlier whether the terminal equipment quantity that inserts this network access equipment surpasses the threshold value that presets; If surpass, then can not carry out above-mentioned steps 104, and need set up occasional passage.Wherein, if set up occasional passage, then network access equipment can also execution in step 107 further.
Be appreciated that; When network access equipment monitors for a terminal equipment; If have at least twice identical with reason that network access equipment break off to connect; And the number of times that this terminal equipment is initiated the request that inserts in the same time interval surpasses the threshold value A preset, and then network access equipment can be provided with the punishment flag bit B of this terminal equipment, think between this terminal equipment and the network access equipment be connected unstable; Can preferentially break off and have being connected between the terminal equipment of punishment flag bit B, make this terminal equipment can not take linking number.And above-mentioned network access equipment is when setting up occasional passage; Specifically can set up and being connected of corresponding terminal equipment; And the temporary sign that this connection correspondence is set indicates this to be connected to occasional passage; The purpose that network access equipment is set up occasional passage is initiatively this occasional passage to be detected, if there is not satisfactory network traffic data in this occasional passage, then need break off this occasional passage; Based on this; Occasional passage can be set up when the terminal equipment linking number of network access equipment has been expired; Current linking number such as network access equipment has 5, has reached the threshold value that presets, then can also set up with terminal equipment between occasional passage be connected as the 6th.Need to prove that network access equipment can limit the occasional passage quantity of foundation, such as not surpassing the threshold value preset etc.
Step 106; Judge whether the request of access meets the condition of ignoring; If meet the condition of ignoring; Think that then the access request of the current initiation of this first terminal equipment is similar with the access request of initiating before, and first terminal equipment is just unstable with being connected of network access equipment before, then need ignore this access request; If do not meet the condition of ignoring; Then set up the occasional passage of the terminal equipment corresponding or directly carry out above-mentioned steps 104 with inserting request; If do not meet when ignoring condition equally; Network access equipment can confirm earlier that whether the linking number of terminal equipment surpasses the threshold value that presets, if surpass, then can only set up occasional passage.Wherein, if set up occasional passage, then network access equipment can also execution in step 107 further.
Wherein, if be provided with the punishment flag bit at network access equipment to terminal equipment, this terminal equipment sends when inserting request in the time window TB that presets at the same time, then need ignore i.e. this access request of this access request and meet the condition of ignoring.
Step 107; Network traffic data in this occasional passage detects; If the network traffic data in the time window δ T that presets in this occasional passage has regularity or network traffic data is 0; Explain that then this first terminal equipment does not use network,, need to break off occasional passage in order not take the linking number of network access equipment; If the network traffic data in the time window that presets in this occasional passage has not regulation and network traffic data is not 0, then execution in step 108.
Step 108 judges whether the first corresponding terminal equipment of the request of access has precedence designation position P, if do not have the precedence designation position, preferentially access network access device of this terminal equipment is described then, needs to break off occasional passage; If have the precedence designation position then further execution in step 109.Generally speaking, this precedence designation position is when network access equipment decision is broken off with being connected of accessed terminal equipment, for this terminal equipment setting.
Step 109; Judge in the terminal equipment that has inserted this network access equipment and whether have the 3rd terminal equipment that is later than this occasional passage connect hours turn-on time; If there is not the 3rd terminal equipment; Explain that then this access request is up-to-date access request, after step 101 receives the request of access, do not receive other and insert request, then break off occasional passage; If there is the 3rd terminal equipment; Then explain after network access equipment receives the access request that first terminal equipment sends to set up with the occasional passage of this first terminal equipment during this period of time in; There is other terminal equipment to initiate to insert and asks this network access equipment such as the 3rd terminal equipment; In order to make the terminal equipment of initiating the request that inserts at first to be linked into earlier in the network access equipment, then execution in step 110.
Step 110, break off with the turn-on time of access network access device later insert being connected of the 3rd terminal equipment, and the temporary sign that is connected and removes this occasional passage of maintenance and this first terminal equipment.
Need to prove; Above-mentioned 105,107 and 108 determining step can have other order; Such as having judged whether first terminal equipment has after the precedence designation position; Judge whether to punish flag bit etc. again, the order of wherein a kind of concrete realization just is shown among Fig. 2, also can not punish the judgement of flag bit or the judgement of precedence designation position etc.Through above-mentioned steps 101 to 110; Network access equipment fully takes into account the network connection state of first terminal equipment and this network access equipment; Determine whether to connect this first terminal equipment such as whether having precedence designation position or punishment flag bit etc.; And, the terminal equipment that more need insert is linked in the network access equipment, thereby further improved the utilance of network access equipment with the first terminal equipment access network.
In other specific embodiment; Network access equipment is after the judgement that executes above-mentioned steps 107; If the network traffic data in this occasional passage in the time window that presets be not 0 and network traffic data have not regulation; Can be earlier execution in step 108 not, but judge earlier and be linked into second above-mentioned in the terminal equipment of the network access equipment terminal equipment, if there is second terminal equipment current; Then can break off and being connected of this second terminal equipment that has inserted, and keep the temporary sign that is connected and removes this connection with first terminal equipment; If there is not second terminal equipment; Execution in step 108 to 110 further; Be connected in the process of network access equipment at first terminal equipment like this, can judge in the terminal equipment that has inserted, whether there is second terminal equipment, vacate linking number in real time.Wherein, if when having second terminal equipment that has inserted of above-mentioned condition, network access equipment can be provided with this precedence designation position of having inserted second terminal equipment, indicates in this second terminal equipment connection afterwards and can preferentially be linked into network access equipment.
Need to prove that above-mentioned method for network access can be applied to terminal equipment through in the process of network access equipment access network, also can be that terminal equipment passes through the performed method of hotspot in the process of hotspot access network etc.
The embodiment of the invention also provides a kind of network access equipment, can be equipment such as hotspot or wireless data cat, and structural representation is as shown in Figure 3, comprising:
Request receiving element 11 is used to receive the access request of first terminal equipment;
Switching units 12 is used for after request receiving element 11 receives the request of access, in the terminal equipment of accessed network access device, having second terminal equipment, and disconnection is connected with said second terminal equipment that has inserted; The time of the said second terminal equipment access network access device is greater than the time window that presets, and and said network access equipment between network traffic data have regularity; Or the time of the said second terminal equipment access network access device greater than the time window that presets, and and said network access equipment between network traffic data be 0;
Network insertion unit 13 is used for the first corresponding terminal equipment access network of access request that described request receiving element 11 is received.
In the network access equipment of the embodiment of the invention; After request receiving element 11 receives the access request of first terminal equipment; If when having second terminal equipment in the terminal equipment of accessed network access device; Switching units 12 breaks off and being connected of this second terminal equipment that has inserted, and by network insertion unit 13 with this first terminal equipment access network.Wherein, The time of the second terminal equipment access network access device is greater than the time window that presets; And the network traffic data between access back and the network access equipment has regularity or network traffic data is 0; Like this when the access request of new transmission; Network access equipment can withdraw from the time of can letting second terminal equipment that inserted not use in the free time and being connected of this network access equipment, and really has first terminal equipment that needs to insert and let, and can not use network owing to the terminal equipment of this network access equipment of access like this and insert the terminal equipment data of this network access equipment limited; And cause the new access request of initiating to pass through this network access equipment access network, thereby improved the utilization rate of network access equipment.
In a concrete embodiment; Network access equipment is except can comprising structure as shown in Figure 3; Can also comprise state recording unit 15, ignore unit 16, occasional passage is set up unit 17, occasional passage detecting unit 18 and passage switching units 19, wherein:
State recording unit 15; Be used to write down the network connection state information of the terminal equipment that inserts said network access equipment; Can comprise to second terminal equipment turn-on time TD and second terminal equipment and network access equipment between network traffic F comprise network traffic data and network signal flow, sign and the terminal equipment that can also comprise the duration T F that produces this network traffic, terminal equipment breaks off information such as the time point that is connected with network access equipment and disconnect cause.
This state recording unit 15 also is used to the precedence designation position of second terminal equipment that has inserted of switching units 12 disconnections; So that described request receiving element 11 is when receiving the access request of said second terminal equipment once more; Can preferentially said second terminal equipment that breaks off be linked into said network access equipment; And when the terminal equipment with precedence designation position is linked into network access equipment once more, remove the precedence designation position of this terminal equipment; And this state recording unit 15 can also be for having at least twice identically with reason that said network access equipment breaks off, and the terminal equipment that the number of times of initiating the request that inserts in the same time interval surpasses the preset gate limit value is provided with the punishment flag bit.
Ignore unit 16; Be used for when the terminal equipment that is inserting; When not having said second terminal equipment; According to the network connection state information of state recording unit 15 record, confirm to have the punishment flag bit and said access request meets the condition of ignoring when said first terminal equipment, ignore the access request that described request receiving element 11 receives.Wherein, the condition of ignoring is that terminal equipment has said punishment flag bit, and the access request of in the time of presetting, initiating in the same time interval.
Occasional passage is set up unit 17; Be used for network connection state information according to state recording unit 15 records; Confirm not have the punishment flag bit or said access request does not meet the condition of ignoring when said first terminal equipment; Occasional passage between foundation and said first terminal equipment, this occasional passage is meant the connection with temporary mark.This provisional communication is set up unit 17 and also is used for not meeting when ignoring condition when said first terminal equipment does not have punishment flag bit or said access request; Confirm earlier whether the terminal equipment quantity that this networking access device connects surpasses the threshold value that presets; If surpass, then can only be the occasional passage between the foundation and first terminal equipment.
Occasional passage detecting unit 18, the network traffic data that is used for said occasional passage is set up the occasional passage of setting up unit 17 detects.
Passage switching units 19, if be used for network traffic data that said occasional passage detecting unit 18 detects said occasional passage in the said time window that presets be 0 or said network traffic data have regularity, break off said occasional passage.
In the network access equipment of the embodiment of the invention, can write down each through state recording unit 15 and initiate to insert the network connection state information of the terminal equipment of request for this network access equipment.Then in concrete network insertion process:
After request receiving element 11 receives the request of access; If the turn-on time that has second terminal equipment that has inserted is greater than the time window that presets; And insert network traffic data between back and the network access equipment and be 0 or network traffic data have regularity; Can break off and being connected of this second terminal equipment that has inserted by switching units 12, and the precedence designation position of this second terminal equipment that has inserted correspondence is set by state recording unit 15; If there is not this second terminal equipment; If then first terminal equipment has the punishment flag bit and inserts and ask to meet the condition of ignoring; Then ignore unit 16 and ignore this access request; If first terminal equipment does not have the punishment flag bit or the request that inserts does not meet the condition of ignoring, then set up by occasional passage that unit 17 is set up and this first terminal equipment between occasional passage, or directly by network insertion unit 13 with this first terminal equipment access network.
If occasional passage is set up unit 17 and has been set up occasional passage; Then can detect this occasional passage by occasional passage detecting unit 18; If the network traffic data in the time window that presets in the occasional passage be 0 or network traffic data have regularity, then passage switching units 19 breaks off these occasional passages; If the network traffic data in the time window that presets in the occasional passage be not 0 or network traffic data have not regulation, then further:
If this first terminal equipment does not have the precedence designation position, passage switching units 19 can break off said occasional passage; If this first terminal equipment has the precedence designation position, and inserted in the terminal equipment of said network access equipment and do not had the 3rd terminal equipment that is later than the said occasional passage connect hours turn-on time, then broken off occasional passages by passage switching units 19.If there is the 3rd terminal equipment that is later than the said occasional passage connect hours turn-on time; Then broken off and being connected and keeping being connected between said and first terminal equipment of said the 3rd terminal equipment that has inserted by switching units 12, state recording unit 15 can remove the temporary mark of the occasional passage of foundation.
In another concrete embodiment; If in the time window that presets occasional passage set up the network traffic data in the occasional passage of setting up unit 17 be not 0 and network traffic data have not regulation; This network access equipment can be confirmed earlier in the current terminal equipment that has been linked into network access equipment; Whether there is the second above-mentioned terminal equipment; If there is second terminal equipment, then switching units 12 can break off and being connected of this second terminal equipment that has inserted, and keeps the temporary sign that is connected and removes this occasional passage connection with first terminal equipment; If there is not second terminal equipment, confirm just whether first terminal has the precedence designation position.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium, and storage medium can comprise: read-only memory (ROM), random-access memory (ram), disk or CD etc.
More than to method for network access and equipment that the embodiment of the invention provided; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.