WO2015172675A1 - Procédé et dispositif de traitement de paquet - Google Patents

Procédé et dispositif de traitement de paquet Download PDF

Info

Publication number
WO2015172675A1
WO2015172675A1 PCT/CN2015/078508 CN2015078508W WO2015172675A1 WO 2015172675 A1 WO2015172675 A1 WO 2015172675A1 CN 2015078508 W CN2015078508 W CN 2015078508W WO 2015172675 A1 WO2015172675 A1 WO 2015172675A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
parameter
message
path
node
Prior art date
Application number
PCT/CN2015/078508
Other languages
English (en)
Chinese (zh)
Inventor
徐卫平
牛乐宏
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015172675A1 publication Critical patent/WO2015172675A1/fr

Links

Images

Definitions

  • the present invention relates to communication technologies, and in particular, to a message processing method and apparatus.
  • the usual network equipment can also provide value-added services (English name is Value-Added Service, abbreviated as VAS), for example, network address translation (English name is Network Address Translation, English) Abbreviated as NAT), firewall and other services.
  • value-added services English name is Value-Added Service, abbreviated as VAS
  • VAS Value-Added Service
  • NAT Network Address Translation
  • the service chain (English name is service chain) includes a service classifier (English name is service classifier) and N service forwarding entities (English full name is service forwarding entity, English abbreviation is SFE).
  • the SFEs included in the service chain are connected in sequence.
  • One or more service functions (English full service function, English abbreviated as SF) nodes can be connected to the SFE.
  • the SF node is configured to perform service processing on the received packet.
  • the SF node has functions such as a NAT function and a firewall.
  • the service classifier on the service chain adds a service header to the received packet according to the service type corresponding to the received packet.
  • the service header includes the path identifier of the service chain corresponding to the service type (English name is Identifier, English abbreviation is ID).
  • the service classifier sends a packet including the service header to the SFE connected to the service classifier.
  • the SFE sends a packet including the service header to the SF node connected to the SFE.
  • the SF node cannot identify the packet including the service header, and thus cannot perform service processing on the packet including the service header.
  • the embodiment of the present invention provides a packet processing method and device, which solves the problem that an SF node cannot process a packet including a service header.
  • a packet processing method including:
  • the packet processing apparatus receives the first packet from the SFE, where the first packet includes a second packet and a service header encapsulated in the second packet, where the service header is in the first packet Including the path ID of the service chain;
  • the message processing apparatus acquires the second packet and the path ID
  • the packet processing apparatus processes the second packet according to the path ID to obtain a third packet, where the processing of the second packet includes: adding a first parameter to the In the second packet, the first parameter is a parameter determined according to the path ID;
  • the message processing apparatus sends the third message to the SF node.
  • the method further includes:
  • the message processing apparatus receives a fourth packet from the SF node, where the fourth packet includes the first parameter
  • the packet processing device acquires the path ID according to the first parameter included in the fourth packet
  • the message processing apparatus acquires the fifth packet by processing the fourth packet according to the path ID obtained by the packet processing apparatus after receiving the fourth packet, where the The processing of the fourth packet includes: determining the service header according to the path ID, and encapsulating the fourth packet by using the service header;
  • the message processing apparatus sends the fifth message to the SFE.
  • a second possible implementation of the first aspect including:
  • the packet processing device determines, according to the identifier of the interface that receives the first packet, that the third packet is forwarded according to the forwarding entry, where the forwarding entry includes the interface that receives the first packet.
  • the packet processing apparatus sends the third packet to the SF node by using the first interface.
  • a third possible implementation manner of the first aspect is further provided, where the forwarding entry further includes the path ID;
  • the packet processing apparatus determines, according to the identifier of the interface that receives the first packet, that the third packet is forwarded according to the forwarding entry, and includes:
  • the packet processing apparatus determines, according to the path ID and the identifier of the interface that receives the first packet, that the third packet is forwarded according to the forwarding entry.
  • the forwarding entry further includes a second parameter, where the second parameter is used to identify the An SF node or a SF node of the SF node on the service chain;
  • the packet processing apparatus determines, according to the identifier of the interface that receives the first packet, that the third packet is forwarded according to the forwarding entry.
  • the packet processing apparatus determines to forward the third packet according to the forwarding entry according to the second parameter carried in the first packet and the identifier of the interface that receives the first packet. .
  • a fifth possible implementation of the first aspect including:
  • the message processing apparatus adds the second parameter to the traffic header.
  • the sixth possible implementation manner of the first aspect is further provided, where the service header in the first packet further includes a third parameter, where The third parameter is used to identify that the first packet is an operation, management, and maintenance (English full name operation, administration and maintenance, English abbreviation is OAM) message;
  • OAM English full name operation, administration and maintenance, English abbreviation is OAM
  • the method further includes:
  • the packet processing apparatus determines that the first packet includes the third parameter, and the forwarding policy is to send an OAM packet from the SFE to the SF node, send the Third message.
  • the first parameter is the path ID, or the first parameter is data obtained by processing the path ID according to an algorithm.
  • a message processing apparatus including:
  • a first receiving unit configured to receive a first packet from the SFE, where the first packet is a packet obtained after the service header is encapsulated in the second packet, where the service header is in the first packet Including the path ID of the service chain;
  • Decapsulating unit configured to acquire the second packet and the path ID
  • a first acquiring unit configured to process the second packet according to the path ID, to obtain a third packet, where the processing performed by the first acquiring unit on the second packet includes:
  • the first obtaining unit adds a first parameter to the second packet, where the first parameter is a parameter determined according to the path ID;
  • the first forwarding unit is configured to send the third packet to the SF node.
  • the method further includes:
  • a second receiving unit configured to receive a fourth packet from the SF node, where the fourth packet includes the first parameter
  • a second acquiring unit configured to acquire the path ID according to the first parameter included in the fourth packet
  • An encapsulating unit configured to process the fourth packet according to the path ID obtained by the packet processing device after receiving the fourth packet, to obtain a fifth packet, where the encapsulation
  • the processing of the fourth packet by the unit includes: the encapsulating unit determines the service header according to the path ID, and encapsulates the fourth packet by using the service header;
  • the second forwarding unit is configured to send the fifth packet to the SFE.
  • a second possible implementation manner of the second aspect is further provided, where the first forwarding unit is specifically configured to receive according to the first receiving unit And determining, by the identifier of the interface of the first packet, that the forwarding entry forwards the third packet, where the forwarding entry includes an identifier of the interface that receives the first packet and an identifier of the first interface;
  • the first forwarding unit is specifically configured to send, by using the first interface, the SF node Third message.
  • a third possible implementation of the second aspect is further provided, where the forwarding entry further includes the path ID;
  • the first forwarding unit is configured to determine, according to the path ID and the identifier of the interface that the first receiving unit receives the first packet, to forward the third packet according to the forwarding entry.
  • the forwarding entry further includes a second parameter, where the second parameter is used to identify the An SF node or a SF node of the SF node on the service chain;
  • the first forwarding unit is configured to receive, according to the second parameter carried in the first packet, the first receiving unit The identifier of the interface of the first packet is determined, and the third packet is forwarded according to the forwarding entry.
  • a fifth possible implementation manner of the second aspect is further provided, where the encapsulating unit is specifically configured to add the second parameter to the service header.
  • the third parameter is used to identify that the first packet is an OAM packet.
  • the message processing device further includes:
  • control unit configured to determine that the first packet includes the third parameter, and the forwarding policy is to control the first forwarding unit to send the OAM packet from the SFE to the SF node
  • the SF node sends the third packet.
  • the first parameter is the path ID, or the first parameter, in combination with the foregoing second aspect or any one of the foregoing possible implementation manners Data obtained by processing the path ID according to an algorithm.
  • the packet processing apparatus strips the service header of the first packet and obtains the second packet.
  • the message processing apparatus may obtain a path ID from a service header of the first packet.
  • the packet processing device adds a first parameter corresponding to the path ID to the second packet, Obtain the third message.
  • the message processing apparatus sends the third message to the SF node. In this way, the third packet received by the SF node does not include the service header, and the problem that the SF node cannot process the packet including the service header is solved.
  • FIG. 1 is a schematic diagram of a network scenario.
  • FIG. 2 is a schematic diagram of a network scenario according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a message processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a message processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a packet processing method according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a network scenario.
  • the network shown in FIG. 1 includes a service classifier 101, an SFE 102, and an SF node 103.
  • the SF node may have at least one of service functions such as a NAT and a firewall.
  • a service chain in the network shown in FIG. 1 includes a service classifier 101, an SFE 102, and an SF node 103.
  • the service classifier 101 encapsulates the service header on the received packet 1001 and obtains the packet 1011.
  • the service header of the message 1011 includes a path ID and a preset ID of the service chain.
  • the preset ID is used to identify the SF node 103 on the service chain. The last hop of the SF node.
  • the SFE 102 receives message 1011 from service classifier 101.
  • the SFE 102 determines the forwarding entry according to the path ID and the preset ID included in the service header of the packet 1011.
  • the forwarding entry includes a path ID, a preset ID, and an egress port.
  • the egress port is connected to the SF node 103.
  • the SFE 102 transmits the message 1011 to the SF node 103 through the egress port.
  • the SF node 103 cannot perform the service processing on the packet 1001 included in the packet 1011 because the SF node 103 cannot identify the service header of the packet 1011.
  • the method is to add a message processing device between the SF node and the SFE.
  • the message processing apparatus processes the service header included in the received message 1011 so that the message 1002 received by the SF node 103 does not include the service header.
  • the method may include the message processing device stripping the service header of the message 1011 from the SFE 102 to obtain the message 1001.
  • the message processing device acquires the first parameter corresponding to the path ID according to the path ID included in the service header of the message 1011.
  • the message processing device adds the first parameter to the message 1001 to obtain the message 1002.
  • the message processing device transmits the message 1002 to the SF node. Since the message 1002 does not include a service header, the SF node 103 can perform service processing on the message 1002.
  • This solution can be implemented by the following embodiments.
  • FIG. 2 is a schematic diagram of a network scenario according to an embodiment of the present invention.
  • the network shown in FIG. 2 includes a service classifier 101, an SFE 102, an SF node 103, and a message processing device 104.
  • the service chain in the network shown in FIG. 2 includes a service classifier 101, an SFE 102, a message processing device 104, and an SF node 103.
  • the service classifier 101 communicates with the SFE 102;
  • the SFE 102 communicates with the message processing device 104;
  • the message processing device 104 communicates with the SF node 103.
  • the service chain may also include an SF node 105 in communication with the message processing device 104.
  • the SF node 105 is the last hop SF node of the SF node 103 on the service chain.
  • the SFE 102 can transmit the message 1010 to the SF node 105 via the message processing device 104, and receive the message 1011 sent by the SF node 105 through the message processing device 104.
  • the SFE 102 then transmits the message 1011 to the SF node 103 via the message processing device 104 such that the message 1010 is processed on the service chain in the order of the SF nodes.
  • the service described in the embodiment of the present invention Chain can also be a business function chain (English full service function chain).
  • FIG. 3 is a schematic diagram of a message processing apparatus according to an embodiment of the present invention.
  • the message processing apparatus shown in FIG. 3 can be the message processing apparatus 104 in the network shown in FIG. 2.
  • the message processing apparatus shown in FIG. 3 can be deployed between the SFE 102 and the SF node 103 on the service chain. Alternatively, the message processing apparatus shown in FIG. 3 can be deployed on the same device as the SFE 102. Alternatively, the message processing apparatus shown in FIG. 3 can be deployed on the same device as the SF node 103.
  • the message processing apparatus shown in FIG. 3 may include a processor 1040, a memory 1041, and a communication interface 1042.
  • the processor 1040, the memory 1041, and the communication interface 1042 are connected by a communication bus 1043.
  • the memory 1041 is used to store programs, and may also store mapping relationships.
  • the mapping relationship is a mapping relationship between the path ID and the first parameter.
  • the processor 1040 performs the following operations in accordance with executable instructions included in the program read from the memory 1041.
  • the processor 1040 receives the message 1011 from the SFE 102 via the communication interface 1042.
  • the packet 1011 is a packet obtained after the service header is encapsulated in the packet 1001.
  • the service header of the message 1011 includes the path ID of the service chain.
  • the processor 1040 strips the service header from the message 1011 and obtains the message 1001 and the path ID.
  • the processor 1040 obtains the message 1002 according to the path ID and the message 1001.
  • the message 1002 is a message 1002 obtained by adding the first parameter corresponding to the path ID stored in the memory 1041 to the message 1001.
  • the processor 1040 transmits the message 1002 to the SF node 103 via the communication interface 1042.
  • the first forwarding entry may also be saved in the memory 1041.
  • the first forwarding entry stored in the memory 104 includes an ID of an interface that receives the message 1011 and an ID of the first interface.
  • the first interface is connected to the SFE node 103.
  • the processor 1040 can determine, according to the ID of the interface that receives the message 1011, that the message 1002 is sent according to the first forwarding entry.
  • the processor 1040 can send the message 1002 to the SF node 103 through the communication interface 1042 according to the ID of the first interface.
  • the interface that receives the message 1011 is connected to the SFE 102.
  • the message 1003 includes a first parameter.
  • the processor 1040 receives through the communication interface 1042 Message 1003 from SF node 103.
  • the processor 1040 acquires a path ID corresponding to the first parameter from the memory 1041 according to the first parameter included in the message 1003.
  • the processor 1040 obtains the message 1013 according to the path ID and the message 1003 received through the communication interface 1042.
  • the packet 1013 is a packet obtained after the service header is encapsulated in the packet 1003.
  • the service header of the message 1013 includes the path ID.
  • the processor 1040 transmits a message 1013 to the SFE 102 via the communication interface 1042.
  • a second forwarding entry may also be saved in the memory 1041.
  • the second forwarding entry stored in the memory 104 includes an ID of an interface that receives the message 1003 and an ID of the second interface.
  • the second interface is connected to the SFE 102.
  • the processor 1040 can determine, according to the ID of the interface that receives the message 1003, that the message 1003 is sent according to the second forwarding entry.
  • the processor 1040 can transmit the message 1003 to the SFE 102 via the communication interface 1042 according to the ID of the second interface.
  • the interface that receives the message 1003 is connected to the SF node 103.
  • the processor 1040 cooperates with the communication interface 1042 according to the executable instructions and the mapping relationship in the memory 1041, so that the message processing apparatus shown in FIG. 3 executes the message processing apparatus in the embodiment shown in FIG. All the operations performed. It is also considered that the message processing apparatus shown in Fig. 3 is the message processing apparatus in the embodiment shown in Fig. 5.
  • FIG. 4 is a schematic diagram of a message processing apparatus according to an embodiment of the present invention.
  • the message processing apparatus shown in FIG. 4 includes a first receiving unit 1044, a decapsulation unit 1045, a first obtaining unit 1046, and a first forwarding unit 1047.
  • the packet processing apparatus provided in the embodiment corresponding to FIG. 4 further includes: a second receiving unit 1048, a second obtaining unit 1049, a packaging unit 1050, and a second forwarding unit 1051.
  • the packet processing apparatus provided in the embodiment corresponding to FIG. 4 further includes a storage unit 1052.
  • the storage unit 1052 can be used to save the mapping relationship held by the memory 1041 in FIG.
  • the packet processing apparatus provided in the embodiment corresponding to FIG. 4 further includes a control unit 1053.
  • the message processing apparatus shown in FIG. 3 and the message processing apparatus shown in FIG. 4 may be the same apparatus, for example, the message processing apparatus 104 in the network shown in FIG. 2. It can be considered that Fig. 3 shows the contents included in a message processing apparatus from a physical point of view, and Fig. 4 shows the contents included in a message processing apparatus from a logical point of view.
  • the first receiving unit 1044, the first forwarding unit 1047, the second receiving unit 1048, and the second forwarding unit 1051 in FIG. 4 may be implemented by the communication interface 1042 in FIG.
  • the communication interface 1042 may include at least one Physical interface; decapsulation list in Figure 4
  • the element 1045, the first obtaining unit 1046, and the encapsulating unit 1050 may be implemented by the processor 1040 of FIG. 3 according to executable instructions stored by the memory 1041 or according to executable instructions and mapping relationships stored by the memory 1041, and the processor 1040 may include at least A physical processor.
  • FIG. 5 is a flowchart of a packet processing method according to an embodiment of the present invention. The packet processing method provided by the embodiment of the present invention is described in detail below with reference to FIG. 2 to FIG.
  • the SFE 102 sends a message 1011 to the message processing device 104.
  • the SFE 102 can receive the message 1010 sent by the service classifier 101.
  • Message 1010 may be generated by service classifier 101.
  • service classifier 101 receives message 1001.
  • the service classifier 101 determines the path ID of the service chain corresponding to the service type according to the service type corresponding to the message 1001.
  • the service classifier 101 encapsulates the service header in the packet 1001 and obtains the packet 1010.
  • the traffic header of message 1010 includes the path ID of the service chain.
  • the message 1010 received by the SFE 102 is from the SFE 102 on the service chain.
  • the service header of the packet 1010 may further include at least one of a protocol type and metadata (English name is metadata).
  • the metadata may include the ID of the user who sent the message 1001 to the service classifier 101.
  • the SFE 102 can determine the forwarding entry according to the path ID in the service header of the packet 1010.
  • the forwarding entry includes a path ID and an ID of the interface.
  • the SFE 102 can send the message 1011 to the message processing device 104 according to the ID of the interface.
  • the interface may be an interface that the SFE 102 connects to the message processing device 104.
  • the interface may be an interface where the SFE 102 connects to the SF node 103. Since the message processing device 104 is interposed between the SFE 102 and the SF node, the SFE 102 can send the message 1011 to the message processing device 104 without updating or upgrading the forwarding entry in the SFE 102. .
  • the message 1010 received by the SFE 102 may be the same as the message 1011 sent by the SFE 102 to the message processing apparatus 104, or may be different from the message 1011 sent by the SFE 102 to the message processing apparatus 104.
  • the message processing device 104 obtains the path ID of the message 1001 and the service chain.
  • the first receiving unit 1044 receives the message 1011 from the SFE 102.
  • the decapsulation unit 1045 strips the service header of the message 1011, obtains the message 1001, and obtains the path ID of the service chain from the service header.
  • the packet sent by the SFE 102 to the SF node 103 may be a packet including the service header, and the decapsulation unit 1045 may directly obtain the packet 1001 and the service included in the service header from the packet 1011 received by the first receiving unit 1044.
  • the path ID of the chain may be a packet including the service header, and the decapsulation unit 1045 may directly obtain the packet 1001 and the service included in the service header from the packet 1011 received by the first receiving unit 1044.
  • the decapsulation unit 1045 may also write the protocol type included in the service header to the storage unit 1052.
  • the protocol type stored in the storage unit 1052 has a correspondence relationship with the path ID.
  • the decapsulation unit 1045 may also write the metadata included in the service header to the storage unit 1052.
  • the metadata stored in the storage unit 1052 has a correspondence relationship with the path ID.
  • the service header of the message 1011 may include any or all of the protocol type and the metadata.
  • the message processing device 104 processes the message 1001 by using the first parameter determined according to the path ID, and obtains the message 1002.
  • the processing includes adding the first parameter to the message 1001.
  • the first parameter may be the path ID itself, or the first parameter may be data obtained by processing the path ID according to an algorithm.
  • the algorithm can be a hash algorithm or a compression algorithm.
  • the compression algorithm is used to map data larger than N bits into N-bit data. N is the data bit contained in at least one byte.
  • the first obtaining unit 1046 may acquire the message 1002 by adding the first parameter determined according to the path ID to the message 1001. Adding the first parameter determined according to the path ID to the message 1001 means adding the first parameter to the inside of the message 1001, instead of adding an outer message header to the message 1001, and The first parameter is added to the newly added outer header.
  • the first obtaining unit 1046 may obtain the first parameter corresponding to the path ID from the mapping relationship between the path ID and the first parameter saved by the storage unit 1052.
  • the first obtaining unit 1046 may add the first parameter to a preset field in the message 1001.
  • the preset field is a word that the SF node 103 does not modify when performing service processing on the message 1002. At least one field in the segment.
  • the number of preset fields may be determined according to the number of bytes occupied by the first parameter. If the first parameter is a path ID and the path ID is 8 bits, the first obtaining unit 1046 may select a field from the message 1001 to save the path ID. If the first parameter is a path ID and the path ID is greater than 8 bits, the first obtaining unit 1046 may select a plurality of fields from the message 1001 to save the path ID.
  • the first obtaining unit 1046 may select one or more fields in the message 1001 to save the first according to the method of saving the path ID in the message 1001. parameter.
  • the selected one or more fields in the message 1001 are fields that the SF node 103 does not modify during the service processing of the message 1002.
  • the preset field may be a virtual local area network (English name is Virtual Local Area Network, abbreviated as VLAN) field.
  • the packet 1001 is an IPv4 packet
  • the default field may also be a service type of the IPv4 packet (English name is service, the English abbreviation is TOS) field and the survival time (English is called time to live, the English abbreviation is One or more fields in the TTL) field.
  • the packet 1001 is an IPv6 packet
  • the default field may be a stream type of the IPv6 packet (the English name is a traffic class) field, a hop limit (English name is a hop limit) field, and a stream tag (the English name is Flow). Label One or more fields in the field.
  • the first obtaining unit 1046 pre-stores the configuration information of the SF node 103.
  • the configuration information of the SF node 103 can modify the Time-To-Live field when the SF node 103 performs service processing.
  • the first obtaining unit 1046 adds the first parameter to the Type-of-Service field according to the configuration information of the SF node 103, so that the SF node 103 retains the first parameter corresponding to the path ID in the process of processing the message 1002.
  • the first obtaining unit 1046 can map the 24-bit path ID to the 8-bit first parameter and store it in a field of the message 1001.
  • the first obtaining unit 1046 may select an unused value as the first parameter from the value range of the 8-bit data.
  • the first obtaining unit 1046 may store the first parameter corresponding to the path ID to the storage unit 1052.
  • the first obtaining unit 1046 may also add the first parameter to the non-preset field in the message 1001 instead of adding the first parameter to the preset field, where
  • the preset field refers to a field that the SF node 103 will modify when performing service processing on the message 1002.
  • the SF node 103 may first read the first parameter in the process of performing service processing on the message 1002, and then The field is modified, and the first parameter is added back to the modified non-preset field or another non-preset field of the message 1001.
  • the message processing device 104 learns the rules of the first parameter added in the non-preset field, it can be ensured that the first parameter added by the SF node 103 in the non-preset field can still be recognized by the SFE 102.
  • the modified message 1002 is implemented in the present embodiment.
  • the example is still considered to be the message 1002 obtained after processing the message 1001 by the first parameter.
  • the message processing device 104 sends the message 1002 to the SF node 103.
  • the message 1002 to the SF node 103 can be transmitted by the first forwarding unit 1047.
  • the first forwarding unit 1047 can forward the message 1002 according to the first forwarding entry.
  • the first forwarding entry may include an ID of the interface that receives the message 1011 and an ID of the first interface, where the interface of the received message 1011 is connected to the SFE 102, and the first interface is connected to the SF node 103.
  • the first forwarding unit 1047 determines that the packet 1002 is sent according to the first forwarding entry according to the ID of the interface that receives the packet 1011.
  • the first forwarding entry may include a path ID in addition to the ID of the interface that receives the message 1011 and the ID of the first interface.
  • the first forwarding unit 1047 determines to send the message 1002 according to the first forwarding entry according to the ID of the interface that receives the message 1011 and the ID of the interface that receives the message 1011.
  • the first forwarding entry may include a first parameter in addition to the ID of the interface that receives the message 1011 and the ID of the first interface.
  • the first forwarding unit 1047 determines to send the message 1002 according to the first forwarding entry according to the first parameter and the ID of the interface of the received message 1011.
  • the first forwarding unit 1047 After determining that the message 1002 is sent according to the first forwarding entry, the first forwarding unit 1047 sends the message 1002 to the SF node 103 according to the first interface.
  • the method of 502 to 504 is a method in which the message processing device 104 processes the message 1011 transmitted to the SF node 103.
  • the message processing device 104 performs the above processing on the message 1011, and then strips the service header and acquires the message 1002.
  • the SF node 103 can identify and process the message 1002 that is not encapsulated with the service header.
  • the following 505 to 507 are methods in which the message processing apparatus 104 processes the message 1003 transmitted by the SF node 103 to the SFE 102.
  • the message 1003 is a message obtained after the SF node 103 performs service processing on the message 1002.
  • the field in which the message 1003 holds the path ID is the same as the field in which the message 1002 holds the path ID.
  • the following 505 to 507 are optional steps.
  • the SF node 103 sends a message 1003 to the message processing device 104.
  • the SF node 103 can transmit the message 1003 to the message processing device 104 by receiving the interface of the message 1002.
  • the forwarding entry is stored on the SF node 103.
  • the forwarding entry includes a first parameter and an ID of an interface to which the message processing device 104 is connected.
  • the SF node 103 acquires the ID of the interface of the connection message processing device 104 included in the forwarding entry according to the first parameter in the message 1002.
  • the SF node 103 transmits the message 1003 to the message processing device 104 based on the ID of the interface to which the message processing device 104 is connected.
  • the message processing device 104 obtains the message 1013 by processing the message 1003 according to the path ID.
  • the processing includes encapsulating the packet 1003 by using the service header corresponding to the path ID.
  • the second receiving unit 1048 receives the message 1003 from the SF node 103.
  • the message 1003 includes a first parameter.
  • the second obtaining unit 1049 acquires a path ID corresponding to the first parameter according to the first parameter included in the received message 1003.
  • the encapsulating unit 1050 encapsulates the service header on the packet 1003 to obtain the packet 1013.
  • the service header of the message 1013 includes a path ID.
  • the second obtaining unit 1049 may obtain the path ID corresponding to the first parameter from the storage unit 1052.
  • the service header of the packet 1013 obtained by the second obtaining unit 1049 is the same as the traffic header of the packet 1011. For example, if the service header of the packet 1011 in 502 carries the protocol type, the second obtaining unit 1049 may obtain the protocol type corresponding to the path ID from the storage unit 1052 according to the path ID, and add the protocol type to the packet 1013. Business head. If the service header of the packet 1011 in 502 carries the protocol type and the metadata, the second obtaining unit 1049 may obtain the information from the storage unit 1052 according to the path ID. The protocol type and metadata corresponding to the path ID, and the protocol type and metadata are added to the service header of the message 1013.
  • the modified message 1003 is implemented in the present embodiment.
  • the example is still considered to be the message 1003.
  • the message processing device 104 transmits the message 1013 to the SFE 102.
  • the second forwarding unit 1051 transmits a message 1013 to the SFE 102.
  • the second forwarding unit 1051 can forward the message 1013 according to the second forwarding entry.
  • the second forwarding entry includes an ID of an interface that receives the message 1003 and an ID of the second interface.
  • the second forwarding unit 1051 may determine to send the message 1013 to the SFE 102 according to the second forwarding entry according to the ID of the interface that receives the message 1003.
  • the second forwarding unit 1051 may send the message 1013 to the SFE 102 according to the second interface.
  • the second interface is connected to the SFE 102.
  • the second entry may be saved in the storage unit 1052.
  • the interface receiving the message 1003 is connected to the SF node 103.
  • the second forwarding unit 1049 can determine that the message 1003 is from the SF node 103 according to the ID of the interface that receives the message 1003.
  • the second forwarding unit 1049 can send the message 1013 to the SFE 102 by receiving the interface of the message 1011 to reduce the lookup of the forwarding entry.
  • the message processing device 104 can forward any message determined to be from the SF node 103 to the SFE 102.
  • the service classifier 101 may add a second parameter to the service header of the message 1011 in the process of generating the message 1011.
  • the second parameter is used to identify the SF node 103 on the service chain or the last hop SF node of the SF node 103 on the service chain.
  • the second parameter mentioned in the embodiment of the present invention may be information such as a character, a character string, a name, or an index (English name is index).
  • the first obtaining unit 1046 also stores the second parameter included in the service header of the message 1011 in the storage unit 1052.
  • the second parameter in the storage unit 1052 corresponds to the path ID.
  • the first forwarding entry further includes a second parameter.
  • the first forwarding unit 1047 of the 504 determines to send the message 1002 according to the first forwarding entry according to the second parameter and the ID of the interface of the received message 1011.
  • the second obtaining unit 1049 further acquires the second parameter corresponding to the path ID from the storage unit 1052 according to the acquired path ID.
  • Encapsulation unit 1050 also adds a second parameter to the traffic header of message 1013.
  • the message processing device 104 can determine the SF node 103 that receives the message 1002 according to the second parameter, which is helpful to improve. The accuracy of forwarding.
  • the packet processing device 104 can determine the forwarding entry according to the path ID.
  • the first obtaining unit 1046 saves the path ID and the second parameter included in the service header of the message 1011 in the storage unit 1052.
  • the first forwarding entry further includes a path ID and a second parameter.
  • the first forwarding unit 1047 in the 504 may determine to send the message 1002 according to the first forwarding entry according to the second parameter, the path ID, and the ID of the interface that receives the message 1011.
  • the first forwarding entry further includes a first parameter and a second parameter.
  • the first forwarding unit 1047 in the 504 may determine to send the message 1002 according to the first forwarding entry according to the second parameter, the first parameter, and the ID of the interface of the received message 1011.
  • the second obtaining unit 1049 further acquires the second parameter corresponding to the path ID from the storage unit 1052 according to the acquired path ID.
  • Encapsulation unit 1050 also adds a second parameter to the traffic header of message 1013.
  • the service header of the message 1011 mentioned in the foregoing embodiment of the present invention may further include a third parameter.
  • the third parameter is used to identify that the packet 1011 is an OAM packet.
  • the 504 further includes: when the message processing device 104 determines that the message 1011 includes the third parameter, and the forwarding policy is to send the OAM message from the SFE 102 to the SF node 103, the message 1002 is sent to the SF node 103.
  • the control unit 1053 included in the message processing apparatus 104 determines the industry that the decapsulation unit 1045 strips from the message 1011.
  • the service header includes a third parameter, and when the forwarding policy is to send the OAM message from the SFE 102 to the SF node 103, the first forwarding unit 1047 is controlled to send the message 1002 to the SF node 103.
  • the interface mentioned in the above embodiments of the present invention may be an interface of a physical interface, a logical interface or a tunnel. If the interface mentioned in the above embodiment of the present invention is an interface of a tunnel, the message processing apparatus 104 needs to establish a tunnel with the SFE 102 and the SF node 103, respectively.
  • the ID of the interface mentioned in the foregoing embodiment of the present invention belongs to the identifier of the interface, and the identifier of the interface in the embodiment of the present invention may also be identifier information represented by other forms.
  • the above general purpose processor may be a microprocessor or the processor or any conventional processor.
  • the steps of the method disclosed in the embodiment of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the code implementing the above functions may be stored in a computer readable medium.
  • Computer readable media includes computer storage media.
  • a storage medium may be any available media that can be accessed by a computer.
  • the computer readable medium may be a random access memory (English full name is random access memory, abbreviated as RAM), read-only memory (English full name is read-only memory, English abbreviation for ROM), Electrical erasable programmable read-only memory (English full name electrically erasable programmable read-only memory, abbreviated as EEPROM), read-only optical disc (English full name compact disc read-only memory, English abbreviation for CD-ROM) or other disc
  • RAM random access memory
  • read-only memory English full name is read-only memory, English abbreviation for ROM
  • Electrical erasable programmable read-only memory English full name electrically erasable programmable read-only memory, abbreviated as EEPROM
  • read-only optical disc English full name compact disc read-only memory, English abbreviation for CD-ROM
  • the computer readable medium may be a compact disc (English full name compact disc, abbreviated as CD), a laser disc, a digital video disc (English full name digital video disc, abbreviated as DVD), a floppy disk or a Blu-ray disc.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

L'invention concerne un procédé et un dispositif de traitement de paquet qui résolvent le problème selon lequel un nœud de transfert de service (SF) n'est pas capable de traiter un paquet comprenant un en-tête de service. Le procédé consiste : à recevoir, par un dispositif de traitement de paquet, un premier paquet d'une entité de transfert de service (SFE), le premier paquet comportant un deuxième paquet et un en-tête de service encapsulé dans le deuxième paquet, et l'en-tête de service dans le premier paquet comprenant un identificateur (ID) de chemin d'une chaîne de services ; à acquérir, par le dispositif de traitement de paquet, le deuxième paquet et l'ID de chemin ; à traiter, par le dispositif de traitement de paquet, le deuxième paquet selon l'ID de chemin pour acquérir un troisième paquet, le traitement du deuxième paquet consistant : à ajouter un premier paramètre au deuxième paquet, le premier paramètre étant un paramètre déterminé selon l'ID de chemin ; à envoyer, par le dispositif de traitement de paquet, le troisième paquet à un nœud de fonction de service (SF).
PCT/CN2015/078508 2014-05-15 2015-05-08 Procédé et dispositif de traitement de paquet WO2015172675A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410206623.4 2014-05-15
CN201410206623.4A CN105099919B (zh) 2014-05-15 2014-05-15 报文处理方法及装置

Publications (1)

Publication Number Publication Date
WO2015172675A1 true WO2015172675A1 (fr) 2015-11-19

Family

ID=54479323

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078508 WO2015172675A1 (fr) 2014-05-15 2015-05-08 Procédé et dispositif de traitement de paquet

Country Status (2)

Country Link
CN (1) CN105099919B (fr)
WO (1) WO2015172675A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671641A (zh) * 2016-08-24 2021-04-16 华为技术有限公司 报文转发方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101045A1 (fr) * 2015-12-16 2017-06-22 华为技术有限公司 Procédé de sélection d'élément de réseau, et sélecteur d'élément de réseau
CN113055290B (zh) 2016-07-01 2022-12-06 华为技术有限公司 基于业务功能链sfc的报文转发方法、装置和系统
CN107579838A (zh) * 2016-07-05 2018-01-12 中兴通讯股份有限公司 数据处理方法及装置
CN108574638B (zh) * 2017-03-14 2020-10-16 华为技术有限公司 一种数据报文的转发方法和设备
CN107786462B (zh) * 2017-10-30 2020-05-12 新华三技术有限公司 报文转发方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100080226A1 (en) * 2008-10-01 2010-04-01 Mohamed Khalid Service path selection in a service network
CN101772918A (zh) * 2007-08-03 2010-07-07 思科技术公司 服务链的操作、管理和维护(oam)
US20130170424A1 (en) * 2011-12-29 2013-07-04 Qualcomm Incorporated Selectively multiplexing communication streams
CN104283891A (zh) * 2014-10-27 2015-01-14 杭州华三通信技术有限公司 将业务功能节点接入业务链网络的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152270B (zh) * 2013-03-11 2016-06-08 华为技术有限公司 转发报文的方法及路由器
CN103269280B (zh) * 2013-04-23 2017-12-15 华为技术有限公司 网络中开展业务的方法、装置及系统
CN103259728B (zh) * 2013-05-24 2016-03-30 华为技术有限公司 一种ofs带内通信方法及ofs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772918A (zh) * 2007-08-03 2010-07-07 思科技术公司 服务链的操作、管理和维护(oam)
US20100080226A1 (en) * 2008-10-01 2010-04-01 Mohamed Khalid Service path selection in a service network
US20130170424A1 (en) * 2011-12-29 2013-07-04 Qualcomm Incorporated Selectively multiplexing communication streams
CN104283891A (zh) * 2014-10-27 2015-01-14 杭州华三通信技术有限公司 将业务功能节点接入业务链网络的方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671641A (zh) * 2016-08-24 2021-04-16 华为技术有限公司 报文转发方法及装置

Also Published As

Publication number Publication date
CN105099919A (zh) 2015-11-25
CN105099919B (zh) 2018-07-31

Similar Documents

Publication Publication Date Title
US11831526B2 (en) Service chain fault detection method and apparatus
WO2015172675A1 (fr) Procédé et dispositif de traitement de paquet
CN109756425B (zh) 组播转发方法、装置以及bfr
US9992106B2 (en) Generating a host route
US9894003B2 (en) Method, apparatus and system for processing data packet
US10205656B2 (en) Method and apparatus for updating manner of processing packet of service flow
CN105024985B (zh) 一种报文处理方法及装置
US10505895B2 (en) Method and device for storing and sending MAC address entry, and system
US20150003463A1 (en) Multiprotocol Label Switching Transport for Supporting a Very Large Number of Virtual Private Networks
US10505759B2 (en) Access layer-2 virtual private network from layer-3 virtual private network
EP2903218A1 (fr) Procédé et dispositif permettant de modifier et d'acheminer un message dans un réseau de communication de données
US11522795B1 (en) End to end application identification and analytics of tunnel encapsulated traffic in the underlay
US10003503B2 (en) Tunnel type selection method and apparatus
WO2021088629A1 (fr) Procédé et appareil de traitement de paquet de données detnet
US20240048479A1 (en) Packet Forwarding Method and Apparatus, Network Device, and Storage Medium
US11855888B2 (en) Packet verification method, device, and system
WO2021078171A1 (fr) Procédé et dispositif de transmission de message et puce de traitement numérique
US10917502B2 (en) Method for using metadata in internet protocol packets
CN116346938B (zh) 一种算力访问方法、装置、电子设备及存储介质
CN116668375B (zh) 一种报文分流方法、装置、网络设备及存储介质
WO2023088145A1 (fr) Procédé, appareil et dispositif de traitement de paquets
CN116614432A (zh) 报文处理方法、网元设备、控制设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15792538

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15792538

Country of ref document: EP

Kind code of ref document: A1