×

METHOD FOR LEARNING MEDIA ACCESS CONTROL ADDRESS, NETWORK DEVICE, AND SYSTEM

  • US 20140029621A1
  • Filed: 09/30/2013
  • Published: 01/30/2014
  • Est. Priority Date: 03/30/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method for learning a media access control address, comprising:

  • generating a key value according to a key field of a received packet, and obtaining an index value corresponding to the key value according to the key value;

    performing a linear random iteration on the index value according to a preset number of iterations;

    searching, according to an iteration index value obtained during the first iteration, in a media access control (MAC) address pool for a MAC address corresponding to the iteration index value obtained during the first iteration; and

    if failing to find a MAC address corresponding to the iteration index value obtained during the first iteration in the MAC address pool, determining whether there is still an idle MAC address space in the MAC address pool, and continuing to perform an iteration operation;

    when the number of iteration operations reaches a preset maximum number of iterations, if still failing to find MAC addresses corresponding to iteration index values obtained during iterations and determining that there is still an idle MAC address space in the MAC address pool, learning a MAC address of the received packet at a position where a first idle MAC address space appears.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×