02-01-2020 дата публикации
Номер: US20200007439A1
Принадлежит:
A packet processing method and a network device, where the method includes: receiving, by a network device, a packet, where the packet includes classification information, and the classification information includes M fields; determining, by the network device, K fields in the M fields according to indication information stored by the network device; determining, by the network device, a target classification rule based on a first classification rule set stored by the network device and the K fields, and processing the packet according to the target classification rule. 1. A packet processing method , comprising:receiving, by a network device, a packet, wherein the packet comprises classification information, wherein the classification information comprises M fields, wherein the M fields comprise X fields and K fields, the M fields comprise N bits, wherein the X fields comprise P bits, wherein the K fields comprise Q bits, wherein N is a positive integer greater than or equal to 2, wherein N is equal to a sum of Q and P, wherein M is equal to a sum of K and X, wherein Q, P, K, and X are all positive integers, and wherein M is a positive integer greater than or equal to 2;determining, by the network device, the K fields in the M fields according to indication information stored by the network device, wherein the indication information comprises M indication digits, wherein the M fields are in a one-to-one correspondence with the M indication digits, wherein a value of an indication digit corresponding to each of the K fields is equal to a first value, wherein a value of an indication digit corresponding to each of the X fields is equal to a second value, and wherein the first value is not equal to the second value;determining, by the network device, a target classification rule based on a first classification rule set stored by the network device and the K fields, wherein the target classification rule is a first classification rule in the first classification rule ...
Подробнее