Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Referring to fig. 1, fig. 1 is a flow chart of an embodiment of a flow control method according to the present application. The main execution body of this embodiment is a host end, where the host end is a terminal serving as an access point, and the connection end is a terminal accessing the access point. In this embodiment, the flow control method includes the steps of:
s101: the method comprises the steps that a host end obtains flow control strategy information selected by a user, wherein the flow control strategy comprises host end priority, connection end priority and average distribution, the host end is a terminal used as an access point, and the connection end is a terminal accessed to the access point.
When the mobile terminal is a host and is Set as a wireless access point, the connection end inputs a correct access password after searching a Service Set Identifier (SSID) of the wireless access point, and then can access the wireless access point, connect to a core network through the wireless access point, and share network resources with the host. The wireless access point comprises a wireless access point, a host end and at least one connecting end, wherein the connecting end is a terminal accessed into the wireless access point, the number of the host end is one, and the number of the connecting ends is at least one. The wireless access point may be a WiFi access point, or may be another wireless access point.
When the host end and the connecting end share network resources, the host end acquires flow control strategy information selected by a user according to the user's own requirements. The flow control strategy comprises host side priority, connection end priority and average distribution.
The host-side priority flow control strategy is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the host end for using the network bandwidth, and on the premise of meeting the requirement of the host end for using the network bandwidth, if the residual available network bandwidth is available for the connecting end, the residual available network bandwidth is used again.
The preferential flow control strategy of the connecting end is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the connecting end for using the network bandwidth, and on the premise of meeting the requirement of the connecting end for using the network bandwidth, if the residual network bandwidth is available for the host side, the residual network bandwidth is available for the host side.
The flow control strategy for the average allocation is: the host side and the link side evenly distribute the currently available network bandwidth.
For example, when the host side or the connection side needs to execute important network tasks, the user can select the flow control strategy with the host side priority or the connection side priority to ensure that the important network tasks can be executed preferentially. When there is no special requirement, the user can select the flow control strategy of the average distribution, so as to meet the requirements of the users of the host side and the connection side at the same time.
It is understood that, in this embodiment, the flow control policy includes host side priority, connection side priority, and equal distribution, but is not limited thereto, and in other embodiments, the flow control policy may also include other distribution manners.
S102: and distributing network bandwidth for the host end and/or the connecting end according to the flow control strategy information.
And the host allocates network bandwidth to the host and/or the connecting end according to the flow control strategy contained in the acquired flow control strategy information, so that the host and/or the connecting end can execute network tasks by using the allocated network bandwidth, wherein the connecting end is a terminal accessed to the wireless access point.
For example, if the flow control policy contained in the flow control policy information acquired by the host side is the host side priority, the host side preferentially allocates the currently available network bandwidth to the host side to meet the requirement of the host side for using the network bandwidth, and if the remaining available network bandwidth exists on the premise of meeting the requirement of the host side for using the network bandwidth, the remaining available network bandwidth is allocated to the connection end to be used by the connection end.
If the flow control strategy contained in the flow control strategy information acquired by the host end is link-first, the host end allocates the currently available network bandwidth to the link end preferentially to meet the requirement of the link end for using the network bandwidth, and if the remaining available network bandwidth exists on the premise of meeting the requirement of the link end for using the network bandwidth, the remaining available network bandwidth is allocated to the host end to be used by the host end.
If the flow control strategy contained in the flow control strategy information acquired by the host side is distributed averagely, the host side averages the currently available network bandwidth to the host side and the connecting end so that the host side and the connecting end execute network tasks by using the distributed network bandwidth.
According to the scheme, the host side receives the flow control strategy information selected by the user according to the requirement, and uses the currently available network bandwidth as the host side and/or the connection end according to the flow control strategy contained in the flow control strategy information, so that the host side can access the core network by using the allocated bandwidth. By the method, the network bandwidth can be distributed according to the user requirements, the available network bandwidth can be used most efficiently on the premise of ensuring the user requirements, and the terminal accessed to the network can be ensured to be normally used.
Referring to fig. 2, fig. 2 is a flow chart of another embodiment of the flow control method of the present application. The main execution body of this embodiment is a host end, where the host end is a terminal serving as an access point, and the connection end is a terminal accessing the access point. In this embodiment, the flow control method includes the steps of:
s201: and setting a flow control strategy at the host side, wherein the flow control strategy comprises host side priority, connection end priority and average distribution.
The host end sets a flow control strategy so that a user can select the required flow control strategy according to the requirement. The flow control strategy comprises host side priority, connection end priority and average distribution.
For example, when the host side or the connection side needs to execute important network tasks, the user can select the flow control strategy with the host side priority or the connection side priority to ensure that the important network tasks can be executed preferentially. When there is no special requirement, the user can select the flow control strategy of the average distribution, so as to meet the requirements of the users of the host side and the connection side at the same time.
The host-side priority flow control strategy is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the host end for using the network bandwidth, and on the premise of meeting the requirement of the host end for using the network bandwidth, if the residual available network bandwidth is available for the connecting end, the residual available network bandwidth is used again.
The preferential flow control strategy of the connecting end is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the connecting end for using the network bandwidth, and on the premise of meeting the requirement of the connecting end for using the network bandwidth, if the residual network bandwidth is available for the host side, the residual network bandwidth is available for the host side.
The flow control strategy for the average allocation is: the host side and the link side evenly distribute the currently available network bandwidth.
It is understood that, in this embodiment, the flow control policy includes host side priority, connection side priority, and equal distribution, but is not limited thereto, and in other embodiments, the flow control policy may also include other distribution manners.
S202: and the host end acquires the flow control strategy information selected by the user, wherein the host end is a terminal serving as an access point.
When the mobile terminal is a host and is Set as a wireless access point, the connection end inputs a correct access password after searching a Service Set Identifier (SSID) of the wireless access point, and then can access the wireless access point, connect to a core network through the wireless access point, and share network resources with the host. The wireless access point comprises a wireless access point, a host end and at least one connecting end, wherein the connecting end is a terminal accessed into the wireless access point, the number of the host end is one, and the number of the connecting ends is at least one. The wireless access point may be a WiFi access point, or may be another wireless access point.
When the host end and the connecting end share network resources, the host end acquires flow control strategy information selected by a user according to the user's own requirements. The flow control strategy information comprises a flow control strategy, and the flow control strategy comprises host end priority, connection end priority and average distribution.
S203: similar to step S102 of the previous embodiment, please refer to step S102 and the related description of the previous embodiment, which are not repeated herein.
S204: judging whether a host end or a connection end which has allocated the network bandwidth is using the allocated network bandwidth, if the terminal which has allocated the network bandwidth does not use the allocated network bandwidth, reallocating the allocated network bandwidth to a terminal which needs to use the network bandwidth, wherein the terminal belongs to one end of the host end or the connection end.
The host side judges whether the host side or the connection end which has been allocated with the network bandwidth is using the allocated network bandwidth, if the terminal which has been allocated with the network bandwidth does not use the allocated network bandwidth currently, the network bandwidth which has been allocated to the terminal is reallocated to other terminals which need to use the network bandwidth, if the terminal which has been allocated with the network bandwidth is using the allocated network bandwidth currently, the current network data control strategy is kept, and the allocated network bandwidth is not changed. If the terminal which does not use the allocated network bandwidth is one of the connection ends, the bandwidth allocated to the terminal is preferentially allocated to the other terminals needing to use the network bandwidth in the connection ends, and after the requirement of the other terminals in the connection ends on using the network bandwidth is met, the rest network bandwidth is allocated to the host end, so that the available network bandwidth is used most efficiently. And if the terminal which does not use the allocated network bandwidth is the host terminal, allocating the bandwidth allocated to the terminal needing to use the network bandwidth in the connection terminal.
For example, when the flow control policy is the priority of the host side, the host side determines whether the host side is using the allocated network bandwidth, and if the terminal as the host side does not currently use the allocated network bandwidth, the host side reallocates the network bandwidth already allocated to the host side to the terminal as the connection end for the terminal as the connection end to use, thereby realizing the most efficient use of the available network bandwidth and better meeting the requirements of the user of the connection end.
When the flow control strategy is that the connection end is prior, the host end judges whether the connection end uses the allocated network bandwidth, if any terminal as the connection end does not use the allocated network bandwidth currently, the host end preferentially allocates the bandwidth allocated to the terminal to other terminals in the connection end which need to use the network bandwidth, and after the requirement of the other terminals in the connection end on using the network bandwidth is met, the remaining available network bandwidth is allocated to the host end to be used as the terminal of the host end, so that the requirements of users at the connection end and the host end can be better met, and the available network bandwidth can be used most efficiently. The number of the terminals at the host end is one, the number of the terminals at the connection end is at least one, and the method of reallocating the network bandwidth allocated to the terminal which does not use the network bandwidth at present may be randomly allocated, may be evenly allocated, and may also be allocated in other manners such as setting a priority allocation principle according to the user requirement, which is not limited herein.
When the flow control strategy is average allocation, the host end judges whether the host end or the connection end uses the allocated network bandwidth, if any terminal serving as the host end or the connection end does not currently use the allocated network bandwidth, the host end re-averagely allocates the network bandwidth allocated to the terminal to the host end and all other terminals in the connection end for the use of other terminals, so that the available network bandwidth is used most efficiently, and the requirements of users at the host end and the connection end are better met.
S205: judging whether the network bandwidth using state of the terminal is changed every first preset time, wherein the network bandwidth using state comprises a using state and an idle state, and if the network bandwidth using state of the terminal is changed, adjusting the network bandwidth according to the network bandwidth using state of the terminal.
The host side judges whether the network bandwidth usage state of the terminal of the host side or the connection side changes every first preset time (for example, the first preset time is 15 minutes, but is not limited thereto), and if the network bandwidth usage state of the terminal of the host side or the connection side changes, the network bandwidth is adjusted according to the network bandwidth usage state of the terminal. If the network bandwidth using state of the terminal is not changed, the current flow control strategy is maintained, and the current network bandwidth is not adjusted.
Specifically, if the network bandwidth usage state of the host side or the terminal at the connection end changes, it is determined whether network bandwidth usage request information sent by another terminal is received, if the network bandwidth usage request information is received, the network bandwidth allocated to the terminal whose network bandwidth usage state changes is allocated to the terminal that sent the request information, and if the network bandwidth usage request information is not received, the current network data control policy is maintained without changing the allocated network bandwidth. The network bandwidth using state comprises a using state and an idle state, and the terminal belongs to one of the host end or the connecting end.
If the terminal with the changed network bandwidth use state is one of the terminals in the connection end, and the host end simultaneously receives the network bandwidth use request information sent by the terminals of the host end and the connection end, the host end preferentially allocates the network bandwidth allocated to the terminal to the other terminals sending the network bandwidth use request information in the connection end, and after the requirement of the other terminals in the connection end for using the network bandwidth is met, the remaining available network bandwidth is allocated to the host end sending the network bandwidth use request information, so that the available network bandwidth is used most efficiently.
If the terminal with the changed network bandwidth use state is the host side and receives the network bandwidth use request information sent by the connecting end, the host side allocates the network bandwidth allocated to the host side to the terminal sending the network bandwidth use request information in the connecting end.
For example, when the flow control policy is the priority of the host, the host judges whether the network bandwidth use state of the host changes, and if the network bandwidth use state of the host changes, judges whether the network bandwidth use request information sent by the connection end is received; if the network bandwidth use state of the host end is not changed, the current flow control strategy is kept, and the current network bandwidth is not adjusted. If the host judges that the network bandwidth use request information sent by the connecting end is received, the network bandwidth which is already distributed to the host is redistributed to the terminal which sends the network bandwidth use request information in the connecting end for the terminal to use; if the host judges that the network bandwidth use request information sent by the connecting end is not received, the current flow control strategy is kept, and the current network bandwidth is not adjusted, so that the available network bandwidth is used most efficiently, and the requirements of users are better met.
When the flow control strategy is that the connection end is prior, the host end judges whether the network bandwidth use state of the connection end is changed, and if the network bandwidth use state of any terminal in the connection end is changed, whether the network bandwidth use request information sent by other terminals in the connection end or the host end is received is judged; if the network bandwidth using state of the connecting end is not changed, the current flow control strategy is maintained, and the current network bandwidth is not adjusted. If the host judges that the network bandwidth use request information sent by other terminals in the connecting end and the host is received at the same time, the network bandwidth which is already allocated to the terminal with the changed network bandwidth use state is preferentially reallocated to other terminals sending the network bandwidth use request information in the connecting end, and if the network bandwidth use requirements of other terminals sending the network bandwidth use request information in the connecting end are met, the residual available network bandwidth is allocated to the host sending the network bandwidth use request information. If the host side judges that only the network bandwidth use request information sent by other terminals in the connecting end is received, the network bandwidth which is already allocated to the terminal with the changed network bandwidth use state is reallocated to other terminals sending the network bandwidth use request information in the connecting end. If the host judges that only the network bandwidth use request information sent by the host is received, the network bandwidth which is already allocated to the terminal with the changed network bandwidth use state is reallocated to the host. If the host judges that the network bandwidth use request information is not received, the current flow control strategy is kept, and the current network bandwidth is not adjusted, so that the available network bandwidth is used most efficiently, and the requirements of users are better met.
The number of the terminals at the host end is one, the number of the terminals at the connection end is at least one, and the method of reallocating the network bandwidth allocated to the terminal which does not use the network bandwidth currently at the connection end may be randomly allocated, may be evenly allocated, and may also be allocated in other manners such as setting a priority allocation principle according to a user requirement, which is not limited herein.
When the flow control strategy is average distribution, the host end judges whether the network bandwidth use states of the host end and the connecting end are changed, and if the network bandwidth use states of any terminal in the connecting end or the host end are changed, whether the network bandwidth use request information sent by other terminals is received is judged; if the network bandwidth use state of the host end and the connecting end is not changed, the current flow control strategy is kept, and the current network bandwidth is not adjusted. If the host judges that the network bandwidth use request information sent by other terminals in the connecting end and the host is received at the same time, the network bandwidth which is distributed to the terminal with the changed network bandwidth use state is evenly distributed to all the terminals sending the network bandwidth use request information. If the host judges that only other terminals in the connecting end or only network bandwidth use request information sent by the host is received, the network bandwidth which is already allocated to the terminal with the changed network bandwidth use state is allocated to the terminal sending the network bandwidth use request information, so that the available network bandwidth is used most efficiently, and the requirements of users are better met.
According to the scheme, the host receives the flow control strategy information selected by the user according to the requirement, the currently available network bandwidth is used as the host and/or the connecting end according to the flow control strategy contained in the flow control strategy information, after the network bandwidth is distributed to the host and/or the connecting end, the distribution condition of the network bandwidth can be adjusted by judging whether the terminal with the distributed network bandwidth is using the distributed network bandwidth or not and judging whether the network bandwidth using state of the terminal is changed or not, so that the network bandwidth is intelligently and reasonably distributed, the available network bandwidth is used most efficiently, and the requirement of the user is better met.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a flow control terminal according to the present application. In this embodiment, the flow control terminal includes an obtaining module 310 and an allocating module 320.
The obtaining module 310 is configured to obtain information of a flow control policy selected by a user, where the flow control policy includes a host terminal priority, a connection terminal priority, and an average distribution, the host terminal is a terminal serving as an access point, and the connection terminal is a terminal accessing the access point.
For example, when the mobile terminal is a host and is Set as a wireless access point, the connection end inputs a correct access password after searching a Service Set Identifier (SSID) of the wireless access point, and can access the wireless access point, connect to a core network through the wireless access point, and share network resources with the host. The wireless access point comprises a wireless access point, a host end and at least one connecting end, wherein the connecting end is a terminal accessed into the wireless access point, the number of the host end is one, and the number of the connecting ends is at least one. The wireless access point may be a WiFi access point, or may be another wireless access point.
When the host end and the connection end share network resources, the obtaining module 310 obtains the flow control policy information selected by the user according to the user's own requirements. The flow control strategy comprises host side priority, connection end priority and average distribution.
The host-side priority flow control strategy is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the host end for using the network bandwidth, and on the premise of meeting the requirement of the host end for using the network bandwidth, if the residual available network bandwidth is available for the connecting end, the residual available network bandwidth is used again.
The preferential flow control strategy of the connecting end is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the connecting end for using the network bandwidth, and on the premise of meeting the requirement of the connecting end for using the network bandwidth, if the residual network bandwidth is available for the host side, the residual network bandwidth is available for the host side.
The flow control strategy for the average allocation is: the host side and the link side evenly distribute the currently available network bandwidth.
For example, when the host side or the connection side needs to execute important network tasks, the user can select the flow control strategy with the host side priority or the connection side priority to ensure that the important network tasks can be executed preferentially. When there is no special requirement, the user can select the flow control strategy of the average distribution, so as to meet the requirements of the users of the host side and the connection side at the same time.
It is understood that, in this embodiment, the flow control policy includes host side priority, connection side priority, and equal distribution, but is not limited thereto, and in other embodiments, the flow control policy may also include other distribution manners.
The obtaining module 310 sends the obtained flow control policy information to the allocating module 320.
The allocating module 320 is configured to receive the flow control policy information, and allocate a network bandwidth to a host end and/or a connection end according to the flow control policy information, where the host end is a terminal serving as an access point, and the connection end is a terminal accessing the access point.
For example, the allocating module 320 allocates a network bandwidth to the host side and/or the connection side according to the flow control policy included in the received flow control policy information, so that the host side and/or the connection side can perform a network task using the allocated network bandwidth, where the connection side is a terminal accessing the wireless access point.
For example, if the flow control policy included in the flow control policy information acquired by the allocating module 320 is host-side-preferred, the allocating module 320 allocates the currently available network bandwidth to the host side preferentially to meet the requirement of the host side for using the network bandwidth, and if there is remaining available network bandwidth on the premise of meeting the requirement of the host side for using the network bandwidth, the remaining available network bandwidth is allocated to the connection end for the connection end to use.
If the flow control policy contained in the flow control policy information acquired by the allocating module 320 is link-first, the allocating module 320 allocates the currently available network bandwidth to the link preferentially to meet the requirement of the link for using the network bandwidth, and if there is remaining available network bandwidth on the premise of meeting the requirement of the link for using the network bandwidth, the remaining available network bandwidth is allocated to the host for the host to use.
If the flow control policy contained in the flow control policy information acquired by the allocating module 320 is an average allocation, the allocating module 320 averages the currently available network bandwidth to the host side and the connection side, so that the host side and the connection side execute network tasks using the allocated network bandwidth.
According to the scheme, the host side receives the flow control strategy information selected by the user according to the requirement, and uses the currently available network bandwidth as the host side and/or the connection end according to the flow control strategy contained in the flow control strategy information, so that the host side can access the core network by using the allocated bandwidth. By the method, the network bandwidth can be distributed according to the user requirements, the network bandwidth can be used with the maximum efficiency on the premise of ensuring the user requirements, and the terminal accessed to the network can be ensured to be normally used.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of the flow control terminal of the present application. In this embodiment, the flow control terminal includes: the setting module 410, the obtaining module 420, the allocating module 430, the first adjusting module 440, and the second adjusting module 450, wherein the first adjusting module 440 includes a first determining unit 441 and a first adjusting unit 442, and the second adjusting module 450 includes a second determining unit 451 and a second adjusting unit 452.
The setting module 410 is configured to set a flow control policy, where the flow control policy includes host-side priority, connection-side priority, and equal distribution. For example, the setting module 410 sets the flow control policy, so that the user can select the required flow control policy according to the requirement. The flow control strategy comprises a host terminal priority, a connection terminal priority and an average distribution, wherein the host terminal is a terminal used as an access point, and the connection terminal is a terminal accessed to the access point. The number of the host end is one, and the number of the connecting ends is at least one. The wireless access point may be a WiFi access point, or may be another wireless access point.
For example, when the host side or the connection side needs to execute important network tasks, the user can select the flow control strategy with the host side priority or the connection side priority to ensure that the important network tasks can be executed preferentially. When there is no special requirement, the user can select the flow control strategy of the average distribution, so as to meet the requirements of the users of the host side and the connection side at the same time.
The host-side priority flow control strategy is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the host end for using the network bandwidth, and on the premise of meeting the requirement of the host end for using the network bandwidth, if the residual available network bandwidth is available for the connecting end, the residual available network bandwidth is used again.
The preferential flow control strategy of the connecting end is as follows: the currently available network bandwidth is made to preferentially meet the requirement of the connecting end for using the network bandwidth, and on the premise of meeting the requirement of the connecting end for using the network bandwidth, if the residual network bandwidth is available for the host side, the residual network bandwidth is available for the host side.
The flow control strategy for the average allocation is: the host side and the link side evenly distribute the currently available network bandwidth.
It is understood that, in this embodiment, the flow control policy includes host side priority, connection side priority, and equal distribution, but is not limited thereto, and in other embodiments, the flow control policy may also include other distribution manners.
The obtaining module 420 is configured to obtain flow control policy information selected by a user, where the flow control policy information includes a flow control policy, and the flow control policy includes host end priority, link end priority, and average distribution.
For example, when the mobile terminal is a host and is Set as a wireless access point, the connection end inputs a correct access password after searching a Service Set Identifier (SSID) of the wireless access point, and can access the wireless access point, connect to a core network through the wireless access point, and share network resources with the host. The wireless access point comprises a wireless access point, a host end and at least one connecting end, wherein the connecting end is a terminal accessed into the wireless access point, the number of the host end is one, and the number of the connecting ends is at least one. The wireless access point may be a WiFi access point, or may be another wireless access point.
When the host end and the connection end share network resources, the obtaining module 420 obtains the flow control policy information selected by the user according to the user's own requirements. The flow control strategy information comprises a flow control strategy, and the flow control strategy comprises host end priority, connection end priority and average distribution.
The obtaining module 420 sends the obtained flow control policy information to the allocating module 430.
The allocating module 430 is configured to allocate a network bandwidth to a host end and/or a connection end according to the flow control policy information, where the host end is a terminal serving as an access point, and the connection end is a terminal accessing the access point.
For example, the allocating module 430 allocates a network bandwidth to the host side and/or the connection side according to the flow control policy contained in the received flow control policy information, so that the host side and/or the connection side can perform a network task using the allocated network bandwidth, where the connection side is a terminal accessing the wireless access point.
For example, if the flow control policy included in the flow control policy information acquired by the allocating module 430 is host-side-preferred, the allocating module 430 allocates the currently available network bandwidth to the host side preferentially to meet the requirement of the host side for using the network bandwidth, and if there is remaining available network bandwidth on the premise of meeting the requirement of the host side for using the network bandwidth, the remaining available network bandwidth is allocated to the connection end for the connection end to use.
If the flow control policy contained in the flow control policy information acquired by the allocating module 430 is link-first, the allocating module 430 allocates the currently available network bandwidth to the link preferentially to meet the requirement of the link for using the network bandwidth, and if there is remaining available network bandwidth on the premise of meeting the requirement of the link for using the network bandwidth, the remaining available network bandwidth is allocated to the host for the host to use.
If the flow control policy contained in the flow control policy information acquired by the allocating module 430 is an average allocation, the allocating module 430 averages the currently available network bandwidth to the host side and the connection side, so that the host side and the connection side execute the network task using the allocated network bandwidth.
The distribution module 430 sends the distributed network bandwidth to the host side and/or the connection side to enable the host side and/or the connection side to perform network tasks using the distributed network bandwidth.
The first determining unit 441 is configured to determine whether a host side or a connection side to which a network bandwidth is allocated uses the allocated network bandwidth, where a terminal belongs to the host side or the connection side.
For example, after the allocating module 430 allocates the network bandwidth to the host side and/or the connection side, the first determining unit 441 determines whether the host side or the connection side to which the network bandwidth has been allocated is using the allocated network bandwidth, wherein the terminal belongs to one of the host side or the connection side.
The first judgment unit 441 judges whether the host side or the connection side to which the network bandwidth has been allocated is using the allocated network bandwidth. The first determining unit 441 sends the determination result to the first adjusting unit 442.
The first adjusting unit 442 is configured to reallocate the allocated network bandwidth to a terminal that needs to use the network bandwidth when the terminal that has allocated the network bandwidth does not use the allocated network bandwidth. For example, the first adjusting unit 442 receives the determination result, and when the determination result indicates that the terminal that has been allocated with the network bandwidth does not currently use the allocated network bandwidth, reallocates the network bandwidth that has been allocated to the terminal to another terminal that needs to use the network bandwidth. And when the judgment result is that the terminal with the allocated network bandwidth is currently using the allocated network bandwidth, keeping the current network data control strategy and not changing the allocated network bandwidth.
The terminals which do not use the allocated network bandwidth currently belong to one of a host terminal and a connection terminal, the number of the terminals of the host terminal is one, and the number of the terminals of the connection terminal is at least one. When the first adjusting unit 442 determines that the terminal that does not currently use the allocated network bandwidth is one of the connected terminals, the first adjusting unit 442 preferentially allocates the bandwidth allocated to the terminal to the other terminals that need to use the network bandwidth among the connected terminals, and allocates the remaining network bandwidth to the host side after the requirement of the other terminals in the connected terminals for using the network bandwidth is met, so as to use the available network bandwidth most efficiently. When a terminal that does not currently use the allocated network bandwidth by the first adjusting unit 442 is the host terminal, the first adjusting unit 442 allocates the bandwidth allocated to the terminal to a terminal that needs to use the network bandwidth among the connection terminals.
For example, when the flow control policy is prioritized by the host, if the terminal as the host does not currently use the allocated network bandwidth as a result of the determination, the first adjusting unit 442 reallocates the network bandwidth already allocated to the host to the terminal as the connection end for the terminal as the connection end to use, thereby achieving the most efficient use of the available network bandwidth and better meeting the user's requirements of the connection end.
When the flow control policy is connection-side-first, if the determination result is that any terminal serving as a connection side does not currently use the allocated network bandwidth, the first adjusting unit 442 preferentially allocates the bandwidth allocated to the terminal to other terminals in the connection side that need to use the network bandwidth, and after the requirement for using the network bandwidth by other terminals in the connection side is met, allocates the remaining available network bandwidth to the host side for use by the terminal serving as the host side, so that the requirements of users at the connection side and the host side can be better met, and the maximum efficient use of the available network bandwidth is realized. The number of the terminals at the host end is one, the number of the terminals at the connection end is at least one, and the method of reallocating the network bandwidth allocated to the terminal which does not use the network bandwidth at present may be randomly allocated, may be evenly allocated, and may also be allocated in other manners such as setting a priority allocation principle according to the user requirement, which is not limited herein.
When the flow control policy is equal distribution, if the determined result is that any terminal as the host side or the connection side does not currently use the allocated network bandwidth, the first adjusting unit 442 redistributes the network bandwidth already allocated to the terminal to all other terminals in the host side and the connection side for use by the other terminals, so as to achieve the purpose of using the available network bandwidth most efficiently, and better meet the requirements of users at the host side and the connection side.
The second adjusting module 450 is configured to determine whether a network bandwidth usage state of the terminal changes every first preset time, where the network bandwidth usage state includes a usage state and an idle state; and if the network bandwidth using state of the terminal is changed, adjusting the network bandwidth according to the network bandwidth using state of the terminal. Wherein, the second judging unit 451 is configured to judge whether network bandwidth usage request information transmitted by other terminals is received when the network bandwidth usage status of the terminal changes.
For example, the second determining unit 451 determines whether the network bandwidth usage state of the terminal of the host end or the connection end is changed every first preset time (for example, the first preset time is 15 minutes, but is not limited thereto), and if the network bandwidth usage state of the terminal of the host end or the connection end is changed, determines whether the network bandwidth usage request information transmitted by the other terminal is received. The network bandwidth using state comprises a using state and an idle state, and the terminal with the changed network bandwidth using state belongs to one of the host end or the connecting end.
The second judgment unit 451 sends the judgment result to the second adjustment unit 452.
The second adjusting unit 452 is configured to receive the determination result, and when the determination result is that the network bandwidth usage request information is received, allocate the network bandwidth that has been allocated to the terminal that sent the request information.
For example, the second adjusting unit 452 receives the determination result, and when the received determination result indicates that the network bandwidth usage state of the host end or the terminal of the connection end is not changed, the second adjusting unit 452 maintains the current flow control policy and does not adjust the current network bandwidth.
When the determination result is that the network bandwidth usage state of the host terminal or the terminal at the connection end changes and does not receive the network bandwidth usage request information sent by other terminals, the second adjusting unit 452 maintains the current flow control policy and does not adjust the current network bandwidth.
When the determination result is that the network bandwidth usage state of the host terminal or the terminal of the connection end changes and network bandwidth usage request information transmitted by other terminals is received, the second adjusting unit 452 allocates the network bandwidth, which has been allocated to the terminal whose network bandwidth usage state has changed, to the terminal that issued the request information. Wherein,
when the second adjusting unit 452 determines that the terminal whose network bandwidth usage status changes is one of the terminals in the connection end, and receives the network bandwidth usage request information sent by the host end and the terminals in the connection end at the same time, the second adjusting unit 452 preferentially allocates the network bandwidth allocated to the terminal to the other terminals sending the network bandwidth usage request information in the connection end, and after the requirement of the other terminals in the connection end for using the network bandwidth is met, allocates the remaining available network bandwidth to the host end sending the network bandwidth usage request information, thereby using the available network bandwidth most efficiently.
When the second adjusting unit 452 determines that the terminal whose network bandwidth usage state changes is the host side and receives the network bandwidth usage request information sent by the connection side, the second adjusting unit 452 allocates the network bandwidth that has been allocated to the host side to the terminal that sent the network bandwidth usage request information in the connection side.
For example, when the second adjusting unit 452 receives a determination result that the network bandwidth usage state of the host side or the connection end is not changed and does not receive the network bandwidth usage request information sent by another terminal, the second adjusting unit 452 maintains the current traffic control policy and does not adjust the current network bandwidth.
When the second adjusting unit 452 receives a determination result that the network bandwidth usage state of the host side or the connection side is changed and does not receive the network bandwidth usage request information sent by another terminal, the second adjusting unit 452 maintains the current traffic control policy and does not adjust the current network bandwidth.
When the second adjusting unit 452 receives the judgment result that the network bandwidth usage status of the host side or the connection side changes and receives the network bandwidth usage request information sent by other terminals, the operation conditions of the second adjusting unit 452 are divided into the following (but not limited to):
when the flow control policy is the priority of the host, if the second adjusting unit 452 receives the determination result that the network bandwidth usage state of the host changes and receives the network bandwidth usage request information sent by the connection end, the second adjusting unit 452 reallocates the network bandwidth allocated to the host to the terminal sending the network bandwidth usage request information in the connection end, so as to be used by the terminal sending the network bandwidth usage request information, thereby implementing the most efficient use of the available network bandwidth and better satisfying the user's requirement.
When the flow control policy is connection priority, if the second adjusting unit 452 receives a determination result that the network bandwidth usage status of any terminal in the connections changes, and receives network bandwidth use request information transmitted from other terminals in the connection terminal or the host terminal, when the second adjusting unit 452 determines that the network bandwidth use request information transmitted by the other terminals in the connection terminal and the host terminal at the same time is received, the second adjusting unit 452 reallocates the network bandwidth, which has been allocated to the terminal whose network bandwidth usage state has changed, preferentially to the other terminal of the connection terminals from which the network bandwidth usage request information is issued, if the network bandwidth usage requirement of the other terminal which issues the network bandwidth usage request information in the connection terminal is satisfied, and distributing the residual available network bandwidth to the host side sending out the network bandwidth use request information. When the second adjusting unit 452 determines that only the network bandwidth usage request information transmitted by the other terminals in the connection terminals is received, the second adjusting unit 452 reallocates the network bandwidth, which has been allocated to the terminal whose network bandwidth usage state has changed, to the other terminals in the connection terminals that issued the network bandwidth usage request information. When the second adjusting unit 452 determines that only the network bandwidth usage request information sent by the host is received, the second adjusting unit 452 reallocates the network bandwidth allocated to the terminal with the changed network bandwidth usage state to the host, thereby achieving the purpose of using the available network bandwidth with maximum efficiency and better satisfying the user's requirement.
The number of the terminals at the host end is one, the number of the terminals at the connection end is at least one, and the method of reallocating the network bandwidth allocated to the terminal which does not use the network bandwidth currently at the connection end may be randomly allocated, may be evenly allocated, and may also be allocated in other manners such as setting a priority allocation principle according to a user requirement, which is not limited herein.
When the flow control policy is equal allocation, if the second adjusting unit 452 receives a determination result that the network bandwidth usage state of any terminal or host in the connection end changes and receives the network bandwidth usage request information sent by other terminals, when the second adjusting unit 452 determines that the network bandwidth usage request information sent by other terminals and host in the connection end is received at the same time, the second adjusting unit 452 evenly allocates the network bandwidth allocated to the terminal whose network bandwidth usage state has changed to all terminals that send the network bandwidth usage request information. When the second adjusting unit 452 determines that only other terminals in the connection end are received or only the network bandwidth usage request information sent by the host end is received, the second adjusting unit 452 allocates the network bandwidth allocated to the terminal whose network bandwidth usage status is changed to the terminal that sent the network bandwidth usage request information, thereby achieving the purpose of using the available network bandwidth most efficiently and better meeting the user's requirements.
According to the scheme, the host receives the flow control strategy information selected by the user according to the requirement, the currently available network bandwidth is used as the host and/or the connecting end according to the flow control strategy contained in the flow control strategy information, after the network bandwidth is distributed to the host and/or the connecting end, the distribution condition of the network bandwidth can be adjusted by judging whether the terminal with the distributed network bandwidth is using the distributed network bandwidth or not and judging whether the network bandwidth using state of the terminal is changed or not, so that the network bandwidth is intelligently and reasonably distributed, the available network bandwidth is used most efficiently, and the requirement of the user is better met.
In the description above, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.