Majid Al-RaimiThe physics of latencyفيزياء زمن الاستجابة (Latency)

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

The physics of latencyفيزياء زمن الاستجابة (Latency)

Latency to the cloud, the speed-of-light lower bound, geodesic distance, real measurements from Dammam, and the four delays that add up.زمن الاستجابة إلى السحابة، والحد الأدنى الذي تفرضه سرعة الضوء، والمسافة الجيوديسية، وقياسات حقيقية من الدمام، والتأخيرات الأربعة التي تتراكم معًا.

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

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

Today’s default is to put the server in the cloud. This part prices that default in milliseconds. You will learn to turn a distance into the smallest delay physics allows, compare that floor with real measurements from Dammam, and break the gap into the four delays every packet pays.

The ideas build on each other. First, what latency is and the hard floor under it. Second, how to measure the distance that floor depends on. Third, how far above the floor real networks sit. Fourth, the four delays that explain the difference. For the exams, expect calculations: distance to bound, one way versus round trip, and the formulas L/R and d/s. For the research project and for real edge and cloud design, remember one thing above all: the d/s term is the one cost that no amount of cloud capacity removes. That is the physical argument for the edge, fog and cloud continuum in the next part.

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

الأفكار مبنية بعضها على بعض. أولا، ما هو زمن الانتقال وما الحد الأدنى الصلب الذي يقع تحته. ثانيا، كيف نقيس المسافة التي يعتمد عليها هذا الحد. ثالثا، كم تبعد الشبكات الحقيقية فوق هذا الحد. رابعا، التأخيرات الأربعة التي تفسّر الفرق. في الاختبارات توقّع مسائل حسابية: من المسافة إلى الحد الأدنى، واتجاه واحد مقابل رحلة الذهاب والإياب، والمعادلتين L/R وd/s. أما في المشروع البحثي وفي التصميم الحقيقي للحافة والسحابة فتذكّر شيئا واحدا قبل كل شيء: الحد d/s هو التكلفة الوحيدة التي لا تزيلها أي سعة سحابية مهما كبرت. وهذه هي الحجة الفيزيائية لسلسلة الحافة والضباب والسحابة (edge, fog, cloud) في الجزء التالي.

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

  1. Define latency as transit time, and explain why a request-response exchange pays it twice.تعريف زمن الانتقال (latency) بأنه زمن العبور، وتوضيح لماذا يدفعه تبادل الطلب والاستجابة مرتين.
  2. Compute the one-way and round-trip latency lower bound from a geodesic distance, and the fiber floor above it.حساب الحد الأدنى لزمن الانتقال في اتجاه واحد وفي رحلة الذهاب والإياب (RTT) انطلاقا من المسافة الجيوديسية، وحساب حد الألياف الضوئية الذي يقع فوقه.
  3. Explain why latency must use geodesic rather than planar distance.توضيح لماذا يجب أن يُحسب زمن الانتقال بالمسافة الجيوديسية لا بالمسافة المستوية.
  4. Compare a measured RTT with the right bound, and account for the roughly threefold gap.مقارنة RTT مقيس بالحد الأدنى المناسب، وتفسير الفجوة التي تبلغ نحو ثلاثة أضعاف.
  5. Name the four packet delays, apply transmission = L/R and propagation = d/s, and predict which one dominates.تسمية التأخيرات الأربعة للحزمة، وتطبيق transmission = L/R و propagation = d/s، والتنبؤ بأيها يهيمن.

Picture a student in Dhahran opening an app whose backend runs in the AWS Frankfurt region. His phone sends a request that must physically cross about 4,400 km of Earth, and the answer must cross it again on the way back. Nothing useful can happen on his screen until both trips are done.

تخيّل طالبا في الظهران يفتح تطبيقا تعمل خلفيته في منطقة AWS في فرانكفورت. يرسل هاتفه طلبا يجب أن يقطع فعليا نحو 4,400 km من سطح الأرض، ويجب أن يقطعها الرد مرة أخرى في طريق العودة. ولا يمكن أن يحدث شيء مفيد على شاشته حتى تكتمل الرحلتان.

Latency is transit time, paid in both directionsزمن الانتقال هو زمن العبور، ويُدفع في الاتجاهين

That travel time is Latency: the time data spends in transit between two points. In the Request-response loop you met earlier, the Client always starts, so every exchange pays latency twice: once from client to Server, once from server back to client. Total network latency is the sum of the two one-way figures. They are often close, but they need not be equal, because Internet routes are not always the same in both directions.

زمن الرحلة هذا هو latency (زمن الانتقال): الوقت الذي تقضيه البيانات في العبور بين نقطتين. في request-response loop (حلقة الطلب والاستجابة) التي رأيتها سابقا، يبدأ client (العميل) دائما، لذلك يدفع كل تبادل زمن الانتقال مرتين: مرة من العميل إلى server (الخادم)، ومرة من الخادم عائدا إلى العميل. زمن الانتقال الكلي في الشبكة هو مجموع القيمتين في الاتجاه الواحد. وكثيرا ما تكونان متقاربتين، لكن لا يلزم أن تتساويا، لأن مسارات الإنترنت ليست دائما واحدة في الاتجاهين.

Client
Dhahran

Sends the request and waits.

يرسل الطلب وينتظر.

request
Server
AWS region, Frankfurt

Does its work. That time is processing, not latency.

ينجز عمله. هذا الوقت زمن معالجة، وليس زمن انتقال latency.

response
Client
Dhahran

Receives the answer after both transits.

يتلقى الإجابة بعد رحلتي الذهاب والعودة.

One request-response exchange pays latency in both directionsتبادل واحد للطلب والاستجابة يدفع زمن الانتقال في الاتجاهين
Latencytotal=Latencyclient→server+Latencyserver→client\text{Latency}_{\text{total}} = \text{Latency}_{\text{client}\to\text{server}} + \text{Latency}_{\text{server}\to\text{client}}
Total network latency of one exchangeإجمالي زمن انتقال الشبكة لتبادل واحد

Putting the server in the Cloud is the default because it is convenient, elastic and cheap to operate. The natural next question is how much time that choice costs at the very least, before any engineering detail enters the picture.

وضع الخادم في cloud (السحابة) هو الخيار الافتراضي لأنه مريح ومرن ورخيص في التشغيل. والسؤال الطبيعي التالي هو: كم من الوقت يكلّف هذا الخيار في أقل تقدير، قبل أن تدخل أي تفاصيل هندسية في الصورة؟

The smallest latency physics allowsأصغر زمن انتقال تسمح به الفيزياء

Start with a number. A server 3,000 km away, reached at the speed of light, needs 3,000 ÷ 300,000 = 0.01 s, which is 10 ms one way. So every 1,000 km costs at least 3.3 ms one way, or 6.7 ms for a round trip.

ابدأ برقم. خادم على بعد 3,000 km، يُوصَل إليه بسرعة الضوء، يحتاج إلى 3,000 ÷ 300,000 = 0.01 s، أي 10 ms في اتجاه واحد. إذن كل 1,000 km تكلّف على الأقل 3.3 ms في اتجاه واحد، أو 6.7 ms لرحلة الذهاب والإياب.

Generalising this gives the Latency lower bound: divide the Geodesic distance by the speed of light cc. It is a lower bound for three reasons that stack. Nothing carries information faster than light. No cable between two cities can be shorter than the shortest path along the Earth. And the formula ignores every other delay a real packet meets. Because each simplification can only make the true figure larger, the result is a floor that no provider, protocol or hardware upgrade can break.

تعميم ذلك يعطينا latency lower bound (الحد الأدنى لزمن الانتقال): اقسم geodesic distance (المسافة الجيوديسية) على سرعة الضوء cc. وهو حد أدنى لثلاثة أسباب تتراكم. لا شيء ينقل المعلومات أسرع من الضوء. ولا يمكن لأي كابل بين مدينتين أن يكون أقصر من أقصر مسار على سطح الأرض. والمعادلة تتجاهل كل تأخير آخر تواجهه الحزمة الحقيقية. ولأن كل تبسيط من هذه لا يمكنه إلا أن يجعل القيمة الحقيقية أكبر، فالنتيجة حد أدنى لا يستطيع أي مزوّد أو بروتوكول أو ترقية عتاد أن يكسره.

LatencyLB=dgeodesicc,c≈3×105 km/s\text{Latency}_{LB} = \dfrac{d_{\text{geodesic}}}{c},\quad c \approx 3\times10^{5}\ \text{km/s}
One-way lower boundالحد الأدنى في اتجاه واحد
RTTLB=2 dgeodesicc\text{RTT}_{LB} = \dfrac{2\,d_{\text{geodesic}}}{c}
Round-trip lower boundالحد الأدنى لرحلة الذهاب والعودة
Dammam to Frankfurt: the signal crosses the geodesic and returns, so the round trip is at least 29.3 msمن الدمام إلى فرانكفورت: تعبر الإشارة المسار الجيوديسي ثم تعود، لذلك لا تقل رحلة الذهاب والإياب عن 29.3 ms

Real glass is slower than vacuumالزجاج الحقيقي أبطأ من الفراغ

“Speed of light” in the bound means light in a vacuum. Real links carry light through glass fiber with a refractive index of about 1.5, so the signal moves at roughly 200,000 km/s, about two thirds of cc (Grigorik, High Performance Browser Networking). Even a perfectly straight fiber therefore needs about 1.5× the bound. ITU-T G.114 plans 5 µs/km for optical fibre systems, which is 5 ms per 1,000 km, against 3.3 ms per 1,000 km at cc. Keep both numbers in mind: the vacuum bound is the absolute floor, and the fiber floor is the realistic best case for a cabled network.

"سرعة الضوء" في الحد الأدنى تعني الضوء في الفراغ. أما الروابط الحقيقية فتحمل الضوء عبر ألياف زجاجية معامل انكسارها نحو 1.5، فتتحرك الإشارة بنحو 200,000 km/s، أي نحو ثلثي cc (Grigorik، High Performance Browser Networking). لذلك حتى الليف المستقيم تماما يحتاج إلى نحو 1.5× الحد الأدنى. وتعتمد التوصية ITU-T G.114 قيمة 5 µs/km لأنظمة الألياف الضوئية، أي 5 ms لكل 1,000 km، مقابل 3.3 ms لكل 1,000 km عند cc. احفظ الرقمين: الحد في الفراغ هو الأرضية المطلقة، وحد الألياف هو أفضل حالة واقعية لشبكة مكوّنة من كابلات.

tfiber=dc/n≈1.5 dc(n≈1.5)t_{\text{fiber}} = \dfrac{d}{c/n} \approx 1.5\,\dfrac{d}{c}\quad (n \approx 1.5)
The fiber floor: the same distance divided by the slower speed in glassحد الألياف الضوئية: المسافة نفسها مقسومة على السرعة الأبطأ داخل الزجاج

Try the simulator. Pick the Frankfurt preset and read the one-way bound, then read the round-trip value to see the number doubled. The presets use the distances implied by the lecture’s own figures (for example 11,100 km for Oregon), a choice examined closely when we compare bounds with measurements below.

جرّب المحاكي. اختر الإعداد المسبق لفرانكفورت واقرأ الحد الأدنى في اتجاه واحد، ثم اقرأ قيمة رحلة الذهاب والإياب لترى الرقم مضاعفا. تستخدم الإعدادات المسبقة المسافات التي تدل عليها أرقام المحاضرة نفسها (مثلا 11,100 km لأوريغون)، وهو اختيار سندرسه عن قرب عندما نقارن الحدود الدنيا بالقياسات أدناه.

SimulatorمحاكيSpeed of light latencyزمن الانتقال بسرعة الضوء
km
clientround trip, slowed 50×ذهاب وإياب، مبطّأ 50×server
One way, lower boundاتجاه واحد، الحد الأدنى14.7msdistance ÷ 300,000 km/sالمسافة ÷ 300,000 km/s
Round trip, lower boundذهاب وإياب، الحد الأدنى29.5msthere and backذهابًا ثم عودة
Real Internet, illustrativeالإنترنت الفعلي، للتوضيح58.9 to 295ms2× to 10× the boundمن 2× إلى 10× الحد الأدنى

Light in fibre is slower than in vacuum, cables do not follow the geodesic, and routers add processing, queueing and transmission delay. The band above is only an illustration. Slide 55 notes real latency can reach up to 100× the lower bound.الضوء في الألياف الضوئية أبطأ منه في الفراغ، والكابلات لا تتبع المسار الجيوديسي، والموجّهات (routers) تضيف تأخير المعالجة والانتظار في الطابور (queueing) والإرسال (transmission). النطاق أعلاه للتوضيح فقط. تذكر الشريحة 55 أن زمن الانتقال الفعلي قد يصل إلى 100× الحد الأدنى.

Recall

What does the lower-bound formula leave out, and why is it still useful?ما الذي تُغفله معادلة الحد الأدنى، ولماذا تبقى مفيدة رغم ذلك؟

It leaves out the slower speed of light in fiber, cable routes longer than the geodesic, and the processing, queueing and transmission delays. It is still useful because no real network can beat it: if the bound alone already breaks your latency target, the only fix is to move the server closer.

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

The bound is only as good as the distance you feed it, so which distance is the right one? Stretch a string tight between London and Singapore on a real globe. It does not run across Arabia the way a ruler on a flat map suggests. It runs north, over Eastern Europe and Central Asia. Now flatten that globe into a rectangle: the string that was the shortest path turns into a curve.

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

Those are the two candidates. A straight line drawn on the flat map gives the planar distance. The curve that the string traces gives the Geodesic distance between the same two endpoints. Esri’s documentation defines planar distance as straight-line Euclidean distance in a 2D Cartesian coordinate system, and geodesic distance as distance across the curved surface of the world in 3D. Signals travel over the real Earth, not over a map, so latency lives in the second definition.

هذان هما المرشحان. الخط المستقيم المرسوم على الخريطة المسطحة يعطي المسافة المستوية (planar). أما المنحنى الذي يرسمه الخيط فيعطي geodesic distance (المسافة الجيوديسية) بين النقطتين نفسيهما. وتعرّف وثائق Esri المسافة المستوية بأنها المسافة الإقليدية في خط مستقيم ضمن نظام إحداثيات ديكارتي ثنائي الأبعاد، والمسافة الجيوديسية بأنها المسافة عبر سطح العالم المنحني في ثلاثة أبعاد. والإشارات تنتقل فوق الأرض الحقيقية لا فوق خريطة، لذلك ينتمي زمن الانتقال إلى التعريف الثاني.

The same two cities on a flat map and on a globe: the path that looks curved on the map is the shorter oneالمدينتان نفسهما على خريطة مسطحة وعلى كرة أرضية: المسار الذي يبدو منحنيا على الخريطة هو الأقصر

Map projections stretch the Earth, and the stretch grows with latitude and with the size of the area. Over a city block the two distances agree. Over continents they can disagree a lot, and near the equator they can be surprisingly close: Esri notes that for Singapore to Nairobi, about 7,440 km, the Web Mercator planar result is less than a metre longer. Because you cannot know in advance which case you are in, always use the geodesic when you compute a Latency lower bound. Using a planar distance that happens to be too short would even produce a “bound” that is not a bound at all.

إسقاطات الخرائط تمطّ الأرض، ويزداد هذا المطّ مع خط العرض ومع اتساع المنطقة. على مستوى حيّ في مدينة تتفق المسافتان. وعبر القارات قد تختلفان كثيرا، وقرب خط الاستواء قد تتقاربان على نحو مفاجئ: تذكر Esri أن المسافة من سنغافورة إلى نيروبي، نحو 7,440 km، تكون نتيجتها المستوية في إسقاط Web Mercator أطول بأقل من متر واحد. ولأنك لا تستطيع أن تعرف مسبقا في أي حالة أنت، استخدم دائما المسافة الجيوديسية عندما تحسب latency lower bound. بل إن استخدام مسافة مستوية تصادف أنها أقصر من اللازم سينتج "حدا أدنى" ليس حدا أدنى أصلا.

AspectالجانبPlanar distanceالمسافة المستويةGeodesic distanceالمسافة الجيوديسية
Computed inتُحسب فيA flat 2D Cartesian plane (a projected map)مستوى ديكارتي مسطح ثنائي الأبعاد (خريطة مُسقَطة)3D space, across the curved surface of the Earthفضاء ثلاثي الأبعاد، عبر سطح الأرض المنحني
Looks like on a flat mapشكلها على خريطة مسطحةA straight lineخط مستقيمUsually a curve bending toward the poleمنحنى في الغالب ينحني نحو القطب
Accuracy over long rangeالدقة على المسافات الطويلةError grows with distance and latitudeيكبر الخطأ مع المسافة ومع خط العرضCorrect by definition (shortest surface path)صحيحة بحكم التعريف (أقصر مسار على السطح)
Use for latencyاستخدامها لزمن الانتقالNo, except for tiny local areasلا، إلا في المناطق المحلية الصغيرة جداYes, always for intercity or intercontinental linksنعم، دائما للروابط بين المدن أو بين القارات
Planar versus geodesic distanceالمسافة المستوية مقابل المسافة الجيوديسية

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

On a flat map, the straight London to Singapore line looks shorter than the curved one. Which path is shorter on the real Earth?على خريطة مسطحة يبدو الخط المستقيم من لندن إلى سنغافورة أقصر من الخط المنحني. أي المسارين أقصر على الأرض الحقيقية؟

Recall

Why does the curved line on a flat map represent the shorter path?لماذا يمثّل الخط المنحني على الخريطة المسطحة المسار الأقصر؟

The map projection distorts the sphere. The geodesic is the shortest path along the curved surface, and it only looks curved after the globe is flattened into a map.

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

With the right distance and the right formula in hand, the bound can finally meet reality. Put the client in Dammam and the server in three AWS regions: US West (Oregon, us-west-2), Europe (Frankfurt, eu-central-1) and Asia Pacific (Tokyo, ap-northeast-1). For each, compute the one-way Latency lower bound, then compare it with the Round-trip time (RTT) measured with aws-latency-test.com.

بعد أن صارت لدينا المسافة الصحيحة والمعادلة الصحيحة، يمكن أخيرا أن يلتقي الحد الأدنى بالواقع. ضع العميل في الدمام والخادم في ثلاث مناطق من AWS: غرب الولايات المتحدة (أوريغون، us-west-2)، وأوروبا (فرانكفورت، eu-central-1)، وآسيا والمحيط الهادئ (طوكيو، ap-northeast-1). لكل منطقة احسب latency lower bound في اتجاه واحد، ثم قارنه بـ RTT المقيس باستخدام aws-latency-test.com.

Worked exampleمثال محلول

Dammam to Frankfurt: bound against measurementمن الدمام إلى فرانكفورت: الحد الأدنى مقابل القياس

  1. Get the distanceاحصل على المسافة

    The geodesic from Dammam to Frankfurt is about 4,390 km. The lecture’s 14.7 ms implies about 4,410 km, which agrees.

    المسافة الجيوديسية من الدمام إلى فرانكفورت نحو 4,390 km. وقيمة المحاضرة 14.7 ms تدل على نحو 4,410 km، وهذا متوافق.

  2. One-way boundالحد الأدنى في اتجاه واحد

    4,390 ÷ 300,000 = 0.01463 s ≈ 14.6 ms.

    4,390 ÷ 300,000 = 0.01463 s ≈ 14.6 ms.

  3. Round-trip boundالحد الأدنى لرحلة الذهاب والإياب

    2 × 14.6 ≈ 29.3 ms. This is the number to compare with an RTT.

    2 × 14.6 ≈ 29.3 ms. هذا هو الرقم الذي يُقارن بـ RTT.

  4. Fiber floorحد الألياف

    At 200,000 km/s the same path takes 21.9 ms one way and 43.9 ms round trip, even on a perfect cable laid exactly along the geodesic.

    بسرعة 200,000 km/s يستغرق المسار نفسه 21.9 ms في اتجاه واحد و43.9 ms ذهابا وإيابا، حتى على كابل مثالي ممدود تماما على المسار الجيوديسي.

  5. Compareقارن

    Measured RTT 100 ms ÷ 29.3 ms ≈ 3.4× the vacuum bound, and about 2.3× the fiber floor.

    RTT المقيس 100 ms ÷ 29.3 ms ≈ 3.4× الحد الأدنى في الفراغ، ونحو 2.3× حد الألياف.

  6. Resultالنتيجة

    Physics sets a floor of about 29 ms (vacuum) or 44 ms (fiber). The remaining ≈56 ms comes from longer cable routes, routers and queues. No provider can ever push this RTT below 29.3 ms.
    تضع الفيزياء أرضية بنحو 29 ms (في الفراغ) أو 44 ms (في الألياف). والـ ≈56 ms المتبقية تأتي من مسارات كابلات أطول والموجّهات والطوابير. ولن يستطيع أي مزوّد أبدا أن ينزل بهذا الـ RTT تحت 29.3 ms.

The rule behind the example: compare like with like. An RTT is a round trip, so compare it with twice the one-way bound, never with the one-way figure itself. Doing that for all three regions tells the same story each time: the measurements sit about 2.9× to 3.4× above the vacuum round-trip bound. A ratio that stable across very different distances is a hint that the extra cost is systematic, not bad luck on one path.

القاعدة وراء المثال: قارن الشيء بنظيره. الـ RTT رحلة ذهاب وإياب، فقارنه بضعف الحد الأدنى في اتجاه واحد، ولا تقارنه أبدا بقيمة الاتجاه الواحد نفسها. وعند فعل ذلك للمناطق الثلاث تتكرر القصة نفسها كل مرة: القياسات تقع فوق الحد الأدنى لرحلة الذهاب والإياب في الفراغ بنحو 2.9× إلى 3.4×. ونسبة بهذا الثبات عبر مسافات مختلفة جدا تلمّح إلى أن التكلفة الإضافية منهجية، لا مجرد سوء حظ على مسار واحد.

RegionالمنطقةGeodesicالمسافة الجيوديسيةBound, one way / RTTالحد الأدنى، اتجاه واحد / RTTFiber RTT floorحد RTT في الأليافMeasured RTTRTT المقيسMeasured ÷ RTT boundRTT المقيس ÷ حد RTT
Frankfurt (eu-central-1)فرانكفورت (eu-central-1)≈4,390 km≈4,390 km14.6 ms / 29.3 ms14.6 ms / 29.3 ms43.9 ms43.9 ms100 ms100 ms≈3.4×≈3.4×
Tokyo (ap-northeast-1)طوكيو (ap-northeast-1)≈8,300 km≈8,300 km27.7 ms / 55.3 ms27.7 ms / 55.3 ms83.0 ms83.0 ms163 ms163 ms≈2.9×≈2.9×
Oregon (us-west-2)أوريغون (us-west-2)≈11,900 km≈11,900 km39.7 ms / 79.4 ms39.7 ms / 79.4 ms119 ms119 ms243 ms243 ms≈3.1×≈3.1×
Dammam to three AWS regions. Distances are great-circle estimates on a sphere; measured RTTs are the lecture’s values.من الدمام إلى ثلاث مناطق في AWS. المسافات تقديرات للدائرة العظمى على كرة، وقيم RTT المقيسة هي قيم المحاضرة.
For each region: the vacuum RTT bound, the extra from slower fiber, and the measured RTT on topلكل منطقة: الحد الأدنى لـ RTT في الفراغ، والزيادة الناتجة عن بطء الألياف، ثم RTT المقيس فوقهما

Where the factor of three comes fromمن أين يأتي معامل الثلاثة

  • About 1.5× comes from glass alone, because light in fiber moves at about two thirds of cc.نحو 1.5× يأتي من الزجاج وحده، لأن الضوء في الألياف يتحرك بنحو ثلثي cc.
  • Cables do not follow the geodesic. They follow coastlines and seabeds, land at a few stations, and backhaul over land to data centers.الكابلات لا تتبع المسار الجيوديسي. إنها تتبع السواحل وقيعان البحار، وترسو في عدد قليل من المحطات، ثم تُنقل برّا (backhaul) إلى مراكز البيانات.
  • Each router on the way adds processing and queueing time, two of the four delays in the next concept.كل موجّه (router) في الطريق يضيف زمن معالجة وزمن انتظار في الطابور، وهما اثنان من التأخيرات الأربعة في المفهوم التالي.

Research agrees with this breakdown. Singla and colleagues measured Internet paths worldwide and found router paths about 2.3× the speed-of-light latency at the median. After removing the 1.5× fiber factor, path detours alone still leave about 1.53×.

والأبحاث تتفق مع هذا التقسيم. فقد قاس Singla وزملاؤه مسارات الإنترنت حول العالم ووجدوا أن مسارات الموجّهات تبلغ نحو 2.3× زمن الانتقال بسرعة الضوء عند الوسيط. وبعد إزالة معامل الألياف 1.5×، تظل انحرافات المسار وحدها تترك نحو 1.53×.

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

Dammam to Singapore is about 6,370 km along the geodesic. What is the round-trip lower bound at the speed of light in vacuum?المسافة من الدمام إلى سنغافورة نحو 6,370 km على المسار الجيوديسي. ما الحد الأدنى لرحلة الذهاب والإياب بسرعة الضوء في الفراغ؟

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

The measured Dammam to Frankfurt RTT is 100 ms, about three times the 29 ms vacuum bound. What best explains the gap?RTT المقيس من الدمام إلى فرانكفورت هو 100 ms، أي نحو ثلاثة أضعاف الحد الأدنى في الفراغ البالغ 29 ms. ما أفضل تفسير لهذه الفجوة؟

Recall

Dammam to London is about 5,020 km. Give the vacuum RTT bound and the fiber RTT floor.المسافة من الدمام إلى لندن نحو 5,020 km. أعطِ الحد الأدنى لـ RTT في الفراغ وحد RTT في الألياف.

5,020 ÷ 300,000 ≈ 16.7 ms one way, so 33.5 ms RTT. In fiber at 200,000 km/s it is 25.1 ms one way and 50.2 ms RTT.

5,020 ÷ 300,000 ≈ 16.7 ms في اتجاه واحد، إذن 33.5 ms لـ RTT. وفي الألياف بسرعة 200,000 km/s يكون 25.1 ms في اتجاه واحد و50.2 ms لـ RTT.

Recall

The measured Dammam to Tokyo RTT is 163 ms. How much is left after perfect fiber along the geodesic?RTT المقيس من الدمام إلى طوكيو هو 163 ms. كم يتبقى بعد احتساب ألياف مثالية على المسار الجيوديسي؟

About 83 ms is the fiber RTT floor, so roughly 80 ms comes from longer routes, router processing and queueing.

نحو 83 ms هي حد RTT في الألياف، إذن نحو 80 ms تأتي من مسارات أطول ومعالجة الموجّهات والانتظار في الطوابير.

The factor of three needs a precise vocabulary. Follow one 1,500-byte packet across one router onto a 4,390 km fiber link running at 1 Gbps. Pushing its 12,000 bits onto the wire takes 12,000 ÷ 10⁹ s = 12 µs. Travelling the fiber takes about 22 ms. The router’s own work takes microseconds. Waiting behind other packets takes anything from nothing to a very long time. Now slow the link to 10 Mbps: pushing the bits out now takes 1.2 ms, and the fiber trip is still 22 ms.

معامل الثلاثة يحتاج إلى مفردات دقيقة. تتبّع حزمة واحدة حجمها 1,500-byte تعبر موجّها واحدا إلى رابط ألياف طوله 4,390 km ويعمل بسرعة 1 Gbps. دفع بتاتها البالغة 12,000 إلى السلك يستغرق 12,000 ÷ 10⁹ s = 12 µs. والسفر عبر الألياف يستغرق نحو 22 ms. وعمل الموجّه نفسه يستغرق ميكروثواني. أما الانتظار خلف الحزم الأخرى فيستغرق أي مدة من لا شيء إلى وقت طويل جدا. والآن أبطئ الرابط إلى 10 Mbps: دفع البتات يستغرق الآن 1.2 ms، ورحلة الألياف ما زالت 22 ms.

Those four pieces are the four packet delays, and Kurose and Ross (section 1.4) add them up at every node a packet crosses. Processing delay happens inside switches and routers. Queueing delay happens in buffers when traffic piles up. Transmission delay happens at the network interface and depends on bandwidth. Propagation delay happens on the physical channel and depends on distance. Only the last one is the physics behind the lower bound; the other three are what real equipment and real traffic add on top.

هذه القطع الأربع هي التأخيرات الأربعة للحزمة، ويجمعها Kurose وRoss (القسم 1.4) عند كل عقدة تعبرها الحزمة. processing delay (تأخير المعالجة) يحدث داخل المبدّلات والموجّهات. queueing delay (تأخير الانتظار في الطابور) يحدث في المخازن المؤقتة عندما تتكدس حركة المرور. transmission delay (تأخير الإرسال) يحدث عند واجهة الشبكة ويعتمد على عرض النطاق. propagation delay (تأخير الانتشار) يحدث على القناة الفيزيائية ويعتمد على المسافة. والأخير وحده هو الفيزياء التي وراء الحد الأدنى، أما الثلاثة الأخرى فهي ما تضيفه المعدات الحقيقية وحركة المرور الحقيقية فوقه.

dnodal=dproc+dqueue+dtrans+dpropd_{\text{nodal}} = d_{\text{proc}} + d_{\text{queue}} + d_{\text{trans}} + d_{\text{prop}}
Delay at one node (Kurose and Ross, section 1.4)التأخير عند عقدة واحدة (Kurose and Ross، القسم 1.4)
dtrans=LRd_{\text{trans}} = \dfrac{L}{R}
L: packet length in bits, R: link rate in bits per secondL: طول الحزمة بالبت، R: معدل الرابط بالبت في الثانية
dprop=dsd_{\text{prop}} = \dfrac{d}{s}
d: link length, s: propagation speed, about 200,000 km/s in fiberd: طول الرابط، s: سرعة الانتشار، نحو 200,000 km/s في الألياف

End to end, you add the nodal delay over every hop on the path, and an RTT adds it again for the return direction. That sum is exactly the measured RTT from Dammam, which is why it sits so far above 2d/c. Hold on to the contrast that exams love: transmission depends on packet size and bandwidth and has nothing to do with distance, while propagation depends on distance and the medium and has nothing to do with bandwidth.

من الطرف إلى الطرف تجمع التأخير العُقدي على كل قفزة في المسار، ويضيفه RTT مرة أخرى لاتجاه العودة. وهذا المجموع هو بالضبط RTT المقيس من الدمام، ولهذا يقع بعيدا جدا فوق 2d/c. وتمسّك بالمقابلة التي تحبها الاختبارات: الإرسال يعتمد على حجم الحزمة وعرض النطاق ولا علاقة له بالمسافة، بينما الانتشار يعتمد على المسافة والوسط ولا علاقة له بعرض النطاق.

One packet’s delay as four charges (not to scale); on a 10 Mbps link only the transmission charge growsتأخير حزمة واحدة على شكل أربع رسوم (ليست بمقياس رسم)؛ على رابط 10 Mbps لا يكبر إلا رسم الإرسال
DelayالتأخيرWhere it happensأين يحدثDriven byما الذي يحددهFormula or key factorالمعادلة أو العامل الأساسيShrinks whenيتقلص عندما
ProcessingالمعالجةInside each router, switch or hostداخل كل موجّه أو مبدّل أو مضيفHeader checks, bit-error checks, forwarding lookupفحص الترويسة، وفحص أخطاء البتات، والبحث في جدول التوجيهDevice speed (usually microseconds)سرعة الجهاز (عادة ميكروثوانٍ)Faster hardware, fewer hopsعتاد أسرع، وقفزات أقل
Queueingالانتظار في الطابورIn router and server buffersفي المخازن المؤقتة للموجّهات والخوادمCongestion: how many packets arrived ahead of yoursالازدحام: عدد الحزم التي وصلت قبل حزمتكTraffic intensity, from zero to very largeشدة حركة المرور، من الصفر إلى قيم كبيرة جداLess traffic, more capacity, fewer hopsحركة مرور أقل، وسعة أكبر، وقفزات أقل
TransmissionالإرسالAt the network interface pushing bits onto the linkعند واجهة الشبكة التي تدفع البتات إلى الرابطPacket size and link bandwidthحجم الحزمة وعرض نطاق الرابطL / RL / RBandwidth goes up or packets get smallerعندما يرتفع عرض النطاق أو تصغر الحزم
PropagationالانتشارAlong the physical channel (fiber, copper, radio)على طول القناة الفيزيائية (ألياف، نحاس، راديو)Link length and the mediumطول الرابط والوسطd / sd / sThe endpoints move closerعندما يقترب الطرفان أحدهما من الآخر
The four delays at a glanceالتأخيرات الأربعة في لمحة

Can it really be 100 times the bound?هل يمكن حقا أن يبلغ 100 ضعف الحد الأدنى؟

The lecture claims Internet latency can reach 100× the Latency lower bound. For whole page loads, measurements support this. Singla and colleagues found that fetching just the HTML of popular web pages took 34× the round-trip speed-of-light latency at the median and 169× at the 90th percentile. Those fetches include more than the four per-hop delays: a DNS lookup, the TCP handshake and TCP’s slow start all add round trips. The lecture’s example of a 15 ms theoretical latency turning into 1,500 ms is best read the same way: an illustration of network delays stacked with protocol and application effects, not four delays on a single link.

تقول المحاضرة إن زمن الانتقال في الإنترنت قد يبلغ 100× latency lower bound. وبالنسبة لتحميل صفحات كاملة، تدعم القياسات ذلك. فقد وجد Singla وزملاؤه أن جلب ملف HTML وحده لصفحات ويب شائعة استغرق 34× زمن الانتقال بسرعة الضوء لرحلة الذهاب والإياب عند الوسيط، و169× عند المئين 90th. وهذه العمليات تشمل أكثر من التأخيرات الأربعة لكل قفزة: استعلام DNS، ومصافحة TCP، وبدء TCP البطيء (slow start)، وكلها تضيف رحلات ذهاب وإياب. ومثال المحاضرة عن زمن انتقال نظري 15 ms يتحول إلى 1,500 ms يُفهم أفضل بالطريقة نفسها: توضيح لتأخيرات الشبكة متراكمة مع تأثيرات البروتوكولات والتطبيقات، لا أربعة تأخيرات على رابط واحد.

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

A file server moves from a 1 Gbps link to a 10 Mbps link on the same cable route. Which delay grows for every packet?ينتقل خادم ملفات من رابط بسرعة 1 Gbps إلى رابط بسرعة 10 Mbps على مسار الكابل نفسه. أي تأخير يكبر لكل حزمة؟

Recall

Which delay depends on bandwidth, and which on distance? Give both formulas.أي تأخير يعتمد على عرض النطاق، وأيها يعتمد على المسافة؟ اكتب المعادلتين.

Transmission, dtrans=L/Rd_{\text{trans}} = L/R, depends on packet size and link rate. Propagation, dprop=d/sd_{\text{prop}} = d/s, depends on link length and the signal speed in the medium.

الإرسال، dtrans=L/Rd_{\text{trans}} = L/R، يعتمد على حجم الحزمة ومعدل الرابط. والانتشار، dprop=d/sd_{\text{prop}} = d/s، يعتمد على طول الرابط وسرعة الإشارة في الوسط.

Recapالخلاصة

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

  • Latency is time in transit. A request-response exchange pays it in both directions.زمن الانتقال هو الوقت الذي تقضيه البيانات في العبور. وتبادل الطلب والاستجابة يدفعه في الاتجاهين.
  • Latency_LB = geodesic distance ÷ c (about 300,000 km/s). Double it for RTT. No network can beat it.Latency_LB = المسافة الجيوديسية ÷ c (نحو 300,000 km/s). ضاعفه لتحصل على RTT. ولا توجد شبكة تستطيع أن تتجاوزه نزولا.
  • Measure distance along the curved Earth (geodesic), not as a straight line on a flat map.قِس المسافة على سطح الأرض المنحني (المسافة الجيوديسية)، لا كخط مستقيم على خريطة مسطحة.
  • Light in fiber travels at about 2/3 c, so even a perfect cable is about 1.5× the bound (about 5 ms per 1,000 km).ينتقل الضوء في الألياف بنحو 2/3 c، لذلك حتى الكابل المثالي يبلغ نحو 1.5× الحد الأدنى (نحو 5 ms لكل 1,000 km).
  • Measured RTTs from Dammam (100, 163 and 243 ms) are about 3× the round-trip bound, because of slower fiber, cable detours, routers and queues.قيم RTT المقيسة من الدمام (100 و163 و243 ms) تبلغ نحو 3× الحد الأدنى لرحلة الذهاب والإياب، بسبب بطء الألياف وانحرافات مسارات الكابلات والموجّهات والطوابير.
  • Total delay = processing + queueing + transmission (L/R) + propagation (d/s). Bandwidth shrinks only transmission. Only moving closer shrinks propagation.التأخير الكلي = المعالجة + الانتظار في الطابور + الإرسال (L/R) + الانتشار (d/s). زيادة عرض النطاق تقلّص الإرسال فقط. ولا يقلّص الانتشار إلا الاقتراب.
  • Full page fetches can be tens to over a hundred times the bound (Singla et al.: 34× median, 169× at the 90th percentile). This is why edge placement matters.قد يبلغ جلب صفحة كاملة عشرات الأضعاف إلى أكثر من مئة ضعف الحد الأدنى (Singla وزملاؤه: 34× عند الوسيط، و169× عند المئين التسعين). ولهذا يهمّ وضع الحوسبة على الحافة.

Sourcesالمصادر