I feel like walkie talkies are something all network engineers need to play with. Furthermore, remember that real world telephone and radio networks were in fact... Networks. (Called 'nets' in the radio world)
Ethernet, and 802.11, are both based on the concept of a singular channel shared by many individuals. When Alice talks, she says 'I'm Alice calling Bob, can you hear me Over'. Alice is the source address. Bob is the destination address. Over is the stop code/stop bit signifying the end of frame. The payload is 'can you hear me'. ------- This is everything up to layer 3. But if you wanted to send a radio/telegram across the country, you need one more layer, IP4 or the ARRL protocol (American Radio Relay League meets on the air at predestinated times to pass messages to each other on Ham radio frequencies. It's a human network) I'm Alice, calling the Eastern Operators. I'd like you to relay a message to Bob for me. The message is 'Can you Hear me', Over. This is a radio frame like all others, but an additional layer has been added. The radio operator has its own protocol built on top of the Frames. ------ Dave may overhear all of this chatter, but Dave knows to stay off the channel (otherwise he will cause interference). Only if Dave is addressed specifically would Dave respond (Ex: This is Alice, calling Dave. How are you doing? Over) We can see that the operator is itself just another person on the network. The operator may have a message from the rest of the world. This is the Eastern Operator calling Alice. I'm relaying a message from Bob. The message is 'I got your message Alice!'. Over. This is how a router may take a message from the greater internet and pass it to your local network.
If you wanted to add a learning switch to the example, you'd also need to add the concept of multiple channels. Once a switch learns which channel the recipient is on, it would only send to that channel instead of broadcasting to everyone. It still starts to break down unless you torture the analogy a bit more.
There is no true radio analogue here in the sense of how OP was explaining it.
At least in a wireless context, CDMA and TDMA are flawed examples because, CDMA uses fancy math to split communications over multiple channels and TDMA cuts the channels up into timeslots. You don't get full bandwidth allotment and utilization. To make a wireless switch, you'd need to have PTP optical/microwave/radio links which have highly directional antennas. This would give you full-bandwidth per user.
Even in a wired context, frame-based protocols inherently utilize TDMA (over multiple channels), just not on timescales you normally think about.
If I'm not mistaken, the radio example uses both frequency division and time division. You're on a particular channel (typically frequency, although AM exists too), and only one person can talk at a given instant, or else you get a collision which results in probably garbled output. (There's also space division at play, since radios are not infinitely powerful.) If the relay hop is also done over radio, then it's most likely achieved by hopping to dedicated frequencies for backbone comms, ideally with a separate antenna per channel so we can listen on all of them simultaneously. (You could constantly sweep the frequency space, but it's simpler to just have multiple antennas / radios.) A (modern) real-world example is that I can use my phone as a wifi hotspot. It relays packets to/from its upstream link (4G or even wifi again). (It also presumably behaves like a NAT, but that's an implementation detail.)
Well, there is already a term for that: "Bottom up". I used to think learning abstract design "Top down" is a better way to get good at design, but the "Bottom Up" way, by walking me through the implementation and design, sticks with me in the long run.
full duplex ethernet circuits (eg: a basic cheap 10Gbps 1310/LR carried over two $30 transceivers and a six foot fiber patch cable between two pieces of equipment) and a half-duplex TDD/CSMA regime like 802.11b/g/n/ac/ax are not the same thing. yes they both enable ethernet connectivity between devices on fabrics of things that can see and arp each other. the ethernet 10GbE might be shared by many individuals. but it's full speed both directions. one is half duplex, the other is not. one has contention on the shared media airtime, the other does not. they are both possibly shared in the sense that many peoples' traffic may be carried across the 10GbE full duplex circuit, the the real world implementation is very different. the real world implementations of FDD point to point (FCC part 101) or similar radio systems are closer to wired ethernet in concept, though with less capacity. however I do agree with your general point that more people should familiarize themselves with the limitations and usage methodologies for half duplex IP data mediums and the best real world implementations.
I probably should have clarified that when I said "Ethernet", I meant classic 10 Mbps Ethernet that today's kids probably don't know about. The Ethernet hub acted like a bus: anything one connection said was broadcast to _ALL_ other connections. Of course, today we have far faster point-to-point switches. But it helps to remember that the Ethernet-protocol was built in the days of old: half-duplex shared communication broadcast to everyone on your hub. ------- Today's wired 1Gbps or 10Gbps ethernet are way way faster than half-duplex channels that 802.11 / Wireless technologies are forced to use (after all: the physics behind 802.11 and walkie talkies remains fundamentally the same) There probably isn't a need for CSMA/CD systems in Ethernet anymore (since today's networks are all dedicated wires). But still, the CSMA/CD system exists for a reason, a legacy of the old "shared ether network communications" that gives rise to the name "Ethernet". (One Ether that everyone on the network can hear simultaneously, like a walkie talkie)
Raises hand. I remember discovering promiscuous mode, and a stern talking to from our network engineers. It was obvious I didn't know what the hell I was doing, so I got a great tutorial about the differences between hubs and switches.
I'd argue that the legacy of CSMA/CD still alive in ethernet is what makes it harder to implement efficient networks, as the switched network kinda tries to emulate the shared bus behaviour.
The book “CODE” uses exactly this pattern. It starts with two people talking to each other via cans connected with string, and works its way up to complex networks and processor architecture.
I recently picked up CODE after seeing it recommended on HN a few months ago and it's really filled in the gaps in my knowledge of how computing technology evolved.
Many of us are amateur radio operators, which is basically walkie talkies. And furthermore, when we're all having a group discussing, it very much follows your last point: https://en.wikipedia.org/wiki/Amateur_radio_net
I was about to comment the exact same thing. This book's bottom upwards approach is something that gave amazing insight on how well designed the Internet and computer networks are. I will forever be grateful to these guys for making free so a broke student like I was could afford that knowledge.
I recently moved from a professional developer that didn't know how networks worked to one that gave an intro talk on HTTPS to a student group. I wish I had had a book like this to make that change faster.
One callout: a table of contents is needed for the online version. One that links directly to the chapters. And if one exists, it needs to be easier to find because I couldn't locate it.
>I recently moved from a professional developer that didn't know how networks worked to one that gave an intro talk on HTTPS to a student group.
That's awesome! >I wish I had had a book like this to make that change faster. That's the goal. I definitely need a table of contents, but I was planning on adding it once I got a few more chapters done. Based on the comments though, I should probably add one quicker than that.
> The answers I get have taught me that most programmers don't have a basic understanding of how the internet works outside of their narrow specialty
Just yesterday I couldn't fall asleep because my stupid brain thought something like "What information would I need to fully grasp the topic 'programming'?".
Since I am a visual thinker, I quickly started to draw a mind map in my head that basically started with the history (starting with Alan Turing), going through electrical engineering, went through different layers and finished in different programming languages. The languages alone branched out in a pattern so large that my head startet to hurt. It included different languages, concepts, architecture patterns and compilers.
Each one of those steps is important and you will find people specialized in any of those which will tell you that their part is the most important. I am a web developer myself and I try to learn and improve every day.
But I also think to be really good you have to focus on a few specific parts of the process and not try to be an expert in everything there. That grew way too complex quite a while ago and trying to understand everything usually only makes you mediocre in everything but good at nothing in particular.
If a web developer does not know the difference of a GET and a POST I would seriously suggest to evaluate their choice of profession.
But for example the last time I've had to care about a subnet mask was 11 years ago and I would not ask anyone I recruit as a web dev to know anything about this topic. You have to draw a line somewhere.
My bottom line in all this is that you should have at least a general understanding on the whole process, but you only need to be an expert in a few of them to be really good.
Comments (132) 52 threads
Ethernet, and 802.11, are both based on the concept of a singular channel shared by many individuals. When Alice talks, she says 'I'm Alice calling Bob, can you hear me Over'.
Alice is the source address. Bob is the destination address. Over is the stop code/stop bit signifying the end of frame. The payload is 'can you hear me'.
-------
This is everything up to layer 3. But if you wanted to send a radio/telegram across the country, you need one more layer, IP4 or the ARRL protocol (American Radio Relay League meets on the air at predestinated times to pass messages to each other on Ham radio frequencies. It's a human network)
I'm Alice, calling the Eastern Operators. I'd like you to relay a message to Bob for me. The message is 'Can you Hear me', Over.
This is a radio frame like all others, but an additional layer has been added. The radio operator has its own protocol built on top of the Frames.
------
Dave may overhear all of this chatter, but Dave knows to stay off the channel (otherwise he will cause interference). Only if Dave is addressed specifically would Dave respond (Ex: This is Alice, calling Dave. How are you doing? Over)
We can see that the operator is itself just another person on the network. The operator may have a message from the rest of the world.
This is the Eastern Operator calling Alice. I'm relaying a message from Bob. The message is 'I got your message Alice!'. Over.
This is how a router may take a message from the greater internet and pass it to your local network.
What would be the Bob-Alice-Dave equivalent to replacing the network hub with a switch?
So I guess cellphones instead of one-at-a-time walkie talkies, since everyone on the cellphone network has a unique connection.
At least in a wireless context, CDMA and TDMA are flawed examples because, CDMA uses fancy math to split communications over multiple channels and TDMA cuts the channels up into timeslots. You don't get full bandwidth allotment and utilization.
To make a wireless switch, you'd need to have PTP optical/microwave/radio links which have highly directional antennas. This would give you full-bandwidth per user.
If I'm not mistaken, the radio example uses both frequency division and time division. You're on a particular channel (typically frequency, although AM exists too), and only one person can talk at a given instant, or else you get a collision which results in probably garbled output. (There's also space division at play, since radios are not infinitely powerful.)
If the relay hop is also done over radio, then it's most likely achieved by hopping to dedicated frequencies for backbone comms, ideally with a separate antenna per channel so we can listen on all of them simultaneously. (You could constantly sweep the frequency space, but it's simpler to just have multiple antennas / radios.)
A (modern) real-world example is that I can use my phone as a wifi hotspot. It relays packets to/from its upstream link (4G or even wifi again). (It also presumably behaves like a NAT, but that's an implementation detail.)
When I write software I think of objects and messages in a similar way.
full duplex ethernet circuits (eg: a basic cheap 10Gbps 1310/LR carried over two $30 transceivers and a six foot fiber patch cable between two pieces of equipment) and a half-duplex TDD/CSMA regime like 802.11b/g/n/ac/ax are not the same thing.
yes they both enable ethernet connectivity between devices on fabrics of things that can see and arp each other.
the ethernet 10GbE might be shared by many individuals. but it's full speed both directions. one is half duplex, the other is not. one has contention on the shared media airtime, the other does not.
they are both possibly shared in the sense that many peoples' traffic may be carried across the 10GbE full duplex circuit, the the real world implementation is very different.
the real world implementations of FDD point to point (FCC part 101) or similar radio systems are closer to wired ethernet in concept, though with less capacity.
however I do agree with your general point that more people should familiarize themselves with the limitations and usage methodologies for half duplex IP data mediums and the best real world implementations.
I probably should have clarified that when I said "Ethernet", I meant classic 10 Mbps Ethernet that today's kids probably don't know about. The Ethernet hub acted like a bus: anything one connection said was broadcast to _ALL_ other connections.
Of course, today we have far faster point-to-point switches. But it helps to remember that the Ethernet-protocol was built in the days of old: half-duplex shared communication broadcast to everyone on your hub.
-------
Today's wired 1Gbps or 10Gbps ethernet are way way faster than half-duplex channels that 802.11 / Wireless technologies are forced to use (after all: the physics behind 802.11 and walkie talkies remains fundamentally the same)
There probably isn't a need for CSMA/CD systems in Ethernet anymore (since today's networks are all dedicated wires). But still, the CSMA/CD system exists for a reason, a legacy of the old "shared ether network communications" that gives rise to the name "Ethernet". (One Ether that everyone on the network can hear simultaneously, like a walkie talkie)
Continue this thread — 2 replies
Continue this thread — 4 replies
That way Dave knows to ignore the message if it doesn't start with his name (or "Everyone?" for broadcasts).
https://book.systemsapproach.org
One callout: a table of contents is needed for the online version. One that links directly to the chapters. And if one exists, it needs to be easier to find because I couldn't locate it.
That's awesome!
>I wish I had had a book like this to make that change faster.
That's the goal.
I definitely need a table of contents, but I was planning on adding it once I got a few more chapters done. Based on the comments though, I should probably add one quicker than that.
Continue this thread — 1 reply
Just yesterday I couldn't fall asleep because my stupid brain thought something like "What information would I need to fully grasp the topic 'programming'?". Since I am a visual thinker, I quickly started to draw a mind map in my head that basically started with the history (starting with Alan Turing), going through electrical engineering, went through different layers and finished in different programming languages. The languages alone branched out in a pattern so large that my head startet to hurt. It included different languages, concepts, architecture patterns and compilers. Each one of those steps is important and you will find people specialized in any of those which will tell you that their part is the most important.
I am a web developer myself and I try to learn and improve every day. But I also think to be really good you have to focus on a few specific parts of the process and not try to be an expert in everything there. That grew way too complex quite a while ago and trying to understand everything usually only makes you mediocre in everything but good at nothing in particular. If a web developer does not know the difference of a GET and a POST I would seriously suggest to evaluate their choice of profession. But for example the last time I've had to care about a subnet mask was 11 years ago and I would not ask anyone I recruit as a web dev to know anything about this topic. You have to draw a line somewhere. My bottom line in all this is that you should have at least a general understanding on the whole process, but you only need to be an expert in a few of them to be really good.
All comments shown.
Couldn't load more comments. Check your connection and try again.