Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Advertisements

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.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
Precept 3 Host Configuration 1 Peng Sun. What TCP conn. running? Commands netstat [-n] [-p] [-c] (Linux) lsof -i -P (Mac) ss (newer version of netstat)
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
Internet Control Message Protocol (ICMP)
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 5 The Network Layer.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Subnetting.
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
1 ICMP – Using Ping and Trace CCNA Semester
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Helping IP with ARP, DHCP (§5.6.4)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
DHCP: Dynamic Host Configuration Protocol
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
9/11/2015Home Networking1 Bob.test Have Road Runner Unhappy about reports of constant probes of machines Policy decision –I want to prevent unauthorized.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
© MMII JW RyderCS 428 Computer Networking1 Private Network Interconnection  VPN - Virtual Private Networks  NAT - Network Address Translation  Describe.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
1 Chapter 4: Network Layer r 4.4 IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP m IPv6 r 4.5 Routing algorithms m Hierarchical routing.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Chapter 23: ARP, ICMP, DHCP CS332, IS333 Spring 2014.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
1 Network Address Translation (NAT) and Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about private networks and NAT.
1 Requirements for Internet Routers (Gateways) and Hosts Relates to Lab 3. (Supplement) Covers the compliance requirements of Internet routers and hosts.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
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.
NETWORKING (2) Dr. Andy Wu BCIS 4630 Fundamentals of IT Security.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
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.
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:
Network Layer IP Address.
Chapter 23: ARP, ICMP, DHCP CS332 Spring 2016 Victor Norman.
Scaling the Network: Subnetting and Protocols
Scaling the Network: Subnetting and Other Protocols
Scaling the Network Chapters 3-4 Part 2
IP: Addressing, ARP, Routing
Chapter 4: Network Layer
Chapter 21 Address Mapping
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Advanced Computer Networks
DHCP and NAT.
Scaling the Network: Subnetting and Other Protocols
CS4470 Computer Networking Protocols
Presentation transcript:

Support Protocols and Technologies

Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping IP to MAC addresses (ARP) What happens when something goes wrong during forwarding? – Need to be able to find the problem (ICMP) NAT (Network Address Translation): A widely used technology to get Internet connection for multiple devices at the edges of the network, e.g., homes

Getting IP Address Problem: – A node wakes up for the first time… – What is its IP address? What’s the IP address of its router? Etc. – At least MAC address is on NIC

Getting IP Address Old days – manual configuration Problems?

Dynamic Host Configuration Protocol (DHCP) With DHCP, you don’t need the IP of the gateway the subnet mask DNS server contact IT office to get an IP Your computer needs a DHCP client to send out DHCP request. A DHCP server in a network listens to DHCP requests and responses a request with an IP assignment.

DHCP Assign IP addresses automatically – The concept of plug-and-play networking DHCP addresses are leased for a finite period. – A host can renew the address. Normally, DHCP approves each lease extension However, a server may be configured to deny lease extension for administrative or technical reasons ipconfig /all

DHCP Protocol Stack DHCP is a client-server application – Uses UDP ports 67,68 DHCP UDP IP Ethernet

DHCP Addressing Bootstrap issue: – How does node send a IP message to DHCP server before it is configured? Answer: – Node sends broadcast messages that delivered to all nodes on the network IP broadcast address: MAC broadcast address: FF:FF:FF:FF:FF:FF

A DHCP Process

Step 1: DHCPDiscovery (I need an IP.) – Source IP: – Destination IP: Step 2: DHCPOffer (Here is an IP, , and other related information. Do you want it?) – Source IP: – Destination IP: Step 3: DHCPRequest (I will take it!) – Source IP: – Destination: Step 4: DHCPAcknowledgement (You can take it.) – Source IP: – Destination IP:

More on DHCP After-class reading: Section – – DHCP Message format – Indirect DHCP Server – IPv6 Autoconfiguration Lab exercise 4: DHCP

Sending an IP packet Problem: – A node needs MAC addresses to send a frame over the local link – How does it get the destination MAC address from a destination IP address?

ARP (Address Resolution Protocol) Node uses to map a local IP address to its Link layer (MAC) address Dest. MAC Source MAC I like you Dest. IP Source IP Layer 3 header Layer 3 payloadLayer 2 header Target From NIC From DHCP From ARP

ARP Protocol Stack ARP sits right on top of link layer – No servers, just asks node with target IP to identify itself – Uses broadcast to reach all nodes Broadcast MAC address: FF:FF:FF:FF:FF:FF ARP Ethernet

“I'm looking for the MAC address of a computer that has IP address ” “I'm the computer with IP address , and my MAC address is 11:22:33:44:55:66” ARP

Address resolution is always restricted to a single network at a time. Example: – X resolves the address of R 1 – R 1 resolves the address of R 2 – R 2 resolves the address of Y

More on ARP After-class reading: Section 23.5 – 23.7 – APR message format and encapsulation – ARP caching and message processing Lab exercise 5: Wireshark ARP

Internet Control Message Protocol (ICMP) ICMP is a companion protocol to IP – They are implemented together – Provides error report and testing – Sits on top of IP

ICMP Errors When router encounters an error while forwarding: – It sends an ICMP error report back to the IP source address – It discards to problematic packet; host needs to rectify

Example ICMP Messages Ping: Host sends Echo Request, and destination responds with an Echo Reply

Error Type 11: Time Exceeded IP header contains TTL (Time to live) field – Decremented every router hop, with ICMP error if it hits zero – Protects against forwarding loops

Traceroute Traceroute repurposes TTL and ICMP functionality – Sends probe packets increasing TTL starting from 1 – Receives an Time Exceeded error message from each intermediate router, and an Echo Reply from the ultimate destination 3 probes Local host Remote host 1 hop 2 hop 3 hop N-1 hop N hop

Network Address Translation (NAT) Motivated by IP address scarcity A mechanism to allow multiple computers at a site to share a single, globally valid IP address Transparent communication – These computers are perceived as "one" computer by other computers. – These computers can access the Internet as if they have their own IP address.

24 How NAT works (1) NAT uses two types of addresses – The NAT device itself is assigned a single globally-valid IP address – Hotel hotline – Each computer at the site is assigned a unique private address E.g., , ,… / / /16 Blocks of private addresses designed by IETF

25 How NAT works (2) NAT keeps an internal/external table – Typically uses IP address + TCP port – Known as Network Address and Port Translation (NAPT) Need ports to make mapping 1-1 since there are fewer external IPs Internal IP : portExternal IP : port : : : : : :40003

How NAT works (3) SRC = :30000 DST = :80 SRC = :40001 DST = :80 Internal IP : portExternal IP : port : :40001 Internal  External – Look up and rewrite source IP/port

How NAT works (4) SRC = :80 DST = :30000 SRC = :80 DST = :40001 Internal IP : portExternal IP : port : :40001 External  Internal – Look up and rewrite destination IP/port

NAT Software and Systems for Use at Home I’m a NAT box too!

NAT Downsides Connectivity has been broken! – Can only send incoming packets after an outgoing connection is setup – Difficult to run servers or P2P apps (Skypes) at home Doesn’t work so well when there are no connections (UDP apps) Breaks apps that unwisely expose their IP addresses (FTP)