Mode-suppression A simple and provably stable chunk sharing - - PowerPoint PPT Presentation

β–Ά
mode suppression a simple and provably stable chunk
SMART_READER_LITE
LIVE PREVIEW

Mode-suppression A simple and provably stable chunk sharing - - PowerPoint PPT Presentation

1 Mode-suppression A simple and provably stable chunk sharing algorithm for P2P networks Srinivas Shakkottai Texas A&M University Joint work with Vamseedhar Reddyvari (TAMU) and Parimal Parag (IISc) Peer to Peer Network 2 v P2P network


slide-1
SLIDE 1

Srinivas Shakkottai Texas A&M University Joint work with Vamseedhar Reddyvari (TAMU) and Parimal Parag (IISc)

1

Mode-suppression A simple and provably stable chunk sharing algorithm for P2P networks

slide-2
SLIDE 2

2

Peer to Peer Network

v P2P network offers many advantages

  • ver Client-Server approach
  • Scalability
  • Decrease the cost of distribution
  • Build robustness

v 30% of P2P traffic in Asia-Pacific region in 2016 v BitTorrent is the popular P2P application used for file sharing v Spotify uses a combination of client server and P2P for music streaming and downloads v Microsoft is using P2P for distributing Windows 10 updates

slide-3
SLIDE 3

3

Β§ File is divided into 𝑛 chunks Β§ New peers enter the system with no chunks Β§ Arrival process is Poisson(πœ‡) Β§ Peer leaves the system as soon as it receives all the chunks

P2P File sharing: System Model

Seed

πœ‡ 𝜈 𝑉

…

1,2, …….. ,m

v There always exists a seed that posseses all the chunks v Seed contacts a peer according to a Poisson(𝑉) contact process v Every peer contacts another peer(s) according to a Poisson(𝜈) contact process v Chunks are transmitted according to given chunk selection policy

…

1,2, …….. ,m

slide-4
SLIDE 4

4

Hajek’s – (In) Stability Result

Β§ The system is said to be stable for a given πœ‡ if the

Markov Chain is positive recurrent

Β§ In general if a peer selection is random then any "work

conserving” policy will be unstable if πœ‡>𝑉

Β§ Mendes, Towsley et.al observed that P2P networks

following the BitTorrent protocol show unstable behavior due to the formation of large One clubs.

Rarest First Policy: Find the list of useful chunks and among them select the chunk with least marginal chunk frequency

slide-5
SLIDE 5

5

Β§ An entering peer is likely to join the One club Β§ If a One club peer samples an infected peer, it will leave the system: the infected peers will not grow and One club keeps growing. Β§ System becomes unstable

Why Unstable? Missing Chunk Syndrome

One Club

New Peer Infected

Normal Young Peers

Seed

One Club: Group of peers which have all the chunks except

  • ne particular chunk

Infected Peers: Peers that posses the chunk that one club peers are missing

slide-6
SLIDE 6

6

Missing Chunk Syndrome in Simulations

One Club Formation

slide-7
SLIDE 7

7

Related Work

https://www.sandvine.com/trends/global-internet-phenomena/, 2016. [3] B. Hajek and J. Zhu, β€œThe missing piece syndrome in peer-to-peer communication,” in Information Theory Proceedings (ISIT), 2010 IEEE International Symposium on. IEEE, 2010, pp. 1748–1752. [4] D. X. Mendes, E. d. S. e Silva, D. Menasche, R. Leao, and D. Towsley, [1] 4713, 2012. [10] H. Reittu, β€œA stable random-contact algorithm for peer-to-peer file sharing.” in IWSOS. Springer, 2009, pp. 185–192. [11] I. Norros, H. Reittu, and T. Eirola, β€œOn the stability of two-chunk file-

sharing.” in IWSOS. Springer, 2009, pp. 185–192. [11] I. Norros, H. Reittu, and T. Eirola, β€œOn the stability of two-chunk file- sharing systems,” Queueing Systems, vol. 67, no. 3, pp. 183–206, 2011. [12] B. Oguz, V. Anantharam, and I. Norros, β€œStable distributed p2p pro-

sharing systems,” Queueing Systems, vol. 67, no. 3, pp. 183–206, 2011. [12] B. Oguz, V. Anantharam, and I. Norros, β€œStable distributed p2p pro- tocols based on random peer sampling,” IEEE/ACM Transactions on Networking (TON), vol. 23, no. 5, pp. 1444–1456, 2015. [13] O. Bilgen and A. Wagner, β€œA new stable peer-to-peer protocol with non- , vol. 23, no. 5, pp. 1444–1456, 2015. [13] O. Bilgen and A. Wagner, β€œA new stable peer-to-peer protocol with non- persistent peers,” in Proceedings of INFOCOM, 2017, pp. 1783–1790. [14] L. MassouliΒ΄ e and M. Vojnovic, β€œCoupon replication systems,”

International Symposium on. IEEE, 2010, pp. 1748–1752. [4] D. X. Mendes, E. d. S. e Silva, D. Menasche, R. Leao, and D. Towsley, β€œAn experimental reality check on the scaling laws of swarming sys- tems,” in Proceedings of INFOCOM, 2017, pp. 1647–1655. [5] D. Qiu and R. Srikant, β€œModeling and performance analysis of

[2] [3] [4] [5] [6]

slide-8
SLIDE 8

8

Β§ The idea behind the Group Suppression is to avoid the growth of One club peers Β§ In particular the peers in One club will not transfer chunks to new young peers if One club is large Β§ Has good sojourn time in general (although variable).

Group Suppression

Β§ A peer from the largest group should not give a chunk to any peer possessing fewer chunks than itself Β§ A seed should give chunks only to the most deprived peers

Sojourn Time : Sojourn time is the amount of time a peer spends in the system before leaving the system by receiving all the chunks

Group Suppression is stable for πœ‡>0 if 𝑛=2

slide-9
SLIDE 9

9

System Model

𝑛=3 π‘Œ(𝑒)=(0,1,2,0,0, 0, 1) 2= <0,1,0> 6= <1,1,0> 1= <0,0,1> 2= <0,1,0>

Β§ π‘ŒS(𝑒) denote number of peers with chunk profile 𝑇 Β§ State of the System at time 𝑒 is denoted by π‘Œ(𝑒) and is a vector

  • f length 2mβˆ’1 elements

Β§ The element at index 𝑗 is the number of peers with chunk profile corresponding to 𝑗. Β§ π‘Œ(𝑒)[𝑗]= X𝑇 (𝑒) where <S> = i Β§ Total number of peers in the system is |π‘Œ(𝑒)|=βˆ‘ π‘‘βŠ‚[𝑛]π‘ŒS(𝑒)

slide-10
SLIDE 10

10

Mode Suppression

D(𝑦)={2,5} D(𝑦)=𝜚 β„³(𝑦)={1,2,3,4,5} β„³(𝑦)={2,5}

Β§ In the first case if a peer with (0,0,0,0,0) 𝑛𝑓𝑓𝑒𝑑 (0,1,0,0,1) then no chunk transferred

Suppress chunks which are in the mode except when all the indices are in the mode

2 4 1 3 4 2 2 2 2 2

slide-11
SLIDE 11

11

Mode Suppression – Q Matrix

Β§ Let 𝐡(𝑦,𝐢,𝑇) be the set of allowed chunks from 𝐢 to 𝑇, then Where, A(x, B, S) = B\(S βˆͺ D(x))

βˆ€S : j / ∈ S; j / ∈ D(x), Q(x, TS,j(x)) = xS |x| ⇣ U |A(x, [m], S)| + Β΅ X

T :j∈T

xT |A(x, T, S)| ⌘ Q(x, x + eΟ†) = Ξ»

Chunk from Seed Chunk from other Peers

Seed

πœ‡ 𝜈 𝑉

… 1,2, …….. ,m

TS,j(x) = x βˆ’ e<S> if S βˆͺ j = [m] = x βˆ’ e<S> + e<S[j> o.w

slide-12
SLIDE 12

12

Stability of Mode Suppression

Β§ To prove the stability we need to prove that the Markov Chain is positive recurrent Β§ Proving positive recurrence directly is difficult in this case Β§ So, we employ Foster-Lyapunov criteria and come up with a Lyapunov function for which the drift is negative

| {z } | {z } Theorem 1 The stability region of the Mode Suppression Policy is > 0 if m β‰₯ 2, U > 0 and Β΅ > 0. (Foster-Lyapunov Criteria:) Suppose X(t) is irreducible and if there exists a function V : S β†’ R+ such that

  • 1. P

y6=x Q(x, y)(V (y) βˆ’ V (x)) ≀ βˆ’βœ

if x / ∈ F, and

  • 2. P

y6=x Q(x, y)(V (y) βˆ’ V (x)) ≀ K

if x ∈ F, for some ✏ > 0, K < ∞ and a bounded set F, then X(t) is positive recurrent.

slide-13
SLIDE 13

13

V (x) =

m

X

i=1

⇣ (⇑ βˆ’ ⇑i)|x| ⌘2 | {z }

L1

+ C1

  • (1 βˆ’ ⇑)
  • |x|

| {z }

L2

+ C2 ⇣ M βˆ’

m

X

i=1

⇑i|x| ⌘+ | {z }

L3

Foster - Lyapunov Criteria

Β§ The following Lyapunov Function will satisfy the Foster-Lyapunov criteria Β§ All are functions of state Β§ We need to show that that the drift is negative except in some finite set

slide-14
SLIDE 14

14

L2 decreases if increases. In Mode Suppression this will happen only when the marginal chunk frequencies is uniform

Intuition

Β§ Number of chunks in the system increases

| } + C2 ⇣ M βˆ’

m

X

i=1

⇑i|x| ⌘+ | {z }

L3

) =

m

X

i=1

⇣ (⇑ βˆ’ ⇑i)|x| ⌘2 | {z }

L1

+ C1

  • (1 βˆ’ ⇑)
  • |x|

| {z }

L2

+

Β§ L1 is the sum of differences in marginal chunk frequencies. Β§ Mode suppression increases but not if

Ο€i < Ο€ Ο€i Β― Ο€ Β― Ο€

slide-15
SLIDE 15

15

Progression of Mode Suppression

1 2 3 4 5 6

1 D(x) = {2, 3, 4, 5, 6}

1 2 3 4 5 6

2 D(x) = Ο†

1 2 3 4 5 6

3 D(x) = {5}

1 2 3 4 5 6

4 D(x) = {1, 2, 4, 5, 6}

1 2 3 4 5 6

5 D(x) = Ο†

slide-16
SLIDE 16

16

Threshold Mode Suppression

Β§ In MS any slight deviation from uniform marginal chunk frequency will result in suppression Β§ Though this is favorable for stability, this will not result in best sojourn times Β§ Is there a way to reduce the suppression of MS without compromising stability? Β§ Use a β€œnoisy” mode estimate: Threshold Mode Suppression(TMS) Β§ The idea of TMS is to suppress the modes only if they are abundant compared to least frequency chunks Β§ The set of indices suppressed in Threshold Mode Suppression are DT (x) = n k|⇑k(x) = ⇑(x), ⇑(x)|x| β‰₯ ⇑(x)|x| + T

slide-17
SLIDE 17

17

Threshold Mode Suppression

1 2 3 4 5 6

1 D(x) = {2, 3, 4, 5, 6} DT(x) = {2, 3, 4, 5, 6}

1 2 3 4 5 6

2 D(x) = Ο† DT(x) = Ο†

1 2 3 4 5 6

3 D(x) = {1, 2, 4, 5, 6} DT(x) = Ο†

v When π‘ˆ=1, TMS = Mode Suppression v When π‘ˆβ†’βˆž, TMS β†’ Random Chunk because there won’t be any suppression v Example when T=2

slide-18
SLIDE 18

18

TMS - Stability

Β§ Proof is using Foster-Lyapunov Criteria Β§ Same Lyapunov function works Β§ With the constant ​𝐷↓1 >(2π‘ˆβˆ’1)(π‘›βˆ’1)

Theorem 2 The stability region of Threshold Mode Suppression (TMS) is Ξ» > 0 for any finite threshold T < ∞, if m β‰₯ 2, Β΅ > 0 and U > 0.

V (x) =

m

X

i=1

⇣ (⇑ βˆ’ ⇑i)|x| ⌘2 | {z }

L1

+ C1

  • (1 βˆ’ ⇑)
  • |x|

| {z }

L2

+ C2 ⇣ M βˆ’

m

X

i=1

⇑i|x| ⌘+ | {z }

L3

C1

slide-19
SLIDE 19

19

Scaling of Sojourn Time with 𝝁

Β§ To prove this we use a Kingman moment bound

∞ β‰₯ Theorem 3 In Threshold Mode Suppression policy, as β†’ ∞,

  • 1. (Scaling of Number of Peers) the average number of peers (L) scales

linearly with .

  • 2. (Scaling of Sojourn time) the average sojourn time of the peers (W)

remains bounded and doesn’t scale with .

(Kingman Moment bound) Suppose V, f, and g are nonnegative func- tions of S, and suppose QV (i) ≀ βˆ’f(i) + g(i) for all i ∈ S. In addition, suppose X is positive recurrent, so that the means, Β― f = ⇑f and Β― g = ⇑g are well defined. Then Β― f ≀ Β― g.

slide-20
SLIDE 20

20

Heuristic Variants

Β§ Noise in calculating the mode is acceptable within limits (threshold mode suppression). Β§ Distributed Mode Suppression: Sample three peers and calculate mode using those three. Suppress mode as long as it appears in more than one peer. Β§ Exponentially Weighted Moving Average Mode Suppression: Sample only one peer each time. Build up a mode estimate by using historical chunk frequency information from each contacted peer with diminishing weights.

slide-21
SLIDE 21

21

Stability

=

slide-22
SLIDE 22

22

Performance

slide-23
SLIDE 23

23

Conclusions

Β§ Random Chunk & Rarest first policies are not stable at higher peer arrival rate and we need suppression for stability Β§ Came up with provably stable policies MS & TMS Β§ TMS has the right amount of suppression to provide stability and good sojourn times Β§ Developed a distributed version of MS and proved its stability when m=2 Β§ Proved that in TMS waiting time remains bounded even when πœ‡β†’βˆž

slide-24
SLIDE 24

24

Thank You Questions?