摘要 |
PROBLEM TO BE SOLVED: To provide a method and a device which allow for flexible change of a packet by using an instruction of general-purpose change.SOLUTION: An operation method of the rewrite engine of a network switch includes a step for generalizing each protocol header of a packet according to a general-purpose format for that protocol header, where each protocol header after generalization includes a bit vector having a bit marked to 0 for an invalid field, and a bit marked to 1 for an effective field, and a step for changing at least one protocol header after generalization, by using at least one instruction from a set of general-purpose instructions stored in a memory of this network switch. |