this post was submitted on 11 Dec 2023
1126 points (98.5% liked)

Programmer Humor

32479 readers
247 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 31 points 11 months ago (14 children)

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

[–] [email protected] 9 points 11 months ago (12 children)

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

[–] [email protected] 21 points 11 months ago (10 children)

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

[–] [email protected] 1 points 11 months ago (1 children)

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.

[–] [email protected] 6 points 11 months ago* (last edited 11 months 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.

load more comments (8 replies)
load more comments (9 replies)
load more comments (10 replies)