CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

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

Network layer: Overview. Network Layer Functions

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Network Layer: Internet Protocol

ECE 4450:427/527 - Computer Networks Spring 2017

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Master Course Computer Networks IN2097

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

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

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Router Architecture Overview

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Internet Protocol (IP)

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

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

End-to-End Communication

CS 457 Networking and the Internet. Problems. Mechanisms 9/21/16. Fall 2016 Indrajit Ray

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

internet technologies and standards

Chapter 4: Network Layer

Computer Networking Introduction

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

CS 457 Lecture 11 More IP Networking. Fall 2011

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

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

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

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Chapter 3 Internetworking

Lecture 11: Fragmentation & Addressing. CSE 123: Computer Networks Stefan Savage

CSEP 561 Internetworking. David Wetherall

CS 458 Internet Engineering Spring First Exam

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Vorlesung Kommunikationsnetze

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Introduction to Internetworking

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

Internetworking Part 2

CSCD58 WINTER 2018 WEEK 6 - NETWORK LAYER PART 1. Brian Harrington. February 13, University of Toronto Scarborough

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

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Instructor: Nicholas DeMarinis

IPv4. Christian Grothoff.

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. IP Addressing. Jasleen Kaur. Fall 2016

ECE 158A: Lecture 7. Fall 2015

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Internetworking Part 2

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

Internet Technology 3/23/2016

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Lecture 10: Addressing

CSC 4900 Computer Networks: Network Layer

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

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

Recap. Recap. Internetworking. First mile problem. Internet. End Users. Last mile problem. Direct link networks Packet switching.

Lecture 11: Networks & Networking

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

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

ICS 351: Networking Protocols

Networking Potpourri: Plug-n-Play, Next Gen

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

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

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

IP - The Internet Protocol

Chapter 06 IP Address

TSIN02 - Internetworking

Lecture 16: Network Layer Overview, Internet Protocol

Network Layer PREPARED BY AHMED ABDEL-RAOUF

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Chapter 4: network layer

Data Communication & Computer Networks Week # 13

internet technologies and standards

Basic Internetworking (IP)

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

The Internet Protocol (IP)

TSIN02 - Internetworking

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

TDTS06: computer Networks

CMPE 80N: Introduction to Networking and the Internet

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

CIS 551 / TCOM 401 Computer and Network Security

Introduction to Networks and the Internet

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

The Network Layer Forwarding Tables and Switching Fabric

CSC 401 Data and Computer Communications Networks

Chapter Motivation For Internetworking

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

ECE 435 Network Engineering Lecture 12

TCP/IP THE TCP/IP ARCHITECTURE

Fundamentals of Computer Networking AE6382

Transcription:

Computer Networks IP and Routing

Network Interconnections Data Link Layer Delivery of frames on the same LAN Extend reach using switches/bridges and hubs Limitations Solution? Cannot address heterogeniety Ethernet, Token ring, FDDI, PPP, HDLC, ATM... Broadcast food Managing all nodes as single network is not scalable Internet Interconnect diferent networks

Internet Protocol (IP) Layer 3 of TCP/IP stack (Internet Layer) Heterogenity Common network layer (IP) irrespective of layer 2 Best-efort service model Scalability Packets can get lost, delayed, duplicated, dropped Assumes any DLL underneath (homework: check RFC 1149) Hierarchical addressing Efcient Routing between routing elements

The Internet Network Layer Image source: Kameswari, CS348 Spring 2009

IP Datagram Format Image source: Kameswari, CS348 Spring 2009

IP Fragmentation and Reassembly MTUs of diferent network links are diferent MTU: maximum transmission unit Ethernet 1500 bytes Token Ring 4500 bytes Solution for Layer 3 datagrams?... Fragmentation + Reassembly

IP Fragmentation and Reassembly One to many Reassembly at destination Use of bits in header

Fragmentation Example Ofset is mod 8 Fragmentation on 8-byte boundaries

Addressing Each host has a layer 3 (IP) address Why? Hosts already have layer 2 addresses... 48-bit Ethernet MAC address Address space Flat addressing N nodes N addresses Hierarchical addressing advantage?

IP Addressing 32-bit address Consists of two parts Network Host Network on which a host is connected Unique id of host on a network Mask Unique bits that determine a network

Address Classes Diferent classes of networks (addresses) Class A: 0, network (7), host (24) Class B: 10, network (14), host (16) Class C: 110, network (21), host (8) Class D: 1110, 28 bits (group) Class E: 1111, 28 bits (reserved) Private addresses Class A: 10.0.0.0 through 10.255.255.255 Class B: 172.16.0.0 to 172.31.0.0 Class C: 192.168.0.0 to 192.168.255.0 127.0.0.1: loopback address

Address Classes Diferent classes of networks (addresses) Class A: 0, network (7), host (24) Class B: 10, network (14), host (16) Class C: 110, network (21), host (8) Class D: 1110, 28 bits (group) Class E: 1111, 28 bits (reserved)

Example: Class C Networks

Datagram Forwarding/Routing Every datagram consists of src, dest IP addr. With network and host info Network part uniquely identifes on Internet All hosts that share network part are connected to same physical network Router: on the edge of the network Connects at least two networks

Action at Router If (matching network address) on any interface Deliver packet to destination on network If network address in routing table Deliver packet to NextHop router Else Deliver packet to default router

Action at Host If src and dest have same network address Deliver packet directly Both hosts on same network Else Deliver packet to default router

Addressing+Packet Delivery At Layer 3 <src, dest, data> Sent to lower layer (DLL) What does DLL do next?...

ARP ARP: Address Resolution Protocol DLL service IP to MAC address mapping

ARP ARP: Address Resolution Protocol DLL service IP to MAC address mapping Protocol (broadcast based) Broadcast query with target IP address Host with IP address responds Host maintains ARP cache IP:Mac cache Times out after a fnite time (15 secs)

ARP Protocol Details ARP frame format Transmitted as Ethernet Payload Ethernet type set to ARP

How to get an IP address?

IP Address Confguration Manual Ad-hoc Issues? DHCP Dynamic Host Confguration Protocol Auto on-demand IP lease Plug-n-play Application-layer protocol

DHCP Advantages Central repository of IP addresses Can reuse Lease time adds efciency Use MAC-flter to allocate IPs No IP for unverifed hosts (users)

ICMP Internet Control Message Protocol Layer 3 communication for Error reporting Echo request/reply (router heartbeats) ICMP above IP layer ICMP packets carried as IP Payload Service feld in IP set to ICMP ICMP packets contain Type, code 8 bytes of IP packet responsible for ICMP message

ICMP Types and Codes

ICMP Usage Examples Ping Send an ICMP message with type=8 and code=0 ICMP echo request Destination host (if up) Responds to echo with response Type=0, Code=0 (for icmp message) Can also measure time for echo request-response Gives estimate of delay on network

Traceroute Program to determine route from source to destination Exploits the TTL feld On TTL expiry, router sends an ICMP message to host

Re-look at IP Address Space Is 32-bit enough? 4 billion hosts, how many networks? Are class categories optimal? Network with 2 hosts (Class C) Network with 256 hosts (Class B)

Re-look at IP Address Space One network: one network id + host range At router: one entry per network If same ISP has 200 Class C addresses?

Subnetting Subnet: sub-network in a network 3-level hierarchy instead of 2 Subnet number/mask for each subnet is same Host: IP address + Subnet mask

CIDR Classless Inter-domain Routing Abolishes class-based categorization

CIDR Classless Inter-domain Routing Abolishes class-based categorization Balance address usage efciency and routing table entries /X notation specify number of bits for network 2 to 32 bits 128.112.128/21 ISP can subdivide Longest-prefx match rule

Network Address Translation (NAT)

NAT in Action

NAT Debats +ves -ves

NAT Debate +ves Do not need address range from ISP Can change local IP distribution scheme easily Can change ISP easily No direct IP for nodes behind frewall (security) -ves No direct IP for nodes behind frewall Breaks end-to-end argument Port is for process, not for host IPv6