© Janice Regan, CMPT 128, 2007-2012 0 CMPT 371 Data Communications and Networking Ethernet, ARP.

Slides:



Advertisements
Similar presentations
1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
Advertisements

1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
The ALOHA Protocol “Free for all”: whenever station has a frame to send, it does so. –Station listens for maximum RTT for an ACK. –If no ACK after a specified.
 As defined in RFC 826 ARP consists of the following messages ■ ARP Request ■ ARP Reply.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
MAC Addresses and ARP 32-bit IP address: –network-layer address –used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address:
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
Review on Networking Technologies Linda Wu (CMPT )
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.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
CMPT 471 Networking II Address Resolution IPv6 Neighbor Discovery 1© Janice Regan, 2012.
Protocol Headers Pre DA SA 0800h … version H L 6 TCP Header Data FCS
Mapping Internet Addresses to Physical Addresses (ARP)
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Multicast routing.
Ethernet, MAC podvrstva
Chapter 13 Wired LANs: Ethernet
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer Internet Protocol (IP) layer Introduction.
LAN Technologies MAC protocols used in LANs, to control access to the channel Token Rings: IEEE (IBM token ring), for computer room, or department.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
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.
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
Local Area Networks: Ethernet. IEEE Background Institution of Electrical and Electronic Engineering (IEEE) A professional non-profit organization Project.
1 Data Link Layer Lecture 22 Imran Ahmed University of Management & Technology.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Local Area Networks.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Ethernet Network Fundamentals – Chapter 9.
Chapter 1 - Local Area Network Technologies. How IP Datagrams are Encapsulated IP datagrams are found at the OSI Network layer IP datagrams are sent to.
IP Addresses Universal address regardless of layer 2 architecture Each address is that of an interface, not necessarily a host A host may have more than.
1 Network Administration Module 3 ARP/RARP. 2 Address Resolution The problem Physical networks use physical addresses, not IP addresses Need the physical.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Chapter 7 ARP and RARP.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
1 Kyung Hee University Chapter 8 ARP(Address Resolution Protocol)
Mapping IP Addresses to Hardware Addresses Chapter 5.
IEEE STANDARDS IEEE STANDARDS In 1985, the Computer Society of the IEEE started a project, called Project 802, to set standards to enable intercommunication.
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
Address Resolution Protocol (ARP). Internet and Data Link Layer Addresses Each host and router on a subnet needs a data link layer address to specify.
Wired LANs: Ethernet Shashank Srivastava Motilal Nehru national Institute Of Information Technology, Allahabad 4 Sep 2013.
+ Lecture#2: Ethernet Asma ALOsaimi. + Objectives In this chapter, you will learn to: Describe the operation of the Ethernet sublayers. Identify the major.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Introduction to Communication Lecture (10) 1. 2 Wired LANs: Ethernet IEEE Project 802 defines the LLC and MAC sublayers for all LANs including Ethernet.
ETHERNET Yash Vaidya. Introduction Ethernet is a family of computer networking technologies for local area networks (LANs). Ethernet was commercially.
1 Kyung Hee University Chapter 13 Wired LANs: Ethernet.
1 CMPT 471 Networking II Multicasting © Janice Regan,
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Introduction to Networks v6.0
Address Resolution Protocol (ARP)
Instructor Materials Chapter 5: Ethernet
Chapter 8 ARP(Address Resolution Protocol)
Objective: ARP.
MAC Addresses and ARP 32-bit IP address:
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
ARP: Address Resolution Protocol
Net 323: NETWORK Protocols
Address Resolution Protocol (ARP)
NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture.
8PM – Quickly Overview Final Project
Data Link Issues Relates to Lab 2.
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
Protocol layering and data
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
Ch 17 - Binding Protocol Addresses
Protocol layering and data
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Presentation transcript:

© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Ethernet, ARP

Janice Regan © Evolution of Ethernet: 1  Early 1980’s: “DIX” Ethernet.  1985: Ethernet 802.3: 10 Mbps  Uses 1 persistent CSMA/CD on a bus.  Truncated exponential backoff  1995: Fast Ethernet 802.3u: 100 Mbps  Uses CSMA/CD on twisted pair star with central hub  OR switching on twisted pair star with switching hub  Frame structure same as 802.3, including maximum frame size  Faster transmission time reduces transmission time of frame  For CSMA/CD frame transmission time ≈ round trip travel time, which is now shorter. Reduces maximum length of medium

Janice Regan © Evolution of Ethernet: 2  1998: Gigabit Ethernet 802.3z: 1 Gbps  Maintains same structure and procedures  New physical layers defined to support higher rate  Uses CSMA/CD or switching hubs  Increase minimum frame size to 512 bytes (from 64) to give long enough frame for CSMA/CD at 1 Gbps.  Frame padded if it is shorter (Carrier Extension) or multiple short frames are sent at once (Frame Bursting)  2002: Gigabit Ethernet 802.3ae: 10 Gbps  Maintains frame structure or supports SONET(optical)  Too fast for CSMA/CD, uses switching hubs only  Competes with ATM (developed for telephone system)  Originally optical fibre, now also works on twisted pair

Janice Regan © History of Ethernet growth

Janice Regan © MAC Frame  Preamble: 8 octets of alternating 1’s and 0’s used to establish synchronization. 7 octets of a final octet of Used to indicate the start of the frame and synchronize sender and receiver clocks (variation in hardware)  Destination address (DA): address of the station for which the frame is intended (MAC address of interface, 6 bytes)  Source address (SA): The address of the station that sent the frame (6 bytes, 48 bits) PREAMBLE Destination address Source Address Type CR C DATA IP DATAGRAM

Janice Regan © MAC Frame  Length/Type: Length of the LLC data field (<1500 octets), or the type of protocol (if not 802.3)  Pad: added to make sure the transmission time of the packet is at least as long as the propagation time through the network (required for efficient use of CSMA/CD). Minimum length is 46 bytes  FCS: 32 bit CRC PREAMBLE Destination address Source Address Type DATA IP DATAGRAM CR C

Janice Regan © Framing  Need to identify the beginning of a frame  Need to synchronize arriving packet and receivers clock  Preamble may be used. Look for a specific series of bits or bytes  When that series of bits or bytes is found interpret it a the beginning of a frame  A problem occurs if the series of bits occurs within the data  How do we tell the difference between the start of the frame and the data with the same pattern?  The answer is bit stuffing or byte stuffing. Modify the data so that it cannot be mistaken for the framing sequence but can be reconstructed in its original form at the destination

Janice Regan © HDLC: bit stuffing  (making flag pattern unique to the flag), after any sequence of five 1’s in the data insert a 0  Original Pattern  After Bit Stuffing  Problem with bit Stuffing on a channel with errors. Flag transmitte d received Bit inverted

Janice Regan © Scope of MAC addresses  MAC addresses are used within a particular LAN or LAN segment only  The internet interface (network card) on each machine has a MAC address  For Ethernet the address is associated with a unique Ethernet address (48 bit address) at the time of manufacture. Sometimes can be set after manufacture  Other types of LAN (using different MAC protocols) have their own types of addresses that may have different lengths from the Ethernet address

Janice Regan © Ethernet interface + addresses  Within an Ethernet the interface to each host is assigned an Ethernet address (usually when manufactured)  The Ethernet address belongs to the interface, not the host, if the interface is replaced the Ethernet address will change  48 bit Ethernet addresses can indicate one interface, a network broadcast address or a multicast address.  The interface to a host will extract from the network packets with the Ethernet address of the interface itself, the Ethernet network broadcast address of the network to which the interface is attached, or any Ethernet multicast addresses selected by the host.

Janice Regan © Sending an Ethernet frame  The IP packet arrives in the MAC layer  A MAC layer (Ethernet) header is added  This header includes the source and destination Ethernet address  The host knows its own Ethernet address so it can insert the source Ethernet address  The host must determine the Ethernet destination address corresponding to the next hop destination.  Determining the Ethernet destination address based on the next hop IP destination address is called address resolution or address translation

Janice Regan © Address Resolution / Translation  A router attached to the Ethernet will determine / translate IP addresses to the Ethernet unicast multicast or broadcast addresses, recognizable by the interfaces  For unicast determine Ethernet address using ARP (Address Resolution Protocol)  For multicast translate IP multicast address: the lowest 23 bits of the IP multicast address is placed in the special Ethernet address e (Not a unique mapping as IP has 28 significant bits)

Address Translation (4) © Janice Regan, E The first four bits of the IP address are fixed (they indicate a multicast address) The next 5 bits (dark blue) are not used in the Ethernet address Therefore there are 2 5 = 32 IP addresses with the same Ethernet broadcast address

Janice Regan © ARP and sending a packet  The IP packet arrives in the MAC layer  A MAC layer (Ethernet) header is added including the know source Ethernet address  The host needs the Ethernet destination address, use ARP to find that address  If ARP already knows the Ethernet destination address it can be inserted and the packet can be sent  If ARP does not already know the Ethernet destination address ARP must first find the Ethernet address

Janice Regan © Unicast Addresses: Data Link Layer  If the packet is coming from outside the LAN it will arrive through a router. Its source Ethernet address will be the router’s Ethernet address  If the packet is coming from another host on the LAN then the source Ethernet address will be that host’s  If we are delivering the packet on a LAN we will also need the hardware address (data link layer address, MAC address, Ethernet …), to use in the MAC header as the destination address. Use ARP to find it!

Entries in the ARP cache  Entries in the ARP cache are static or dynamic.  Static entries are entered by the administrator and stay in the cache until removed  Dynamic entries are added to the cache when the local host tries to send a packet to a destination host on the LAN  When a dynamic entry is added to the cache a timer is set to indicate the lifetime of that entry When the two hosts communicate, each host updates (reinitializes) the timer corresponding to the entry for the other host in its own ARP cache When the timer expires the entry is removed © Janice Regan,

Why use Dynamic Entries  MAC addresses of hosts may change over time  Replacement of a network card (interface) will result in a changed MAC address  Interface may no longer be reachable  Host may be turned off or disconnected  Interface may be disabled  Interface may fail  New hosts/interfaces may be added to the network  Cache should not grow forever as new hosts are added © Janice Regan,

Janice Regan © Using ARP  ARP (address resolution protocol) facilitates mapping of physical addresses to IP addresses for all hosts on the LAN (exceptions discussed later)  The host will keep a table called the ARP cache that will contain mappings from MAC to IP addresses  When the host wishes to send a packet it will look in the ARP cache for an entry corresponding to the desired destination host’s IP address.  If there is an entry it will send to the indicated MAC address  If no entry exists an new entry must be added to the ARP cache

Adding new entries -ARP cache  If no entry in the ARP cache corresponds to the IP address of the destination of the packet to be sent the packet will be queued or dropped and an ARP request will be sent  The ARP request is broadcast to the LAN  All hosts on the LAN receive the request  The host with IP address corresponding to the destination IP address of the packet Will respond with a ARP reply unicast to the source Will add/update the entry for the source to its ARP cache © Janice Regan,

Janice Regan © Sending a packet to an IP address From the TCP/IP Guide