CS 31006: Computer Networks – Moving From End-to-End To Per Hop

Slides:



Advertisements
Similar presentations
Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Advertisements

TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
IP datagrams Service paradigm, IP datagrams, routing, encapsulation, fragmentation and reassembly.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
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.
UNIT-IV Computer Network Network Layer. Network Layer Prepared by - ROHIT KOSHTA In the seven-layer OSI model of computer networking, the network layer.
Chapter 18. IP: Internet Protocol Addresses
Oct 28, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
COS 420 Day 8. Agenda Assignment 2 Due I’ll have Assignment 3 ready by next class Will be due after brake and will cover Chap 11 through Chap 15 Midterm.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
© Jörg Liebeherr ECE 1545 Forwarding in IP Networks.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
1 Internet Protocol. 2 Connectionless Network Layers Destination, source, hop count Maybe other stuff –fragmentation –options (e.g., source routing) –error.
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
ICS156 final review Xiaowei Yang. What this course is about  Reinforcing basic networking concepts  Practical networking knowledge  Today Review concepts.
© Jörg Liebeherr, Organization Addresses TCP/IP Protocol stack Forwarding Internet.
COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 3.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Lecture, November 20, 2002 Message Delivery to Processes Internet Addressing Address resolution protocol (ARP) Dynamic host reconfiguration protocol.
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
Routing Optimizations in IPv4 Classless Inter-Domain Routing (CIDR) Mobile IP CS 60008: Internet Architecture and Protocols Department of CSE, IIT Kharagpur.
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Subnetting and Supernetting.
Wrapping up subnetting, mapping IPs to physical ports BSAD 146 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
1 Computer Networks Chapter 5. Network layer The network layer is concerned with getting packets from the source all the way to the destination. Getting.
IP Addressing Introductory material.
LESSON Networking Fundamentals Understand IPv4.
Computer Communication Networks
ROUTING.
Subnetting and Supernetting.
Networking CS 3470, Section 1 Sarah Diesburg
Internet technologies
IP.
Planning the Addressing Structure
CS4470 Computer Networking Protocols
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Internetworking & Address Resolution
IP Addressing Introductory material.
CS 457 – Lecture 10 Internetworking and IP
IP Addressing Introductory material.
UNIT III ROUTING.
Internetworking Outline Best Effort Service Model
Dr. John P. Abraham Professor UTPA
INTERNET PROTOCOL Presented by: Md:Faruque-A-Azam ID:1642CSE00570 Batch:42 CSE,MIU.
IP Addressing Introductory material
Networking CS 3470 Sarah Diesburg
Planning the Addressing Structure
Routing Fundamentals and Subnets
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Network Layer: Control/data plane, addressing, routers
CSE 451: Operating Systems Winter 2004 Module in 7 slides
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Networking CS 3470 Sarah Diesburg
Subnets in TCP/IP Networks © N. Ganesan, Ph.D.
Layering and the TCP/IP protocol Suite
Presentation transcript:

CS 31006: Computer Networks – Moving From End-to-End To Per Hop

What We Have Learnt So Far … The design of current network architecture is based on experience and requirements Physical Data Link Physical Transport Physical Data Link Network Physical Data Link Network

What We Have Learnt So Far … Protocol stack is implemented across different layers of the operating system Physical Data Link Network Transport Application Software, Kernel Firmware, Device Driver Hardware

Network (Internet) Layer Services UDP TCP End to end packet delivery Connection Establishment Reliable Data Delivery Flow and Congestion Control Ordered Packet Delivery Transport Addressing Routing Datagram delivery (unreliable) Network Data Link

Internet Architecture – Basic Principles Internet is organized in a hierarchical fashion. Router SW Lab 1 SW Lab 2 CSE Network

Internet Architecture – Basic Principles Internet is organized in a hierarchical fashion. SW Lab 1 EE Lab 1 SW Lab 2 EE Lab 2 CSE Network EEE Network IITKGP Network

Internet Architecture – Basic Principles Internet is organized in a hierarchical fashion. EEE EEE CSE CSE IITKGP Network IITBBS Network ERNET Network

Internet Architecture – Basic Principles Internet is organized in a hierarchical fashion. IITKGP BSNL Public IITBBS BSNL Corporate ERNET Network BSNL Network Bharti Airtel Network

Internet Architecture Autonomous Systems (AS) – A set of LANs for an administrative domain, identified by a unique AS number, and the routing policies are controlled by a single administrator. Local Area Network (LAN) – A set of devices with a common layer 3 gateway

Autonomous System Graph for India Source: https://labs.apnic.net/vizas/#IN

Internet Architecture Internet Service Providers (ISP) – An AS provides Internet connectivity to another group of ASes or end users

Peering between ISPs

Communication between Two Nodes over ISPs

IP Addressing – Basic Principles We need to forward data packets from one network to another network via different intermediate networks. Host 2 AS 11 AS 12 AS 10 Host 1 AS 13

IP Addressing – Basic Principles The address should identify a network as well as a host inside a network Host 2 AS 11 AS 12 AS 10 Host 1 AS 13

Network address Host address IP Addressing Network address Host address Divide the address space (32 bit in IPv4) among network address and host address The old age – Classful addressing: Fixed number of bits for network address and host address

How to identify a class – use the first few bits Classful Addressing How to identify a class – use the first few bits 0 – Class A, 10 – Class B, 110 – Class C, 1110 – Class D, 1111 – Class E

Network Address and Broadcast Address Network address – identify a network All 0’s in the host address part Ex-1 (Class A): 01111110.00000000.00000000.00000000 (126.0.0.0) Ex-2 (Class B): 10111101.11101001.00000000.00000000 (189.233.0.0) Broadcast address – send the data to all the hosts of a network All 1’s in the host address part Ex-1 (Class A): 01111110.11111111.11111111.11111111 (126.255.255.255) Ex-2 (Class B): 10111101.11101001.11111111.11111111 (189.233.255.255) How many valid hosts can be there in a Class A, in a Class B and in a Class C IP address?

Subnetting and Supernetting – Classless Inter-domain Routing (CIDR) You have 255 hosts in a network. Which IPv4 address class will you use – Class C or Class B ? Class C – not possible Class B – huge address space is lost (using only 255 addresses out of possible 216-2 addresses) Split a large network or combine multiple small networks for efficient use of address space Subnetting – divide a large network into multiple small networks Supernetting – combine multiple small networks into a single large network Subnet mask – denote the number of bits in the network address field

Divide a Network into Subnets

CIDR – Addressing Format Subnet Address Host Address 10111111 10110100 01010011 11101011 IP Address 11111111 11110000 00000000 00000000 Netmask We write the IP address as 191.180.83.235/12 in CIDR notation The first 12 bits are the network address and rest (32-12)=20 bits are for host address The subnet mask is 255.240.0.0

CIDR - Manual IP Setting in the OS

Divide a Network into Subnets Let the IP address of a network is 203.110.0.0/16 We want to divide this network into three subnets We need 3 bits for subnets – why not 2 bits? Subnet 1 – 100, Subnet 2– 101, Subnet 3 – 110 Rest 13 bits are used for addressing the hosts of those subnets. The subnets are – 203.110.128.0/19, 203.110.160.0/19, 203.110.192.0/19

All Zero and All One Subnets 192.168.0.0/16 192.168.128.0/17 192.168.1XXXXXXX.X 192.168.0.0/17 Broadcast address for this subnet is 192.168.255.255, broadcast address for the original network is also 192.168.255.255 – All-One Subnet 192.168.0XXXXXXX.X The network address for the subnet and the original network is identical – Subnet Zero We normally avoid “all zero” and “all one” subnets.

CIDR Example 203.110.0.0/19 CSE – 2000 Hosts VGSOM – 500 Hosts EE – 500 Hosts 203.110.0.0/19

CIDR Example 203.110.0.0/19 CSE – 2000 Hosts VGSOM – 500 Hosts EE – 500 Hosts 9 bit hosts 9 bit hosts 11 bit hosts 203.110.0.0/19

CSE – 11 bits, VGSOM – 9 bits, EE – 9 bits for host address CIDR Example Address space – 203.110.0.0/19 13 bits are available to serve all the hosts of IITKGP network We need to divide these address space among 3 subnets CSE – 11 bits, VGSOM – 9 bits, EE – 9 bits for host address We have 2 bits left for identifying three subnets – Is this possible? Avoid “all zero” and ”all one” subnets Let us apply CIDR – Combine VGSOM and EE Networks together

CIDR Example 203.110.0.0/19 CSE – 2000 Hosts VGSOM – 500 Hosts EE – 500 Hosts 9 bit hosts 9 bit hosts 11 bit hosts 10 bit hosts 203.110.0.0/19

CIDR Example CSE – 11 bits, VGSOM+EE – 10 bits Network address – 203.110.0.0/19, 203.110.000XXXXX.XXXXXXXX CSE network address 203.110.00010XXX.XXXXXXXX (203.110.16.0/21) VGSOM+EE network address 203.110.00001XXX.XXXXXXXX (203.110.8.0/21)

CIDR Example CSE – 2000 Hosts VGSOM – 500 Hosts EE – 500 Hosts 9 bit hosts 9 bit hosts 11 bit hosts 203.110.16.0/21 10 bit hosts 203.110.8.0/21 203.110.0.0/19

CIDR Example VGSOM – 9 bits, EE – 9 bits Network address – 203.110.8.0/21, 203.110.00001XXX.XXXXXXXX VGSOM network address 203.110.0000110X.XXXXXXXX (203.110.12.0/23) EE network address 203.110.0000101X.XXXXXXXX (203.110.10.0/23)

CIDR Example CSE – 2000 Hosts VGSOM – 500 Hosts EE – 500 Hosts 9 bit hosts 9 bit hosts 11 bit hosts 203.110.12.0/23 203.110.10.0/23 203.110.16.0/21 10 bit hosts 203.110.8.0/21 203.110.0.0/19

CIDR – Routing Table Construction 10.0.2.0/24 R3 172.16.1.1/24 10.0.2.1/24 172.16.1.2/24 eth0 10.0.3.1/24 10.0.3.0/24 172.16.2.2/24 R2 R1 eth1 10.0.4.1/24 172.16.2.1/24 10.0.4.0/24 Network Netmask Gateway Interface 10.0.2.0 255.255.255.0 172.16.2.2 eth1 10.0.3.0 10.0.4.0 0.0.0.0 172.16.1.1 eth0 172.16.1.0 172.16.2.0 Routing Table for R1

CIDR – Routing Table Construction 10.0.2.0/24 R3 172.16.1.1/24 10.0.2.1/24 172.16.1.2/24 eth0 10.0.3.1/24 10.0.3.0/24 172.16.2.2/24 R2 R1 eth1 10.0.4.1/24 Routing Table for R1 172.16.2.1/24 10.0.4.0/24 Network Netmask Gateway Interface 10.0.2.0 255.255.255.0 172.16.2.2 eth1 10.0.3.0 10.0.4.0 0.0.0.0 172.16.1.1 eth0 172.16.1.0 172.16.2.0 Compaction of routing table is possible

CIDR – Routing Table Construction 10.0.2.0/24 R3 172.16.1.1/24 10.0.2.1/24 172.16.1.2/24 eth0 10.0.3.1/24 10.0.3.0/24 172.16.2.2/24 R2 R1 eth1 10.0.4.1/24 172.16.2.1/24 10.0.4.0/24 Network Netmask Gateway Interface 10.0.0.0 255.255.0.0 172.16.2.2 eth1 0.0.0.0 172.16.1.1 eth0 172.16.1.0 255.255.255.0 172.16.2.0 Compact Routing Table for R1

CIDR – Problem of Multihoming 10.0.2.0/24 R3 172.16.1.1/24 10.0.2.1/24 172.16.1.2/24 eth0 10.0.3.1/24 10.0.3.0/24 172.16.2.2/24 R2 R1 eth1 10.0.4.1/24 172.16.2.1/24 eth2 10.0.4.0/24 172.16.3.1/24 10.0.4.2/24 172.16.3.2/24

CIDR – Longest Prefix Match Supernetting is not always perfect ! There is always a possibility of duplicate entries Network Netmask Gateway Interface 10.0.0.0 255.255.0.0 172.16.2.2 eth1 10.0.5.0 255.255.255.0 172.16.3.2 eth2 0.0.0.0 172.16.1.1 eth0 172.16.1.0 172.16.2.0 Where to forward 10.0.5.8 ?

CIDR – Longest Prefix Match Use Patricia Tree (a compact representation of trie) for matching prefixes. 1 00 10 11 0* 100 101 00* 11*

Next, we’ll look how to construct the routing table for the Internet …