The present invention provides a service processing method, device and system. The method includes: receiving a service packet, and searching, according to a service identity in the service packet, a service routing table corresponding to the service packet, where the service identity represents a service to be processed by the service packet; and the service routing table includes the service identity, a service label used to represent a service feature in the service, and a routing path for processing the service feature; and setting the service label in the service packet according to the service routing table, and sending, according to the routing path, the service packet to a service processing device configured to process the service feature corresponding to the service label, so that the service processing device processes the service feature corresponding to the service label. The present invention reduces an impact on an original service and improves scalability.

Patent
   RE49049
Priority
Jun 18 2012
Filed
Aug 14 2019
Issued
Apr 19 2022
Expiry
Jun 18 2033
Assg.orig
Entity
Large
0
26
currently ok
10. A service processing control device, comprising:
a receiver, configured to receive a service packet;
a memory storing instructions;
a processor coupled to the memory and the receiver, wherein the processor is configured to execute the instructions to:
search, according to a service identity in the service packet received by the receiver, a service routing table corresponding to the service packet, wherein the service identity represents a service to be processed by the service packet, and the service routing table comprises the service identity, a service label used to represent a service feature in the service, and a routing path for processing the service feature; and
set the service label in the service packet according to the service routing table; and
a transmitter coupled to the processor, configured to send, according to the routing path in the service routing table, the service packet set by at least one hardware the processor to a service processing device configured to process the service feature corresponding to the service label;
wherein the processor is further executes configured to execute the instructions to:
before the service packet is received, acquire the service identity in the service packet and the a service feature string corresponding to the service represented by the service identity, wherein the service feature string comprises one or more service features in the service and a processing sequence of the one or more service features;
encode the service feature to obtain the service label used to represent the service feature;
obtain, according to the service feature string and a the service feature that is supported by the service processing device, a routing path for the service feature; and
generate the service routing table according to the service identity, the service label and the routing path.
6. A service processing control device, comprising:
a receiver, configured to receive a service packet;
a memory storing instructions;
a processor coupled to the memory and the receiver, wherein the processor is configured to execute the instructions to:
search, according to a service identity in the service packet received by the receiver, a service routing table corresponding to the service packet, wherein the service identity represents a service to be processed by the service packet, and the service routing table comprises the service identity, a service label used to represent a service feature in the service, and a routing path for processing the service feature; and
set the service label in the service packet according to the service routing table; and
a transmitter coupled to the processor, configured to send, according to the routing path in the service routing table, the service packet set by at least one hardware the processor to a service processing device configured to process the service feature corresponding to the service label;
wherein the processor is further executes configured to execute the instructions to:
after the service packet is received, resolve the service packet to acquire the service identity in the service packet;
obtain, according to the service identity, the service to be processed by the service packet;
decompose the service to obtain a service feature string corresponding to the service, wherein the service feature string comprises: each one or more service features in the service and a processing sequence of the one or more service feature features;
encode the service feature to obtain the service label used to represent the service feature;
obtain, according to the service feature string and a the service feature that is supported by the service processing device, a routing path for the service feature; and
generate the service routing table according to the service identity, the service label and the routing path.
4. A service processing method, comprising:
receiving, by a service processing control device, a service packet;
searching, by the service processing control device, a service routing table corresponding to the service packet according to a service identity in the service packet, wherein the service identity represents a service to be processed by the service packet, and the service routing table comprises the service identity, a service label used to represent a service feature in the service, and a routing path for processing the service feature;
setting, by the service processing control device, the service label in the service packet according to the service routing table;
sending, by the service processing control device, the service packet to a service processing device according to the routing path, wherein the service processing device is configured to process the service feature corresponding to the service label;
before the searching, by the service processing control device the service routing table corresponding to the service packet according to the service identity in the service packet, further comprising:
after the receiving, by the service processing control device, the service packet, acquiring, by the service processing control device, the service identity in the service packet by resolving the service packet;
obtaining, by the service processing control device, the service to be processed by the service packet according to the service identity;
decomposing, by the service processing control device, the service to obtain a service feature string corresponding to the service, wherein the service feature string comprises: each one or more service feature features in the service and a processing sequence of the one or more service feature features; and
sending, by the service processing control device, the service identity and the service feature string to the service processing device, so that the service processing device generates the service routing table according to the service identity and the service feature string.
9. A service processing method, comprising:
receiving, by a service processing control device, a service packet;
searching, by the service processing control device, a service routing table corresponding to the service packet according to a service identity in the service packet, wherein the service identity represents a service to be processed by the service packet, and the service routing table comprises the service identity, a service label used to represent a service feature in the service, and a routing path for processing the service feature;
setting, by the service processing control device, the service label in the service packet according to the service routing table;
sending, by the service processing control device, the service packet to a service processing device according to the routing path, wherein the service processing device is configured to process the service feature corresponding to the service label;
before the searching, according to a service identity in the service packet, by the service processing control device, a service routing table corresponding to the service packet, further comprising:
before the receiving, by a service processing control device, a service packet, acquiring, by the service processing control device, the service identity in the service packet and a service feature string corresponding to the service represented by the service identity, wherein the service feature string comprises: each one or more service feature features in the service and a processing sequence of the one or more service feature features;
coding, by the service processing control device, the service feature to obtain the service label used to represent the service feature;
obtaining, by the service processing control device, a routing path for the service feature according to the service feature string and a the service feature that is supported by the service processing device; and
generating, by the service processing control device, the service routing table according to the service identity, the service label and the routing path.
1. A service processing method, comprising:
receiving, by a service processing control device, a service packet;
searching, by the service processing control device, a service routing table corresponding to the service packet according to a service identity in the service packet, wherein the service identity represents a service to be processed by the service packet, and the service routing table comprises the service identity, a service label used to represent a service feature in the service, and a routing path for processing the service feature;
setting, by the service processing control device, the service label in the service packet according to the service routing table;
sending, by the service processing control device, the service packet to a service processing device according to the routing path, wherein the service processing device is configured to process the service feature corresponding to the service label;
before the searching, by the service processing control device, the service routing table corresponding to the service packet according to the service identity in the service packet, further comprising:
after the receiving, by the service processing control device, the service packet, acquiring, by the service processing control device, the service identity in the service packet by resolving the service packet;
obtaining, by the service processing control device, the service to be processed by the service packet according to the service identity;
decomposing, by the service processing control device, the service to obtain a service feature string corresponding to the service, wherein the service feature string comprises one or more service features in the service and a processing sequence of the one or more service features;
coding, by the service processing control device, the service feature to obtain the service label used to represent the service feature;
obtaining, by the service processing control device, a routing path for the service feature according to the service feature string and a the service feature that is supported by the service processing device; and
generating, by the service processing control device, the service routing table according to the service identity, the service label and the routing path.
2. The service processing method according to claim 1, wherein the setting, by the service processing control device, the service label in the service packet according to the service routing table, and sending, by the service processing control device, the service packet to a service processing device according to the routing path, comprises:
after the receiving, by the service processing control device, the service packet, setting, by the service processing control device, the service label in the service packet according to the service routing table;
sending, by the service processing control device, the service packet to the service processing device according to the routing path;
receiving, by the service processing control device, a service packet returned by the service processing device, wherein the service packet returned by the service processing device comprises the service label modified by the service processing device according to a result of processing the service feature;
setting, by the service processing control device, in the service packet returned by the service processing device according to the service packet returned by the service processing device and the service routing table, a service label corresponding to a next service feature to be processed; and
sending, by the service processing control device, the service packet set the service label corresponding to the next service feature to be processed to a next service processing device, wherein the next service processing device corresponds to the service label corresponding to the next service feature to be processed.
3. The service processing method according to claim 2, wherein the setting, by the service processing control device, in the service packet returned by the service processing device according to the service packet returned by the service processing device and the service routing table, a service label corresponding to a next service feature to be processed comprises:
searching, by the service processing control device, the service routing table according to the service label or a service feature processing sequence number in the service packet returned by the service processing device, and
setting, by the service processing control device, in the service packet returned by the service processing device, the service label corresponding to the next service feature to be processed.
5. The service processing method according to claim 4, wherein the setting, by the service processing control device, the service label in the service packet according to the service routing table, and sending, by the service processing control device, the service packet to the service processing device according to the routing path, comprises:
after the receiving, by the service processing control device, the service packet, setting, by the service processing control device, the service label in the service packet according to the service routing table; and
sending, by the service processing control device, the service packet to the service processing device according to the routing path, so that the service processing device processes the service feature corresponding to the service label and sends the service packet to a next service processing device according to the service routing table.
7. The service processing control device according to claim 6, wherein the processor executes is further configured to execute the instructions to:
after the service packet is received, set the service label in the service packet according to the service routing table;
send, according to the routing path, the service packet to the service processing device;
receive a service packet returned by the service processing device, wherein the service packet returned by the service processing device comprises the service label modified by the service processing device according to a result of processing the service feature;
set, in the service packet returned by the service processing device according to the service packet returned by the service processing device and the service routing table, a service label corresponding to a next service feature to be processed; and
send the service packet set the service label corresponding to the next service feature to be processed to a next service processing device, wherein the next service processing device corresponds to the service label corresponding to the next service feature to be processed.
8. The service processing control device according to claim 7, wherein the processor executes is further configured to execute the instructions to:
search the service routing table according to the service label or a service feature processing sequence number in the service packet returned by the service processing device; and
set, in the service packet returned by the service processing device, the service label corresponding to the next service feature to be processed.

This application is by the service packetby the service packetby the service packet.

803: The service processing control device 1 decomposes a service to obtain a service feature string corresponding to the service.

For example, after the service is decomposed, the following information may be obtained: It is assumed that a service to be processed by the service packet includes a service feature A, a service feature B, a service feature C and a service feature D. First, the service feature A is processed, where different processing results may exist after the service feature A is processed, and it is assumed that three results, 1, 2 or 3, of processing the service feature A exist. If the result of processing the service feature A is 1, the service feature C continues to be processed, and finally the service feature B is processed; if the result of processing the service feature A is 2, the service feature D continues to be processed; and if the result of processing the service feature A is 3, the service processing ends.

804: The service processing control device 1 sends the service identity and the service feature string to each service processing device.

Referring to FIG. 7, the service processing control device 1 is connected to each service processing device, and therefore, the service processing control device 1 can send the obtained service identity and service feature string to each service processing device.

805: Each service processing device encodes a service feature to obtain a service label used to represent the service feature.

A service feature encoding rule or a service feature encoding table may be preset on each service processing device. Herein, the service feature is encoded according to the preset service feature encoding rule or the service feature encoding table, to generate a service label corresponding to the service feature.

806: Each service processing device obtains, according to the service feature string, and service features that are supported by multiple service processing devices separately, a routing path for the service features; and generates a service routing table according to the service identity, the service label, and the routing path.

A method for generating a service routing table in this embodiment is the same as that in Embodiment 4, and details are not described again. Referring to the following Table 7, Table 7 is a service routing table of the service processing control device 2 in FIG. 7, and service routing tables of the service processing device 1, the service processing device 2 and the service processing device 3 are the same as those in Embodiment 4, for which reference may be made to Embodiment 4. A service routing table of the service processing control device 1 is the same as that of the service processing device 0.

TABLE 7
Service routing table of service processing control device 2
Result of
processing Next-hop
Ingress Flow Incoming incoming Egress service
port label service label service feature port label
1 1 None No 0 None

807: The service processing control device 1 receives the service packet through the port 4.

808: The service processing control device 1 acquires, according to the flow label in the service packet, a service routing table corresponding to the service packet, and sets a service label A in the service packet according to the service routing table; and sends, according to the routing path, the service packet to the service processing device 3 configured to process a service feature A.

809: The service processing device 3 processes a service feature corresponding to the service label, and determines next-step processing according to a result of processing the service feature.

For example, if the result of processing the service feature A is 1, the service processing device 3 obtains by searching the table that a corresponding egress port is 2 and a next-hop service label is CB, and 810 and 811 continue to be performed; if the result of processing the service feature A is 2, the service processing device 3 obtains by searching the table that a corresponding egress port is 3 and a next-hop service label is D, and 812 and 813 continue to be performed; and if the result of processing the service feature A is 3, the service processing device 3 obtains by searching the table that a corresponding egress port is none and a next-hop service label is none, and the service processing device 3 no longer forwards the packet, for example, may discard the service packet directly.

810: The service processing device 3 modifies the service label in the packet to CB, that is, the service processing device 3 sets, in the service packet, a service label corresponding to a service feature that is to be processed in a next step, and then forwards the packet by using a port 2 of the service processing device 3, and sends the packet to the service processing device 2.

811: The service processing device 2 receives the service packet, and first processes the service feature C and then processes the service feature B according to the service label CB in the packet; and then obtains by searching Table 5 that a corresponding egress port is 3 and a next-hop service label is none, and therefore deletes the service label and sends the packet to the service processing device 1 through a port 3, and the procedure jumps to 813.

812: The service processing device 3 modifies the service label in the packet to D, that is, the service processing device 3 sets, in the service packet, a service label corresponding to a service feature that is to be processed in a next step, and then forwards the packet by using a port 3 of the service processing device 3, and sends the packet to the service processing device 1.

813: The service processing device 1 receives the service packet, and performs next-step processing on the service packet according to the service label in the packet, where the processing is sending the packet from the port 4 to the service processing control device 2.

In this embodiment, referring to Table 6, the service label in the service packet received by the service processing device 1 (that is, an incoming service label) may have two results, which may be label-free or the service label D. No matter which service label it is, the egress port corresponding to the next-step processing is 4, and the next-hop service label is none; therefore, the service processing device 1 sends the service packet from the port 4 of the service processing device 1 to the service processing control device 2, and when the service label is D, the service label is deleted before the service packet is sent.

814: According to the service routing table shown in Table 7, the service packet received by the service processing control device 2 from the service processing device 1 has no service label, that is, a corresponding incoming service label is none; the service processing control device 2 searches the service routing table to obtain that a corresponding egress port is 0 and a next-hop service label is none, which indicates that there is no remaining service feature to be processed, so that the service processing control device 2 sends the service packet out of the service processing system from a port 0, and the processing procedure of the service packet ends.

A service processing control device provided in this embodiment can execute a service processing method according to any embodiment of the present invention. This embodiment only simply describes a structure of the service processing control device, and for a detailed structure and working principle of the service processing control device, reference may be made to any method embodiment of the present invention.

FIG. 9 is a schematic structural diagram of an embodiment of a service processing control device according to the present invention. As shown in FIG. 9, the service processing control device may include: a receiver 91, a searching unit 92, a processing unit 93 and a transmitter 94, where

the receiver 91 is configured to receive a service packet;

the searching unit 92 is configured to search, according to a service identity in the service packet received by the receiver 91, a service routing table corresponding to the service packet, where the service identity represents a service to be processed by the service packet; and the service routing table includes a service label used to represent a service feature in the service, and a routing path for processing the service feature;

the processing unit 93 is configured to set the service label in the service packet according to the service routing table searched by the searching unit 92; and

the transmitter 94 is configured to send, according to the routing path in the service routing table, the service packet set by the processing unit 93 to a service processing device configured to process the service feature corresponding to the service label, so that the service processing device processes the service feature corresponding to the service label.

FIG. 10 is a schematic structural diagram of another embodiment of a service processing control device according to the present invention. As shown in FIG. 10, the service processing control device is based on the structure shown in FIG. 9, and the service processing control device may further include: a service routing control unit 95, where the service routing control unit 95 may include: a service identifying subunit 951, a service decomposing subunit 952, an encoding processing subunit 953 and a route generating subunit 954, where

the service identifying subunit 951 is configured to: after the receiver 91 receives the service packet, resolve the service packet to acquire the service identity in the service packet, and obtain, according to the service identity, the service to be processed by the service packet;

the service decomposing subunit 952 is configured to decompose the service to obtain a service feature string corresponding to the service, where the service feature string includes: each service feature in the service and a processing sequence of the service feature;

the encoding processing subunit 953 is configured to encode the service feature to obtain the service label used to represent the service feature; and

the route generating subunit 954 is configured to obtain, according to the service feature string and a service feature that is supported by the service processing device, a routing path for the service feature; and generate the service routing table according to the service identity, the service label, and the routing path.

FIG. 11 is a schematic structural diagram of yet another embodiment of a service processing control device according to the present invention. As shown in FIG. 11, the service processing control device is based on the structure shown in FIG. 9, and the service processing control device may further include: a service routing control unit 95, where the service routing control unit 95 may include: a service information acquiring subunit 1001, an encoding processing subunit 1002 and a route generating subunit 1003, where a function of the encoding processing subunit 1002 is the same as that of the encoding processing subunit 953, and a function of the route generating subunit 1003 is the same as that of the route generating subunit 954; and

Further, FIG. 12 is a schematic structural diagram of yet another embodiment of a service processing control device according to the present invention. As shown in FIG. 12, the service processing control device is based on the structure shown in FIG. 9, and the processing unit 93 may further include: a packet sending subunit 931, a packet receiving subunit 932 and a packet control subunit 933; and the processing units 93 in FIG. 10 and FIG. 11 may also have the same structure, which is not shown in the figures, where

Further, the packet control subunit 933 is specifically configured to search the service routing table according to the service label or a service feature processing sequence number in the service packet returned by the service processing device, and set, in the service packet, the service label corresponding to the next service feature to be processed.

A service processing device provided in this embodiment can execute a service processing method according to any embodiment of the present invention. This embodiment only simply describes a structure of the service processing device, and for a detailed structure and working principle of the service processing device, reference may be made to any method embodiment of the present invention.

FIG. 13 is a schematic structural diagram of an embodiment of a service processing device according to the present invention. As shown in FIG. 13, the service processing device may include: a receiver 1301 and a service processing unit 1302, where

FIG. 14 is a schematic structural diagram of another embodiment of a service processing device according to the present invention. As shown in FIG. 14, the service processing device is based on FIG. 13 and may further include: a label modifying unit 1303 and a transmitter 1304, where

FIG. 15 is a schematic structural diagram of yet another embodiment of a service processing device according to the present invention. As shown in FIG. 15, the service processing device is based on FIG. 13 and may further include: a storing unit 1305, an inserting unit 1306 and a transmitter 1307, where

FIG. 16 is a schematic structural diagram of yet another embodiment of a service processing device according to the present invention. As shown in FIG. 16, the service processing device is based on FIG. 15 and may further include: a service routing control unit 1308, where the service routing control unit 1308 includes: an information receiving subunit 1401, an encoding processing subunit 1402 and a route generating subunit 1403, where

This embodiment provides a service processing system, where the system may include the service processing control device according to any embodiment of the present invention, and the service processing device according to any embodiment of the present invention. For a connection relationship between the service processing control device and the service processing device, and their respective structures and working principles, reference may be made to the method embodiments and the device embodiments of the present invention.

Persons of ordinary skill in the art may understand that all or a part of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program runs, the steps of the method embodiments are performed. The foregoing storage medium includes: any medium that can store program code, such as a ROM, a RAM, a magnetic disk, or an optical disc.

Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present invention rather than limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, as long as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present invention.

Zheng, Ruobin

Patent Priority Assignee Title
Patent Priority Assignee Title
8711838, Sep 23 2011 Juniper Networks, Inc. Using network labels without standard-defined syntax and semantics
20070286090,
20080165779,
20080177896,
20080262990,
20080317054,
20090037713,
20090168779,
20100043068,
20100080226,
20100157963,
20100165985,
20110158237,
20120163381,
20130279508,
20130301412,
20130336315,
20150163331,
20160112313,
CN101399774,
CN101674221,
CN102404695,
EP2852109,
WO2008152642,
WO2010028545,
WO2010045878,
/
Executed onAssignorAssigneeConveyanceFrameReelDoc
Aug 14 2019Huawei Technologies Co., Ltd.(assignment on the face of the patent)
Date Maintenance Fee Events
Aug 14 2019BIG: Entity status set to Undiscounted (note the period is included in the code).
Jan 09 2025M1552: Payment of Maintenance Fee, 8th Year, Large Entity.


Date Maintenance Schedule
Apr 19 20254 years fee payment window open
Oct 19 20256 months grace period start (w surcharge)
Apr 19 2026patent expiry (for year 4)
Apr 19 20282 years to revive unintentionally abandoned end. (for year 4)
Apr 19 20298 years fee payment window open
Oct 19 20296 months grace period start (w surcharge)
Apr 19 2030patent expiry (for year 8)
Apr 19 20322 years to revive unintentionally abandoned end. (for year 8)
Apr 19 203312 years fee payment window open
Oct 19 20336 months grace period start (w surcharge)
Apr 19 2034patent expiry (for year 12)
Apr 19 20362 years to revive unintentionally abandoned end. (for year 12)