A packet processing method, comprising: • receiving, by a packet processing apparatus, a first packet and a second packet (Sioi); • determining, by the packet processing apparatus, a first instruction block corresponding to the first packet and the second packet (S102); • obtaining, by the packet processing apparatus, a first identifier according to the first instruction block and the first packet, and obtaining a second identifier according to the first instruction block and the second packet (S103), wherein the first identifier is used to indicate a first entry comprising a third identifier, wherein the third identifier is a storage address of a second instruction block, the second identifier is used to indicate the first entry; • obtaining, by the packet processing apparatus, the third identifier by accessing the first entry indicated by the first identifier, and obtaining the third identifier by accessing the first entry indicated by the second identifier (S104); • obtaining, by the packet processing apparatus, the second instruction block according to the third identifier (S105); and • processing, by the packet processing apparatus, the first packet and the second packet according to the second instruction block (S106), characterized in that the obtaining, by the packet processing apparatus, the first identifier according to the first instruction block and the first packet (S103) comprises: ∘ obtaining, by the packet processing apparatus and from the first instruction block, a first jump instruction according to the first packet, wherein the first identifier is a storage address of the first entry, the first instruction block comprises the first jump instruction, the first jump instruction comprises an operation code and an operand, and the first identifier is the operand; and the obtaining, by the packet processing apparatus, the third identifier by accessing the first entry indicated by the first identifier (S104) comprises: ∘ accessing, by the packet processing apparatus, the first entry by executing the first jump instruction; and ∘ obtaining, by the packet processing apparatus, the third identifier from the first entry. • receiving, by a packet processing apparatus, a first packet and a second packet (Sioi); • determining, by the packet processing apparatus, a first instruction block corresponding to the first packet and the second packet (S102); • obtaining, by the packet processing apparatus, a first identifier according to the first instruction block and the first packet, and obtaining a second identifier according to the first instruction block and the second packet (S103), wherein the first identifier is used to indicate a first entry comprising a third identifier, wherein the third identifier is a storage address of a second instruction block, the second identifier is used to indicate the first entry; • obtaining, by the packet processing apparatus, the third identifier by accessing the first entry indicated by the first identifier, and obtaining the third identifier by accessing the first entry indicated by the second identifier (S104); • obtaining, by the packet processing apparatus, the second instruction block according to the third identifier (S105); and • processing, by the packet processing apparatus, the first packet and the second packet according to the second instruction block (S106), ∘ accessing, by the packet processing apparatus, the first entry by executing the first jump instruction; and ∘ obtaining, by the packet processing apparatus, the third identifier from the first entry. <EOS>