×

Method for upgrading version of network device and network device

  • US 10,116,506 B2
  • Filed: 05/12/2016
  • Issued: 10/30/2018
  • Est. Priority Date: 11/14/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for upgrading a version of a network device, comprising:

  • configuring, by the network device, a forwarding plane of the network device to be a first forwarding plane and a second forwarding plane, wherein the first forwarding plane runs a first version, the second forwarding plane runs a second version, and before version upgrade of the network device, the first forwarding plane is used for packet forwarding of the network device;

    performing, by the network device in the first forwarding plane, sampling on forwarded packets using a preset sampling ratio, to obtain a sample packet, and copying the sample packet to the second forwarding plane;

    forwarding, by the network device, the sample packet in a broadcast manner in the second forwarding plane, to learn a Media Access Control (MAC) address, and generating a MAC address entry according to the learned MAC address; and

    in response to a quantity of MAC addresses learned by the second forwarding plane reaching a preset threshold, performing an upgrade so that the second forwarding plane is used for packet forwarding of the network device, wherein the preset threshold is a nonzero positive integer.

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