Analysis of grasping package in DHCP process

Source: Internet
Author: User
Tags ack

Through the packet analysis, DHCP four packages are broadcast packets, and the DHCP server, in order to prevent address conflicts, also emits an ARP packet before assigning to the DHCP client address, and if it is a DHCP relay, an ICMP packet is issued.

1.DHCP Client issues DHCP Discover broadcast packet:

Second floor: The Mac of the source Mac---client, the target Mac---FFFF.FFFF.FFFF

Layer three: Source IP---0.0.0.0, target IP---255.255.255.255

2.DHCP receives the DHCP Discover broadcast packet, selects from the address pool from the low to the high to elect the address, and issues the ARP packet:

Second floor: Mac---DHCP service for source Mac, Target mac---FFFF.FFFF.FFFF

3. If you do not receive an ARP response package, you are ready to assign the address to the client, or a second ARP packet will be issued:

4.DHCP client continues to issue DHCP Discover broadcast packet:

Second floor: The Mac of the source Mac---client, the target Mac---FFFF.FFFF.FFFF

Layer three: Source IP---0.0.0.0, target IP---255.255.255.255

URL Address: http://www.bianceng.cn/Servers/zs/201602/49618.htm

5.DHCP Server response DHCP offer broadcast packet:

Second floor: The Mac of the source MAC---DHCP server, the target mac---FFFF.FFFF.FFFF

Layer three: Source IP---DHCP server IP, target IP---255.255.255.255

6.DHCP Client response DHCP Request broadcast packet:

Two-tier: source MAC---DHCP client mac, Target mac---FFFF.FFFF.FFFF

Layer three: Source IP---0.0.0.0, target IP---255.255.255.255

7.DHCP Server response DHCP ACK broadcast packet:

Second floor: The Mac of the source MAC---DHCP server, the target mac---FFFF.FFFF.FFFF

Layer three: Source IP---DHCP server IP, target IP---255.255.255.255

8.DHCP client receives DHCP ACK broadcast packet, issue unreasonable ARP, confirm that the IP is available, otherwise the DHCP server will continue to request IP:

Two-tier: source MAC---DHCP client mac, Target mac---FFFF.FFFF.FFFF

This article comes from "Httpyuntianjxxll.spac" blog, please be sure to keep this source http://333234.blog.51cto.com/323234/976405

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.