Embodiment
P2P flow media service processing system of the present invention is on the basis that keeps the unified administrative class server of existing the whole network; Divide a plurality of zones; Dispose for example miscellaneous service type of providing server such as content source server, channel portal server in each zone; And a comprehensive server is set in each zone, be used to manage node and miscellaneous service type of providing server in its region, and the unified interface of the server in conduct and other zone; Simultaneously Edge Server is also divided according to above-mentioned zone, and can in each zone, be increased or reduce Edge Server according to actual needs.In each zone of dividing; Each regional business type of providing server through Edge Server and above-mentioned configuration; Make client can in its region, realize the P2P streaming media service, thereby make operator meet the requirement that operator's needs are controlled and managed the P2P streaming media service P2P streaming media service district management; And can realize the flow regionization of P2P streaming media service, reduce the load of backbone network.Wherein dividing region can be that unit divides with the province according to existing network infrastructure; The client of each province all can realize the P2P streaming media service at this inside the province; Operator can be the operation that unit realizes the P2P streaming media service with the province, helps operator and carries out network design and ownership; Because the client of each province all realizes the P2P streaming media service at this inside the province, the flow that carries out the program data transmission all is limited in each inside the province simultaneously, has minimized the flow between each province, thereby has realized flow regionization, reduces the load of backbone network.
Fig. 1 is the structural representation of P2P flow media service processing system embodiment one of the present invention; As shown in Figure 1; This system comprises client 1, and user locating server 2 is positioned at comprehensive server 3, node index server 4, the Edge Server 5 of client 1 region.Wherein, in each zone of dividing, client 1 is a plurality of, and Edge Server 5 is a plurality of.A zone only is shown among Fig. 1, and the client 1 in should the zone only illustrates three, Edge Server 5 only illustrates two.Wherein, user locating server 2 belongs to the unified administrative class server of the whole network.
Client 1 is sent Location Request to user locating server 2, and user locating server 2 returns to client 1 with the address information of the comprehensive server 3 of client 1 region; Client 1 connects comprehensive server 3 according to the address information of comprehensive server 3, the legitimacy of comprehensive server 3 meeting checking clients 1 in this process; Client 1 is sent the program data request that comprises program identification information to comprehensive server 3; Comprehensive server 3 sends to node index server 4 with the program data request that receives; Wherein program identification information is the unique identification of program; It can be id number, and this id number can comprise program source numbering and program code, and program identification information has been kept in the client 1 in the present embodiment; Node index server 4 generates node listing according to program data request, and the node listing that generates is returned to comprehensive server 3, and comprehensive server 3 returns to client 1 with the node listing that receives again; Node in the node listing of client 1 and reception carries out the program data transmission, and the node in this node listing comprises Edge Server and other client.Wherein, For make carry out program data when transmission in this zone flow distribution more rationally and the load balancing of Edge Server; Can preestablish optimisation strategy; For example, this optimisation strategy can be preferential contiguous client and the relatively low Edge Server of selecting with the client of request program data of load in physical network position in the Edge Server that meets the program data transmission conditions at all and other client; Node index server 4 can generate node listing according to selecting the Edge Server 5 and client 1 that meets optimisation strategy program data request and optimisation strategy Edge Server 5 and other the client 1 in this zone when generating node listing; Then when carrying out the program data transmission; The client 1 of request program data can be carried out the program data transmission with Edge Server that meets optimisation strategy 5 and client 1; And in transmission course; Client 1 can preferentially connect other client 1, and when other client upload bandwidth were not enough, adjoining edge server 5 carried out the program data transmission again.Between each client 1 shown in Fig. 1 and and Edge Server 5 between annexation, be merely and carry out program data a kind of example in when transmission, and should not become restriction protection range of the present invention.
Fig. 2 is the structural representation of P2P flow media service processing system embodiment two of the present invention, and as shown in Figure 2, present embodiment has been set up the channel portal server 6 of client 1 region on the basis of embodiment one, and channel portal server 6 is connected with client 1.When the user when browsing the new program that this regional channel portal website discovery need watch, need at first click this program, the client of being landed by the user 1 is obtained the program identification information of this program.Client 1 is sent program identification to channel portal server 6 and is obtained request, and the program identification that channel portal server 6 receives client 1 transmission obtains request, and returns the program identification information of this program to client 1.
Further; When the program data that do not exist client 1 to be asked in the Edge Server in this zone 5; This system can also comprise the content source server 7 of client 1 region; Content source server 7 is connected with Edge Server 5 with comprehensive server 3 respectively, and comprehensive server 3 can be to content source server 7 request program datas.Client 1 is sent the program data request that comprises program identification information through comprehensive server 3 to node index server 4; If node index server 4 inquires the program data that does not have this program in the Edge Server 5 in this zone; Then node index server 4 notice comprehensive servers 3 do not have the program data of this program; Comprehensive server 3 sends program data request to content source server 7; Content source server 7 receives the program data request that comprehensive server 3 sends, and the program data burst is handed down to the Edge Server 5 in this zone; The lastest imformation that Edge Server 5 in this zone sends Edge Server to node index server 4; Node index server 4 new directory more after receiving the lastest imformation of Edge Server; Generate and to the tabulation of comprehensive server 3 return nodes, comprehensive server 3 returns to client 1 with the node listing that receives again.
Further; Operator controls and manages the P2P streaming media service for ease; This system also through set up authentication and authorization charging (Authentication, Authorization, Accounting, hereinafter to be referred as: AAA) authorization server 9 of server 8 and client 1 region is realized the function of authentication, mandate, charging.Behind user's logging on client 1, client 1 is at first accomplished the location through user locating server 2, obtains the address information of the comprehensive server 3 of this client 1 region; And connect comprehensive server 3 according to the address information of comprehensive server 3, at this moment, aaa server 8 can carry out authentication to client 1; Be specially; Client 1 is sent authentication request to comprehensive server 3, and comprehensive server 3 sends to aaa server 8 with the authentication request that receives, and 8 pairs of clients of aaa server 1 are carried out authentication; Pass through to comprehensive server 3 return authentications behind the authentication success, comprehensive server 3 passes through to client 1 return authentication.In addition; This system also possesses the function that mandate is chargeed through further setting up authorization server 9; Client 1 is sent the program authorization requests of carrying program identification information to comprehensive server 3, and comprehensive server 3 is resolved program identification information, and sends the program authorization requests to aaa server 8; Information inquiry goes out the authority that client 1 possesses the corresponding program of program identification information to aaa server 8 according to program identification, and sends the agent authorization request to authorization server 9, and request authorization server 9 is that client 1 is authorized; Authorization server 9 returns the program certificate of authority through the mandate to client 1 to client 1; Authorization server 9 sends to aaa server 8 and authorizes through notification message, and notice aaa server 8 begins to charge.By content source server 7 program data is being provided in the present embodiment, is promptly providing voluntarily under the situation of program data, by aaa server 8 unified chargings of the whole network by each zone; Aaa server is in the process of chargeing; Can note program identification information simultaneously, then can carry out the account clearing for each zone, that is to say by settlement center; What present embodiment adopted is by the unified charge of the whole network, then is the method for each zone clearing payment.Aaa server belongs to the unified administrative class server of the whole network in the present embodiment.
Fig. 3 is the structural representation of P2P flow media service processing system embodiment three of the present invention; As shown in Figure 3; Present embodiment has been set up another regional channel portal server 6 on the basis of embodiment one, in order to distinguish with the zone at client 1 place, client 1 region is made as the a-quadrant; Another zone is made as the B zone, and the channel portal server 6 in the B zone of then setting up is connected with the client 1 of a-quadrant.As user during at the new program that the channel portal website discovery of browsing B zone need be watched, need at first click this program, the client of being landed by the user 1 is obtained the program identification information of this program.Client 1 is obtained request to the channel portal server 6 transmission program identifications in B zone, and the program identification that the channel portal server 6 in B zone receives clients 1 transmission obtains request, and returns the program identification information of this program to client 1.
Further; When the program data that do not exist client 1 to be asked in the Edge Server in the a-quadrant 5; This system can also comprise the content source server 7 of a-quadrant, the comprehensive server 3 in B zone and the content source server 7 in B zone; The comprehensive server 3 in B zone is connected with the content source server 7 in B zone and the comprehensive server 3 of a-quadrant respectively, and the content source server 7 in B zone also is connected with the content source server 7 of a-quadrant.Client 1 is passed through the a-quadrant according to program identification information comprehensive server 3 sends program data request to node index server 4; If node index server 4 inquires the program data that does not have this program in the Edge Server 5 of a-quadrant; Then the comprehensive server 3 of node index server 4 notice a-quadrants does not have the program data of this program; If the comprehensive server of a-quadrant 3 goes out to inquire about in the content source server 7 of a-quadrant also the not program data of this program; Then the comprehensive server 3 of a-quadrant sends program data request through the comprehensive server 3 in B zone to the content source server 7 in B zone; The content source server 7 in B zone receives the program data request that comprehensive server 3 sends; And send program datas to the content source server of a-quadrant 7, the content source server 7 of a-quadrant with the program data burst that receives be handed down to the a-quadrant Edge Server 5; The lastest imformation that the Edge Server 5 of a-quadrant sends Edge Servers to node index server 4, node index server 4 new directory more after receiving the lastest imformation of Edge Server.
Further, operator controls and manages the P2P streaming media service for ease, and this system also realizes the function of authentication, mandate, charging through the authorization server 9 of setting up aaa server 8 and B zone.Behind user's logging on client 1; Client 1 is at first accomplished the location through user locating server 2; Obtain the address information of the comprehensive server 3 of this client 1 region; And connect comprehensive server 3 according to the address information of comprehensive server 3, and 8 pairs of clients of aaa server 1 are carried out authentication subsequently, and the process that 8 pairs of clients of aaa server 1 are carried out authentication is identical with embodiment two.In addition; This system also possesses through the authorization server 9 of setting up the B zone authorizes the function of chargeing; Client 1 is sent the program authorization requests that comprises program identification information to the comprehensive server 3 of a-quadrant; The comprehensive server 3 of a-quadrant is resolved program identification information, and sends the program authorization requests to aaa server 8; Information inquiry goes out the authority that client 1 possesses the corresponding program of program identification information to aaa server 8 according to program identification, and sends the agent authorization request to the authorization server 9 in B zone, and the authorization server 9 in request B zone is that client 1 is authorized; The authorization server 9 in B zone returns the program certificate of authority through the mandate to client 1 to client 1; The authorization server 9 in B zone sends to aaa server 8 and authorizes through notification message, and notice aaa server 8 begins to charge.In content source server 7 program data is provided in the present embodiment, promptly provides voluntarily under the situation of program data, by aaa server 8 unified chargings of the whole network by each zone by the B zone; Aaa server 8 can be noted program identification information simultaneously in the process of chargeing, then can carry out the account clearing for each zone by settlement center; That is to say; Present embodiment is identical with embodiment two, employing also be by the unified charge of the whole network, then be method that each zone clearing is paid.
Fig. 4 is the structural representation of P2P flow media service processing system embodiment four of the present invention, and as shown in Figure 4, this system has combined embodiment two and embodiment three on the basis of embodiment one.This system is made up of with business type of providing server, Edge Server and the client in each zone that is positioned at division the administrative class server of the whole network, and particularly, the administrative class server of the whole network comprises user locating server 2 and aaa server 8; Each zone comprises comprehensive server 3, channel portal server 6, authorization server 9, node index server 4, content source server 7, a plurality of Edge Server 5 and a plurality of client 1; Wherein Fig. 4 is an example with two zones in a-quadrant and B zone only; Edge Server 5 in each zone only illustrates two, and client 1 only illustrates three.The function of each server and client specifically can be referring to the description in the foregoing description one to embodiment three among Fig. 4.With the a-quadrant is example; The program data of asking when client 1 is stored in the content source server 7 of a-quadrant; And when not having this program data in the Edge Server 5; Content source server 7 is handed down to Edge Server 5 with this program data burst, makes client 1 realize the P2P streaming media service in its a-quadrant that is positioned at; The program data of asking when client 1 is stored in the content source server 7 in B zone; And when all not having this program data in the content source server 7 of Edge Server 5 and a-quadrant; The content source server 7 in B zone sends to this program data the content source server 7 of a-quadrant; Content source server 7 by the a-quadrant is handed down to Edge Server 5 with the program data burst, makes client 1 realize the P2P streaming media service in its a-quadrant that is positioned at.Operator can utilize the P2P flow media service processing system in the present embodiment to realize the operation of P2P streaming media service; Operator can realize subregion control and management to the P2P streaming media service, and this system has realized the flow regionization of P2P streaming media service.
P2P flow media service processing system of the present invention is through dividing a plurality of zones; Make client can in its region, realize the P2P streaming media service; Thereby make operator meet the requirement that operator's needs are controlled and managed the P2P streaming media service to P2P streaming media service district management; This system has also realized the flow regionization of P2P streaming media service, has minimized each interregional flow, thereby has reduced the load of backbone network; Each regional content source server all can provide program data, has solved that program data provides the source single problem in the prior art; In a zone, the node index server can select suitable client and Edge Server to generate node listing according to the optimisation strategy that is provided with in advance, thus the load of balanced each Edge Server and make the interior flow distribution in zone more reasonable; This system possesses the function of authentication and authorization charging, has further satisfied the needs that operator controls and manages the P2P streaming media service; This system adopts unified charging of aaa server by the whole network, and the method for then each zone being carried out the account clearing has realized the unified management of operator to account on the one hand, has also increased the actuating force of expanding business voluntarily in each zone on the other hand.
Fig. 5 is the flow chart of P2P streaming media service processing method embodiment one of the present invention, and as shown in Figure 5, this method comprises:
Step 101, client are obtained the address information of the comprehensive server of this client region from user locating server;
Step 102, client connect the comprehensive server of this client region according to the address information of comprehensive server;
Step 103, client are sent program data request through the node index server of comprehensive server to this client region of this client region, and this program data request comprises program identification information;
The node listing that step 104, client receiving node index server generate according to program data request and the comprehensive server through this client region returns;
In this step, the node index server inquires according to program data request and has the corresponding program data of program identification information in the Edge Server of this client region, therefore can directly return the node listing of generation to client.
Node in step 105, client and the node listing carries out the program data transmission, and the node in this node listing comprises Edge Server and other client of this client region.
After the present embodiment client positions through user locating server; Can in its region, realize the P2P streaming media service; Thereby make operator meet the requirement that operator's needs are controlled and managed the P2P streaming media service to P2P streaming media service district management; This method has also realized the flow regionization of P2P streaming media service, has minimized each interregional flow, thereby has reduced the load of backbone network.
Fig. 6 is the flow chart of P2P streaming media service processing method embodiment two of the present invention, and as shown in Figure 6, this method comprises:
Step 201, client are sent Location Request to user locating server;
Step 202, user locating server return to client with the address information of the comprehensive server of this client region;
Step 203, client connect the comprehensive server of this client region according to the address information of comprehensive server;
Step 204, client are sent authentication request through comprehensive server to aaa server;
Step 205, aaa server carry out authentication to client, pass through to the client return authentication through comprehensive server behind the authentication success;
Step 206, client are obtained request to the channel portal server transmission program identification of this client region;
The user clicks program through the channel door of client region, sends program identification by client to the channel portal server again and obtains request.
Step 207, channel portal server return program identification information to client;
Step 208, client are sent the program authorization requests to comprehensive server, and this program authorization requests comprises program identification information;
Step 209, comprehensive server are resolved program identification information, and send the program authorization requests to aaa server;
Information inquiry goes out the authority that client possesses the corresponding program of program identification information according to program identification for step 210, aaa server, and sends the agent authorization request to authorization server, and the request authorization server is a client authorization;
Step 211, authorization server pass through the mandate to client, and return the program certificate of authority to client;
Step 212, authorization server send to aaa server and authorize through notification message, and the notice aaa server begins to charge;
Step 213, client are sent program data request through comprehensive server to the node index server, and this program data request comprises program identification information;
Step 214, node index server inquire the program data that does not exist program identification information corresponding in the Edge Server, return notification message to comprehensive server, do not have the corresponding program data of program identification information in the notice comprehensive server Edge Server;
Step 215, comprehensive server send program data request to the content source server of this client region;
Step 216, content source server issue program data to Edge Server;
Content source server is handed down to the program data burst each Edge Server of this client region.
Step 217, Edge Server send the lastest imformation of Edge Server to the node index server;
Step 218, node index server generate node listing according to program data request, and return the node listing of generation to client through comprehensive server;
Node in step 219, client and the node listing carries out the program data transmission, and the node in this node listing comprises Edge Server and other client of this client region.
Present embodiment is provided the situation of program data for when not having the program data of client-requested in the Edge Server by the content source server of client region.On the basis of embodiment one, present embodiment is carrying out can realizing the authentication to client in the processing procedure to the P2P streaming media service, further satisfied the needs that operator controls and manages the P2P streaming media service.
The flow chart of Fig. 7 P2P streaming media service of the present invention processing method embodiment three, the zone at client place is the a-quadrant in the present embodiment, and another zone outside the client region is the B zone, and as shown in Figure 7, this method comprises:
Step 301, client are sent Location Request to user locating server;
Step 302, user locating server return to client with the address information of the comprehensive server of a-quadrant;
Step 303, client connect the comprehensive server of a-quadrant according to the address information of comprehensive server;
Step 304, client are sent authentication request through the comprehensive server of a-quadrant to aaa server;
Step 305, aaa server carry out authentication to client, and the comprehensive server through the a-quadrant behind the authentication success passes through to the client return authentication;
Step 306, client are obtained request to the channel portal server transmission program identification in B zone;
The user clicks program through client at the channel door in B zone, obtains request by the channel portal server transmission program identification of client to the B zone again.
The channel portal server in step 307, B zone returns program identification information to client;
Step 308, client are sent the program authorization requests to the comprehensive server of a-quadrant, and this program authorization requests comprises program identification information;
The comprehensive server of step 309, a-quadrant is resolved program identification information, and sends the program authorization requests to aaa server;
Information inquiry goes out the authority that client possesses the corresponding program of program identification information according to program identification for step 310, aaa server, and sends the agent authorization request to the authorization server in B zone, and the authorization server in request B zone is a client authorization;
The authorization server in step 311, B zone passes through the mandate to client, and returns the program certificate of authority to client;
The authorization server in step 312, B zone sends to aaa server and authorizes through notification message, and the notice aaa server begins to charge;
Step 313, client are sent program data request through the node index server of comprehensive server to the a-quadrant of a-quadrant, and this program data request comprises program identification information;
The node index server of step 314, a-quadrant inquires the program data that does not exist program identification information corresponding in the Edge Server; Comprehensive server to the a-quadrant returns notification message, does not have the corresponding program data of program identification information in the comprehensive server Edge Server of notice a-quadrant;
If the comprehensive server of step 315 a-quadrant inquires in the content source server of a-quadrant also the not program data of this program, then the comprehensive server of a-quadrant sends program data request through the comprehensive server in B zone to the content source server in B zone;
The comprehensive server of a-quadrant can be judged the content source server of program source for the B zone according to program identification information before sending program data request in this step.
The content source server in step 316, B zone is sent program data to the content source server of a-quadrant;
The content source server of step 317, a-quadrant issues program data to the Edge Server of a-quadrant;
The content source server of a-quadrant is handed down to the program data burst each Edge Server of a-quadrant.
The Edge Server of step 318, a-quadrant sends the lastest imformation of Edge Server to the node index server;
The node index server of step 319, a-quadrant generates node listing according to program data request, and returns the node listing of generation to client through the comprehensive server of a-quadrant;
Node in step 320, client and the node listing carries out the program data transmission, and the node in this node listing comprises Edge Server and other client of a-quadrant.
Present embodiment and embodiment two differences are, present embodiment another regional content source server of serving as reasons provides the situation of program data.Another regional content source server sends to the program data of client-requested the content source server of this client region; Content source server by this client region is handed down to Edge Server with program data, makes client can in its region, realize the P2P streaming media service.
The node index server can generate node listing according to program data request and optimisation strategy in the foregoing description one to embodiment three; This optimisation strategy can be preferential contiguous client and the relatively low Edge Server of selecting with the client of request program data of load in physical network position in the Edge Server that meets the program data transmission conditions at all and other client; The node index server is when generating node listing; Can generate node listing according to selecting Edge Server and the client that meets optimisation strategy program data request and the Edge Server of optimisation strategy in this zone and other the client.
P2P streaming media service processing method of the present invention makes client can in its region, realize the P2P streaming media service; Thereby make operator meet the requirement that operator's needs are controlled and managed the P2P streaming media service to P2P streaming media service district management; This method has also realized the flow regionization of P2P streaming media service, has minimized each interregional flow, thereby has reduced the load of backbone network; Each regional content source server all can provide program data, has solved that program data provides the source single problem in the prior art; In a zone, the node index server can select suitable client and Edge Server to generate node listing according to the optimisation strategy that is provided with in advance, thus the load of balanced each Edge Server and make the interior flow distribution in zone more reasonable; This method possesses the function of authentication and authorization charging, has further satisfied the needs that operator controls and manages the P2P streaming media service; This method adopts unified charging of aaa server by the whole network, and the method for then each zone being carried out the account clearing has realized the unified management of operator to account on the one hand, has also increased the actuating force of expanding business voluntarily in each zone on the other hand.
What should explain at last is: above embodiment is only in order to technical scheme of the present invention to be described but not limit it; Although the present invention has been carried out detailed explanation with reference to preferred embodiment; Those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, also can not make amended technical scheme break away from the spirit and the scope of technical scheme of the present invention and these are revised or be equal to replacement.