-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DHCP Relay Agent Test Plan
Joe LeVeque edited this page Feb 21, 2017
·
26 revisions
This test is aimed at confirming some of the features in the isc-dhcp-relay implementation. We must insure the basic objective the dhcp relay agent is met. This involves validating that DHCP discover, offer, request, and ack packets are successfully relayed from client to server(s). We must also insure that features such as attaching an Option 82 header are supported by this agent.
- Basic DHCP packet construction functions have been added to p4/ptf/testutils (dhcp discover, offer, request, ack)
- PTF test simulates a DHCP client acquiring a lease
- We simulate a DHCP client (a server under the ToR) booting up by manually creating DHCP packets and sending them on an interface that is part of the ToR's VLAN.
- Create a DHCPDISCOVER packet and send it to the ToR on an interface that is part of the ToR's VLAN. The DHCP relay should receive this packet, add and Option 82 header and forward the packet to all known DHCP servers via it's uplinks.
- Listen to all packets on the ToR's uplinks and count the number of forwarded DHCPDISCOVER packets to ensure one is sent to every known DHCP server.
- Create a DHCPOFFER packet and send it to the ToR via one of its uplinks. The DHCP relay should forward this packet to the "client" on its VLAN
- Listen for the DHCPOFFER on the "client's" interface to ensure it would be received
- Create a DHCPREQUEST packet and send it to the ToR on an interface that is part of the ToR's VLAN. The DHCP relay should receive this packet, add and Option 82 header and forward the packet to all known DHCP servers via it's uplinks.
- Listen to all packets on the ToR's uplinks and count the number of forwarded DHCPREQUEST packets to ensure one is sent to every known DHCP server.
- Create a DHCPACK packet and send it to the ToR via one of its uplinks. The DHCP relay should forward this packet to the "client" on its VLAN
- Listen for the DHCPACK on the "client's" interface to ensure it would be received
- ansible-playbook -i str --limit test.yml -e "ptf_host=" --tags=dhcp_relay --vault-password-file -vvvv
-
For Users
-
For Developers
-
Subgroups/Working Groups
-
Presentations
-
Join Us