NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture.

Slides:



Advertisements
Similar presentations
Computer Networks21-1 Chapter 21. Network Layer: Address Mapping, Error Reporting, and Multicasting 21.1 Address Mapping 21.2 ICMP 21.3 IGMP 21.4 ICMPv6.
Advertisements

21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
Helper Protocols Protocols that either make it easier for IP to do its job, or extend the capabilities of the network layer.
Special IP Addresses All 0’s – this computer on bootstrap Network.000s – id’s the network Network.111s – broadcast – broadcast 127.x loopback 6/9/2015ICSS420.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Subnetting.
Address Resolution Protocol (ARP). Mapping IP Address to Data-Link Address  How does a machine map an IP address to its Data- Link layer (hardware or.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
ARP Address Resolution Protocol Ref:
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Network Administration Module 3 ARP/RARP. 2 Address Resolution The problem Physical networks use physical addresses, not IP addresses Need the physical.
Chapter 7 ARP and RARP.
1 Network Layer Lecture 12 Imran Ahmed University of Management & Technology.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
1 Kyung Hee University Chapter 8 ARP(Address Resolution Protocol)
CSIT 220 (Blum)1 ARP Based on Computer Networks and Internets (Comer)
By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.
1 Connectivity with ARP and RARP. 2 There needs to be a mapping between the layer 2 and layer 3 addresses (i.e. IP to Ethernet). Mapping should be dynamic.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP ( and ARP ( RFC-826) and RARP ( RARP ( RFC-903) Understand the need for ARP.
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
ADDRESS MAPPING ADDRESS MAPPING The delivery of a packet to a host or a router requires two levels of addressing: logical and physical. We need to be able.
Address Resolution Protocol Yasir Jan 20 th March 2008 Future Internet.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Chapter 9 Introduction To Data-Link Layer 9.# 1
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Lecture 11 TODAY’s Lecture will cover:
IP: Addressing, ARP, Routing
Lecture 3 By Miss Irum Matloob.
Chapter 21 Address Mapping
Lecture 10/11 TODAY’s Agenda: TODAY’s Lecture will cover:
Chapter 8 ARP(Address Resolution Protocol)
6 Network Layer Part III Computer Networks Tutun Juhana
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
PART IV Network Layer.
BOOTP and DHCP Objectives
ADDRESSING Before you can send a message, you must know the destination address. It is extremely important to understand that each computer has several.
NET323 D: Network Protocols
Net 323: NETWORK Protocols
8PM – Quickly Overview Final Project
ARP: Address Resolution Protocol
NET323 D: Network Protocols
Ch 2: TCP/IP and OSI Dr. Clincy Lecture.
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
ARP: Address Resolution Protocol
Ch 2: TCP/IP and OSI Dr. Clincy Lecture.
Ch 2: TCP/IP and OSI Dr. Clincy Lecture.
Ch 17 - Binding Protocol Addresses
Presentation transcript:

NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture

NETWORK ADDRESS TRANSLATION (NAT) Network Address Translation (NAT) allows a site to use a set of private addresses for internal communication and a set of global Internet addresses for communication with another site. The site must have only one single connection to the global Internet through a router that runs NAT software. The routers only 2 address: (1) the global IP address and (2) one private address Dr. Clincy, CSIS4500

Address translation All packets leaving the network get assigned the global address as the source address (straightforward process) All packets coming into the network get their global destination address replaced with the appropriate private address (process is more involved) (explain this in the next ppt slide) Dr. Clincy, CSIS4500

Translation Packet: From Private Network to Internet Keep in mind that, with in the private network, the original source address is a private address representing the original source in the private network. Just before the packet leaves the router, the router makes note of the GLOBAL DESTINATION ADDRESS and cross-references it with the PRIVATE source address before changing the private source address to the GLOBAL SOURCE ADDRESS Packet: From Internet Back to Private Network When the packet returns, the SOURCE ADDRESS of the packet is the original DESTINATION ADDRESS. The router uses the new source address of the packet in determining the private destination address – recall the address being cross-referenced Dr. Clincy, CSIS4500

NAT Using Multiple Global Addresses NAT Router with One GLOBAL address can only allow One private host to access the same EXTERNAL host – with more global addresses, more private hosts can access the SAME external host A NAT Router with 8 global addresses can allow up to 8 private addresses (hosts) to access the SAME external host (simultaneously) – can create up to 8 separate connections To create a many-to-many relationship, a 5-column table (versus 2-column table) is needed in reducing uncertainty – by specifying port address and transport layer protocol Five-column translation table Dr. Clincy, CSIS4500

An ISP and NAT An ISP serving DIAL-UP customers can conserve addresses by using NAT. NOTE: think of dial-up customers as being apart of the ISP’s private network before gaining access to the Global Internet. The ISP could assign a private address to each customer and when the customer leaves the private network, a translation would occur . Let an ISP with 100,000 dial-up customers be granted only 1000 global addresses - the ISP could assign private addresses to each 100,000 customers and the ISP translate the 100,000 source addresses for the outgoing packets with the 1000 global addresses Dr. Clincy, CSIS4500

ARP & RARP (Ch 8) Dr. Clincy Lecture

Physical and Logical Addresses Recall: physical address is needed on a local perspective Recall: logical (or IP) address is needed on a global perspective Therefore, both addresses are needed Likewise, there is a need to map the logical address to it’s corresponding physical address (and vice versa) The mapping can be “static” or “dynamic” in nature Dr. Clincy Lecture

RECALL Going from network A physical address 10 to network P physical address 95. Can’t use the physical address ONLY because different networks The network layer address contains the uniqueness we need from source to sink across interconnected networks Dr. Clincy Lecture

Static Mapping Approach Static Mapping simply entails creating a table associating the logical address with the physical address The static-mapping table is stored in each machine on the network A machine knowing another machine’s IP address can simply look-up the other machine’s physical address What’s the problem with this ? The physical address could change (ie. (1) NIC could change, (2) some LANS change the physical addresses and (3) laptops (physical address changing physical network to physical network)) By having to update the static tables periodically, performance could suffer Dr. Clincy Lecture

Position of ARP and RARP in TCP/IP protocol suite For the dynamic approach: given 1 of the 2 addresses, the other address can be determined The ARP (Address Resolution Protocol) and RARP (Reverse Address Resolution Protocol) are used to find the other address Dr. Clincy Lecture

Dynamic Mapping: ARP and RARP ARP: maps the logical address to the physical address (given logical, find physical) RARP: maps the physical address to the logical address (given physical, find logical) ARP/RARP use unicast & broadcast physical addresses (from earlier lectures, recall the formats of the broadcast/unicast addresses) Dr. Clincy Lecture

ARP operation Keep in mind that the Tx doesn’t know the physical address of the Rx – and the IP address alone IS NOT enough info to tell the Tx where the RX is located – this is the problem ARP solves The Tx broadcast out an ARP query packet to all stations on the network – the packet contains the Tx’s physical/IP addresses and the IP address it’s seeking to find a physical address for. All stations on the network receives the query packet however, only the station with that IP responds The responding Rx sends back it’s physical address (in a unicast form) to the Tx Now the Tx can unicast the actual data to the Rx Why are we particular about when to unicast vs broadcast ? Dr. Clincy Lecture

ARP packet Hardware type (HTYPE) – 16 bits – type of network running ARP; each LAN Protocol type (PTYPE) – 16 bits – defines the protocol (ARP can be used with any higher level protocol) – example: IPv4 vs IPv6 Hardware Length (HLEN) – 8 bits – defines the length of the physical address (bytes) Protocol Length (PLEN) – 8 bits – defines the length of the logical address in bytes (ie. 4 for IPv4) Operation (OPER) – 16 bits – defines the type of packet (either ARP request or ARP reply) (Note: where do you think this info will be in, let’s say an Ethernet Frame ???) Dr. Clincy Lecture

Encapsulation of ARP packet The ARP packet is encapsulated into the data link frame we discussed 3 or 4 lectures ago In this case, the “type” would indicate an ARP packet is being sent in the “data” section of the data link frame Dr. Clincy Lecture

Four cases in using ARP The Tx is a host and the Rx is a host with in the same network – therefore, the IP address of the Rx must be mapped to a physical address The Tx is a host and the Rx is a host on a different network – therefore, the Tx uses the routing table to find the next hop and then the logical address of the router must be mapped to it’s physical address – this is done hop-to-hop The Tx is a router and the Rx is a host (router) on a different network – therefore, the Tx uses the routing table to find the next hop and then the logical address of the next router must be mapped to it’s physical address – this is done hop-to-hop. The Tx is a router and the Rx is a host with in the same network – therefore, the IP address of the Rx must be mapped to a physical address Dr. Clincy Lecture

Example A host with IP address 130.23.43.20 and physical address 0xB23455102210 has a packet to send to another host with IP address 130.23.43.25 and physical address 0xA46EF45983AB. The two hosts are on the same Ethernet network. Show the ARP request and reply packets encapsulated in Ethernet frames. Dr. Clincy Lecture

Solution The Figure below shows the ARP request and reply packets. Dr. Clincy Lecture

Proxy ARP Have a router acting on behalf of a set of hosts – Proxy ARP Router Proxy ARP router figures out the physical address of the host and then it send the address to the appropriate router (or host) Good for sub-netted cases This router handles these guys’ ARP requests These gals’ handle their own ARP requests Dr. Clincy Lecture

No Need to know about the ARP Package Skip this section Dr. Clincy Lecture

RARP For the ARP case, the IP address of the RX was known and the physical address of the Rx was unknown The Reverse Address Resolution Protocol is used when the physical address of the Tx is known and the IP address of the Tx is unknown. Recall: when sending an IP datagram across different networks, the IP address is needed. Dr. Clincy Lecture

RARP Operation The RARP operation occurs with in the local network Some Tx needs to know it’s own IP address That Tx broadcasts a RARP request to all host in the local network – the request contains the Tx’s physical address (the Tx gets the physical address from its NIC) Some Rx which contains all of the Logical-to-Physical address mappings, unicast back to the Tx the Tx’s IP address Dr. Clincy Lecture

RARP packet The format of the RARP packet is the same as the ARP packet however: Operation will be either a RARP Request or RARP Reply The sender’s hardware address field is padded until filled Dr. Clincy Lecture

Encapsulation of RARP packet Like the ARP Packet, the RARP Packet is embedded into the data link frame Notice the “type” (8035) Dr. Clincy Lecture

Dynamic Mapping: ARP and RARP ARP: maps the logical address to the physical address (given logical, find physical) RARP: maps the physical address to the logical address (given physical, find logical) ARP/RARP use unicast & broadcast physical addresses (from earlier lectures, recall the formats of the broadcast/unicast addresses) Dr. Clincy Lecture

Alternative Solutions to RARP When a diskless computer is booted, it needs more information in addition to its IP address. It needs to know its subnet mask, the IP address of a router, and the IP address of a name server. RARP cannot provide this extra information. New protocols have been developed to provide this information. In Chapter 18 we discuss two protocols, BOOTP and DHCP, that can be used instead of RARP. Dr. Clincy Lecture