Lecture 02 · E2C Continuum and Cloud Computing
المحاضرة 02 · استمرارية E2C والحوسبة السحابية
Edge, fog, cloud roles: IoT hierarchy and vehicle platoon
أدوار edge وfog وcloud: هرمية إنترنت الأشياء (IoT) وقافلة المركبات
P1 MUSTThree layers, each with a job list you must be able to recite, then two worked examples that test whether you can place real devices on the right layer. The roadside unit is the question most people get wrong.
ثلاث طبقات، لكل منها قائمة مهام يجب أن تستطيع سردها، ثم مثالان تطبيقيان يختبران قدرتك على وضع أجهزة حقيقية في الطبقة الصحيحة. ووحدة جانب الطريق (RSU) هي السؤال الذي يخطئ فيه أغلب الطلاب.
Edge serves the client, fog serves many edges, cloud serves everyone.
Edge يخدم العميل، وfog يخدم عدة edges، وcloud يخدم الجميع.
The fog layer (slide 10)
طبقة fog (الشريحة 10)
The fog provides compute, storage and networking at critical points closer to the client on the latency continuum. Physically it is a mini data center. Its defining fact: it serves multiple lower (edge) layers. Every benefit follows from that sharing.
الـ fog يقدّم compute وstorage وnetworking عند نقاط حرجة أقرب إلى العميل على latency continuum. وهو فعلياً mini data center، أي مركز بيانات مصغّر. والحقيقة التي تعرّفه: أنه يخدم عدة طبقات أدنى منه (طبقات edge). وكل فوائده تنبع من هذه المشاركة.
1. Less edge-to-cloud transfer
1. نقل أقل بين edge والسحابة
Filters and aggregates locally, so it minimizes latency and reduces bandwidth usage.
يرشّح البيانات ويجمّعها محلياً، فيقلّل latency ويخفّض استهلاك bandwidth.
2. Data geo-restriction
2. تقييد البيانات جغرافياً (geo-restriction)
Data is processed inside a specific geographic region to comply with legal or privacy requirements.
تُعالَج البيانات داخل منطقة جغرافية محددة للامتثال للمتطلبات القانونية أو متطلبات الخصوصية.
3. Shorter edge-to-edge paths
3. مسارات أقصر بين edge وedge
Two edges under one fog talk through it, without relying on cloud-based interactions.
طبقتا edge تحت نفس fog تتواصلان عبره، دون الاعتماد على تفاعلات تمر بالسحابة.
Worked: what the fog saves
مثال محلول: ما الذي يوفّره fog
a city has 200 traffic cameras, each streaming 4 Mbps WITHOUT a fog, every stream goes to the cloud 200 x 4 Mbps = 800 Mbps (around the clock) WITH a fog node in the district it runs vehicle detection on all 200 streams and forwards only events: one 2 kB record per camera per second 2 kB x 8 = 16 kbit per second per camera 200 x 16 kbit/s = 3,200 kbit/s = 3.2 Mbps saving 800 / 3.2 = 250 times less traffic to the cloud
Watch the units: kB to kbit multiplies by 8, and 1,000 kbit/s is 1 Mbps.
انتبه للوحدات: التحويل من kB إلى kbit يعني الضرب في 8، و1,000 kbit/s تساوي 1 Mbps. فبدلاً من 800 Mbps من الفيديو الخام، يصل إلى السحابة 3.2 Mbps فقط من الأحداث، أي أقل بـ 250 مرة.
The edge layer (slide 11)
طبقة edge (الشريحة 11)
In this course the edge is not just the end device. It is the layer at the physical boundary of the WAN. Four roles, all from the slide:
في هذا المقرر، edge ليس مجرد الجهاز النهائي، بل هو الطبقة الواقعة على الحد المادي لشبكة WAN. وله أربعة أدوار كلها من الشريحة:
- WAN boundary. It sits on the physical boundary of the WAN that extends the cloud over the latency continuum.
حدّ WAN. يقع على الحد المادي لشبكة WAN التي تمدّ السحابة على طول latency continuum.
- Offload target. The client can offload compute jobs: computation is done on the edge for the client.
وجهة للتفريغ (offload). يستطيع العميل أن يرسل إليه مهام حوسبة، فتُنفَّذ على edge نيابة عنه.
- Small data, reasonable speed. It lets the client process small amounts of data at reasonable speeds.
بيانات صغيرة بسرعة معقولة. يتيح للعميل معالجة كميات صغيرة من البيانات بسرعات معقولة.
- Gateway that hides the fog. It is the client's gateway to the fog layer, and it hides the fog from the client, like an HTTP reverse proxy.
بوابة تُخفي fog. هو بوابة العميل إلى طبقة fog، ويُخفيها عنه، تماماً مثل reverse proxy في HTTP. فالعميل يعرف عنواناً واحداً فقط، ويمكن تغيير عُقد fog دون أن يلاحظ.
The cloud layer (slide 12)
طبقة cloud (الشريحة 12)
The cloud provides compute, storage and networking at a bigger scale. Three "bigs", each with its slide meaning:
السحابة تقدّم compute وstorage وnetworking على نطاق أكبر. ثلاثة أشياء "كبيرة"، ولكل منها معناه في الشريحة:
| Big ..."Big" ... | Meansالمعنى | Exampleمثال |
|---|---|---|
| Big computeBig compute | high-performance computing (HPC)الحوسبة عالية الأداء (HPC) | training a model on thousands of GPUsتدريب نموذج على آلاف وحدات GPU |
| Big storageBig storage | big dataالبيانات الضخمة (big data) | years of history from every regionسنوات من البيانات التاريخية من كل منطقة |
| Big networkingBig networking | multi-cloud connectivityالربط بين عدة سحابات (multi-cloud connectivity) | dedicated links between cloud providersروابط مخصصة بين مزوّدي السحابة |
طابِق كل "كبير" بمعناه: big compute يعني HPC، وbig storage يعني big data، وbig networking يعني multi-cloud connectivity، أي الربط بين عدة سحابات. هذه مطابقة ثلاثية مرشّحة بقوة لسؤال الامتحان.
| Layerالطبقة | Primary role (slide 12)الدور الأساسي (الشريحة 12) | Example use caseمثال استخدام |
|---|---|---|
| EdgeEdge | immediate processing near the clientمعالجة فورية قرب العميل | smart home hubs handling voice commandsأجهزة المنزل الذكي المركزية التي تعالج الأوامر الصوتية |
| FogFog | intermediate layer for local regionsطبقة وسيطة للمناطق المحلية | traffic management processing nearby vehicle dataإدارة المرور بمعالجة بيانات المركبات القريبة |
| CloudCloud | centralized, large-scale processingمعالجة مركزية واسعة النطاق | AI model training in centralized data centersتدريب نماذج الذكاء الاصطناعي في مراكز بيانات مركزية |
هذا جدول الشريحة 12: edge للمعالجة الفورية قرب العميل (مثل مساعد صوتي منزلي)، وfog طبقة وسيطة للمناطق المحلية (مثل إدارة المرور من بيانات المركبات القريبة)، وcloud للمعالجة المركزية واسعة النطاق (مثل تدريب نماذج الذكاء الاصطناعي). لاحظ أن الأمثلة تكبر نطاقاً من عميل واحد إلى منطقة إلى الجميع.
Example 1: the IoT hierarchy (slide 13)
المثال 1: هرمية إنترنت الأشياء (الشريحة 13)
Edge devices sense, edge gateways provide local processing, fog nodes coordinate regionally, and the cloud analyses globally.
أجهزة edge تستشعر (sense)، وبوابات edge تقدّم معالجة محلية، وعُقد fog تنسّق إقليمياً، وcloud يحلّل عالمياً.
one cold-storage reading moves up the tree (limit: 8 C)
SENSE thermometer reads 9 C, sends it to the gateway
PROCESS gateway compares 9 > 8, switches on the backup
cooler at once. nothing has left the building.
COORDINATE gateway sends a short alarm (not the raw stream)
to the regional fog node, which reroutes today's
deliveries away from the warm warehouse
ANALYSE fog sends a daily summary to the cloud, which
learns from a year of data which compressors fail
reading -> alarm -> summary (smaller at every step)
Example 2: the vehicle platoon (slide 14)
المثال 2: قافلة المركبات (الشريحة 14)
| Elementالعنصر | Layerالطبقة | Job on the slideدوره في الشريحة |
|---|---|---|
| Each carكل سيارة | edgeedge | an individual edge node processing data from its own sensors in real timeعقدة edge مستقلة تعالج بيانات حسّاساتها الخاصة لحظياً |
| RSU (roadside unit)RSU (وحدة جانب الطريق) | fogfog | deployed along the roadside, informing cars about a traffic jam aheadمنتشرة على جانب الطريق، تُخبر السيارات بوجود ازدحام مروري أمامها |
| RSUC (RSU controller)RSUC (وحدة التحكم في RSU) | fogfog | manages the RSUs, more compute and storage, links them to the cloudتدير وحدات RSU، ولديها قدرة حوسبة وتخزين أكبر، وتربطها بالسحابة |
| Cloudالسحابة | cloudcloud | global coordination, long-term storage and HPC, but with higher latencyتنسيق عالمي وتخزين طويل المدى وHPC، لكن بزمن تأخير أعلى |
الجدول يربط كل عنصر بطبقته: كل سيارة عقدة edge تعالج بيانات حسّاساتها لحظياً، وتتواصل السيارات مباشرة عبر V2V. ووحدة جانب الطريق (RSU) ووحدة التحكم بها (RSUC) كلاهما في fog، فالـ RSU تُخبر السيارات بازدحام أمامها، والـ RSUC تدير الوحدات وتربطها بالسحابة. والسحابة تقدّم التنسيق العالمي والتخزين طويل المدى وHPC، لكن بزمن تأخير أعلى.
why the braking loop stays on the car: d = v x t platoon at 108 km/h = 30 m/s (illustrative latencies) decision in the cloud, 60 ms d = 30 x 0.060 = 1.80 m decision via an RSU, 5 ms d = 30 x 0.005 = 0.15 m decision on car / V2V, 1 ms d = 30 x 0.001 = 0.03 m the RSU saves 1.80 - 0.15 = 1.65 m of gap versus the cloud
Distance in the network becomes distance on the road. The fastest loop stays on the edge.
المسافة في الشبكة تتحول إلى مسافة على الطريق. عند 30 m/s، انتظار 60 ms من السحابة يكلّف 1.8 m، بينما يكلّف القرار على السيارة 0.03 m فقط. لذلك تبقى الحلقة الأسرع على edge.
The RSU is fog, not edge. It sits on the roadside and serves many cars (many edges), which is the definition of fog. The cars are the edge. Slide 14 labels the RSU, RSUC, RSU box as the Fog Layer.
الـ RSU في fog وليس في edge. فهي تقع على جانب الطريق وتخدم سيارات كثيرة (أي edges كثيرة)، وهذا هو تعريف fog. أما السيارات فهي edge. والشريحة 14 تسمّي مربع RSU, RSUC, RSU صراحة Fog Layer.
The four verbs in order. Sense (devices), process locally (gateways), coordinate regionally (fog), analyse globally (cloud). Swapping "coordinate" and "process" is the usual matching slip.
الأفعال الأربعة بالترتيب. الاستشعار (الأجهزة)، والمعالجة المحلية (البوابات)، والتنسيق الإقليمي (fog)، والتحليل العالمي (cloud). وتبديل "التنسيق" و"المعالجة" هو الخطأ المعتاد في المطابقة.
Fog serves many edges; it does not replace the cloud. The layers are complementary. Global, long-term analysis still needs the cloud.
Fog يخدم عدة edges، ولا يحلّ محل السحابة. الطبقات متكاملة، والتحليل العالمي طويل المدى ما زال يحتاج السحابة.
Check yourself
اختبر نفسك
In the vehicle platoon of slide 14, which layer does a roadside unit (RSU) belong to?
في مثال قافلة المركبات بالشريحة 14، إلى أي طبقة تنتمي وحدة جانب الطريق (RSU)؟
The slide labels RSUs as fog nodes deployed along the roadside, informing cars about a traffic jam ahead. One RSU serves many edges (cars), which is the fog's role. Each car is the edge node.
الشريحة تصف وحدات RSU بأنها عُقد fog منتشرة على جانب الطريق تُخبر السيارات بازدحام أمامها. والوحدة الواحدة تخدم عدة edges (سيارات)، وهذا دور fog. أما كل سيارة فهي عقدة edge.
200 cameras each stream 4 Mbps. A fog node forwards only one 2 kB event record per camera per second. What reaches the cloud?
200 كاميرا تبثّ كل منها 4 Mbps. عقدة fog تمرّر فقط سجل حدث واحد بحجم 2 kB لكل كاميرا في الثانية. ما الذي يصل إلى السحابة؟
2 kB x 8 = 16 kbit per camera per second; 200 x 16 kbit/s = 3,200 kbit/s = 3.2 Mbps. Raw would be 200 x 4 = 800 Mbps, so 800 / 3.2 = 250x less. Options A and D forget to multiply bytes by 8.
2 kB × 8 = 16 kbit لكل كاميرا في الثانية، و200 × 16 kbit/s = 3,200 kbit/s = 3.2 Mbps. والبث الخام كان سيكون 200 × 4 = 800 Mbps، إذن 800 / 3.2 = 250 مرة أقل. والخياران A وD نسيا الضرب في 8 للتحويل من البايت إلى البت.
Which is NOT one of the fog benefits listed on slide 10?
أي مما يلي ليس من فوائد fog المذكورة في الشريحة 10؟
Multi-cloud connectivity is the cloud's "big networking" (slide 12). The fog's three benefits all come from serving many edges: less edge-to-cloud traffic, geo-restriction, shorter edge-to-edge paths.
Multi-cloud connectivity هي "big networking" الخاصة بالسحابة (الشريحة 12). أما فوائد fog الثلاث فكلها تنبع من خدمة عدة edges: نقل أقل بين edge والسحابة، وتقييد البيانات جغرافياً، ومسارات أقصر بين edges.
Match slide 13: "fog nodes ___ and the cloud ___".
طابِق الشريحة 13: "عُقد fog ___ والسحابة ___".
Edge devices sense, edge gateways provide local processing, fog nodes coordinate regionally, the cloud analyses globally.
أجهزة edge تستشعر، وبوابات edge تقدّم معالجة محلية، وعُقد fog تنسّق إقليمياً، والسحابة تحلّل عالمياً.
What does "the edge hides the fog from the client" mean (slide 11)?
ما معنى "edge يُخفي fog عن العميل" في الشريحة 11؟
The edge is the client's single door into the continuum, like a reverse proxy. Fog nodes can be added, moved or failed over without any change on the client. Option D is the opposite of hiding.
Edge هو الباب الوحيد للعميل إلى بقية continuum، مثل reverse proxy. ويمكن إضافة عُقد fog أو نقلها أو استبدالها دون أي تغيير عند العميل. والخيار D هو عكس الإخفاء تماماً.