EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 73

no-image

EVB-PIC24

Manufacturer Part Number
EVB-PIC24
Description
Development Boards & Kits - PIC / DSPIC W3150A+EVAL BOARD BASED ON PIC24
Manufacturer
WIZnet
Datasheet

Specifications of EVB-PIC24

Rohs
yes
Product
Development Kits
Interface Type
RS-232
Data Bus Width
16 bit
Dimensions
50 mm x 40 mm
Information setup. First, review basic facts on DHCP(Dynamic Host Configuration Protocol) and get further
into the usage of DHCP Client program.
DHCP uses UDP protocol in Transport Layer and communicates with DHCP server using broadcast of UDP.
The reason why it uses broadcast is because it has no IP address and DHCP server IP address is unknown.
When UDP broadcast at iinChip™, destination IP address needs to be set ‟255.255.255.255‟ for broadcast
packet transmission.
<Fig 3.25> is a Message Flow between DHCP Server and Client.
DISCOVER
DHCP
DHCP
OFFER
CLIENT
SERVER
68 Port
67 Port
REQUEST
ACK or NACK
<Fig 3.25: DHCP Message Flow>
First of all, DHCP client broadcasts DISCOVERY message to the local Network. If DHCP server exists at the
network then DHCP server receives Discovery message and provides network Information such as IP, G/W
IP, Subnet Mask, and DNS sever IP which can be used by DHCP Client, and information such as Lease
Time to the DHCP Client as OFFER message. DHCP Client can detect DHCP server by receiving the
OFFER message and then it sends REQUEST message to DHCP server to use the information suggested
by DHCP server. After receiving REQUEST message from DHCP Client, DHCP server finds out if the
requested network information is usable. If it is, it sends ACK message, if not, NACK message is sent to
DHCP Client. After receiving ACK message from DHCP server, DHCP Client uses the offered network
Information. The network information is valid only for the Lease Time suggested by DHCP server. Hence, if
DHCP Client wants to keep using the network information, it retransmits REQUEST message to DHCP
server to maintain network information usually after half of the Lease Time. In this process, DHCP client can
get same or new network information from DHCP server. In case that it received new network information,
the new network information must be used.
Message between DHCP server and client has the format as in <Fig 3.26> with the size of 544 Bytes. Refer
to document „RFC1541‟ for detailed explanation for each field of DHCP message Format. op Field of the first
byte decided Request/Reply, and fields after ciaddr is used to deliver network information, and options field
of 312 byte is used to transmit message type or the information such as Client Identifier.
63
© Copyright 2006 WIZnet Co., Inc. All rights reserved.

Related parts for EVB-PIC24