Application-layer protocols
הוצג
11:12
למה צריכים פרוטוקולים
מחשב אחד רוצה לתקשר עם מחשב אחר, אך הראשון שולח את הנתונים בדרך מסוימת והשני מצפה להם בצורה שונה לחלוטין. התוצאה היא תסמונה – כמו שני אנשים המדברים…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| email/ˈiːmeɪl/ | A service for sending and receiving messages over the internet. |
| mail program | Software used to send, receive and manage email messages. |
| download/ˈdaʊnləʊd/ | To receive data from another computer and save it locally. |
| delete/dɪˈliːt/ | To remove a record from a table. |
| server/ˈsɜːvə/ | A computer or program that provides services or resources in response to requests from clients. |
| protocols/ˈprəʊtəkɒlz/ | An agreed set of rules governing communication between devices or systems. |
| application layer/ˌæplɪˈkeɪʃn ˈleɪə/ | שכבת יישום |
| web/web/ | A collection of linked pages and other resources accessed through the internet. |
| file transfer | The process of sending files from one device to another over a network. |
| peer-to-peer/pɪə tə pɪə/ | אינטר-לאינטר |
| HTTP/ˌeɪtʃ tiː tiː ˈpiː/ | פרוטוקול העברת טקסט ממוחשב |
| HTTPS/ˌeɪtʃ tiː tiː piː ˈes/ | פרוטוקול העברת טקסט ממוחשב מאובטח |
| browser | A program used to access and display pages on the web. |
| web pages | Documents on the web that a browser can display. |
| TCP/ˌtiː siː ˈpiː/ | A transport protocol that establishes a connection and delivers data reliably and in order. |
| port/pɔːt/ | In this hardware topic, a physical socket or connection used to attach a peripheral. |
| TLS/ˌtiː el ˈes/ | אבטחת שכבת העברת נתונים |
| encrypted/enˈkrɪptɪd/ | Changed into a form that cannot be understood without the correct key. |
| ciphertext/ˈsaɪfətekst/ | Information transformed by encryption into a form intended to be unreadable without the appropriate key. |
| certificate/səˈtɪfɪkət/ | A digital document that helps prove the identity of a website. |
| FTP/ˌef tiː ˈpiː/ | פרוטוקול העברת קבצים |
| client/ˈklaɪənt/ | A device or program that requests a service or resource from a server. |
| upload | To send data from a device to another computer over a network. |
| credentials | Information used to confirm a user's identity when accessing a system. |
| SMTP/ˌes em tiː ˈpiː/ | פרוטוקול העברת דואר אלקטרוני פשוט |
| POP3/pɒp ˈθriː/ | Download mail to one device, usually deleting it from the server. |
| IMAP/ˈaɪmæp/ | |
| internet/ˈɪntənet/ | A worldwide system of interconnected networks using Internet Protocol. |
| push/pʊʃ/ | To send data to another computer without waiting for a request. |
| synchronises | Keeps data and its state consistent across a server and devices. |
| folders | Containers used to organise files and other folders in a file system. |
| read flags | Marks that record whether messages have been read. |
| frames/freɪmz/ | Individual images shown in sequence to make a video. |
| BitTorrent/bɪt ˈtɒrənt/ | A peer-to-peer protocol: there is no single server holding the file for everyone. |
| tracker/ˈtrækə/ | A server that helps computers sharing a file find each other. |
| peers | Computers that share file pieces directly with one another. |
| in parallel/ɪn ˈpærəlel/ | At the same time, rather than one after another. |
| bandwidth/ˈbændwɪdθ/ | The frequency range carried by a signal or channel; in networking, often used for its data transfer capacity. |
| operating system/ˈɒpəreɪtɪŋ ˈsɪstəm/ | System software that manages hardware resources and provides services for applications. |
| bottleneck/ˈbɒtəlnek/ | A part of a system that limits its overall speed or capacity. |
| single point of failure/ˈsɪŋɡl pɔɪnt ɒv ˈfeɪlɪə/ | One part whose failure can cause the whole system to stop working. |
| authenticated/ɔːˈθentɪkeɪtɪd/ | Describes an identity that has been checked and confirmed. |
מדועתיבת הכניסה שלך נראית זהה בכל מכשיר
- פתח את הדואר האלקטרוני במחשב נייד, ואז בטלפון. אותם הודעות קיימות, וההודעות שקראת מסומנות כנקראות בשני המכשירים.
- זה לא מובן מאליו. במשך עשרים שנה המצב הרגיל היה שהתוכנה להודעות תוריד הכל ותתמחק מהשרת, כך שמכשיר אחד שהקיבל את הדואר ראשון היה היחיד שעמד בו.
- שני הסוגים עדיין בשימוש, ובחירה ביניהם היא בחירה בין שני פרוטוקולים עם אותה מטרה ועיצובים הפוכים.
- שיעור זה עוסק בפרוטוקולי שכבת היישום שהתוכנית דורשת: רשת, העברת קבצים, שלושת פרוטוקולי הדואר, וpeer-to-peer.
האינטרנט: HTTP ו-HTTPS
- HTTP הוא הדרך בה דפדפן משיט דפי רשת ומשאביהם מהשרת. הוא פועל מעל TCP, בדרך כלל על פורט 80.
- HTTPS הוא HTTP שנעשה בתוך TLS, כך שהתנועה מצופה, על פורט 443.
- מה ש-HTTPS מוסיף: מתקין גנב בערוץ רואה רק טקסט מצופה, השרת מאמת את זהותו באמצעות תעודה, וכל שיבוש מתגלה. השתמש בו בכל פעם שהנתונים פרטיים, שבהווה זה אומר תמיד.
Network route lab
Follow data from a device through network hardware and protocols.
HTTPS is:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
HTTPS runs HTTP over TLS encryption (port 443), protecting the data in transit.
What does HTTPS add over plain HTTP? Select כולם that apply.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
TLS supplies confidentiality, authentication and integrity. Compression is a separate feature of HTTP itself.
העברת קבצים: FTP
- FTP מעביר קבצים בין לקוח לסרבר: העלאה, הורדה, רשימה, שינוי שם ומחיקה.
- הוא מיועד לקבצים שלמים, בעוד ש-HTTP מיועד למסמכים ולמשאבים שדפדפן מציג.
- FTP רגיל שולח את פרטי ההתחברות שלו בגלוי, ולכן גרסאות מאובטחות החליפו אותו לכל דבר הכולל נתונים רגישים.
דוא"ל: SMTP, POP3 ו-IMAP
- SMTP שולח דוא"ל: מהלקוח לסרבר היוצא שלו, ומסרבר לסרבר ברחבי האינטרנט. זהו החלק הדוחף של הדוא"ל.
- POP33 הורדות דוא"ל למכשיר אחד ובדרך כלל מחק אותו מהשרת. הדוא"ל נשאר מאוחסן במכשיר זה.
- IMAP משאיר דוא"ל על הסרבר ומתזמן את המצב, תיקיות, סימני קריאה ומחיקות בכל מכשיר. הדוא"ל נשמר בסרבר.

כל אחד מהפרוטוקולים הללו מגיע בסופו של דבר לתוך מסגרות כמו זו

Which protocol is used to SEND email?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
SMTP sends mail; POP3 and IMAP are used to receive/read it.
IMAP leaves mail on the server and syncs it across all your devices, while POP3 typically downloads the mail and deletes it from the server.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
That is why IMAP shows the same inbox on your phone and laptop, whereas POP3 ties mail to one device.
דוגמה פותרת: בחירת פרוטוקול דוא"ל
- משתמש קורא דוא"ל בטלפון, מחשב נייד ומחשב שולחני, ורוצה את אותה תיבת כניסה בשלושתם. איזה פרוטוקול קבלה לבחירה, ולמה?
- IMAP: ההודעות נשארות על הסרבר והלקוח מתזמן איתו, כך שהודעה שנקראה או סומנה בתיקיה במכשיר אחד תוצג כנקראת או מסומנת גם במכשירים האחרים.
- משתמש שני יש לו מחשב נייד ישן, קוטר תיבת דוא"ל זעיר ואינו מחובר לאינטרנט לעיתים קרובות. POP3: הדוא"ל מורח למחשב הנייד ומוסר מהסרבר, מה שמשחרר את הקוטר ומאפשר קריאה ללא חיבור.
- העובדות המכריעות הן כמה מכשירים ואיפה הדוא"ל צריך להתגורר. SMTP אינו תשובה לשאלה זו: הוא רק שולח.

A user reads mail on three devices and wants read messages marked read everywhere. Which protocol receives the mail?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
IMAP leaves the mail on the server and synchronises state across devices. POP3 downloads to one device and usually deletes; SMTP sends.
POP3 downloads mail to one device and usually ____ it from the server.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
That frees the mailbox quota and suits a single device used offline, but the mail then exists only on that device.
הכרטיס הזה תוקן, לכן הוא מוצג באנגלית עד שהתרגום שלו יעודכן.
Peer-to-peer: BitTorrent
- BitTorrent 比特洪流 is a peer-to-peer 对等网络 protocol: there is no single server holding the file for everyone.
- The file is split into pieces. A tracker 追踪服务器 helps peers 对等节点 find each other, and each peer then downloads pieces from many other peers in parallel 并行 while uploading the pieces it already has.
- The effect: the more popular a file, the more peers there are to serve it, so the load spreads instead of concentrating. A single server would need bandwidth 带宽 proportional to the number of downloaders.

Every downloader is also an uploader
BitTorrent reduces load on any single server because it:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
As a peer-to-peer protocol, each peer shares pieces, so no single server carries the whole load.
דוגמה פתורה: מדוע BitTorrent מתאים לשחרור גדול
- מערכת הפעלה חופשית משוחררת כקובץ בגודל 4 GB ומיליון משתמשים מורידים אותו ביום הראשון. הסבר מדוע BitTorrent עדיף על שרת אינטרנט יחיד.
- עם HTTP, שרת אחת צריכה לשלוח 4 GB במיליון פעמים, ולכן רוחב הפס והעלות שלה קיימים בקשר ישיר למספר המורידים, מה שהופך אותה לנקודת היצרה ונקודת תיקו יחידה.
- עם BitTorrent, הקובץ מחולק לחלקים והכל כל שותף מעלה את החלקים שקיבל כבר, ולכן הקיבולת גוברת ככל שמספר המורידים עולה במקום להיות נבלעת מהם.
- התשובה מציין את העומס, אומר לאן הוא הולך ואומר מה קורה כאשר הביקוש עולה.

With BitTorrent, the more people download a file, the more capacity there is to serve it.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Every peer uploads the pieces it already has, so capacity grows with demand. A single server's bandwidth is consumed by demand instead.
הפרוטוקולים במבט כללי
| פרוטוקול | משימה |
|---|---|
| HTTP | טעימת דפי אינטרנט, פורט 80 מעל TCP |
| HTTPS | HTTP בתוך TLS, מוצפן, פורט 443 |
| FTP | העברת קבצים שלמים אל וש_from_שרת |
| SMTP | שליחת דוא"ל, לקוח לשרת ושרת לשרת |
| POP3 | הורדת דוא"ל למכשיר אחד, בדרך כלל לאחר מחיקתו מהשרת |
| IMAP | השארת דוא"ל בשרת, סנכרון בין מכשירים |
| BitTorrent | שיתוף חלקי קבצים בין-ל-בין (peer-to-peer) |

Match each protocol to its use.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
HTTP = web, FTP = files, SMTP = sending email (POP3/IMAP receive it).
סימונים נופלים מהיד
- SMTP שולח; POP3 ו-IMAP מקבלים. שאלה ששואלת כיצד נשלח דוא"ל יש לה תשובה אחת בלבד.
- ההבדל בין IMAP ל-POP3 הוא איפה הדוא"ל נמצא: בשרת ובסנכרון, או מורד ומוכחל.
- HTTPS אינו פרוטוקול שונה מ-Highlight; הוא HTTP מעל TLS, ו-TLS הוא מה שמוסיף את ההצפנה.
- BitTorrent מפזר עומס כי כל שותף מעלה. "זה מהיר יותר" ללא הסיבה הזו לא מניקה נקודות.
הבנתך מושלמת
- HTTP מוריד דפי אינטרנט מעל TCP; HTTPS הוא אותו פרוטוקול בתוך TLS, מוצפן מאומת; FTP מעביר קבצים שלמים
- SMTP שולח דוא"ל; POP3 מוריד ובדרך כלל מוחק אותו; IMAP משאיר אותו בשרת ומסנכרן כל מכשיר
- בחר פרוטוקול דואר בהתבסס על מספר ההתקנים ואתר האחסון של הדואר
- BitTorrent הוא מערכת מק-מק: חלקים ממועדים רבים בו-זמנית, כל מוריד גם מעלה, כך שהקיבולת גדלה עם הביקוש
מה השתבש? רק צוות האתר רואה זאת.