Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Birman Schiper Stephenson Protocol
Next article icon

Birman Schiper Stephenson Protocol

Last Updated : 10 Oct, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

This algorithm is used to maintain the causal ordering of the messages i.e. the message which is sent first should be received first. If send (M1)-->send(M2) then for all processes which receive the messages M1 and M2 should receive M1 before M2. Features :

  • Broadcast based messaging.
  • Size of the messages are small.
  • More no. of messages are sent.
  • Limited state information.

Key Points :

  • Each process increases its vector clock by 1 upon sending of messages.
  • Message is delivered to a process if the process has received all the messages preceding to it.
  • Else buffer the message.
  • Update the vector clock for the process.

Reference :

  • Process: Pi
  • Event: eij , where i:process is number & j: jth event in ith process.
  • Tm:vector time stamp for message m.
  • Ci vector clock associated with process Pi; jth element is Ci[j] and contains Pi's latest value for the current time in process Pj

Protocol : Pi sending a message to Pj -

  • Pi increments Ci[i] and sets the timestamp tm = Ci[i] for message m.

Pj receiving a message from Pi -

  • When Pj, j != i, receives m with timestamp tm, it delays the message's delivery until both these conditions are met:
Cj[i] = tm[i] - 1; and  for all k <= n and k != i, Cj[k] >= tm[k].
  • When the message is delivered to Pj, update Pj's vector clock.
  • Check buffer to see if any can be delivered.

Example -

 
  • Initial state for all the processes are 000.
  • M1 is broadcasted from P3 to P1 and P2. e31 updates the vector clock to (001) and sends P1 and P2.
  • P2 accepts the M1 with timestamp (001) because when it compares it with its initial timestamp i.e. (000) it finds that M1 is the 1st message it is receiving.
  • Now we consider that before M1 could reach P1, P2 sends M2 to P1 and P3 with time stamp (011).
  • P1 could not accept M2 because upon comparing the timestamp of M2 with its initial timestamp a discrepancy is found because P1 has no message with timestamp (001) received earlier, so M2 is stored in buffer.
  • Now M1 is received by P1 and accepted.
  • M2 is removed from buffer and accepted by P1.
  • M2 is accepted by P3 as there is no discrepancy in the time stamp.

Next Article
Birman Schiper Stephenson Protocol

S

swgtmalik
Improve
Article Tags :
  • Misc
  • Computer Networks
  • cryptography
  • Distributed System
Practice Tags :
  • Misc

Similar Reads

    Schiper Eggli Sandoz Protocol
    Schiper Eggli Sandoz Protocol is used to maintain the casual ordering of the messages i.e. the message which is sent first should be received first. This is the contrast to maintaining a vector clock based on the number of messages sent to each type of process, this protocol's vector clock can be in
    3 min read
    Spanning Tree Protocol in CCNA
    Spanning Tree Protocol (STP) is a protocol that prevents Layer 2 loops or Bridging loops by computing a tree structure of nodes in a network. It also prevents MAC Flapping (an event that occurs when a switch receives packets on different interfaces with the same source MAC address) Spanning Tree Com
    5 min read
    Types of Spanning Tree Protocol (STP)
    In Ethernet networks, switches use frames to forward data between devices. However, if there are multiple active paths between switches (such as when switches are interconnected), a loop can occur, causing frames to circulate indefinitely. This loop results in broadcast storms, high CPU utilization,
    5 min read
    Working of Spanning Tree Protocol (STP)
    Spanning Tree Protocol (STP) prevents the looping of the frame by putting the interfaces of the switch in either forwarding or blocking state. How Switch is able to decide which interface should be in forwarding or blocking state. We’ll learn the answer to this question in this article. Before we fu
    3 min read
    What is SS7 Protocol Stack?
    A protocol is called a set of rules, whereas a protocol stack means a group of protocols running concurrently for implementing the network protocol suite. It determines the interconnectivity rules just like OSI and TCP/IP models for a layered network model. Every module in the Protocol stack communi
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences