Method and Apparatus for Processing Modified Packet
First Claim
1. A method for processing a modified packet, comprising:
- obtaining, by a first routing device, a first packet sent by a second routing device, wherein the first packet carries a first correspondence, wherein the first correspondence comprises a correspondence between network address information of the second routing device and an identifier (ID) of a service function (SF) node connected to the second routing device, and wherein the second routing device is connected to the first routing device;
creating, by the first routing device, a forwarding entry, wherein the forwarding entry comprises the first correspondence, and wherein the network address information of the second routing device in the forwarding entry indicates address information of a next-hop routing device of the first routing device on a service chain;
receiving, by the first routing device, a modified packet, and determining an ID of a destination SF of the modified packet;
querying, by the first routing device, the forwarding entry according to the ID of the destination SF;
obtaining the network address information of the second routing device from the first correspondence that matches the ID of the destination SF;
determining that an SF identified by the ID of the destination SF is the SF connected to the second routing device; and
forwarding, by the first routing device, the modified packet to the second routing device according to the network address information of the second routing device.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for processing a modified packet. A first routing device obtains a first packet sent by a second routing device, where the first packet carries a first correspondence, creates a forwarding entry that includes the first correspondence, receives a modified packet and determines an ID of a destination service function (SF) of the modified packet, queries the forwarding entry according to the ID of the destination SF, and determines that an SF identified by the ID of the destination SF is an SF connected to a second routing device, and forwards the modified packet to the second routing device.
-
Citations
10 Claims
-
1. A method for processing a modified packet, comprising:
-
obtaining, by a first routing device, a first packet sent by a second routing device, wherein the first packet carries a first correspondence, wherein the first correspondence comprises a correspondence between network address information of the second routing device and an identifier (ID) of a service function (SF) node connected to the second routing device, and wherein the second routing device is connected to the first routing device; creating, by the first routing device, a forwarding entry, wherein the forwarding entry comprises the first correspondence, and wherein the network address information of the second routing device in the forwarding entry indicates address information of a next-hop routing device of the first routing device on a service chain; receiving, by the first routing device, a modified packet, and determining an ID of a destination SF of the modified packet; querying, by the first routing device, the forwarding entry according to the ID of the destination SF; obtaining the network address information of the second routing device from the first correspondence that matches the ID of the destination SF; determining that an SF identified by the ID of the destination SF is the SF connected to the second routing device; and forwarding, by the first routing device, the modified packet to the second routing device according to the network address information of the second routing device. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus for processing a modified packet, comprising:
-
a non-transitory computer readable medium; a receiver; a transmitter, and a processor that is connected to each of the memory, the receiver, and the transmitter; wherein the non-transitory computer readable medium stores a program to be executed by the processor, the program including instructions for; triggering the receiver to obtain a first packet sent by a second routing device, wherein the first packet carries a first correspondence, wherein the first correspondence comprises a correspondence between network address information of the second routing device and an identifier (ID) of a service function (SF) node connected to the second routing device, and wherein the second routing device is connected to the apparatus for processing a modified packet; creating a forwarding entry, wherein the forwarding entry comprises the first correspondence, and wherein the network address information of the second routing device in the forwarding entry indicates address information of a next-hop routing device, on a service chain, of the apparatus for processing a modified packet; triggering the receiver to receive a modified packet, and determine an ID of a destination SF of the modified packet; querying the forwarding entry according to the ID of the destination SF; obtaining the network address information of the second routing device from the first correspondence that matches the ID of the destination SF; determining that an SF identified by the ID of the destination SF is the SF connected to the second routing device; and triggering the transmitter to forward the modified packet to the second routing device according to the network address information of the second routing device. - View Dependent Claims (7, 8, 9, 10)
-
Specification