Protocols and the TCP/IP model
مُقدَّم
11:12
لماذا البروتوكولات ضرورية
حاسوبان يريدان التحدث، لكن أحدهما يرسل بياناته بطريقة والأخر يتوقعها بشكل مختلف تماماً. النتيجة هي غيبوبة — مثل شخصين يتحدثان…
سرد باللغة الإنجليزية · ترجمة نصية بالإنجليزية و中文 يمكنك التبديل بينهما
في هذا الدرس
| English | المعنى |
|---|---|
| byte/baɪt/ | A group of eight bits, commonly used as a unit of data storage. |
| protocol/ˈprəʊtəkɒl/ | بروتوكول |
| stack/stæk/ | A set of network protocol layers arranged so each layer performs a particular job. |
| layered/ˈleɪəd/ | Describes a system divided into levels, each with a particular job. |
| TCP/IP | A set of network protocols organised into four layers for communication across networks. |
| TCP/ˌtiː siː ˈpiː/ | بروتوكول التحكم في النقل |
| UDP/ˌjuː diː ˈpiː/ | بروتوكول بيانات المستخدم |
| addresses | Numbers that identify specific locations in a computer's memory. |
| payload/ˈpeɪləʊd/ | The data being carried in a message, excluding information added to deliver it. |
| acknowledge/əkˈnɒlɪdʒ/ | To send a message confirming that data has been received. |
| timeouts | Periods after which a sender stops waiting for a response and takes action. |
| retransmissions | The sending of data again, usually because no acknowledgement arrived in time. |
| Modularity/ˌmɒdjʊˈlærɪti/ | One layer can be replaced without touching the others, so swapping Ethernet for Wi-Fi changes nothing above the link layer. |
| Ethernet/ˈiːθənet/ | A technology used to connect devices and transfer data over wired networks. |
| Wi-Fi | A set of rules for sending data across a wireless local network. |
| link layer/lɪŋk ˈleɪə/ | طبقة الربط |
| Standardisation/ˌstændədaɪˈzeɪʃn/ | Establishing or using consistent specifications, procedures or measures. |
| interface/ˈɪntəfeɪs/ | A way for users or programs to communicate with the computer's hardware. |
| Abstraction/əbˈstrækʃn/ | Representing essential features while leaving out unnecessary detail. |
| web app/web æp/ | A program that users access through a web browser. |
| application layer/ˌæplɪˈkeɪʃn ˈleɪə/ | طبقة التطبيق |
| HTTP/ˌeɪtʃ tiː tiː ˈpiː/ | Hypertext Transfer Protocol: an application-layer request/response protocol used to transfer web resources. |
| FTP/ˌef tiː ˈpiː/ | A protocol used to transfer files between computers over a network. |
| SMTP/ˌes em tiː ˈpiː/ | A protocol used to send email between computers over a network. |
| IMAP/ˈaɪmæp/ | A protocol used to access and manage email stored on a server. |
| transport layer/ˈtrænspɔːt ˈleɪə/ | طبقة النقل |
| end-to-end delivery | The transfer of data from a process on one host to a process on another. |
| processes/ˈprəʊsesɪz/ | Programs that are running and can send or receive data. |
| port numbers/pɔːt ˈnʌmbəz/ | أرقام المنافذ |
| internet layer/ˈɪntənet ˈleɪə/ | |
| packets/ˈpækɪts/ | الحزم |
| hosts | Devices connected to a network that can send or receive data. |
| IP address/ˌaɪ ˈpiː əˈdres/ | عنوان IP |
| routers/ˈruːtəz/ | المحوِّلات |
| bits/bɪts/ | The smallest units of data, each having a value of zero or one. |
| physical link | The physical connection that carries signals between directly connected network devices. |
| framing/ˈfreɪmɪŋ/ | The process of putting data into frames for sending across a link. |
| MAC addresses/mæk əˈdresɪz/ | عناوين MAC |
| browser | A program used to access and display pages on the web. |
| server/ˈsɜːvə/ | A computer or program that provides services or resources in response to requests from clients. |
| HTTP request/ˌeɪtʃ tiː tiː ˈpiː rɪˈkwest/ | A message sent to a server to ask for a web resource. |
| segments/ˈseɡmənts/ | Units of data created by TCP for transport between processes. |
| hop/hɒp/ | One step in a packet's journey between directly connected network devices. |
| networks/ˈnetwɜːks/ | A set of connected devices or nodes that can exchange information. |
| frame/freɪm/ | A discrete unit in a sequence or transmission; in video, one complete image, and in networking, a link-layer data unit. |
| connection-oriented/kəˈnekʃn ˈɔːrɪəntɪd/ | اتجاهي الاتصال |
| overhead/ˌəʊvəˈhed/ | Extra data or work needed to manage communication. |
| delay/dɪˈleɪ/ | The time taken for data to travel from sender to receiver. |
| HTTPS/ˌeɪtʃ tiː tiː piː ˈes/ | A secure set of rules for transferring web pages and other web content. |
| connectionless/kəˈnekʃənləs/ | بدون اتجاه اتصال |
| acknowledgements/əkˈnɒlɪdʒmənts/ | Messages sent to confirm that data has been received. |
| live streaming | The sending of audio or video over a network as it happens. |
| DNS/ˌdiː en ˈes/ | A system that translates domain names into IP addresses. |
| reliability/rɪˌlaɪəˈbɪlɪti/ | How consistently a system supplies the required output. |
| video frame | One still image in a sequence that makes up a video. |
| layering/ˈleɪərɪŋ/ | التدرج الطبقي |
| error handling | The actions taken when an error occurs during communication. |
الرسالة المكونة من كلمتين التي أطلقت الإنترنت
- في 29 أكتوبر 1969، كتب طالب في جامعة كاليفورنيا بلوس أنجلوس كلمة LOGIN إلى جهاز في ستانفورد، حرفاً بحرف، بينما كان زميل على الهاتف يؤكد كل حرف. بعد L و O تعطل النظام.
- المشكلة لم تكن السلك أبداً. كانت أن جهازين بُنِيا بواسطة شركات مختلفة لم يتفقوا على قواعد حول معنى البايت، ومتى يتحدث، أو ما فعله عند فقدان شيء ما.
- كل ما جاء afterward كان كتابة تلك القواعد. البروتوكول هو هذا الاتفاق، والإنترنت هو ركام من بروتوكولاته.
- هذه الدرس هو سبب وجود البروتوكولات، ولماذا هي متعددة الطبقات، طبقات TCP/IP الأربع، والفرق بين TCP و UDP.
ما يعرّفه البروتوكول
- البروتوكول هو مجموعة قواعد لكيفية تواصل الأجهزة. يجب أن يلتزم الطرفان بنفس القواعد، وإلا تكون إشارات أحد الطرفين بلا معنى للطرف الآخر.
- يحدد صيغة البيانات، أين العناوين وأين يبدأ الحمل المفيد؛ ترتيب الرسائل، من يتحدث أولاً ومتى يتم الاعتماد عليها؛ معنى كل رسالة؛ التوقيت، مؤقتات إعادة الإرسال؛ وما فعله عند حدوث خطأ.
- بدون واحد، تفشل التواصل تماماً، كما تفشل شخصان بدون لغة مشتركة.

قواعد متفق عليها مسبقاً، من كلا الطرفين
A network protocol is:
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
A protocol defines the format, order, meaning, timing and error handling of messages — both ends must agree.
What does a protocol define? Select جميعها that apply.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Format, order, meaning, timing and error handling. The cable's speed is a property of the hardware, not of the agreement.
لماذا تُطبَّق البروتوكولات على شكل طبقات
- الشبكات معقدة للغاية لدرجة لا تسمح بمجموعة واحدة من القواعد، لذا يتم تقسيمها إلى طبقات، كل منها يقوم بمهمة مركزة واحدة، ويتواصل فقط مع الطبقة التي تعلوها والطبقة التي تسفله. يتم تنفيذ ذلك على شكل رصة.
- التقسيم المعياري: يمكن استبدال طبقة واحدة دون المساس بالبقية، فاستبدال إيثرنت بواي فاي لا يغير شيئًا فوق طبقة الربط.
- المعايير: تتكامل المعدات من موردين مختلفين لأن واجهة كل طبقة متفق عليها. التجريد: مبرمج يكتب تطبيق ويب يتجاهل تمامًا ما تقوم به الطبقات السفلية.

أربع طبقات، كل منها بمهمة واحدة
A benefit of splitting networking into layers is:
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Each layer has one job and a clear interface, so (e.g.) Ethernet can be swapped for Wi-Fi without touching higher layers.
طبقات TCP/IP الأربعة
| الطبقة | الغرض | أمثلة |
|---|---|---|
| طبقة التطبيق | خدمات لبرامج المستخدم، والبروتوكولات التي تستخدمها | HTTP، FTP، SMTP، IMAP |
| طبقة النقل | التوصيل من طرف إلى طرف بين العمليات، يتم تحديدها عبر أرقام المنافذ | TCP، UDP |
| طبقة الإنترنت | نقل الحزم بين المضيفين عن طريق عناوين IP IP، يتم توجيهها بواسطة الموجهات | IP |
| طبقة الربط | إرسال البتات عبر رابط فيزيائي واحد، وإطار البيانات باستخدام عناوين MAC MAC | Ethernet، Wi-Fi |
- طبقة الإنترنت لا تضمن الوصول إلى الوجهة. هذه مهمة طبقة النقل، وذلك فقط عند استخدام بروتوكول TCP.
Tap the four layers of the TCP/IP model
Explore each layer. Data travels DOWN the stack as it's sent (each layer adds its header) and back UP as it's received — and any layer can be swapped without touching the others.
Match each TCP/IP layer to its job.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Application = user protocols; Transport = TCP/UDP delivery; Internet = IP routing; Link = bits on the medium.
The internet layer (IP) guarantees that every packet arrives.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
IP forwards packets and does not guarantee delivery. Reliability is added above it, by TCP, and UDP deliberately does without it.
مثال محلول: رسالة تعبر الإنترنت
- صف ما يحدث في كل طبقة عندما يطلب متصفح صفحة من خادم.
- التطبيق: يبني المتصفح طلب HTTP للصفحة.
- النقل: يقسم TCP الطلب إلى أجزاء، ويضيف أرقام المنافذ، وسيقوم بالتأكيد وإعادة إرسال أي جزء مفقود.
- الإنترنت: يضيف IP عناوين المصدر والوجهة لكل حزمة، وتقوم الموجهات بتوجيهها قفزة تلو الأخرى عبر الشبكات.
- الربط: تضع كل قفزة الحزمة في إطار مع عناوين MAC وتُرسل البتات عبر الكابل أو موجات الراديو. عند الخادم، تتم إزالة الإطارات في اتجاه معاكس.

Put the TCP/IP layers in order, from the user's program down to the wire.
الصعوبة 3/5 · 200 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Each layer wraps the one above; at the far end they are unwrapped in reverse order.
TCP وUDP
- TCP موجه للاتصال: يُنشئ اتصالًا أولًا، ويضمن وصول جميع البيانات وبترتيبها، ويعيد إرسال الحزم المفقودة ويتحكم في تدفق البيانات. موثوق، على حساب الزيادة في حجم البيانات والتأخير. يُستخدم في HTTP وHTTPS وSMTP وFTP.
- UDP غير موجه للاتصال: يرسل وينسى، بدون تأكيدات، ولا ترتيب، ولا إعادة إرسال. زائد بيانات منخفض، ولا ضمانات.
- يُستخدم UDP للبث المباشر، ونظام أسماء النطاقات (DNS)، والألعاب عبر الإنترنت، حيث السرعة تفوق الموثوقية: إطار الفيديو المعاد إرساله سيصل بعد الوقت الذي كان ضروريًا فيه، لذا فإن فقدانه أفضل من الانتظار.

موثوق وأبطأ، أو سريع وغير مضمون
How does TCP differ from UDP?
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
TCP sets up a connection and ensures reliable, ordered delivery (with overhead); UDP is fire-and-forget.
TCP is connection-oriented and guarantees ordered, complete delivery (with overhead), while UDP is fire-and-forget — faster but with no delivery guarantee.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
That's why UDP suits live streaming, gaming and DNS, but TCP is used for files, email and secure web pages where every byte must arrive.
Live video streaming uses ____ because speed matters more than retransmitting lost packets.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
A resent frame would arrive after the moment it was needed, so dropping it beats waiting. TCP's guarantees are worth their cost for a payment page.
مثال محلول: اختيار بروتوكول النقل
- شركة تبث مباراة رياضية مباشرة وتبيع التذاكر أيضًا عبر صفحة ويب. أي بروتوكول نقل يُستخدم لكل منهما، ولماذا؟
- البث المباشر: UDP. الإطار المفقود يصبح بلا قيمة بحلول وقت إعادة إرساله، لذا فالسرعة والتأخير المنخفض مهمان أكثر من الاكتمال، ويفضل المشاهد فقدان إطار بدلاً من مشاهدة الصورة متوقفة.
- صفحة التذاكر: TCP. يجب أن تصل كل بايت من الدفع والحجز بشكل صحيح وبترتيبه، لذا فإن التأكيدات والإعادة الإرسال تستحق الزيادة في حجم البيانات.
- سمِّ البروتوكول، ثم اذكر خاصية البيانات التي تحدد اختياره.
علامات ضائعة
- البروتوكول هو مجموعة قواعد، وليس برنامجًا أو كابلًا. سمِّ اثنين على الأقل من الأشياء التي يحددها.
- فائدة الطبقات هي التقسيم المعياري، والمعايير، والتجريد، وليس "إنه أسرع".
- IP لا يضمن الوصول؛ TCP يفعل ذلك. لا تُحسب لطبقة الإنترنت الموثوقية.
- UDP ليس "أسوأ". يُختار عندما السرعة تفوق الموثوقية، ويجب أن تذكر الإجابة نوع البيانات المناسب لذلك.
لقد فهمت الأمر
- البروتوكول هو قواعد متفق عليها للتنسيق، والترتيب، والمعنى، والتوقيت، ومعالجة الأخطاء، يتبعها الطرفان
- تشكل البروتوكولات رصة من الطبقات، مما يوفر التقسيم المعياري، والمعايير، والتجريد
- طبقات TCP/IP: التطبيق (HTTP، SMTP)، النقل (TCP، UDP، أرقام المنافذ)، الإنترنت (عناوين IP، الموجهات)، الربط (Ethernet، Wi-Fi، عناوين MAC)
- TCP موجه للاتصال، مرتب وموثوق؛ UDP غير موجه بالاتصال بدون ضمانات، للبث، ونظام DNS، والألعاب
ما المشكلة؟ لا يرى ذلك سوى فريق الموقع.