SDN-based ARP implementation method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsXiaoqiang Qiao, Yan Li, Hui Ni
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure disclose an SDN-based ARP implementation method and apparatus. The method includes: receiving, by a controller, an ARP request sent by a first switch, and when it is determined that no ARP entry corresponding to the ARP request exists locally, sending, to the first switch, an instruction configured to instruct the first switch to flood the ARP request. In this way, the ARP request can be broadcast to an entire network by means of message forwarding between switches.
Claims13
A software defined networking (SDN) based Address Resolution Protocol (ARP) implementation method, comprising:
- receiving, by a controller, a first ARP request from a first switch;
- determining, by the controller, whether an ARP entry corresponding to the first ARP request does not exist locally;
- when determining the ARP entry corresponding to the first ARP request does not exist locally, sending, by the controller, only to the first switch, a first instruction configured to instruct the first switch to flood the first ARP request;
- if determining, by the controller, that the ARP entry corresponding to the first ARP request exists locally, determining, by the controller, a destination switch based on the ARP entry, and sending the first ARP request to the destination switch;
- after sending the first ARP request to the destination switch, if an ARP response returned by the destination switch is not received within a specified duration, deleting the locally stored ARP entry corresponding to the first ARP request, and sending, to the first switch, a second instruction configured to instruct the first switch to flood the first ARP request,
- wherein the second instruction is configured to instruct the first switch to send the first ARP request to both a switch that is adjacent to the first switch and a host that is connected to the first switch.
A software defined networking (SDN)-based Address Resolution Protocol (ARP) implementation apparatus, comprising a transceiver, a processor, a memory, and a bus, wherein the transceiver, the processor, and the memory are connected to the bus, the memory is configured to store a set of machine readable instructions, and the processor is configured to invoke the set of machine readable instructions stored in the memory and cause the apparatus to perform a method comprising:
- receiving a first ARP request from a first switch;
- determining whether an ARP entry corresponding to the first ARP request does not exist locally;
- sending, when it is determined that the ARP entry corresponding to the first ARP request does not exist locally, only to the first switch, a first instruction configured to instruct the first switch to flood the first ARP request;
- if determining that the ARP entry corresponding to the first ARP request exists locally, determining a destination switch based on the ARP entry, and sending the first ARP request to the destination switch;
- and
- after sending the first ARP request to the destination switch, if an ARP response returned by the destination switch is not received within a specified duration, deleting the locally stored ARP entry corresponding to the first ARP request, and sending, to the first switch, a second instruction configured to instruct the first switch to flood the first ARP request,
- wherein the second instruction is configured to instruct the first switch to send the first ARP request to both a switch that is adjacent to the first switch and a host that is connected to the first switch.
A non-transitory computer-readable medium for storing machine readable instructions executable by one or more processors, wherein the machine readable instructions instruct the one or more processors to perform operations of:
- receiving a first ARP request from a first switch;
- determining whether an ARP entry corresponding to the first ARP request does not exist locally;
- sending, when it is determined that the ARP entry corresponding to the first ARP request does not exist locally, only to the first switch, a first instruction configured to instruct the first switch to flood the first ARP request;
- if determining that the ARP entry corresponding to the first ARP request exists locally, determining a destination switch based on the ARP entry, and sending the first ARP request to the destination switch;
- and
- after sending the first ARP request to the destination switch, if an ARP response returned by the destination switch is not received within a specified duration, deleting the locally stored ARP entry corresponding to the first ARP request, and sending, to the first switch, a second instruction configured to instruct the first switch to flood the first ARP request, wherein the second instruction is configured to instruct the first switch to send the first ARP request to both a switch that is adjacent to the first switch and a host that is connected to the first switch.
Dependencies are inferred from the claim text.