| P2P network can effectively use the upload bandwidth resources of the nodes to cover the shortage of the server. It was applied to live streaming media system, and then P2P-TV formed. However P2P-TV still has many shortages from the perspective of the user experience, e.g., the video is low-resolution, not fluency, and often suspends without warning, which seriously affects the quality of viewing experience. The reason is that the upload bandwidth resources are not used efficiently, which leads to data transport delay and packet loss. Considering the problems as above, professionals in domestic and overseas had worked a lot on it. In this paper, we proposed an algorithm about the rate control based on the overflow of cache region.First of all, the paper introduced the concept and elementary systematic structure of wireless Mesh network and P2 P network, the characteristics of the streaming media and P2P-TV, and also the application status of P2P-TV. And the shortage of the HRC algorithm was then elaborated.Secondly, this paper proposed a new strategy to control the uploading rate by the feedback of data size in the cache. It sets a parameter named g0, then controls the data size in a certain range round. As the data size changes, the sliding window changes accordingly, and packet loss can be avoided effectively. Based on this, a new strategy named dynamic risk early warning was generated. This strategy can avoid the condition of the data underflow or overflow.Finally, this paper designed and realized the module of rate control under the P2 P live broadcast of the client, then conducted an experiment in local area network and used the simulation tool Peer Sim to test the strategy. The results showed that the algorithm proposed in this paper can reduce packet loss and improve the video quality effectively. |