Monitoring flow activity on a network device
AssigneeHewlett Packard Enterprise Development LP
InventorsTathagata Nandy, Rajib Majila
Life of this patent
Estimating the term…
Abstract
Examples disclosed herein relate to monitoring flow activity on a network device. In an example, a neighbor table is maintained on a network device. The neighbor table may include a record of a neighbor network device and a hit bit corresponding to the neighbor network device. The hit bit may be used to represent a flow activity of the neighbor network device. A determination may be made whether a status of the hit bit corresponding to the neighbor network device is inactive. If the status of the hit bit is inactive, a flow entry corresponding to the neighbor network device may be deleted from an ASIC table on the network device.
Claims20
A method of monitoring flow activity on a network device, comprising:
- maintaining a neighbor table on the network device, wherein the neighbor table includes a record of a neighbor network device and a hit bit corresponding to the neighbor network device, wherein the hit bit is used to represent a flow activity of the neighbor network device;
- maintaining an entry in a media access control (MAC) address table on the network device, wherein the entry comprises a MAC address corresponding to an Internet Protocol (IP) address in the record of the neighbor network device and a last updated timestamp for the MAC address;
- removing the MAC address from the MAC table in response to a determination that an aging period for the entry in the MAC address table is longer than a MAC aging time for the entry, wherein the determination is based on the last updated timestamp;
- determining whether a status of the hit bit corresponding to the neighbor network device is inactive, wherein determining comprises:
- determining, from the MAC address table on the network device, whether the MAC address is absent from the MAC address table longer than a pre-defined time period;
- and
- in response to a determination that the MAC address corresponding to the IP address in the record of the neighbor network device is absent from the MAC address table longer than the pre-defined time period, indicating, in the neighbor table, the status of the hit bit corresponding to the neighbor network device as inactive, wherein the predefined time period is longer than the MAC aging time;
- and
- in response to a determination that the status of the hit bit corresponding to the neighbor network device is inactive, deleting a flow entry corresponding to the neighbor network device from an application-specific integrated-circuit (ASIC) table on the network device.
A network device, comprising:
- a table engine to:
- maintain a neighbor table on the network device, wherein the neighbor table includes a record of a neighbor network device and a hit bit corresponding to the neighbor network device, wherein the hit bit is used to represent a flow activity of the neighbor network device;
- and
- maintain a MAC address table on the network device, wherein an entry in the MAC address table comprises a MAC address corresponding to an Internet Protocol (IP) address in the record of the neighbor network device and a last updated timestamp for the MAC address;
- determine whether to remove the MAC address from the MAC table based on an aging period for the entry in the MAC address table and the last updated timestamp;
- and
- a determination engine to:
- determine whether a status of the hit bit corresponding to the neighbor network device is inactive, wherein the determination comprises:
- determining, from the MAC address table, whether the MAC address corresponding to the IP address in the record of the neighbor network device, is absent from the MAC address table longer than a pre-defined time period;
- and
- in response to a determination that the MAC address corresponding to the IP address in the record of the neighbor network device is absent from the MAC address table longer than the pre-defined time period, indicating, in the neighbor table, the status of the hit bit corresponding to the neighbor network device as inactive, wherein the predefined time period is longer than the MAC aging time;
- in response to a determination that the status of the hit bit corresponding to the neighbor network device is inactive, delete a flow entry corresponding to the neighbor network device from an ASIC table on the network device;
- and
- add a new flow entry corresponding to a new neighbor network device in the ASIC table.
A non-transitory machine-readable storage medium comprising instructions, the instructions executable by a processor to:
- maintain a neighbor table on a network device, wherein the neighbor table includes a record of a neighbor network device and a hit bit corresponding to the neighbor network device, wherein the hit bit is used to represent a flow activity of the neighbor network device;
- maintain an entry in a media access control (MAC) address table on the network device, wherein the entry comprises a MAC address corresponding to an Internet Protocol (IP) address in the record of the neighbor network device and a last updated timestamp for the MAC address;
- remove the MAC address from the MAC table in response to a determination that an aging period for the entry in the MAC address table is longer than a MAC aging time for the entry, wherein the determination is based on the last updated timestamp;
- determine whether a status of the hit bit corresponding to the neighbor network device is inactive, wherein the instructions to determine comprise instructions to:
- determine, from the MAC address table, whether the MAC address corresponding to the IP address in the record of the neighbor network device is absent from the MAC address table longer than a pre-defined time period;
- and
- in response to a determination that the MAC address corresponding to the IP address in the record of the neighbor network device, is absent from the MAC address table longer than the pre-defined time period, indicate, in the neighbor table, the status of the hit bit corresponding to the neighbor network device as inactive, wherein the predefined time period is longer than the MAC aging time;
- and
- in response to a determination that the status of the hit bit corresponding to the neighbor network device is inactive, delete a flow entry corresponding to the neighbor network device from an ASIC table on the network device.
Dependencies are inferred from the claim text.