IP addresses: how to get one - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

IP addresses: how to get one

Description:

hard-coded by system admin in a file ... Q: How does an ISP gets a block of addresses? A: ICANN: Internet Corporation for Assigned ... – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 14
Provided by: shaida
Category:
Tags: addresses | icann | one

less

Transcript and Presenter's Notes

Title: IP addresses: how to get one


1
IP addresses how to get one?
  • Q How does a host get IP address?
  • hard-coded by system admin in a file
  • Wintel control-panel-gtnetwork-gtconfiguration-gttcp
    /ip-gtproperties
  • UNIX /etc/rc.config
  • DHCP Dynamic Host Configuration Protocol
    dynamically get an address from a server
  • plug-and-play

2
IP addressing the last word...
  • Q How does an ISP gets a block of addresses?
  • A ICANN Internet Corporation for Assigned
  • Names and Numbers
  • allocates addresses
  • manages DNS
  • assigns domain names, resolves disputes

3
NAT Network Address Translation
  • Motivation a local network uses just one IP
    address as far as outside world is concerned
  • A range of addresses is not needed from ISP
    just one IP address for all devices
  • can change addresses of devices in a local
    network without notifying the outside world

4
NAT Network Address Translation
  • can change ISP without changing addresses of
    devices in a local network
  • devices inside a local network is not explicitly
    addressable, visible by outside world (a security
    plus).

5
NAT Network Address Translation
rest of Internet
local network (e.g., home network) 10.0.0/24
10.0.0.1
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3
Datagrams with source or destination in this
network have 10.0.0/24 address for source,
destination (as usual)
All datagrams leaving local network have same
single source NAT IP address 138.76.29.7, differe
nt source port numbers
6
NAT Network Address Translation
  • The NAT-enabled router does not look like a
    router to the outside world
  • NAT-router behaves as a single device with a
    single IP address

7
NAT Network Address Translation
  • Implementation NAT router must
  • outgoing datagrams replace (source IP address,
    port ) of every outgoing datagram to (NAT IP
    address, new port )
  • . . . remote clients/servers will respond using
    (NAT IP address, new port ) as destination addr.

8
NAT Network Address Translation
  • Implementation NAT router must
  • remember (in NAT translation table) every (source
    IP address, port ) to (NAT IP address, new port
    ) translation pair
  • incoming datagrams replace (NAT IP address, new
    port ) in dest fields of every incoming datagram
    with corresponding (source IP address, port )
    stored in NAT table

9
NAT Network Address Translation
NAT translation table WAN side addr LAN
side addr
138.76.29.7, 5001 10.0.0.1, 3345

10.0.0.1
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3
4 NAT router changes datagram dest addr
from 138.76.29.7, 5001 to 10.0.0.1, 3345
3 Reply arrives dest. address 138.76.29.7,
5001
10
The Internet Control Message (ICMP)
  • Used by hosts routers to communicate
    network-layer information to each other
  • To report errors
  • Often considered as a part of IP but
    architecturally lies just above IP
  • ICMP messages are carried inside IP datagrams as
    a payload
  • ICMP message type, code, and first 8 bytes of IP
    datagram causing error

11
The Internet Control Message (ICMP)
Type Code description 0 0 echo
reply (ping) 3 0 dest. network
unreachable 3 1 dest host
unreachable 3 2 dest protocol
unreachable 3 3 dest port
unreachable 3 6 dest network
unknown 3 7 dest host unknown 4
0 source quench (congestion
control - not used) 8 0
echo request (ping) 9 0 route
advertisement 10 0 router
discovery 11 0 TTL expired 12 0
bad IP header
12
The Internet Control Message (ICMP)
  • Traceroute- trace a route/path from a host to any
    host in the world
  • Traceroute is implemented with ICMP messages

13
The Internet Control Message (ICMP)
  • A source router sends series of UDP segments to
    dest
  • First has TTL 1
  • Second has TTL2, etc.
  • Unlikely a port number
  • When nth datagram arrives to nth router, the TTL
    has expired
  • A router discards datagram and sends to the
    source router an ICMP message (type 11, code 0)
  • Message includes name of a router its IP
    address
  • When ICMP message arrives, the source router
    calculates RTT
Write a Comment
User Comments (0)
About PowerShow.com