CSE3039 Module 4 InternetProtocol
CSE3039 Module 4 InternetProtocol
The hardware type field defines the type of the link-layer protocol; Ethernet
is given the type 1.
The protocol type field defines the network-layer protocol: IPv4 protocol is
(0800)16.
The source hardware and source protocol addresses are variable-length fields
defining the link-layer and network-layer addresses of the sender.
The destination hardware address and destination protocol address fields define
the receiver link-layer and network-layer addresses
Internet Protocols
Address Resolution Protocol(ARP)-packet format
Example
Internet Protocols
Address Resolution Protocol(ARP)
Internet Protocols
Address Resolution Protocol(ARP)
Internet Protocols
Address Resolution Protocol(ARP)
Internet Protocols
Address Resolution Protocol(ARP)
Internet Protocols
Dynamic Host Configuration Protocol - DHCP
Address assignment in an organization can be
done automatically
an application-layer program, using the client-
server paradigm
Can assign permanent IP addresses to the host
and routers
can also be configured to provide temporary, on
demand, IP addresses to hosts
Internet Protocols
Dynamic Host Configuration Protocol - DHCP
In addition to its IP address, a computer also
needs to know the network prefix (or address
mask).
Most computers also need two other pieces of
information, such as the address of a default
router to be able to communicate with other
networks and the address of a name server to be
able to use names instead of addresses
Internet Protocols
Dynamic Host Configuration Protocol - DHCP
four pieces of information are normally needed:
the
computer address,
The prefix,
the address of a router,
and the IP address of a name server
Internet Protocols
Dynamic Host Configuration Protocol - DHCP
DHCP Message Format
Internet Protocols
Dynamic Host Configuration Protocol - DHCP
The 64-byte option field has a dual purpose. It can carry
either additional information or some specific vendor
information.
The server uses a number, called a magic cookie, in the
format of an IP address with the value of 99.130.83.99.
When the client finishes reading the message, it looks for
this magic cookie.
If present, the next 60 bytes are options. An option is
composed of three fields: a 1-byte tag field, a 1-byte length
field, and a variable-length value field.
If the tag field is 53, the value field defines one of the 8
message types shown
Internet Protocols
Dynamic Host Configuration Protocol - DHCP
Internet Protocols
Dynamic Host Configuration Protocol - DHCP