Theory
એક exam line પર નવ નામો
આ topic ની syllabus line acronyms ના ખુલ્લા drawer જેવી લાગે છે: Ethernet, WiFi, WiMAX, LR-WPAN, 2G/3G/4G, IPv6, 6LoWPAN, MQTT, WebSocket.
Flat memorise કરો તો શુક્રવાર સુધીમાં blur થઈ જાય. ROLE દ્વારા organise કરો તો 3 નાના families બને છે, દરેક સાથે એક question: bits કેવી રીતે move થાય? devices ને કેવી રીતે address કરવાં? conversation કેવી રીતે structure થાય?
આ organisation જ "physical design of IoT" નો ખરો અર્થ છે: things અને protocols ની layered wardrobe જે એ પહેરે છે.
Theory
પહેલા, things
Physical-design ભાષામાં, thing એટલે unique identity ધરાવતું કોઈપણ device જે sense, actuate અને communicate કરી શકે: SmartHostel નો tank sensor, gas detector, smart gate, energy meter.
દરેક thing પાસે sensing hardware, actuation hardware, processor, communication interface અને power source (mains કે battery: આ યાદ રાખો; નીચેના અડધા protocol choices આ decide કરે છે) નું મિશ્રણ હોય છે.
Thing એ noun છે. Protocols એ તેની grammar છે.
At a glance
Family 1: LINK protocols (એક hop પર bits move કરો)
| Protocol | Nature | SmartHostel fit |
|---|---|---|
| Ethernet (802.3) | Wired, fast, reliable | Hostel server અને router, cabled |
| WiFi (802.11) | Wireless LAN, good speed, hungry | Mains-powered devices: cameras, gate |
| WiMAX (802.16) | City area પર wireless broadband | Cables વગર far-off annexe ને link કરવું |
| LR-WPAN (802.15.4) | Low-Rate WPAN: tiny power, short range, small data | દરેક room માં battery sensors (ZigBee નો base) |
| 2G/3G/4G cellular | Wide-area mobile networks | WiFi ની reach થી બહારનું water pump house |
Theory
Family 2: NETWORK: દરેક thing ને address આપવો
Bits move થઈ શકે એટલે દરેક device ને findable address જોઈએ.
IPv6 છે કારણ કે IPv4 ના લગભગ 4 billion addresses એ દુનિયાને cover નથી કરી શકતા જ્યાં દરેક bulb અને tank ને address જોઈએ. IPv6 ના 128-bit addresses અસરકારક રીતે inexhaustible છે: પૃથ્વી પરના દરેક hostel ના દરેક sensor ને individually addressable બનાવી શકાય છે: unique identity characteristic, delivered.
6LoWPAN (IPv6 over Low-power WPAN) follow-up problem solve કરે છે: full IPv6 packets LR-WPAN ના tiny frames માટે heavy છે, એટલે 6LoWPAN IPv6 ને compress કરીને fit કરે છે: જેથી coin-cell room sensor પણ proper internet citizen બની શકે.
At a glance
Family 3: APPLICATION protocols (conversation structure કરો)
| Protocol | Conversation shape | SmartHostel fit |
|---|---|---|
| MQTT | BROKER દ્વારા lightweight publish-subscribe: senders topics પર publish કરે છે, receivers subscribe કરે છે | દરેક sensor hostel/tank/level publish કરે છે; dashboard subscribe કરે છે: constrained devices માટે બનાવેલું |
| WebSocket | એક persistent, full-duplex connection: બંને sides ક્યારેય પણ send કરી શકે | Warden નું live dashboard: readings re-ask કર્યા વગર stream થાય છે (AJAX ના ask-answer-hang-up ની વિરુદ્ધ) |
Quiz
Battery-powered room sensor એ coin cell પર એક વર્ષ ચાલવું જોઈએ, દર 5 મિનિટે 10 metres પર tiny reading send કરે છે. કયો LINK protocol family fit થાય?
- WiFi: table નો fastest wireless option છે
- LR-WPAN (802.15.4): low power, short range, small data: આ માટે જ બનાવેલું
- WiMAX: wireless એ wireless છે
- 4G cellular: maximum coverage હંમેશા safest છે
Show the answer
LR-WPAN (802.15.4): low power, short range, small data: આ માટે જ બનાવેલું
Speeds ને નહીં, constraints ને match કરો: coin cell પર એક વર્ષ WiFi ની power appetite ને forbid કરે છે (option A: speed જે sensor ને જોઈતી નથી, battery માં pay કરવી પડે), અને 10 metres ની range WiMAX ના city-scale radios અને 4G ના tower budget ને mock કરે છે (options C અને D: coverage અને cost જે job માં ક્યારેય માંગ્યા નથી). LR-WPAN આ job માટે જ DESIGNED છે: low rate, low power, personal-area range: એટલે જ એ ZigBee sensor networks નો base બને છે. Exam pattern: દરેક choose-a-protocol question એ constraints checklist છે: power, range, data size: એ run કરો અને answer પોતે જ નામ આપે છે.
Think first
મશીનો માટે MQTT શા માટે, અને 6LoWPAN ખરેખર શું આપે છે?
બે think-first questions એકમાં: (a) HTTP એ આખા web ને serve કર્યું: IoT ના devices માટે MQTT શા માટે જોઈતું હતું? (b) એક વાક્યમાં: 6LoWPAN plain IPv6 પર શું exactly add કરે છે? Answers commit કરો, પછી tap કરો.
Show the answer
(a) HTTP comparatively heavy છે: verbose headers, દરેક exchange માટે ask-and-answer: browsers માટે fine, 20 bytes બોલતા coin-cell sensor માટે expensive. MQTT design દ્વારા minimal છે અને nature દ્વારા publish-subscribe છે: sensor તેનું topic publish કરે છે અને sleep કરે છે; જેને care હોય એ broker પર subscribe કરે છે: less power, less traffic, sensor ક્યારેય track નથી કરતું કે કોણ listen કરે છે. (b) 6LoWPAN IPv6 packets ને low-power WPAN frames માં fit થવા compress કરે છે: ખૂબ નાના devices માટે internet citizenship. બંને answers same theme છે: IoT protocols ordinary internet ideas છે, tiny devices માટે slimmed.
Watch out
Protocol-zoo slips
Flat-list answers: 3 roles વગરના 9 names memorisation લાગે છે; family દ્વારા group કરો (link, network, application) અને દરેક name ને તેનો why મળે છે.
WiFi vs WiMAX: local area vs metro area: M એ missing kilometres માટે છે.
MQTT ને link protocol માનવો: એ application layer પર MESSAGES structure કરે છે અને જે link હોય તેના પર ride કરે છે: layers, alternatives નહીં.
"IPv6 IPv4 કરતાં faster છે": win એ ADDRESS SPACE (128-bit) છે, speed નહીં: addresses લખો, mark collect કરો.
Theory
એક decision, ત્રણ questions
નવું SmartHostel device fit કરવું હંમેશા same interview છે: power અને range budget શું છે? (link family પસંદ કરે છે) : શું એને ક્યાંયથી individually addressable હોવું જોઈએ? (IPv6/6LoWPAN) : conversation publish-and-forget છે કે live two-way stream? (MQTT vs WebSocket). Next lesson hardware ને છોડીને LOGICAL design પર જાય છે: IoT ના functional blocks અને 4 communication models: જ્યાં MQTT ના publish-subscribe idea ને formal seat મળે છે.
Summary
Key takeaways
- Physical design = things (identifiable sense-act-communicate devices) + તેમના protocols, role દ્વારા organise કરેલા.
- Link family bits move કરે છે: Ethernet (wired), WiFi (WLAN), WiMAX (metro), LR-WPAN 802.15.4 (low-power sensors), 2G/3G/4G (wide area).
- Network family addresses આપે છે: IPv6 નું 128-bit space દરેક thing ને cover કરે છે; 6LoWPAN tiny devices માટે IPv6 ને compress કરે છે.
- Application family converse કરે છે: MQTT (broker દ્વારા lightweight publish-subscribe), WebSocket (persistent full-duplex stream).
- Constraints દ્વારા choose કરો: links માટે power + range + data size; application protocols માટે conversation shape.
- Layers stack થાય છે: MQTT link પર ride કરે છે, link ને replace નથી કરતો.
- Memory hook: move, address, converse: three families, one wardrobe.