SlideShare a Scribd company logo
Page 1
EN:130210125124
PRODUCTION-B
Neel vaghela
Page 2
Modes of communication
• unicast
– 1 1
– Point-to-point
• anycast
– 1 nearest 1 of several identical nodes
– Introduced with IPv6; used with BGP
• netcast
– 1 many, 1 at a time
• multicast
– 1 many
– group communication
• broadcast
– 1 all
Page 3
Groups
Groups are dynamic
– Created and destroyed
– Processes can join or leave
• May belong to 0 or more groups
Send message to one entity
– Deliver to entire group
Deal with collection of processes as one
abstraction
Page 4
Design Issues
• Closed vs. Open
– Closed: only group members can sent messages
• Peer vs. Hierarchical
– Peer: each member communicates with group
– Hierarchical: go through coordinator
• Managing membership
– Distributed vs. centralized
• Leaving & joining must be synchronous
• Fault tolerance?
Page 5Page 5
Implementing
Group Communication
Mechanisms
Page 6
Hardware multicast
Hardware support for multicast
– Group members listen on network address
listen addr=a1
listen addr=a1
listen addr=a1
send addr=a1
Page 7
Hardware broadcast
Hardware support for broadcast
– Software filters multicast address
• May be auxiliary address
broadcast(id=m)
accept id=m
accept id=m
accept id=m
discard id=m
discard id=m
Page 8
Software: netcast
Multiple unicasts (netcast)
– Sender knows group members
listen local addr=a2
listen local addr=a3
listen local addr=a5
send(a3)
Page 9
Software
Multiple unicasts via group coordinator
– coordinator knows group members
listen local addr
listen local addr
listen local addr
coordinator
send(a3)
send(c)
Page 10Page 10
Reliability of multicasts
Page 11
Atomic multicast
Atomicity
Message sent to a group arrives at all group members
• If it fails to arrive at any member, no member will
process it.
Problems
Unreliable network
• Each message should be acknowledged
• Acknowledgements can be lost
Message sender might die
Page 12
Achieving atomicity (2-phase commit variation)
Retry through network failures & system downtime
Sender and receivers maintain persistent log
1. Send message to all group members
• Each receiver acknowledges message
• Saves message and acknowledgement in log
• Does not pass message to application
2. Sender waits for all acknowledgements
• Retransmits message to non-responding members
– Again and again… until response received
3. Sender sends “go” message to all members
• Each recipient passes message to application
• Sends reply to server
Page 13
Achieving atomicity
Phase 1:
– Make sure that everyone gets the message
Phase 2:
– Once everyone has confirmed receipt, let the
application see it
All members will eventually get the message
Page 14
Reliable multicast
Best effort
– Assume sender will remain alive
– Retransmit undelivered messages
• Send message
• Wait for acknowledgement from each group
member
• Retransmit to non-responding members
Page 15
Unreliable multicast
• Basic multicast
• Hope it gets there
Page 16Page 16
Message ordering
Page 17
Good Ordering
Process 0
message a
order received
a, b
a, b
message b
Page 18
Bad Ordering
Process 0
message a
order received
a, b
b, a
message b
Page 19
Good Ordering
Process 0
Process 1
message a
message b
order received
a, b
a, b
Page 20
Bad Ordering
Process 0
Process 1
message a
message b
order received
a, b
b, a
Page 21
Sending versus Delivering
• Multicast receiver algorithm decides when to
deliver a message to the process.
• A received message may be:
– Delivered immediately
(put on a delivery queue that the process reads)
– Placed on a hold-back queue
(because we need to wait for an earlier message)
– Rejected/discarded
(duplicate or earlier message that we no longer want)
Page 22
Sending, delivering, holding back
sender receiver
Multicast sending
algorithm
Multicast receiving
algorithm
hold-back
queue
delivery
queue
discard
?
sending
delivering
Page 23
Global time ordering
• All messages arrive in exact order sent
• Assumes two events never happen at the
exact same time!
• Difficult (impossible) to achieve
Page 24
Total ordering
• Consistent ordering
• All messages arrive at all group members in the same
order
• Implementation:
– Attach unique totally sequenced message ID
– Receiver delivers a message to the application only
if it has received all messages with a smaller ID
1. If a process sends m before m’
then any other process that delivers m’ will
have delivered m.
2. If a process delivers m’ before m” then
every other process will have delivered m’
before m”.
Page 25
Causal ordering
• Partial ordering
– Messages sequenced by Lamport or Vector
timestamps
• Implementation
– Deliver messages in timestamp order per-source.
If multicast(G,m) -> multicast(G, m’)
then every process that delivers m’ will
have delivered m
Page 26
Sync ordering
• Messages can arrive in any order
• Special message type
– Synchronization primitive
– Ensure all pending messages are delivered before
any additional (post-sync) messages are accepted
Page 27
FIFO ordering
• Messages can be delivered in different order
to different members
• Message m must be delivered before message
m’ iff m was sent before m’ from the same
host
If a process issues a multicast of m
followed by m’, then every process that
delivers m’ will have already delivered m.
Page 28
Unordered multicast
• Messages can be delivered in different order
to different members
• Order per-source does not matter.
Page 29
Multicasting considerations
atomic
reliable
unreliable
Message Ordering
Reliability
Page 30Page 30
IP Multicasting
Page 31
IP Broadcasting
• 255.255.255.255
– Limited broadcast: send to all connected networks
• Host bits all 1 (128.6.255.255, 192.168.0.255)
– Directed broadcast on subnet
Page 32
IP Multicasting
Class D network created for IP multicasting
224.0.0.0/4
224.0.0.0 – 239.255.255.255
Host group
– Set of machines listening to a particular multicast
address
1110 28-bit multicast address
Page 33
IP multicasting
• Can span multiple physical networks
• Dynamic membership
– Machine can join or leave at any time
• No restriction on number of hosts in a group
• Machine does not need to be a member to
send messages
Page 34
IP multicast addresses
• Addresses chosen arbitrarily
• Well-known addresses assigned by IANA
– Internet Assigned Numbers Authority
– RFC 1340
– Similar to ports – service-based allocation
• FTP: port 21, SMTP: port 25, HTTP: port 80
224.0.0.1: all systems on this subnet
224.0.0.2: all multicast routers on subnet
224.0.1.16: music service
224.0.1.2: SGI’s dogfight
224.0.1.7: Audionews service
Page 35
LAN (Ethernet) multicasting
LAN cards support multicast in one (or both) of
two ways:
– Packets filtered based on hash(mcast addr)
• Some unwanted packets may pass through
• Simplified circuitry
– Exact match on small number of addresses
• If host needs more, put LAN card in multicast
promiscuous mode
– Receive all hardware multicast packets
Device driver must check to see if the packet
was really needed
Page 36
LAN (Ethernet) multicasting example
Intel 82546EB Dual Port Gigabit Ethernet
Controller
10/100/1000 BaseT Ethernet
Supports:
- 16 exact MAC address matches
- 4096-bit hash filter for multicast frames
- promiscuous unicast & promiscuous multicast
transfer modes
Page 37
IP multicast on a LAN
• Sender specifies class D address in packet
• Driver must translate 28-bit IP multicast group to
multicast Ethernet address
– IANA allocated range of Ethernet MAC addresses
for multicast
– Copy least significant 23 bits of IP address to
MAC address
• 01:00:5e:xx:xx:xx
• Send out multicast Ethernet packet
– Contains multicast IP packet
Bottom 23 bits
of IP address
Page 38
IP multicast on a LAN
Joining a multicast group
Receiving process:
– Notifies IP layer that it wants to receive
datagrams addressed to a certain host group
– Device driver must enable reception of Ethernet
packets for that IP address
• Then filter exact packets
Page 39
Beyond the physical network
Packets pass through routers which bridge
networks together
Multicast-aware router needs to know:
– are any hosts on a LAN that belong to a multicast
group?
IGMP:
– Internet Group Management Protocol
– Designed to answer this question
– RFC 1112 (v1), 2236 (v2), 3376 (v3)
Page 40
IGMP v1
• Datagram-based protocol
• Fixed-size messages:
– 20 bytes header, 8 bytes data
• 4-bit version
• 4-bit operation (1=query by router, 2=response)
• 16-bit checksum
• 32-bit IP class D address
Page 41
Joining multicast group with IGMP
• Machine sends IGMP report:
– “I’m interested in this multicast address”
• Each multicast router broadcasts IGMP
queries at regular intervals
– See if any machines are still interested
– One query per network interface
• When machine receives query
– Send IGMP response packet for each group for
which it is still interested in receiving packets
Page 42
Leaving a multicast group with IGMP
• No response to an IGMP query
– Machine has no more processes which are
interested
• Eventually router will stop forwarding packets
to network when it gets no IGMP responses
Page 43
IGMP enhancements
• IGMP v2
– Leave group messages added
– Useful for high-bandwidth applications
• IGMP v3
– Hosts can specify list of hosts from which they
want to receive traffic.
– Traffic from other (unwanted) hosts is blocked by
the routers and hosts.
Page 44Page 44
The end.

More Related Content

What's hot

Dotnet network prog_chap07
Dotnet network prog_chap07Dotnet network prog_chap07
Dotnet network prog_chap07Truong NGUYEN
 
IP tables and Filtering
IP tables and FilteringIP tables and Filtering
IP tables and FilteringAisha Talat
 
Making our networking stack truly extensible
Making our networking stack truly extensible Making our networking stack truly extensible
Making our networking stack truly extensible Olivier Bonaventure
 
IPv6 Segment Routing : an end-to-end solution ?
IPv6 Segment Routing : an end-to-end solution ?IPv6 Segment Routing : an end-to-end solution ?
IPv6 Segment Routing : an end-to-end solution ?Olivier Bonaventure
 
Part 9 : Congestion control and IPv6
Part 9 : Congestion control and IPv6Part 9 : Congestion control and IPv6
Part 9 : Congestion control and IPv6Olivier Bonaventure
 
Surviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsDuane Bodle
 
CISSP Week 6
CISSP Week 6CISSP Week 6
CISSP Week 6jemtallon
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ipPalanivel Kuppusamy
 
Part 5 : Sharing resources, security principles and protocols
Part 5 : Sharing resources, security principles and protocolsPart 5 : Sharing resources, security principles and protocols
Part 5 : Sharing resources, security principles and protocolsOlivier Bonaventure
 
CISSP Week 5
CISSP Week 5CISSP Week 5
CISSP Week 5jemtallon
 
Innovation is back in the transport and network layers
Innovation is back in the transport and network layersInnovation is back in the transport and network layers
Innovation is back in the transport and network layersOlivier Bonaventure
 
Overlapping Ping Monitoring
Overlapping Ping MonitoringOverlapping Ping Monitoring
Overlapping Ping MonitoringJon Maloy
 
Novell Netware Protocol suite
Novell Netware Protocol suiteNovell Netware Protocol suite
Novell Netware Protocol suiteOmar Isaid
 
Internet innovation with Multipath TCP
Internet innovation with Multipath TCPInternet innovation with Multipath TCP
Internet innovation with Multipath TCPOlivier Bonaventure
 

What's hot (20)

Dotnet network prog_chap07
Dotnet network prog_chap07Dotnet network prog_chap07
Dotnet network prog_chap07
 
I pv6
I pv6I pv6
I pv6
 
IP tables and Filtering
IP tables and FilteringIP tables and Filtering
IP tables and Filtering
 
Part 7 : HTTP/2, UDP and TCP
Part 7 : HTTP/2, UDP and TCPPart 7 : HTTP/2, UDP and TCP
Part 7 : HTTP/2, UDP and TCP
 
Making our networking stack truly extensible
Making our networking stack truly extensible Making our networking stack truly extensible
Making our networking stack truly extensible
 
IPv6 Segment Routing : an end-to-end solution ?
IPv6 Segment Routing : an end-to-end solution ?IPv6 Segment Routing : an end-to-end solution ?
IPv6 Segment Routing : an end-to-end solution ?
 
Part 9 : Congestion control and IPv6
Part 9 : Congestion control and IPv6Part 9 : Congestion control and IPv6
Part 9 : Congestion control and IPv6
 
Surviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview Questions
 
Multipath TCP
Multipath TCPMultipath TCP
Multipath TCP
 
CISSP Week 6
CISSP Week 6CISSP Week 6
CISSP Week 6
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ip
 
Part 5 : Sharing resources, security principles and protocols
Part 5 : Sharing resources, security principles and protocolsPart 5 : Sharing resources, security principles and protocols
Part 5 : Sharing resources, security principles and protocols
 
CISSP Week 5
CISSP Week 5CISSP Week 5
CISSP Week 5
 
Innovation is back in the transport and network layers
Innovation is back in the transport and network layersInnovation is back in the transport and network layers
Innovation is back in the transport and network layers
 
9 ipv6-routing
9 ipv6-routing9 ipv6-routing
9 ipv6-routing
 
Overlapping Ping Monitoring
Overlapping Ping MonitoringOverlapping Ping Monitoring
Overlapping Ping Monitoring
 
6 app-tcp
6 app-tcp6 app-tcp
6 app-tcp
 
Novell Netware Protocol suite
Novell Netware Protocol suiteNovell Netware Protocol suite
Novell Netware Protocol suite
 
Ip tables
Ip tablesIp tables
Ip tables
 
Internet innovation with Multipath TCP
Internet innovation with Multipath TCPInternet innovation with Multipath TCP
Internet innovation with Multipath TCP
 

Viewers also liked

3. sindur-pm-vol.19-no.3ok
3. sindur-pm-vol.19-no.3ok3. sindur-pm-vol.19-no.3ok
3. sindur-pm-vol.19-no.3okMaman Asep
 
Social Media Is Essential To Your Success
Social Media Is Essential To Your SuccessSocial Media Is Essential To Your Success
Social Media Is Essential To Your SuccessBusinessCreator, Inc.
 
Cory's Electronic's Client Presentation
Cory's Electronic's Client PresentationCory's Electronic's Client Presentation
Cory's Electronic's Client Presentationoliviaadamspr
 
5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode
5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode
5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-modeMaman Asep
 
Metastasis of unknown origin ppt final ppt
Metastasis of unknown origin ppt final pptMetastasis of unknown origin ppt final ppt
Metastasis of unknown origin ppt final pptDr.kavitha Palled
 
[SUBTERRÁNEOS] [FORO DE LOS BALBOS]
[SUBTERRÁNEOS] [FORO DE LOS BALBOS][SUBTERRÁNEOS] [FORO DE LOS BALBOS]
[SUBTERRÁNEOS] [FORO DE LOS BALBOS]CORREDORESDEIDEAS
 
Beton2 tata 15-perencanaan-pondasi-telapak
Beton2 tata 15-perencanaan-pondasi-telapakBeton2 tata 15-perencanaan-pondasi-telapak
Beton2 tata 15-perencanaan-pondasi-telapakMaman Asep
 
[HOSTAL MOSCŪ] [FORO DE LOS BALBOS]
[HOSTAL MOSCŪ] [FORO DE LOS BALBOS][HOSTAL MOSCŪ] [FORO DE LOS BALBOS]
[HOSTAL MOSCŪ] [FORO DE LOS BALBOS]CORREDORESDEIDEAS
 

Viewers also liked (12)

Bhavin
BhavinBhavin
Bhavin
 
3. sindur-pm-vol.19-no.3ok
3. sindur-pm-vol.19-no.3ok3. sindur-pm-vol.19-no.3ok
3. sindur-pm-vol.19-no.3ok
 
bhavin
bhavinbhavin
bhavin
 
More
MoreMore
More
 
Bisnis motor
Bisnis motorBisnis motor
Bisnis motor
 
Social Media Is Essential To Your Success
Social Media Is Essential To Your SuccessSocial Media Is Essential To Your Success
Social Media Is Essential To Your Success
 
Cory's Electronic's Client Presentation
Cory's Electronic's Client PresentationCory's Electronic's Client Presentation
Cory's Electronic's Client Presentation
 
5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode
5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode
5 kuliah-rangka-batang-dasar2-statika-2009-compatibility-mode
 
Metastasis of unknown origin ppt final ppt
Metastasis of unknown origin ppt final pptMetastasis of unknown origin ppt final ppt
Metastasis of unknown origin ppt final ppt
 
[SUBTERRÁNEOS] [FORO DE LOS BALBOS]
[SUBTERRÁNEOS] [FORO DE LOS BALBOS][SUBTERRÁNEOS] [FORO DE LOS BALBOS]
[SUBTERRÁNEOS] [FORO DE LOS BALBOS]
 
Beton2 tata 15-perencanaan-pondasi-telapak
Beton2 tata 15-perencanaan-pondasi-telapakBeton2 tata 15-perencanaan-pondasi-telapak
Beton2 tata 15-perencanaan-pondasi-telapak
 
[HOSTAL MOSCŪ] [FORO DE LOS BALBOS]
[HOSTAL MOSCŪ] [FORO DE LOS BALBOS][HOSTAL MOSCŪ] [FORO DE LOS BALBOS]
[HOSTAL MOSCŪ] [FORO DE LOS BALBOS]
 

Similar to 11 group communication

Group Communication (Distributed computing)
Group Communication (Distributed computing)Group Communication (Distributed computing)
Group Communication (Distributed computing)Sri Prasanna
 
At8000 s configurando multicast
At8000 s configurando multicastAt8000 s configurando multicast
At8000 s configurando multicastNetPlus
 
4. Communication and Network Security
4. Communication and Network Security4. Communication and Network Security
4. Communication and Network SecuritySam Bowne
 
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)Sam Bowne
 
lecture5.pptx
lecture5.pptxlecture5.pptx
lecture5.pptxLlobarro2
 
jpl-multicast.ppt
jpl-multicast.pptjpl-multicast.ppt
jpl-multicast.pptRicckySingh
 
Network protocol
Network protocolNetwork protocol
Network protocolOnline
 
Multicast in computer Architecture
Multicast in computer ArchitectureMulticast in computer Architecture
Multicast in computer ArchitectureDinesh Kumar
 
UNIT I DIS.pptx
UNIT I DIS.pptxUNIT I DIS.pptx
UNIT I DIS.pptxSamPrem3
 
distrbuted system show how distbuted system
distrbuted system show how distbuted systemdistrbuted system show how distbuted system
distrbuted system show how distbuted systemayoupalthman
 
Enter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocol
Enter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocolEnter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocol
Enter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocolDavid Dias
 
Funtions of i pv6
Funtions of i pv6Funtions of i pv6
Funtions of i pv6thanhthat1
 

Similar to 11 group communication (20)

Group Communication (Distributed computing)
Group Communication (Distributed computing)Group Communication (Distributed computing)
Group Communication (Distributed computing)
 
Multicast eng
Multicast engMulticast eng
Multicast eng
 
Group communication
Group communicationGroup communication
Group communication
 
Group communication
Group communicationGroup communication
Group communication
 
IP Multicasting
IP MulticastingIP Multicasting
IP Multicasting
 
IP Multicast Routing
IP Multicast RoutingIP Multicast Routing
IP Multicast Routing
 
At8000 s configurando multicast
At8000 s configurando multicastAt8000 s configurando multicast
At8000 s configurando multicast
 
IP Multicasting
IP MulticastingIP Multicasting
IP Multicasting
 
4. Communication and Network Security
4. Communication and Network Security4. Communication and Network Security
4. Communication and Network Security
 
IP multicast
IP multicastIP multicast
IP multicast
 
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
 
lecture5.pptx
lecture5.pptxlecture5.pptx
lecture5.pptx
 
datalink.ppt
datalink.pptdatalink.ppt
datalink.ppt
 
jpl-multicast.ppt
jpl-multicast.pptjpl-multicast.ppt
jpl-multicast.ppt
 
Network protocol
Network protocolNetwork protocol
Network protocol
 
Multicast in computer Architecture
Multicast in computer ArchitectureMulticast in computer Architecture
Multicast in computer Architecture
 
UNIT I DIS.pptx
UNIT I DIS.pptxUNIT I DIS.pptx
UNIT I DIS.pptx
 
distrbuted system show how distbuted system
distrbuted system show how distbuted systemdistrbuted system show how distbuted system
distrbuted system show how distbuted system
 
Enter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocol
Enter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocolEnter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocol
Enter Gossipsub, A scalable, extensible & hardened P2P PubSub Router protocol
 
Funtions of i pv6
Funtions of i pv6Funtions of i pv6
Funtions of i pv6
 

Recently uploaded

Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesIP ServerOne
 
527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdfrajpreetkaur75080
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOMatjaž Lipuš
 
123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptxgargh1099
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationAccess Innovations, Inc.
 
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22LHelferty
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerVladimir Samoylov
 
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Rahsaan L. Browne
 
The Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFThe Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFRahsaan L. Browne
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic AbusersOWASP Beja
 
Hi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxHi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxShivamM16
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Orkestra
 
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfOracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfSkillCertProExams
 
05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community NetworkingMichael Orias
 

Recently uploaded (15)

Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 
123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
 
The Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFThe Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDF
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
Hi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxHi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptx
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfOracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
 
05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking
 

11 group communication

  • 2. Page 2 Modes of communication • unicast – 1 1 – Point-to-point • anycast – 1 nearest 1 of several identical nodes – Introduced with IPv6; used with BGP • netcast – 1 many, 1 at a time • multicast – 1 many – group communication • broadcast – 1 all
  • 3. Page 3 Groups Groups are dynamic – Created and destroyed – Processes can join or leave • May belong to 0 or more groups Send message to one entity – Deliver to entire group Deal with collection of processes as one abstraction
  • 4. Page 4 Design Issues • Closed vs. Open – Closed: only group members can sent messages • Peer vs. Hierarchical – Peer: each member communicates with group – Hierarchical: go through coordinator • Managing membership – Distributed vs. centralized • Leaving & joining must be synchronous • Fault tolerance?
  • 5. Page 5Page 5 Implementing Group Communication Mechanisms
  • 6. Page 6 Hardware multicast Hardware support for multicast – Group members listen on network address listen addr=a1 listen addr=a1 listen addr=a1 send addr=a1
  • 7. Page 7 Hardware broadcast Hardware support for broadcast – Software filters multicast address • May be auxiliary address broadcast(id=m) accept id=m accept id=m accept id=m discard id=m discard id=m
  • 8. Page 8 Software: netcast Multiple unicasts (netcast) – Sender knows group members listen local addr=a2 listen local addr=a3 listen local addr=a5 send(a3)
  • 9. Page 9 Software Multiple unicasts via group coordinator – coordinator knows group members listen local addr listen local addr listen local addr coordinator send(a3) send(c)
  • 10. Page 10Page 10 Reliability of multicasts
  • 11. Page 11 Atomic multicast Atomicity Message sent to a group arrives at all group members • If it fails to arrive at any member, no member will process it. Problems Unreliable network • Each message should be acknowledged • Acknowledgements can be lost Message sender might die
  • 12. Page 12 Achieving atomicity (2-phase commit variation) Retry through network failures & system downtime Sender and receivers maintain persistent log 1. Send message to all group members • Each receiver acknowledges message • Saves message and acknowledgement in log • Does not pass message to application 2. Sender waits for all acknowledgements • Retransmits message to non-responding members – Again and again… until response received 3. Sender sends “go” message to all members • Each recipient passes message to application • Sends reply to server
  • 13. Page 13 Achieving atomicity Phase 1: – Make sure that everyone gets the message Phase 2: – Once everyone has confirmed receipt, let the application see it All members will eventually get the message
  • 14. Page 14 Reliable multicast Best effort – Assume sender will remain alive – Retransmit undelivered messages • Send message • Wait for acknowledgement from each group member • Retransmit to non-responding members
  • 15. Page 15 Unreliable multicast • Basic multicast • Hope it gets there
  • 17. Page 17 Good Ordering Process 0 message a order received a, b a, b message b
  • 18. Page 18 Bad Ordering Process 0 message a order received a, b b, a message b
  • 19. Page 19 Good Ordering Process 0 Process 1 message a message b order received a, b a, b
  • 20. Page 20 Bad Ordering Process 0 Process 1 message a message b order received a, b b, a
  • 21. Page 21 Sending versus Delivering • Multicast receiver algorithm decides when to deliver a message to the process. • A received message may be: – Delivered immediately (put on a delivery queue that the process reads) – Placed on a hold-back queue (because we need to wait for an earlier message) – Rejected/discarded (duplicate or earlier message that we no longer want)
  • 22. Page 22 Sending, delivering, holding back sender receiver Multicast sending algorithm Multicast receiving algorithm hold-back queue delivery queue discard ? sending delivering
  • 23. Page 23 Global time ordering • All messages arrive in exact order sent • Assumes two events never happen at the exact same time! • Difficult (impossible) to achieve
  • 24. Page 24 Total ordering • Consistent ordering • All messages arrive at all group members in the same order • Implementation: – Attach unique totally sequenced message ID – Receiver delivers a message to the application only if it has received all messages with a smaller ID 1. If a process sends m before m’ then any other process that delivers m’ will have delivered m. 2. If a process delivers m’ before m” then every other process will have delivered m’ before m”.
  • 25. Page 25 Causal ordering • Partial ordering – Messages sequenced by Lamport or Vector timestamps • Implementation – Deliver messages in timestamp order per-source. If multicast(G,m) -> multicast(G, m’) then every process that delivers m’ will have delivered m
  • 26. Page 26 Sync ordering • Messages can arrive in any order • Special message type – Synchronization primitive – Ensure all pending messages are delivered before any additional (post-sync) messages are accepted
  • 27. Page 27 FIFO ordering • Messages can be delivered in different order to different members • Message m must be delivered before message m’ iff m was sent before m’ from the same host If a process issues a multicast of m followed by m’, then every process that delivers m’ will have already delivered m.
  • 28. Page 28 Unordered multicast • Messages can be delivered in different order to different members • Order per-source does not matter.
  • 30. Page 30Page 30 IP Multicasting
  • 31. Page 31 IP Broadcasting • 255.255.255.255 – Limited broadcast: send to all connected networks • Host bits all 1 (128.6.255.255, 192.168.0.255) – Directed broadcast on subnet
  • 32. Page 32 IP Multicasting Class D network created for IP multicasting 224.0.0.0/4 224.0.0.0 – 239.255.255.255 Host group – Set of machines listening to a particular multicast address 1110 28-bit multicast address
  • 33. Page 33 IP multicasting • Can span multiple physical networks • Dynamic membership – Machine can join or leave at any time • No restriction on number of hosts in a group • Machine does not need to be a member to send messages
  • 34. Page 34 IP multicast addresses • Addresses chosen arbitrarily • Well-known addresses assigned by IANA – Internet Assigned Numbers Authority – RFC 1340 – Similar to ports – service-based allocation • FTP: port 21, SMTP: port 25, HTTP: port 80 224.0.0.1: all systems on this subnet 224.0.0.2: all multicast routers on subnet 224.0.1.16: music service 224.0.1.2: SGI’s dogfight 224.0.1.7: Audionews service
  • 35. Page 35 LAN (Ethernet) multicasting LAN cards support multicast in one (or both) of two ways: – Packets filtered based on hash(mcast addr) • Some unwanted packets may pass through • Simplified circuitry – Exact match on small number of addresses • If host needs more, put LAN card in multicast promiscuous mode – Receive all hardware multicast packets Device driver must check to see if the packet was really needed
  • 36. Page 36 LAN (Ethernet) multicasting example Intel 82546EB Dual Port Gigabit Ethernet Controller 10/100/1000 BaseT Ethernet Supports: - 16 exact MAC address matches - 4096-bit hash filter for multicast frames - promiscuous unicast & promiscuous multicast transfer modes
  • 37. Page 37 IP multicast on a LAN • Sender specifies class D address in packet • Driver must translate 28-bit IP multicast group to multicast Ethernet address – IANA allocated range of Ethernet MAC addresses for multicast – Copy least significant 23 bits of IP address to MAC address • 01:00:5e:xx:xx:xx • Send out multicast Ethernet packet – Contains multicast IP packet Bottom 23 bits of IP address
  • 38. Page 38 IP multicast on a LAN Joining a multicast group Receiving process: – Notifies IP layer that it wants to receive datagrams addressed to a certain host group – Device driver must enable reception of Ethernet packets for that IP address • Then filter exact packets
  • 39. Page 39 Beyond the physical network Packets pass through routers which bridge networks together Multicast-aware router needs to know: – are any hosts on a LAN that belong to a multicast group? IGMP: – Internet Group Management Protocol – Designed to answer this question – RFC 1112 (v1), 2236 (v2), 3376 (v3)
  • 40. Page 40 IGMP v1 • Datagram-based protocol • Fixed-size messages: – 20 bytes header, 8 bytes data • 4-bit version • 4-bit operation (1=query by router, 2=response) • 16-bit checksum • 32-bit IP class D address
  • 41. Page 41 Joining multicast group with IGMP • Machine sends IGMP report: – “I’m interested in this multicast address” • Each multicast router broadcasts IGMP queries at regular intervals – See if any machines are still interested – One query per network interface • When machine receives query – Send IGMP response packet for each group for which it is still interested in receiving packets
  • 42. Page 42 Leaving a multicast group with IGMP • No response to an IGMP query – Machine has no more processes which are interested • Eventually router will stop forwarding packets to network when it gets no IGMP responses
  • 43. Page 43 IGMP enhancements • IGMP v2 – Leave group messages added – Useful for high-bandwidth applications • IGMP v3 – Hosts can specify list of hosts from which they want to receive traffic. – Traffic from other (unwanted) hosts is blocked by the routers and hosts.