Professional Documents
Culture Documents
04 - Internet Protocols - IP
04 - Internet Protocols - IP
ICMP:
– protocol
– messages
– applications
ARP
Proxy-ARP
DHCP:
– protocol
– forwarding
– considerations
ICMP
0: Echo reply
3: Destination unreachable
5: Redirect
8: Echo request
11: Time exceeded
13: Timestamp request
14: Timestamp reply
17: Address mask request
18: Address mask reply
30: Traceroute
ICMP messages
The code field will have the one of the following values:
0: transit TTL exceeded
1: reassembly TTL exceeded
ICMP applications
% traceroute -n www.sssup.it
traceroute to portale.sssup.it (193.205.80.141), 30 hops max, 38 byte packets
1 131.114.9.29 0.787 ms 0.466 ms 0.542 ms
2 131.114.186.9 24.893 ms 22.934 ms 14.930 ms
3 131.114.191.129 9.961 ms 7.826 ms 1.981 ms
4 131.114.191.186 2.891 ms 2.973 ms 4.965 ms
5 131.114.191.206 3.957 ms 4.974 ms 10.890 ms
6 131.114.191.42 283.027 ms 411.901 ms *
7 193.205.80.141 41.078 ms 38.824 ms 35.875 ms
ARP
% ip route show
10.114.235.0/24 dev eth0 proto kernel scope link src 10.114.235.1
131.114.9.0/24 dev eth1 proto kernel scope link src 131.114.9.251
127.0.0.0/8 dev lo scope link
default via 131.114.9.29 dev eth1 metric 1
m
ARP
ARP request
Host A
MACA, 192.168.1.66 lan1: 192.168.1.128/26
Router R
MACR0, 192.168.1.65 Host B
MACR1, 192.168.1.129 MACB, 192.168.1.130
lan0: 192.168.1.64/26
Proxy-ARP
transaction ID
seconds flags
client IP address
your IP address
server IP address
router IP address
Note that responses from the DHCP server to the DHCP client may
be broadcast or unicast, depending on whether the client is able to
receive a unicast message before the TCP/IP stack is fully
configured; this varies between implementations.
DHCP
We now going to see the interaction between DHCP
servers and clients that have already been configured
and the process that ensures lease expiration and
renewal.
Unauthorized DHCP servers could also be set up, sending false and
potentially disruptive information to clients.
DHCP considerations
In a DHCP environment where automatic or dynamic
address allocation is used, it is generally not possible to
predetermine the IP address of a client at any particular
point in time.
In this case, if static DNS servers are also used, the DNS
servers will not likely contain valid host name to IP
address mappings for the clients.