1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 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.
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.
CPSC 441 Tutorial - Network Tools 1 Network Tools CPSC 441 – Computer Communications Tutorial.
1 Internet Networking Spring 2002 Tutorial 4 ICMP (Internet Control Message Protocol)
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Internet Control Message Protocol (ICMP). Introduction The Internet Protocol (IP) is used for host-to-host datagram service in a system of interconnected.
Chapter 5 The Network Layer.
Internet Networking Spring 2003
Subnetting.
1 Internet Control Message Protocol (ICMP) RIZWAN REHMAN CCS, DU.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
1 CMPT 471 Networking II ICMP © Janice Regan, 2012.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Internet Control Message Protocol ICMP author -- J. Postel, September The purpose.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Jan 29, 2008CS573: Network Protocols and Standards1 NAT, DHCP Autonomous System Network Protocols and Standards Winter
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
IP : Internet Protocol Addresses Rsc.Asst.Kamil Serhan Bilman
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.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
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.
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.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
4: Network Layer4a-1 13: Intro to IP and ICMP Last Modified: 11/9/2015 7:16:06 PM.
Error and Control An IP datagram travels from node to node on the way to its destination Each router operates autonomously Failures or problems may occur.
Chapter 23 Internet Control Message Protocol used to report information and errors IP uses ICMP when it sends an error message ICMP uses IP to transport.
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.
1 An Error Reporting Mechanism (ICMP). 2 IP Semantics IP is best-effort Datagrams can be –Lost –Delayed –Duplicated –Delivered out of order –Corrupted.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
ICMPv6 Error Message Types Informational Message Types.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Lecture 21: Network Primer 7/9/2003 CSCE 590 Summer 2003.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Packet Switch Network Server client IP Ether IPTCPData.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Internet Control Message Protocol (ICMP)
© 2003, Cisco Systems, Inc. All rights reserved.
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
COMPUTER NETWORKS CS610 Lecture-33 Hammad Khalid Khan.
8 Network Layer Part V Computer Networks Tutun Juhana
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Advanced Computer Networks
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internetworking Outline Best Effort Service Model
Internet Control Message Protocol
Introduction to Networks
ITIS 6167/8167: Network and Information Security
32 bit destination IP address
Presentation transcript:

1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh

2 Contents l Fragmentation l Error reporting (ICMP) l Auto-configuration l Network Address Translation

3 Fragmentation l IP allows datagram sizes up to 64Kbytes l Physical networks often only support smaller frame types (Maximum Transmission Unit, MTU): –E.g. Ethernet 1500bytes, dialup PPP ~256bytes l  Single IP datagram may need to be divided into “fragments” for transmission…

4 IP fragmentation l Each fragment is a (new) IP packet –Has IP header, original source & destination –Identification field same for each fragment –Fragment offset identifies what bit it is –“More Fragments” flag set in all but last fragment

5 Fragmenting packets l May be done by sending host l May be done by intermediate router: l May be prevented with IP “Do not fragment” flag –  ICMP fragmentation required response if a router would have needed to fragment it –Used by TCP to learn path MTU and avoid fragmentation

6 Reassembling fragments l Done ONLY by the ultimate destination of the packet –After checking header checksum and destination, but before any more processing l Maintains a pool of fragments –Discarded after a time-out –If all fragments of a datagram received the datagram is reassembled and handled as before

7 Fragmentation and reassembly issues l Lose one segment and you lose the whole message –Bad if segment loss is likely or number of segments is large l E.g. NFS v.2 used UDP, v.3 uses TCP –because block size 8K -> 32K –many more segments! => higher effective packet loss rate with UDP and more wasted bandwidth

8 Error reporting l IP includes Internet Control Message Protocol (ICMP) RFC 792 l ICMP messages sent in IP packets –(i.e. same protocol level as UDP or TCP) –IP protocol number 2 l Not seen by applications - between hosts or routers OSs only –Error messages –Informational messages (mostly superceded by DHCP) l NOTE: some may be dropped by firewalls to avoid possible attacks e.g. denial of service (but makes diagnosis of problems harder)

9 ICMP message types

10 ICMP Error messages (i) l Source Quech –router to host, please slow down (buffer overflow) l Time exceeded –datagram discarded due to TTL=0 or lost fragment l can be used to trace a route by gradually increasing TTL and seeing which router it gets to before timing out l See commands: tracert (windows), traceroute (unix)

11 ICMP error messages (ii) l Destination unreachable –datagram discarded by router because host or network not reachable –Datagram discarded by host because UDP/TCP port not in use l Redirect –datagram sent to wrong next hop (gives alternative) l Fragmentation required –if fragmentation not allowed but necessary l can be used to determine path MTU (maximum transmission unit)

12 ICMP informational messages l Echo Request/Reply –ICMP software sends Reply when receives Request l test computer accessible (e.g. ping) l Address mask request/reply –allow host on booting to query local router for netmask (see DHCP, later) l Gateway discovery –allow host on booting to find default router (see DHCP)

13 Auto-configuration - low-level l ICMP address mask request/reply –=> netmask l Reverse ARP (RARP) RFC 903 –send Ethernet address and a server returns your IP address l ICMP gateway discovery –=> default route

14 Auto-configuration - higher- level (i) l Bootstrap Protocol (BOOTP) RFC 951 and RFC 1542 –single BOOTP request –BOOTP server replies with IP address, Router IP address, server information –requires server configuration for each machine

15 Auto-configuration - higher level (ii) l Dynamic Host Configuration Protocol (DHCP) RFC 1541 –conceptually an extension of BOOTP –server can maintain pool of IP addresses –no configuration for a new machine –but IP address (and therefore domain names) may change each time a machine is booted

16 Network Address Translation: motivations l IP requires every machine to have a unique IP address –But there are not enough IPv4 addresses to go round so… –Allow sites to have their own internal private addresses –And share just a few global IP addresses between all of their machines

17 Network Address Translation –NAT device at boundary between private network and Internet l translates to and from internal private addresses…

18 Simple NAT l Maps between an internal private IP address and an external global IP address –E.g. for a server machine –NAT device is configured (by hand?!) with the address mapping –Re-writes IP packet headers when forwarding:

19 Network Address and Port Translation (NAPT) l Allows a single external IP to be shared by many private IPs –By changing port numbers as well as IP addresses:

20 Configuring NAPT l Can be statically configured –E.g. for a web server l External IP, port 80  Internal server IP, port 80 l Can be dynamically configured by outgoing connections/packets –For normal clients, e.g. accessing external servers… –NB. Does NOT allow external hosts to initiate connections to internal hosts (good security )

21 NAPT dynamic configuration example l Internal IP I A, port P A sends a packet to external IP I B, port P B … –IP header has IPs, UDP/TCP header has ports l NAT device sees outgoing packet –Chooses a currently unused port number P C –for its own global IP address, I C –Creates a new translation mapping l I A, P A  I C,P C (leaves external IP/port) –Discards mapping if unused for some time (configurable)

22 NAT/NAPT deployment l Most ISPs –Hence need to apply specifically for “static” (globally routable) IP addresses l Many home/small office firewalls and broadband routers

23 Additional NAT/NAPT issues l Internet server sees NAT device’s IP address and translated port number (if NAPT) l Private network client only knows its private IP address and local port l  Client IP address not transferable (correct or useful) outside the NAT device –E.g. RMI references passed from client to server will contain private IP and so won’t work for server –The client and server will disagree about what they consider the client’s IP address to be (security issue?!)