IP is also protocol and activity pub is also protocol, right ??

  • Godort@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    17 hours ago

    Computers are really dumb, so when one computer wants to talk to another computer, they need an established set of rules about how each message will be sent and what to do with it when it gets received.

    For IP, it’s mostly about how data is packaged and shipped. It has rules about how much data can be sent in a single message, some information about where the message is going and where it came from, whether or not they expect a reply, and then finally the block of data itself.

    However, inside that block of data, there will be some more information about what that data is, so that the receiving computer knows what to do with it. This is where applications like activitypub do their work.

    • netvor@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      12 hours ago

      Mostly right but it has little to do with computers being “dumb”. It has more to do with predictability.

      Protocols are simply the standards used in he communications, much like people have standards for post mail, shipping, etc: where to write the address, what ZIP codes mean, how to mark packages en route, etc. It’s not that people are “dumb” but it’s just far more efficient to have most packages marked in same “language”.

      Sure, computers are “dumb” (and also universal) but that’s why programming languages exist, protocols are not quite as good example of that.