Network Layer Moving datagrams. How do it know? Tom-Tom.

Slides:



Advertisements
Similar presentations
RIP V1 W.lilakiatsakun.
Advertisements

1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
Announcement r Recitation tomorrow on Project 2 r Midterm Survey at the end of this class.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 5 The Network Layer.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Announcement r Project 3 out, due 3/10 r Homework 3 out last week m Due next Mon. 3/1.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
1 Lecture 11: The Network Layer Slides adapted from: Congestion slides for Computer Networks: A Systems Approach (Peterson and Davis) Chapter 3 slides.
Routing and Routing Protocols
Routing.
Announcement r Project 2 Extension ? m Previous grade allocation: Projects 40% –Web client/server7% –TCP stack21% –IP routing12% Midterm 20% Final 20%
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Chapter 4 Queuing, Datagrams, and Addressing
The Routing & the IP network data link physical network data link physical network data link physical network data link physical network data link physical.
The Network Layer: IP, subnets, NAT and Routing Based on slides from the Computer Networking: A Top Down Approach Featuring the Internet by Kurose and.
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Exam 2 Review Networking CS 3470, Section 1 Sarah Diesburg.
Network Layer (part 2) CPSC 363 Computer Networks Ellen Walker Hiram College (Includes figures from Computer Networking by Kurose & Ross, © Addison Wesley.
Lecture 14 ICMP: Internet Control Message Protocol r used by hosts, routers, gateways to communication network-level information m error reporting: unreachable.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Routing and Routing Protocols Routing Protocols Overview.
CISCO NETWORKING ACADEMY PROGRAM (CNAP) Routing Fundamentals & Subnets
Ch 4. The Network Layer Myungchul Kim
Introduction 1 Lecture 21 Network Layer (Routing Activity) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
IP Forwarding.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
1 Chapter 4: Network Layer r 4.4 IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP m IPv6 r 4.5 Routing algorithms m Hierarchical routing.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing (path selection) m dealing with.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r Understand principles behind network layer services: m Routing (path selection) m dealing with.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
The Internet Network layer
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
Introduction to Networks
Chapter 4: Network Layer
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Networking CS 3470, Section 1 Sarah Diesburg
Wide Area Networks and Internet CT1403
Networking CS 3470 Sarah Diesburg
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Network Layer: Control/data plane, addressing, routers
CMPE 252A : Computer Networks
Networking CS 3470 Sarah Diesburg
Presentation transcript:

Network Layer Moving datagrams

How do it know? Tom-Tom

Terms Forwarding: involves the transfer of a packet from an incoming link to an outgoing link within a single router. Routing: involves all of a network’s routers whose collective interactions determine the path (route) that packets take. Forwarding Table: a router forwards a packet by examining the value of a field in the arriving packet’s header, and then using this value to index into the router’s forwarding table Routing Algorithm: determines the values that are inserted into the router’s forwarding table

Best-Effort Service No guarantee of delivery No guarantee of delay No guarantee of in-order packet delivery No guarantee of minimum jitter So, is this any way to run a network?

Datagram Network

Prefix Match Router forwards packet based on prefix match If a tie, then the longest prefix match is used

What’s a Router? This is where Cisco got their Start in 1984

Input Port For many routers, this is where the determination of output port is made Do this at line speed

Processing Speed OC-48 link runs at 2.5Gbps; packets 256 bytes long. Lookup speed is 1 Mlps Content Addressable Memory (CAM): allows 32-bit IP address to be presented to CAM, which returns the table value for that address in essentially zero time Ternary CAMs have “I don’t care” option

Switching Fabric Memory: (traditional computers) with input and output ports Bus: Input ports transfer a packet directly to the output port over a shared bus; only one packet at a time on the bus; limited switch speed to bus speed Crossbar: 2n buses; can still collide at bus to output port

Output Ports

Datagram Format Version number: Version 4 or version 6 Header length: where the data actually begins; HL=20B, usually Datagram length: total (header plus data); rarely longer than 1500 B Time-to-live: so datagrams do not circulate forever; decremented at each router Protocol field: TCP or UDP (6 or 17) Header checksum Source and Destination IP addresses

Packet Fragmentation Different link-layer protocols can have different Maximum Transmission Units (MTU) Ethernet frames carry up to 1500 bytes Wide-area links as little as 576 bytes

IP Addressing IP addresses are for interfaces (NIC card); router can have multiple IP addresses IP address is 32-bits long Written in dotted-decimal notation Classes: –Class A1-126 (first bit is zero) –Class B (first bit is one) –Class C (first two bits are ones)

CIDR Classless Interdomain Routing: a.b.c.d/x; where x is the network prefix (name) Subnet mask: for class C Classful addressing is too “chunky” to work anymore (too many requests for IP addresses) Typically get a (block) of addresses from Internet Service Provider

Address Aggregation

Special Addresses Network address: all zeros in host part of address Broadcast address: all ones in host part of address; will broadcast to subnet, routers generally drop these

ICANN Internet Corporation for Assigned Names and Numbers Controls IP address space, Manages DNS root servers Controls domain names and disputes

DHCP Dynamic Host Configuration Protocol Stradles the boundary between network and link layers Automatically assigns IP address and can optionally provide additional information Will be back to this next session

Network Address Translation Private address spaces – – – – – – For SOHO and small business use “Real” IP address to outside world, private within network Interferes with P2P and VoIP, but there are solutions

Internet Control Message Protocol ICMP, used by hosts and routers to communicate network-layer information Architecturally lies just above IP (sent in IP datagram) Ping sends an ICMP type 8 code 0 message to the specified host who returns a type 0 code 0 reply. Tracert is implemented in ICMP messages

IP v 6 From 32 bits to 128 Everything (and then some) can have an IP address Slow to take hold

Routing Algorithms Global routing algorithm computes the least cost path using complete, global knowledge about the network Decentralized routing algorithm calculation of the least-cost path is carried out in an iterative, distributed manner. Static routing algorithms change very slowly over time Dynamic routing algorithms change as the network traffic loads or topology change

Distance-Vector Algorithm Iterative; process continues on until no more information is exchanged Asynchronous; does not require all of the nodes to operate in unison Distributed; each node receives some information from one or more of its directly attached neighbors, calculation, distribution of results Only talks to its immediate neighbors but has information about additional paths It just stops

Link-State Algorithm Loops n times where n is number of nodes in network Requires link costs to be known Will compute shortest paths from the source node to every other node in the network When you compare LS and DV there is no clear winner – both are used…

Autonomous Systems Organize routers into ASs – typically under same administrative control One router will have added task of forwarding packets out: gateway router

Intra-AS Routing Used to determine how routing is performed within an autonomous system Routing Information Protocol (RIP) and Open Shortest Path First (OSPF)

RIP One of the earliest and still in widespread use today Distance-Vector protocol; uses hop count as a cost metric; each hop = 1 Maximum cost is limited to 15 Routing updates sent approx. 30 seconds; up to 25 destinations

OSPF Open means open source Administrator sets link “costs” Link-State protocol Router broadcasts routing information to all other routers in the AS OSPF messages contained in IP datagrams with upperlayer number 89

Border Gateway Protocol BGP v4 is the de facto standard inter-AS routing protocol Obtain subnet reachability information from neighboring ASs Propagate the reachability information to all routers internal to the AS Determine “good” routes Destinations are CDIRized prefixes (subnets)