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, סטודנט ב-UCLA הקליד את המילה LOGIN למכונה בסטנפורד, אות אחת באחת, כשהוא שוחח בטלפון עם בן זוגו שמאשר כל אות. לאחר L ו-O המערכת קרסה.
- הבעיה מעולם לא הייתה בחוט. היה זה ששתי מכונות שנבנו על ידי חברות שונות לא היו להם חוקים הסכומים על מה הביט משמעות, מתי לדבר, או מה לעשות כאשר דבר מה אבד.
- כל מה שאירע מאז הוא פשוט כתיבת החוקים האלה. פרוטוקול הוא ההסכם הזה, והאינטרנט הוא ערימה של פרוטוקולים.
- שיעור זה הוא הסיבה שקיימים פרוטוקולים, מדוע הם שכבתיים, ארבע שכבות 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.
מדוע הפרוטוקולים שכבתיים
- רשתות מורכבות מדי עבור סט חוקים אחד, ולכן הן מחולקות לשכבות, כל אחת עם משימה ממוקדת אחת, כל אחת מדברת רק לשכבה מעליה ולשכבה מתחתיה. היישום הוא ערימה.
- מודולריות: שכבה אחת יכולה להיות מחולפת מבלי לגעת באחרות, כך שהחלפת Ethernet ב-Wi-Fi לא משנה דבר מעל שכבת הקישור.
- סטנדרטיזציה: ציוד ממפעלים שונים מתקשר כי הממשק של כל שכבה הוא מוסכם. ה_rpcstraction: מתכנת כותב אפליקציית אינטרנט מתעלם מכל מה שהשכבות התחתונות מטפלות בו.

ארך שכבות, כל אחת עם משימה אחת

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 |
| שכבת הקישור | שליחת ביטים לאורך קישור פיזי אחד, עטיפה עם כתובות 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 מוסיף כתובות 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. כל בייט בתשלום ובהזמנה חייב להגיע, נכון ומסודר, ולכן ההתאמות והשדרוגים מוצדקים למרות העומס הנוסף.
- ציין את הפרוטוקול, ולאחר מכן תן את המאפיין של הנתונים שמוכיח אותו.
סימונים נופלים מהיד
- פרוטוקול הוא סט של כללים, לא תוכנית או כבל. ציין לפחות שניים מהדברים שהוא מגדיר.
- היתרון של שכבות הוא מודולריות, סטנדרטיזציה וabstraction (השחלה), לא "זה מהיר יותר".
- IP אינו מבטיח אספקה; TCP כן. אל תגמל את שכבת האינטרנט באמינות.
- UDP אינו "פחות טוב". הוא נבחר כאשר מהירות עולה על אמינות, והתשובה חייבת לציין איזה סוג נתונים זה.
הבנתך מושלמת
- פרוטוקול הוא כללים מסוכמים עבור פורמט, סדר, משמעות, זמן ועיבוד שגיאות, המיושמים על ידי שני הקצוות.
- פרוטוקולים יוצרים ערימה של שכבות, המעניקה מודולריות, סטנדרטיזציה ו-השחלה (abstraction).
- שכבות TCP/IP: יישום (HTTP, SMTP), העברה (TCP, UDP, מספרי פורטים), אינטרנט (כתובות IP, נתבים), קישור (Ethernet, Wi-Fi, כתובות MAC).
- TCP הוא קונקטיבי, מסודר ואמין; UDP הוא ללא קונקציה וללא הבטחות, לזרימת מדיה, DNS ומשחקים.
מה השתבש? רק צוות האתר רואה זאת.