Presentation is loading. Please wait.

Presentation is loading. Please wait.

Streaming in Peer-to-peer Networks 2002/1/2. Outline The problem Assumption Network model / Node Construction –Flood-broadcast –Tail-broadcast –Leave-broadcast.

Similar presentations


Presentation on theme: "Streaming in Peer-to-peer Networks 2002/1/2. Outline The problem Assumption Network model / Node Construction –Flood-broadcast –Tail-broadcast –Leave-broadcast."— Presentation transcript:

1 Streaming in Peer-to-peer Networks 2002/1/2

2 Outline The problem Assumption Network model / Node Construction –Flood-broadcast –Tail-broadcast –Leave-broadcast Simulation Future work

3 The Problem Given a graph G = (V,E) with order- vertexes and a distinguished source vertex s, we find a way to connect all the vertexes without violating the order, which means we have to connect the smaller order vertexes before the larger ones. Constraints: –Minimize the maximum of order-difference –Minimize the sum of order-difference –Minimize the construction cost

4 An Example 1 6 4 5 2 3 1 6 4 5 2 3 1 6 4 5 2 3 1 6 4 5 2 3 Step 1Step 2Step 3Step 4 MAX : 2 SUM : 1+2+2 1 2 1 2 Order-difference: ID – Max(Children’s ID)

5 Assumption Without messages, all nodes knows nothing about other nodes’ condition except the paths to connect to its neighbor nodes. Only in-stream nodes can actively tell other nodes to join the stream. If a node receives a message, it can directly response the message or forward the message to its neighbors according to the message’s TTL attribute.

6 Network Model Distributing n nodes across a Cartesian coordinate grid. The edge probability function is,where d(u,v) is the Euclidean distance, L is the maximum possible distance between two nodes.

7 A Graph Example

8 Node A node has following attributes: –(x,y) –Neighbor nodes’ ID –ID (also used as joined order) –Stream parent ID –Stream child IDs (order-difference) –Message parent ID –Message TTL –The sent messages number

9 Construction The ways to connect all the nodes: –Flood-broadcast –Tail-broadcast –Leave-broadcast

10 Flood-broadcast Every node in the stream can broadcast messages to all its neighbor nodes. 1 6 4 5 2 3 1 6 4 5 2 3

11 Tail-broadcast Only the lastly in-stream nodes can broadcast messages. 1 6 4 5 2 3 Tail-1 case 1 6 4 5 2 3 Tail-2 case 1 6 4 5 2 3

12 Leaves-broadcast Only the non-child nodes can broadcast messages. 1 6 4 5 2 3 1 6 4 5 2 3

13 Leaves-broadcast Vs. Tail-broadcast (1) Tail-broadcast has local problem and does not spread well. Leaves-broadcast has a trend to result in a tree graph but at the same time occurs larger maximum and sum of order-difference.

14 Leaves-broadcast Vs. Tail-broadcast (2) 1n-1n … i j n+1 Tail-broadcast 1n-1n … i j n+1 Leave-broadcast

15 How to Simulation (1) Main loop : for i = 1 to NUM_OF_NODES do ResetMessageParent() SetBroadcastNodes(BROADCASTWAY) SetInStream()

16 How to Simulation (2) ResetMessageParent() : –Reset every node’s message server to null (clear history) –To avoid broadcasting messages back

17 How to Simulation (3) SetBroadcastNodes(BROADCASTWAY) : –To setup which nodes to broadcast messages to others. –BROADCASTWAY: Flood-broadcast Leaves-broadcast Tail-broadcast

18 How to Simulation (4) SetInStream() : –To set the node which wants to join the movie into the chaining stream –Select a parent node to join

19 How to Simulation (5) Node’s function : –BroadcastMessage() –ReceiveMessage() –ResponseMessage()

20 How to Simulation (6) BroadcastMessage() : –If the node is set to broadcast message, the node call this function to broadcast messages to all its neighbor nodes.

21 How to Simulation (7) ReceiveMessage() : –If a node receive a message, it first store the message server’s ID, and see if it want to join the movie. –If a node want to join the movie, it stores the stream parent ID. –If not, it looks the TTL field and compare the value received last time to determine if it need to broadcast messages forward.

22 How to Simulation (8) ResponseMessage() : –A node can determine which movie server to connect with if it had received messages before.

23 Simulation Result (1) Flood-broadcast

24 Simulation Result (2) Leaves-broadcast

25 Simulation Result (3) Tail-3-broadcast

26 Simulation Result (4) In-stream node number (total 100 nodes) TTL1234 Flood528199100 Leaves10254995 Tail-319457489 Messages cost TTL1234 Flood19,478273,9413,094,24927,166,605 Leaves9567,80127,260148,592 Tail-32,63420,51858,193108,506 Max/Sum of order-difference TTL1234 Flood19/25619/28319/2879/171 Leaves1/91/249/6419/262 Tail-33/243/6514/13012/139

27 Future Work Other construction ways Different graph, ex: hierarchical graph History messages


Download ppt "Streaming in Peer-to-peer Networks 2002/1/2. Outline The problem Assumption Network model / Node Construction –Flood-broadcast –Tail-broadcast –Leave-broadcast."

Similar presentations


Ads by Google