Yunqian Cheng
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Discussion for: Kenneth Birman, André Schiper, and Pat Stephenson, "Lightweight Causal and Atomic Group Multicast" (TOCS, 1991) ## Paper overview This paper addresses the challenges of distributed systems, focusing on various types of process groups, such as Peer, client/server, diffusion, and hierarchical. First, some issues with the ISIS toolkit are discussed. The authors introduce two protocols, CBCAST and ABCAST, as additions to the ISIS toolkit, to ensure causally ordered and totally ordered multicast communication. The CBCAST protocol uses vector timestamps to maintain causal ordering, ensuring that messages are delivered in a manner consistent with causality, even in the presence of concurrent events. ABCAST tries to extend this causality into total ordering, allowing for a better ordering of concurrent messages. The paper emphasizes the importance of confirming that a multicast message reaches all intended recipients for Multicast Stability. To reduce data in each multicast message, the paper discusses Vector Timestamp (VT) compression, which only sends altered fields. Finally, the paper suggests using virtually synchronous addressing and efficient flush coordinator strategies to maintain atomicity in distributed systems during group membership alterations or failures. However, the paper does raise some potential concerns, particularly regarding process failures or departures from a group, which are addressed through the concept of “flushing” the group. Additionally, it’s crucial to note that the protocols assume a lossless, uncorrupted, and sequenced message delivery at the transport layer, which is a significant assumption. Despite these challenges, the paper provides insights into achieving reliable and ordered message delivery in distributed systems. ## Discussion questions ### Q1 *Contributed by Yunqian Cheng* The paper mentions that delivery ordering can be total without being causal. In section 5.2, the authors used an example with m, m', and m'' to explain this, but I don't quite understand it. Can you give an example (possibly by drawing a Lamport diagram) of an execution in which message delivery is totally ordered, but *not* causally ordered? #### Discussion summary for Q1 An example of an execution in which message delivery is totally ordered but not causally ordered would be: the system has a process A that broadcasts two messages to process B and C, who received and delivered these two messages in the same reversed order. In this example, since both of the message-delivering processes - B and C - delivered the message in the same order, this is a totally ordered message delivery. However, this execution violates the FIFO and causal delivery since two messages from the same process A were delivered in an order different from the one in which they were sent. We found that many people in the class were confused about the definition of a totally ordered delivery. The confusion mainly centered around why the order in which the messages are sent is not considered while determining whether the message delivery is totally ordered. We believe the key is the word “message delivery” in “totally ordered message delivery.” Literally, it only considers the message delivery. ### Q2 *Contributed by Zackary Jorquera* ABCAST guarantees a total message delivery ordering in the sense that all messages are delivered in the same order on all processes. But, if the order of delivery of concurrently sent messages is arbitrary (i.e., the issues seen in class justifying the need for causal delivery, like the "bob smells" one, don't apply), then what use cases would require an ABCAST protocol? My first guess is in resource management, similar to the use case of a total ordering in the Lamport paper. Is this also the use case for ABCAST? #### Discussion summary for Q2 One key use case for ABCAST is in distributed databases where the order of operations/queries must be consistent across all machines. For example, if two requests are made concurrently, say i <- 2 and i <- i + 1, then it is arbitrary which is delivered first, but it does matter that all machines making up the database apply them in the same order to ensure a consensus of the data stored in the database. More generally, the problem of achieving consensus among all machines would also require a total message delivery order. In the Lamport paper, a total ordering (for happens-before) was used to “determine” which process sent the resource access request first. This was in an effort to be consistent with causality while maintaining a consensus on who gets to access the resource. While ABCAST guarantees a total message delivery order, which gives a consensus, it doesn’t, in general, give a causal ordering, which is arguably more important. So, while it can be seen as a necessary condition for the resource management described in the Lamport paper, it is not a sufficient condition. ### Q3 The CBCAST protocol does the "usual vector clock thing" of merging the received vector clock (VC) with the local VC by taking their *pointwise maximum* whenever a message is delivered, and then updating the local VC to this new, merged value. This happens in step (3) of the protocol in section 5.1, which says that the local VC is updated "in accordance with the vector time protocol from Section 4.3." Turning to section 4.3, the pointwise maximum computation happens in step (4) of the protocol described there. However, a small optimization to this protocol is possible, so you don't have to take the pointwise maximum. Can you think of what the optimization is, and why is it OK to do in CBCAST? (It is not discussed in the paper, as far as I can tell!) #### Discussion summary for Q3 One optimization we thought of is that: When a message is sent, the VT of that sender process is incremented by 1, and when it is delivered on the receiving endpoint, both timestamps from the sender and the one at the receiving endpoint are compared, in that case the sender’s timestamp is going always to be the maximum as it was incremented by 1 before sending the message. So here, we can just accept the sender’s VT and skip the “pointwise maximum”. Another way of doing optimization is from the “grouping” idea: The process only tracks some subsets (small groups) of the entire causal relationship, in other words, it cares about the VT of a consistent local area in the network. In CBCAST, the goal is to maintain causal order, not total order. The optimization still respects the causal dependencies, as it ensures that messages are delivered in a causally consistent order. Taking direct values from the sender's VC for its own messages respects this causal order, as messages are sent and timestamped by the sender in the order they are generated. Furthermore, we can try to reduce the dimension of VT, that is, each process only cares about itself and the clocks of the processes it interacts with. This can greatly reduce the dimensions of VT, thereby reducing communication overhead. ## Errata Typos or other issues found in the paper: N/A due to time limit. ## Other Any interesting points or questions from the group discussion that didn't fit above: N/A due to time limit.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully