Ethernet switch Hosts Can talk using Ethernet addresses only.

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

IP Forwarding Relates to Lab 3.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
 As defined in RFC 826 ARP consists of the following messages ■ ARP Request ■ ARP Reply.
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
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Protocol (IP): Addressing and Forwarding Shivkumar Kalyanaraman Rensselaer Polytechnic.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
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.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
© Jörg Liebeherr ECE 1545 Forwarding in IP Networks.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Everything. MACIP End-host IP: MAC: 11:11:11:11:11 gateway IP: MAC: 22:22:22:22:22 Google server IP: MACIP MACInterfaceMACInterface.
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.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
DHCP: Dynamic Host Configuration Protocol
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
COMS W COMS W Lecture 8. NAT, DHCP & Firewalls.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
Cisco 1 - Networking Basics Perrine. J Page 19/17/2015 Chapter 9 What transport layer protocol does TFTP use? 1.TCP 2.IP 3.UDP 4.CFTP.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
1 Internet Protocol. 2 Connectionless Network Layers Destination, source, hop count Maybe other stuff –fragmentation –options (e.g., source routing) –error.
IP Forwarding.
Copyright © Lopamudra Roychoudhuri
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Sublayers Under the Network Layer: BOOTP & DHCP
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
Delivery, Forwarding, and Routing of IP Packets
IP Routing Table (Linux) eth0 eth0 UG UG lo lo U eth0 eth0 U
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
TCP/IP Protocol Suite DHCP The Dynamic Host Configuration Protocol (DHCP) provides static and dynamic address allocation that can be manual or automatic.
1 Network Address Translation (NAT) and Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about private networks and NAT.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
CS470 Computer Networking Protocols
Chapter 38 Initialization & Configuration. Bootstrapping occurs during boot up to obtain boot program which may then load operating system may use network.
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.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Address Resolution Protocol Yasir Jan 20 th March 2008 Future Internet.
Data Communications (SEE5523) - Chap.8a1/24 SET5534 Data Communication and Switching System Chapter 8 IP Addressing Alias Mohd FKE, UTM
End-host IP: MAC: 11:11:11:11:11 gateway IP: MAC: 22:22:22:22:22 Google server IP: interne t interface DNS server IP:
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
1 Layer 3: Protocols Honolulu Community College Cisco Academy Training Center Semester 1 Version
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 5 Network and Transport Layers
IP: Addressing, ARP, Routing
MAC Addresses and ARP 32-bit IP address:
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Chapter 6 – Routing.
ARP: Address Resolution Protocol
BOOTP and DHCP Objectives
Chapter 5 Network and Transport Layers
Net 323: NETWORK Protocols
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Unit 2: IP addressing (Contd.). Delivery and routing of packets
IP Forwarding Relates to Lab 3.
Wide Area Networks and Internet CT1403
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Figure 6.11 Configuration for Example 4
Chapter 5 Data Link Layer – Hub, Switch
Presentation transcript:

Ethernet switch Hosts Can talk using Ethernet addresses only

Ethernet switch Hosts Can talk using Ethernet addresses only Ethernet switch Hosts

Ethernet switch Hosts Ethernet switch Hosts Router Assign IP addresses A B C A  B, want communication using Ethernet addresses only A  C, via router So, use router interface’s Ethernet address

Problem How to tell A that B is reachable using the local Ethernet, while C is not? How to tell A that B is reachable using the local Ethernet, while C is not? Interface subnet mask (also just “mask”) Interface subnet mask (also just “mask”) Assigned at configuration Assigned at configuration

Using the mask A does a bit-wise AND of its interface IP address and mask A does a bit-wise AND of its interface IP address and mask Result: identification of own network [say x] Result: identification of own network [say x] For any host H with dest IP addr DA For any host H with dest IP addr DA –DA & mask = y [say] IF x = y, A thinks H is on its own network IF x = y, A thinks H is on its own network

Using the mask IF x = y, A thinks H is directly connected IF x = y, A thinks H is directly connected If x not equal to y If x not equal to y –A talks to H via router –A thinks H is indirectly connected

Implications If A thinks H is directly connected to it If A thinks H is directly connected to it –then A attempts to find Ethernet address of H If A thinks H is indirectly connected to it If A thinks H is indirectly connected to it –then A attempts to find Ethernet address of router interface

Observe… In either case, actual packet transfer uses link layer frames In either case, actual packet transfer uses link layer frames Directly connected  Link layer dest addr = link layer address of host Directly connected  Link layer dest addr = link layer address of host Indirectly connected  Link layer dest addr = link layer address of router Indirectly connected  Link layer dest addr = link layer address of router

Re-iteration Directly or indirectly connected Directly or indirectly connected –From a host’s viewpoint IP level (logical) notion IP level (logical) notion Must consider Must consider –Host interface address –Host interface mask –Destination machine’s interface address

IP addr to link addr How to find link layer addresses from IP addresses? How to find link layer addresses from IP addresses? Address Resolution Protocol (ARP) Address Resolution Protocol (ARP) Query: “Who has ”? Query: “Who has ”? Queries are broadcast Queries are broadcast Machine with IP address sends an ARP reply, supplying Ethernet address Machine with IP address sends an ARP reply, supplying Ethernet address

Directly connected host X Directly connected destination X – ARP for X Directly connected destination X – ARP for X Indirectly connected destination Y – ARP for R Indirectly connected destination Y – ARP for R Direct and Indirect Routes IP address of XLayer 2 address of XDataIP address of YLayer 2 address of RData

/ / / / / / 24 Single physical network but 2 logical subnets

Ethernet PPP ABCD Mask = or / 27 B wants to send pkt to A; directly connected? B wants to send pkt to D; directly connected?

Variable length subnet masks B Subnet mask: Subnet mask: On different interfaces, subnet masks of different length

Special IP addresses Diskless X terminal Server Want to get boot file from a server

Special IP addresses The diskless ws downloads the bootstrap file name from a server, and then the file The diskless ws downloads the bootstrap file name from a server, and then the file No IP address, no subnet mask available initially No IP address, no subnet mask available initially –Perhaps no fixed IP address for this machine –To be obtained dynamically But the IP network must be used But the IP network must be used

Special IP addresses Protocols: “BOOTP” and “TFTP” Protocols: “BOOTP” and “TFTP” BOOTP  The name of the bootfile BOOTP  The name of the bootfile TFTP  To transfer the file TFTP  To transfer the file BOOTP UDP IP Eth TFTP UDP IP Eth

Special IP addresses Special IP addresses What should be the source and destination IP addresses in the BOOTP andTFTP requests? What should be the source and destination IP addresses in the BOOTP andTFTP requests? –Valid source address; never a dst address –Used when the sender does not know its addr

Special IP addresses How does a server send its reply to the host that sent the query? How does a server send its reply to the host that sent the query? Uses link layer (e.g., Ethernet) address Uses link layer (e.g., Ethernet) address The query arrived in an Eth frame The query arrived in an Eth frame Host’s Eth address: in Src Eth address of frame Host’s Eth address: in Src Eth address of frame

Other special IP addresses –Valid destination address: “limited broadcast” –Never a source address –Never forwarded by a router beyond the physical network in which the router is present

Other special IP addresses 127.x.y.z 127.x.y.z –Valid source and destination address –Loopback interface address

More special IP addresses Net-directed broadcast address Net-directed broadcast address –Netid and hostid –Set the hostid bits to 1 Subnet-directed broadcast address Subnet-directed broadcast address –Netid, subnetid and hostid –Set the hostid bits to 1

Routing Table Each machine, whether end-host or router, has a routing table in the kernel Each machine, whether end-host or router, has a routing table in the kernel This table is consulted every time a packet has to be sent out This table is consulted every time a packet has to be sent out The table provides information on the next-hop IP address, the outgoing interface etc The table provides information on the next-hop IP address, the outgoing interface etc

Routing Table Typical entries Typical entries –Destination network (netid or net-subnetid) or host  Note: This “destination” is the name of a column in r. table, not in packet –Routing table mask –Next-hop IP address (often denoted as “gateway”)

Routing Table –Outgoing interface –Flags to indicate whether  destination address (in table) is a network/host address  destination (in table) is directly connected

Routing Table DestMaskG/wFlagsIntfc S.A.D.A. Different things

Routing Table: Basic Operation Pick up the packet’s destination address Pick up the packet’s destination address Apply the routing table mask Apply the routing table mask The network-prefix of the packet’s destination address is extracted The network-prefix of the packet’s destination address is extracted Now match this extracted id with entries in the column named “Destination” Now match this extracted id with entries in the column named “Destination”

Routing table (contd) If match is seen, obtain the next hop address from the “Gateway” column If match is seen, obtain the next hop address from the “Gateway” column Flags: Flags: –H present  “Destination” column represents a host –H absent  “Destination” column represents a collection of hosts

Routing table (contd) Flags (contd) Flags (contd) –G present  Addresses aggregated in “Destination” column indirectly connected –“G” suggests “gateway” –G absent  Addresses aggregated in “Destination” column directly connected

Routing Table Destination address type: H flag or no H flag N/wHost Connection type: G flag or no G flag Direct Indirect

/ x / x / x / x / 19 Router /19 X What will the routing table of X look like?

Routing Table / 19 = / 19 = x / 19 = x / 19 = x / 19 = x / 19 = All addresses share a common 19 bit prefix: All addresses share a common 19 bit prefix: – A single entry should be used to communicate with all hosts on the LAN A single entry should be used to communicate with all hosts on the LAN