Scaling the Network: Subnetting and Other Protocols

Slides:



Advertisements
Similar presentations
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Advertisements

Addressing the Network IPv4
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
CSE331: Introduction to Networks and Security Lecture 8 Fall 2002.
4: Network Layer4a-1 IP Addressing: introduction r IP address: 32-bit identifier for host, router interface r interface: connection between host, router.
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.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
CSE452:Computer Networks
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,
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
1 Chapter Overview Subnet. What is a subnet When you break a network into a few smaller networks, you have created several subnets Like IP address where.
Spring Ch 18 IP Addresses. 2 Internet Protocol  Only protocol at Layer 3  Defines Internet addressing Internet packet format Internet routing.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
4: Addressing Working At A Small-to-Medium Business or ISP.
Computer Networks The Network Layer
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
Network Layer (3). Node lookup in p2p networks Section in the textbook. In a p2p network, each node may provide some kind of service for other.
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.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
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:
© 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.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
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.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
Page 1 Network Addressing CS.457 Network Design And Management.
© Cengage Learning 2014 How IP Addresses Get Assigned A MAC address is embedded on a network adapter at a factory IP addresses are assigned manually or.
CS470 Computer Networking Protocols
IP Addressing.
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.
Routing. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Chapter 8: IP Addressing
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
Data Communications (SEE5523) - Chap.8a1/24 SET5534 Data Communication and Switching System Chapter 8 IP Addressing Alias Mohd FKE, UTM
Network Layer IP Address.
IP – Subnetting and CIDR
Scaling the Network: Subnetting and Protocols
Introduction to Networks
Scaling the Network: Subnetting and Other Protocols
Instructor Materials Chapter 7: IP Addressing
Instructor Materials Chapter 4: Network Addressing
Computer Communication Networks
Scaling the Network Chapters 3-4 Part 2
Scaling the Network Chapters 3-4 Part 1
Chapter 4: Network Layer
IP.
CS4470 Computer Networking Protocols
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
NET302 Lecture#3 IPV4 Addressing Asma AlOsaimi.
Chapter 9 Objectives Understand TCP/IP Protocol.
Net 431 D: ADVANCED COMPUTER NETWORKS
Unit 2: IP addressing (Contd.). Delivery and routing of packets
Advanced Computer Networks
Wide Area Networks and Internet CT1403
Lecture#3 IPV4 Addressing Net 302- Asma AlOsaimi.
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
Dynamic Host Configuration Protocol (DHCP)
An Engineering Approach to Computer Networking
Lecture#3-IPV4 Addressing
Presentation transcript:

Scaling the Network: Subnetting and Other Protocols Networking CS 3470, Section 1

Today CIDR Subnetting Private IP addresses ICMP, IMAP, and DHCP Protocols

Packet Encapsulation ** Creative Commons: http://en.wikipedia.org/wiki/File:UDP_encapsulation.svg

IP Addressing Classful addressing scheme separates groups of addresses into classes Class A 8 bits used for network (256) 24 bits used for hosts and network devices (16,777,216) Binary address starts with 0 Class B 16 bits for networks (65,536) 16 bits for hosts and network devices (65,536) binary address starts with 10 Class C 24 bits for the network (16,777,216) 8 bits for the host (256) Binary address starts with 110

Classless Inter-Domain Routing Classful addressing scheme wasteful IP address space exhaustion Class B net allocated enough for 65K hosts Even if only 2K hosts in that network Solution: Classless Inter Domain Routing (CIDR) Eliminate class distinction No A,B,C Keep multicast class D

Classless Addressing Addresses allocated in contiguous blocks Number of addresses assigned always power of 2 Network portion of address is of arbitrary length Address format: a.b.c.d/x x is number of bits in network portion of address This example is half of a class B! 11001000 00010111 1 0000000 00000000 network part host 200.23.128.0/17

Subnet Motivation This network can have 215 = 32,768 hosts! 11001000 00010111 1 0000000 00000000 network part host 200.23.128.0/17 This network can have 215 = 32,768 hosts! Imagine the size of the routing tables if we had a flat network of all these hosts! We want to split this network up into smaller networks

Subnet Motivation 11001000 00010111 1 0000000 00000000 network part host 200.23.128.0/17 We probably want to split this network up into smaller networks (subnets) due to Security reasons Logistical reasons Routing reasons

Let’s play with a small example 11000000 10101000 00001010 00000000 network part host 192.168.10.0/24 Suppose you have this private class C network, and you need to divide it evenly You will have hosts 0-127 Friend will have hosts 128-255

Let’s play with a small example 11000000 10101000 00001010 00000000 network part host 192.168.10.0/24 Dividing the network into subnets involves using some of the host bits as the subnet ID What bit of the host part of the address do we have to flip to signify >= 128 for the host ID?

Let’s play with a small example 11000000 10101000 00001010 0 0000000 network part host 192.168.10.0/25 subnet ID Can address hosts 0-127 Can address hosts 128-255 11000000 10101000 00001010 1 0000000 network part host 192.168.10.128/25 subnet ID

Let’s play with a small example 11000000 10101000 00001010 0 0000000 network part host 192.168.10.0/25 subnet ID Now, how can routers easily figure out where destination IP address 192.168.10.202 should be routed? 192.168.10.0/25 or 192.168.10.128/25 subnet?

Let’s play with a small example 11000000 10101000 00001010 0 0000000 network part host 192.168.10.0/25 subnet ID A subnet number is the network part + subnet ID + zeros for the host 192.168.10.0 A subnet mask consists of all 1’s for the network+subnet ID and all 0’s for the host part What is this subnet mask?

Let’s play with a small example 11000000 10101000 00001010 0 0000000 network part host 192.168.10.0/25 subnet ID Subnet mask: 255.255.255.128 11111111 11111111 11111111 10000000

Let’s play with a small example 11000000 10101000 00001010 1 0000000 network part host 192.168.10.128/25 subnet ID Subnet mask: 255.255.255.128 11111111 11111111 11111111 10000000

Subnet Masks We can figure out where to route by noting that dest subnet = subnet mask & dest IP addr

Subnet Masks dest subnet = subnet mask & dest IP addr Let’s say destination IP is 192.168.10.202 and lets & with subnet mask 192 . 168 . 10 . 128 We send packet to 192.168.10.128/25 network! 11000000 10101000 00001010 110001010 & 11111111 11111111 11111111 100000000 11000000 10101000 00001010 100000000

Longest-Prefix Match Suppose two network IDs exist: 1) 128.186.0.0/16 2) 128.186.134.0/24 Suppose you have destination IP of 128.186.134.100 Both subnet mask & IP of 1 and 2 will yield match – what to do? Longest-prefix match – route to network with the most matching host bits.

The University of Adelaide, School of Computer Science 21 February 2019 Subnetting Notes Would use a default router if nothing matches Not necessary for all ones in subnet mask to be contiguous Can put multiple subnets on one physical network Subnets not visible from the rest of the Internet Chapter 2 — Instructions: Language of the Computer

Routing with CIDR Let’s look at an example from homework 5…

Special IP Addresses Network address: host id = all 0’s Local broadcast address: all 1’s Used during system startup Directed broadcast address: host id = all 1’s Routers will forward this broadcast address Local host address (this computer): all 0’s Loopback address network id = 127, any host id (e.g. 127.0.0.1)

Private IP Addresses Some addresses are not globally routable IP packets created by these addresses cannot be transmitted into the public domain Commonly used for home, office, and enterprise LANS

Private IP Addresses Address Range CIDR Number of Addresses 10.0.0.0 – 10.255.255.255 10.0.0.0/8 16,777,216 172.16.0.0 – 172.31.255.255 172.16.0.0/12 1,048,576 192.168.0.0 – 192.168.255.255 192.168.0.0/16 65,535

Private IP addresses Router uses Network Address Translation (NAT) to send IP packets from private IP addresses onto public networks Router places it’s own IP address as destination Maintains table, knows which host to route addresses Router keeps translation table

IP Address Configuration May configure a network statically by giving each host it’s IP address and routing information (like gateway) Or may configure a server to do this for you dynamically

The University of Adelaide, School of Computer Science 21 February 2019 DHCP Server Dynamic Host Configuration Protocol (DHCP) DHCP server is responsible for providing configuration information to hosts There is at least one DHCP server for an administrative domain DHCP server maintains a pool of available addresses Chapter 2 — Instructions: Language of the Computer

DHCP Protocol State Protocol DHCPDISCOVER (client) DHCPOFFER (server) DHCPREQUEST (client) DHCPACK (server) DHCPNAK (server) DHCPINFORM (client)

The University of Adelaide, School of Computer Science 21 February 2019 DHCP Newly booted or attached host sends DHCPDISCOVER message to a special IP address (255.255.255.255) Rest of messages are unicast back and forth Chapter 2 — Instructions: Language of the Computer

DHCP IP leases are valid for a predefined period of time (T1) Leases are renewed at T1/2 Leases are released if they have not been renewed at the expiration of the lease time

Internet Control Message Protocol (ICMP) The University of Adelaide, School of Computer Science 21 February 2019 Internet Control Message Protocol (ICMP) Defines a collection of error messages that are sent back to the source host whenever a router or host is unable to process an IP datagram successfully Destination host unreachable due to link /node failure Reassembly process failed TTL had reached 0 (so datagrams don't cycle forever) IP header checksum failed The ping application is a very common ICMP- message-generator Chapter 2 — Instructions: Language of the Computer