An efficient playout smoothing mechanism for layered streaming in P2P networks