Duplex and Collisions
Lesson 7 of 32 in Coddy's The OSI Model course.
Half duplex means one side talks at a time, like a walkie-talkie; when two devices transmit together the signals collide and both must retry. Full duplex means both directions at once, like a phone call, and collisions cannot happen.
Old hubs blindly repeated every signal to every port, forcing all devices to share one half-duplex party line. Modern switches give every port its own private full-duplex link, which is one big reason they replaced hubs completely.
Challenge
BeginnerPrint the duplex mode each device forces on its ports, one word per line, lowercase: first a hub, then a switch.
Expected output:
half
fullTry it yourself
All lessons in The OSI Model
Practice on your own: Terminal playground