Patent ID: 9705795
Date: 2017-07-11
CPC Classifications: H04L

Claim:
1. A look-up table creation method, comprising: receiving, at a forwarding device disposed in a communications network, a look-up table create message sent by a controller for creating a look-up table, wherein the look-up table create message comprises an identifier of the look-up table and a look-up mode of the look-up table, the look-up mode of the look-up table indicating how a look-up is performed in the look-up table; creating the look-up table at the forwarding device according to the look-up table create message, the look-up table having the look-up mode in the look-up table create message; receiving, at the forwarding device, an entry add message sent by the controller, wherein the entry add message comprises a to-be-added forwarding action and an index parameter of the forwarding action; and adding, by the forwarding device and according to the entry add message, an entry corresponding to the entry add message to the look-up table using an idle entry in the look-up table, the idle entry being determined according to the index parameter and the look-up mode, and the entry comprising the to-be-added forwarding action and the index parameter.