A system and method for resource allocation in peer to peer streaming includes steps of: inferring global properties of a neighborhood made up of peer nodes, wherein the global properties are inferred from a summarization of information obtained locally at each peer node; allocating resources for each peer node to its neighbor nodes in accordance with propagated dependency information; and periodically updating the target rates as peer nodes join and leave the neighborhood.