SlideShare a Scribd company logo
1 of 18
Download to read offline
JGROUPS
AToolkit for Reliable Multicast Communication
Wednesday, April 24, 13
• Introduction
• API and Architecture
• Protocols
• Building Blocks
• Group Membership
• Conclusion
OVERVIEW
Wednesday, April 24, 13
INTRODUCTION
• What is JGroups?
• Toolkit for Reliable Multicast Communication
• Fragmentation
• Message retransmission
• Ordering
• Group membership, membership change notification, etc.
• LAN or WAN based
Wednesday, April 24, 13
INTRODUCTION
• Where JGroups fits in?
Unreliable Reliable
Unicast UDP TCP
Multicast IP Multicast JGroups
Wednesday, April 24, 13
API & ARCHITECTURE
Wednesday, April 24, 13
CHANNEL
• Lower-Level Abstraction to build Multicast Communication
Apps provided by JGroups.
• Similar to socket from Java
• Operations :
• Create a channel with a set of properties
• Connect to a group X. Everyone that connects to X will see
each other
• Send a message to all members of X
Wednesday, April 24, 13
BUILDING BLOCKS
• Group communication pattern
• Layered on top of channels
• More sophisticated APIs
• Applications communicate directly with the building block,
rather than the channel.
• Composed with many basic multicast function
Wednesday, April 24, 13
BUILDING BLOCKS
Wednesday, April 24, 13
FLEXIBLE PROTOCOL STACK
• The most powerful feature of JGroups!!
• Contains a number of protocol layers in a bidirectional list.
• A message sent by Channel is simply passed to the protocol stack which in
turn forwards it to the top most layer.
• Available Protocol :
• Transport: UDP,TCP,TCP_NIO,TUNNEL, JMS, LOOPBACK
• Discovery: PING,TCPPING,TCPGOSSIP, UDPPING
• Reliable delivery & FIFO: NAKACK, SMACK
• Group membership, Failure Detector, Security, Fragmentation,Virtual
Synchrony, Ordering, etc.
Wednesday, April 24, 13
GROUP MEMBERSHIP SERVICE
• Task :
• Maintain a list of members
• Notify members when a new member joins, or an existing
member leaves (or crashes)
• Each member has the same ordered list
• List can be retrieved by Channel.getView()
• First (= oldest) member is coordinator
• If coord crashes, 2nd oldest takes over
Wednesday, April 24, 13
VIRTUAL SYNCHRONY
• AView is a list of members (A,B,C,D)
• When members join/leave, a new view will be installed
(A,C,D)
• Every healthy member receives the same set of messages
between subsequent views
• Messages sent inV1 are received inV1
• All msgs by sender received in same order
Wednesday, April 24, 13
VIRTUAL SYNCHRONY
• The FLUSH protocol ensures that all members have received
all msgs inV1 before installingV2
• New members won’t receive messages from previous views
• Member that left won’t receive msgs
Wednesday, April 24, 13
FAILURE DETECTION
• Failure detection protocol sends up SUSPECT event
• VERIFY_SUSPECT double checks
• GMS multicasts new view (not containing
crashed member)
• If member resurfaces, it will be shunned
• Has to leave and rejoin group
Wednesday, April 24, 13
FAILURE DETECTION
• Task :
• Detect if a member has crashed and send SUSPECT event up the stack (to
be handled by GMS)
• Logical ring over membership
• Each member pings its neighbor to the right
Wednesday, April 24, 13
FAILURE DETECTION
Wednesday, April 24, 13
CONCLUSION
• Jgroups merupakan toolkit yang bisa dipakai saat akan
membangun suatu aplikasi yang membutuhkan aspek reliability
dalam komunikasi grup.
• Jgroups sangat modular dan mudah untuk dimodifikasi sesuai
dengan kebutuhan aplikasi
• Pengembang aplikasi bisa lebih fokus terhadap persoalan apa
yang mau dipecahkan oleh aplikasinya.
Wednesday, April 24, 13
REFERENCE
• JavaGroups - Group Communication Patterns in Java, Bela Ban. 1998
• Design and Implementation of a Reliable Group CommunicationToolkit for
Java, Bela Ban, -
• JgroupTutorial and Programmer’s Manual,Albert M. dkk. 2002.
• Reliable and Secure Distributed Programming 2nd Ed, C. Cachin dkk. 2011.
• http://www.jgroups.org
• https://github.com/belaban/JGroups
Wednesday, April 24, 13
Thank you &
Question?
Wednesday, April 24, 13

More Related Content

Similar to Jgroups - Toolkit for Reliable Multicast Communication

InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009Sean Dawson
 
Linkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slidesLinkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slidesruslansv
 
Adventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User GroupAdventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User GroupMichael McCallister
 
What is the merge window?
What is the merge window?What is the merge window?
What is the merge window?Macpaul Lin
 
Getting started with Octopus Deploy
Getting started with Octopus DeployGetting started with Octopus Deploy
Getting started with Octopus DeployKaroline Klever
 
The Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ LinkedinThe Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ LinkedinC4Media
 
Making 'npm install' Safe
Making 'npm install' SafeMaking 'npm install' Safe
Making 'npm install' SafeC4Media
 
Introduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaIntroduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaAmulya Sharma
 
Treating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day WorkshopTreating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day WorkshopManuel Pais
 
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015Pavel Chunyayev
 

Similar to Jgroups - Toolkit for Reliable Multicast Communication (10)

InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009
 
Linkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slidesLinkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slides
 
Adventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User GroupAdventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User Group
 
What is the merge window?
What is the merge window?What is the merge window?
What is the merge window?
 
Getting started with Octopus Deploy
Getting started with Octopus DeployGetting started with Octopus Deploy
Getting started with Octopus Deploy
 
The Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ LinkedinThe Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ Linkedin
 
Making 'npm install' Safe
Making 'npm install' SafeMaking 'npm install' Safe
Making 'npm install' Safe
 
Introduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaIntroduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya Sharma
 
Treating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day WorkshopTreating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day Workshop
 
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Jgroups - Toolkit for Reliable Multicast Communication

  • 1. JGROUPS AToolkit for Reliable Multicast Communication Wednesday, April 24, 13
  • 2. • Introduction • API and Architecture • Protocols • Building Blocks • Group Membership • Conclusion OVERVIEW Wednesday, April 24, 13
  • 3. INTRODUCTION • What is JGroups? • Toolkit for Reliable Multicast Communication • Fragmentation • Message retransmission • Ordering • Group membership, membership change notification, etc. • LAN or WAN based Wednesday, April 24, 13
  • 4. INTRODUCTION • Where JGroups fits in? Unreliable Reliable Unicast UDP TCP Multicast IP Multicast JGroups Wednesday, April 24, 13
  • 6. CHANNEL • Lower-Level Abstraction to build Multicast Communication Apps provided by JGroups. • Similar to socket from Java • Operations : • Create a channel with a set of properties • Connect to a group X. Everyone that connects to X will see each other • Send a message to all members of X Wednesday, April 24, 13
  • 7. BUILDING BLOCKS • Group communication pattern • Layered on top of channels • More sophisticated APIs • Applications communicate directly with the building block, rather than the channel. • Composed with many basic multicast function Wednesday, April 24, 13
  • 9. FLEXIBLE PROTOCOL STACK • The most powerful feature of JGroups!! • Contains a number of protocol layers in a bidirectional list. • A message sent by Channel is simply passed to the protocol stack which in turn forwards it to the top most layer. • Available Protocol : • Transport: UDP,TCP,TCP_NIO,TUNNEL, JMS, LOOPBACK • Discovery: PING,TCPPING,TCPGOSSIP, UDPPING • Reliable delivery & FIFO: NAKACK, SMACK • Group membership, Failure Detector, Security, Fragmentation,Virtual Synchrony, Ordering, etc. Wednesday, April 24, 13
  • 10. GROUP MEMBERSHIP SERVICE • Task : • Maintain a list of members • Notify members when a new member joins, or an existing member leaves (or crashes) • Each member has the same ordered list • List can be retrieved by Channel.getView() • First (= oldest) member is coordinator • If coord crashes, 2nd oldest takes over Wednesday, April 24, 13
  • 11. VIRTUAL SYNCHRONY • AView is a list of members (A,B,C,D) • When members join/leave, a new view will be installed (A,C,D) • Every healthy member receives the same set of messages between subsequent views • Messages sent inV1 are received inV1 • All msgs by sender received in same order Wednesday, April 24, 13
  • 12. VIRTUAL SYNCHRONY • The FLUSH protocol ensures that all members have received all msgs inV1 before installingV2 • New members won’t receive messages from previous views • Member that left won’t receive msgs Wednesday, April 24, 13
  • 13. FAILURE DETECTION • Failure detection protocol sends up SUSPECT event • VERIFY_SUSPECT double checks • GMS multicasts new view (not containing crashed member) • If member resurfaces, it will be shunned • Has to leave and rejoin group Wednesday, April 24, 13
  • 14. FAILURE DETECTION • Task : • Detect if a member has crashed and send SUSPECT event up the stack (to be handled by GMS) • Logical ring over membership • Each member pings its neighbor to the right Wednesday, April 24, 13
  • 16. CONCLUSION • Jgroups merupakan toolkit yang bisa dipakai saat akan membangun suatu aplikasi yang membutuhkan aspek reliability dalam komunikasi grup. • Jgroups sangat modular dan mudah untuk dimodifikasi sesuai dengan kebutuhan aplikasi • Pengembang aplikasi bisa lebih fokus terhadap persoalan apa yang mau dipecahkan oleh aplikasinya. Wednesday, April 24, 13
  • 17. REFERENCE • JavaGroups - Group Communication Patterns in Java, Bela Ban. 1998 • Design and Implementation of a Reliable Group CommunicationToolkit for Java, Bela Ban, - • JgroupTutorial and Programmer’s Manual,Albert M. dkk. 2002. • Reliable and Secure Distributed Programming 2nd Ed, C. Cachin dkk. 2011. • http://www.jgroups.org • https://github.com/belaban/JGroups Wednesday, April 24, 13