© Jörg Liebeherr (modified by M. Veeraraghavan) 1 Point-to-Point Protocol Data Link Layer Loopback ARP and RARP.

Slides:



Advertisements
Similar presentations
1 Data Link Issues Relates to Lab 2. This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet,
Advertisements

1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
ARP: Address Resolution Protocol
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.
1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
The Internet Protocol.
1 Data Link Protocols Relates to Lab 2. This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet,
TCP/IP Illustrated Vol 1 ARP & RARP ARP & RARP ( 화 ) 이 병 희
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
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.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Semester 4 - Chapter 4 – PPP WAN connections are controlled by protocols In a LAN environment, in order to move data between any two nodes or routers two.
Overview of TCP/IP Protocols
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
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.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Ethernet, ARP.
Protocol Headers Pre DA SA 0800h … version H L 6 TCP Header Data FCS
Mapping Internet Addresses to Physical Addresses (ARP)
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
11-01-K.Steenhaut & J.Tiberghien - VUB 1 Telecommunications Concepts Chapter 4.2 IPv4 and Other Networks.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
ARP Address Resolution Protocol Ref:
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
IP Forwarding.
Chapter 21: IP Encapsulation, Fragmentation & Reassembly
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
Polytechnic University1 The internetworking solution of the Internet Prof. Malathi Veeraraghavan Elec. & Comp. Engg. Dept/CATT Polytechnic University
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
IP Routing Table (Linux) eth0 eth0 UG UG lo lo U eth0 eth0 U
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
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 Physical and Data Link Layer Computer Network System Sirak Kaewjamnong.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Ethernet switch Hosts Can talk using Ethernet addresses only.
1 Chapter 4: Internetworking (Introduction) Dr. Rocky K. C. Chang 16 March 2004.
Data Link Protocols Relates to Lab 2.
Address Resolution Protocol Yasir Jan 20 th March 2008 Future Internet.
RARP : Reverse Address Resolution Protocol
Data Link Issues Relates to Lab 2.
1 Address Resolution Protocol (ARP). 2 Overview 3 Need for Address Translation Note: –The Internet is based on IP addresses –Local area networks use.
Data Link Issues This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet, and the Point-to-Point.
Address Resolution Protocol (ARP)
IP: Addressing, ARP, Routing
Link Layer 5.1 Introduction and services
Address Resolution Protocol (ARP)
Scaling the Network: The Internet Protocol
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
TCP/IP Transmission Control Protocol / Internet Protocol
Data Link Issues This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet, and the Point-to-Point.
Address Resolution Protocol (ARP)
Hubs Hubs are essentially physical-layer repeaters:
Net 323: NETWORK Protocols
Address Resolution Protocol (ARP)
ARP: Address Resolution Protocol
Guide to TCP/IP, Third Edition
Address Resolution Protocol (ARP)
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
Address Resolution Protocol (ARP)
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
Instructor Mazhar Hussain
ARP: Address Resolution Protocol
Scaling the Network: The Internet Protocol
Ch 17 - Binding Protocol Addresses
Presentation transcript:

© Jörg Liebeherr (modified by M. Veeraraghavan) 1 Point-to-Point Protocol Data Link Layer Loopback ARP and RARP

© Jörg Liebeherr (modified by M. Veeraraghavan) 2 We are still talking about the Data Link Layer. Last Lecture we discussed protocols in broadcast LAN networks. Orientation

© Jörg Liebeherr (modified by M. Veeraraghavan) 3 Orientation 2 We learned that in broadcast LANs, the Link Layer is divided in two sublayers: –Media Access Control (MAC) –Logical Link Control (LLC) We discussed the IEEE 802 family of LAN standards: 802.3CSMA/CD (Ethernet) 802.4Token Bus 802.5Token Ring

© Jörg Liebeherr (modified by M. Veeraraghavan) 4 PPP - Point-to-Point Protocol The PPP protocol is a data link protocol for transmission on a serial link. Currently, most ISPs offer Internet access to dial-in users over PPP. The main purpose of PPP is encapsulation of IP datagrams, but it can be used for other network protocols as well. PPP was proposed in 1992; a predecessor of PPP was the Serial Link IP (SLIP) protocol.

© Jörg Liebeherr (modified by M. Veeraraghavan) 5 PPP - IP encapsulation PPP suports an asynchronous link (8 data bits/no parity) or a bit-oriented synchronous link. The frame format of PPP is similar to the LLC frame format: 296 if low delay

© Jörg Liebeherr (modified by M. Veeraraghavan) 6 PPP - Escape sequences If a data byte is 0x7e, how does the receiver know whether this is the end of a PPP frame or if it is a data byte? –PPP on synchronous links Hardware bit stuffing is used to handle this –PPP on asynchronous links Escape sequences are used –The byte 0x7e is transmitted as the 2-byte sequence 0x7d, 0x5e –The byte 0x7d is transmitted as the 2-byte sequence 0x7d, 0x5d

© Jörg Liebeherr (modified by M. Veeraraghavan) 7 PPP - Link Control Protocol The link control protocol (LCP) of PP is responsible for establishing, configuring, and negotiating the data-link connection. LCP is specified in RFC 1331.

© Jörg Liebeherr (modified by M. Veeraraghavan) 8 PPP Network Control Protocol For each network layer protocol supported by PPP, there is one network control protocol (NCP). The NCP for IP is specified in RFC 1332.

© Jörg Liebeherr (modified by M. Veeraraghavan) 9 Loopback Interface Most TCP implementations have a loopback interface with IP address and name localhost. The localhost behaves as a separate data link interface. A packet that is sent to the loopback interface moves down the protocol stack and is returned back by the driver software for the localhost “device”. Used for debugging, but also for multicasting and broad- casting.

© Jörg Liebeherr (modified by M. Veeraraghavan) 10 Processing of IP packets by network drivers

© Jörg Liebeherr (modified by M. Veeraraghavan) 11 Maximum Transmission Unit The frame size limit of the data link protocol translates itself to a limit on the size of the IP datagram that can be encapsulated. This limit is called maximum transmission unit (MTU). What if the size of an IP datagram exceeds the MTU? IP datagram is fragmented into smaller units. What if the route contains networks with different MTUs? MTUs for various data link layers: Ethernet: 1500FDDI: :1492ATM AAL5: : 4464PPP: 296

© Jörg Liebeherr (modified by M. Veeraraghavan) 12 ARP and RARP The IP protocol uses 32-bit addresses. Data link protocols (Ethernet, FDDI, ATM) may have different (MAC) addresses. The ARP and RARP protocols perform the translation between IP addresses and MAC layer addresses. We will discuss ARP for broadcast LANs, particularly Ethernet LANs.

© Jörg Liebeherr (modified by M. Veeraraghavan) 13 Address Translation (1) HOST-A wants to send an IP datagram to HOST-B. (2) HOST-A broadcasts an ARP request to all stations on the network: “What is the hardware address of HOST-B?” (3) HOST-B responds with an ARP Reply which contains its hardware address. (4) HOST-A transmits the IP datagram to HOST-B.

© Jörg Liebeherr (modified by M. Veeraraghavan) 14 ARP Packet Format Ethernet destination: ff:ff:ff:ff:ff:ff is broadcast address Ethernet Source address: That of ARP request sending host frame type:“0x0806” for ARP request/reply hw type:“1” for Ethernet MAC addresses prot type:“0x0800” for IP addresses hw size, prot size: size of the respective address in bytes. Op field:1 = ARP request2 = ARP reply 3 = RARP request4 = RARP reply Interesting: Both your textbook and RFC 826 do not mention a CRC field at the end of an ARP frame Ethernet Dest Ethernet Source frame type hw type prot type prot size hw size op fld. target Eth. addr target IP addr sender Eth. addr sender IP addr Ethernet header 28 byte ARP request/reply

© Jörg Liebeherr (modified by M. Veeraraghavan) 15 ARP reply The ARP reply is sent by the node whose IP address matches the address in the target IP address field of the ARP request –It fills its MAC address into the target Ethernet address field of the ARP request –It then swaps the two sender addresses (Ethernet and IP addresses) with the two target addresses, sets the op field to 2, and sends the ARP reply –The ARP reply is sent back to the source host only All other nodes receiving the broadcast ARP ignore the request (since their IP addresses do not match the address that is being resolved)

© Jörg Liebeherr (modified by M. Veeraraghavan) 16 Example with tcpdump 10:58: :0:86:7:4d:a9 Broadcast arp 60: arp who-has aida.poly.edu tell rigoletto.poly.edu 10:58: :80:c6:ff:9:99 0:0:86:7:4d:a9 arp 60: arp reply aida.poly.edu is-at 0:80:c6:ff:9:99 10:58: :0:86:7:4d:a9 0:80:c6:ff:9:99 ip 60: rigoletto.poly.edu.1042 > aida.poly.edu.telnet: S : (0) win 8192 (DF)

© Jörg Liebeherr (modified by M. Veeraraghavan) 17 ARP Cache Clearly, sending an ARP request/reply for each IP datagram is inefficient. Each station maintains a cache (ARP Cache) of current entries. The entries expire after 20 minutes. Everytime the ARP cache is consulted for a MAC address, the expiry timer is reset in common implementations. ARP cache of aida.poly.edu : dibner-gw.poly.edu ( ) at 0:0:c:1:a2:e ebbets.poly.edu ( ) at 8:0:20:7a:da:44 mng.poly.edu ( ) at 0:60:8:3:93:41 aida.poly.edu ( ) at 0:80:c6:ff:9:99 permanent mare.poly.edu ( ) at (incomplete)

© Jörg Liebeherr (modified by M. Veeraraghavan) 18 Things to know about ARP What happens if an ARP Request is made for a non-existing host? Several ARP requests are made with increasing time intervals between requests. Eventually, ARP gives up. What if a host sends an ARP request for its own IP address? The other machines respond (gratuitous ARP) as if it was a normal ARP request. This is useful for detecting if an IP address has already been assigned. Routers can respond to an ARP request for a host that is on a different subnet (Proxy ARP)

© Jörg Liebeherr (modified by M. Veeraraghavan) 19 Proxy ARP Router answers an ARP request on one of its networks for a host on another of its networks netb answers as a “proxy” for sun.

© Jörg Liebeherr (modified by M. Veeraraghavan) 20 RARP - Reverse ARP Reverse ARP (RARP) performs a translation from a physical (MAC) address into a logical (IP) address. When does one need RARP? Hosts without secondary storage (e.g., X- terminals) do not know their IP address when they are booted. Packet format is the same as in ARP: –frame type:“0x0806” for ARP request/reply –Op field:3 = RARP request 4 = RARP reply

© Jörg Liebeherr (modified by M. Veeraraghavan) 21 Example from Textbook A diskless host with name “sun” boots up: :0:20:3:f6:42 ff:ff:ff:ff:ff:ffrarp 60: rarp who-is 8:0:20:3:f6:42 tell 8:0:20:3:f6:4 This is the broadcast RARP request :0:c0:6f:2d:40 8:0:20:3:f6:42 rarp 42: rarp reply 8:0:20:3:f6:42 at sun This is the response which contains the complete IP address :0:20:3:f6:42 0:0:c0:6f:2d:40 ip 42: sun > bsdi.tftp: 23 RRQ “8CFC0D21.SUN4C” Request to setup an TFTP read-request for bootstrapping.

© Jörg Liebeherr (modified by M. Veeraraghavan) 22 Hub vs. switch An ethernet hub simply broadcasts frames received on any one port to all other ports An ethernet switch learns (knows) the MAC addresses of its hosts on all its ports and sends a frame received on one port to only the link connected to the destination of the frame –Multiple hosts can send frames into the ethernet switch at the same time; if two packets arriving simultaneously at a switch are destined to the same output port of the switch, one will be buffered while the other is transmitted