COMPUTER NETWORKS CS610 Lecture-27 Hammad Khalid Khan.

Slides:



Advertisements
Similar presentations
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
Advertisements

Chapter 18. IP: Internet Protocol Addresses
1 IP: Internet Protocol Addresses. 2 Internet Protocol (IP) Only protocol at Layer 3 Fundamental in suite Defines –Internet addressing –Internet packet.
IP: The Internet Protocol
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CSCI 4550/8556 Computer Networks Comer, Chapter 19: Binding Protocol Addresses (ARP)
CS335 Networking & Network Administration Tuesday, May 11, 2010.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Subnetting.
COS 420 Day 3.
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
CS335 Networking & Network Administration Tuesday April 27, 2010.
1 CSCI 233 Internet Protocols Class 3 Dave Roberts.
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
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.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
1 Chapter Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution.
CEN Network Fundamentals Chapter 19 Binding Protocol Addresses (ARP) To insert your company logo on this slide From the Insert Menu Select “Picture”
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How IP Address Protocols Work INTRO v2.0—4-1.
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Chapter 15 - Internetworking Motivation Universal service Internetworking Routers Internet architecture Routers in an organization A virtual network A.
Copyright © Lopamudra Roychoudhuri
Part 3: Internetworking Internet architecture, addressing, encapsulation, reliable transport and the TCP/IP protocol suite.
Chapter 18 IP: Internet Protocol Addresses
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 19 - Binding Protocol Addresses
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Java EE Programming Internetworking. 2 Motivation for Internetworking LAN technologies provide high speed communication across short distances WAN technologies.
Chapter 19 Binding Protocol Addresses (ARP) A frame transmitted across a physical network must contain the hardware address of the destination. Before.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Internet Application Theory & Applications. Internet Application - Ibrahim Otieno SCI/ICT Building 2 nd Floor Rm.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Internet Protocol: Routing IP Datagrams Chapter 8.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
Mapping IP Addresses to Hardware Addresses Chapter 5.
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 4. Internetworking.
1 Binding Protocol Addresses (ARP ). 2 Resolving Addresses Hardware only recognizes MAC addresses IP only uses IP addresses Consequence: software needed.
COMPUTER NETWORKS CS610 Lecture-26 Hammad Khalid Khan.
COMPUTER NETWORKS CS610 Lecture-22 Hammad Khalid Khan.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
COMPUTER NETWORKS CS610 Lecture-25 Hammad Khalid Khan.
1 Computer Networks Chapter 5. Network layer The network layer is concerned with getting packets from the source all the way to the destination. Getting.
The Concept of Universal Service
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 5 Network and Transport Layers
IP: Addressing, ARP, Routing
Network Layer: IP Addressing
COMPUTER NETWORKS CS610 Lecture-28 Hammad Khalid Khan.
CS4470 Computer Networking Protocols
Chapter 8 ARP(Address Resolution Protocol)
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Internetworking & Address Resolution
Net 323: NETWORK Protocols
Internet Protocol INTERNET PROTOCOL.
Delivery and Forwarding of
COMPUTER NETWORKS CS610 Lecture-35 Hammad Khalid Khan.
Ch 17 - Binding Protocol Addresses
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Figure 6.11 Configuration for Example 4
Delivery, Forwarding, and Routing of IP Packets
Figure 6.6 Default routing
Layering and the TCP/IP protocol Suite
Presentation transcript:

COMPUTER NETWORKS CS610 Lecture-27 Hammad Khalid Khan

Review Lecture 26 Subnet and Classless Addressing Subnet/Address Mask CIDR Notation Special IP Addresses

Binding Protocol Addresses Chapter 19 Binding Protocol Addresses

Protocol Addresses and Packet Delivery Protocol address are abstractions provided by software. Physical network hardware does not know how to locate a computer from it protocol address. The protocol address of the next hop must be translated to an equivalent hardware address before a packet can be sent.

Protocol Addresses and Packet Delivery

Address Resolution Mapping between a protocol address and a hardware address is called Address Resolution. A host or router uses address resolution when it needs to send a packet to another computer on the same physical network. A computer never resolves the address of a computer that attaches to a remote network.

Address Resolution

Address Resolution A resolves protocol address for B for protocol messages from an application on A sent to an application on B. A does not resolve a protocol address for F. Through the internet layer, A delivers to F by routing through R1 and R2. A resolves R1 hardware address. Network layer on A passes packet containing destination protocol address F for delivery to R1.

Address Resolution Techniques Address resolution algorithms can be grouped into three basic categories: Table lookup Closed-form computation Message Exchange

Address Resolution Techniques Table lookup Binding or mapping are stored in a table in memory, which the software searches when it needs to resolve an address. Closed-form computation The protocol address assigned to a computer is chosen carefully so that computer’s hardware can be computed from the protocol address using basic Boolean and arithmetic operations.

Address Resolution Techniques Message Exchange Computers exchange messages across a network to resolve an address. One computer sends a message that requests an address binding (translation) and another computer sends a reply that contains the requested information.

Address Resolution with Table Lookup Resolution requires a data structure that contains information about address binding. A separate address binding table is used for each physical network. The chief advantage of the table look up approach is generality, a table can store the address bindings for an arbitrary set of computers.

Address Resolution with Table Lookup For less than a dozen hosts, a sequential search can suffice. For large networks the sequential approach uses too much CPU time.

Address Resolution with Table Lookup

Address Resolution with Table Lookup Two standard implementations to improve computational efficiency: Hashing Direct Indexing

Address Resolution with Table Lookup Hashing Hashing is the transformation of a string of characters into a usually shorter fixed-length value or a key that represents the original string. Hashing is used to index and retrieve items in a database because it is faster to find the item using the shorter hashed key than to find it using the original value. It is also used in many encryption algorithms.

Address Resolution with Table Lookup Direct Indexing Less generally known technique. Possible only in cases where protocols addresses are assigned from a compact range.

Address Resolution with Table Lookup

Address Resolution with Closed-Form Computation For networks use configurable addressing it is possible to choose an address that make closed-form address resolution possible. A resolver is used to compute a mathematical function that maps an IP address to a hardware address.

Address Resolution with Closed-Form Computation When a computer connects to a network that uses configurable address, the local network administrator must choose a hardware address as well as an IP address. The two values can be chosen to make address resolution trivial.

Address Resolution with Closed-Form Computation Example:- Suppose a configurable network number: 220.123.5.0 / 24 The IP address of first host = 220.123.5.1 Hardware Address = 1 The IP address of second host = 220.123.5.2 Hardware Address = 2

Address Resolution with Closed-Form Computation Hardware Address = 101 The IP address of router = 220.123.5.101 A single Boolean ‘and’ operation can compute the computer’s hardware address i.e. Hardware address = ip_address & 0xff

Address Resolution with Message Exchange An alternative to local computations is a distributed approach. A computer that needs to resolve an address, sends a message across a network and receives a reply. The message carries a request that species the protocol address, and reply carries the corresponding hardware address.

Address Resolution with Message Exchange Two possible designs: Centralized Distributed

Address Resolution with Message Exchange CENTRALIZED A network includes one or more servers that are assigned the task of answering address resolution requests. Advantage: Resolution easier to configure, manage and control.

Address Resolution with Message Exchange DISTRIBUTED Each computer on the network participates in address resolution by agreeing to answer resolution request for its address. Advantage: Address resolution servers can become a bottleneck and reduce cost.

Address Resolution Summary

Address Resolution Protocol TCP/IP can use any of the three address resolution method depending on the addressing scheme used by the underlying hardware. To guarantee that all computers agree on the exact format and meaning of message used to resolve addresses, the TCP/IP protocol suite includes an Address Resolution Protocol (ARP).

Address Resolution Protocol The ARP standard defines two basic message types: Request Contains an IP address and requests the corresponding hardware address. Response Contains both the IP address sent in the request and the hardware address.

Summary Address Resolution Address Resolution with Table Lookup Address Resolution with Closed-Form Computation Address Resolution with Message Exchange