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.

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

CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
1 IPv6. 2 Problem: 32-bit address space will be completely allocated by Solution: Design a new IP with a larger address space, called the IP version.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
CS 457 – Lecture 16 Global Internet - BGP Spring 2012.
Network Layer IPv6 Slides were original prepared by Dr. Tatsuya Suda.
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.
N/W Layer Addressing1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
Computer Networks The Network Layer
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
12 – IP, NAT, ICMP, IPv6 Network Layer.
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
Router Architecture Overview
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
1 Kyung Hee University Prof. Choong Seon HONG Subnetting/ Supernetting and Classless Addressing.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
Sharif University of Technology, Kish Island Campus Internet Protocol (IP) by Behzad Akbari.
Page 1 Network Addressing CS.457 Network Design And Management.
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.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
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”
4: Network Layer4b-1 IPv6 r Initial motivation: 32-bit address space completely allocated by r Additional motivation: m header format helps speed.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 20 Omar Meqdadi Department of Computer Science and Software Engineering University.
CS470 Computer Networking Protocols
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 Lecture, November 20, 2002 Message Delivery to Processes Internet Addressing Address resolution protocol (ARP) Dynamic host reconfiguration protocol.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
4: 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.
Chapters 4 & 5 Addressing Part 2 of 2
Subnetting and Supernetting
Introduction to Networks
12 – IP, NAT, ICMP, IPv6 Network Layer.
NET 221D:Computer Networks Fundamentals
4.3 Network Layer Logical Addressing
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Chapter 4: Network Layer
Internet Protocol Version 6 Specifications
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Homework 4 Out: Fri 2/26/2016 In: Fri 3/11/2016.
Chapter 4: Network Layer
PART IV Network Layer.
4 Network Layer Part I Computer Networks Tutun Juhana
What’s “Inside” a Router?
Chapter 5 Addressing Dr. Clincy Lecture.
EEC-484/584 Computer Networks
Internetworking Outline Best Effort Service Model
EEC-484/584 Computer Networks
Wide Area Networks and Internet CT1403
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Chapter 4: Network Layer
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Introduction to Networks
DHCP: Dynamic Host Configuration Protocol
Introduction to Network
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

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 slides of Prof. J. Kurose (U Mass)

IP Addresses Review IP address is 32-bit in IPv4. IP address are designed with two levels of hierarchy, network portion and host portion. Classful addressing inefficient: Class A and Class B waste many address spaces for each network. Solution: use another level of hierarchy, subnetting. Further divide a network into smaller networks called subnets. netidhostid netidhostid2subnetid Number of Subnets = 2 subnetid Number of Hosts per subnet = 2 hostid2

Subnet Mask Class A: Class B: Class C: ’s 16 1’s 24 1’s Class A subnet mask: Class B subnet mask: Class C subnet mask:

Subnet Example What is the subnetwork address if the destination address is and the subnet mask is ? –Apply the AND operation  subnetwork address

Subnet Example A company has the Class B address The company needs 1000 subnets. Design the subnets. (Explain in class.)

Variable Length Subnet Mask Suppose a site with class C address and needs to have 5 subnets with hosts as follows: 40, 40, 30, 30. The site cannot use subnet mask of 26 bits. Why? Solution: use variable length subnet mask (vlsm). –First uses the 26-bit subnet mask ( ) to divide the network into 4 subnets. –Then it applies with 27-bit subnet mask ( ) to one of the subnets to divide it further into two smaller subnets.

Supernetting Class A and B addresses are almost depleted. Class C is available, but most organization needs more than 256 hosts in the network. Solution: use supernetting. –Combine several class C networks to create a supernetwork (less number of 1’s than default mask) A supernet mask is reverse of a subnet mask Default Mask Subnet Mask Supernet Mask

Supernet Example A company needs to make a supernet out of its 8 Class C address. What is the supernet mask? A supernet has a first address of and a supernet mask of How many blocks are in this supernet? What is the range of addresses? What is the total number of addresses?

Classless Addressing What if a small home business only wants 8 addresses? Solution: –Use classless addressing: variable-length blocks that belongs to no class. –The whole address space, 232, is divided into blocks of different sizes. Rules: –Number of blocks must be power of 2. –The beginning address must be divisible by the number of addresses. prefixsuffix Boundary is flexible

Classless Example Which of the following can be the beginning address of a block that contains 16 addresses? – – – – Rememer: The beginning address must be divisible by the number of addresses.

Classless InterDomain Routing (CIDR) CIDR notation w.x.y.z/n Where n denotes the number of bits that are the same in every address in the block. Examples: –A site is given a block with the beginning address and the prefix length /30. What is the range of the block? Beginning address: Ending address:  Only 4 address in this block –What is the network address of /27? The prefix length is 27 (must keep the first 27 bits the same) and change the remaining bits to 0’s.  The network address is /27

Routing in the Internet Autonomous Systems (AS): A collection of hosts and routers that are administered by a single authority. The Global Internet consists of 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 many AS’s together Two-level routing: –Intra-AS: administrator responsible for choice of routing algorithm within network –Inter-AS: unique standard for inter-AS routing: BGP

Subnetting Autonomous Systems (AS): A collection of hosts and routers that are administered by a single authority. The Global Internet consists of 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 many AS’s together Two-level routing: –Intra-AS: administrator responsible for choice of routing algorithm within network –Inter-AS: unique standard for inter-AS routing: BGP

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

IPv6 Initial motivation: 32-bit address space completely allocated by Additional motivation: –Efficiency - header format helps speed processing/forwarding –QoS - header changes –new “anycast” address: route to “best” of several replicated servers IPv6 datagram format: –fixed-length 40 byte header –no fragmentation allowed

IPv6 Header (Cont) Priority: identify priority among datagrams in flow Flow Label: identify datagrams in same “flow.” (concept of “flow” not well defined). Next header: identify upper layer protocol for data

Other Changes from IPv4 Checksum: removed entirely to reduce processing time at each hop Options: allowed, but outside of header, indicated by “Next Header” field ICMPv6: new version of ICMP –additional message types, e.g. “Packet Too Big” –multicast group management functions

Transition From IPv4 To IPv6 Not all routers can be upgraded simultaneous –How will the network operate with mixed IPv4 and IPv6 routers? Two proposed approaches: –Dual Stack: some routers with dual stack (v6, v4) can “translate” between formats –Tunneling: IPv6 carried as payload in IPv4 datagram among IPv4 routers

Dual Stack Approach A B E F IPv6 C D IPv4 Flow: X Src: A Dest: F data Flow: ?? Src: A Dest: F data Src:A Dest: F data A-to-B: IPv6 Src:A Dest: F data B-to-C: IPv4 B-to-C: IPv4 B-to-C: IPv6

Tunneling A B E F IPv6 tunnel Logical view: Physical view: A B E F IPv6 C D IPv4 Flow: X Src: A Dest: F data Flow: X Src: A Dest: F data Flow: X Src: A Dest: F data Src:B Dest: E Flow: X Src: A Dest: F data Src:B Dest: E A-to-B: IPv6 E-to-F: IPv6 B-to-C: IPv6 inside IPv4 B-to-C: IPv6 inside IPv4