Lecture 02 · E2C Continuum and Cloud Computing
المحاضرة 02 · استمرارية E2C والحوسبة السحابية
A continuum of latencies, and why the fog exists
استمرارية من أزمنة الاستجابة، ولماذا يوجد الـ fog
P1 MUSTPhysics puts a floor under latency. The cloud cannot move closer without losing its economics. The industry's answer is to send small copies of the data center out along the path, and that layer of small copies is the fog.
الفيزياء تضع حدّاً أدنى للتأخير. والسحابة لا تستطيع الاقتراب دون أن تخسر اقتصادياتها. وجواب الصناعة هو إرسال نسخ صغيرة من مركز البيانات على طول المسار، وطبقة هذه النسخ الصغيرة هي fog.
The E2C continuum is a continuum of latencies
استمرارية E2C هي استمرارية من أزمنة الاستجابة
Slide 2 defines the edge-to-cloud (E2C) continuum as a continuum of latencies between the client and the server. Edge, fog and cloud are not separate technologies. They are regions of one range, ordered by how long a request takes to reach them: small latency to the edge, medium to the fog, large to the cloud. Capacity grows in the same direction as latency.
تعرّف الشريحة 2 الـ edge-to-cloud (E2C) continuum بأنه سلسلة متصلة من قيم التأخير بين العميل والخادم. فـ edge وfog وcloud ليست تقنيات منفصلة، بل مناطق على مدى واحد، مرتّبة بحسب الزمن الذي يستغرقه الطلب للوصول إليها: تأخير صغير إلى edge، ومتوسط إلى fog، وكبير إلى cloud. والقدرة الحاسوبية تزداد في نفس اتجاه التأخير.
Slide 2's example is an autonomous vehicle. Edge: local processing handles immediate decisions such as obstacle detection (milliseconds, this car's own sensors). Fog: regional servers process aggregated data for route optimization (seconds, traffic from many cars). Cloud: historical data storage and AI model training (hours to days, the whole fleet). A layered approach balances speed against computational resources.
مثال الشريحة 2 هو السيارة ذاتية القيادة. Edge: المعالجة المحلية تتخذ القرارات الفورية مثل كشف العوائق (أجزاء من الثانية، حساسات السيارة نفسها). Fog: خوادم إقليمية تعالج البيانات المُجمّعة لتحسين المسار (ثوانٍ، حركة مرور من سيارات كثيرة). Cloud: تخزين البيانات التاريخية وتدريب نماذج الذكاء الاصطناعي (ساعات إلى أيام، الأسطول كله). والنهج الطبقي يوازن بين السرعة والموارد الحاسوبية.
The floor that distance sets
الحد الأدنى الذي تفرضه المسافة
A signal cannot beat the speed of light in its medium. In optical fiber (refractive index about 1.5), light travels at roughly v ≈ 200,000 km/s, two thirds of its speed in vacuum. A round trip covers the distance twice, so:
لا يمكن لأي إشارة أن تتجاوز سرعة الضوء في وسطها. في الألياف الضوئية (معامل الانكسار نحو 1.5)، ينتقل الضوء بسرعة تقارب v ≈ 200,000 km/s، أي ثلثي سرعته في الفراغ. والرحلة ذهاباً وإياباً تقطع المسافة مرتين، لذا:
الحد الأدنى لزمن الذهاب والإياب RTT هو 2d / v، حيث d هي المسافة وv سرعة الإشارة في الوسط. هذا حدّ أدنى قبل أي انتظار في الطوابير أو توجيه أو معالجة.
v = 200,000 km/s in fiber server 1,000 km away one way = 1,000 / 200,000 s = 0.005 s = 5 ms RTT >= 2 x 5 ms = 10 ms cloud region 4,000 km away RTT >= 2 x 4,000 / 200,000 s = 0.04 s = 40 ms fog site 50 km away RTT >= 2 x 50 / 200,000 s = 0.0005 s = 0.5 ms edge on the LAN, about 100 m RTT >= 2 x 0.1 / 200,000 s = 1 µs 4,000 km -> 50 km lowers the floor 80-fold (40 / 0.5).
Real paths sit well above the floor because every hop adds queuing, routing and processing. Satyanarayanan measured an average of 74 ms from 260 vantage points to their best Amazon EC2 region. A faster server shrinks PT; only placement shrinks this term.
المسارات الحقيقية أعلى بكثير من هذا الحد لأن كل قفزة تضيف انتظاراً وتوجيهاً ومعالجة. فقد قاس Satyanarayanan متوسطاً قدره 74 ms من 260 نقطة قياس إلى أفضل منطقة Amazon EC2 لكل منها. الخادم الأسرع يُقلّص PT، أما هذا الحد فلا يُقلّصه إلا تغيير مكان الخادم.
Can we move the cloud closer to the client?
هل يمكننا تقريب السحابة من العميل؟
Slide 3 asks it with a gaming example: a game hosted in a distant cloud lags; from a closer server the latency would drop significantly. Slide 4 answers: No. The cloud is a very complex system, very expensive, and centralized for economies of scale. A very large data center buys network, storage and administration at a fraction of the unit cost a medium one pays.
تطرح الشريحة 3 السؤال بمثال الألعاب: لعبة مستضافة في سحابة بعيدة تتأخر، ومن خادم أقرب سينخفض التأخير كثيراً. وتجيب الشريحة 4: لا. فالسحابة نظام معقد جداً، ومكلف جداً، ومركزي لتحقيق وفورات الحجم (economies of scale). مركز البيانات الضخم يشتري الشبكة والتخزين والإدارة بجزء من تكلفة الوحدة التي يدفعها مركز متوسط.
| Resource (2006)المورد (2006) | Medium DC (~1,000 servers)مركز بيانات متوسط (~1,000 خادم) | Very large DC (~50,000)مركز بيانات ضخم جداً (~50,000) | Ratioالنسبة |
|---|---|---|---|
| Networkالشبكة | $95 per Mbit/s per month$95 لكل Mbit/s شهرياً | $13 | 7.1x |
| Storageالتخزين | $2.20 per GB per month$2.20 لكل GB شهرياً | $0.40 | 5.7x |
| Administrationالإدارة | ≈ 140 servers per admin≈ 140 خادماً لكل مسؤول | > 1,000 | 7.1x |
يبيّن الجدول (من Armbrust et al.، تقرير "Above the Clouds") أن مركز البيانات الضخم أرخص لكل وحدة بنحو 5 إلى 7 أضعاف في الشبكة والتخزين والإدارة. لو قسّمت مركزاً عملاقاً إلى ألف موقع صغير لرميت هذه الميزة.
So the cloud stays where it is, and something smaller goes out instead: a mini cloud, or mini data center. In fact you can use multiple mini data centers at different locations on the latency continuum. Slide 4's example: CDNs like Netflix's deploy caches (mini data centers) closer to viewers. Netflix Open Connect places appliances at internet exchange points and inside ISP networks and pre-fills them off-peak, so popular titles are a few hops from the viewer.
لذلك تبقى السحابة مكانها، ويخرج بدلاً منها شيء أصغر: سحابة مصغّرة (mini cloud) أو مركز بيانات مصغّر (mini data center). بل يمكنك استخدام عدة مراكز بيانات مصغّرة في مواقع مختلفة على سلسلة التأخير. ومثال الشريحة 4: شبكات توصيل المحتوى (CDNs) مثل شبكة Netflix تنشر ذاكرات تخزين مؤقت (مراكز بيانات مصغّرة) قرب المشاهدين. فبرنامج Netflix Open Connect يضع أجهزته عند نقاط تبادل الإنترنت (IXP) وداخل شبكات مزوّدي الخدمة (ISP)، ويملؤها مسبقاً خارج أوقات الذروة، فتكون العناوين الشائعة على بُعد قفزات قليلة من المشاهد.
Naming the new layer: the fog
تسمية الطبقة الجديدة: الـ fog
Slide 5: the new layer containing mini data centers is called the fog. A mini data center is a scaled-down version of the big data center, bridging the gap between edge and cloud, and it provides compute, storage and networking. Example: a smart city uses fog nodes to process local traffic data, enabling real-time signal control without involving a distant cloud.
الشريحة 5: الطبقة الجديدة التي تحتوي المراكز المصغّرة تُسمّى fog (الضباب). والمركز المصغّر نسخة مصغّرة من مركز البيانات الكبير، يسدّ الفجوة بين edge وcloud، ويقدّم الحوسبة والتخزين والشبكات (compute, storage, networking). مثال: مدينة ذكية تستخدم عُقد fog لمعالجة بيانات المرور المحلية، فتتحكم بالإشارات لحظياً دون إشراك سحابة بعيدة.
Bonomi et al. (Cisco, 2012), who introduced the term, defined fog computing as a highly virtualized platform providing compute, storage and networking between end devices and cloud data centers. Its traits: low latency and location awareness, wide geographic distribution with a very large number of nodes, mobility and real-time support, heterogeneity, and a hierarchical structure in which higher tiers cover wider areas over longer time scales. The name is the joke: fog is a cloud close to the ground.
عرّف Bonomi et al. (Cisco، 2012)، الذين قدّموا المصطلح، حوسبة fog بأنها منصة شديدة الافتراضية تقدّم الحوسبة والتخزين والشبكات بين الأجهزة الطرفية ومراكز بيانات السحابة. ومن سماتها: تأخير منخفض ووعي بالموقع، وتوزّع جغرافي واسع (geo-distributed) بعدد كبير جداً من العُقد، ودعم التنقل والزمن الحقيقي، وعدم التجانس، وبنية هرمية (hierarchical) تغطي فيها المستويات الأعلى مساحات أوسع على مقاييس زمنية أطول. والاسم نفسه نكتة: fog هي سحابة قريبة من الأرض.
Fog
الـ Fog
Hierarchical, multi-layer architecture. Computation and networking, plus storage, control and data-processing acceleration. Sits between smart end-devices and centralized cloud services.
بنية هرمية متعددة الطبقات. حوسبة وشبكات، إضافة إلى التخزين والتحكم وتسريع معالجة البيانات. تقع بين الأجهزة الطرفية الذكية وخدمات السحابة المركزية.
Edge
الـ Edge
Limited to a small number of peripheral devices. Runs specific applications in a fixed logic location, with a direct transmission service. Next to the users.
مقتصرة على عدد صغير من الأجهزة الطرفية. تشغّل تطبيقات محددة في موقع منطقي ثابت، مع خدمة نقل مباشر. وتقع بجوار المستخدمين.
This comparison follows NIST SP 500-325 Annex A. Note one terminology difference: the slides draw the edge as a point just beside the client, while NIST uses "edge" for the end-device layer itself. State which usage you follow in a written answer.
تتبع هذه المقارنة الملحق A من NIST SP 500-325. ولاحظ فرقاً في المصطلحات: الشرائح ترسم edge كنقطة بجوار العميل مباشرة، بينما يستخدم NIST كلمة "edge" لطبقة الأجهزة الطرفية نفسها. اذكر أي الاستخدامين تتبع في إجابتك المكتوبة.
"Move the cloud servers closer" is not the answer. The lecture says no: the cloud is centralized for economies of scale (roughly 5 to 7 times cheaper per unit). The answer is mini data centers, a cached slice of the cloud, placed along the path.
"انقل خوادم السحابة إلى مكان أقرب" ليست الإجابة. المحاضرة تقول لا: السحابة مركزية لتحقيق وفورات الحجم (أرخص لكل وحدة بنحو 5 إلى 7 أضعاف). والإجابة هي مراكز بيانات مصغّرة، أي شريحة مخزّنة من السحابة، موضوعة على طول المسار.
"Fog and edge are synonyms" is false. Fog is hierarchical and multi-layer and adds storage, control and acceleration. Edge is limited to a few peripheral devices running fixed applications. Vendors blur the words; your answers should not.
عبارة "fog وedge مترادفان" خاطئة. fog هرمية ومتعددة الطبقات وتضيف التخزين والتحكم والتسريع، أما edge فمقتصرة على عدد قليل من الأجهزة الطرفية التي تشغّل تطبيقات ثابتة. الشركات تخلط بين الكلمتين، وإجاباتك يجب ألا تفعل.
A mini data center is not a full cloud. It holds a cached subset of state and services; authoritative data and heavy jobs stay central.
المركز المصغّر ليس سحابة كاملة. إنه يحمل مجموعة جزئية مخزّنة مؤقتاً من البيانات والخدمات، أما البيانات المرجعية والمهام الثقيلة فتبقى مركزية.
"Fog is a low cloud." Weather fog is the same water as a cloud, sitting at ground level where people walk through it. Fog computing is the same compute, storage and networking as the cloud, sitting low enough that clients touch it. And for the floor: 1,000 km of fiber costs at least 10 ms round trip.
"Fog is a low cloud." الضباب في الطقس هو نفس ماء السحاب، لكنه على مستوى الأرض حيث يمشي الناس داخله. وحوسبة fog هي نفس الحوسبة والتخزين والشبكات في السحابة، لكنها منخفضة بما يكفي ليلمسها العملاء. وللحدّ الأدنى: 1,000 km من الألياف تكلّف على الأقل 10 ms ذهاباً وإياباً.
Check yourself
اختبر نفسك
A server is 1,000 km away over fiber (v ≈ 200,000 km/s). What is the minimum RTT?
خادم على بُعد 1,000 km عبر الألياف (v ≈ 200,000 km/s). ما الحد الأدنى لـ RTT؟
RTT ≥ 2d/v = 2 × 1,000 / 200,000 s = 0.01 s = 10 ms. Option A is the one-way time (forgot the factor 2). Option C uses the vacuum speed of light, 300,000 km/s, instead of the fiber speed.
RTT ≥ 2d/v = 2 × 1,000 / 200,000 s = 0.01 s = 10 ms. والخيار A هو زمن الاتجاه الواحد (نسي المعامل 2). والخيار C يستخدم سرعة الضوء في الفراغ 300,000 km/s بدلاً من سرعته في الألياف.
Why does the lecture reject moving the whole cloud closer to clients?
لماذا ترفض المحاضرة نقل السحابة كلها إلى مكان أقرب من العملاء؟
Large centralized data centers get network, storage and administration at roughly 5 to 7 times lower unit cost. Option A is wrong: latency does fall with distance, which is exactly why mini data centers are worth placing.
مراكز البيانات المركزية الكبيرة تحصل على الشبكة والتخزين والإدارة بتكلفة وحدة أقل بنحو 5 إلى 7 أضعاف. والخيار A خاطئ: فالتأخير ينخفض فعلاً مع المسافة، ولهذا بالضبط تستحق المراكز المصغّرة أن تُنشر.
True or false: "Fog and edge are two names for the same layer."
صح أم خطأ: "fog وedge اسمان لنفس الطبقة."
NIST SP 500-325 Annex A separates them. Fog sits between end-devices and the cloud, is hierarchical, and adds storage, control and acceleration. Option D reverses the order: the edge is nearest the client, then fog, then cloud.
يفصل الملحق A من NIST SP 500-325 بينهما. fog تقع بين الأجهزة الطرفية والسحابة، وهي هرمية، وتضيف التخزين والتحكم والتسريع. والخيار D يعكس الترتيب: edge الأقرب إلى العميل، ثم fog، ثم cloud.
Which services does a mini data center in the fog layer provide, according to slide 5?
ما الخدمات التي يقدّمها المركز المصغّر في طبقة fog وفقاً للشريحة 5؟
A mini data center is a scaled-down version of the big data center, so it offers all three classic services. A CDN cache is one use of it, but the definition is the full trio.
المركز المصغّر نسخة مصغّرة من مركز البيانات الكبير، لذا يقدّم الخدمات الكلاسيكية الثلاث كلها. وذاكرة CDN المؤقتة استخدام واحد له، لكن التعريف يشمل الثلاث معاً.
Autonomous vehicle: match "process aggregated traffic data from many cars for route optimization" to its layer.
السيارة ذاتية القيادة: طابق "معالجة بيانات المرور المجمّعة من سيارات كثيرة لتحسين المسار" مع طبقتها.
Slide 2: edge handles immediate decisions such as obstacle detection, fog (regional servers) handles aggregated data for route optimization, cloud handles historical storage and AI model training. The data scope (a region of cars) and the deadline (seconds) both point to fog.
الشريحة 2: edge تتولى القرارات الفورية مثل كشف العوائق، وfog (الخوادم الإقليمية) تتولى البيانات المجمّعة لتحسين المسار، وcloud تتولى التخزين التاريخي وتدريب النماذج. ونطاق البيانات (منطقة من السيارات) والموعد (ثوانٍ) يشيران كلاهما إلى fog.