Chapter 4 Network Layer

Size: px
Start display at page:

Download "Chapter 4 Network Layer"

Transcription

1 Chapter 4 Network Laer A note on the use of these ppt slides: The notes used in this course are substantiall based on powerpoint slides developed and coprighted b J.F. Kurose and K.W. Ross, Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesle, Jul Network Laer 4-1

2 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-2

3 Two Ke Network-Laer Functions Forwarding: move packets router s input to appropriate router output Routing: determine route taken b packets source to dest Routing algorithms Analog: Routing: process of planning trip source to dest Forwarding: process of getting through single interchange Network Laer 4-3

4 Interpla between Routing and Forwarding routing algorithm local forwarding table header value output link value in arriving packet s header Network Laer 4-4

5 Connection Setup The 3 rd important function in some network architectures: ATM, frame rela, X.25 Before datagrams flow, two end hosts and intervening routers establish virtual connection Routers get involved Network vs. transport laer connection service: Network: between two hosts (ma also involve intervening routers in case of VCs) Transport: between two processes Network Laer 4-5

6 Network Service Model Q: What service model for channel transporting packets sender to receiver? Guaranteed bandwidth? Preservation of inter packet timing (no jitter)? Loss free deliver? In order deliver? Congestion feedback to sender? service abstraction The most important abstraction provided b network laer:??? virtual circuit or datagram? Network Laer 4-6

7 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-7

8 Virtual Circuits source to dest path behaves much like telephone circuit Performance wise Network actions along source to dest path Call setup, teardown for each call before data can flow Each packet carries VC identifier (not destination host address) Ever router on source dest path maintains state for each passing connection Link, router resources (bandwidth, buffers) ma be allocated to VC (dedicated resources = predictable service) Network Laer 4-8

9 Virtual Circuits: Signaling Protocols Used to setup, maintain teardown VC Used in ATM, frame rela, X.25 Not used in toda s Internet application transport network data link phsical 5. Data flow begins 6. Receive data 4. Call connected 3. Accept call 1. Initiate call 2. incoming call application transport network data link phsical Network Laer 4-9

10 Datagram Networks No call setup at network laer Routers: no state about end to end connections No network level concept of connection Packets forwarded using destination host address Packets between same source dest pair ma take different paths application transport network data link phsical 1. Send data 2. Receive data application transport network data link phsical 4-10 Network Laer

11 Datagram or VC Network: Wh? Internet (datagram) Data echange among computers Elastic service, no strict timing req. Smart end sstems (computers) Can adapt, perform control, error recover Simple inside network, compleit at edge Man link tpes Different characteristics Uniform service difficult ATM (VC) Evolved telephon Human conversation: Strict timing, reliabilit requirements Need for guaranteed service Dumb end sstems Telephones Compleit inside network Network Laer 4-11

12 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-12

13 Router Architecture Overview Two ke router functions: Run routing algorithms/protocol (RIP, OSPF, BGP) Forwarding datagrams incoming to outgoing link Network Laer 4-13

14 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-14

15 The Internet Network Laer Host, router network laer functions: Transport laer: TCP, UDP Network laer Routing protocols Path selection RIP, OSPF, BGP forwarding table IP protocol Addressing conventions Datagram format Packet handling conventions ICMP protocol Error reporting Router signaling Link laer phsical laer Network Laer 4-15

16 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-16

17 IP Datagram Format IP protocol version number header length (btes) tpe of data (QoS) ma number remaining hops (decremented at each router) upper laer protocol to deliver paload to How much overhead with TCP? 20 btes of TCP 20 btes of IP = 40 btes + app laer overhead ver head. len 16-bit identifier time to live tpe of service upper laer 32 bits flgs length fragment offset header checksum 32 bit source IP address 32 bit destination IP address Options (if an) data (variable length, tpicall a TCP or UDP segment) total datagram length (btes) for fragmentation/ reassembl E.g. timestamp, record route taken, specif list of routers to visit. Network Laer 4-17

18 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-18

19 IP Addressing: Introduction IP address: 32 bit identifier for host, router interface Interface: connection between host/router and phsical link Router s tpicall have multiple interfaces Host tpicall has one interface (ma have multiple toda) IP addresses associated with each interface, not with host or router = Network Laer 4-19

20 Subnets IP address: Subnet part (high order bits) Host part (low order bits) What s a subnet? Device interfaces with same subnet part of IP address Can phsicall reach each other without intervening router subnet network consisting of 3 subnets (for IP addresses starting with 223, first 24 bits are network address) Network Laer 4-20

21 IP Addresses Given notion of network, let s re eamine IP addresses: class-full addressing: class A 0network host B 10 network host C 110 network host D 1110 multicast address to to to to bits Network Laer 4-21

22 IP Addressing: CIDR Classful addressing: Inefficient use of address space, address space ehaustion E.g., class B net allocated enough addresses for 65K hosts, evenif onl 2K hosts in that network CIDR: Classless InterDomain Routing Subnet portion of address of arbitrar length Address format: a.b.c.d/, where is # bits in subnet portion of address subnet part host part /23 Network Laer 4-22

23 NAT: Network Address Translation rest of Internet local network (e.g., home network) / All datagrams leaving local network have same single source NAT IP address: , different source port numbers Datagrams with source or destination in this network have /24 address for source, destination (as usual) Network Laer 4-23

24 NAT: Network Address Translation Implementation: NAT router must: Outgoing datagrams: replace (source IP address, port #) of ever outgoing datagram to (NAT IP address, new port #)... remote clients/servers will respond using (NAT IP address, new port #) as destination addr. Remember (in NAT translation table) ever (source IP address, port #) to (NAT IP address, new port #) translation pair Incoming datagrams: replace (NAT IP address, new port #) in dest fields of ever incoming datagram with corresponding (source IP address, port #) stored in NAT table Network Laer 4-24

25 NAT: Network Address Translation 2: NAT router changes datagram source addr , 3345 to , 5001, updates table 2 NAT translation table WAN side addr LAN side addr , , 3345 S: , 5001 D: , S: , 3345 D: , : host sends datagram to , S: , 80 D: , : Repl arrives dest. address: , 5001 S: , 80 D: , : NAT router changes datagram dest addr , 5001 to , 3345 Network Laer 4-25

26 NAT: Network Address Translation Outside node cannot initiate the communication Reserved addresses: / / /16 Network Laer 4-26

27 NAT: Network Address Translation 16 bit port number field: 60,000 simultaneous connections with a single LAN side address! NAT is controversial: Routers should onl process up to laer 3 Violates end to end argument NAT possibilit must be taken into account b app designers, eg, P2P applications Address shortage should instead be solved b IPv6 Network Laer 4-27

28 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-28

29 ICMP: Internet Control Message Protocol Used b hosts & routers to communicate network level information Error reporting: unreachable host, network, port, protocol Echo request/repl (used b ping) Network laer above IP: ICMP msgs carried in IP datagrams ICMP message: tpe, code plus first 8 btes of IP datagram causing error Tpe Code Description 0 0 echo repl (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 discover 11 0 TTL epired 12 0 bad IP header Network Laer 4-29

30 ICMP: Brief Summar ICMP is the control sibling of IP ICMP is used b IP and uses IP as network laer protocol ICMP is used for ping, traceroute, and path MTU discover Ping: Uses ICMP Echo request/repl messages Path MTU Discover Send a large IP datagram with No fragment bit set Reduce sie until success (No ICMP message received) Network Laer 4-30

31 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-31

32 IPv6 Initial motivation: 32 bit address space soon to be completel allocated Additional motivation: Header format helps speed processing/forwarding Header changes to facilitate QoS IPv6 datagram format: Fied length 40 bte header No fragmentation allowed Network Laer 4-32

33 Transition From IPv4 To IPv6 Not all routers can be upgraded simultaneous no flag das How will the network operate with mied IPv4 and IPv6 routers? Tunneling: IPv6 carried as paload in IPv4 datagram among IPv4 routers Network Laer 4-33

34 Tunneling Logical view: A B E F tunnel IPv6 IPv6 IPv6 IPv6 Phsical view: A B E F IPv6 IPv6 IPv6 IPv6 IPv4 IPv4 Network Laer 4-34

35 Tunneling Logical view: A B E F tunnel IPv6 IPv6 IPv6 IPv6 Phsical view: A B C D E F IPv6 IPv6 IPv4 IPv4 IPv6 IPv6 Flow: X Src: A Dest: F data Src:B Dest: E Flow: X Src: A Dest: F Src:B Dest: E Flow: X Src: A Dest: F Flow: X Src: A Dest: F data data data A-to-B: IPv6 B-to-C: IPv6 inside IPv4 Network Laer B-to-C: IPv6 inside IPv4 E-to-F: IPv6 4-35

36 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-36

37 Graph Abstraction 5 Graph: G = (N,E) u 1 2 v w N = set of routers = { u, v, w,,, } E = set of links ={ (u,v), (u,), (v,), (v,w), (,w), (,), (w,), (w,), (,) } Remark: Graph abstraction is useful in other network contets Eample: P2P, where N is set of peers and E is set of TCP connections Network Laer 4-37

38 Graph Abstraction: Costs u v w c(, ) = cost of link (, ) -e.g., c(w,) = 5 Cost could alwas be 1, or inversel related to bandwidth, or inversel related to congestion Cost of path ( 1, 2, 3,, p ) = c( 1, 2 ) + c( 2, 3 ) + + c( p-1, p ) Question: What s the least-cost path between u and? Routing algorithm: algorithm that finds least-cost path Network Laer 4-38

39 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-39

40 A Link-State Routing Algorithm Dijkstra s algorithm Net topolog, link costs known to all nodes Accomplished via link state broadcast All nodes have same info Computes least cost paths 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 Notation: c(,): link cost node to ; = if not direct neighbors D(v): current value of cost of path source to dest. v p(v): predecessor node along path source to v N': set of nodes whose least cost path definitivel known Network Laer 4-40

41 Dijkstra s Algorithm 1 Initialiation: 2 N' = {u} 3 for all nodes v 4 if v adjacent to u 5 then D(v) = c(u,v) 6 else D(v) = 7 8 Loop 9 find w not in N' such that D(w) is a minimum 10 add w to N' 11 update D(v) for all v adjacent to w and not in N' : 12 D(v) = min( D(v), D(w) + c(w,v) ) 13 /* new v is either old v or known 14 shortest path w plus cost w to v */ 15 until all nodes in N' Network Laer 4-41

42 Dijkstra s Algorithm: Eample Step start N A AD ADE ADEB ADEBC ADEBCF D(B),p(B) D(C),p(C) 2,A 5,A 2,A 4,D 2,A 3,E 3,E D(D),p(D) 1,A D(E),p(E) D(F),p(F) 2,D 4,E 4,E 4,E 5 A 1 2 B D C E F Network Laer 4-42

43 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-43

44 Distance Vector Algorithm Bellman Ford Equation (dnamic programming) Define d () := cost of least cost path to Then d () = min {c (,v) + d v () } v where min is taken over all neighbors v of Network Laer 4-44

45 Bellman-Ford Eample u v w Clearl, d v () = 5, d () = 3, d w () = 3 B-F equation sas: d u () = min { c(u,v) + d v (), c(u,) + d (), c(u,w) + d w () } = min {2 + 5, 1 + 3, 5 + 3} = 4 Node that achieves minimum is net hop in shortest path forwarding table Network Laer 4-45

46 Distance Vector Algorithm D () = estimate of least cost to Node knows each neighbor v: c(,v) Node maintains distance vector D = [D (): є N ] Node also maintains its neighbors distance vectors For each neighbor v, maintains D v = [D v (): є N ] Network Laer 4-46

47 Distance Vector Algorithm (4) Basic idea: Each node periodicall sends its own distance vector estimate to neighbors When a node receives new DV estimate neighbor, it updates its own DV using B F equation: D () min v {c(,v) + D v ()} for each node N Under minor, natural conditions, the estimate D () converge to the actual least cost d () Network Laer 4-47

48 Distance Vector Algorithm (5) Iterative, asnchronous: each local iteration caused b: Local link cost change DV update message neighbor Distributed: Each node notifies neighbors onl when its DV changes Neighbors then notif their neighbors if necessar Each node: wait for (change in local link cost or msg neighbor) recompute estimates if DV to an dest has changed, notif neighbors Network Laer 4-48

49 node table node table node table 71 0 time Network Laer 4-49

50 D () = min{c(,) + D (), c(,) + D ()} = min{2+0, 7+1} = 2 node table node table node table time D () = min{c(,) + D (), c(,) + D ()} = min{2+1, 7+0} = 3 Network Laer

51 D () = min{c(,) + D (), c(,) + D ()} = min{2+0, 7+1} = 2 node table node table node table time D () = min{c(,) + D (), c(,) + D ()} = min{2+1, 7+0} = 3 Network Laer

52 D () = min{c(,) + D (), c(,) + D ()} = min{2+0, 7+1} = 2 node table node table node table time D () = min{c(,) + D (), c(,) + D ()} = min{2+1, 7+0} = 3 Network Laer

53 Distance Vector: Link Cost Changes Link cost changes: Node detects local link cost change Updates routing info, recalculates distance vector If DV changes, notif neighbors good news travels fast At time t 0, detects the link-cost change, updates its DV, and informs its neighbors. At time t 1, receives the update and updates its table. It computes a new least and sends its neighbors its DV. At time t 2, receives s update and updates its distance table. s least costs do not change and hence does not send an message to. Network Laer 4-53

54 bad news travels slow count to infinit problem node table node table node table Network Laer Initial routing table 4-54

55 bad news travels slow Algorithm converges in 44 steps Cost of link changes to 60 node table node table node table node table node table node table node table node table node table node table node table node table Network Laer 4-55

56 bad news travels slow Algorithm converges in 44 steps node table node table node table node table node table node table node table node table node table node table node table node table Cost of link changes to 60 Network Laer 4-56

57 Distance Vector: Link Cost Changes Link cost changes: Good news travels fast Bad news travels slow count to infinit problem! 44 iterations before algorithm stabilies: see tet Poisoned reverse: If Z routes through Y to get to X : Z tells Y its (Z s) distance to X is infinite (so Y won t route to X via Z) Will this completel solve count to infinit problem? Real problem is that thinks its shortest path to is through, while thinks its shortest path to is through. The pingpong back and forth with this information. Network Laer 4-57

58 Comparison of LS and DV algorithms Message compleit LS: with n nodes, E links, O(nE) msgs sent DV: echange between neighbors onl Convergence time varies Speed of Convergence LS: O(n 2 ) algorithm requires O(nE) msgs Ma have oscillations DV: convergence time varies Ma be routing loops Count to infinit problem Robustness: what happens if router malfunctions? LS: DV: Node can advertise incorrect link cost Each node computes onl its own table DV node can advertise incorrect path cost Each node s table used b others Error propagate thru network Network Laer 4-58

59 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-59

60 Hierarchical Routing Aggregate routers into regions, autonomous sstems (AS) Routers in same AS run same routing protocol Intra AS routing protocol Routers in different AS can run different intra AS routing protocol gatewa routers Special routers in AS Run intra AS routing protocol with all other routers in AS Also responsible for routing to destinations outside AS Run inter AS routing protocol with other gatewa routers Network Laer 4-60

61 Interconnected ASes 3c 3a 3b AS3 1a 1c 1d 1b Intra-AS Routing algorithm AS1 Forwarding table Inter-AS Routing algorithm 2a 2c 2b AS2 Forwarding table is configured b both intraand inter AS routing algorithm Intra AS sets entries for internal dests Inter AS & Intra As sets entries for eternal dests Network Laer 4-61

62 Inter-AS Tasks Suppose router in AS1 receives datagram for which dest is outside of AS1 Router should forward packet towards one of the gatewa routers, but which one? AS1 needs: 1. To learn which dests are reachable through AS2 and which through AS3 2. To propagate this reachabilit info to all routers in AS1 Job of inter AS routing! 3c 3a 3b AS3 1a 1c 1d 1b AS1 2a 2c 2b AS2 Network Laer 4-62

63 Eample: Choosing Among Multiple ASes Now suppose AS1 learns the inter AS protocol that subnet is reachable AS3 and AS2 To configure forwarding table, router 1d must determine towards which gatewa it should forward packets for dest This is also the job on inter AS routing protocol! Hot potato routing: send packet towards closest of two routers Learn inter-as protocol that subnet is reachable via multiple gatewas Use routing info intra-as protocol to determine costs of least-cost paths to each of the gatewas Hot potato routing: Choose the gatewa that has the smallest least cost Determine forwarding table the interface I that leads to least-cost gatewa. Enter (,I) in forwarding table Network Laer 4-63

64 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-64

65 Routing in the Internet The Global Internet consists of Autonomous Sstems (AS) interconnected with each other: Stub AS: small corporation: one connection to other AS s Multihomed AS: large corporation (no transit): multiple connections to other AS s Transit AS: provider, hooking man AS s together Two level routing: Intra AS: (within AS) administrator responsible for choice of routing algorithm within network Inter AS: (between ASes) unique standard for inter AS routing: BGP Network Laer 4-65

66 Intra-AS Routing Also known as Interior Gatewa Protocols (IGP) Most common Intra AS routing protocols: RIP: Routing Information Protocol OSPF: Open Shortest Path First IGRP: Interior Gatewa Routing Protocol (Cisco proprietar) Network Laer 4-66

67 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-67

68 RIP (Routing Information Protocol) Distance vector algorithm Included in BSD UNIX Distribution in 1982 Distance metric: # of hops (ma = 15 hops) From router A to subsets: u A C B D v w destination hops u 1 v 2 w Network Laer 4-68

69 RIP Advertisements Distance vectors: echanged among neighbors ever 30 sec via Response Message (also called advertisement) Each advertisement: list of up to 25 destination nets within AS Network Laer 4-69

70 RIP: Link Failure and Recover If no advertisement heard after 180 sec > neighbor/link declared dead Routes via neighbor invalidated New advertisements sent to neighbors Neighbors in turn send out new advertisements (if tables changed) Link failure info quickl propagates to entire net Poison reverse used to prevent ping pong loops (infinite distance = 16 hops) Network Laer 4-70

71 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-71

72 OSPF (Open Shortest Path First) Open : publicl available Uses Link State algorithm LS packet dissemination Topolog map at each node Route computation using Dijkstra s algorithm OSPF advertisement carries one entr per neighbor router Advertisements disseminated to entire AS (via flooding) Carried in OSPF messages directl over IP (rather than TCP or UDP Network Laer 4-72

73 OSPF Advanced Features (not in RIP) Securit: all OSPF messages authenticated (to prevent malicious intrusion) Multiple same cost paths allowed (onl one path in RIP) For each link, multiple cost metrics for different TOS (e.g., satellite link cost set low for best effort; high for real time) Integrated uni and multicast support: Multicast OSPF (MOSPF) uses same topolog data base as OSPF Hierarchical OSPF in large domains Network Laer 4-73

74 Hierarchical OSPF Network Laer 4-74

75 Chapter 4: Network Laer 4. 1 Introduction 4.5 Routing algorithms 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP IPv6 Network Laer 4-75

76 Inter-AS Routing in the Internet: BGP R4 R5 R3 BGP AS3 AS1 (RIP intra-as routing) R1 BGP R2 AS2 (OSPF intra-as routing) (OSPF intra-as routing) Figure new2: BGP use for inter-domain routing Network Laer 4-76

77 Internet Inter-AS Routing: BGP BGP (Border Gatewa Protocol): the de facto standard BGP provides each AS a means to: 1. Obtain subnet reachabilit information neighboring ASs. 2. Propagate reachabilit information to all ASinternal routers. 3. Determine good routes to subnets based on reachabilit information and polic. Allows subnet to advertise its eistence to rest of Internet: I am here Network Laer 4-77

78 BGP Basics Pairs of routers (BGP peers) echange routing info over semipermanent TCP connections: BGP sessions BGP sessions need not correspond to phsical links When AS2 advertises a prefi to AS1, AS2 is promising it will forward an datagrams destined to that prefi towards the prefi AS2 can aggregate prefies in its advertisement ebgp session ibgp session 3c 3a 3b AS3 1a AS1 1c 1d 1b 2a 2c AS2 2b Network Laer 4-78

79 Distributing Reachabilit Info With ebgp session between 3a and 1c, AS3 sends prefi reachabilit info to AS1 1c can then use ibgp do distribute this new prefi reach info to all routers in AS1 1b can then re advertise new reachabilit info to AS2 over 1b to 2a ebgp session When router learns of new prefi, creates entr for prefi in its forwarding table ebgp session ibgp session 3c 3a 3b AS3 1a AS1 1c 1d 1b 2a 2c AS2 2b Network Laer 4-79

80 Path Attributes & BGP Routes When advertising a prefi, advert includes BGP attributes. prefi + attributes = route Two important attributes: AS PATH: contains ASs through which prefi advertisement has passed: AS 67 AS 17 NEXT HOP: Indicates specific internal AS router to net hop AS. (There ma be multiple links current AS to net hop AS.) When gatewa router receives route advertisement, uses import polic to accept/decline Network Laer 4-80

81 BGP Route Selection Router ma learn about more than 1 route to some prefi. Router must select route Elimination rules: 1. Local preference value attribute: polic decision 2. Shortest AS PATH 3. Closest NEXT HOP router: hot potato routing 4. Additional criteria Network Laer 4-81

82 BGP Routing Polic A,B,C are provider networks X,W,Y are customer (of provider networks) X is dual homed: attached to two networks X does not want to route B via X to C.. so X will not advertise to B a route to C Network Laer 4-82

83 BGP Routing Polic (2) A advertises to B the path AW B advertises to X the path BAW Should B advertise to C the path BAW? No wa! B gets no revenue for routing CBAW since neither W nor C are B s customers B wants to force C to route to w via A B wants to route onl to/ its customers! Network Laer 4-83

84 Polic: Wh different Intra- and Inter-AS routing? Inter AS: admin wants control over how its traffic routed, who routes through its net. Intra AS: single admin, so no polic decisions needed Scale: Hierarchical routing saves table sie, reduced update traffic Performance: Intra AS: can focus on performance Inter AS: polic ma dominate over performance Network Laer 4-84

85 Network Laer: Summar What we ve covered: Network laer services Routing principles: link state and distance vector Hierarchical routing IP Internet routing protocols RIP, OSPF, BGP What s inside a router? IPv6 Network Laer 4-85

Network Layer: Routing

Network Layer: Routing Network Laer: Routing Instructor: Anirban Mahanti Office: ICT 74 Email: mahanti@cpsc.ucalgar.ca Class Location: ICT Lectures: MWF :00 :0 hours Notes derived Computer Networking: A Top Down Approach Featuring

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Network Laer 4. Introduction 4. Virtual circuit and datagram networks 4. What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4. Routing algorithms Link

More information

Computer Networks. Instructor: Niklas Carlsson

Computer Networks. Instructor: Niklas Carlsson Computer Networks Instructor: Niklas Carlsson Email: niklas.carlsson@liu.se Notes derived Computer Networking: A Top Down Approach, b Jim Kurose and Keith Ross, Addison-Wesle. The slides are adapted and

More information

Chapter 4: Network Layer: Part II

Chapter 4: Network Layer: Part II 4: Network Laer Chapter 4: Network Laer: Part II (last revision 9/04/05. v3) 4. Introduction 4. Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 14

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 14 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 14 1 Two notes on routing algorithm Do not believe ou can understand an routing protocol, e.g.,

More information

Chapter IV: Network Layer

Chapter IV: Network Layer Chapter IV: Network Laer UG3 Computer Communications & Networks (COMN) Mungjin Lee mungjin.lee@ed.ac.uk Slides copright of Kurose and Ross IP addresses: how to get one? Q: How does a host get IP address?

More information

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation: IPv6 Initial motivation: 3-bit address space soon to be completel allocated. Additional motivation: Header format helps speed processing/forwarding Header changes to facilitate QoS (service classes) Reduction

More information

Interplay between routing, forwarding

Interplay between routing, forwarding Chapter 4: outline 4. introduction 4. virtual circuit and datagram networks 4. what s inside a router 4.4 IP: Internet Protocol datagram format IPv4 addressing ICMP IPv6 4.5 routing algorithms link state

More information

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions:

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions: Chapter 5: outline 5. introduction 5.2 routing protocols link state distance vector 5.3 intra-as routing in the Internet 5.4 inter-as routing: BGP 5.5 The SDN control 5.6 ICMP: The Internet Control Message

More information

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm Last time Transitioning to IPv6 Tunneling Gateways Routing Graph abstraction Link-state routing Dijkstra's Algorithm Distance-vector routing Bellman-Ford Equation 10-1 This time Distance vector link cost

More information

Network Layer: Control Plane 5-2

Network Layer: Control Plane 5-2 Network Laer: Control Plane EECS34 8-03-05 4- Chapter 5: network laer control plane chapter goals: understand principles behind network control plane traditional routing algorithms SDN controlllers Internet

More information

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network Layer. Chapter goals:

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network Layer. Chapter goals: Chapter 4 Network Laer A note on the use of these ppt slides: The notes used in this course are substantiall based on powerpoint slides developed and coprighted b J.F. Kurose and K.W. Ross, 996-7 Computer

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms

More information

Chapter 4: Network Layer, partb

Chapter 4: Network Layer, partb Chapter 4: Network Layer, partb The slides are adaptations of the slides available by the main textbook authors, Kurose&Ross Network Layer 4-1 Interplay between routing, forwarding routing algorithm local

More information

Network layer: Overview. Network layer functions Routing IP Forwarding

Network layer: Overview. Network layer functions Routing IP Forwarding Network layer: Overview Network layer functions Routing IP Forwarding Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every host, router application

More information

Chapter IV: Network Layer

Chapter IV: Network Layer Chapter IV: Network Layer UG3 Computer Communications & Networks (COMN) Myungjin Lee myungjin.lee@ed.ac.uk Slides copyright of Kurose and Ross Hierarchical routing our routing study thus far - idealization

More information

Chapter 4: outline. Network Layer 4-1

Chapter 4: outline. Network Layer 4-1 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what s inside a router 4.4 IP: Internet Protocol datagram format IPv4 addressing ICMP IPv6 4.5 routing algorithms link

More information

Chapter 4 Network Layer. Network Layer 4-1

Chapter 4 Network Layer. Network Layer 4-1 Chapter 4 Network Layer Network Layer 4- Chapter 4: Network Layer 4. Introduction 4. Virtual circuit and datagram networks 4. What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Mecanismes d Echange d Informations Chapter 4 Network Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint

More information

Announcements. CS 5565 Network Architecture and Protocols. Count-To-Infinity. Poisoned Reverse. Distance Vector: Link Cost Changes.

Announcements. CS 5565 Network Architecture and Protocols. Count-To-Infinity. Poisoned Reverse. Distance Vector: Link Cost Changes. Announcements CS 6 Network Architecture and Protocols Lecture 20 Project 2B Part/ due Wed Apr 27 :9pm Part/2 due Wed Ma :9pm Current reading assignment: Chapter.6.7, Chapter Final Ma 0, 3:2pm, MCB 26 Godmar

More information

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services: NET 331 Computer Networks Lecture 12 Internet Routing Protocols Dr. Anis Koubaa Reformatted slides from textbook Computer Networking a top-down appraoch, Fifth Edition by Kurose and Ross, (c) Pearson Education

More information

Agenda. distance-vector (what you invented last Friday) hierarchical routing routing in the Internet. v DNS assignment Q&A v Routing Algorithms

Agenda. distance-vector (what you invented last Friday) hierarchical routing routing in the Internet. v DNS assignment Q&A v Routing Algorithms Agenda v DNS assignment Q&A v Routing Algorithms distance-vector (what ou invented last Frida) hierarchical routing routing in the Internet Network Laer 4- Chapter 4 Network Laer A note on the use of these

More information

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice Hierarchical Routing Our routing study thus far - idealization all routers identical network flat not true in practice scale: with 200 million destinations: can t store all destinations in routing tables!

More information

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation: IPv6 Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation: header format helps speed processing/forwarding header changes to facilitate QoS IPv6 datagram format:

More information

Routing Algorithm Classification. A Link-State Routing Algorithm

Routing Algorithm Classification. A Link-State Routing Algorithm Routing Algorithm lassification Global or decentralied information? Global: All routers have complete topolog, link cost info Link state algorithms Decentralied: Router knows phsicallconnected neighbors,

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see the animations; and

More information

Intra-AS Routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Intra-AS Routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley. Intra-AS Routing Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesle http://xkcd.com/85/ Some materials copright 1996-2012 J.F Kurose and K.W. Ross, All Rights Reserved

More information

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCE 463/612 Networks and Distributed Processing Spring 2018 CSCE 463/612 Networks and Distributed Processing Spring 2018 Network Layer IV Dmitri Loguinov Texas A&M University April 12, 2018 Original slides copyright 1996-2004 J.F Kurose and K.W. Ross 1 Chapter

More information

CSC 4900 Computer Networks: Routing Protocols

CSC 4900 Computer Networks: Routing Protocols CSC 4900 Computer Networks: Routing Protocols Professor Henry Carter Fall 2017 Last Time Link State (LS) versus Distance Vector (DV) algorithms: What are some of the differences? What is an AS? Why do

More information

DATA COMMUNICATOIN NETWORKING

DATA COMMUNICATOIN NETWORKING DATA COMMUNICATOIN NETWORKING Instructor: Ouldooz Baghban Karimi Course Book & Slides: Computer Networking, A Top-Down Approach By: Kurose, Ross Introduction Course Overview Basics of Computer Networks

More information

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan Internet Protocol: Routing Algorithms Srinidhi Varadarajan Routing Routing protocol Goal: determine good path (sequence of routers) thru network from source to dest. Graph abstraction for routing algorithms:

More information

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture Network Routing Packet Routing, Routing Algorithms, Routers, Router Architecture Routing Routing protocol Goal: determine good path (sequence of routers) thru network from source to dest. Graph abstraction

More information

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding 0/6/08 Interpla between routing and forwarding Routing Algorithms Link State Distance Vector BGP routing routing algorithm local forwarding table header value output link 000 00 0 00 value in arriving

More information

Computer Networking Introduction

Computer Networking Introduction Computer Networking Introduction Halgurd S. Maghdid Software Engineering Department Koya University-Koya, Kurdistan-Iraq Lecture No.15 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram

More information

Module 3 Network Layer CS755! 3-1!

Module 3 Network Layer CS755! 3-1! Module 3 Network Layer CS755 3-1 Please note: Most of these slides come from this book. Note their copyright notice below A note on the use of these ppt slides: We re making these slides freely available

More information

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst Internet rou)ng V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst Slide material copyright 1996-2013 J.F Kurose and K.W. Ross, All Rights Reserved Graph abstraction 5 graph: G

More information

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms Announcements CS 5565 Network Architecture and Protocols Lecture 20 Godmar Back Project 2B due in 2 parts: Apr 29 and May 6 Extra Credit Opportunities: Expand simulator (and your implementation) to introduce

More information

CSc 450/550 Computer Networks Internet Routing

CSc 450/550 Computer Networks Internet Routing CSc 450/550 Computer Networks Internet Routing Jianping Pan Summer 2007 7/12/07 CSc 450/550 1 Review Internet Protocol (IP) IP header addressing class-based, classless, hierarchical, NAT routing algorithms

More information

Network layer: Overview. Network layer functions Routing IP Forwarding

Network layer: Overview. Network layer functions Routing IP Forwarding Network layer: Overview Network layer functions Routing IP Forwarding 1 Network Layer Functions Transport packet from sending to receiving hosts (processes) Network layer protocols in every host, router

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in

More information

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP Chapter 4: outline 4. introduction 4. irtual circuit and datagram networks 4. what s inside a router 4.4 IP: Internet Protocol datagram format IP4 addressing ICMP IP6 4.5 routing algorithms link state

More information

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms Announcements CS 6 Network Architecture and Protocols Lecture 8 Godmar Back Project A due Apr 8 (toda) Project B due in parts: Apr 9 and Ma 6 See link to NY Times article on RFC Project B Project B Highlevel

More information

Computer Networking. Rou1ng Algorithms. Rou1ng Algorithms. Interplay between rou1ng, forwarding. routing algorithm

Computer Networking. Rou1ng Algorithms. Rou1ng Algorithms. Interplay between rou1ng, forwarding. routing algorithm Computer Networking Interpla between roung, forwarding routing algorithm local forwarding table header alue output link 000 00 0 00 alue in arriing packet s header 0 Graph abstracon Graph: G = (N,E) u

More information

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013 CS 43: Computer Networks Internet Routing Kevin Webb Swarthmore College November 14, 2013 1 Reading Quiz Hierarchical routing Our routing study thus far - idealization all routers identical network flat

More information

Chapter 5: Network Layer Control Plane. understand principles behind network control plane : traditional routing algorithms

Chapter 5: Network Layer Control Plane. understand principles behind network control plane : traditional routing algorithms Introduction to Computer Networking Gu Leduc Chapter 5 Network Laer: The Control Plane Computer Networking: A Top Down Approach, 7 th edition. Jim Kurose, Keith Ross Addison-Wesle, April 06. From Computer

More information

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Inter-AS routing Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Some materials copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights Reserved Chapter 4:

More information

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks Welcome to CS 56: Adanced Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: Fuller 0 Fall 06 A-term Some slides are originall from the course materials of the tetbook Computer

More information

Network layer. Network Layer 4-1. application transport network data link physical. network data link physical. network data link physical

Network layer. Network Layer 4-1. application transport network data link physical. network data link physical. network data link physical Network layer transport 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

More information

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Chapter goals:

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Chapter goals: Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July 004. Chapter 4: Network Layer Chapter goals: understand principles

More information

CSCI Topics: Internet Programming Fall 2008

CSCI Topics: Internet Programming Fall 2008 CSCI 491-01 Topics: Internet Programming Fall 2008 Network Layer Derek Leonard Hendrix College November 17, 2008 Original slides copyright 1996-2007 J.F Kurose and K.W. Ross 1 Chapter 4: Roadmap 4.1 Introduction

More information

HY 335 Φροντιστήριο 8 ο

HY 335 Φροντιστήριο 8 ο HY 335 Φροντιστήριο 8 ο Χειμερινό Εξάμηνο 2009-2010 Παπακωνσταντίνου Άρτεμις artpap@csd.uoc.gr 4/12/2009 Roadmap IP: The Internet Protocol IPv4 Addressing Datagram Format Transporting a datagram from source

More information

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links Network Layer: Routing A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you can add, modify, and delete

More information

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer Data Communication & Networks G22.2262-001 Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer Dr. Jean-Claude Franchitti New York University Computer Science

More information

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks Welcome to CS 56: Adanced Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: Fuller 0 Fall 07 A-term Some slides are originall the course materials of the tetbook Computer Networking:

More information

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy CS555, Spring 2005 April 12, 2005 No classes attend Senior Design Projects conference Network Layer 4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 VC and Datagram Networks 4.3 What

More information

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016 9/9/6 S 7 Networking and the Internet Fall 06 Shortest-Path Problem Given: network topology with link costs c(x,y): link cost from node x to node y Infinity if x and y are not direct neighbors ompute:

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer CPSC 335 Data Communication Systems Readings: 4.4.3, 4.4.4, 4.5, 4.5.1 David Nguyen Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March

More information

Topics for This Week

Topics for This Week Topics for This Week Routing Protocols in the Internet OSPF, BGP More on IP Fragmentation and Reassembly ICMP Readings Sections 5.6.4-5.6.5 1 Hierarchical Routing aggregate routers into regions, autonomous

More information

DATA COMMUNICATOIN NETWORKING

DATA COMMUNICATOIN NETWORKING DATA COMMUNICATOIN NETWORKING Instructor: Ouldooz Baghban Karimi Course Book & Slides: Computer Networking, A Top-Down Approach By: Kurose, Ross Introduction Course Overview Basics of Computer Networks

More information

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet Chapter 5: outline 5.1 introduction 5.5 The SDN control 5.2 routing protocols plane link state 5.6 ICMP: The Internet distance vector Control Message 5.3 intra-as routing in Protocol the Internet t 5.7

More information

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane Chapter 5 Network Layer: The Control Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you

More information

Inter-AS routing and BGP. Network Layer 4-1

Inter-AS routing and BGP. Network Layer 4-1 Inter-AS routing and BGP Network Layer 4-1 Review: intra-as routing v Also known as interior gateway protocols (IGP) v Most common intra-as routing protocols: RIP: Routing Information Protocol, distance

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 13

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 13 CMPE 50/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 3 Lab3 online Due March 4 th. Introduction -2 IP addresses: how to get one? Q: how does network

More information

UNIT III THE NETWORK LAYER

UNIT III THE NETWORK LAYER UNIT III THE NETWORK LAYER Introduction-Virtual Circuit and Datagram Networks- Inside a Router- The Internet Protocol (IP): Forwarding and Addressing in the Internet-Routing Algorithms Routing in the Internet-Broadcast

More information

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017 CS 43: Computer Networks Internet Routing Kevin Webb Swarthmore College November 16, 2017 1 Hierarchical routing Our routing study thus far - idealization all routers identical network flat not true in

More information

Department of Computer Science Southern Illinois University Carbondale

Department of Computer Science Southern Illinois University Carbondale Department of Computer Science Southern Illinois University Carbondale CS441 Mobile & Wireless Computing Overview of Computer Networking Network Layer of TCP/IP Model Data and Computer Communications 7

More information

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction hapter 4: Network Layer TDTS06 omputer s Lecture 6: Network layer III Routing in the Internet Jose M. Peña, jospe@ida.liu.se ID/DIT, LiU 2009-09-16 4. 1 Introduction 4.2 Virtual circuit and datagram s

More information

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Lecture 4 The Network Layer Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Network layer functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Network Layer Chapter goals: understand principles behind layer services: routing (path selection) dealing with scale how a router works advanced topics: IPv6, mobility instantiation and implementation

More information

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

CS 43: Computer Networks. 24: Internet Routing November 19, 2018 CS 43: Computer Networks 24: Internet Routing November 19, 2018 Last Class Link State + Fast convergence (reacts to events quickly) + Small window of inconsistency Distance Vector + + Distributed (small

More information

EECS 3214: Computer Networks Protocols and Applications

EECS 3214: Computer Networks Protocols and Applications EECS 3214: Computer Networks Protocols and Applications Suprakash Datta datta@cse.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cse.yorku.ca/course/3214 These slides

More information

Network layer functions. Chapter 4 Network Layer. Network layer functions. Network layer functions

Network layer functions. Chapter 4 Network Layer. Network layer functions. Network layer functions Network layer functions Chapter 4 Network Layer transport packet from sending to receiving hosts layer entity in every host, router functions: path determination: route taken by packets from source to

More information

CSC 8560 Computer Networks: Control Plane

CSC 8560 Computer Networks: Control Plane CSC 8560 Computer Networks: Control Plane Professor Henry Carter Fall 2017 Last Time Subnets provide granularity for address assignment and ease management. What is 192.168.8.0? 192.168.32.0? 192.168.8.0:

More information

Announcement. Project 2 extended to 2/20 midnight Project 3 available this weekend Homework 3 available today, will put it online

Announcement. Project 2 extended to 2/20 midnight Project 3 available this weekend Homework 3 available today, will put it online Announcement Project 2 extended to 2/20 midnight Project 3 available this weekend Homework 3 available today, will put it online Outline Introduction and Network Service Models Routing Principles Link

More information

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner Communication Networks (0368-3030) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University Allon Wagner Kurose & Ross, Chapter 4 (5 th ed.) Many slides adapted from: J. Kurose & K. Ross

More information

Lecture 8. Network Layer (cont d) Network Layer 1-1

Lecture 8. Network Layer (cont d) Network Layer 1-1 Lecture 8 Network Layer (cont d) Network Layer 1-1 Agenda The Network Layer (cont d) What is inside a router Internet Protocol (IP) IPv4 fragmentation and addressing IP Address Classes and Subnets Network

More information

Network layer. Key Network-Layer Functions. Network service model. Interplay between routing and forwarding. CSE 4213: Computer Networks II

Network layer. Key Network-Layer Functions. Network service model. Interplay between routing and forwarding. CSE 4213: Computer Networks II Chapter 4: Network Layer CSE 43: Computer Networks II Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 46-736-00 ext 77875 Course page: http://www.cs.yorku.ca/course/43 Chapter goals: understand

More information

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen Lecture 4 - Network Layer Networks and Security Jacob Aae Mikkelsen IMADA September 23, 2013 September 23, 2013 1 / 67 Transport Layer Goals understand principles behind network layer services: network

More information

Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Intra- AS Rou-ng h0p://kcd.com/85/ Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesle Some materials copright 1996-2012 J.F Kurose and K.W. Ross, All Rights Reserved

More information

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Lecture 3. The Network Layer (cont d) Network Layer 1-1 Lecture 3 The Network Layer (cont d) Network Layer 1-1 Agenda The Network Layer (cont d) What is inside a router? Internet Protocol (IP) IPv4 fragmentation and addressing IP Address Classes and Subnets

More information

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane This presentation is adapted from slides produced by Jim Kurose and Keith Ross for their book, Computer Networking:

More information

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access Last time Wireless link-layer Introduction Wireless hosts, base stations, wireless links Characteristics of wireless links Signal strength, interference, multipath propagation Hidden terminal, signal fading

More information

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane This presentation is adapted from slides produced by Jim Kurose and Keith Ross for their book, Computer Networking:

More information

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer Chapter 4 Network Laer A note on the use of these ppt slides: We re making these slides freel available to all (facult, students, readers). The re in PowerPoint form so ou can add, modif, and delete slides

More information

Routing in the Internet

Routing in the Internet Routing in the Internet Daniel Zappala CS 460 Computer Networking Brigham Young University Scaling Routing for the Internet 2/29 scale 200 million destinations - can t store all destinations or all prefixes

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2015 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in

More information

Lecture 19: Network Layer Routing in the Internet

Lecture 19: Network Layer Routing in the Internet Lecture 19: Network Layer Routing in the Internet COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 40 Data and Computer Communications Networks Network Layer NAT, Routing, Link State, Distance Vector Prof. Lina Battestilli Fall 07 Chapter 4 Outline Network Layer: Data Plane 4. Overview of Network

More information

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what s inside a router 4.4 IP: Internet Protocol datagram format IPv4 addressing ICMP 4.5 routing algorithms link state

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 1 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what

More information

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5)

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5) Course on Computer Communication and Networks Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5) EDA344/DIT 420, CTH/GU Based on the book Computer Networking: A Top Down Approach, Jim Kurose,

More information

TDTS06: computer Networks

TDTS06: computer Networks TDTS06: computer Networks Lecturer: Johannes Schmidt The slides are taken from the book s companion Web site with few modifications: Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith

More information

Lecture 9. Network Layer (cont d) Network Layer 1-1

Lecture 9. Network Layer (cont d) Network Layer 1-1 Lecture 9 Network Layer (cont d) Network Layer 1-1 Agenda Routing Tables Unicast and Multicast Routing Protocols Routing Algorithms Link State and Distance Vector Routing Information and Open Shortest

More information

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. CS118 Discussion 1A, Week 7 Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. 1 Outline Network control plane Routing Link state routing (OSPF) Distance vector routing (RIP) BGP ICMP Midterm/Project 2

More information

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Lecture 5 The Network Layer part II Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it IP datagram format IP protocol version number header length (bytes) type of data max number remaining

More information

Chapter 4: Network Layer

Chapter 4: Network Layer hapter 4: Network Layer hapter goals: understand principles behind layer services: routing (path selection) dealing with scale how a router works advanced topics: IPv6, multicast instantiation and implementation

More information

CSC 4900 Computer Networks: Routing Algorithms

CSC 4900 Computer Networks: Routing Algorithms CSC 4900 Computer Networks: Routing Algorithms Professor Henry Carter Fall 2017 Last Time Subnets provide granularity for address assignment and ease management. What is 192.168.8.0? 192.168.32.0? 192.168.8.0:

More information

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Key Network-Layer Functions. Network layer.

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Key Network-Layer Functions. Network layer. Chapter 4 Network Laer note on the use of these ppt slides: We re making these slides freel available to all (facult, students, readers). The re in PowerPoint form so ou can add, modif, and delete slides

More information

Network layer: Overview. Network Layer Functions

Network layer: Overview. Network Layer Functions Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information