Chapter 4 more than two
This presentation is the property of its rightful owner.
Sponsored Links
1 / 38

Chapter 4: More Than Two PowerPoint PPT Presentation


  • 164 Views
  • Uploaded on
  • Presentation posted in: General

Chapter 4: More Than Two. BOIDS. SIMPLE PEER TO PEER. PEER TO PEER WITH MASTER. Host E. Host E. Host E. Host E. Host D. Host D. Host D. Host D. Host A. Host A. Host A. Host A. Host C. Host C. Host C. Host C. Host B. Host B. Host B. Host B. code(Flock flock).

Download Presentation

Chapter 4: More Than Two

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Chapter 4 more than two

Chapter 4: More Than Two


Boids

BOIDS


Simple peer to peer

SIMPLE PEER TO PEER


Peer to peer with master

PEER TO PEER WITH MASTER


Chapter 4 more than two

Host E

Host E

Host E

Host E

Host D

Host D

Host D

Host D

Host A

Host A

Host A

Host A

Host C

Host C

Host C

Host C

Host B

Host B

Host B

Host B


Chapter 4 more than two

code(Flock flock)

create Announce message

send message to master host

Inactive

Active

code(Flock flock)

create State message

send message to every participating host


Chapter 4 more than two

decode(String str) and Announce message

extract flock from received str

add FlockRemoteFlag to the Datamodel

add FlockRemoteFlag to the Renderer

create an Announce message for local flock

send the created Announce message to the remote host

for each registered remote flock {

send the received Announce to remote flock

create Announce message for remote flock

send created Announce message to sender of flock

}

decode(String str) and Announce message

extract flock from received str

add FlockRemoteFlag to the Datamodel

add FlockRemoteFlag to the Renderer

Inactive/Active

Inactive/Active

decode(String str) and State message

extract flock identifier from received str

retrieve FlockRemoteFlag from Datamodel

update FlockRemote from data on str

decode(String str) and State message

extract flock identifier from received str

retrieve FlockRemoteFlag from Datamodel

update FlockRemote from data on str


Peer to peer with rendezvous

PEER TO PEER WITH RENDEZVOUS


Chapter 4 more than two

Host A

Host A

Host A

Host A

Host A

Host A

Host B

Host B

Host B

Host B

Host B

Host B

Host C

Host C

Host C

Host C

Host C

Host C

Rendez vous Server

Rendez vous Server

Rendez vous Server

Rendez vous Server

Rendez vous Server

Rendez vous Server


Chapter 4 more than two

decode(String str) and Announce message

extract flock from received str

add FlockRemoteFlag to the Datamodel

add FlockRemoteFlag to the Renderer

code(Flock flock)

create Announce message

send message to server

Inactive/Active

Inactive

Active

code(Flock flock)

decode(String str) and State message

create State message

send message to server

extract flock identifier from received str

retrieve FlockRemoteFlag from Datamodel

update FlockRemote from data on str


Chapter 4 more than two

receive() and Announce message

extract flock from received str

add FlockRemote to the datamodel

for each registered remote flock {

send the received Announce to remote flock

create Announce message for remote flock

send created Announce message to sender of flock

}

Inactive/Active


Client server

CLIENT/SERVER


Chapter 4 more than two

Host A

Host A

Host A

Host A

Host A

Host A

Host B

Host B

Host B

Host B

Host B

Host B

Host C

Host C

Host C

Host C

Host C

Host C

Server

Server

Server

Server

Server

Server


Chapter 4 more than two

decode(String str) and Announce message

extract flock from received str

add Flock to the Datamodel

add Flock to the Renderer

code(Flock flock)

create Announce message

send message to rendezvous server

Inactive/Active

Inactive

Active

code(Flock flock)

decode(String str) and State message

create State message

send message to every participating host

extract flock identifier from received str

retrieve Flock from Datamodel

update Flock from data on str


Chapter 4 more than two

decode(String str) and Announce message

extract flock from received str

add FlockRemote to the Datamodel

for each registered remote flock {

create stripped version of the received Announce

send the stripped Announce to remote flock

create Announce message for remote flock

send created Announce message to sender of flock

}

Inactive/Active

decode(String str) and State message

extract flock identifier from received str

for each registered remote flock that is not the sender {

send the received State to remote flock

}


Multicast

MULTICAST


Chapter 4 more than two

Host E

Host E

Host E

Host E

Host D

Host D

Host D

Host D

Host A

Host A

Host A

Host A

Host C

Host C

Host C

Host C

Host B

Host B

Host B

Host B


Chapter 4 more than two

code(Flock flock)

Joined

Inactive

create Announce message

send message to multicast group

code(Flock flock)

join multicast group

Active

Inactive

code(Flock flock)

create State message

send message to multicast group


Chapter 4 more than two

decode(String str) and Announce message

extract flock from received str

add Flock to the Datamodel

add Flock to the Renderer

Inactive/Active

decode(String str) and State message

extract flock identifier from received str

retrieve Flock from Datamodel

update Flock from data on str


Summary

SUMMARY


  • Login