lemmy.mlaga97.space
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sibbo@sopuli.xyz to Programmer Humor@lemmy.ml · 2 年前

Network protocols for dummies

sopuli.xyz

message-square
25
fedilink
30

Network protocols for dummies

sopuli.xyz

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

    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
      0
      ·
      edit-2
      2 年前

      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
        0
        ·
        2 年前

        Best explanation of congestion I’ve seen in a while

    • CmdrKeen@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      2 年前

      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.

  • IHeartBadCode@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    2 年前

    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
      1
      ·
      2 年前

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

    • agent_flounder@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 年前

      Welp, time for a new language!

    • WindowsEnjoyer@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      2 年前

      That would be awesome! xD

    • peopleproblems@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 年前

      that’s fucking brilliant lol

  • 👍Maximum Derek👍@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 年前

    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
      1
      ·
      2 年前

      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
        1
        ·
        2 年前

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

      • Neato@kbin.social
        link
        fedilink
        arrow-up
        0
        ·
        2 年前

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

        • ByteWelder@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          2 年前

          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

          • PowerCrazy@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            2 年前

            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.

  • werefreeatlast@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 年前

    You see pee?

    Nah! You dah pee! Nah you dah pee!

    You see pee!

  • OmnislashIsACloudApp@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 年前

    • 3ntranced@lemmy.world
      cake
      link
      fedilink
      arrow-up
      0
      ·
      2 年前

      Jesus christ SSH

    • DNOS@reddthat.com
      link
      fedilink
      arrow-up
      0
      ·
      2 年前

      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
        0
        ·
        2 年前

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

        • neosheo@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          2 年前

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

          • OmnislashIsACloudApp@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            2 年前

            that what I assumed

  • Enzy@lemm.ee
    link
    fedilink
    Svenska
    arrow-up
    0
    ·
    2 年前

    ICMP

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      0
      ·
      2 年前

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

  • aksdb@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    2 年前

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

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.

  • 2 users / day
  • 56 users / week
  • 342 users / month
  • 1.49K users / 6 months
  • 0 local subscribers
  • 36.9K subscribers
  • 1.57K Posts
  • 22K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org