Rhymelikedime
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sibbo@sopuli.xyz to Programmer Humor@lemmy.ml · 2 years ago

Network protocols for dummies

sopuli.xyz

message-square
42
fedilink
837

Network protocols for dummies

sopuli.xyz

Sibbo@sopuli.xyz to Programmer Humor@lemmy.ml · 2 years ago
message-square
42
fedilink
alert-triangle
You must log in or register to comment.
  • neeeeDanke@feddit.de
    cake
    link
    fedilink
    arrow-up
    123
    ·
    2 years ago

    Nah, TCP is still just kicking the box over, but just kicking it over again, if the reciever doesn’t kick back a box saying they got it.

    • pivot_root@lemmy.world
      link
      fedilink
      arrow-up
      63
      ·
      edit-2
      2 years ago

      TCP is also deciding to ramp up the amount of boxes you kick over until the post worker gets crushed by boxes, at which point you decide to lower your box-kicking rate by half and try again.

      • Gallardo994@sh.itjust.works
        link
        fedilink
        arrow-up
        29
        ·
        2 years ago

        Best explanation of congestion I’ve seen in a while

    • Enk1@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      I wrote an anology up and hated it, so I discarded it. Glad someone else nailed it.

    • CmdrKeen@lemmy.today
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      Well yes, internally that’s what it does, but from a user perspective it just looks like being handed the package, you never see any of the failed attempts (unless delivery fails completely because the company went out of business). It’s sorta more like having a butler who orders it for you and deals with any potential BS that might happen, and then just hands you the package when it finally arrives in one piece.

    • MystikIncarnate@lemmy.ca
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      2 years ago

      Like Jim Carey in Ace Ventura?

      For those that may have forgotten: https://youtu.be/WjTDXatmzUE

  • aksdb@feddit.de
    link
    fedilink
    arrow-up
    49
    ·
    2 years ago

    There’s nothing wrong with UDP. At least not that I know of.

    • You999@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      https://www.cisa.gov/news-events/alerts/2014/01/17/udp-based-amplification-attacks

      • peopleproblems@lemmy.world
        link
        fedilink
        arrow-up
        17
        ·
        2 years ago

        thank God I can’t read

        • Klear@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          You are unstoppable!

      • konalt@lemmy.world
        link
        fedilink
        arrow-up
        16
        ·
        2 years ago

        Didn’t hear you there

        • lud@lemm.ee
          link
          fedilink
          arrow-up
          4
          ·
          2 years ago

          Not my problem.

      • MooseBoys@lemmy.world
        cake
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        Not really a problem with UDP itself, but with some very old protocols like DNS that rely on UDP but can’t be changed because of compatibility. If you’re writing a new service that uses UDP, there’s nothing stopping you from designing it so that it doesn’t provide an opportunity for bandwidth amplification.

        • PreviouslyAmused@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          It’s technically not a bug if it’s operating as intended

  • 👍Maximum Derek👍@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    48
    ·
    edit-2
    2 years ago

    UDP seems more like a ball fired from canon to me. You may not be prepared for it and you won’t know what state it’s in when it gets here, but that packet is making it to the gate no matter what. Or, in the rare case it doesn’t, it means someone else is having a real bad time.

    • bleistift2@feddit.de
      link
      fedilink
      English
      arrow-up
      22
      ·
      2 years ago

      You forgot to mention that you might get it twice, or thrice, or more, and in different versions.

      • 👍Maximum Derek👍@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        20
        ·
        2 years ago

        You’re right. I forgot that grapeshot is always something to worry about.

      • Neato@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        (novice) Why would you get UDP packets multiple times? UDP doesn’t check for acceptance I thought.

        • ByteWelder@lemmy.ml
          link
          fedilink
          arrow-up
          16
          ·
          2 years ago

          From StackOverflow:

          Switches will send packets to all interfaces when using broadcasts or under extreme conditions (full MAC Address Table). This can lead to duplication if there is a loop between two or more switches and if the Spanning Tree Protocol is not used. So the answer is rarely.

          https://stackoverflow.com/questions/9196791/duplicate-udp-packets-how-often-it-happens#9220574

          • bleistift2@feddit.de
            link
            fedilink
            English
            arrow-up
            4
            ·
            2 years ago

            Don’t the big internet-y routers also send packets to multiple interfaces if they don’t know how to correctly handle the target IP address?

          • PowerCrazy@lemmy.ml
            link
            fedilink
            arrow-up
            4
            arrow-down
            5
            ·
            2 years ago

            That is extraordinarily rare and I’m not even sure if it’s possible anymore. That was potential attack vector in the 90’s where you have a port on network switch, and then you flood the cam table with thousands of bogus mac addresses until you fill it up, then the switch turns into a hub, and you can now sniff all traffic traversing the switch. These days I’m not sure what will happen if you do successfully fill up a switches cam table. Also cam table sizes are are much much larger now. ~128k entry’s vs maybe 1000 back in the day.

            • Socsa@sh.itjust.works
              link
              fedilink
              arrow-up
              6
              ·
              edit-2
              2 years ago

              You can bring a surprisingly large number of network segments down just by plugging both ends of the same cable into a dumb switch. It probably won’t happen immediately, but eventually you will get a broadcast storm which will propagate until it hits an element smart enough to snuff it out.

        • frezik@midwest.social
          link
          fedilink
          arrow-up
          6
          ·
          2 years ago

          Protocols using UDP often dial in some features of TCP at the application layer, and resend packets as needed.

          The meme is funny and all, but real world use of UDP is pretty sophisticated.

    • WindowsEnjoyer@sh.itjust.works
      link
      fedilink
      arrow-up
      21
      ·
      2 years ago

      Sorry I didn’t get this UDP joke…

      • neeeeDanke@feddit.de
        cake
        link
        fedilink
        arrow-up
        34
        ·
        2 years ago

        Well I ain’t just gonna repeat it…

  • OmnislashIsACloudApp@lemmy.world
    link
    fedilink
    arrow-up
    50
    arrow-down
    3
    ·
    2 years ago

    • 3ntranced@lemmy.world
      cake
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      Jesus christ SSH

    • DNOS@reddthat.com
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Can’t understand the VPN one shouldn’t the traffic pass through the VPN and then go to the user like the ssh one …

      • httpjames@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        The person on the right of the VPN image is the destination server

        • neosheo@discuss.tchncs.de
          link
          fedilink
          arrow-up
          5
          ·
          2 years ago

          Isn’t the can the vpn server and the guys are just vpn users?

          • OmnislashIsACloudApp@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            2 years ago

            that what I assumed

  • IHeartBadCode@kbin.social
    link
    fedilink
    arrow-up
    39
    ·
    2 years ago

    I mean I’ve been trying to formally request that ISO change the C API for send() to yeet() for sockets where connection reliability is not required at the network interface level.

    • Gallardo994@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      2 years ago

      Well, thank you, now I’m creating that exact macro in every company repo where send/sendto is used.

    • peopleproblems@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      that’s fucking brilliant lol

    • WindowsEnjoyer@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      That would be awesome! xD

    • agent_flounder@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Welp, time for a new language!

  • neidu@feddit.nl
    link
    fedilink
    arrow-up
    14
    ·
    2 years ago

    Broadcast: dropping leaflets from an airplane

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    ·
    2 years ago

    TCP is a process server.

    UDP is a brick in flight.

  • Illogicalbit@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    These comments have been the highlight of my day. Thanks

  • Enzy@lemm.ee
    link
    fedilink
    Svenska
    arrow-up
    5
    ·
    2 years ago

    ICMP

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      It’s a postcard saying “hey, thinking of you!” and there’s a picture of a wulrus on it.

  • werefreeatlast@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    You see pee?

    Nah! You dah pee! Nah you dah pee!

    You see pee!

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 112 users / day
  • 1.04K users / week
  • 3.22K users / month
  • 9.78K users / 6 months
  • 2 local subscribers
  • 36.9K subscribers
  • 1.82K Posts
  • 39.4K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org