Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Routing & the IP network data link physical network data link physical network data link physical network data link physical network data link physical.

Similar presentations


Presentation on theme: "The Routing & the IP network data link physical network data link physical network data link physical network data link physical network data link physical."— Presentation transcript:

1 The Routing & the IP network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical application transport network data link physical The network layer moves transport layer segments from host to host in the network, to deliver them to their destination. This layer involves each and every host and router in the network. application transport network data link physical application transport network data link physical

2 Network layer functions r transport packet from sending to receiving hosts r network layer protocols in every host, router three important functions: r path determination: route taken by packets from source to destination - routing algorithms r switching: move packets from router’s input to appropriate router output r call setup: some network architectures require router call setup along path before data flows (connection oriented networks) network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical application transport network data link physical application transport network data link physical

3 Datagram networks: the Internet model r no call setup at network layer r routers: do not maintain state for the end-to-end connections m no network-level concept of a “connection” r packets are typically routed using only destination host ID which is carried in the packet m packets between same source-destination pair may take different paths application transport network data link physical application transport network data link physical 1. Send data 2. Receive data

4 Routing Graph abstraction for routing algorithms: r graph nodes are routers r graph edges are physical links m link cost: delay, distance, # of hops, rate structure or congestion level = $$ m Other costs?? Goal: determine a “good” path (sequence of routers) thru the network from the source to the destination Routing protocol A E D CB F 2 2 1 3 1 1 2 5 3 5 r “good” path: m typically means minimum cost path m other definitions also possible

5 Hierarchical Routing scale: with 55 million+ destination hosts: r can’t store all destinations in routing tables! r routing table exchange would swamp links! administrative autonomy r internet = network of networks r each network admin may want to control routing in its own network Our routing study thus far – an idealization r all routers are identical r the network is “flat” … not true in practice Why?

6 Hierarchical Architecture of the Internet

7

8 Hierarchical Routing r aggregate routers into regions, called “autonomous systems” (AS) r routers in same AS run same routing protocol m “intra-AS” routing protocol m routers in different AS can run different intra- AS routing protocol r special routers in AS r run intra-AS routing protocol with all other routers in AS r also responsible for routing to destinations outside AS m run inter-AS routing protocol with other gateway routers gateway routers

9 Internet AS Hierarchy Inter-AS border (exterior gateway) routers Intra-AS interior (gateway) routers

10 Internet inter-AS routing: BGP r BGP (Border Gateway Protocol): the de facto standard r Path Vector protocol: m similar to Distance Vector protocol m each Border Gateway broadcasts to neighbors (peers) the entire path (I.e, sequence of ASs) to destination

11 Intra-AS and Inter-AS routing Gateways: perform inter-AS routing amongst themselves perform intra-AS routers with other routers in their AS inter-AS, intra-AS routing in gateway A.c network layer data link layer physical layer a b b a a C A B d A.a A.c C.b B.a c b c

12 Intra-AS and Inter-AS routing Host h2 a b b a a C A B d c A.a A.c C.b B.a c b Host h1 Intra-AS routing within AS A Inter-AS routing between A and B Intra-AS routing within AS B r We’ll examine specific inter-AS and intra-AS Internet routing protocols shortly

13 IP Addressing: introduction r IP address: 32-bit identifier for host or router interface r interface: connection between host or router and the physical link m routers typically have multiple interfaces m hosts typically have only one m IP addresses are associated with the interface, not the host or the router 223.1.1.1 223.1.1.2 223.1.1.3 223.1.1.4 223.1.2.9 223.1.2.2 223.1.2.1 223.1.3.2 223.1.3.1 223.1.3.27 223.1.1.1 = 11011111 00000001 00000001 00000001 223 111 dotted-decimal notation:

14 IP Addressing r IP address: m network part (high order bits) m host part (low order bits) r What’s a network ? ( from the IP address perspective) m device interfaces with the same network part of their IP address m hosts can physically reach each other without an intervening router 223.1.1.1 223.1.1.2 223.1.1.3 223.1.1.4 223.1.2.9 223.1.2.2 223.1.2.1 223.1.3.2 223.1.3.1 223.1.3.27 Example: network consisting of 3 IP networks (for IP addresses starting with 223, the first 24 bits are the network address – more later) LAN

15 IP Addresses 1.0.0.0 to 127.255.255.255 128.0.0.0 to 191.255.255.255 192.0.0.0 to 223.255.255.255 224.0.0.0 to 239.255.255.255 32 bits Given the notion of a “network”, let’s look closer at IP addresses: “classful” addressing - What is the address space size (number of hosts) for each class? 0 network 10 network host (16 bits) 110 networkhost (8 bits) 1110 multicast address (28 bits) A B C D class host (24 bits) 2 7 = 127 networks 2 24 = 16.8 million+ hosts 2 14 = 16,384 networks 2 16 = 65,536 hosts 2 21 = 2 million+ networks 2 8 = 256 hosts 2 28 = 268.4 million+ hosts

16 Map of the Internet

17 r The minimum & maximum values of the range: r 11100000.00000000.00000000.00000000 2 11101111.11111111.11111111.11111111 2 r E0.00.00.00 16 … EF.FF.FF.FF 16 r The first part of the abbreviation is the common byte(s) in the range r The second part of the abbreviation is the number of bits, which are common for the all members of the range Abbreviated Format of the Address Ranges 224/4 224.0.0.0 - 239.255.255.255

18 The private address ranges r Used locally m Never used in the Internet m Gateways do not forward the packets addressed to private addresses r The network, which uses the private address range can be connected to the Internet by the NAT (Network Address Translation)

19 IP addressing: CIDR r classful addressing: m inefficient use of address space, address space exhaustion m e.g., class B network is allocated enough addresses for 65K hosts, even if only 2K hosts exist in that network r CIDR: Classless InterDomain Routing m network portion of address of arbitrary length m address format: a.b.c.d/x, where x is # bits in the network portion of an address 11001000 00010111 00010000 00000000 network part host part 200.23.16.0/23

20 IP addresses: how to get one? Hosts (host portion): r hard-coded by system admin in a file r DHCP: Dynamic Host Configuration Protocol: dynamically get address (RFC 2131): “plug-and-play” m host broadcasts “DHCP discover” msg m DHCP server responds with “DHCP offer” msg m host requests IP address: “DHCP request” msg m DHCP server sends address: “DHCP ack” msg

21 Why different Intra- and Inter-AS routing ? Policy: r Inter-AS: admin wants control over how its traffic is routed, who routes through its net. r Intra-AS: single admin, so no policy decisions needed Scale: r hierarchical routing saves table size, reduces update traffic Performance: r Intra-AS: can focus on performance r Inter-AS: policy may dominate over performance

22 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common IGPs: m RIP: Routing Information Protocol (legacy) m OSPF: Open Shortest Path First (common) m EIGRP: Enhanced Interior Gateway Routing Protocol (proprietary – Cisco Systems)

23 Distance-vector routing algorithm (DVR) r The different names of the background mathematical algorithm: m Backward search algorithm m Bellman-Ford algorithm r Goal: search the smallest delay paths for the traffic r For this reason in each router a table is created, which contains: m The interface to the smallest delay path to every node m The estimated delay of each path r This table is called distance vector

24 The link state tables of an example network

25 Routing tables (Step 1) Modified entry Unmodified entry Distance vector Bellman-Ford algorithm

26 Step 1 Shortest paths in the routing table of the router A Bellman-Ford algorithm

27 Routing tables (Step 2) Routing tables resulted from the previous step Bellman-Ford algorithm

28 Step 2 Bellman-Ford algorithm Shortest paths in the routing table of the router A

29 Routing tables (Step 3) Bellman-Ford algorithm Routing tables resulted from the previous step

30 Routing tables (Step 4) Bellman-Ford algorithm Routing tables resulted from the previous step

31 Step 3-4 Bellman-Ford algorithm Shortest paths in the routing table of the router A

32 Routing tables (Step 5) Bellman-Ford algorithm Routing tables resulted from the previous step

33 Step 5 and the final result Bellman-Ford algorithm Shortest paths in the routing table of the router A

34 Link-state routing algorithm r The different names of the background mathematical algorithm: m Forward search m Dijkstra algorithm m Shortest path (SP) r The SP is the optimal path, however, this is not obviously the geometrically shortest path r Other factor, which can be taken into account: m Number of routers in the path m delay m cost m Average traffic m Reliability of the links in a certain path

35 Dijkstra’s algorithm r Dijkstra's algorithm, named after its inventor the Dutch computer scientist Edsger Dijkstra, solves a shortest path problem for a directed and connected graph G(V,E) which has nonnegative (>=0) edge weights r Dijkstra's algorithm is known to be a good algorithm to find a shortest path

36 The method… r Finds the shortest path between a source node and the rest r Finds routes between nodes by cost precedence r Assumes every cost is a positive number r Supports directed or bidirectional communication Dijkstra’s algorithm

37 Initialisation – Example network Dijkstra’s algorithm

38 Step 1 D Least cost new node: D Dijkstra’s algorithm

39 Step 2 Dijkstra’s algorithm B Least cost new node (with smaller IP address) : B

40 Step 3 Dijkstra’s algorithm E Least cost new node: E

41 Step 4 Dijkstra’s algorithm C Least cost new node: C

42 G Least cost new node: G Step 5 Dijkstra’s algorithm

43 Step 6 (final result) Dijkstra’s algorithm

44 Second example Step 1 Dijkstra’s algorithm

45 Second example Step 2

46 Dijkstra’s algorithm Second example Step 3

47 Dijkstra’s algorithm Second example Step 4

48 Dijkstra’s algorithm Second example Step 5

49 Dijkstra’s algorithm Second example Step 6

50 Dijkstra’s algorithm Second example Step 7

51 Dijkstra’s algorithm Second example Step 8

52 Dijkstra’s algorithm Second example Step 9

53 Dijkstra’s algorithm Second example Step 10

54 Dijkstra’s algorithm Second example Step 11

55 Dijkstra’s algorithm Second example Step 12

56 Differences between the forward and the backward search algorithms r Forward search (Dijkstra algorithm) m It increases the scope of the search in each step with including new node r Backward search (Bellman-Ford algorithm) m It increases the scope of the search in each step with including new hop

57 Comparison of the distance-vector and the link-state algorithms r Distance vector: m Each router sends distance-vector, but to its neighbours m The distance-vector contains the estimated distance to all other nodes m Older method m Problem of the ”count-to-infinity” due to the fact, that the bad news are distributed too slowly r Link-state: m Each router sends link-state distance-vector to all others m The link-state distance-vector contains the distance to the neighbours, only m The distance value to the neighbour (called link-state) is accurate m Recent method


Download ppt "The Routing & the IP network data link physical network data link physical network data link physical network data link physical network data link physical."

Similar presentations


Ads by Google