Network Layerطبقة الشبكة
مقدمة الفصل
ماذا ستتعلم في هذا الفصل
- Understand principles behind network layer services: network layer service models, forwarding versus routing, how a router works, routing (path selection).
- Instantiation, implementation in the Internet: IP (datagram format, IPv4 addressing, ICMP, IPv6) and routing in the Internet (RIP, OSPF, BGP).
- Routing algorithms: link state, distance vector, hierarchical routing.
أقسام الفصل
- 1Network layer: functions and service modelطبقة الشبكة: الوظائف ونموذج الخدمة
- 2Virtual circuit and datagram networksشبكات الدارة الافتراضية وشبكات الداتاجرام
- 3Router architecture overviewنظرة على معمارية الموجّه
- 4The Internet network layer and the IP datagram formatطبقة الشبكة في الإنترنت وصيغة داتاجرام IP
- 5IP fragmentation and reassemblyتجزئة IP وإعادة التجميع
- 6IP addressing, subnets and CIDRعنونة IP والشبكات الفرعية وCIDR
- 7DHCP: Dynamic Host Configuration Protocolبروتوكول DHCP
- 8Getting address blocks: hierarchical addressing and ICANNكتل العناوين والعنونة الهرمية وICANN
- 9NAT: network address translationترجمة عناوين الشبكة NAT
- 10ICMP and tracerouteICMP وtraceroute
- 11IPv6 and the transition from IPv4IPv6 والانتقال من IPv4
- 12Routing algorithms: graph abstraction and classificationخوارزميات التوجيه: الرسم البياني والتصنيف
- 13Link-state routing: Dijkstra's algorithmتوجيه حالة الرابط: خوارزمية ديكسترا
- 14Distance vector routing; LS vs DVتوجيه متجه المسافة ومقارنته بحالة الرابط
- 15Hierarchical routing and autonomous systemsالتوجيه الهرمي والأنظمة المستقلة
- 16Intra-AS routing: RIPالتوجيه داخل النظام: RIP
- 17OSPF (Open Shortest Path First)بروتوكول OSPF
- 18BGP and why intra- and inter-AS routing differBGP ولماذا يختلف التوجيه الداخلي عن الخارجي
تلميح: استخدم أسهم لوحة المفاتيح للتنقل بين الشرائح.
Network layer: two key functionsوظيفتا طبقة الشبكة
Network layer: functions and service model
- Transports segment from sending to receiving host: on sending side encapsulates segments into datagrams; on receiving side delivers segments to transport layer.
- Network layer protocols in every host, router; router examines header fields in all IP datagrams passing through it.
Forwardingالتمرير
- Move packets from router's input to appropriate router output
- Analogy: process of getting through single interchange
- Forwarding table determines local forwarding at this router
Routingالتوجيه
- Determine route taken by packets from source to dest.
- Analogy: process of planning trip from source to dest
- Routing algorithm determines end-end-path through network
Connection setup and service modelsإنشاء الاتصال ونماذج الخدمة
Network layer: functions and service model
3rd important function in some network architectures (ATM, frame relay, X.25): before datagrams flow, two end hosts and intervening routers establish virtual connection — routers get involved.
Network
- Between two hosts
- May also involve intervening routers in case of VCs
Transport
- Between two processes
For individual datagrams
- Guaranteed delivery
- Guaranteed delivery with less than 40 msec delay
For a flow of datagrams
- In-order datagram delivery
- Guaranteed minimum bandwidth to flow
- Restrictions on changes in inter-packet spacing
Datagram vs virtual-circuit networksالداتاجرام والدارات الافتراضية
Virtual circuit and datagram networks
Provides network-layer connectionless service.
Provides network-layer connection service.
Analogous to TCP/UDP services, but:
- Service: host-to-host
- No choice: network provides one or the other
- Implementation: in network core
| Internet (datagram) | ATM (VC) | |
|---|---|---|
| Origin / traffic |
|
|
| End systems | "Smart" end systems (computers): can adapt, perform control, error recovery | "Dumb" end systems: telephones |
| Where complexity is | Simple inside network, complexity at "edge" | Complexity inside network |
| Links / service |
| Need for guaranteed service |
Router architecture overviewمعمارية الموجّه
- 1Run routing algorithms/protocol (RIP, OSPF, BGP)
- 2Forwarding datagrams from incoming to outgoing link
Routing, management control plane (software)
- Routing processor
- Forwarding tables computed, pushed to input ports
Forwarding data plane (hardware)
- Router input ports
- High-speed switching fabric
- Router output ports
IP datagram formatصيغة داتاجرام IP
The Internet network layer (slide 14)
- Routing protocols: path selection — RIP, OSPF, BGP → forwarding table
- IP protocol: addressing conventions, datagram format, packet handling conventions
- ICMP protocol: error reporting, router "signaling"
| Field | Meaning (slide 15) |
|---|---|
| ver | IP protocol version number |
| head. len | Header length (bytes) |
| type of service | "Type" of data |
| length | Total datagram length (bytes) |
| 16-bit identifier, flgs, fragment offset | For fragmentation/reassembly |
| time to live | Max number remaining hops (decremented at each router) |
| upper layer | Upper layer protocol to deliver payload to |
| header checksum | Checksum over the header |
| source / destination IP address | 32 bits each |
| options (if any) | e.g. timestamp, record route taken, specify list of routers to visit |
| data | Variable length, typically a TCP or UDP segment |
IP fragmentation and reassemblyالتجزئة
Largest possible link-level frame. Different link types, different MTUs.
- 1
A large IP datagram is divided ("fragmented") within the net.
- 2
One datagram becomes several datagrams.
- 3
They are "reassembled" only at final destination.
- 4
IP header bits are used to identify, order related fragments.
Fragmentation example: 4000 bytes, MTU 1500مثال التجزئة
IP fragmentation and reassembly
المسألة
4000 byte datagram (including a 20-byte IP header) over a link with MTU = 1500 bytes
المعطيات
- Payload
- 4000 − 20 = 3980 bytes
- Per full fragment
- 1500 = 20 (header) + 1480 (data)
خطوات الحل
- Fragment 1: 1480 data bytes, offset 0
- Fragment 2: 1480 data bytes, offset = 1480/8 = 185
- Fragment 3: 3980 − 1480 − 1480 = 1020 data bytes; length = 20 + 1020 = 1040; offset = 2960/8 = 370
النتيجة
3 fragments: (1500, offset 0, flag 1), (1500, offset 185, flag 1), (1040, offset 370, flag 0) — all with the same ID x.
| Fragment | length | ID | fragflag | offset | Data bytes |
|---|---|---|---|---|---|
| Original | 4000 | x | 0 | 0 | 3980 (4000 − 20) |
| 1st | 1500 | x | 1 | 0 | 1480 (starts at byte 0) |
| 2nd | 1500 | x | 1 | 185 | 1480 (starts at byte 1480) |
| 3rd | 1040 | x | 0 | 370 | 1020 (starts at byte 2960) |
IP addresses and interfacesالعناوين والواجهات
IP addressing, subnets and CIDR
32-bit identifier for host, router interface.
Connection between host/router and physical link. IP addresses associated with each interface.
- Routers typically have multiple interfaces.
- A host typically has one or two interfaces (e.g., wired Ethernet, wireless 802.11).
- Example: 223.1.1.1 = 11011111 00000001 00000001 00000001.
- Wired Ethernet interfaces are connected by Ethernet switches; wireless WiFi interfaces by a WiFi base station.
Subnets and CIDRالشبكات الفرعية وCIDR
Subnet part
- High order bits
Host part
- Low order bits
Device interfaces with same subnet part of IP address; can physically reach each other without intervening router.
To determine the subnets, detach each interface from its host or router, creating islands of isolated networks; each isolated network is called a subnet (e.g., 223.1.1.0/24, 223.1.2.0/24, 223.1.3.0/24 — subnet mask: /24).
Subnet portion of address of arbitrary length; address format a.b.c.d/x, where x is # bits in subnet portion of address. Example: 200.23.16.0/23.
DHCPDHCP
Hard-coded
- By system admin in a file
- Windows: control-panel→network→configuration→tcp/ip→properties
- UNIX: /etc/rc.config
DHCP
- Dynamically get address from as server
- "Plug-and-play"
DHCP goal
- Allow host to dynamically obtain its IP address from network server when it joins network
- Can renew its lease on address in use
- Allows reuse of addresses (only hold address while connected/"on")
- Support for mobile users who want to join network
DHCP overview
- discover
Host broadcasts "DHCP discover" msg [optional]
- offer
DHCP server responds with "DHCP offer" msg [optional]
- request
Host requests IP address: "DHCP request" msg
- ack
DHCP server sends address: "DHCP ack" msg
DHCP client-server scenario (slide 30)
- Three subnets joined by one router — 223.1.1.0/24 (hosts 223.1.1.1–.3, router interface 223.1.1.4), 223.1.2.0/24 (hosts 223.1.2.1, 223.1.2.2, router 223.1.2.9, the DHCP server) and 223.1.3.0/24 (hosts 223.1.3.1, 223.1.3.2, router 223.1.3.27). An arriving DHCP client needs an address in this network (223.1.2.0/24).
DHCP: more than IP addressesما يقدمه DHCP أيضًا
DHCP: Dynamic Host Configuration Protocol
DHCP can return more than the allocated IP address
- Address of first-hop router for client
- Name and IP address of DNS server
- Network mask (indicating network versus host portion of address)
Example: a connecting laptop (slides 33–34)
- 1
DHCP request encapsulated in UDP, encapsulated in IP, encapsulated in 802.1 Ethernet.
- 2
Ethernet frame broadcast (dest: FFFFFFFFFFFF) on LAN, received at router running DHCP server.
- 3
Ethernet demuxed to IP, IP demuxed to UDP, UDP demuxed to DHCP.
- 4
DHCP server formulates DHCP ACK containing client's IP address, IP address of first-hop router for client, name & IP address of DNS server.
- 5
Frame forwarded to client, demuxing up to DHCP at client. Client now knows its IP address, DNS server and first-hop router.
Hierarchical addressing and ICANNالعنونة الهرمية
| Block | Address |
|---|---|
| ISP's block | 200.23.16.0/20 |
| Organization 0 | 200.23.16.0/23 |
| Organization 1 | 200.23.18.0/23 |
| Organization 2 | 200.23.20.0/23 |
| … | … |
| Organization 7 | 200.23.30.0/23 |
Hierarchical addressing allows efficient advertisement of routing information: Fly-By-Night-ISP advertises "Send me anything with addresses beginning 200.23.16.0/20".
If Organization 1 moves to ISPs-R-Us, ISPs-R-Us advertises "Send me anything with addresses beginning 199.31.0.0/16 or 200.23.18.0/23" — a more specific route to Organization 1.
Internet Corporation for Assigned Names and Numbers: allocates addresses, manages DNS, assigns domain names, resolves disputes.
NAT: network address translationNAT
All datagrams leaving the local network have the same single source NAT IP address (138.76.29.7), with different source port numbers. Inside, datagrams use 10.0.0/24 addresses as usual.
Motivation: one IP address as far as the outside world is concerned
- Range of addresses not needed from ISP: just one IP address for all devices
- Can change addresses of devices in local network without notifying outside world
- Can change ISP without changing addresses of devices in local network
- Devices inside local net not explicitly addressable, visible by outside world (a security plus)
NAT router must:
- Outgoing
Replace (source IP address, port #) of every outgoing datagram with (NAT IP address, new port #).
- Remember
Store every (source IP address, port #) ↔ (NAT IP address, new port #) pair in the NAT translation table.
- Incoming
Replace (NAT IP address, new port #) in the dest fields with the corresponding (source IP address, port #) from the table.
NAT example; why NAT is controversialمثال NAT وجدله
NAT: network address translation
Slide 42
- 1
Host 10.0.0.1 sends datagram to 128.119.40.186, 80 (S: 10.0.0.1, 3345).
- 2
NAT router changes datagram source addr from 10.0.0.1, 3345 to 138.76.29.7, 5001, updates table.
- 3
Reply arrives: dest. address 138.76.29.7, 5001.
- 4
NAT router changes datagram dest addr from 138.76.29.7, 5001 to 10.0.0.1, 3345.
- 16-bit port-number field: 60,000 simultaneous connections with a single LAN-side address!
NAT is controversial
- Routers should only process up to layer 3
- Violates end-to-end argument — NAT possibility must be taken into account by app designers, e.g., P2P applications
- Address shortage should instead be solved by IPv6
ICMPICMP
Used by hosts & routers to communicate network-level information: error reporting (unreachable host, network, port, protocol) and echo request/reply (used by ping).
- Network-layer "above" IP: ICMP msgs carried in IP datagrams.
- ICMP message: type, code plus first 8 bytes of IP datagram causing error.
| Type | Code | Description |
|---|---|---|
| 0 | 0 | echo reply (ping) |
| 3 | 0 | dest. network unreachable |
| 3 | 1 | dest host unreachable |
| 3 | 2 | dest protocol unreachable |
| 3 | 3 | dest port unreachable |
| 3 | 6 | dest network unknown |
| 3 | 7 | dest host unknown |
| 4 | 0 | source quench (congestion control - not used) |
| 8 | 0 | echo request (ping) |
| 9 | 0 | route advertisement |
| 10 | 0 | router discovery |
| 11 | 0 | TTL expired |
| 12 | 0 | bad IP header |
Traceroute and ICMPtraceroute
ICMP and traceroute
- 1
Source sends a series of UDP segments to dest, with an unlikely port number: first set has TTL = 1, second set has TTL = 2, etc. (3 probes per set).
- 2
When the nth set arrives at the nth router, the router discards the datagrams and sends the source ICMP messages (type 11, code 0), including the router's name & IP address.
- 3
When the ICMP messages arrive, the source records RTTs.
- 4
Stopping criteria: the UDP segment eventually arrives at the destination host, which returns an ICMP "port unreachable" message (type 3, code 3); the source stops.
IPv6IPv6
Identify priority among datagrams in flow.
Identify datagrams in same "flow" (concept of "flow" not well defined).
Identify upper layer protocol for data.
Source address (128 bits); destination address (128 bits).
Other changes from IPv4
- Checksum: removed entirely to reduce processing time at each hop
- Options: allowed, but outside of header, indicated by "Next Header" field
- ICMPv6: new version of ICMP — additional message types, e.g. "Packet Too Big"; multicast group management functions
Transition from IPv4 to IPv6: tunnelingالانتقال والنفق
IPv6 and the transition from IPv4
- Not all routers can be upgraded simultaneously — no "flag days".
- How will the network operate with mixed IPv4 and IPv6 routers?
IPv6 datagram carried as payload in IPv4 datagram among IPv4 routers.
Example (slide 51): IPv6 routers A, B, E, F; IPv4 routers C, D
- A-to-B
IPv6 datagram: flow X, src A, dest F, data.
- B-to-C … to E
IPv6 inside IPv4: IPv4 header src B, dest E; payload = the IPv6 datagram.
- E-to-F
IPv6 datagram again: flow X, src A, dest F, data.
Graph abstraction and routing classificationالرسم البياني والتصنيف
Routing algorithms: graph abstraction and classification
Graph: G = (N,E)
- N = set of routers = { u, v, w, x, y, z }
- E = set of links = { (u,v), (u,x), (v,x), (v,w), (x,w), (x,y), (w,y), (w,z), (y,z) }
- c(x,x') = cost of link (x,x'), e.g., c(w,z) = 5; cost could always be 1, or inversely related to bandwidth, or to congestion
- Cost of path (x1, …, xp) = c(x1,x2) + c(x2,x3) + … + c(xp−1,xp)
Algorithm that finds the least cost path (e.g., between u and z).
Global ("link state")
- All routers have complete topology, link cost info
Decentralized ("distance vector")
- Router knows physically-connected neighbors, link costs to neighbors
- Iterative process of computation, exchange of info with neighbors
Static
- Routes change slowly over time
Dynamic
- Routes change more quickly
- Periodic update; in response to link cost changes
Dijkstra's algorithmخوارزمية ديكسترا
- Net topology, link costs known to all nodes — via "link state broadcast"; all nodes have same info.
- Computes least cost paths from one node ("source") to all other nodes — gives forwarding table for that node.
- Iterative: after k iterations, know least cost path to k dest.'s.
Link cost from node x to y; = ∞ if not direct neighbors.
Current value of cost of path from source to dest. v.
Predecessor node along path from source to v.
Set of nodes whose least cost path definitively known.
Algorithm (slide 59)
- Init
N' = {u}; for all nodes v: D(v) = c(u,v) if v adjacent to u, else ∞.
- Loop
Find w not in N' such that D(w) is a minimum; add w to N'.
- Update
For all v adjacent to w and not in N': D(v) = min( D(v), D(w) + c(w,v) ).
- Until
All nodes in N'.
Dijkstra's algorithm: worked exampleمثال ديكسترا
Link-state routing: Dijkstra's algorithm
| Step | N' | D(v),p(v) | D(w),p(w) | D(x),p(x) | D(y),p(y) | D(z),p(z) |
|---|---|---|---|---|---|---|
| 0 | u | 2,u | 5,u | 1,u | ∞ | ∞ |
| 1 | ux | 2,u | 4,x | 2,x | ∞ | |
| 2 | uxy | 2,u | 3,y | 4,y | ||
| 3 | uxyv | 3,y | 4,y | |||
| 4 | uxyvw | 4,y | ||||
| 5 | uxyvwz |
| Step | N' | D(v),p(v) | D(w),p(w) | D(x),p(x) | D(y),p(y) | D(z),p(z) |
|---|---|---|---|---|---|---|
| 0 | u | 7,u | 3,u | 5,u | ∞ | ∞ |
| 1 | uw | 6,w | 5,u | 11,w | ∞ | |
| 2 | uwx | 6,w | 11,w | 14,x | ||
| 3 | uwxv | 10,v | 14,x | |||
| 4 | uwxvy | 12,y | ||||
| 5 | uwxvyz |
- Update rule on slide 60: D(v) = min( D(v), D(w) + c(w,v) ); e.g. D(z) = min( D(z), D(y) + c(y,z) ) = min(14, (10+2)) = 12.
- The resulting least-cost paths (red on slide 60): u→x, u→w, w→v, v→y, y→z.
Resulting forwarding table in u (slide 62)
- v → link (u,v)
- x, y, w, z → link (u,x)
Discussion (slide 63)
- n nodes: each iteration checks all nodes not in N; n(n+1)/2 comparisons: O(n²); more efficient implementations possible: O(n log n).
- Oscillations possible, e.g., if link cost equals amount of carried traffic.
Distance vector: Bellman-Fordمتجه المسافة
Distance vector routing; LS vs DV
dx(y) = min over neighbors v of { c(x,v) + dv(y) } — the least cost from x to y. c(x,v): cost to neighbor v; dv(y): cost from neighbor v to destination y.
المسألة
Slide 66: dv(z) = 5, dx(z) = 3, dw(z) = 3; c(u,v) = 2, c(u,x) = 1, c(u,w) = 5
خطوات الحل
- du(z) = min{ c(u,v) + dv(z), c(u,x) + dx(z), c(u,w) + dw(z) }
- = min{ 2 + 5, 1 + 3, 5 + 3 }
النتيجة
du(z) = 4; the node achieving the minimum (x) is the next hop, used in the forwarding table.
Distance vector algorithm
- From time-to-time, each node sends its own distance vector estimate to neighbors.
- When x receives a new DV from a neighbor, it updates its own DV using B-F: Dx(y) ← min_v{c(x,v) + Dv(y)}.
- Iterative, asynchronous: each local iteration is caused by a local link cost change or a DV update message from a neighbor.
- Distributed: each node notifies neighbors only when its DV changes; neighbors then notify their neighbors if necessary.
Distance vector: the x, y, z exampleمثال متجه المسافة
Distance vector routing; LS vs DV
Slide 71: three nodes with links x–y 2, y–z 1, x–z 7. Each node's table holds its own distance vector (row "from" itself) and the vectors it has received from neighbours ("cost to" x, y, z). Time runs left to right.
| Start: from x / y / z | After receiving y, z vectors | Final | |
|---|---|---|---|
| x | 0 2 7 | 0 2 3 | 0 2 3 |
| y | ∞ ∞ ∞ | 2 0 1 | 2 0 1 |
| z | ∞ ∞ ∞ | 7 1 0 | 3 1 0 |
| Start | After receiving x, z vectors | Final | |
|---|---|---|---|
| x | ∞ ∞ ∞ | 0 2 7 | 0 2 3 |
| y | 2 0 1 | 2 0 1 | 2 0 1 |
| z | ∞ ∞ ∞ | 7 1 0 | 3 1 0 |
| Start | After receiving x, y vectors | Final | |
|---|---|---|---|
| x | ∞ ∞ ∞ | 0 2 7 | 0 2 3 |
| y | ∞ ∞ ∞ | 2 0 1 | 2 0 1 |
| z | 7 1 0 | 3 1 0 | 3 1 0 |
- Dx(y) = min{ c(x,y) + Dy(y), c(x,z) + Dz(y) } = min{2+0, 7+1} = 2.
- Dx(z) = min{ c(x,y) + Dy(z), c(x,z) + Dz(z) } = min{2+1, 7+0} = 3.
Comparison of LS and DV algorithmsمقارنة LS وDV
Distance vector routing; LS vs DV
| Link state (LS) | Distance vector (DV) | |
|---|---|---|
| Message complexity | With n nodes, E links, O(nE) msgs sent |
|
| Speed of convergence |
|
|
| Robustness (router malfunctions) |
|
|
Hierarchical routing: autonomous systemsالأنظمة المستقلة
Hierarchical routing and autonomous systems
Scale
- With 600 million destinations: can't store all dest's in routing tables
- Routing table exchange would swamp links
Administrative autonomy
- Internet = network of networks
- Each network admin may want to control routing in its own network
Regions of aggregated routers. Routers in same AS run same routing protocol ("intra-AS" routing protocol); routers in different AS can run different intra-AS protocols.
At "edge" of its own AS; has link to router in another AS.
- Forwarding table configured by both intra- and inter-AS routing: intra-AS sets entries for internal dests; inter-AS & intra-AS set entries for external dests.
Inter-AS tasks and hot potato routingالمهام بين الأنظمة
Hierarchical routing and autonomous systems
- 1Learn which dests are reachable through AS2, which through AS3
- 2Propagate this reachability info to all routers in AS1
Hot potato routing (slide 80): send packet towards closest of two routers
- 1
Learn from inter-AS protocol that subnet x is reachable via multiple gateways.
- 2
Use routing info from intra-AS protocol to determine costs of least-cost paths to each of the gateways.
- 3
Hot potato routing: choose the gateway that has the smallest least cost.
- 4
Determine from forwarding table the interface I that leads to least-cost gateway. Enter (x, I) in forwarding table.
RIP (Routing Information Protocol)RIP
Intra-AS routing: RIP
Intra-AS routing = interior gateway protocols (IGP)
- RIP: Routing Information Protocol
- OSPF: Open Shortest Path First
- IGRP: Interior Gateway Routing Protocol (Cisco proprietary)
- Algorithm
Distance vector algorithm (included in BSD-UNIX distribution in 1982).
- Metric
# hops (max = 15 hops); each link has cost 1.
- Exchange
DVs exchanged with neighbors every 30 sec in response message (aka advertisement).
- Advertisement size
List of up to 25 destination subnets (in IP addressing sense).
- Who runs it
Application-level process called route-d (daemon); advertisements sent in UDP packets, periodically repeated.
RIP example: processing an advertisementمثال RIP
Intra-AS routing: RIP
A-to-D advertisement (slide 85)
- w: next -, 1 hop
- x: next -, 1 hop
- z: next C, 4 hops
| Destination subnet | Next router (before) | # hops (before) | After A's advertisement |
|---|---|---|---|
| w | A | 2 | unchanged (A, 2) |
| y | B | 2 | unchanged (B, 2) |
| z | B | 7 |
|
| x | -- | 1 | unchanged (directly attached) |
المسألة
D currently reaches z via B in 7 hops. A advertises z at 4 hops, and D–A is one hop.
خطوات الحل
- Cost via A = 4 + 1 = 5 hops
- 5 < 7
النتيجة
D changes its entry for z to next router A, 5 hops.
OSPFOSPF
- "Open": publicly available.
- Uses link state algorithm: LS packet dissemination; topology map at each node; route computation using Dijkstra's algorithm.
- OSPF advertisement carries one entry per neighbor; advertisements flooded to entire AS.
- Carried in OSPF messages directly over IP (rather than TCP or UDP).
- IS-IS routing protocol: nearly identical to OSPF.
| RIP | OSPF | |
|---|---|---|
| Algorithm | Distance vector |
|
| Metric | # hops (max 15), each link cost 1 |
|
| Advertisements |
|
|
| Carried in | UDP packets (route-d process) | OSPF messages directly over IP |
| Same-cost paths | Only one path | Multiple same-cost paths allowed |
| Security | لا تذكر الشرائح شيئًا هنا. | All OSPF messages authenticated |
BGP; why intra- and inter-AS routing differBGP
BGP and why intra- and inter-AS routing differ
The de facto inter-domain routing protocol — "glue that holds the Internet together".
Obtain subnet reachability information from neighboring ASs.
Propagate reachability information to all AS-internal routers.
Determine "good" routes to other networks based on reachability information and policy.
- BGP allows a subnet to advertise its existence to rest of Internet: "I am here".
| Intra-AS | Inter-AS | |
|---|---|---|
| Policy | Single admin, so no policy decisions needed | Admin wants control over how its traffic routed, who routes through its net |
| Performance | Can focus on performance | Policy may dominate over performance |
| Scale | Hierarchical routing saves table size, reduced update traffic | Hierarchical routing saves table size, reduced update traffic |
الخلاصة
أنهيت الدرس
الخطوة التالية: ثبّت المعلومات بالبطاقات، ثم اختبر نفسك بالأسئلة.
ما راجعته في هذا الدرس
- Network layer: functions and service modelطبقة الشبكة: الوظائف ونموذج الخدمة
- Virtual circuit and datagram networksشبكات الدارة الافتراضية وشبكات الداتاجرام
- Router architecture overviewنظرة على معمارية الموجّه
- The Internet network layer and the IP datagram formatطبقة الشبكة في الإنترنت وصيغة داتاجرام IP
- IP fragmentation and reassemblyتجزئة IP وإعادة التجميع
- IP addressing, subnets and CIDRعنونة IP والشبكات الفرعية وCIDR
- DHCP: Dynamic Host Configuration Protocolبروتوكول DHCP
- Getting address blocks: hierarchical addressing and ICANNكتل العناوين والعنونة الهرمية وICANN
- NAT: network address translationترجمة عناوين الشبكة NAT
- ICMP and tracerouteICMP وtraceroute
- IPv6 and the transition from IPv4IPv6 والانتقال من IPv4
- Routing algorithms: graph abstraction and classificationخوارزميات التوجيه: الرسم البياني والتصنيف
- Link-state routing: Dijkstra's algorithmتوجيه حالة الرابط: خوارزمية ديكسترا
- Distance vector routing; LS vs DVتوجيه متجه المسافة ومقارنته بحالة الرابط
- Hierarchical routing and autonomous systemsالتوجيه الهرمي والأنظمة المستقلة
- Intra-AS routing: RIPالتوجيه داخل النظام: RIP
- OSPF (Open Shortest Path First)بروتوكول OSPF
- BGP and why intra- and inter-AS routing differBGP ولماذا يختلف التوجيه الداخلي عن الخارجي