Lecture 01 · Introduction

المحاضرة 01 · مقدمة

Edge, fog and cloud: seven stages on one line

Edge وfog وcloud: سبع مراحل على خط واحد

Slides 56–60 الشرائح 56–60 P1 MUST

The server is no longer one box at the far end of the wire. It is any point on a line from your hand to a hyperscale data center, and every step outward trades latency for horsepower.

لم يعد الخادم صندوقاً واحداً في الطرف البعيد من السلك. بل هو أي نقطة على خط يمتد من يدك إلى مركز بيانات ضخم، وكل خطوة نحو الخارج تبادل زمن الانتقال بقدرة المعالجة.

Developers now face a continuum

المطوّرون يواجهون الآن سلسلة متصلة

Slide 56 puts layers 1, 2 and 3 between the client and the server and calls the line a continuum of latencies. The same service, running the same code, can make one user happy and another angry. The only difference is where the service runs relative to each of them.

تضع الشريحة 56 الطبقات 1 و2 و3 بين العميل والخادم، وتسمّي الخط سلسلة متصلة من أزمنة الانتقال (continuum of latencies). الخدمة نفسها، بالكود نفسه، قد تُسعد مستخدماً وتُغضب آخر. والفرق الوحيد هو مكان تشغيل الخدمة بالنسبة لكل منهما.

The slide's example: Netflix caches video closer to users (at layer 1 or 2) so playback starts without buffering. The file is the same size and the phone decodes it at the same speed. The cache only shortens the path, which cuts propagation delay and the number of queues on the way.

مثال الشريحة: تخزّن Netflix الفيديو مؤقتاً قرب المستخدمين (في الطبقة 1 أو 2) ليبدأ التشغيل بلا تقطيع. حجم الملف كما هو، والهاتف يفك ترميزه بالسرعة نفسها. التخزين المؤقت يقصّر المسار فقط، فيقلّ propagation delay وعدد الطوابير في الطريق.

Three layers, seven stages

ثلاث طبقات وسبع مراحل

Slide 57 names the Edge-to-Cloud (E2C) continuum. Three standard layers:

تسمّي الشريحة 57 هذا الخط Edge-to-Cloud (E2C) continuum. وفيه ثلاث طبقات قياسية:

Each layer splits into sublayers:

وكل طبقة تنقسم إلى طبقات فرعية:

LayerالطبقةSublayersالطبقات الفرعية
CloudRegions, Availability Zonesالمناطق (Regions) ومناطق التوافر (Availability Zones)
FogRegional or metro nodes, micro data centers, aggregation nodesعقد إقليمية أو حضرية (metro)، ومراكز بيانات صغيرة، وعقد تجميع
EdgeMist, Near edge (home routers), Far edge (nearby telco data center)Mist، وNear edge (موجّهات المنازل)، وFar edge (مركز بيانات اتصالات قريب)

الجدول: Cloud تنقسم إلى Regions وAvailability Zones. وFog تنقسم إلى عقد إقليمية أو حضرية (metro)، ومراكز بيانات صغيرة (micro data centers)، وعقد تجميع (aggregation nodes). وEdge تنقسم إلى Mist، وNear edge (موجّهات المنازل)، وFar edge (مركز بيانات قريب لشركة اتصالات).

Device → Mist → Near Edge → Far Edge → Fog → Regional Cloud → Cloud

السلسلة: Device → Mist → Near Edge → Far Edge → Fog → Regional Cloud → Cloud.

THE E2C CHAIN, FROM THE USER OUTWARD 1 2 3 4 5 6 7 Device Mist Near edge Far edge Fog Regional cloud Cloud doorbell sensor chip home router telco DC metro micro DC nearby region hyperscale AZs EDGE FOG CLOUD processing power and storage grow outward latency also grows outward: small, medium, large
Seven stages fold into three layers. Both arrows point the same way: every step outward buys capacity and costs latency.سبع مراحل تنطوي في ثلاث طبقات. والسهمان يشيران في الاتجاه نفسه: كل خطوة نحو الخارج تشتري سعة وتكلّف زمن انتقال.

The comparison table (slide 58)

جدول المقارنة (الشريحة 58)

LocationالموقعProximityالقربResourcesالمواردTypical roleالدور المعتاد
MistClosestالأقربVery limitedمحدودة جداًImmediate, local decisionsقرارات فورية محلية
Near edgeVery closeقريب جداًLimited to moderateمحدودة إلى متوسطةLocal processingمعالجة محلية
Far edgeCloseقريبModerate to highمتوسطة إلى عاليةLow-latency applicationsتطبيقات منخفضة زمن الانتقال
Fog / regionalIntermediateمتوسطHighعاليةAggregation, coordinationالتجميع والتنسيق
CloudDistantبعيدVery highعالية جداًLarge-scale computation and storageحوسبة وتخزين واسعا النطاق

جدول الشريحة 58: Mist الأقرب، بموارد محدودة جداً، لقرارات فورية محلية. Near edge قريب جداً، بموارد محدودة إلى متوسطة، للمعالجة المحلية. Far edge قريب، بموارد متوسطة إلى عالية، للتطبيقات منخفضة زمن الانتقال. Fog / regional في الوسط، بموارد عالية، للتجميع والتنسيق. Cloud بعيد، بموارد عالية جداً، للحوسبة والتخزين واسعَي النطاق.

Read it top to bottom: proximity falls while resources rise. The role column follows from the resources column. An immediate decision needs no network, so it fits on a tiny chip. Aggregation needs a view of many sources, so it lives where many streams meet. Large-scale work needs pooled capacity, so it lives in a data center.

اقرأه من الأعلى إلى الأسفل: القرب يتناقص والموارد تتزايد. وعمود الدور ينتج عن عمود الموارد. القرار الفوري لا يحتاج شبكة، فيكفيه شريحة صغيرة. والتجميع يحتاج رؤية مصادر كثيرة، فيعيش حيث تلتقي التدفقات. والعمل الواسع يحتاج سعة مجمّعة، فيعيش في مركز بيانات.

The core trade المقايضة الأساسية

Closer means lower latency but smaller hardware. Slide 59: small latency to the edge, medium to the fog, large to the cloud. Slide 60: microcontroller boards at the edge, a mini data center in the fog, a full data center in the cloud, with processing power and storage increasing outward.

الأقرب يعني زمن انتقال أقل لكن عتاداً أصغر. الشريحة 59: زمن صغير إلى edge، ومتوسط إلى fog، وكبير إلى cloud. الشريحة 60: لوحات متحكمات دقيقة في edge، ومركز بيانات صغير في fog، ومركز بيانات كامل في cloud، وقدرة المعالجة والتخزين تزداد نحو الخارج.

The placement rule

قاعدة التوزيع

Slide 60 says developers must decide where to place computation and storage depending on three inputs: latency requirements, processing needs, and cost. Turn that into one rule:

تقول الشريحة 60 إن المطوّرين يجب أن يقرروا مكان الحوسبة والتخزين بناءً على ثلاثة مدخلات: متطلبات زمن الانتقال، واحتياجات المعالجة، والتكلفة. حوّل ذلك إلى قاعدة واحدة:

Put each task on the closest layer that has enough resources; forward only what needs more.

ضع كل مهمة في أقرب طبقة لديها موارد كافية، ولا تُرسل إلى الخارج إلا ما يحتاج أكثر.

The slide's three examples line up with that rule: a smart camera processing video locally to detect motion (edge), processing sensor data (fog), running AI models (cloud). Treat these as tendencies: model training belongs in the cloud, but inference increasingly runs on edge boards.

أمثلة الشريحة الثلاثة تتفق مع القاعدة: كاميرا ذكية تعالج الفيديو محلياً لاكتشاف الحركة (edge)، ومعالجة بيانات الحساسات (fog)، وتشغيل نماذج الذكاء الاصطناعي (cloud). اعتبرها ميولاً لا قواعد: تدريب النماذج مكانه cloud، لكن الاستدلال (inference) يعمل بشكل متزايد على لوحات edge.

Worked مثال محلول
a neighbourhood of smart doorbell cameras

  task                                   layer      why
  detect motion in each frame            edge       instant, cheap, sends nothing while idle
  correlate events from 200 homes        fog        needs many sources, still close
  train recognition model, keep clips    cloud      pooled compute, huge storage,
                                                    latency not critical

One application, three layers. Each task sits on the closest layer that can carry it, and raw video never crosses the wide-area network.

تطبيق واحد وثلاث طبقات. كل مهمة في أقرب طبقة تستطيع حملها، والفيديو الخام لا يعبر الشبكة الواسعة أبداً.

Real products at each layer

منتجات حقيقية في كل طبقة

ProductالمنتجLayerالطبقةWhat it isما هو
AWS WavelengthFar edge (telco)Far edge (اتصالات)AWS compute and storage inside carriers' 5G networksحوسبة وتخزين AWS داخل شبكات 5G لشركات الاتصالات
AWS Local ZonesFar edge (metro)Far edge (حضري)AWS resources near large population centres for gaming, live streaming, AR/VRموارد AWS قرب التجمعات السكانية الكبيرة للألعاب والبث المباشر وAR/VR
Cloudflare WorkersFar edge (metro)Far edge (حضري)Code in lightweight isolates in hundreds of cities, about 95% of users within 50 msكود في isolates خفيفة في مئات المدن، ونحو 95% من المستخدمين ضمن 50 ms
Azure Stack EdgeOn-premises edge or fogedge أو fog داخل المنشأة1U appliance with GPUs, used for private MEC (the ETSI multi-access edge computing standard)جهاز 1U مزوّد بـ GPU، يُستخدم لـ MEC الخاص (معيار ETSI للحوسبة الطرفية متعددة الوصول)
AWS Regions and AZsCloudA Region holds several isolated Availability Zones, each one or more data centers within 100 km of each otherالمنطقة (Region) تضم عدة مناطق توافر معزولة (Availability Zones)، كل منها مركز بيانات أو أكثر، ضمن 100 km من بعضها

الجدول: AWS Wavelength في far edge لدى شركات الاتصالات، حوسبة وتخزين داخل شبكات 5G. وAWS Local Zones في far edge الحضري، قرب المدن الكبيرة للألعاب والبث وAR/VR. وCloudflare Workers في far edge الحضري، كود في isolates خفيفة في مئات المدن، ونحو 95% من المستخدمين ضمن 50 ms. وAzure Stack Edge في edge أو fog داخل المنشأة، جهاز 1U مع GPU لـ MEC الخاص (معيار ETSI). وAWS Regions وAZs في cloud: المنطقة تضم عدة مناطق توافر معزولة، كل منها مركز بيانات أو أكثر، ضمن 100 km من بعضها.

Drill: put the seven stages in order

تمرين: رتّب المراحل السبع

Cover the right column and fill the order from memory, then match each example to its stage.

غطِّ العمود الأيمن واكتب الترتيب من الذاكرة، ثم طابق كل مثال مع مرحلته.

#StageالمرحلةCoarse layerالطبقة العامةExampleمثال
1Device(the client itself)(العميل نفسه)phone, doorbell, smartwatchهاتف، جرس باب، ساعة ذكية
2MistEdgesensor microcontroller beside the deviceمتحكم دقيق للحساس بجوار الجهاز
3Near edgeEdgehome Wi-Fi router, on-site gatewayموجّه Wi-Fi منزلي، بوابة في الموقع
4Far edgeEdgenearby telco DC, AWS Wavelength Zoneمركز بيانات اتصالات قريب، AWS Wavelength Zone
5FogFogmetro micro data center, aggregation nodeمركز بيانات صغير حضري، عقدة تجميع
6Regional cloudClouda cloud region near the user's countryمنطقة سحابية قرب بلد المستخدم
7CloudCloudhyperscale Availability Zonesمناطق توافر ضخمة (hyperscale)

الترتيب: 1 Device (العميل نفسه: هاتف أو جرس باب أو ساعة)، 2 Mist (متحكم الحساس بجوار الجهاز)، 3 Near edge (موجّه Wi-Fi المنزلي)، 4 Far edge (مركز بيانات اتصالات قريب، AWS Wavelength Zone)، 5 Fog (مركز بيانات صغير حضري)، 6 Regional cloud (منطقة سحابية قرب بلد المستخدم)، 7 Cloud (مناطق توافر ضخمة).

Device Mist Near edge Far edge Fog Regional cloud Cloud
Memory hook مفتاح للتذكر

"Do My Neighbours Feel Foggy Regarding Clouds?" Device, Mist, Near, Far, Fog, Regional, Cloud. Near comes before Far because you name them walking away from the user.

"Do My Neighbours Feel Foggy Regarding Clouds?" الأحرف الأولى: Device, Mist, Near, Far, Fog, Regional, Cloud. وNear قبل Far لأنك تسمّيها وأنت تبتعد عن المستخدم.

Exam traps فخاخ الامتحان

Near and far edge are relative to a viewpoint. This lecture names them from the user: near = home router, far = telco data center. Telco writing (Red Hat, for example) names them from the core and can flip them. In this exam, follow the slides.

Near edge وfar edge نسبيان حسب نقطة النظر. هذه المحاضرة تسمّيهما من جهة المستخدم: near = موجّه المنزل، وfar = مركز بيانات الاتصالات. وكتابات شركات الاتصالات (مثل Red Hat) تسمّيهما من جهة النواة وقد تعكسهما. في هذا الامتحان اتبع الشرائح.

A faster cloud server cannot remove propagation delay. Latency to the cloud is bounded by distance ÷ c. More bandwidth or 5G shrinks transmission and the first hop, not the thousands of kilometres of fiber. Only moving work closer helps.

خادم سحابي أسرع لا يزيل propagation delay. زمن الانتقال إلى cloud محدود بـ المسافة ÷ c. وbandwidth الأكبر أو 5G يقلّصان transmission والقفزة الأولى، لا آلاف الكيلومترات من الألياف. الحل الوحيد هو تقريب العمل.

Matching products to layers. Wavelength = far edge in a 5G carrier network. Local Zones and Cloudflare Workers = far edge in metro sites. Azure Stack Edge = on-premises edge (MEC). Regions and AZs = cloud. An Availability Zone is a cloud sublayer, not a fog node.

مطابقة المنتجات بالطبقات. Wavelength = far edge داخل شبكة 5G. وLocal Zones وCloudflare Workers = far edge في مواقع حضرية. وAzure Stack Edge = edge داخل المنشأة (MEC). وRegions وAZs = cloud. وAvailability Zone طبقة فرعية من cloud وليست عقدة fog.

Everything on one card

كل شيء في بطاقة واحدة

E2C cheat card

بطاقة مراجعة E2C

Check yourself

اختبر نفسك

Which list gives the E2C stages in the lecture's order, from the user outward?

أي قائمة تعطي مراحل E2C بترتيب المحاضرة، من المستخدم نحو الخارج؟

Slides 57 and 58 end on the chain Device → Mist → Near Edge → Far Edge → Fog → Regional Cloud → Cloud. Option B swaps near and far, the classic slip. A puts the regional cloud after the cloud, and D puts fog before far edge.

الشريحتان 57 و58 تنتهيان بالسلسلة Device → Mist → Near Edge → Far Edge → Fog → Regional Cloud → Cloud. الخيار B يبدّل near وfar، وهو الخطأ الكلاسيكي. والخيار A يضع regional cloud بعد cloud، والخيار D يضع fog قبل far edge.

On the lecture's chain, which example belongs to the far edge?

في سلسلة المحاضرة، أي مثال ينتمي إلى far edge؟

Slide 57: far edge = nearby telco DC. The home router is the near edge, the sensor chip is mist, and an Availability Zone is a cloud sublayer.

الشريحة 57: far edge = مركز بيانات اتصالات قريب. موجّه المنزل هو near edge، وشريحة الحساس هي mist، وAvailability Zone طبقة فرعية من cloud.

Which ordering lists layers from the fewest resources to the most?

أي ترتيب يسرد الطبقات من الأقل موارد إلى الأكثر؟

Slide 58: mist very limited, near edge limited to moderate, fog high, cloud very high. Resources grow as you move away from the user, and so does latency. A is the reverse order.

الشريحة 58: mist محدودة جداً، وnear edge محدودة إلى متوسطة، وfog عالية، وcloud عالية جداً. الموارد تزداد كلما ابتعدت عن المستخدم، وكذلك زمن الانتقال. والخيار A هو الترتيب المعكوس.

A cloud gaming app hosted in a distant region is too laggy. The provider doubles the server's CPU speed. Why does lag barely improve?

تطبيق ألعاب سحابية في منطقة بعيدة بطيء الاستجابة. ضاعف المزوّد سرعة معالج الخادم. لماذا لا يتحسن التأخير تقريباً؟

Latency to a distant cloud is bounded by distance ÷ c plus routers and queues. Server speed only touches processing time. The fix is moving the work closer, for example to a Local Zone or Wavelength Zone at the far edge.

زمن الانتقال إلى cloud بعيدة محدود بـ المسافة ÷ c إضافة إلى الموجّهات والطوابير. وسرعة الخادم لا تمس إلا processing time. الحل هو تقريب العمل، مثلاً إلى Local Zone أو Wavelength Zone في far edge.

Match the product to its layer: AWS Wavelength runs compute inside a carrier's 5G network. Where does it sit?

طابق المنتج بطبقته: AWS Wavelength يشغّل الحوسبة داخل شبكة 5G لشركة اتصالات. أين يقع؟

A carrier site near the user is exactly the lecture's far edge (nearby telco DC). It is managed from a parent Region but physically sits in the carrier network, not in a Region's Availability Zones.

موقع شركة الاتصالات القريب من المستخدم هو بالضبط far edge في المحاضرة (مركز بيانات اتصالات قريب). يُدار من منطقة أم (parent Region) لكنه يقع فعلياً داخل شبكة الاتصالات، لا داخل Availability Zones.