URLs, DNS and bit streaming
הוצג
23:35
רשתות
את לוחץ על שליחה. בתוך פחות משנייה, ההודעה שלך קופצת מהטלפון, רוצה בעיר, צוללת מתחת לאוקיינוס דרך כבל, ומקפיאה ב…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| text file/tekst faɪl/ | A file that stores data as a sequence of encoded characters. |
| distributed system/ˈdɪstrɪbjuːtɪd ˈsɪstəm/ | A group of connected computers that share work across a network. |
| servers/ˈsɜːvəz/ | A computer or program that provides services or resources in response to requests from clients. |
| name space | A set of names used to identify resources in a system. |
| Domain Name System/dəˈmeɪn neɪm ˈsɪstəm/ | מערכת שמות הדומיין (DNS) |
| Uniform Resource Locator/ˈjuːnɪfɔːm rɪˈzɔːs ləʊˈkeɪtə/ | |
| web/web/ | A collection of linked pages and other resources accessed through the internet. |
| protocol/ˈprəʊtəkɒl/ | פרוטוקול |
| domain name/dəˈmeɪn neɪm/ | שם דומיין |
| path/pæθ/ | The part of a web address that identifies a resource on a server. |
| port number | A number that identifies a service on a computer connected to a network. |
| query string | The part of a web address that sends extra information to the server. |
| IP addresses | Numerical addresses used to identify devices and deliver data across networks. |
| browser | A program used to access and display pages on the web. |
| resolver/rɪˈzɒlvə/ | מפרש |
| cached | Stored for a time so that it can be used again quickly. |
| root server | A DNS server that directs a resolver to the correct top-level domain server. |
| top-level domain server | A DNS server that directs a resolver to the authoritative server for a domain. |
| authoritative server | A DNS server that holds and returns records for a domain. |
| DNS hierarchy | The organised levels of DNS servers used to find domain information. |
| HTTP request/ˌeɪtʃ tiː tiː ˈpiː rɪˈkwest/ | A message sent to a server to ask for a web resource. |
| routers/ˈruːtəz/ | Network devices that forward packets between networks using destination addresses and routing information. |
| DNS record | A stored piece of information about a domain, such as its IP address. |
| Bit streaming/bɪt ˈstriːmɪŋ/ | The continuous sending of media data so it can be played as it arrives. |
| multimedia/ˌmʌltɪˈmiːdiːə/ | Content that combines forms of media such as sound, pictures and video. |
| Real-time/rɪəl taɪm/ | Describes streaming that sends content as it is captured. |
| latency/ˈleɪtənsi/ | The time between sending data and its arrival at the destination. |
| On-demand/ɒn dɪˈmænd/ | Describes streaming that plays stored content when the viewer chooses. |
| buffer/ˈbʌfə/ | חוםץ (Buffer) |
| bit rate/bɪt reɪt/ | קצב ביט |
| bits/bɪts/ | The smallest units of data, each having a value of zero or one. |
| broadband speed | The rate at which data can travel over a broadband connection. |
| Lossy/ˈlɒsi/ | Describing compression that discards some original information so it cannot be perfectly recovered. |
| compression/kəmˈpreʃn/ | דחיסה |
| bandwidth/ˈbændwɪdθ/ | The frequency range carried by a signal or channel; in networking, often used for its data transfer capacity. |
| frames/freɪmz/ | Individual images shown in sequence to make a video. |
| packet/ˈpækɪt/ | Units of data sent through a network, containing payload and control information such as addressing details. |
| sample/ˈsæmpl/ | To record a signal's value at a selected time or position; the recorded measurement is also called a sample. |
| encoded | Changed into a suitable form for storing, sending or processing data. |
ספר הטלפונים שהפעיל את האינטרנט
- עד 1983 כל מחשב באינטרנט מצא אחרים על ידי הורדת קובץ טקסט אחד, HOSTS.TXT, ממכשיר יחיד בסטנפורד. בכל פעם שמחשב חדש הצטרף, הקובץ גדל והכול הורידו אותו שוב.
- פול מוקאפטריס החליף את הקובץ במערכת מפוזרת של שרתים, כל אחד מענה על חלק משלו במרחב השמות. הוא קרא לו מערכת שמות התחום.
- זוהי הסיבה שאתה מקליד שם ולא שנים עשר ספרות, ולמה אתר יכול לעבור מבית מבלי לספר לך.
- שיעור זה הוא הכתובת שאתה מקליד, המערכת שמחזירה אותה, וכיצד וידאו מגיע אליך לפני שהסתיימה הגרסה שלו.
הכתובת URL
- Uniform Resource Locator (URL) ממוקם משאם אחד באתרים:
https://www.example.com/about/contact.html. - ה-פרוטוקול,
https, אומר כיצד למשוך אותו. ה-שם תחום,www.example.com, קורא לשרת בצורה שנשמעת לאדם. ה-מסלול,/about/contact.html, קורא לקובץ בשרת הזה. - ל-URL עשוי להיות גם מספר יציאה ומחרוזת בקשה לאחר
?, אך פרוטוקול, תחום ומסלול הם השלושה שהמבחן מבקש.

In https://www.example.com/about/contact.html, what is https?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
https is the protocol; www.example.com is the domain name; /about/contact.html is the path.
Match each part of https://www.example.com/about/contact.html to its name.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
A URL is protocol + domain name + path — the protocol says how, the domain says which server, the path says which resource.
מערכת שמות התחום
- מחשבים שולחים לכתובות IP, לא שמות. מערכת שמות התחום (DNS) היא מערכת מפוזרת של שרתים המתרגמת שם תחום לכתובת IP.
- הדפדפן שואל מפתר. אם המפתר לא זכר את התשובה, הוא שואל שרת שורש, שמפנה אותו לשרת תחום עליון עבור
.com, שמפנה אותו לשרת מוסמך עבורexample.com, שמחזיר את כתובת ה-IP. - לאחר מכן, הדפדפן מתחבר לכתובת IP זו ומבקש את הנתיב. כל תהליך החיפוש לוקח מייליות ומועלם (cached), כך שהוא נשנה לעיתים רחוקות.

מפתח (Resolver), שורש (root), דומיין ברמה עליונה (top-level domain), סמכותי (authoritative): ולאחר מכן הדפדפן מתחבר

How DNS finds a website
Step through a DNS lookup. The network routes by IP, not by name — so before anything loads, DNS must turn the domain name into an IP address.
The Domain Name System (DNS) mainly:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
DNS resolves human-readable domain names to the numeric IP addresses the network actually uses.
דוגמה פותרת: מכניכת הכתובת שנכתבה ועד להטענת העמוד
- המשתמש כותב את כתובת האתר (URL). הדפדפן מפריד בין הפרוטוקול, שם הדומיין ואת הנתיב.
- הדפדפן שולח את שם הדומיין למפתח DNS, שמבצע שאילתה במבנה היררכי של DNS עד שמשרת סמכותי מחזיר את כתובת ה-IP של השרת.
- הדפדפן פותח חיבור לכתובת IP זו ושולח בקשת HTTP עבור הנתיב.
- השרת מחזיר את העמוד, והדפדפן מציג אותו. ארבעה צעדים, והשלב של DNS הוא זה שמעוברים עליו בעיקר.

Put a DNS lookup in order, from typing the address to loading the page.
רמת קושי 3/5 · 200 מטבעות + בונוס קטן בהשלמה הראשונה היום
The resolver walks the hierarchy (root → TLD → authoritative) until it gets the IP, then the browser connects.
מדוע קיים DNS
- אנשים זוכרים שמות; נתבים מספקים שירות למספרים. DNS מאפשר לשני הדברים להיות נכון בו-זמנית.
- אתר יכול לעבור לשרת חדש או להתפשט על פני מספר שרתים, על ידי שינוי רקורד ה-DNS שלו. המשתמשים כותבים את אותו שם.
- המערכת מבוזרת, כך שאף שרת יחיד אינו מחזיק בכל השמות, והיא מעולמת בכל הרמה, כך שהעומס מתפזר.
Why does the web use DNS rather than having users type IP addresses? Select כולם that apply.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
DNS is about names, flexibility and distribution. The lookup adds a few milliseconds; it does not speed up the page itself.
הזרמת ביטים
- הזרמת ביטים שולחת מדיה כזרם רציף שהמקבל מנגן בזמן אמת כשהוא מגיע, במקום להוריד את הקובץ כולו תחילה.
- הזרמה בזמן אמת מצולמת ונשלחת כפי שהיא מתרחשת, כמו משחק ספורט חי או שיחת וידאו. אין אפשרות לחזור אחורה, ולכן חביון נמוך (low latency) הוא קריטי.
- הזרמה לפי דרישה מנגנת קובץ שנשמר כבר בשרת. ניתן לעצור ולהחזיר לאחור, והשרת יכול לשדר קדימה.

*הבופר נמצא בין הרשת לבין המנגן

Streaming media plays as it arrives, without first downloading the whole file.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
That is the defining feature of streaming — the receiver plays the stream as it comes in (with a small buffer), rather than waiting for a full download.
Compared with real-time (live) streaming, on-demand streaming:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
On-demand content is pre-recorded, so you can pause/rewind and the server can buffer well ahead. Live streaming can't be rewound and needs low latency.
בופרים ושיעור ביט
- בופר מאחסן מספר שניות של נתבים לפני התחלת ההפעלה, כדי שקפיצה זמנית ברשת לא תעצור את התמונה. הזרמות לפי דרישה יכולות לבופר הרבה קדימה; הזרמה חיה יכולה לבופר רק מעט, אלא היא תפסיק להיות חיה.
- קצב הביטים הוא מספר הביטים לשנייה שהזרם דורש. הוא חייב להישאר מתחת למהירות האינטרנט הרחב, אלא אם כן הנתונים יגיעו לאט יותר מהשהייה וההשמעה תתעכב.
- דחיסה עם איבוד נתונים שומרת על קצב הביטים נמוך: תנועות בתמונות מחפיפות אובדנים קטנים, והזרם חייב להתאים לרוחב הפס.

Why does a streaming player use a buffer?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
The buffer holds a few seconds ahead of what is playing, so short slow-downs in the network don't cause the playback to stall.
For a stream to play without stalling, its bit rate must stay ____ the broadband speed of the connection.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
If more bits per second are needed than the connection delivers, data arrives more slowly than it is played and the buffer empties.
דוגמא פותרת: מדוע לדחס לפני הזרקה ישירה?
- הסבר מדוע וידאו נדחס לפני שהוא מוזרק בזמן אמת.
- הזרם שאינו דחוס דורש רוחב פס גדול יותר מהקישור מספק, ולכן הפריימים יגיעו מאוחר וההשמעה תתעכב.
- הדחיסה מקטינה את מספר הביטים, כך שקצב הביטים נשאר מתחת למהירות האינטרנט הרחב וההשהייה נשארת קטנה.
- נדרש פחות אחסון ועלות בשני הקצוות. חבילה מאוחרת בזרם ישיר פשוט נזרקת, משום שזרם ישיר אינו יכול לחכות עליה.
דוגמא פותרת: מערכת העיבוד בזמן אמת
- תאר כיצד אירוע ישיר מוזרק לצופים.
- המצלמה והמיקרופון תופסים ומדגימים את האירוע. הנתונים מועברים באמצעות דחיסה כדי לצמצם את גודלם.
- הזרם נשלח דרך הרשת כחבילות. מכשיר הצופה מטמין מעט, ולאחר מכן מבצע השמעה, ומדלג על כל חבילה שמגיעה מאודידי.
- השווה בהשוואה לזמינות לפי דרישה: הקובץ קיים כבר, ולכן השרת יכול לשלוח מראש, המטמון יכול להיות גדול, והצופה יכול לעצור ולהחזיר לאחור.

Put the stages of real-time streaming in order.
רמת קושי 3/5 · 200 מטבעות + בונוס קטן בהשלמה הראשונה היום
Capture, encode, send, play. The compression happens before sending, which is what keeps the bit rate inside the bandwidth.
סימונים נופלים מהיד
- DNS ממיר שם לכתובת IP, לעולם לא ההפך בתשובת בחינה, ואינו זה מה שמעביר את הדף.
- הזרקה בזמן אמת עדיין יכולה להשתמש במטמון; הוא פשוט קטן. מה שהוא לא יכול לעשות הוא להחזיר לאחור.
- קצב הביטים מושווה למהירות הקישור. אם קצב הביטים גבוה יותר, הזרם מתעכב; ציין מי הם מי.
- החלק של הפרוטוקול ב-URL הוא
https, ולאwww.wwwהוא חלק משם התחום.
In a real-time stream, a packet that arrives too late is held until it can be played in its proper place.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
A live stream cannot wait: a late packet is dropped and playback continues. Only on-demand streaming can afford to wait, because it buffers far ahead.
הבנתך מושלמת
- URL = פרוטוקול + שם תחום + נתיב; DNS ממיר את שם התחום לכתובת IP דרך רזולבר → שורש → ברמת עליון → שרתים מוסמכים
- DNS קיים כדי שאנשים ישתמשו בשמות, נתבי רשת ישתמשו במספרים, ואתר יכול להזיז את עצמו ללא שינוי בשמו
- זרימת ביטים מבצעת השמעת מדיה כפי שהיא מגיעה: זמן אמת הוא חי ואינו יכול להחזיר לאחור, על פי דרישה מאוחסן ויכול
- מטמון מכסה נפילות ברשת; קצב הביטים חייב להישאר מתחת למהירות האינטרנט הרחב, ולכן זרמים משתמשים בדחיסה עם איבוד נתונים
מה השתבש? רק צוות האתר רואה זאת.