Network Layer Flashcards
Data Plane
- local, per-router function
- determines how datagram arriving on router input port is forwarded to router output port
Control Plane
- network-wide logic
- determines how datagram is routed among routers along end-end path from source host to destination host
What are subnets?
Subnets are device interfaces that can physically reach each other without passing through an intervening router
What is an interface?
Connection between
host/router and physical link
* routers typically have multiple
interfaces
* host typically has one or two
interfaces
What is CIDR (Classless InterDomain Routing)?
- subnet portion of address of arbitrary length
- address format: a.b.c.d/x, where x is # bits in subnet portion of address
What is the ICMP protocol?
Used by hosts and routers to communicate network-level information
* error reporting: unreachable host, network, port, protocol
* echo request/reply (used by ping)
What is NAT (Network Adress Translation)?
All devices in local network share just one IPv4 address as far as outside world is concerned
Full-Cone NAT
מיפוי קבוע, לאחר הפעם הראשונה שמתקיימת תקשורת בין הצדדים (NAT דרך ה)
המיפוי לא ישתנה. בנוסף, כל בקשה “חיצונית” לעבר מחשב “פנימי” תמופה לפי המיפוי המקורי.
Restricted-Cone NAT
כאשר ישנו “חיצוני” חדש שרוצה לתקשר עם “פנימי” זה לא אפשרי.
מה כן? אם “החיצוני” ביצע תקשורת “לפנימי” בעבר (ועדיין מעודכן בטבלה) מפורט מסוים, הוא יכול לפנות לאותו פנימי שוב אפילו עם פורט אחר.
Port-Restricted-Cone NAT
Restricted כמו ה
רק עם הגבלה חדשה: כעת ה”חיצוני” יכול להשתמש רק באותו פורט שכבר בוצעה ביניהם תקשורת דרכו.
Symmetric NAT
הכי נוקשה, רק היעדים שנשלח אליהם יכולים לשלוח לנו בחזרה ורק ליעד ששלח להם (לכן הסימטריה).
זה נובע מצורת המיפוי: כעת מובטח לנו שכאשר “פנימי” שולח בקשה ל”חיצוני” 1 יקבל מיפוי 1, ו”חיצוני” 2 יקבל מיפוי 2, ולכן לא יצא מצב ש”חיצוני” אחר ממי שקיבל את ההודעה “מהפנימי” יוכל ליצור איתו קשר.
inter-AS
AS ניתוב בין שני
שונים (ומעלה)
intra-AS
AS ניתוב בתוך
מסוים
AS
autonomous sections - aggregation of routers into separate “regions”