Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly understand the application.Yet, not it will be clear to one skilled in the art that in there is no other execution mode of these details and can realize the application yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders the application's description.
Consult Fig. 1, Fig. 1 is the application's flow control methods one execution mode flow chart.The executive agent of present embodiment is host side, and wherein, host side is the terminal as access point, and link is the terminal of the described access point of access.In present embodiment, flow control methods comprises the following steps:
S101: host side is obtained the flow control policy information that user selects, wherein, described flow control strategy comprises that host side is preferential, link preferential, mean allocation, and described host side is the terminal as access point, and described link is the terminal of the described access point of access.
When mobile terminal is host side, while being set to WAP (wireless access point), link is searching the service set of this WAP (wireless access point) (Service Set Identifier, SSID) after, input correct access pin, just can be accessed by this WAP (wireless access point), and be connected to core network by this WAP (wireless access point), carry out Internet resources with host side and share.Wherein, link is the terminal of this WAP (wireless access point) of access, and the quantity of host side is one, and the quantity of link is at least one.WAP (wireless access point) can be WiFi access point, can be also other WAP (wireless access point).
When host side and link shared network resource, host side is obtained the flow control policy information that user selects according to user's self-demand.Wherein, flow control strategy comprises that host side is preferential, link preferential, mean allocation.
The preferential flow control strategy of host side is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth again for link.
The preferential flow control strategy of link is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have the remaining network bandwidth again for host side.
The flow control strategy of mean allocation is: the current available network bandwidth of host side and link mean allocation.
For example, when host side or link need to be carried out important network task, user can select the flow control strategy that host side is preferential or link is preferential, to guarantee the preferential important network task of carrying out.When there is no specific (special) requirements, user can select the flow control strategy of mean allocation, can meet the user's of host side and link demand simultaneously.
Be understandable that, in the present embodiment, flow control strategy comprises that host side is preferential, link preferential, mean allocation, but is not limited to this, and in other embodiments, flow control strategy can also comprise other methods of salary distribution.
S102: be host side and/or link distribution network bandwidth according to described flow control policy information.
Host side is host side and/or link distribution network bandwidth according to the flow control strategy comprising in the flow control policy information getting, thereby the network bandwidth that host side and/or link can be used be assigned to is carried out net task, wherein, link is the terminal of this WAP (wireless access point) of access.
For example, if the flow control strategy comprising in the flow control policy information that host side gets is that host side is preferential, host side by current available network bandwidth priority allocation to host side, to meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth, remaining available network bandwidth is distributed to link, for link, use.
If the flow control strategy comprising in the flow control policy information that host side gets is that link is preferential, host side by current available network bandwidth priority allocation to link, to meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have remaining available network bandwidth, remaining available network bandwidth is distributed to host side, for host side, use.
If the flow control strategy comprising in the flow control policy information that host side gets is mean allocation, host side is on average given host side and link by the current available network bandwidth, so that host side and link are used the network bandwidth being assigned to carry out network task.
Such scheme, the flow control policy information that host side is selected according to demand by receiving user, and by the current available network bandwidth, be host side and/or link according to the flow control strategy comprising in flow control policy information, thereby make it can use the bandwidth access core network being assigned to.Aforesaid way, can, according to user's request distribution network bandwidth, can, guaranteeing, under the prerequisite of user's request, to use in maximum efficiency the available network bandwidth, guarantee that the terminal of access network can both normally be used.
Consult Fig. 2, Fig. 2 is another execution mode flow chart of the application's flow control methods.The executive agent of present embodiment is host side, and wherein, host side is the terminal as access point, and link is the terminal of the described access point of access.In present embodiment, flow control methods comprises the following steps:
S201: host side arranges flow control strategy, wherein, described flow control strategy comprises that host side is preferential, link preferential, mean allocation.
Host side arranges flow control strategy, selects according to demand the flow control strategy needing for user.Wherein, flow control strategy comprises that host side is preferential, link preferential, mean allocation.
For example, when host side or link need to be carried out important network task, user can select the flow control strategy that host side is preferential or link is preferential, to guarantee the preferential important network task of carrying out.When there is no specific (special) requirements, user can select the flow control strategy of mean allocation, can meet the user's of host side and link demand simultaneously.
The preferential flow control strategy of host side is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth again for link.
The preferential flow control strategy of link is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have the remaining network bandwidth again for host side.
The flow control strategy of mean allocation is: the current available network bandwidth of host side and link mean allocation.
Be understandable that, in the present embodiment, flow control strategy comprises that host side is preferential, link preferential, mean allocation, but is not limited to this, and in other embodiments, flow control strategy can also comprise other methods of salary distribution.
S202: host side is obtained the flow control policy information that user selects, and wherein, described host side is the terminal as access point.
When mobile terminal is host side, while being set to WAP (wireless access point), link is searching the service set of this WAP (wireless access point) (Service Set Identifier, SSID) after, input correct access pin, just can be accessed by this WAP (wireless access point), and be connected to core network by this WAP (wireless access point), carry out Internet resources with host side and share.Wherein, link is the terminal of this WAP (wireless access point) of access, and the quantity of host side is one, and the quantity of link is at least one.WAP (wireless access point) can be WiFi access point, can be also other WAP (wireless access point).
When host side and link shared network resource, host side is obtained the flow control policy information that user selects according to user's self-demand.Wherein, flow control policy information comprises flow control strategy, and flow control strategy comprises that host side is preferential, link preferential, mean allocation.
S203: identical with the step S102 of a upper execution mode, refer to step S102 and the associated description of an execution mode, do not repeat herein.
S204: judgement has distributed the host side of the described network bandwidth or the network bandwidth whether link is using described distribution, if distributed the terminal of the described network bandwidth, do not use the described network bandwidth having distributed, the described network bandwidth having distributed is redistributed to the terminal that need to use the network bandwidth, wherein, described terminal belongs to the wherein one end in described host side or link.
Host side judges whether host side or the link of distribution network bandwidth are using the network bandwidth being assigned to, if the terminal of distribution network bandwidth is current, there is no to use the network bandwidth distributed, the network bandwidth of distributing to this terminal is redistributed to the terminal that need to use the network bandwidth to other, if the current network bandwidth having distributed that using of the terminal of distribution network bandwidth, keep current network data control strategy, do not change the network bandwidth having distributed.Wherein, current do not have to use the network bandwidth terminal of having distributed to belong to the wherein one end in host side or link, if current, not having to use the terminal of the network bandwidth having distributed is one of them terminal in link, the bandwidth priority allocation of distributing to this terminal need to be used to the terminal of the network bandwidth to other in link, after the needs of the use network bandwidth of the other-end in meeting link, again by remaining network bandwidth allocation to host side, thereby use in maximum efficiency the available network bandwidth.If current, there is no to use the terminal of the network bandwidth distributed is host side, by the allocated bandwidth of distributing to this terminal to the terminal that needs to use the network bandwidth in link.
For example, when flow control strategy is that host side is when preferential, host side judges whether host side is using the network bandwidth being assigned to, if the current network bandwidth that does not have use to distribute of terminal as host side, host side redistributes the network bandwidth of distributing to host side to the terminal as link, to be provided as the terminal of link, use, thereby realize, use in maximum efficiency the available network bandwidth, meet better the user's of link demand.
When flow control strategy is that link is when preferential, host side judges whether link is using the network bandwidth being assigned to, if the current network bandwidth that does not have use to distribute of any terminal as link, host side preferentially need to be used the terminal of the network bandwidth by the allocated bandwidth of distributing to this terminal to other in link, after the needs of the use network bandwidth of the other-end in meeting link, again remaining available network bandwidth is distributed to host side, to be provided as the terminal of host side, use, thereby can meet better the user's of link and host side demand, realize and use in maximum efficiency the available network bandwidth.Wherein, the quantity of the terminal of host side is one, the quantity of the terminal of link is at least one, the mode of redistributing the network bandwidth of distributing to the current terminal of not using the network bandwidth can Random assignment, it can be mean allocation, also can other modes such as priority allocation principle be set by user's request and distribute, not limit herein.
When flow control strategy is mean allocation, host side judges whether host side or link are using the network bandwidth being assigned to, if the current network bandwidth that does not have use to distribute of any terminal as host side or link, host side is averagely allocated to other all terminals in host side and link again by the network bandwidth of distributing to this terminal, for other-end, use, thereby realize and use in maximum efficiency the available network bandwidth, meet better the user's of host side and link demand.
S205: judge every the first Preset Time the network bandwidth of described terminal is used state whether to change, wherein, described network bandwidth use state comprises use state and idle condition, if the network bandwidth use state of described terminal changes, according to the network bandwidth use state of described terminal, adjust the network bandwidth.
Host side every the first Preset Time (for example, the first Preset Time is 15 minutes, but be not limited to this) judge the network bandwidth of the terminal of host side or link is used state whether to change, if the network bandwidth use state of the terminal of host side or link changes, according to the network bandwidth use state of this terminal, adjust the network bandwidth.If the network bandwidth use state of this terminal does not change, keep current flow control strategy, do not adjust the current network bandwidth.
Particularly, if the network bandwidth use state of the terminal of host side or link changes, judge whether to receive the network bandwidth use solicited message that other-end sends, if receive the network bandwidth, use solicited message, by the network bandwidth allocation of distributing to the terminal that network bandwidth use state changes to the terminal of sending solicited message, if receive the network bandwidth, do not use solicited message, keep current network data control strategy, do not change the network bandwidth having distributed.Wherein, network bandwidth use state comprises use state and idle condition, and terminal belongs to the wherein one end in host side or link.
If the terminal that network bandwidth use state changes is one of them terminal in link, and, the network bandwidth that host side receives the terminal transmission of host side and link is simultaneously used solicited message, host side by the network bandwidth priority allocation of distributing to this terminal to the other-end that sends the network bandwidth in link and use solicited message, in meeting link after the needs of the use network bandwidth of other-end, again the available network bandwidth allocation of residue is given and sent the host side that the network bandwidth is used solicited message, thereby use in maximum efficiency the available network bandwidth.
If the terminal that network bandwidth use state changes is host side, and, receive the network bandwidth that link sends and use solicited message, host side by the network bandwidth allocation of distributing to host side to the terminal of sending the network bandwidth in link and use solicited message.
For example, when flow control strategy is that host side is when preferential, host side judges the network bandwidth of host side is used state whether to change, if the network bandwidth use state of host side changes, judges whether to receive the network bandwidth use solicited message that link sends; If the network bandwidth of host side is used state not change, keep current flow control strategy, do not adjust the current network bandwidth.If host side judgement receives the network bandwidth use solicited message that link sends, the network bandwidth of distributing to host side is redistributed to the terminal of sending network bandwidth use solicited message in link, for this terminal, use; If host side judgement does not receive the network bandwidth use solicited message that link sends, keep current flow control strategy, do not adjust the current network bandwidth, thereby realize, use in maximum efficiency the available network bandwidth, meet better user's demand.
When flow control strategy is that link is when preferential, host side judges the network bandwidth of link is used state whether to change, if arbitrarily the network bandwidth use state of terminal changes in link, judge whether to receive the network bandwidth that other-end in link or host side send and use solicited message; If the network bandwidth of link is used state not change, keep current flow control strategy, do not adjust the current network bandwidth.If host side judgement receives the network bandwidth that other-end in link and host side send and uses solicited message simultaneously, the network bandwidth of the terminal that network bandwidth use state changes will be distributed to, preferentially redistribute to the other-end that sends network bandwidth use solicited message in link, if send the network bandwidth in meeting link, use after the network bandwidth user demand of other-end of solicited message, more remaining available network bandwidth is distributed to and sent the host side that the network bandwidth is used solicited message.If host side judgement receives only the network bandwidth use solicited message that the other-end in link sends, will distribute to the network bandwidth of the terminal that network bandwidth use state changes, redistribute to the other-end that sends the network bandwidth in link and use solicited message.If host side judgement receives only the network bandwidth that host side sends and uses solicited message,, by distributing to the network bandwidth of the terminal that network bandwidth use state changes, redistribute to host side.If host side judgement does not receive the network bandwidth and uses solicited message, keep current flow control strategy, do not adjust the current network bandwidth, thereby realize, use in maximum efficiency the available network bandwidth, meet better user's demand.
Wherein, the quantity of the terminal of host side is one, the quantity of the terminal of link is at least one, redistribute distribute to the mode of the network bandwidth of the current terminal of not using the network bandwidth in link can Random assignment, it can be mean allocation, also can other modes such as priority allocation principle be set by user's request and distribute, not limit herein.
When flow control strategy is mean allocation, host side judges the network bandwidth of host side and link is used state whether to change, if the network bandwidth use state of any terminal or host side changes in link, judge whether to receive the network bandwidth use solicited message that other-end sends; If the network bandwidth of host side and link is used state not change, keep current flow control strategy, do not adjust the current network bandwidth.If host side judgement receives the network bandwidth that other-end in link and host side send and uses solicited message simultaneously, will distribute to the network bandwidth of the terminal that network bandwidth use state changes, be averagely allocated to all terminals that the network bandwidth is used solicited message of sending.If host side judgement receives only the other-end in link or receives only the network bandwidth use solicited message that host side sends, the network bandwidth of the terminal that network bandwidth use state changes will be distributed to, distribute to and send the terminal that the network bandwidth is used solicited message, thereby realize and use in maximum efficiency the available network bandwidth, meet better user's demand.
Such scheme, the flow control policy information that host side is selected according to demand by receiving user, and by the current available network bandwidth, be host side and/or link according to the flow control strategy comprising in flow control policy information, after giving host side and/or link distribution network bandwidth, can also be by judging whether the terminal of distribution network bandwidth is using the network bandwidth being assigned to, and use state whether to change by the network bandwidth of terminal, thereby adjust the distribution condition of the network bandwidth, thereby intelligence is distribution network bandwidth reasonably, realize and use in maximum efficiency the available network bandwidth, satisfied user's demand better.
Consult Fig. 3, Fig. 3 is the application's flow control terminal one execution mode structural representation.In present embodiment, flow control terminal comprises acquisition module 310 and distribution module 320.
The flow control policy information that acquisition module 310 is selected for obtaining user, wherein, flow control strategy comprises that host side is preferential, link preferential, mean allocation, and host side is the terminal as access point, and link is the terminal of access access point.
Such as, when mobile terminal is host side, while being set to WAP (wireless access point), link is searching the service set of this WAP (wireless access point) (Service Set Identifier, SSID) after, input correct access pin, just accessible this WAP (wireless access point), and be connected to core network by this WAP (wireless access point), carry out Internet resources with host side and share.Wherein, link is the terminal of this WAP (wireless access point) of access, and the quantity of host side is one, and the quantity of link is at least one.WAP (wireless access point) can be WiFi access point, can be also other WAP (wireless access point).
When host side and link shared network resource, acquisition module 310 obtains the flow control policy information that user selects according to user's self-demand.Wherein, flow control strategy comprises that host side is preferential, link preferential, mean allocation.
The preferential flow control strategy of host side is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth again for link.
The preferential flow control strategy of link is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have the remaining network bandwidth again for host side.
The flow control strategy of mean allocation is: the current available network bandwidth of host side and link mean allocation.
For example, when host side or link need to be carried out important network task, user can select the flow control strategy that host side is preferential or link is preferential, to guarantee the preferential important network task of carrying out.When there is no specific (special) requirements, user can select the flow control strategy of mean allocation, can meet the user's of host side and link demand simultaneously.
Be understandable that, in the present embodiment, flow control strategy comprises that host side is preferential, link preferential, mean allocation, but is not limited to this, and in other embodiments, flow control strategy can also comprise other methods of salary distribution.
Acquisition module 310 sends to distribution module 320 by the flow control policy information getting.
Distribution module 320 is for receiving flow control policy information, and is host side and/or link distribution network bandwidth according to flow control policy information, and wherein, host side is the terminal as access point, and link is the terminal of the described access point of access.
Such as, distribution module 320 is host side and/or link distribution network bandwidth according to the flow control strategy comprising in the flow control policy information receiving, thereby the network bandwidth that host side and/or link can be used be assigned to is carried out net task, wherein, link is the terminal of this WAP (wireless access point) of access.
For example, if the flow control strategy comprising in the flow control policy information that distribution module 320 gets is that host side is preferential, distribution module 320 by current available network bandwidth priority allocation to host side, to meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth, remaining available network bandwidth is distributed to link, for link, use.
If the flow control strategy comprising in the flow control policy information that distribution module 320 gets is that link is preferential, distribution module 320 by current available network bandwidth priority allocation to link, to meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have remaining available network bandwidth, remaining available network bandwidth is distributed to host side, for host side, use.
If the flow control strategy comprising in the flow control policy information that distribution module 320 gets is mean allocation, distribution module 320 is on average given host side and link by the current available network bandwidth, so that host side and link are used the network bandwidth being assigned to carry out network task.
Such scheme, the flow control policy information that host side is selected according to demand by receiving user, and by the current available network bandwidth, be host side and/or link according to the flow control strategy comprising in flow control policy information, thereby make it can use the bandwidth access core network being assigned to.Aforesaid way, can, according to user's request distribution network bandwidth, can, guaranteeing, under the prerequisite of user's request, to use in maximum efficiency the network bandwidth, guarantee that the terminal of access network can both normally be used.
Consult Fig. 4, Fig. 4 is another execution mode structural representation of the application's flow control terminal.In present embodiment, flow control terminal comprises: module 410, acquisition module 420, distribution module 430, the first adjusting module 440, the second adjusting module 450 are set, wherein, the first adjusting module 440 comprises that the first judging unit 441 and the first adjustment unit 442, the second adjusting modules 450 comprise the second judging unit 451 and the second adjustment unit 452.
Module 410 is set for flow control strategy is set, wherein, flow control strategy comprises that host side is preferential, link preferential, mean allocation.Such as, module 410 is set flow control strategy is set, for user, select according to demand the flow control strategy needing.Wherein, flow control strategy comprises that host side is preferential, link preferential, mean allocation, and host side is the terminal as access point, and link is the terminal of access access point.The quantity of host side is one, and the quantity of link is at least one.WAP (wireless access point) can be WiFi access point, can be also other WAP (wireless access point).
For example, when host side or link need to be carried out important network task, user can select the flow control strategy that host side is preferential or link is preferential, to guarantee the preferential important network task of carrying out.When there is no specific (special) requirements, user can select the flow control strategy of mean allocation, can meet the user's of host side and link demand simultaneously.
The preferential flow control strategy of host side is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth again for link.
The preferential flow control strategy of link is: make the current available network bandwidth preferentially meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have the remaining network bandwidth again for host side.
The flow control strategy of mean allocation is: the current available network bandwidth of host side and link mean allocation.
Be understandable that, in the present embodiment, flow control strategy comprises that host side is preferential, link preferential, mean allocation, but is not limited to this, and in other embodiments, flow control strategy can also comprise other methods of salary distribution.
The flow control policy information that acquisition module 420 is selected for obtaining user, wherein, flow control policy information comprises flow control strategy, and flow control strategy comprises that host side is preferential, link preferential, mean allocation.
Such as, when mobile terminal is host side, while being set to WAP (wireless access point), link is searching the service set of this WAP (wireless access point) (Service Set Identifier, SSID) after, input correct access pin, just accessible this WAP (wireless access point), and be connected to core network by this WAP (wireless access point), carry out Internet resources with host side and share.Wherein, link is the terminal of this WAP (wireless access point) of access, and the quantity of host side is one, and the quantity of link is at least one.WAP (wireless access point) can be WiFi access point, can be also other WAP (wireless access point).
When host side and link shared network resource, acquisition module 420 obtains the flow control policy information that user selects according to user's self-demand.Wherein, flow control policy information comprises flow control strategy, and flow control strategy comprises that host side is preferential, link preferential, mean allocation.
Acquisition module 420 sends to distribution module 430 by the flow control policy information getting.
Distribution module 430 is for according to flow control policy information being host side and/or link distribution network bandwidth, and wherein, host side is the terminal as access point, and link is the terminal of the described access point of access.
Such as, such as, distribution module 430 is host side and/or link distribution network bandwidth according to the flow control strategy comprising in the flow control policy information receiving, thereby the network bandwidth that host side and/or link can be used be assigned to is carried out net task, wherein, link is the terminal of this WAP (wireless access point) of access.
For example, if the flow control strategy comprising in the flow control policy information that distribution module 430 gets is that host side is preferential, distribution module 430 by current available network bandwidth priority allocation to host side, to meet the demand of the use network bandwidth of host side, under the prerequisite of demand of the use network bandwidth that meets host side, if also have remaining available network bandwidth, remaining available network bandwidth is distributed to link, for link, use.
If the flow control strategy comprising in the flow control policy information that distribution module 430 gets is that link is preferential, distribution module 430 by current available network bandwidth priority allocation to link, to meet the demand of the use network bandwidth of link, under the prerequisite of demand of the use network bandwidth that meets link, if also have remaining available network bandwidth, remaining available network bandwidth is distributed to host side, for host side, use.
If the flow control strategy comprising in the flow control policy information that distribution module 430 gets is mean allocation, distribution module 430 is on average given host side and link by the current available network bandwidth, so that host side and link are used the network bandwidth being assigned to carry out network task.
Distribution module 430 sends to host side and/or link by the network bandwidth of distribution, so that host side and/or link are used the network bandwidth being assigned to carry out network task.
The first judging unit 441 is for judging the host side of distribution network bandwidth or the network bandwidth whether link is using distribution, and wherein, terminal belongs to the wherein one end in host side or link.
Such as, in distribution module 430, give after host side and/or link distributed the network bandwidth, the first judging unit 441 judges the host side of distribution network bandwidth or the network bandwidth whether link is using distribution, and wherein, terminal belongs to the wherein one end in host side or link.
The first judging unit 441 judges whether host side or the link of distribution network bandwidth are using the network bandwidth being assigned to.The first judging unit 441 sends to the first adjustment unit 442 by judged result.
The first adjustment unit 442 for, when the terminal of distribution network bandwidth does not have to use the network bandwidth having distributed, the network bandwidth having distributed is redistributed to the terminal that need to use the network bandwidth.Such as, the first adjustment unit 442 receives judged result, when judgment result is that the terminal of distribution network bandwidth is current and do not have to use the network bandwidth having distributed, the network bandwidth of distributing to this terminal is redistributed to the terminal that need to use the network bandwidth to other.When judgment result is that the current network bandwidth having distributed that using of terminal of distribution network bandwidth, keep current network data control strategy, do not change the network bandwidth having distributed.
Wherein, current do not have to use the terminal of the network bandwidth having distributed to belong to the wherein one end in host side or link, and the quantity of the terminal of host side is one, and the quantity of the terminal of link is at least one.When the first adjustment unit 442 is determined the current terminal that there is no a network bandwidth that use distributed for one of them terminal in link, the first adjustment unit 442 need to be used the terminal of the network bandwidth by the bandwidth priority allocation of distributing to this terminal to other in link, after the needs of the use network bandwidth of the other-end in meeting link, again by remaining network bandwidth allocation to host side, thereby use in maximum efficiency the available network bandwidth.The terminal that there is no to use the network bandwidth distributed when the first adjustment unit 442 is current is during for host side, the first adjustment unit 442 by the allocated bandwidth of distributing to this terminal to the terminal that needs to use the network bandwidth in link.
For example, when flow control strategy is that host side is when preferential, if judgment result is that the current network bandwidth that does not have use to distribute of terminal as host side, the first adjustment unit 442 redistributes the network bandwidth of distributing to host side to the terminal as link, to be provided as the terminal of link, use, thereby realize and use in maximum efficiency the available network bandwidth, meet better the user's of link demand.
When flow control strategy is that link is when preferential, if judgment result is that the current network bandwidth that does not have use to distribute of any terminal as link, the first adjustment unit 442 preferentially need to be used the terminal of the network bandwidth by the allocated bandwidth of distributing to this terminal to other in link, after the needs of the use network bandwidth of the other-end in meeting link, again remaining available network bandwidth is distributed to host side, to be provided as the terminal of host side, use, thereby can meet better the user's of link and host side demand, realize and use in maximum efficiency the available network bandwidth.Wherein, the quantity of the terminal of host side is one, the quantity of the terminal of link is at least one, the mode of redistributing the network bandwidth of distributing to the current terminal of not using the network bandwidth can Random assignment, it can be mean allocation, also can other modes such as priority allocation principle be set by user's request and distribute, not limit herein.
When flow control strategy is mean allocation, if judgment result is that the current network bandwidth that does not have use to distribute of any terminal as host side or link, the first adjustment unit 442 is averagely allocated to other all terminals in host side and link again by the network bandwidth of distributing to this terminal, for other-end, use, thereby realize and use in maximum efficiency the available network bandwidth, meet better the user's of host side and link demand.
The second adjusting module 450 is for judging every the first Preset Time the network bandwidth of terminal is used state whether to change, and wherein, network bandwidth use state comprises use state and idle condition; If the network bandwidth use state of terminal changes, according to the network bandwidth use state of terminal, adjust the network bandwidth.Wherein, when the second judging unit 451 changes for the network bandwidth use state when terminal, judge whether to receive the network bandwidth use solicited message that other-end sends.
Such as, the second judging unit 451 every the first Preset Time (for example, the first Preset Time is 15 minutes, but be not limited to this) judge the network bandwidth of the terminal of host side or link is used state whether to change, if the network bandwidth use state of the terminal of host side or link changes, judge whether to receive the network bandwidth use solicited message that other-end sends.Wherein, network bandwidth use state comprises use state and idle condition, and the terminal that network bandwidth use state changes belongs to the wherein one end in host side or link.
The second judging unit 451 sends to the second adjustment unit 452 by judged result.
The second adjustment unit 452 is for receiving judged result, when judgment result is that receiving the network bandwidth uses solicited message, by the network bandwidth allocation of distributing to this terminal to the terminal of sending solicited message.
Such as, the second adjustment unit 452 receives judged result, when the network bandwidth of the terminal that judgment result is that host side or link receiving is used state all not change, the second adjustment unit 452 keeps current flow control strategy, does not adjust the current network bandwidth.
When judgment result is that the network bandwidth use state of the terminal of host side or link changes, and when the network bandwidth that does not receive other-end transmission is used solicited message, the second adjustment unit 452 keeps current flow control strategy, does not adjust the current network bandwidth.
When judgment result is that the network bandwidth use state of the terminal of host side or link changes, and when receiving the network bandwidth that other-end sends and using solicited message, the second adjustment unit 452 by the network bandwidth allocation of distributing to the terminal that network bandwidth use state changes to the terminal of sending solicited message.Wherein,
When the second adjustment unit 452 determines that the terminal that network bandwidth use state changes is one of them terminal in link, and, when receiving the network bandwidth that the terminal of host side and link sends simultaneously and using solicited message, the second adjustment unit 452 by the network bandwidth priority allocation of distributing to this terminal to the other-end that sends the network bandwidth in link and use solicited message, in meeting link after the needs of the use network bandwidth of other-end, again the available network bandwidth allocation of residue is given and sent the host side that the network bandwidth is used solicited message, thereby use in maximum efficiency the available network bandwidth.
When the second adjustment unit 452 determines that the terminal that network bandwidth use state changes is host side, and, when receiving the network bandwidth that link sends and using solicited message, the second adjustment unit 452 by the network bandwidth allocation of distributing to host side to the terminal of sending the network bandwidth in link and use solicited message.
For example, the network bandwidth that judgment result is that host side or link receiving when the second adjustment unit 452 is used state not change, and when the network bandwidth that does not receive other-end transmission is used solicited message, the second adjustment unit 452 keeps current flow control strategy, does not adjust the current network bandwidth.
The network bandwidth use state that judgment result is that host side or link receiving when the second adjustment unit 452 changes, and when the network bandwidth that does not receive other-end transmission is used solicited message, the second adjustment unit 452 keeps current flow control strategy, does not adjust the current network bandwidth.
The network bandwidth use state that judgment result is that host side or link receiving when the second adjustment unit 452 changes, and when the network bandwidth that receives other-end transmission is used solicited message, the working condition of the second adjustment unit 452 is divided into following several (but being not limited to this):
When flow control strategy is that host side is when preferential, if the network bandwidth use state that judgment result is that host side that the second adjustment unit 452 receives changes, and receive the network bandwidth use solicited message that link sends, the second adjustment unit 452 redistributes the network bandwidth of distributing to host side to the terminal of sending network bandwidth use solicited message in link, for sending the network bandwidth, use the terminal of solicited message to use, thereby realize and use in maximum efficiency the available network bandwidth, meet better user's demand.
When flow control strategy is that link is when preferential, if the network bandwidth use state that judgment result is that any terminal in link that the second adjustment unit 452 receives changes, and receive the network bandwidth that other-end in link or host side send and use solicited message, when the second adjustment unit 452 determines that the network bandwidth that the other-end that receives in link and host side send is simultaneously used solicited message, the second adjustment unit 452 will be distributed to the network bandwidth of the terminal that network bandwidth use state changes, preferentially redistribute to the other-end that sends network bandwidth use solicited message in link, if sending the network bandwidth in meeting link uses after the network bandwidth user demand of other-end of solicited message, again remaining available network bandwidth is distributed to and sent the host side that the network bandwidth is used solicited message.When the second adjustment unit 452 determines that the network bandwidth of the other-end transmission receiving only in link is used solicited message, the second adjustment unit 452 will be distributed to the network bandwidth of the terminal that network bandwidth use state changes, redistributes to the other-end that sends the network bandwidth in link and use solicited message.When the second adjustment unit 452 is determined the network bandwidth use solicited message that receives only host side transmission, the second adjustment unit 452 will be distributed to the network bandwidth of the terminal that network bandwidth use state changes, redistribute to host side, thereby realize and use in maximum efficiency the available network bandwidth, meet better user's demand.
Wherein, the quantity of the terminal of host side is one, the quantity of the terminal of link is at least one, redistribute distribute to the mode of the network bandwidth of the current terminal of not using the network bandwidth in link can Random assignment, it can be mean allocation, also can other modes such as priority allocation principle be set by user's request and distribute, not limit herein.
When flow control strategy is mean allocation, if what the second adjustment unit 452 received judgment result is that, in link, the network bandwidth use state of any terminal or host side changes, and receive the network bandwidth use solicited message that other-end sends, when the second adjustment unit 452 determines that the network bandwidth that the other-end that simultaneously receives in link and host side send is used solicited message, the second adjustment unit 452 will be distributed to the network bandwidth of the terminal that network bandwidth use state changes, be averagely allocated to all terminals that the network bandwidth is used solicited message of sending.When the second adjustment unit 452, determine and receive only the other-end in link or receive only the network bandwidth use solicited message that host side sends, the second adjustment unit 452 will be distributed to the network bandwidth of the terminal that network bandwidth use state changes, distribute to and send the terminal that the network bandwidth is used solicited message, thereby realize and use in maximum efficiency the available network bandwidth, meet better user's demand.
Such scheme, the flow control policy information that host side is selected according to demand by receiving user, and by the current available network bandwidth, be host side and/or link according to the flow control strategy comprising in flow control policy information, after giving host side and/or link distribution network bandwidth, can also be by judging whether the terminal of distribution network bandwidth is using the network bandwidth being assigned to, and use state whether to change by the network bandwidth of terminal, thereby adjust the distribution condition of the network bandwidth, thereby intelligence is distribution network bandwidth reasonably, realize and use in maximum efficiency the available network bandwidth, satisfied user's demand better.
In more than describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly understand the application.Yet, not it will be clear to one skilled in the art that in there is no other execution mode of these details and can realize the application yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders the application's description.