Scaling the Network: Subnetting and Protocols

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Advertisements

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.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
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.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Network Layer (Part IV). Overview A router is a type of internetworking device that passes data packets between networks based on Layer 3 addresses. A.
1 Dynamic Host Configuration Protocol (DHCP). 2 Dynamic Assignment of IP addresses Dynamic assignment of IP addresses is desirable for several reasons:
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
Bootstrap and Autoconfiguration (DHCP)
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
1 CS 4396 Computer Networks Lab Dynamic Host Configuration Protocol (DHCP)
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
Chapter 19 - Binding Protocol Addresses
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Networks and Protocols CE Week 3a. DHCP, ARP, DNS, TCP/UDP.
1 Network Address Translation (NAT) and Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about private networks and NAT.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
Multicasting  A message can be unicast, multicast, or broadcast. Let us clarify these terms as they relate to the Internet.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
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 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
Scaling the Network: Subnetting and Other Protocols
Computer Communication Networks
NAT – Network Address Translation
Address Resolution Protocol (ARP)
Scaling the Network Chapters 3-4 Part 2
IP: Addressing, ARP, Routing
Scaling the Network Chapters 3-4 Part 1
Chapter 4: Network Layer
Scaling the Network: The Internet Protocol
Chapter 8 ARP(Address Resolution Protocol)
ICMP ICMP – Internet Control Message Protocol
IP.
CS4470 Computer Networking Protocols
BOOTP and DHCP Objectives
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
NET302 Lecture#3 IPV4 Addressing Asma AlOsaimi.
Net 323: NETWORK Protocols
Chapter 9 Objectives Understand TCP/IP Protocol.
Net 431 D: ADVANCED COMPUTER NETWORKS
Address Resolution Protocol (ARP)
CS 457 – Lecture 10 Internetworking and IP
Chapter 18 Host Configuration : DHCP
Advanced Computer Networks
Internetworking Outline Best Effort Service Model
Wide Area Networks and Internet CT1403
CS 457 – Lecture 11 More IP Networking
Lecture#3 IPV4 Addressing Net 302- Asma AlOsaimi.
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
Scaling the Network: Subnetting and Other Protocols
Scaling the Network: The Internet Protocol
Ch 17 - Binding Protocol Addresses
Chapter 18 Host Configuration : DHCP
Dynamic Host Configuration Protocol (DHCP)
Lecture#3-IPV4 Addressing
Presentation transcript:

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

Today ARP, IMAP, and DHCP Protocols Subnetting

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

Address Resolution IP address is virtual Not understood by underlying physical networks IP packets need to be transmitted by the underlying physical network Address resolution Translating IP address to physical address Address Resolution Protocol (ARP)

ARP A router has to know where to deliver packets on the local network ARP is used to discover MAC addresses based on IP addresses arp who-has 192.168.10.1 tell node31.ceee.lab arp reply 192.168.10.1 is-at 00:60:08:ce:9d:3b arp who-has node31.ceee.lab tell 192.168.10.254 arp reply node31.ceee.lab is-at 00:02:3f:b4:cd:87

ARP Cache Each computer maintains a cache table Exchanges ARP messages IP address  hardware address mapping Only about computers on the same network Try out “/usr/sbin/arp –a” command Exchanges ARP messages To resolve IP addresses with unknown hardware addresses Encapsulated in Ethernet data frame

ARP Protocol When a node sends an IP packet To another node on the same physical network Look up destination address in the ARP table If not found Broadcast a request to the local network Whose IP address is this? What info should the request message contain?

ARP Response The target node responds to sender (unicast?) With its physical address Adds the requester into its ARP table (why?) On receiving the response Requester updates its table Other nodes upon receiving the request Refresh the requester entry if already there No action otherwise (why?) Table entries deleted if not refreshed for a while We can categorize the nodes in the local network into requester node, target node and all others. Lets see what each of them do in turn. The target node responds only to the sender with its hardware address. Why not broadcast the reply also? All others may not necessarily be interested in communicating with target node and a broadcast incurs processing overhead at every node in the network. The target node adds the requester’s IP and hardware addresses into its ARP cache (if not already there). Why? It is likely that target node would also send IP packets to the requester node later and so it makes sense to avoid an ARP request broadcast by the target node that time. The requester node on receiving the response, updates its ARP table. All other nodes, receive only the request not the reply. They check if the requester has an entry in their caches. If found, they refresh that entry. Otherwise, no action taken. Why not add an entry for the requester? We don’t want to grow the ARP table unnecessarily. Finally, a lifetime is associated with each entry in the ARP cache and an entry is deleted if it not refreshed within that time.

ARP Example ARP broadcast by W requesting hardware address of Y

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 22 October 2017 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 22 October 2017 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 22 October 2017 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

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 22 October 2017 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 Destination IP is BA.DB.EE.F2