Majid Al-RaimiEdge, fog and cloudالحافة والضباب والسحابة (Edge, Fog, Cloud)

COE 558Lecture 01المحاضرة 01Part 08الجزء 08

Edge, fog and cloudالحافة والضباب والسحابة (Edge, Fog, Cloud)

The layers of the E2C continuum from mist to regional cloud, their latency, resources and typical roles.طبقات سلسلة E2C من الضباب الخفيف (mist) إلى السحابة الإقليمية، وزمن استجابتها، ومواردها، وأدوارها المعتادة.

Conceptsالمفاهيم
4
Slidesالشرائح
56-60
Readingمدة القراءة
24 min24 دقيقة
Understoodما فهمته
0/4 conceptsمفاهيم

Why this part mattersلماذا يهمّ هذا الجزء

Every system you design in this course, and the research project itself, starts with one question: where does each piece of work run? This part gives you the map. It is a chain of places from the device in your hand to a hyperscale data center. Each step outward buys processing power and storage, and each step costs latency. Exam questions on placement, and the mapping problems in the next part, both assume you can read this map fluently.

كل نظام تصممه في هذا المقرر، وكذلك مشروع البحث نفسه، يبدأ بسؤال واحد: أين يعمل كل جزء من العمل؟ هذا الجزء يعطيك الخريطة. إنها سلسلة من المواقع تمتد من الجهاز الذي في يدك حتى مركز بيانات ضخم (hyperscale). كل خطوة للخارج تمنحك قدرة معالجة وتخزينًا أكبر، وكل خطوة تكلّفك زمن استجابة. أسئلة الامتحان عن التوزيع، ومسائل الربط في الجزء التالي، كلها تفترض أنك تقرأ هذه الخريطة بطلاقة.

By the end you canفي نهاية هذا الجزء ستستطيع

  1. Explain why the server side of a system is a continuum of possible locations, and why the location a user is served from sets the latency they feel.تشرح لماذا يمثّل جانب الخادم في أي نظام سلسلة متصلة من المواقع الممكنة، ولماذا يحدد الموقع الذي يُخدَم منه المستخدم زمن الاستجابة الذي يشعر به.
  2. Name the three layers of the E2C continuum and its seven stages in order from device to cloud, with a real product or board for each.تسمّي الطبقات الثلاث لسلسلة E2C ومراحلها السبع بالترتيب من الجهاز إلى السحابة، مع منتج أو لوحة حقيقية لكل مرحلة.
  3. Explain the core trade of the continuum: resources and coverage grow outward while proximity falls, and argue it with propagation, hops and real millisecond thresholds.تشرح المقايضة الأساسية في السلسلة: الموارد والتغطية تزداد كلما ابتعدنا للخارج بينما يقل القرب، وتدافع عن ذلك بالانتشار وعدد القفزات وعتبات حقيقية بالمللي ثانية.
  4. Apply the placement rule, and justify a placement with latency, processing and storage needs, and cost.تطبّق قاعدة التوزيع، وتبرّر اختيار موقع المهمة بمتطلبات زمن الاستجابة والمعالجة والتخزين والتكلفة.
  5. Spot ambiguous terminology, such as near versus far edge, and a mislabelled microcontroller board.تكتشف المصطلحات الملتبسة، مثل الحافة القريبة مقابل الحافة البعيدة، ولوحة متحكم دقيق مسمّاة خطأً.

Start with something you do every week. When you press play on Netflix in Dhahran, the video bytes do not cross an ocean from a data center in the United States. Netflix runs its own delivery network, Open Connect, and places caching appliances inside the networks of internet service providers and at Internet Exchange Points. The first bytes of your episode travel a few kilometres and a few router hops, not thousands of kilometres and dozens of hops.

ابدأ بشيء تفعله كل أسبوع. عندما تضغط تشغيل على Netflix في الظهران، لا تعبر بايتات الفيديو محيطًا قادمة من مركز بيانات في الولايات المتحدة. تشغّل Netflix شبكة توصيل خاصة بها اسمها Open Connect، وتضع أجهزة تخزين مؤقت (caching appliances) داخل شبكات مزوّدي خدمة الإنترنت وفي نقاط تبادل الإنترنت (Internet Exchange Points). أول بايتات الحلقة التي تشاهدها تقطع بضعة كيلومترات وبضع قفزات بين الموجّهات (router hops)، لا آلاف الكيلومترات وعشرات القفزات.

In the client-server model of the earlier parts, the Server looked like one box at the far end of the line. The Netflix example shows why that picture is too simple. Between the Client and the origin data center there are several stops, and each stop is a possible home for code or data. Moving work from one stop to another moves you along a continuum of latencies. A stop closer to the client means a shorter path, so less Propagation delay and fewer routers where a packet can wait in a queue.

في نموذج العميل والخادم من الأجزاء السابقة، بدا server كأنه صندوق واحد في الطرف البعيد من الخط. مثال Netflix يوضح لماذا هذه الصورة مبسّطة أكثر من اللازم. بين client ومركز البيانات الأصلي توجد عدة محطات، وكل محطة مكان محتمل لتشغيل الكود أو حفظ البيانات. نقل العمل من محطة إلى أخرى يحرّكك على سلسلة متصلة من أزمنة الاستجابة (latencies). المحطة الأقرب إلى العميل تعني مسارًا أقصر، وبالتالي propagation delay أقل وعددًا أقل من الموجّهات التي قد تنتظر فيها الحزمة في طابور.

The consequence for users is striking. The same service, running the same code, can make one user happy and another angry, and the only difference is where the service runs relative to each of them. A viewer served from a cache in their own city sees the video start at once; a viewer served from another continent watches a spinner. Placement is therefore not an operations detail. It is part of the design of the application.

النتيجة بالنسبة للمستخدمين لافتة. الخدمة نفسها، بالكود نفسه، قد تُسعد مستخدمًا وتُغضب آخر، والفرق الوحيد هو مكان تشغيل الخدمة بالنسبة لكل منهما. المشاهد الذي يُخدَم من ذاكرة مؤقتة في مدينته يرى الفيديو يبدأ فورًا، أما المشاهد الذي يُخدَم من قارة أخرى فيظل يحدّق في أيقونة التحميل. لذلك فإن اختيار المكان ليس تفصيلًا تشغيليًا، بل هو جزء من تصميم التطبيق نفسه.

The idea is older than cloud computing. Mahadev Satyanarayanan traces edge computing back to content delivery networks (CDNs) such as Akamai in the late 1990s: a CDN uses nodes close to users to prefetch and cache web content. Edge computing generalises that idea. Instead of only caching bytes near users, you run arbitrary code there. The rest of this part names the stops on the line and the trade each one offers; the course as a whole is about deciding what to put at each one, which is the heart of the Edge-to-cloud (E2C) continuum.

الفكرة أقدم من الحوسبة السحابية. يعيد Mahadev Satyanarayanan أصل الحوسبة الطرفية (edge computing) إلى شبكات توصيل المحتوى (CDNs) مثل Akamai في أواخر 1990s: شبكة CDN تستخدم عُقدًا قريبة من المستخدمين لجلب محتوى الويب مسبقًا وتخزينه مؤقتًا. الحوسبة الطرفية تعمّم هذه الفكرة: بدل الاكتفاء بتخزين البايتات قرب المستخدمين، تشغّل هناك أي كود تريده. بقية هذا الجزء تسمّي المحطات على الخط والمقايضة التي تقدمها كل محطة، والمقرر كله يدور حول تحديد ما تضعه في كل محطة، وهذا هو جوهر E2C continuum.

Recall

Why does Netflix place Open Connect appliances inside ISP networks instead of serving every stream from a central data center?لماذا تضع Netflix أجهزة Open Connect داخل شبكات مزوّدي الإنترنت بدل خدمة كل بث من مركز بيانات مركزي؟

It shortens the path to the viewer: fewer kilometres, so less propagation delay, and fewer hops, so less queueing. Playback starts quickly and does not buffer.
لأن ذلك يقصّر المسار إلى المشاهد: كيلومترات أقل تعني تأخير انتشار أقل، وقفزات أقل تعني انتظارًا أقل في الطوابير (queueing). فيبدأ التشغيل بسرعة ولا يتوقف للتحميل المؤقت (buffering).

Quick checkاختبار سريع

Why does caching a video at Layer 1 near the viewer reduce buffering?لماذا يقلّل تخزين الفيديو مؤقتًا في الطبقة 1 قرب المشاهد من التوقف للتحميل المؤقت (buffering)؟

To reason about placement you need names for the stops. Follow one request from a smart doorbell outward. The doorbell's own small chip decides that the button was pressed. The event goes to your home Wi-Fi router. From there it reaches a site run by your mobile or broadband operator nearby, for example an AWS Wavelength Zone, which places AWS compute and storage at the edge of a carrier's 5G network. Next it may reach a metro micro data center that collects events from many homes. Finally it lands in an AWS Region, inside one of its Availability Zones.

لكي تفكر في التوزيع تحتاج أسماءً للمحطات. تتبّع طلبًا واحدًا من جرس باب ذكي إلى الخارج. الشريحة الصغيرة داخل الجرس نفسه تقرر أن الزر قد ضُغط. ينتقل الحدث إلى موجّه Wi-Fi في بيتك. ومن هناك يصل إلى موقع قريب يشغّله مشغّل شبكة الجوال أو النطاق العريض، مثل AWS Wavelength Zone، التي تضع حوسبة وتخزين AWS على حافة شبكة 5G الخاصة بشركة الاتصالات. بعد ذلك قد يصل إلى مركز بيانات مصغّر على مستوى المدينة يجمع الأحداث من بيوت كثيرة. وأخيرًا يستقر في AWS Region، داخل إحدى مناطق التوافر (Availability Zones) فيها.

Those stops group into three coarse layers. The Cloud is farthest from the client. The Fog is the middle: mini data centers or intermediate nodes that process data partially. The Edge is closest to the client. Each Layer then splits into sublayers, which gives a seven-stage chain:

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

  1. Device: the phone, sensor or doorbell itself.Device (الجهاز): الهاتف أو المستشعر أو جرس الباب نفسه.
  2. Mist: tiny compute on or right beside the device.Mist (الضباب الخفيف): حوسبة صغيرة جدًا على الجهاز أو بجانبه مباشرة.
  3. Near edge: the home router or on-premises gateway.الحافة القريبة (Near edge): موجّه البيت أو بوابة داخل المنشأة (on-premises gateway).
  4. Far edge: a nearby telco data center or carrier site.الحافة البعيدة (Far edge): مركز بيانات قريب لشركة اتصالات أو موقع تابع للمشغّل.
  5. Fog: metro nodes, micro data centers and aggregation nodes.الضباب (Fog): عُقد حضرية ومراكز بيانات مصغّرة وعُقد تجميع (aggregation nodes).
  6. Regional cloud: a cloud region close to the user's country.السحابة الإقليمية (Regional cloud): منطقة سحابية قريبة من بلد المستخدم.
  7. Cloud: the full hyperscale infrastructure of availability zones and regions.السحابة (Cloud): البنية التحتية الضخمة الكاملة (hyperscale) من مناطق التوافر والمناطق.
Seven stages light up outward from the device, then fold into three layers: edge, fog and cloud.سبع مراحل تضيء واحدة تلو الأخرى من الجهاز إلى الخارج، ثم تنطوي في ثلاث طبقات: الحافة والضباب والسحابة.

The chain is a spectrum, not a set of sealed boxes, which is exactly why it is called a continuum. Each stage is simply one more Server layer where you could run part of your application, and the boundaries between neighbouring stages are soft.

السلسلة طيف متدرّج، وليست مجموعة صناديق مغلقة، ولهذا بالضبط تُسمّى سلسلة متصلة (continuum). كل مرحلة هي ببساطة server layer إضافية يمكنك أن تشغّل عليها جزءًا من تطبيقك، والحدود بين المراحل المتجاورة مرنة وغير حادة.

The standards agree on the shape and admit the edges are fuzzy. The term fog comes from Bonomi and colleagues at Cisco in 2012, who wrote that fog computing extends the cloud paradigm to the edge of the network. NIST SP 500-325 later formalised it: fog nodes sit between smart end devices and centralised cloud services, and can be physical (gateways, switches, routers, servers) or virtual (virtual switches, virtual machines, cloudlets). It describes mist as a lightweight, rudimentary form of fog computing that uses microcomputers and microcontrollers to feed fog nodes, and it does not treat mist as a mandatory layer.

المعايير تتفق على الشكل العام وتعترف بأن الحدود ضبابية. مصطلح fog جاء من Bonomi وزملائه في Cisco عام 2012، إذ كتبوا أن حوسبة الضباب تمدّ نموذج السحابة إلى حافة الشبكة. ثم صاغته وثيقة NIST SP 500-325 رسميًا: عُقد الضباب تقع بين الأجهزة الطرفية الذكية وخدمات السحابة المركزية، ويمكن أن تكون مادية (بوابات، مبدّلات، موجّهات، خوادم) أو افتراضية (مبدّلات افتراضية، أجهزة افتراضية، cloudlets). وتصف الوثيقة mist بأنه شكل خفيف وبدائي من حوسبة الضباب يستخدم حواسيب صغيرة (microcomputers) ومتحكمات دقيقة (microcontrollers) لتغذية عُقد الضباب، ولا تعدّه طبقة إلزامية.

The cloud sublayers, preciselyالطبقات الفرعية للسحابة بدقة

Unlike fog and mist, the cloud's own sublayers have exact definitions from the providers. Learn them from AWS, since the terms are used across the industry.

على عكس fog وmist، للطبقات الفرعية للسحابة تعريفات دقيقة من مزوّدي الخدمة. تعلّمها من AWS، لأن هذه المصطلحات مستخدمة في الصناعة كلها.

Cloud sublayers as AWS defines themالطبقات الفرعية للسحابة كما تعرّفها AWS

Regionالمنطقة (Region)
A separate geographic area that contains several isolated availability zones.منطقة جغرافية منفصلة تضم عدة مناطق توافر (availability zones) معزولة.
Availability Zone (AZ)منطقة التوافر (AZ)
One or more discrete data centers with redundant power, networking and connectivity inside a Region.مركز بيانات منفصل واحد أو أكثر، بطاقة وشبكات واتصال احتياطية (redundant)، داخل Region.
Distance between AZsالمسافة بين مناطق التوافر
Within 100 km (60 miles) of each other in the same Region.ضمن 100 km (60 miles) من بعضها داخل Region نفسها.
Global footprintالانتشار العالمي
124 AZs in 39 Regions at the time of writing. This count grows over time.124 منطقة توافر في 39 منطقة (Region) وقت كتابة هذا النص. وهذا العدد يزداد مع الوقت.

Real products at each layerمنتجات حقيقية في كل طبقة

Commercial offerings make the stages concrete. Notice that the far edge alone has two flavours: sites inside a carrier's network, and sites in metro data centers near large populations.

العروض التجارية تجعل المراحل ملموسة. لاحظ أن الحافة البعيدة وحدها لها نوعان: مواقع داخل شبكة شركة الاتصالات، ومواقع في مراكز بيانات حضرية قرب التجمعات السكانية الكبيرة.

LayerالطبقةProduct or standardالمنتج أو المعيارWhat it isما هو
Far edge, telcoالحافة البعيدة، شركة اتصالاتAWS WavelengthAWS WavelengthAWS compute and storage deployed at the edge of carriers' 5G networks, managed from the parent Region.حوسبة وتخزين من AWS منشورة على حافة شبكات 5G لشركات الاتصالات، وتُدار من المنطقة الأم (parent Region).
Far edge, metroالحافة البعيدة، حضريةAWS Local ZonesAWS Local ZonesAWS resources placed close to large population and industry centres for low-latency applications such as real-time gaming, live streaming and AR/VR.موارد AWS موضوعة قرب التجمعات السكانية والصناعية الكبيرة لتطبيقات منخفضة زمن الاستجابة، مثل الألعاب اللحظية والبث المباشر وAR/VR.
Far edge, metroالحافة البعيدة، حضريةCloudflare WorkersCloudflare WorkersCode runs in lightweight isolates across 348 cities; about 95% of the connected population is within 50 ms of a Cloudflare data center.يعمل الكود داخل isolates خفيفة موزعة على 348 مدينة، ونحو 95% من السكان المتصلين بالإنترنت يقعون ضمن 50 ms من أحد مراكز بيانات Cloudflare.
On-premises edge or fogحافة داخل المنشأة أو ضبابAzure Stack EdgeAzure Stack Edge1U rack appliances with 1 to 2 NVIDIA T4 GPUs, used in Azure private multi-access edge compute (MEC, the architecture standardised by ETSI).أجهزة بحجم 1U في الرف، فيها من 1 إلى 2 وحدة NVIDIA T4 GPU، تُستخدم في Azure private multi-access edge compute (MEC، وهي البنية التي وحّدت معاييرها ETSI).
CloudالسحابةAWS Regions and AZsAWS Regions and AZsFull data centers, 124 AZs worldwide, for pooled compute and long-term storage.مراكز بيانات كاملة، 124 منطقة توافر حول العالم، للحوسبة المجمّعة والتخزين طويل الأمد.
Where commercial edge and cloud offerings sit on the chainأين تقع عروض الحافة والسحابة التجارية على السلسلة

Recall

List the seven stages of the E2C chain in order from the user outward, and name the sublayers of the cloud.اذكر المراحل السبع لسلسلة E2C بالترتيب من المستخدم إلى الخارج، وسمِّ الطبقات الفرعية للسحابة.

Device, mist, near edge, far edge, fog, regional cloud, cloud. The cloud is divided into regions, and each region into availability zones.
Device, mist, near edge, far edge, fog, regional cloud, cloud. السحابة مقسّمة إلى مناطق (regions)، وكل منطقة مقسّمة إلى مناطق توافر (availability zones).

Quick checkاختبار سريع

On the lecture's seven-stage chain, which example belongs to the far edge?في سلسلة المراحل السبع في المحاضرة، أي مثال ينتمي إلى الحافة البعيدة؟

Names alone do not tell you where to run anything. What makes the continuum useful is that every stage offers a different bargain, and the bargain changes steadily as you move outward. Put a real part at each layer and the bargain becomes concrete. A Raspberry Pi Pico can decide "button pressed, turn on the light" instantly, and not much more; an AWS Region pools entire data centers. The steps between them fill in the gradient.

الأسماء وحدها لا تخبرك أين تشغّل أي شيء. ما يجعل السلسلة المتصلة مفيدة هو أن كل مرحلة تقدّم صفقة مختلفة، وأن هذه الصفقة تتغير بانتظام كلما تحركت للخارج. ضع قطعة حقيقية في كل طبقة فتصبح الصفقة ملموسة. لوحة Raspberry Pi Pico تستطيع أن تقرر «الزر ضُغط، أشعل الضوء» فورًا، ولا أكثر من ذلك بكثير، بينما AWS Region تجمع مراكز بيانات كاملة. والخطوات بينهما تملأ هذا التدرّج.

LocationالموقعProximityالقربResourcesالمواردTypical roleالدور المعتادExample hardwareمثال على العتادVerified specمواصفات موثّقة
MistMistClosestالأقربVery limitedمحدودة جدًاImmediate, local decisionsقرارات محلية فوريةRaspberry Pi Pico (RP2040)Raspberry Pi Pico (RP2040)133 MHz, 264 kB SRAM, 2 MB flash133 MHz، و264 kB من SRAM، و2 MB من ذاكرة flash
Near edgeالحافة القريبةVery closeقريبة جدًاLimited to moderateمحدودة إلى متوسطةLocal processingمعالجة محليةRaspberry Pi 4 Model BRaspberry Pi 4 Model B4 cores at 1.8 GHz, 1 to 8 GB RAM4 أنوية بتردد 1.8 GHz، ومن 1 إلى 8 GB من RAM
Far edgeالحافة البعيدةCloseقريبةModerate to highمتوسطة إلى عاليةLow-latency applicationsتطبيقات منخفضة زمن الاستجابةJetson Orin Nano Super, or a Wavelength Zone instanceJetson Orin Nano Super، أو خادم في Wavelength Zone67 TOPS, 8 GB RAM, 7 to 25 W67 TOPS، و8 GB من RAM، ومن 7 إلى 25 W
Fog or regionalالضباب أو الإقليميةIntermediateمتوسطةHighعاليةAggregation and coordinationالتجميع والتنسيقMetro micro data center, or an on-premises Azure Stack Edge appliance at a large siteمركز بيانات مصغّر في المدينة، أو جهاز Azure Stack Edge داخل منشأة كبيرة1U with 1 to 2 NVIDIA T4 GPUs1U مع 1 إلى 2 وحدة NVIDIA T4 GPU
CloudالسحابةDistantبعيدةVery highعالية جدًاLarge-scale computation and storageحوسبة وتخزين واسعا النطاقAWS RegionAWS Region124 AZs, each one or more data centers124 منطقة توافر، كل منها مركز بيانات واحد أو أكثر
The layers compared, with real hardwareمقارنة الطبقات بعتاد حقيقي

Two gradients running in opposite directionsتدرّجان في اتجاهين متعاكسين

Read the table top to bottom and two things change together. Proximity falls and resources rise. Each step outward serves more users over a wider area with bigger hardware, but sits further away. Bonomi and colleagues put it in one line: the higher the tier, the wider the geographical coverage and the longer the time scale.

اقرأ الجدول من الأعلى إلى الأسفل وستجد أمرين يتغيران معًا: القرب يقل والموارد تزيد. كل خطوة للخارج تخدم عددًا أكبر من المستخدمين على مساحة أوسع بأجهزة أكبر، لكنها أبعد. لخّص Bonomi وزملاؤه ذلك في سطر واحد: كلما ارتفعت الطبقة (tier) اتسعت التغطية الجغرافية وطال المقياس الزمني.

Resources rise from mist to cloud while proximity falls. The two guide lines slope in opposite directions: each step outward trades proximity for resources.الموارد ترتفع من mist إلى السحابة بينما يقل القرب. الخطّان الإرشاديان يميلان في اتجاهين متعاكسين: كل خطوة للخارج تبادل القرب بالموارد.

The role column follows from the resources column. An immediate decision needs no network at all, so it can live on a tiny chip. Aggregation needs a view of many sources, so it lives where many streams meet. Large-scale computation needs pooled capacity, so it lives in a data center. In Bonomi's smart grid example, the first tier runs control loops that react in milliseconds to sub-seconds, higher tiers run real-time analytics over seconds to minutes and transactional analytics over days, and the cloud keeps the data that must last.

عمود الدور ينتج من عمود الموارد. القرار الفوري لا يحتاج إلى شبكة إطلاقًا، لذلك يمكن أن يعيش على شريحة صغيرة. التجميع (aggregation) يحتاج رؤية لمصادر كثيرة، لذلك يعيش حيث تلتقي تدفقات كثيرة. والحوسبة واسعة النطاق تحتاج سعة مجمّعة، لذلك تعيش في مركز بيانات. في مثال الشبكة الكهربائية الذكية عند Bonomi، الطبقة الأولى تشغّل حلقات تحكم (control loops) تستجيب خلال مللي ثوانٍ إلى أجزاء من الثانية، والطبقات الأعلى تشغّل تحليلات لحظية على مدى ثوانٍ إلى دقائق وتحليلات معاملاتية على مدى أيام، والسحابة تحفظ البيانات التي يجب أن تدوم.

Why the latency side of the trade is physicsلماذا يحكم الفيزياء جانبَ زمن الاستجابة في المقايضة

The cost of moving outward is latency, and a head-tracked virtual reality headset shows how hard that cost can bite. Satyanarayanan reports that the display must respond to head movement in under 16 ms to feel stable. Citing Ang Li and colleagues, he gives an average round-trip time of 74 ms from 260 vantage points to their best Amazon EC2 data center, before the wireless first hop is even added. A VR application that renders in a distant cloud region therefore cannot meet its target, whatever the server does. The same application rendering on a cloudlet or far edge site one or two hops away can.

ثمن التحرك للخارج هو زمن الاستجابة، ونظارة واقع افتراضي تتبع حركة الرأس توضح كم يمكن أن يكون هذا الثمن قاسيًا. يذكر Satyanarayanan أن الشاشة يجب أن تستجيب لحركة الرأس في أقل من 16 ms لتبدو مستقرة. ونقلًا عن Ang Li وزملائه، يذكر متوسط زمن ذهاب وإياب (RTT) قدره 74 ms من 260 نقطة قياس إلى أفضل مركز بيانات Amazon EC2 لكل منها، وذلك قبل إضافة القفزة اللاسلكية الأولى أصلًا. لذلك فإن تطبيق واقع افتراضي يرسم الصور في منطقة سحابية بعيدة لا يمكنه بلوغ هدفه مهما فعل الخادم. أما التطبيق نفسه إذا رسم على cloudlet أو موقع حافة بعيدة على بعد قفزة أو قفزتين فيستطيع ذلك.

The reason comes straight from the previous part. The one-way latency to a layer can never be lower than the Latency lower bound, the distance divided by the speed of light. On top of that, every router on the way adds Queueing delay and processing. The Edge is one or a few hops away, the Fog is a metro away, and the Cloud may be a continent away. So latency, like resources, grows as you move outward: small at the edge, medium in the fog, large in the cloud.

السبب يأتي مباشرة من الجزء السابق. زمن الاستجابة باتجاه واحد إلى أي طبقة لا يمكن أبدًا أن يكون أقل من latency lower bound، أي المسافة مقسومة على سرعة الضوء. وفوق ذلك، كل موجّه على الطريق يضيف queueing delay ووقت معالجة. edge على بعد قفزة أو قفزات قليلة، وfog على بعد مدينة، وcloud قد تكون على بعد قارة. لذلك فإن زمن الاستجابة، مثل الموارد، يزداد كلما تحركت للخارج: صغير على الحافة، ومتوسط في الضباب، وكبير في السحابة.

Three rays leave the client together. The edge ray arrives first and the cloud ray last. Labels show one-way propagation in fibre to a nearby edge, a metro fog node and a distant cloud region.ثلاثة أشعة تنطلق من العميل معًا. شعاع الحافة يصل أولًا وشعاع السحابة أخيرًا. التسميات تُظهر زمن الانتشار باتجاه واحد في الألياف الضوئية إلى حافة قريبة، وعقدة ضباب في المدينة، ومنطقة سحابية بعيدة.

Worked exampleمثال محلول

Propagation delay to each layer, in fibreتأخير الانتشار إلى كل طبقة عبر الألياف الضوئية

  1. Pick the speedاختر السرعة

    Light in optical fibre travels at about 200,000 km/s, roughly two thirds of its speed in vacuum. The glossary's lower bound uses 300,000 km/s for vacuum; this example uses fibre because real links are fibre.
    ينتقل الضوء في الألياف الضوئية بسرعة تقارب 200,000 km/s، أي نحو ثلثي سرعته في الفراغ. الحد الأدنى في المسرد يستخدم 300,000 km/s للفراغ، أما هذا المثال فيستخدم الألياف لأن الروابط الحقيقية من الألياف.
  2. Apply the formulaطبّق القانون

    dprop=distancespeedd_{prop} = \dfrac{\text{distance}}{\text{speed}}
    One-way propagation delayتأخير الانتشار في اتجاه واحد
    dprop=distancespeedd_{prop} = \dfrac{\text{distance}}{\text{speed}}
    One-way propagation delayتأخير الانتشار في اتجاه واحد
  3. Edge and fogالحافة والضباب

    An edge node 1 km away gives about 0.005 ms. A fog node in the same metro, 50 km away, gives 0.25 ms.
    عقدة حافة على بعد 1 km تعطي نحو 0.005 ms. وعقدة ضباب في المدينة نفسها، على بعد 50 km، تعطي 0.25 ms.
  4. Cloudالسحابة

    Assume a Gulf cloud region about 1,000 km of fibre away: 5 ms. Assume a US east coast region about 13,000 km of cable away (the straight-line distance is about 10,900 km, and cables do not follow straight lines): 65 ms one way, about 130 ms there and back.
    افترض منطقة سحابية خليجية على بعد نحو 1,000 km من الألياف: 5 ms. وافترض منطقة على الساحل الشرقي للولايات المتحدة على بعد نحو 13,000 km من الكابلات (المسافة بخط مستقيم نحو 10,900 km، والكابلات لا تسير في خطوط مستقيمة): 65 ms باتجاه واحد، أي نحو 130 ms ذهابًا وإيابًا.
  5. Resultالنتيجة

    Propagation alone spans more than four orders of magnitude across the continuum. Queueing and processing at every hop come on top, and there are more hops to the cloud, so the real gap is usually even wider.
    الانتشار وحده يمتد عبر أكثر من أربع رتب عشرية (orders of magnitude) على طول السلسلة. ويُضاف فوقه الانتظار في الطوابير والمعالجة عند كل قفزة، والقفزات إلى السحابة أكثر، لذلك تكون الفجوة الحقيقية عادة أوسع.

How low is low enough? Human perception gives useful targets. Satyanarayanan cites that people take about 370 to 620 ms to recognise a face and 300 to 450 ms to recognise speech, but only about 4 ms to tell that a sound is a human voice. He concludes that an end-to-end latency of a few tens of milliseconds is a safe but achievable goal. That is what a far edge footprint buys: Cloudflare reports that 95% of the connected population is within 50 ms of one of its data centers, and most are within 20 ms.

ما مدى الانخفاض الكافي؟ الإدراك البشري يعطي أهدافًا مفيدة. ينقل Satyanarayanan أن الإنسان يحتاج نحو 370 إلى 620 ms للتعرف على وجه، و300 إلى 450 ms للتعرف على الكلام، لكنه يحتاج نحو 4 ms فقط ليعرف أن صوتًا ما صوت إنسان. ويستنتج أن زمن استجابة من طرف إلى طرف يبلغ بضع عشرات من المللي ثانية هدف آمن وقابل للتحقيق. وهذا ما يشتريه انتشار الحافة البعيدة: تذكر Cloudflare أن 95% من السكان المتصلين بالإنترنت يقعون ضمن 50 ms من أحد مراكز بياناتها، وأن معظمهم ضمن 20 ms.

One nuance matters at PhD level. "Close" is about the network, not just the map. Satyanarayanan defines logical proximity by low latency, low jitter and high bandwidth, and warns that the question "how close is physically close enough?" has no abstract answer. A fog node behind a congested link can respond more slowly than a well-connected cloud availability zone, so the small, medium and large ordering is typical, not guaranteed.

هناك دقيقة مهمة على مستوى الدكتوراه. «القرب» يتعلق بالشبكة، لا بالخريطة فقط. يعرّف Satyanarayanan القرب المنطقي (logical proximity) بزمن استجابة منخفض وتذبذب منخفض (jitter) وعرض نطاق مرتفع، ويحذّر من أن سؤال «ما مدى القرب المادي الكافي؟» ليس له جواب مجرد. عقدة ضباب خلف رابط مزدحم قد تستجيب أبطأ من منطقة توافر سحابية متصلة جيدًا، لذلك فإن ترتيب صغير ثم متوسط ثم كبير هو الحالة المعتادة، وليس مضمونًا.

Recall

As you move from mist to cloud, what happens to proximity, resources, latency and the typical role?عندما تنتقل من mist إلى السحابة، ماذا يحدث للقرب والموارد وزمن الاستجابة والدور المعتاد؟

Proximity falls from closest to distant, so latency rises. Resources rise from very limited to very high. The role shifts from immediate local decisions, to local processing, to low-latency applications, to aggregation and coordination, to large-scale computation and storage.
القرب يقل من الأقرب إلى البعيد، فيزداد زمن الاستجابة. والموارد تزيد من محدودة جدًا إلى عالية جدًا. والدور ينتقل من القرارات المحلية الفورية، إلى المعالجة المحلية، إلى التطبيقات منخفضة زمن الاستجابة، إلى التجميع والتنسيق، إلى الحوسبة والتخزين واسعَي النطاق.

Recall

Why can a head-tracked VR application not rely on a distant cloud region?لماذا لا يستطيع تطبيق واقع افتراضي يتتبع حركة الرأس الاعتماد على منطقة سحابية بعيدة؟

It needs under 16 ms for perceptual stability. The average round trip to the best EC2 data center, measured from 260 vantage points, was 74 ms, before the wireless hop. Propagation delay cannot be engineered away, so the rendering must move closer to the user.
لأنه يحتاج أقل من 16 ms للاستقرار الإدراكي. متوسط زمن الذهاب والإياب إلى أفضل مركز بيانات EC2، مقاسًا من 260 نقطة قياس، كان 74 ms، وذلك قبل القفزة اللاسلكية. وتأخير الانتشار لا يمكن إزالته بالهندسة، لذلك يجب نقل الرسم (rendering) إلى مكان أقرب من المستخدم.

Quick checkاختبار سريع

Which ordering lists layers from the fewest resources to the most?أي ترتيب يسرد الطبقات من الأقل موارد إلى الأكثر؟

Quick checkاختبار سريع

A factory robot arm must stop within milliseconds when a person steps into its path. Where should the stop decision run?ذراع روبوت في مصنع يجب أن يتوقف خلال مللي ثوانٍ عندما يدخل شخص مساره. أين يجب أن يعمل قرار الإيقاف؟

You now have both halves of the trade: processing power and storage increase from edge to fog to cloud, in the same direction as latency. Every step toward the cloud buys capacity and costs latency. That turns placement into a real decision, and the decision has three inputs: the latency requirement of the task, its processing and storage needs, and cost.

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

Picture a neighbourhood of smart doorbell cameras. Each camera, at the Edge, compares consecutive frames to detect motion, which is cheap arithmetic, and sends nothing while nothing moves. A fog node in the neighbourhood combines motion events from 200 cameras and door sensors to spot a pattern across streets, which is sensor data processing. The Cloud trains and hosts the large recognition model and keeps months of clips. One application, three layers, each doing the part it is equipped for.

تخيّل حيًّا مليئًا بكاميرات أجراس أبواب ذكية. كل كاميرا، على edge، تقارن الإطارات المتتالية لاكتشاف الحركة، وهذه عمليات حسابية رخيصة، ولا ترسل شيئًا طالما لا شيء يتحرك. عقدة ضباب (fog node) في الحي تجمع أحداث الحركة من 200 كاميرا ومستشعر أبواب لتكتشف نمطًا عبر الشوارع، وهذه معالجة لبيانات المستشعرات. وcloud تدرّب نموذج التعرّف الكبير وتستضيفه وتحتفظ بمقاطع شهور. تطبيق واحد، ثلاث طبقات، كل منها تنفذ الجزء المجهّزة له.

Each task drops into hardware that can carry it: motion detection on a board, aggregation in a mini data center, AI in a data center.كل مهمة تستقر في عتاد قادر على حملها: اكتشاف الحركة على لوحة، والتجميع في مركز بيانات مصغّر، والذكاء الاصطناعي في مركز بيانات.

The pattern generalises into a rule of thumb: put each task on the layer closest to the client that still has enough resources for it, and push data outward only when you need more compute, more storage or a wider view. Bonomi and colleagues describe the fog tier doing exactly this, filtering data to be consumed locally and sending the rest to higher tiers. Filtering early also saves bandwidth, since raw video is expensive to ship; Satyanarayanan lists scalability through edge analytics as a key benefit of cloudlets. Splitting one Service pipeline across layers like this is what the next part calls a Mapping.

هذا النمط يتعمّم إلى قاعدة عملية: ضع كل مهمة على الطبقة الأقرب إلى العميل التي ما زالت تملك موارد كافية لها، وادفع البيانات للخارج فقط عندما تحتاج حوسبة أكثر أو تخزينًا أكثر أو رؤية أوسع. يصف Bonomi وزملاؤه طبقة الضباب وهي تفعل هذا بالضبط: تصفّي البيانات ليُستهلك بعضها محليًا وترسل الباقي إلى الطبقات الأعلى. والتصفية المبكرة توفّر عرض النطاق أيضًا، لأن نقل الفيديو الخام مكلف، ويذكر Satyanarayanan قابلية التوسع عبر التحليلات على الحافة (edge analytics) كفائدة رئيسية لـcloudlets. وتقسيم pipeline واحد عبر الطبقات بهذه الطريقة هو ما يسميه الجزء التالي mapping.

TaskالمهمةLayerالطبقةWhy hereلماذا هنا
Detect motion in each frameاكتشاف الحركة في كل إطارEdge (on the camera)الحافة (على الكاميرا)Must react instantly, needs little compute, avoids sending idle video.يجب أن تستجيب فورًا، وتحتاج حوسبة قليلة، وتتجنب إرسال فيديو خامل.
Correlate events from many homesربط الأحداث القادمة من بيوت كثيرةFog (neighbourhood node)الضباب (عقدة الحي)Needs a view of many sources and moderate compute, still close enough for timely alerts.تحتاج رؤية لمصادر كثيرة وحوسبة متوسطة، وما زالت قريبة بما يكفي لتنبيهات في الوقت المناسب.
Train and host the recognition model, archive clipsتدريب نموذج التعرّف واستضافته، وأرشفة المقاطعCloudالسحابةNeeds pooled compute and very large storage; latency is not critical.تحتاج حوسبة مجمّعة وتخزينًا كبيرًا جدًا، وزمن الاستجابة ليس حرجًا.
The doorbell pipeline, placed by the ruleخط معالجة جرس الباب، موزّعًا حسب القاعدة

Treat the typical roles (motion at the edge, sensor processing in the fog, AI in the cloud) as tendencies, not rules. Training and very large models belong in the cloud, but inference increasingly runs at the edge: a Jetson Orin Nano Super delivers 67 TOPS within 7 to 25 W. Edge platforms are not unlimited either. A Cloudflare Worker gets 128 MB of memory per isolate and, on the free plan, 10 ms of CPU time per request.

تعامل مع الأدوار المعتادة (الحركة على الحافة، ومعالجة المستشعرات في الضباب، والذكاء الاصطناعي في السحابة) على أنها ميول، لا قواعد. التدريب والنماذج الكبيرة جدًا مكانها السحابة، لكن الاستدلال (inference) يعمل على الحافة بشكل متزايد: لوحة Jetson Orin Nano Super تقدّم 67 TOPS ضمن 7 إلى 25 W. ومنصات الحافة ليست بلا حدود أيضًا: Cloudflare Worker يحصل على 128 MB من الذاكرة لكل isolate، وعلى الخطة المجانية 10 ms من وقت المعالج لكل طلب.

Cost is the third axis. AWS states that Local Zone resources are priced differently from the same resources in their parent Region. Red Hat describes the move toward the edge as an increase in the number of distributed locations but a decrease in each location's size, which means many small sites to buy, power and manage.

التكلفة هي المحور الثالث. تذكر AWS أن موارد Local Zone تُسعَّر بشكل مختلف عن الموارد نفسها في المنطقة الأم (parent Region). وتصف Red Hat التحرك نحو الحافة بأنه زيادة في عدد المواقع الموزعة مع نقص في حجم كل موقع، أي مواقع صغيرة كثيرة يجب شراؤها وتزويدها بالطاقة وإدارتها.

SimulatorمحاكيMap a pipeline onto the continuumوزّع خط معالجة على السلسلة المتصلة (continuum)
  1. T1Image resizeتصغير الصورةPT 8 ms
  2. T2Object detectionاكتشاف الأجسامPT 40 ms
  3. T3Draw boxesرسم المربعاتPT 8 ms
150 ms
Networkالشبكة40ms
Response timeزمن الاستجابة96ms
Within budgetضمن الميزانية RT ≤ 150 ms
τ
networkالشبكة 40 ms · 42%processingالمعالجة 56 ms · 58%

Formulaالمعادلة

RT = Σ one-way hops + Σ PT

RT = (5 + 15 + 15 + 5) + (8 + 40 + 8) = 96 ms

Client→Edge 5 · Edge→Fog 15 · Fog→Edge 15 · Edge→Client 5

Each hop costs the difference between the one-way latencies of the two layers: Device 0, Edge 5, Fog 20, Cloud 70 ms from the client.تكلفة كل قفزة (hop) هي الفرق بين زمني الانتقال أحادي الاتجاه للطبقتين: الجهاز (Device) 0، والحافة (Edge) 5، والضباب (Fog) 20، والسحابة (Cloud) 70 ms من العميل.

Recall

What three factors decide where a task is placed, and what is the placement rule?ما العوامل الثلاثة التي تحدد مكان وضع المهمة، وما قاعدة التوزيع؟

Latency requirement, processing and storage need, and cost. Place each task on the layer closest to the client that still has enough resources, and forward only what needs more.
متطلب زمن الاستجابة، والحاجة إلى المعالجة والتخزين، والتكلفة. ضع كل مهمة على الطبقة الأقرب إلى العميل التي ما زالت تملك موارد كافية، ومرّر فقط ما يحتاج أكثر من ذلك.

Quick checkاختبار سريع

The lecture places 'running AI models' in the cloud. What is the strongest reason for that placement?تضع المحاضرة «تشغيل نماذج الذكاء الاصطناعي» في السحابة. ما أقوى سبب لهذا الاختيار؟

Recapالخلاصة

If you remember nothing elseإن لم تتذكر شيئاً آخر فتذكّر هذا

  • The server side is a continuum: device, mist, near edge, far edge, fog, regional cloud, cloud.جانب الخادم سلسلة متصلة: الجهاز، الضباب الخفيف (mist)، الحافة القريبة، الحافة البعيدة، الضباب (fog)، السحابة الإقليمية، السحابة.
  • Three coarse layers: cloud splits into regions and availability zones, fog into metro nodes and micro data centers, edge into mist, near and far.ثلاث طبقات عامة: السحابة تنقسم إلى مناطق (regions) ومناطق توافر (availability zones)، والضباب إلى عُقد حضرية ومراكز بيانات مصغّرة، والحافة إلى mist وقريبة وبعيدة.
  • Proximity and resources pull in opposite directions: the closer the layer, the lower the latency and the smaller the hardware.القرب والموارد يتجهان في اتجاهين متعاكسين: كلما اقتربت الطبقة قلّ زمن الاستجابة وصغرت الأجهزة.
  • Latency to the cloud is bounded by physics. Only moving work closer removes propagation delay.زمن الاستجابة إلى السحابة تحدّه الفيزياء. نقل العمل إلى مكان أقرب هو الطريقة الوحيدة لإزالة تأخير الانتشار.
  • Place each task on the closest layer that has enough resources, and forward only what needs more.ضع كل مهمة على أقرب طبقة تملك موارد كافية لها، ومرّر للخارج فقط ما يحتاج أكثر من ذلك.
  • Real anchors: AWS Wavelength and Local Zones, Cloudflare Workers and Azure Stack Edge (ETSI MEC) at the edge; AWS Regions and availability zones in the cloud.أمثلة حقيقية: AWS Wavelength و Local Zones و Cloudflare Workers و Azure Stack Edge (ETSI MEC) على الحافة، ومناطق AWS ومناطق التوافر فيها على السحابة.
  • Near and far edge are relative terms. Check the viewpoint.الحافة القريبة والبعيدة مصطلحان نسبيان. تحقّق من زاوية النظر.

Sourcesالمصادر