Transportation 1 Flashcards
bind מדוע שרת חייב לעשות
אבל לקוח לא?
bind השרת עושה
כדי שהסוקט שהוא יצר ישוייך למספר פורט ספציפי, אשר ידוע ללקוחות והלקוחות מצפים מהשרת ״להמתין״ להם בסוקט שמשוייך למספר זה.
כאשר אליס שולחת הודעה לבוב והם נמצאים ברשתות שונות,
IP איזו כתובת
MAC ואיזו כתובת
כתובות כיעד?
MAC המחשב של אליס בונה חבילה עם כתובת ה
של הנתב בתור היעד, ועם כתובת
IP ה
של בוב בתור היעד
כאשר אליס שולחת הודעה לבוב והם שניהם באותה הרשת,
IP איזו כתובת
MAC ואיזו כתובת
כתובות כיעד?
MAC המחשב של אליס בונה חבילה עם כתובת ה
של בוב בתור היעד, ועם כתובת
IP ה
של בוב בתור היעד
UDP האם
יכול להבטיח אמינות?
ע”י מימוש בשכבת האפליקציה. כלומר,
לא יבטיח אמינות UDP
אבל שכבת האפליקציה מעליו תדאג לזה.
What does UDP deliver?
Messages
What does TCP deliver?
Bytes
Which is faster - udp or tcp?
udp
which is more reliable - udp or tcp?
tcp
What is “stop & wait”?
Send a single packet and wait until confirmation of successful transmission.
- If success, repeat with next packet
- else, re-transmit last packet and repeat
What is “MSS”?
Maximum Segment Size - the max size of application data that can fit into a packet s.t. when all headers are added, the total length is less than or equal to the MTU (in TCP protocol)
What is “RTT”?
Round Trip Time - the time it takes for a signal to arrive at its destination plus the
time for the acknowledgement to
travel back to the sender
What is the Go-Back-N method?
A sliding window protocol for reliable data transmission that allows the sender to send multiple packets (up to a window size) without waiting for individual acknowledgments. If a packet is lost, the sender retransmits that packet and all subsequent packets after a timeout. The receiver only accepts in-order packets and discards out-of-order ones.
What is the Selective Repeat method?
A sliding window protocol that allows the sender to retransmit only lost or corrupted packets instead of resending all subsequent packets. The receiver buffers out-of-order packets until the missing one arrives, improving efficiency compared to Go-Back-N but requiring more memory for buffering.
מדוע צריך “חוצץ” עבור חיבור
?TCP
- עבור שמירת חבילות שלא הגיעו ע”פ סדר השליחה
- לאפשר מצב בו האפליקציה קוראת לאט יותר מהקצב בו נכנסים אליה הנתונים