Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a control system and method for controlling flow rate through each client.
The first technical scheme adopted by the invention is as follows:
a cloud storage network bandwidth control system comprises a server and a plurality of clients, wherein the server comprises a network storage module, a switch and a cloud mobile phone module, the switch is respectively connected with the network storage module and the cloud mobile phone module, and each client is connected with the cloud mobile phone module;
the network storage module is used for periodically sending the network bandwidth information to each client after acquiring the network bandwidth information;
and the client is used for controlling the network bandwidth of the client after receiving the network bandwidth information.
The second technical scheme adopted by the invention is as follows:
a cloud storage network bandwidth control method comprises the following steps:
and acquiring network bandwidth information, and periodically sending the network bandwidth information to each client so that each client performs flow control according to the network bandwidth information.
Further, the network bandwidth information includes electric port bandwidth information, idle bandwidth information and client occupied bandwidth information.
Further, the step of performing flow control by each client according to the network bandwidth information specifically includes:
a1, judging whether the idle bandwidth is larger than a first preset value or not, and if so, not controlling the flow; otherwise, executing the step A2;
a2, judging whether the flow control limit value of the client is smaller than a second preset value, if so, not controlling the flow; otherwise, executing the step A3;
a3, judging whether the bandwidth value occupied by the client is larger than a third preset value or not, and if so, reducing the flow control limit value of the client according to a preset mode; otherwise, no flow control is performed.
The third technical scheme adopted by the invention is as follows:
a cloud storage network bandwidth control method comprises the following steps:
and after receiving the network bandwidth information sent by the network storage module, carrying out flow control according to the network bandwidth information.
Further, the network bandwidth information includes electric port bandwidth information, idle bandwidth information and client occupied bandwidth information.
Further, the step of performing flow control according to the network bandwidth information specifically includes the following steps:
b1, judging whether the idle bandwidth is larger than a first preset value or not, and if so, not controlling the flow; otherwise, executing the step B2;
b2, judging whether the flow control limit value of the client is smaller than a second preset value or not, if so, not controlling the flow; otherwise, executing the step B3;
b3, judging whether the bandwidth value occupied by the client is larger than a third preset value or not, and if so, reducing the flow control limit value of the client according to a preset mode; otherwise, no flow control is performed.
The fourth technical scheme adopted by the invention is as follows:
a cloud storage network bandwidth control method comprises the following steps:
after the network storage module acquires the network bandwidth information, the network storage module periodically sends the network bandwidth information to each client;
and after receiving the network bandwidth information, each client controls the network bandwidth of the client.
Further, the network bandwidth information includes electric port bandwidth information, idle bandwidth information and client occupied bandwidth information.
Further, the step of performing flow control on the network bandwidth of the client specifically includes the following steps:
c1, judging whether the idle bandwidth is larger than a first preset value or not, and if so, not controlling the flow; otherwise, executing step C2;
c2, judging whether the flow control limit value of the client is smaller than a second preset value or not, and if so, not controlling the flow; otherwise, executing the step C3;
c3, judging whether the bandwidth value occupied by the client is larger than a third preset value or not, and if so, reducing the flow control limit value of the client according to a preset mode; otherwise, no flow control is performed.
The beneficial effects of the invention are: according to the invention, the network storage module is communicated with the client, the network storage module periodically acquires network bandwidth information and sends the network bandwidth information to each client, and each client controls the flow according to the received network bandwidth information, so that the read-write speed of the cloud mobile phone is controlled, the flow control can be realized without replacing a switch of a high-speed network, and the cost is greatly saved.
Detailed Description
Example one
As shown in fig. 1, the embodiment provides a cloud storage network bandwidth control system, which includes a server and a plurality of clients, where the server includes a network storage module, a switch and a cloud phone module, the switch is connected to the network storage module and the cloud phone module, and each client is connected to the cloud phone module;
the network storage module is used for periodically sending the network bandwidth information to each client after acquiring the network bandwidth information;
and the client is used for controlling the network bandwidth of the client after receiving the network bandwidth information.
The current flow control method is to control flow through a network algorithm of an advanced switch, and the method has very high requirements on network equipment. If the switch with insufficient level is deployed, the requirement for flow control is difficult to meet, so the embodiment provides a system independent of the switch network device, the network storage module and the client side are kept in communication, and the network storage module periodically acquires the network bandwidth information and sends the network bandwidth information to each client side. And each client controls the flow of the client according to the received network bandwidth information, so that the read-write speed of the cloud mobile phone is controlled. Under the condition of not carrying out flow control, one gigabit network can successfully start 6 game clients at most at the same time, and after carrying out flow control, 13-15 game clients can be successfully started at the same time, so that the utilization efficiency of the system is greatly improved. In addition, in the embodiment, the switch of the high-speed network is not required to be replaced, so that the cost is greatly saved.
When the client communicates with the network storage module, the network storage module establishes communication with the agent program in the client, and periodically sends the network bandwidth information to the client, specifically, the network storage module synchronously sends the network bandwidth information to the client once every 5 seconds. The cloud mobile phone module is a module arranged in the server and used for executing game data, specifically, a plurality of cloud mobile phones are deployed in the cloud mobile phone module, one cloud mobile phone corresponds to one client when in operation, and the client can be an intelligent terminal. In fig. 1, client 1 represents a first client, client 2 represents a second client, and client n represents an nth client.
Example two
As shown in fig. 2, the present embodiment provides a cloud storage network bandwidth control method, including the following steps:
s102, network bandwidth information is obtained and sent to each client periodically, so that each client can control flow according to the network bandwidth information. The network bandwidth information comprises electric port bandwidth information, idle bandwidth information and client occupied bandwidth information.
The method is executed by a network storage module, the network storage module keeps communication with the client, and network bandwidth information is acquired periodically and sent to each client. The network bandwidth information comprises electric port bandwidth information, idle bandwidth information and client occupied bandwidth information, the electric port bandwidth information is electric port bandwidth information reported by the switch, the idle bandwidth information is idle bandwidth information on the network storage module, the client occupied bandwidth information is bandwidth information occupied by each client, and the information network storage modules can be obtained only on the server. After each client receives the network bandwidth information, the network bandwidth condition of the current system and the network bandwidth condition used by the client are obtained through the network bandwidth information, and the network traffic of the client is controlled according to the obtained condition information, for example, when the network bandwidth is saturated, the client reduces the traffic bandwidth of the client. The embodiment performs flow control through each client, and does not need to adopt advanced network equipment for flow control, so that the existing deployed equipment does not need to be replaced, flow control can be realized, and cost is greatly saved. Under the condition of not carrying out flow control, at most 6 game clients can be successfully started by one gigabit network, and after the flow control is carried out, 13-15 game clients can be successfully started at the same time, so that the utilization efficiency of the system is greatly improved.
Further as a preferred embodiment, the step of performing flow control by each client according to the network bandwidth information specifically includes:
s11, judging whether the idle bandwidth is larger than a first preset value or not, and if so, not controlling the flow; otherwise, executing step S12;
s12, judging whether the flow control limit value of the client is smaller than a second preset value, if so, not controlling the flow; otherwise, executing step S13;
s13, judging whether the bandwidth value occupied by the client is larger than a third preset value or not, and if so, reducing the flow control limit value of the client according to a preset mode; otherwise, no flow control is performed.
After receiving the network bandwidth information, each client determines according to the network bandwidth information, and first determines whether the idle bandwidth is greater than a first preset value, if so, it is really considered that the network is smooth and the bandwidth is sufficient, flow control is not needed, and the first preset value is 300M in this embodiment. If the idle bandwidth is smaller than the first preset value, it is determined whether the flow control limit of the client is smaller than a second preset value, so that if the flow control limit of the client is too small, the playing effect of the client is directly affected, and therefore it is necessary to avoid that the flow control of the client is smaller than a certain value, in this embodiment, the second preset value is 200M. If the flow control limit of the client is greater than 200M, it is determined whether the bandwidth value occupied by the client is greater than a third preset value, and if so, it indicates that the practical bandwidth resource of the client is too much, and may affect other clients, so that flow control needs to be performed, where in this embodiment, the third preset value is 200M. Specifically, the reducing the flow control limit of the client according to the preset mode specifically includes: and reducing the flow control limit value of the client by 100M, and if the flow control limit value of the client is lower than 200M due to 100M reduction, directly reducing the flow control limit value of the client to 200M. The method is used for controlling the flow from the client, is suitable for the system with low switch level deployed in the prior art, is easy to realize and has low cost.
EXAMPLE III
As shown in fig. 3, this embodiment provides a cloud storage network bandwidth control method, which includes the following steps:
and S202, after receiving the network bandwidth information sent by the network storage module, carrying out flow control according to the network bandwidth information. Specifically, the network bandwidth information includes electric port bandwidth information, idle bandwidth information, and client occupied bandwidth information.
The method is executed by the client, the network storage module keeps communication with the client, network bandwidth information is acquired periodically and sent to each client. The network bandwidth information comprises electric port bandwidth information, idle bandwidth information and client occupied bandwidth information, the electric port bandwidth information is electric port bandwidth information reported by the switch, the idle bandwidth information is idle bandwidth information on the network storage module, the client occupied bandwidth information is bandwidth information occupied by each client, and the information network storage modules can be obtained only on the server. After each client receives the network bandwidth information, the network bandwidth condition of the current system and the network bandwidth condition used by the client are obtained through the network bandwidth information, and the network flow of the client is controlled according to the obtained condition information, for example, when the network bandwidth is saturated, the client reduces the flow bandwidth of the client. The embodiment performs flow control through each client, and does not need to adopt advanced network equipment for flow control, so that the existing deployed equipment does not need to be replaced, flow control can be realized, and cost is greatly saved. Under the condition of not carrying out flow control, at most 6 game clients can be successfully started by one gigabit network, and after the flow control is carried out, 13-15 game clients can be successfully started at the same time, so that the utilization efficiency of the system is greatly improved.
Further as a preferred embodiment, the step of performing flow control according to the network bandwidth information specifically includes the following steps:
s21, judging whether the idle bandwidth is larger than a first preset value or not, and if so, not controlling the flow; otherwise, executing step S22;
s22, judging whether the flow control limit value of the client is smaller than a second preset value, if so, not controlling the flow; otherwise, executing step S23;
s23, judging whether the bandwidth value occupied by the client is larger than a third preset value or not, and if so, reducing the flow control limit value of the client according to a preset mode; otherwise, no flow control is performed.
After receiving the network bandwidth information, each client determines according to the network bandwidth information, and first determines whether the idle bandwidth is greater than a first preset value, if so, it is deemed that the network is smooth and the bandwidth is sufficient, flow control is not needed, and the first preset value is 300M in this embodiment. If the idle bandwidth is smaller than the first preset value, it is determined whether the flow control limit of the client is smaller than a second preset value, so that if the flow control limit of the client is too small, the playing effect of the client is directly affected, and therefore it is necessary to avoid that the flow control of the client is smaller than a certain value, in this embodiment, the second preset value is 200M. If the flow control limit of the client is greater than 200M, it is determined whether the bandwidth value occupied by the client is greater than a third preset value, and if so, it indicates that the practical bandwidth resource of the client is too much, and may affect other clients, so that flow control needs to be performed, where in this embodiment, the third preset value is 200M. Specifically, the reducing the flow control limit of the client according to the preset mode specifically includes: and reducing the flow control limit value of the client by 100M, and if the flow control limit value of the client is lower than 200M due to 100M reduction, directly reducing the flow control limit value of the client to 200M. The method is used for controlling the flow from the client, is suitable for the system with low switch level deployed in the prior art, is easy to realize and has low cost.
Example four
As shown in fig. 4, this embodiment provides a cloud storage network bandwidth control method, which includes the following steps:
s302, after the network storage module obtains the network bandwidth information, the network storage module sends the network bandwidth information to each client regularly. The network bandwidth information comprises electric port bandwidth information, idle bandwidth information and client occupied bandwidth information.
And S304, after each client receives the network bandwidth information, the flow control is carried out on the network bandwidth of the client.
In this implementation, the network storage module maintains communication with the clients, and the network storage module periodically acquires network bandwidth information and sends the network bandwidth information to each client. The network bandwidth information comprises electric port bandwidth information, idle bandwidth information and client occupied bandwidth information, the electric port bandwidth information is electric port bandwidth information reported by the switch, the idle bandwidth information is idle bandwidth information on the network storage module, the client occupied bandwidth information is bandwidth information occupied by each client, and the information network storage modules can be obtained only on the server. After each client receives the network bandwidth information, the network bandwidth condition of the current system and the network bandwidth condition used by the client are obtained through the network bandwidth information, and the network flow of the client is controlled according to the obtained condition information, for example, when the network bandwidth is saturated, the client reduces the flow bandwidth of the client. The embodiment performs flow control through each client, and does not need to adopt advanced network equipment for flow control, so that the existing deployed equipment does not need to be replaced, flow control can be realized, and cost is greatly saved. Under the condition of not carrying out flow control, at most 6 game clients can be successfully started by one gigabit network, and after the flow control is carried out, 13-15 game clients can be successfully started at the same time, so that the utilization efficiency of the system is greatly improved.
Further as a preferred embodiment, the step of performing flow control on the network bandwidth of the client specifically includes the following steps:
s31, judging whether the idle bandwidth is larger than a first preset value or not, and if so, not controlling the flow; otherwise, step S32 is executed;
s32, judging whether the flow control limit value of the client is smaller than a second preset value, if so, not controlling the flow; otherwise, step S33 is executed;
s33, judging whether the bandwidth value occupied by the client is larger than a third preset value or not, and if so, reducing the flow control limit value of the client according to a preset mode; otherwise, no flow control is performed.
After receiving the network bandwidth information, each client determines according to the network bandwidth information, and first determines whether the idle bandwidth is greater than a first preset value, if so, it is deemed that the network is smooth and the bandwidth is sufficient, flow control is not needed, and the first preset value is 300M in this embodiment. If the idle bandwidth is smaller than the first preset value, it is determined whether the flow control limit of the client is smaller than a second preset value, so that if the flow control limit of the client is too small, the playing effect of the client is directly affected, and therefore it is necessary to avoid that the flow control of the client is smaller than a certain value, in this embodiment, the second preset value is 200M. If the flow control limit of the present client is greater than 200M, it is determined whether the bandwidth value occupied by the present client is greater than a third preset value, and if so, it indicates that the practical bandwidth resource of the present client is too much, which may affect other clients, and therefore flow control needs to be performed, where in this embodiment, the third preset value is 200M. Specifically, the reducing the flow control limit of the client according to the preset mode specifically includes: and reducing the flow control limit value of the client by 100M, and if the flow control limit value of the client is lower than 200M due to 100M reduction, directly reducing the flow control limit value of the client to 200M. The method performs flow control from the client, is suitable for the system with low switch level deployed in the prior art, is easy to realize and has low cost.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.