SENI
KECANTIKAN & KESEJAHTERAAN
KRAFTANGAN
BUDAYA & SEJARAH
HIBURAN
ALAM SEKITAR
MAKANAN & MINUMAN
KEJURUTERAAN TERBALIK
SAINS
SUKAN
TEKNOLOGI
BOLEH PAKAI

ALOHA and Random Access
The University of Hawaii had a problem no mainland university had. Its campuses were on different islands, leased telephone lines between islands were expensive and poor, and the terminals needed to reach one computer in Honolulu.
Norman Abramson's answer in 1971 was to give up on coordination entirely. Every terminal shares one radio channel. When it has something to send, it sends. If two transmissions overlap, both are destroyed — and the sender finds out because the acknowledgement does not come back on the separate downlink, so it waits a random time and tries again.
It sounds like it should not work, and the remarkable thing is exactly how badly it works: the maximum throughput of pure ALOHA is one over two e, about eighteen percent of the channel. Eighty-two percent is spent on collisions and silence. But eighteen percent of a shared channel that needs no scheduler, no master station and no coordination at all was far more than the islands had before.
Then Larry Roberts noticed in 1972 that most of the waste is the sloppy timing. If everyone may only begin on a slot boundary, a packet can only be ruined by something starting in the SAME slot rather than in a window two packets wide. Halving the vulnerable period doubles the throughput to one over e, about thirty-seven percent, for the cost of a shared clock.
This blueprint and the Ethernet one that follows share a rig, deliberately. Build the hardware once, run it blind, then slotted, and measure the two numbers yourself before adding the one thing ALOHA cannot do — listen first.
Pertengahan
4 hours
Arahan
1
1
Build the shared channel
Build the shared channel
Four microcontrollers, one shared channel, no master. The simplest honest version is a single wire pulled up to the rail by one resistor, with every board driving it through a diode or an open-drain output — so anyone may pull it low and nobody can force it high.
If you would rather it be radio, as ALOHAnet was, point four infrared LEDs at one phototransistor. Either way the essential property is the same: two stations transmitting at once produce garbage that neither of them, and no receiver, can decode.
Add a fifth board as the receiver and the acknowledgement source. It listens, checks the CRC from blueprint 2, and pulses an acknowledgement line when a frame is good. That acknowledgement is the ONLY feedback a sender gets, and its absence is the only way a sender ever learns a collision happened.
Keep this rig assembled. The next blueprint uses it unchanged.
Bahan untuk langkah ini:
Resistor Kit1 keping
LED Assortment1 keping
Optical Detector / Phototransistor - QRD11141 keping
Jumper Wire Set1 kepingAlatan diperlukan:
ESP32 Development Board
Breadboard - Classic
Digital Oscilloscope
Bench Power Supply (30V/5A)2
2
Measure 18 %, then measure 37 %
Measure 18 %, then measure 37 %
Program every station identically: when it has a frame, send it immediately; if no acknowledgement arrives within a timeout, wait a random interval and retry. That is pure ALOHA and nothing more.
Sweep the offered load by changing how often each station generates a frame, and at each setting count frames DELIVERED per unit time against frames ATTEMPTED. Plot it.
You will find the curve rising, peaking near eighteen percent, and then FALLING as you push harder. Do not stop at the peak — the falling half is the important half, and watching a channel deliver less as you offer more is the clearest possible demonstration of congestion collapse.
Now add a shared clock: have the receiver pulse a slot line and let stations begin only on that pulse. Change nothing else. Re-run the sweep. The peak roughly doubles, to about thirty-seven percent, and it moves to a higher offered load.
One shared clock, twice the throughput. Write both numbers down; blueprint 8 beats them.
Alatan diperlukan:
ESP32 Development Board
Digital Oscilloscope
Desktop Computer
Stopwatch3
3
One sketch, four protocols
One sketch, four protocols
This sketch is the rig for this blueprint AND the next one, and that is deliberate: only the MODE constant changes between them, so any difference you measure is the protocol and nothing else.
Set MODE to MODE_ALOHA_PURE on all four boards and sweep OFFER_PCT from 5 to 100, recording delivered against sent at each point. Then set MODE_ALOHA_SLOTTED, feed the slot clock from the monitor board, and sweep again.
Keep both curves. Blueprint 8 changes one line and beats them.
shared_medium.inocpp
Bahan untuk langkah ini:
Resistor Kit1 keping
LED Assortment1 keping
Jumper Wire Set1 kepingAlatan diperlukan:
ESP32 Development Board
Breadboard - Classic
Digital Oscilloscope
Desktop Computer4
4
The two curves, and what backoff is for
The two curves, and what backoff is for
Memuatkan buku nota Jupyter…
Alatan diperlukan:
Desktop Computer5
5
Compendium: the value of no coordination
Compendium: the value of no coordination
WHY EIGHTEEN PERCENT WAS A BARGAIN. The alternative in 1971 was polling or a fixed assignment: give each terminal a guaranteed slice. With a hundred terminals of which three are active, fixed assignment gives each one percent of the channel and wastes ninety-seven. ALOHA gives the active ones eighteen percent BETWEEN THEM, with no master station, no schedule, and no way for the network to break when a terminal is switched off. Random access wins whenever the population is large and the duty cycle is small — which is the same condition that made packet switching win two blueprints ago.
WHERE IT WENT. ALOHA is not a historical curiosity: it is the direct ancestor of every shared radio channel since. GSM and LTE use slotted ALOHA for the random-access channel a handset uses to ask for a scheduled allocation. WiFi's CSMA/CA is ALOHA with listening added and collision DETECTION removed, because a radio still cannot hear while it transmits. Satellite terminals, RFID readers and LoRaWAN all do a version of it. The eighteen percent was never the point — the absence of a scheduler was.
THE SIBLING, AND THE MEASUREMENT. Pure ALOHA, 18.4 %: no coordination whatever. Slotted, 36.8 %: one shared clock. CSMA/CD, above 90 %: stations that can hear the channel before and while they speak. Each step buys throughput with a stronger assumption about what a station can sense, and blueprint 8 pays the last one on the rig you have already built.
Bahan
4- dari$5.79
- 1 kepingPemegang Tempat
- Optical Detector / Phototransistor - QRD111410% komisen1 keping$1.21
- 1 kepingPemegang Tempat
Alatan Diperlukan
6- Pemegang Tempat
- Breadboard - Classic10% komisen$9.67
- Digital Oscilloscope10% komisenMagento Legacy Storeships internationallyPemegang Tempat
- Pemegang Tempat
- Pemegang Tempat
- Pemegang Tempat
Jumlah anggaran
Apa yang dibeli oleh pembuatnya. Bahan tanpa harga diperoleh di tempat anda membelinya.
Blueprint berkaitan
Blueprint ini berkongsi pengetahuan — teknik, bahan atau prinsip
CC0 Domain Awam
Blueprint ini dikeluarkan di bawah CC0. Anda bebas menyalin, mengubah, mengedar, dan menggunakan karya ini untuk sebarang tujuan, tanpa meminta kebenaran.
Sokong Pembuat dengan membeli produk melalui Blueprint mereka di mana mereka memperoleh Komisen Pembuat ditetapkan oleh Penjual, atau cipta iterasi baru Blueprint ini dan sertakan ia sebagai sambungan dalam Blueprint anda sendiri untuk berkongsi hasil.



