WO2014127701A1 - 一种业务报文处理方法、装置及系统 - Google Patents
一种业务报文处理方法、装置及系统 Download PDFInfo
- Publication number
- WO2014127701A1 WO2014127701A1 PCT/CN2014/071897 CN2014071897W WO2014127701A1 WO 2014127701 A1 WO2014127701 A1 WO 2014127701A1 CN 2014071897 W CN2014071897 W CN 2014071897W WO 2014127701 A1 WO2014127701 A1 WO 2014127701A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service
- message
- identifier
- packet
- atom
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 238000012545 processing Methods 0.000 claims abstract description 335
- 238000000034 method Methods 0.000 claims abstract description 62
- 238000005538 encapsulation Methods 0.000 claims description 29
- 230000008569 process Effects 0.000 description 28
- 238000010586 diagram Methods 0.000 description 21
- 230000006870 function Effects 0.000 description 16
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5003—Managing SLA; Interaction between SLA and QoS
- H04L41/5019—Ensuring fulfilment of SLA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5077—Network service management, e.g. ensuring proper service fulfilment according to agreements wherein the managed service relates to simple transport services, i.e. providing only network infrastructure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/78—Architectures of resource allocation
- H04L47/781—Centralised allocation of resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/42—Centralised routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/72—Routing based on the source address
Definitions
- the invention relates to a Chinese patent which is submitted to the Chinese Patent Office on February 22, 2013, and whose application number is CN 201310057650.5, and whose invention name is "a business document processing method, device and system". Priority of the application, the entire contents of which are incorporated herein by reference.
- the present invention relates to the field of Internet technologies, and in particular, to a service message processing method, apparatus, and system. BACKGROUND With the rapid development of Internet technologies, the types of services that the Internet can provide to users are becoming more and more abundant, and the logic of services is becoming more and more complicated. When arranging a service processor, the general method is to allocate one service processor or one processing module to each service. However, this way of arranging business processors can result in a large waste of resources.
- a service processor or a processing module for allocating a service processor may be allocated for each basic service.
- the service processor or processing module allocated to the basic service is called a service atom, and each service atom is connected through a network to form a service process. system.
- service routing a combination of required service atoms is allocated in the service processing system, and corresponding service messages are sent between service atoms in a corresponding order ( It is called service routing) to perform the processing of each basic service separately, and finally realize complete business processing.
- service routing It is called service routing
- a service processing system composed of service atoms predetermines a service path in which a service message is transmitted in a service processing system (the service path is A service processing sequence in which a plurality of service atoms are connected in series), the service packets can only pass through the service channels in the service path according to the predetermined service path, so that only the chained services can be processed, and the service packets are processed.
- the service path is A service processing sequence in which a plurality of service atoms are connected in series
- the service packets can only pass through the service channels in the service path according to the predetermined service path, so that only the chained services can be processed, and the service packets are processed.
- its target business atom can only be determined, which can be handled by the business processing system.
- the scope of the business has formed a large limit.
- the embodiments of the present invention provide a method, a device, and a system for processing a service packet.
- the technical solution is as follows:
- the first aspect provides a method for processing and forwarding a service packet, which is applied to a service processing system, where the method includes:
- the traffic classification device receives the first service packet.
- the traffic classification device acquires a first service identifier, where the first service identifier is a service identifier of the first service >3 ⁇ 4 text;
- the flow classification device queries the first traffic classification entry according to the first service identifier, so as to obtain the first service path identifier, where the first traffic classification entry includes the first service identifier and the first service path Correspondence relationship of the logo;
- the traffic classification device encapsulates the first service packet to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device;
- the traffic classification device sends the first packet to a central switching device.
- the second aspect provides a method for processing a service packet, where the method includes:
- the traffic classification device receives the first service packet.
- the traffic classification device acquires a first service identifier, where the first service identifier is a service identifier of the first service >3 ⁇ 4 text;
- the flow classification device queries the first flow classification entry according to the first service identifier, so as to obtain the first service path identifier and the device identifier of the first service atom, where the first flow classification entry includes the first service Corresponding relationship between the identifier, the first service path identifier, and the device identifier of the first service atom;
- the traffic classification device encapsulates the first service packet to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device;
- the traffic classification device sends the first packet to the first service atom.
- the third aspect provides a service packet processing method, which is applied to a service processing system, where the method includes:
- the central switching device receives the first packet, where the first packet encapsulates the first service packet, where the first packet includes the first service path identifier and the source device identifier of the first packet.
- the central switching device queries the first service routing forwarding entry according to the source device identifier of the first packet and the first service path identifier, so as to obtain the device identifier of the first service atom, where the first service
- the routing forwarding entry includes a source device identifier of the first packet, a correspondence between the first service path identifier, and a device identifier of the first service atom;
- the central switching device sends a second packet to the first service atom, where the second packet encapsulates the first service packet, and the second packet further includes the first service path identifier .
- the first embodiment of the third aspect is based on the third aspect.
- the source device identifier of the first packet includes a device identifier of the traffic classification device, or the source device identifier of the first packet includes a device identifier of the service atom.
- the second embodiment of the third aspect is based on the third aspect or the first embodiment of the third aspect.
- the method further includes:
- a third packet that is sent by the first service atom, where the third packet includes a second service path identifier, where the third packet is further encapsulated with a second service packet, where The second service packet includes a payload payload portion of the first service packet, a payload payload of the first service packet, or the first service packet.
- the central switching device queries the second service routing forwarding entry according to the second service path identifier and the source device identifier of the third packet, so as to obtain the device identifier of the second service atom, where the second service
- the routing forwarding entry includes a source device identifier of the third packet, a correspondence between the second service path identifier, and a device identifier of the second service atom;
- the central switching device sends a fourth packet to the second service atom, where the fourth packet encapsulates the second service packet, and the fourth packet further includes the second service path identifier .
- the fourth aspect provides a service packet processing method, which is applied to a service processing system, where the method includes:
- a second packet sent by the first service atom receiving center switching device where the second packet is encapsulated A first service packet, where the second packet further includes a first service path identifier;
- the first service atom performs the first service processing according to the information in the first service packet, to obtain a first processing result
- the first service atom queries the first path switch entry according to the first process result and the first service path identifier, so as to obtain the second service path identifier, where the first path switch entry includes the a first processing result, a correspondence between the first service path identifier and the second service path identifier;
- the first service atom sends a third packet to the central switching device, where the source device identifier of the third packet is the device identifier of the first service atom, and the third packet encapsulates the second packet.
- a service packet where the third packet includes the second service path identifier, where the second service packet includes a payload payload portion of the first service packet, and the first service packet The payload of the payload or all of the first service is defamatory.
- the fifth aspect provides a service packet processing method, which is applied to a service processing system, where the method includes:
- the first service atom receives the first packet, and the first packet is encapsulated with the first service packet, where the first packet further includes the first service path identifier;
- the first service atom performs the first service processing according to the information in the first service packet, to obtain a first processing result
- the first service atom queries the first path exchange entry according to the source device identifier of the first packet, the first processing result, and the first service path identifier, so as to obtain the second service path identifier and the second a device identifier of the service atom, where the first path switch entry includes a source device identifier of the first packet, the first processing result, the first service path identifier, and the second service path identifier Corresponding relationship with the device identifier of the second service atom;
- the first service atom sends a second packet to the second service atom, where the source device identifier of the second packet is a device identifier of the first service atom, and the second packet encapsulates a packet a second service packet, where the second packet includes the second service path identifier, where the second service packet includes a payload payload portion of the first service packet, and the first service packet All or the first service of the payload of the text is written.
- a sixth aspect provides a flow classification device, which is applied to a service processing system, where the flow classification device Includes:
- a receiving module configured to receive a first service packet
- An obtaining module configured to obtain a first service identifier, where the first service identifier is a service identifier of the first service >3 ⁇ 4 text;
- a querying module configured to query the first traffic classification entry according to the first service identifier, to obtain the first service path identifier, where the first traffic classification entry includes the first service identifier and the first service path Correspondence relationship of the logo;
- An encapsulating module configured to encapsulate the first service packet, to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device;
- the seventh aspect provides a traffic classification device, which is applied to a service processing system, where the traffic classification device includes:
- a receiving module configured to receive a first service packet
- An obtaining module configured to obtain a first service identifier, where the first service identifier is a service identifier of the first service >3 ⁇ 4 text;
- a querying module configured to query the first traffic classification entry according to the first service identifier, to obtain the first service path identifier and the device identifier of the first service atom, where the first traffic classification entry includes the first service Corresponding relationship between the identifier, the first service path identifier, and the device identifier of the first service atom;
- An encapsulating module configured to encapsulate the first service packet, to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device;
- the eighth aspect provides a central switching device, which is applied to a service processing system, where the central switching device includes:
- a receiving module configured to receive a first packet, where the first packet is encapsulated with a first service packet, where the first packet includes a first service path identifier and a source device identifier of the first packet;
- a querying module configured to use, according to the source device identifier of the first packet, the first service path identifier Querying the first service routing forwarding entry to obtain the device identifier of the first service atom, where the first service routing forwarding entry includes the source device identifier of the first packet, and the first service path identifier Corresponding relationship with the device identifier of the first service atom;
- a sending module configured to send a second packet to the first service atom, where the second packet encapsulates the first service packet, where the second packet further includes the first service path identifier .
- the first embodiment of the eighth aspect is based on the eighth aspect.
- the source device identifier of the first packet includes a device identifier of the traffic classifier, or the source device identifier of the first packet includes a device identifier of the service atom.
- the second embodiment of the eighth aspect is based on the first embodiment of the eighth aspect or the eighth aspect. In a second embodiment of the eighth aspect,
- the receiving module is further configured to receive a third packet that is sent by the first service atom, where the third packet includes a second service path identifier, and the third packet further includes a second service packet.
- the second service text includes a part of the payload of the first service text, all of the payload of the first service message, or the first service packet;
- the querying module is further configured to query, according to the second service path identifier and the source device identifier of the third packet, a second service routing forwarding entry, to obtain a device identifier of the second service atom, where
- the second service routing forwarding entry includes a source device identifier of the third packet, a correspondence between the second service path identifier, and a device identifier of the second service atom;
- the sending module is further configured to send a fourth packet to the second service atom, where the fourth packet encapsulates the second service packet, and the fourth packet further includes the second packet Business path identifier.
- the ninth aspect provides a first service atom, which is applied to a service processing system, where the first service atom includes:
- a receiving module configured to receive a second packet sent by the central switching device, where the second packet is encapsulated with a first service packet, where the second packet further includes a first service path identifier;
- a processing module configured to perform first service processing according to the information in the first service packet, to obtain a first processing result
- a querying module configured to query the first path switching entry according to the first processing result and the first service path identifier, to obtain a second service path identifier, where the first path switching table
- the item includes a first processing result, a correspondence between the first service path identifier and the second service path identifier;
- a sending module configured to send a third packet to the central switching device, where the source device identifier of the third packet is a device identifier of the first service atom, and the third packet encapsulates a second service a packet, the third packet includes the second service path identifier, where the second service packet includes a part of a payload of the first service text, and the first service is >3 ⁇ 4 All or the first service message of the payload.
- the tenth aspect provides a first service atom, which is applied to a service processing system, where the first service atom includes:
- a receiving module configured to receive a first packet, where the first packet encapsulates a first service packet, where the first packet further includes a first service path identifier;
- a processing module configured to perform first service processing according to the information in the first service packet, to obtain a first processing result
- a querying module configured to query the first path switching entry according to the source device identifier, the first processing result, and the first service path identifier of the first packet, to obtain the second service path identifier and the second service
- the device identifier of the atom where the first path switch entry includes the source device identifier of the first packet, the first processing result, the first service path identifier, the second service path identifier, and Corresponding relationship of device identifiers of the second service atom;
- a sending module configured to send a second packet to the second service atom, where a source device identifier of the second packet is a device identifier of the first service atom, and a second packet is encapsulated with a second packet a service packet, where the second packet includes the second service path identifier, where the second service packet includes a part of the payload of the first service text, and the first service is >3 ⁇ 4 All of the payload payload or the first service message.
- the eleventh aspect provides a service processing system, wherein the service processing system includes a traffic classification device, a central switching device, and at least one service atom, where:
- the traffic classification device is configured to receive a first service packet, obtain a first service identifier, where the first service identifier is a service identifier of the first service packet, and query the first traffic classification according to the first service identifier.
- the packet is encapsulated to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where the source device identifier of the first packet includes The device identifier of the traffic classification device; sending the first packet to the central switching device;
- the central switching device is configured to receive a first packet, where the first packet is encapsulated with a first service packet, where the first packet includes a first service path identifier and a source of the first packet
- the device identifier is configured to query the first service routing forwarding entry according to the source device identifier of the first packet and the first service path identifier, so as to obtain the device identifier of the first service atom, where the first service route is transferred
- the publication item includes a source device identifier of the first packet, a correspondence between the first service path identifier and a device identifier of the first service atom, and a second packet sent to the first service atom, where The second packet is encapsulated with the first service packet, and the second packet further includes the first service path identifier.
- the first service atom is configured to receive a second packet sent by the central switching device, where the second packet is encapsulated with a first service packet, and the second packet further includes a first service path identifier;
- the information in the first service packet is processed by the first service, and the first processing result is obtained.
- the first path exchange entry is queried according to the first processing result and the first service path identifier, so as to obtain the second service.
- the source device identifier of the third packet is the device identifier of the first service atom
- the third packet encapsulates a second service packet
- the third packet includes the second service a path identifier, where the second service packet includes a payload payload portion of the first service packet, and all or a first payload payload of the first service packet Business message.
- the first embodiment of the eleventh aspect is based on the eleventh aspect.
- the central switching device is further configured to:
- a twelfth aspect provides a service processing system, the service processing system comprising a flow classification device and at least one service atom, wherein:
- the traffic classification device is configured to receive a first service packet, obtain a first service identifier, where the first service identifier is a service identifier of the first service packet, and query the first traffic classification according to the first service identifier.
- the first service packet is encapsulated to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet,
- the source device identifier of the first packet includes the device identifier of the traffic classifier device, and the first packet is sent to the first service atom.
- the first service atom is configured to receive a first packet, where the first packet is encapsulated with a first service packet, and the first packet further includes a first service path identifier; The information in the packet is processed by the first service, and the first processing result is obtained. The first path exchange entry is queried according to the source device identifier, the first processing result, and the first service path identifier of the first packet.
- the first path switch entry includes the source device identifier of the first packet, the first processing result, and the first Corresponding relationship between the service path identifier, the second service path identifier, and the device identifier of the second service atom; sending a second packet to the second service atom, where the source device identifier of the second packet is a device identifier of the first service atom, the second packet is encapsulated with a second service packet, and the second packet includes the second service path identifier, where the second service packet is The part of the payload of the first service packet, the payload of the first service packet, or the first service of the first service.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- FIG. 1 is a flowchart of a method for processing a service packet according to an embodiment of the present invention
- FIG. 2 is a flowchart of a service packet processing method according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a service packet processing method according to an embodiment of the present invention.
- FIG. 4 is a flowchart of a method for processing a service packet according to an embodiment of the present invention.
- FIG. 5 is a flowchart of a method for processing a service packet according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of a service path provided by an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a service processing system according to an embodiment of the present invention.
- FIG. 8 is a flowchart of a method for processing a service packet according to an embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of a service processing system according to an embodiment of the present invention.
- FIG. 10 is a flowchart of a method for processing a service packet according to an embodiment of the present invention.
- FIG. 11 is a schematic structural diagram of a stream classification device according to an embodiment of the present invention.
- FIG. 12 is a schematic structural diagram of a center switching device according to an embodiment of the present invention.
- FIG. 13 is a schematic structural diagram of a service atom according to an embodiment of the present invention.
- FIG. 14 is a schematic structural diagram of a stream classification device according to an embodiment of the present invention.
- FIG. 15 is a schematic structural diagram of a service atom according to an embodiment of the present invention.
- FIG. 16 is a schematic structural diagram of a stream classification device according to an embodiment of the present invention.
- FIG. 17 is a schematic structural diagram of a center switching device according to an embodiment of the present invention.
- FIG. 18 is a schematic structural diagram of a service atom according to an embodiment of the present invention.
- FIG. 19 is a schematic structural diagram of a stream classification device according to an embodiment of the present invention.
- FIG. 20 is a schematic structural diagram of a service atom according to an embodiment of the present invention.
- FIG. 21 is a schematic structural diagram of a service processing system according to an embodiment of the present invention.
- FIG. 22 is a schematic structural diagram of a service processing system according to an embodiment of the present invention.
- the embodiment of the invention provides a service packet processing method, which is applied to a service processing system.
- the service processing system may include a traffic classification device and at least one service atom, and may also include at least one egress device, and may further include a central switching device, and may further include a control device.
- the traffic classification device can be used as an entry for the service processing system to receive service packets sent to the service processing system and forward them to other devices in the service processing system.
- the egress device is an egress of the service processing system and is used to send the service packets processed by the service processing system to the external network (can be sent according to the Internet protocol).
- the central switching device acts as a forwarding intermediary and is used to forward service packets between devices in the service processing system.
- the control device can be used to control some or all of the devices in the business processing system.
- the above-mentioned devices in the service processing system may be collectively set on the same machine, or may be separately set on different machines, or may be set in any combination, and the present invention is not limited thereto.
- the forwarding function and processing function of the same service atom can be arranged on different devices.
- the forwarding functions of multiple service atoms may be arranged on the same device (or entity unit), and the processing functions of these service atoms may be respectively arranged on different devices (or physical units).
- the embodiment of the invention provides a service packet processing method, which is applied to a service processing system.
- a central switching device exists in the service processing system in this embodiment.
- the processing procedure of the flow classification device in the method may include the following steps:
- Step 101 The traffic classification device receives the first service packet.
- the traffic classification device can be used as an entry for the service processing system, and the traffic classification device is configured to receive the service packet sent to the service processing system and forward it to other devices in the service processing system.
- Step 102 The traffic classification device obtains a first service identifier, where the first service identifier is a service identifier of the first service packet.
- the service identifier may be a preset identifier for marking each service, and the service identifier may correspond to the service requested to be processed.
- the service identifier may be at least one element of the service quintuple, for example, the destination address, which may correspond to the service requested by the service text by the destination address, and the service identifier may also be a quintuple of the service packet.
- the service identifier may also be a destination MAC (Media Access Control) address in the service.
- Step 103 The traffic classification device queries the first traffic classification entry according to the first service identifier, so as to obtain the first service path identifier.
- the first flow classification entry includes the first service identifier and the first Correspondence of service path identifiers.
- the traffic classification device may store the traffic classification table, and record the correspondence between the service identifier and the service path identifier in the table.
- the service identifier lookup table in the service packet sent from the outside of the service processing system, the corresponding service path identifier can be queried.
- the first traffic classification entry including the first service identifier is queried according to the first service identifier lookup table, and the first service path identifier corresponding to the first service identifier is obtained in the entry.
- Step 104 The traffic classification device encapsulates the first service packet, and obtains a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where the The source device identifier of the packet includes the device identifier of the traffic classifier.
- the encapsulation is performed on the inside of the service processing system, and specifically, the header used in the service processing system is added outside the first service packet to obtain the first packet.
- the header of the service system content may include a service path identifier, where the service path identifier is an identifier of a service path to which the packet obtained by the service packet is currently in the service processing system.
- the source device identifier of the packet may also be included in the header.
- the header may also include the destination device identifier of the message.
- the information in the header may be arranged in the order of the source device identifier, the destination device identifier, and the service path identifier, where the source device identifier is at the outermost side of the header, and the service path identifier is at the innermost side of the header.
- the service path identifier may be the first service path identifier obtained in the foregoing step 103, and the source device identifier may be the device identifier of the traffic classification device, and the destination device identifier may be the device identifier of the central switching device.
- the source device of the packet may be a device that sends the packet in two adjacent devices.
- the destination device may be two adjacent devices.
- the device that receives the message in the device correspondingly, the source device identifier is the identifier of the original device, and the destination device identifier is the identifier of the destination device.
- Step 105 The traffic classification device sends the first packet to the central switching device.
- the traffic classification device may pre-record the port connected to the central switching device.
- the first packet may be sent through the port.
- the traffic classification device can record the device identifier of the device to which the device is connected, and the corresponding relationship between the IP address of the device (Internet Protocol) and the port.
- the traffic classifier can search for the device identifier of the central switching device. Port, and send the first port through the found port.
- the embodiment of the invention provides a service packet processing method, which is applied to a service processing system.
- a central switching device exists in the service processing system in this embodiment.
- the central switching device acts as a forwarding intermediary for forwarding service packets between devices (flow classification devices, service atoms, and egress devices, etc.) within the service processing system, and each service atom,
- the traffic classification device and the egress device can be respectively connected to the central switching device.
- Step 201 The central switching device receives a first packet, where the first packet encapsulates a first service packet, where the first The message includes the first service path identifier and the source device identifier of the first text.
- the first packet in the second embodiment may be the first packet sent by the traffic classification device to the central switching device in the first embodiment, or may be the packet sent by the service atom to the central switching device.
- the first service packet may be the first service packet in the first embodiment, or may be a service packet encapsulated in a packet sent by the service atom to the central switching device.
- the first service path identifier may be the first service path identifier in the first embodiment, or may be the service path identifier encapsulated in the packet sent by the service atom to the central switching device.
- the second embodiment can be understood as the continuation of the first embodiment when the first packet in the second embodiment is the first packet sent by the traffic classification device to the central switching device in the first embodiment.
- the first packet is obtained by encapsulating the first service packet in the service processing system, and the encapsulated header includes the service path identifier and the source device identifier of the first packet, and may also include the destination device of the packet.
- logo For specific encapsulation rules, refer to the description in step 104 of Embodiment 1.
- the service path identifier may be the first service path identifier
- the source device identifier may be the device identifier of the traffic classification device or a service atom
- the destination device identifier may be the device identifier of the central switching device.
- Step 202 The central switching device queries the first service routing forwarding entry according to the source device identifier of the first packet and the first service path identifier, so as to obtain the device identifier of the first service atom, where the first service route is transferred.
- the publication item includes a source device identifier of the first message, a correspondence between the first service path identifier, and a device identifier of the first service atom.
- the source packet identifier of the first packet may be a traffic classifier, because the first packet may be a packet sent by the traffic classifier to the central switching device, or may be a packet sent by the service atom to the central switching device.
- the source device ID of the first packet can also be the device identifier of the service atom.
- the central switching device may store a service routing forwarding table, and record the received packet in the table. Correspondence between the service path identifier, the source device identifier, and the destination device identifier forwarded to the received packet. In this way, according to the service path identifier and the original device identifier lookup table encapsulated in the received packet, the corresponding destination device identifier for forwarding the packet can be queried.
- the source device identifier of the first packet and the first service path identifier lookup table are used to query the first service routing forwarding entry including the source device identifier and the first service path identifier of the first packet.
- the device identifier of the first service atom corresponding to the source device identifier and the first service path identifier of the first packet is obtained in the entry.
- the central switching device can remove the encapsulation inside the service processing system of the first service packet, and send the first service packet to the The exit device.
- the egress device is an egress of the service processing system, and is used to send the service packet processed by the service processing system to the external network (can be sent according to the Internet protocol).
- the egress device can be the device at the end of each service path. It can perform no service processing, but only forwards service packets.
- the service packets forwarded to the external network of the service processing system are not included in the service processing system. Encapsulated, its outgoing forwarding can be based on IP.
- the egress device may specifically be a router or the like. The process of removing the encapsulation within the business processing system can also be performed by the egress device.
- Step 203 The central switching device sends a second packet to the first service atom, where the second packet is encapsulated with the first service packet, and the second packet further includes the first service path identifier.
- the central switching device can re-encapsulate the first service packet in the service processing system.
- the specific encapsulation rules refer to the description in step 104 of the first embodiment.
- the second packet may further include a source device identifier of the second packet, where the original device identifier of the second packet is a device identifier of the central switching device, and the second packet may further include the second packet.
- the destination device identifier where the destination device identifier of the second packet is the device identifier of the first service atom obtained in step 202 above.
- the central switching device can record the device identifier, the device IP address, and the port correspondence of each device connected to the device.
- the central switching device can search for the port corresponding to the device identifier of the first service atom, and The second >3 ⁇ 4 text is sent through the found port.
- the central switching device After the central switching device sends the second packet to the first service atom, the first service atom can perform the corresponding processing according to the second packet, and obtain the third packet and send the packet to the central switching device.
- the central switching device can also perform the following processing:
- the central switching device receives the third packet sent by the first service atom, where the third packet includes a second service path identifier and a source device identifier of the third packet, where the third packet is further encapsulated with a second service packet, where the second service packet includes a payload (payload) portion of the first service packet And all the payloads of the first service packet or the first service packet.
- the second service path identifier and the first service path identifier may be the same service path identifier or different service path identifiers.
- the source device identifier of the third packet is an identifier of the first service atom.
- the third packet may further include a destination device identifier of the third packet, where the destination device identifier of the third packet is a device identifier of the central switching device.
- the second service packet is obtained by the first service atom according to the service processing performed on the first service packet, and the service processing procedure may not change the payload of the first service text, that is, the second service packet includes the first service.
- the service processing process may also change part of the payload of the first service packet, that is, the second service packet includes a payload portion of the first service packet, and the service processing process may be incorrect.
- the service packet is changed, that is, the second service packet includes the first service packet.
- the central switching device queries the second service routing forwarding entry according to the second service path identifier and the source device identifier of the third packet, so as to obtain the device identifier of the second service atom, where the second service routing forwarding entry And a corresponding relationship between the source device identifier of the third packet, the second service path identifier, and the device identifier of the second service atom.
- the specific query process is similar to step 202, and can be referred to the corresponding content in its steps.
- the central switching device sends a fourth packet to the second service atom, where the fourth packet encapsulates a second service packet, and the fourth packet further includes a second service path identifier.
- the specific query process is similar to step 203, and can be referred to the corresponding content in its steps.
- the embodiment of the invention provides a service packet processing method, which is applied to a service processing system.
- a central switching device exists in the service processing system in this embodiment.
- the processing flow of the service atom in the method may include the following steps:
- Step 301 The first service atom receives the second packet sent by the central switching device, where the second packet is encapsulated with the first service packet, and the second packet further includes the first service path identifier.
- the first business primitive is any one of the business atoms in the business processing system.
- the second ⁇ article is obtained by encapsulating the first service > 3 ⁇ 4 text in the service processing system.
- the second packet may further include a source device identifier of the second packet, where the original device identifier of the second packet is a device identifier of the central switching device, and the second packet may further include the second packet.
- the destination device identifier where the destination device identifier of the second packet is the device identifier of the first service atom obtained in step 202 above.
- the third embodiment can be understood as the continuation of the second embodiment.
- Step 302 The first service atom performs the first service processing according to the information in the first service packet, to obtain a first processing result.
- the first service atom can obtain information (such as a payload or a quintuple) in the first service packet, and then perform the first service processing according to the obtained information.
- the obtained processing result may be a direct processing result. For example, if the function of a service atom A is to determine whether the URL requested to be accessed in the service message is allowed to be accessed, the result of the direct processing is permitted or prohibited.
- the obtained processing result may also be a result code set in advance. For example, in the above example, the result code corresponding to the allowed processing result may be set to 1, and the result code corresponding to the prohibited processing result is 2.
- Step 303 The first service atom queries the first path exchange entry according to the first processing result and the first service path identifier, so as to obtain the second service path identifier, where the first path switch entry includes the first process As a result, a correspondence between the first service path identifier and the second service path identifier.
- the second service path identifier and the first service path identifier may be the same service path identifier, or may be different service path identifiers.
- the first service atom may store a path switch table, where the correspondence between the service path identifier of the path and the service path identifier of the outbound path is recorded in the table.
- the service path identifier of the corresponding outbound path can be queried.
- the first path exchange entry is found according to the first processing result and the first service path identifier, and the first path exchange entry that exists in the first processing result and the first service path identifier is obtained, and the first path entry is obtained in the entry. Processing a second service path identifier corresponding to the first service path identifier.
- the service atom may be referred to as a branch type service atom and needs to pass the service.
- the atomic processing business can be called a branch type business.
- Step 304 The first service atom sends a third packet to the central switching device, where the source device identifier of the third packet is the device identifier of the first service atom, and the third packet encapsulates the second service packet.
- the third packet includes the second service path identifier, where the second service packet includes a payload payload portion of the first service packet, a payload payload of the first service packet, or a first service packet. .
- the second service packet is obtained by the first service atom according to the first service processing, and the service processing process may not change the payload of the first service packet, that is, the second service packet includes the first service packet. For all of the payloads, the service processing process may not change the first service packet. In addition, the service process may also change part of the payload of the first service message, that is, the second service message includes a payload portion of the first service message.
- the third packet is obtained by encapsulating the second service packet in the service processing system.
- the service path identifier is the second service path identifier
- the source device identifier is the device identifier of the first service atom
- the destination device identifier is the device identifier of the center switch device.
- the service atom may include a device (or a physical unit) responsible for the processing function and a device (or a physical unit) responsible for the forwarding function.
- the device (or entity unit) responsible for the forwarding function receives the service packet, and sends the service packet to the device (or entity unit) responsible for the processing function for corresponding processing, and then, is responsible for the processing function.
- the device (or entity unit) returns the processing result to the device (or entity unit) responsible for the forwarding function, and finally, the device (or entity unit) responsible for the forwarding function performs the processing of steps 303 and 304.
- the device responsible for processing the function may also send a service message including part or all of the payload of the service message to the device (or entity unit) responsible for the forwarding function.
- the embodiment of the invention provides a service packet processing method, which is applied to a service processing system.
- the service processing system in this embodiment may not have a central switching device.
- the processing flow of the traffic classification device in the method may include the following steps:
- Step 401 The traffic classification device receives the first service packet.
- Step 402 The traffic classification device acquires a first service identifier, where the first service identifier is a service identifier of the first service >3 ⁇ 4 text.
- the first service identifier is a service identifier of the first service >3 ⁇ 4 text.
- Step 403 The flow classification device queries the first flow classification entry according to the first service identifier, so as to obtain the first service path identifier and the device identifier of the first service atom.
- the first flow classification entry includes a correspondence between the first service identifier, the first service path identifier, and a device identifier of the first service atom.
- Corresponding relationship between the first service identifier, the first service path identifier, and the device identifier of the first service atom includes a correspondence between the first service identifier and the first service path identifier, and the first service identifier and the Correspondence of device identification of the first service atom.
- the traffic classification device may store the traffic classification table, and record the correspondence between the service identifier, the service path identifier, and the destination device identifier in the table.
- the service identification table in the service sent by the service processing system the corresponding service path identifier and the destination device identifier can be queried.
- the first service classification table and the first service classification identifier corresponding to the first service identifier are obtained according to the first service identifier lookup table, and the first service path identifier corresponding to the first service identifier is obtained in the entry.
- the device identification of the atom is mapped to the service atom.
- Step 404 The traffic classification device encapsulates the first service packet, and obtains a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where the first packet The source device identifier of the packet includes the device identifier of the traffic classifier.
- the first packet is obtained by encapsulating the first service packet in the service processing system.
- the service path identifier of the first packet may be the first service path identifier obtained in the foregoing step 403, and the source device identifier of the first packet may be the device identifier of the traffic classification device.
- the first packet may further include a destination device identifier, where the destination device identifier of the first packet may be the device identifier of the first service atom obtained in step 403 above.
- Step 405 The traffic classification device sends the first packet to the first service atom.
- the detailed description of the above embodiments is not repeated here.
- the embodiment of the invention provides a service packet processing method, which is applied to a service processing system.
- the service processing system in this embodiment may not have a central switching device.
- the processing flow of the service atom in the method may include the following steps: Step 501: The first service atom receives the first packet, where the first packet encapsulates the first service packet, where the first packet further includes the first service path identifier.
- the first business atom is any one of the business atoms in the business processing system.
- the first packet in the fifth embodiment may be the first packet sent by the traffic classification device to the first service atom in the fourth embodiment, or may be the packet sent by the other service atom to the first service atom.
- the fifth embodiment can be understood as the continuation of the fourth embodiment.
- the first packet is obtained by encapsulating the first service packet in the service processing system.
- the service path identifier of the first packet is the first service path identifier.
- the first packet may include a source device identifier, and the source device identifier of the first packet may be a traffic classification device or a device identifier of a service atom.
- the first packet may further include a destination device identifier, and the destination device identifier of the first packet may be a device identifier of the first service atom.
- Step 502 The first service atom performs the first service processing according to the information in the first service packet, to obtain a first processing result.
- step 302 in the third embodiment which is not described here.
- Step 503 The first service atom queries the first path exchange entry according to the source device identifier of the first packet, the first processing result, and the first service path identifier, to obtain the second service path identifier and the second service atom.
- Device identification The first path switch entry includes the source device identifier of the first packet, the first processing result, the first service path identifier, the second service path identifier, and the device identifier of the second service atom. relationship.
- the mapping between the source device identifier, the first processing result, the first service path identifier, the second service path identifier, and the device identifier of the second service atom includes the source device identifier of the first packet.
- the first processing result, the first service path identifier, and the second service path identifier, the source device identifier, the first processing result, the first service path identifier, and the first packet Correspondence of device identification of the second service atom.
- the first service atom may store a path switch table, where the source device identifier of the entry path, the service path identifier of the ingress path, the processing result, the correspondence between the service path identifier of the outbound path, and the destination device identifier of the outbound path are recorded in the table. .
- the service path identifier and the destination device identifier of the corresponding outbound path can be queried according to the service path identifier, the source device identifier, and the processing result checklist encapsulated in the received packet.
- the source device identifier of the first packet, and the first service path identifier lookup table the source device of the first processing result and the first packet is found to be queried.
- a first path exchange entry of the first service path identifier where the second service path identifier and the device identifier of the second service atom are obtained.
- Step 504 The first service atom sends a second packet to the second service atom, where the source device identifier of the second packet is the device identifier of the first service atom, and the second packet encapsulates the second service packet.
- the second packet includes the second service path identifier, where the second service packet includes a payload payload portion of the first service packet, a payload payload of the first service packet, or a first service.
- the second packet is obtained by encapsulating the second service packet in the service processing system.
- the service path identifier is the second service path identifier obtained in step 503
- the source device identifier is the device identifier of the first service atom
- the destination device identifier is the second service atom obtained in step 503.
- Device identification In the foregoing Embodiments 1 to 5, the flow classification table stored by the traffic classification device, the service routing forwarding table stored by the central switching device, and the path switching table stored in each service atom may be uniformly generated by the control device and delivered to each device separately. Of course, it can also be generated and stored by each device itself.
- the path switch table of each service atom may be a unified path switch table, that is, each service atom uses the same path switch table, where entries belonging to each service atom are recorded.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- the service 1 is taken as an example.
- a service path diagram for processing the service 1 is performed by the service atom A, the service atom 8, the service atom, and the service atom D.
- the identifiers defining these service atoms in the embodiment are A, B, C, D) respectively.
- the service atom A is a branch-type service atom
- the next-hop service atom corresponding to the two processing results of the service atom A for the service packet is the service atom B and the service atom 0, respectively.
- the processing order of service path 1 is business atom eight, business atom ⁇ business atom
- the processing sequence of the service path 2 is the service atom A, the service atom D, the service atom C, and the egress device 2.
- the service path 1 and the service path 2 are defined as SP1 and SP2, respectively, in the present embodiment, and the egress device 1
- the device identifiers of the export device 2 are EXIT1 and EXIT2, respectively.
- FIG. 7 it is a schematic structural diagram of a service processing system in this embodiment, in which the service atom and the egress device that are not related to the service 1 are omitted.
- the service text processing method provided in the embodiment of the present invention may include the following steps:
- Step 801 The traffic classification device receives the first service packet.
- the first service packet is a packet sent by the device outside the service processing system to the service processing system.
- Step 802 The traffic classification device determines, according to the quintuple information of the first service packet, that the corresponding service path identifier is SP1, and the service corresponding to the service text is service 1 and the corresponding service path identifier is SP1.
- the flow classification device may store a flow classification table, and the corresponding relationship between the quintuple information and the service path identifier is recorded in the flow classification table.
- Step 803 The traffic classification device encapsulates the first service packet to obtain the first packet, and sends the first packet to the central switching device.
- the encapsulation is the encapsulation of the service processing system.
- the source device identifier in the encapsulated header is the identifier of the traffic classification device (defined as FP in this embodiment), and the destination device identifier is the identifier of the central switching device (defined in this embodiment as H), the service path identifier is SP1.
- Step 804 The central switching device queries the first service routing forwarding entry according to the source device identifier (FP) and the service path identifier (SP1) encapsulated in the first packet, so as to obtain the device identifier (A) of the service atom A.
- the central switching device can store the service routing forwarding table.
- the service routing forwarding table of the central switching device may be as shown in the following Table 1:
- the service path of the received packet is the source device of the received packet.
- the destination of the received packet is forwarded.
- SP2 C EXIT2 Step 805 The central switching device encapsulates the first service packet to obtain a second packet, and sends the packet to the service atom A.
- the encapsulation is encapsulated in the service processing system.
- the source device identifier of the second packet is H
- the destination device identifier is A
- the service path identifier is still SP1.
- Step 806 The service atom A performs the first service processing according to the information in the first service packet (assuming that the result of the processing result is identifier2), and the service path identifier (SP1) encapsulated according to the processing result (result2) and the second packet.
- the first path exchange entry is queried to obtain the second service path identifier (SP2).
- the service atom A stores a path switch table.
- the service ID of the outbound path corresponding to result1 is SP1
- the service path identifier of the outbound path corresponding to result1 is SP2.
- the service path identifier of the outbound path corresponding to result1 is SP1.
- the path switch table of the service atom A may be as shown in Table 2 below:
- Step 807 The service atom A encapsulates the second service packet obtained based on the first service packet to obtain a third packet, and sends the third packet to the central switching device.
- the second service packet includes a payload portion of the first service packet, a payload of the first service packet, or a first service text.
- the source device ID of the third port is A
- the destination device ID is H
- the service path ID is SP2.
- Step 808 The central switching device queries the second service routing forwarding entry according to the source device identifier (A) and the service path identifier (SP2) encapsulated in the third packet, so as to obtain the device identifier (D) of the service atom D.
- Step 809 The central switching device encapsulates the second service packet to obtain a fourth packet, and sends the packet to the service atom D.
- the encapsulation is the encapsulation of the service processing system.
- the source device identifier of the fourth packet is H
- the destination device identifier is D
- the service path identifier is still SP2.
- Step 810 the service atom D performs the second service processing according to the information in the second service text (because the service atom D is a non-branch type service atom, the result of setting the processing result may be set as resultO), and according to the processing result (resultO) And the service path identifier (SP2) encapsulated in the fourth packet is queried to the second path exchange entry to obtain the second service path identifier (SP2).
- SP2 service path identifier
- Step 811 The service atom D encapsulates the third service packet obtained by the second service packet to obtain a fifth packet, and sends the fifth packet to the central switching device.
- the third service message includes a second service report The part of the payload, the second service, the payload of the text, or the second service text.
- the encapsulation is encapsulated in the service processing system.
- the source device identifier of the fifth packet is D
- the destination device identifier is H
- the service path identifier is still SP2.
- Step 812 The central switching device queries the third service routing forwarding entry according to the source device identifier (D) and the service path identifier (SP2) encapsulated in the fifth packet, so as to obtain the device identifier (C) of the service atom C.
- Step 813 The central switching device encapsulates the third service packet to obtain a sixth packet, and sends the sixth packet to the service atom C.
- the encapsulation is encapsulated in the service processing system.
- the source device identifier of the sixth packet is H
- the destination device identifier is C
- the service path identifier is still SP2.
- Step 814 The service atom C performs third service processing according to the information in the third service packet (the service atom C is also a non-branch service atom), and according to the processing result (the resultO) and the service path identifier encapsulated in the sixth packet ( SP2) Querying the third path exchange entry to obtain the second service path identifier (SP2).
- Step 815 The service atom C encapsulates the fourth service packet obtained by the third service packet to obtain the seventh packet, and sends the seventh packet to the central switching device.
- the fourth service message includes a payload portion of the third service message, a payload of the third service message, or a third service text.
- the encapsulation is the encapsulation of the service processing system.
- the source device ID of the seventh packet is C
- the destination device ID is H
- the service path identifier is still SP2.
- Step 816 The central switching device queries the third service routing forwarding entry according to the source device identifier (C) and the service path identifier (SP2) encapsulated in the seventh packet, so as to obtain the device identifier (EXIT2) of the egress device 2.
- C source device identifier
- SP2 service path identifier
- Step 817 The central switching device removes the encapsulation inside the service processing system of the fourth service packet, and sends the fourth service packet to the egress device 2.
- Step 818 The egress device 2 performs IP forwarding on the fourth service packet.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- Example 7
- the service packet processing provided by the embodiment of the present invention is combined with another specific application scenario.
- the method is elaborated.
- the service 1 is taken as an example for description.
- the identifiers of the devices and the identifiers of the service paths defined in this embodiment are the same as those in the sixth embodiment.
- FIG. 9 it is a schematic structural diagram of a service processing system in this embodiment (the central switching device does not exist in the service processing system), and the service atom and the egress device that are not related to the service 1 are omitted in the schematic diagram, and Only the device connection related to service 1 is shown in the schematic diagram.
- any two devices in the service processing system may have a connection.
- the service packet processing method provided in the embodiment of the present invention may include the following steps:
- Step 1001 The traffic classification device receives the first service packet.
- Step 1002 The quintuple information of the traffic classifier in the first service text determines that the corresponding service path identifier is SP1 and the destination device identifier is A. (Assume that the service corresponding to the service packet is service 1, and the corresponding service path identifier is SP1, and the first business atom in the business path is the business atom A).
- the traffic classifier can store a traffic classification table, and the traffic classification table records the correspondence between the quintuple information, the service path identifier, and the destination device identifier.
- Step 1003 The traffic classification device encapsulates the first service packet to obtain the first packet, and sends the first packet to the service atom A.
- the encapsulation is the encapsulation of the service processing system.
- the source device ID is FP
- the destination device ID is A
- the service path identifier is still SP1.
- Step 1004 The service atom A performs the first service processing according to the information in the first service packet (assuming that the result of the processing result is identified as resultl), and according to the processing result (resultl) and the service path identifier encapsulated in the first packet (SP1)
- the service path identifier of the inbound path and the source device identifier (FP) query the first path switch entry (the first entry in Table 3) to obtain the first service path identifier (SP1, the service path of the outbound path). Identification), the device identifier of the business atom B (B).
- the service atom A stores a path switch table.
- the result IDs of the two processing results of the service atom A are respectively resultl and result2.
- the service path identifier of the inbound path is SP1 and the source device identifier of the inbound path is FP
- the service path identifier of the outbound path corresponding to resultl is SP1 and the outbound path.
- the destination device identifier is B
- the service path identifier of the outbound path corresponding to result2 is SP2
- the destination device identifier of the outbound path is D.
- Step 1005 The service atom A encapsulates the second service packet obtained by the first service packet to obtain a second packet, and sends the packet to the service atom B.
- the second service packet includes a payload portion of the first service packet, a payload of the first service packet, or a first service packet.
- the encapsulation is the encapsulation inside the service processing system, the source device identifier is A, the destination device identifier is B, and the service path is The ID is still SP1.
- Step 1006 The service atom B performs the second service processing according to the information in the second service text (because the service atom B is a non-branch service atom, the result of the processing result may be set as resultO), and according to the processing result (resultO)
- the service path identifier (SP1, such as the service path identifier of the path) and the source device identifier (A) of the second packet are queried to the second path exchange entry to obtain the service of the first service path identifier (SP1, the outbound path).
- Path ID the device identifier (C) of the service atom C.
- Step 1007 The service atom B encapsulates the third service packet obtained based on the second service packet to obtain a third packet, and sends the third packet to the service atom C.
- the third service packet includes a payload portion of the second service packet, a payload of the second service packet, or a second service packet.
- the encapsulation is encapsulated in the service processing system.
- the source device ID is B
- the destination device ID is C
- the service path ID is still SP1.
- Step 1008 The service atom C performs third service processing according to the information in the third service text (the service atom C is also a non-branch service atom), and the service path identifier (SP1) encapsulated according to the processing result (resultO) and the third packet.
- the source device identifier (B) queries the second path switch entry to obtain the first service path identifier (SP1) and the device identifier (EXIT1) of the egress device 1.
- the path switching table of each service atom may be a unified shared path switching table, that is, each service atom uses the same path switching table, and records belonging to each service atom are recorded.
- the path exchange table of the service atom may be as shown in Table 3 below: Table 3
- Step 1009 The service atom C sends the fourth service packet obtained by the third service packet to the egress device 1.
- the fourth service packet includes a payload portion of the third service packet, a payload of the third service packet, or a third service packet.
- the fourth service packet is not processed. Encapsulation inside the system.
- Step 1010 The egress device 1 performs IP forwarding on the fourth service text.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- Example eight
- the embodiment of the present invention provides a traffic classification device, which is applied to a service processing system.
- the traffic classification device includes:
- the receiving module 1110 is configured to receive the first service packet.
- the obtaining module 1120 is configured to obtain a first service identifier, where the first service identifier is a service identifier of the first service packet.
- the querying module 1130 is configured to query the first traffic classification entry according to the first service identifier, to obtain the first service path identifier, where the first traffic classification entry includes the first service identifier and the first service Correspondence of path identifiers;
- the encapsulating module 1140 is configured to encapsulate the first service packet to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device.
- the sending module 1150 is configured to send the first packet to the central switching device.
- the flow classification device in this embodiment can perform all the operations performed by the flow classification device in the first embodiment.
- the embodiment of the present invention further provides a central switching device, which is applied to a service processing system.
- the central switching device includes:
- the receiving module 1210 is configured to receive a first packet, where the first packet is encapsulated with a first service packet, where the first packet includes a first service path identifier and a source device identifier of the first packet.
- the querying module 1220 is configured to query the first service routing forwarding entry according to the source device identifier of the first packet and the first service path identifier, so as to obtain the device identifier of the first service atom, where the a service routing forwarding entry includes a source device identifier of the first packet, a correspondence between the first service path identifier and a device identifier of the first service atom;
- the sending module 1230 is configured to send, to the first service atom, a second packet, where the second packet is sent.
- the first service packet is encapsulated, and the second packet further includes the first service path identifier.
- the source device identifier of the first packet includes the device identifier of the traffic classification device, or the source device identifier of the first packet includes the device identifier of the service atom.
- the receiving module 1210 is further configured to receive a third packet that is sent by the first service atom, where the third packet includes a second service path identifier, and the third packet further includes a second service packet.
- the second service packet includes a payload portion of the first service packet, a payload of the first service packet, or the first service >3 ⁇ 4
- the querying module 1220 is further configured to query, according to the second service path identifier and the source device identifier of the third packet, a second service routing forwarding entry, to obtain a device identifier of the second service atom, where
- the second service routing forwarding entry includes a source device identifier of the third packet, a correspondence between the second service path identifier, and a device identifier of the second service atom;
- the sending module 1230 is further configured to send a fourth packet to the second service atom, where the fourth packet encapsulates the second service packet, where the fourth packet further includes the Two business path identifiers.
- the central switching device in this embodiment is capable of performing all operations performed by the central switching device in the second embodiment.
- the embodiment of the present invention further provides a first service atom, which is applied to a service processing system. As shown in FIG. 13, the first service atom includes:
- the receiving module 1310 is configured to receive a second packet sent by the central switching device, where the second packet is encapsulated with a first service packet, and the second packet further includes a first service path identifier.
- the processing module 1320 is configured to perform first service processing according to information in the first service packet, to obtain a first processing result.
- the querying module 1330 is configured to query the first path switching entry according to the first processing result and the first service path identifier, to obtain the second service path identifier, where the first path switching entry includes the a first processing result, a correspondence between the first service path identifier and the second service path identifier;
- the sending module 1340 is configured to send, to the central switching device, a third packet, where the source device identifier of the third packet is a device identifier of the first service atom, and the third packet encapsulates a second packet. a service packet, where the second service packet includes part or all of a payload of the first service packet The third packet further includes the second service path identifier.
- the first service atom in this embodiment is capable of performing all operations performed by the first service atom in the third embodiment.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- the embodiment of the present invention further provides a flow classification device, which is applied to a service processing system.
- the flow classification device includes:
- the receiving module 1410 is configured to receive the first service packet.
- the obtaining module 1420 is configured to obtain a first service identifier, where the first service identifier is a service identifier of the first service packet.
- the querying module 1430 is configured to query the first traffic classification entry according to the first service identifier, to obtain the first service path identifier and the device identifier of the first service atom, where the first flow classification entry includes the first Corresponding relationship between the service identifier, the first service path identifier, and the device identifier of the first service atom;
- the encapsulating module 1440 is configured to encapsulate the first service packet to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device.
- the sending module 1450 is configured to send the first packet to the first service atom.
- the stream classifying device in this embodiment is capable of performing all the operations performed by the stream classifying device in the fourth embodiment.
- the embodiment of the present invention further provides a first service atom, which is applied to a service processing system. As shown in FIG. 15, the first service atom includes:
- the receiving module 1510 is configured to receive a first packet, where the first packet is encapsulated with a first service packet, where the first packet further includes a first service path identifier.
- the processing module 1520 is configured to perform first service processing according to information in the first service packet, where Obtaining a first processing result
- the querying module 1530 is configured to query the first path switching entry according to the source device identifier, the first processing result, and the first service path identifier of the first packet, so as to obtain the second service path identifier and the second a device identifier of the service atom, where the first path switch entry includes a source device identifier of the first packet, the first processing result, the first service path identifier, and the second service path identifier Corresponding relationship with the device identifier of the second service atom;
- the sending module 1540 is configured to send, to the second service atom, a second packet, where the source device identifier of the second packet is a device identifier of the first service atom, and the second packet is encapsulated with a second packet And a second service packet, where the second service packet includes part or all of the payload payload of the first service packet, and the second packet further includes the second service path identifier.
- the first service atom in this embodiment is capable of performing all operations performed by the first service atom in the fifth embodiment.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- the embodiment of the invention further provides a flow classification device, which is applied to a service processing system.
- the stream classification device includes a first processor 1610, a first memory 1620, and a first input/output circuit 1630, and the first memory 1620 stores first computer readable instructions.
- the first processor 1610 reads the first computer readable instructions and cooperates with the first input/output circuit 1630 to perform the following processing:
- first service identifier is a service identifier of the first service > 3 ⁇ 4 text
- querying the first traffic classification entry according to the first service identifier to obtain a first service path identifier, where The first flow classification entry includes a correspondence between the first service identifier and the first service path identifier;
- the device identifier includes a device identifier of the traffic classification device
- the traffic classification device sends the first packet to a central switching device.
- the first processor reads the first computer readable instructions, interacts with the first input/output circuit, and also performs all operations performed by the stream classification device of the first embodiment.
- the embodiment of the invention further provides a central switching device, which is applied to a service processing system. As shown
- the central switching device includes a second processor 1710, a second memory 1720, and a second input/output circuit 1730, and the second memory 1720 holds a second computer readable instruction.
- the second processor 1710 reads the second computer readable instruction and cooperates with the second input/output circuit 1730 to perform the following processing:
- the first service routing forwarding entry Querying the first service routing forwarding entry according to the source device identifier of the first packet and the first service path identifier, so as to obtain the device identifier of the first service atom, where the first service routing forwarding entry includes Corresponding relationship between the source device identifier of the first packet, the first service path identifier, and the device identifier of the first service atom;
- the central switching device sends a second packet to the first service atom, where the second packet encapsulates the first service packet, and the second packet further includes the first service path identifier .
- the source device identifier of the first packet includes the device identifier of the traffic classification device, or the source device identifier of the first packet includes the device identifier of the service atom.
- the processing process further includes:
- the third packet includes a second service path identifier, where the third packet is further encapsulated with a second service packet, where the second service is The packet includes a part of a payload of the first service packet, a payload of the first service packet, or the first service >3 ⁇ 4 text;
- the central switching device queries the second service routing forwarding entry according to the second service path identifier and the source device identifier of the third packet, so as to obtain the device identifier of the second service atom, where the second service
- the routing forwarding entry includes a source device identifier of the third packet, a correspondence between the second service path identifier, and a device identifier of the second service atom;
- the central switching device sends a fourth packet to the second service atom, where the fourth packet encapsulates the second service packet, and the fourth packet further includes the second service path identifier .
- the second processor reads the second computer readable instructions, cooperates with the second input/output circuit, and performs all operations performed by the central switching device in the second embodiment.
- the embodiment of the invention also provides a first service atom, which is applied to a service processing system. As shown
- the first service atom includes a third processor 1810, a third memory 1820, and a third input/output circuit 1830, and the third memory 1820 stores a third computer readable instruction.
- the third processor 1810 reads the third computer readable instruction and cooperates with the third input/output circuit 1830 to perform the following processing:
- the device sends a third packet, where the source device identifier of the third packet is the device identifier of the first service atom, and the third packet encapsulates the second service >3 ⁇ 4 text, the second service text And including the part or all of the payload of the first service, the third message further includes the second service path identifier.
- the third processor reads the third computer readable instruction, cooperates with the third input/output circuit, and performs all operations performed by the service atom in the third embodiment.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- the embodiment of the invention further provides a flow classification device, which is applied to a service processing system.
- the stream classifying device includes a fourth processor 1910, a fourth memory 1920, and a fourth input/output circuit 1930, and the fourth memory 1920 holds a fourth computer readable instruction.
- the fourth processor 1910 reads the fourth computer readable instruction, and the fourth input/output circuit 1930 To cooperate, perform the following process:
- the traffic classification device queries the first traffic classification entry according to the first service identifier, to obtain a first service path Identifying a device identifier of the first service atom, where the first traffic classification entry includes a correspondence between the first service identifier, the first service path identifier, and a device identifier of the first service atom;
- the traffic classification device encapsulates the first service packet to obtain a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where The source device identifier of the first packet includes a device identifier of the traffic classification device;
- the traffic classification device sends the first packet to the first service atom.
- the fourth processor reads the fourth computer readable instruction, cooperates with the fourth input/output circuit, and performs all operations performed by the stream classification device in the fourth embodiment.
- the embodiment of the invention also provides a first service atom, which is applied to a service processing system. As shown
- the first service atom includes a fifth processor 2010, a fifth memory 2020, and a fifth input/output circuit 2030, and the fifth memory 2020 stores a fifth computer readable instruction.
- the fifth processor 2010 reads the fifth computer readable instruction and cooperates with the fifth input/output circuit 2030 to perform the following processing:
- the first service atom performs the first service processing according to the information in the first service packet, to obtain a first processing result
- the first service atom queries the first path exchange entry according to the source device identifier of the first packet, the first processing result, and the first service path identifier, so as to obtain the second service path identifier and the second a device identifier of the service atom, where the first path switch entry includes a source device identifier of the first packet, the first processing result, the first service path identifier, and the second service path identifier Corresponding relationship with the device identifier of the second service atom;
- the first service atom sends a second packet to the second service atom, where the source device identifier of the second packet is a device identifier of the first service atom, and the second packet encapsulates a packet a second service packet, where the second packet includes the second service path identifier, where the second service packet
- the text includes a part of the payload of the first service packet, all of the payload of the first service packet, or the first service packet.
- the fifth processor reads the fifth computer readable instruction, cooperates with the fifth input/output circuit, and performs all operations performed by the service atom in the fifth embodiment.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- Example twelve
- the embodiment of the present invention further provides a service processing system.
- the service processing system includes a traffic classification device 2110, a central switching device 2120, a first service atom 2130, and a second service atom 2140, where:
- the flow classification device 2110 is configured to receive a first service packet, obtain a first service identifier, where the first service identifier is a service identifier of the first service packet, and query the first flow according to the first service identifier. a classification entry, to obtain a first service path identifier, where the first flow classification entry includes a correspondence between the first service identifier and the first service path identifier; and encapsulating the first service packet Obtaining a first packet, where the first packet includes the first service path identifier and a source device identifier of the first packet, where the source device identifier of the first packet includes the traffic classifier The device identifier of the device; sending the first packet to the central switching device;
- the central switching device 2120 is configured to receive the first packet sent by the traffic classification device, where the first packet encapsulates a first service packet, where the first packet includes a first service path. Identifying the source device identifier of the first packet, and querying the first service routing forwarding entry according to the source device identifier of the first packet and the first service path identifier, so as to obtain the device identifier of the first service atom.
- the first service routing forwarding entry includes a source device identifier of the first packet, a correspondence between the first service path identifier and a device identifier of the first service atom, to the first
- the service atom sends a second packet, where the second packet encapsulates the first service packet, and the second packet further includes the first service path identifier.
- the first service atom 2130 is configured to receive a second packet sent by the central switching device, where the second packet is encapsulated with a first service packet, and the second packet further includes a first service path identifier. Performing the first service processing according to the information in the first service packet, and obtaining a first processing result; Acquiring the first path switching entry according to the first processing result and the first service path identifier, to obtain the second service path identifier, where the first path switching entry includes the first processing result, the Corresponding relationship between the first service path identifier and the second service path identifier; sending a third packet to the central switching device, where the source device identifier of the third packet is the device identifier of the first service atom
- the third packet encapsulates a second service packet, where the second service packet includes part or all of the payload of the first service packet, and the third packet further includes the first packet Two business path identifiers.
- the central switching device 2120 is further configured to:
- the third packet includes a second service path identifier, where the third packet is further encapsulated with a second service packet, where the second service is The packet includes a part of a payload of the first service packet, a payload of the first service packet, or the first service >3 ⁇ 4 text;
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- Example thirteen
- the service processing system includes a traffic classification device 2210, a first service atom 2220, and a second service atom 2230, where: the traffic classification device 2210 And the first service identifier is obtained, where the first service identifier is a service identifier of the first service packet, and the first traffic classification entry is queried according to the first service identifier, thereby obtaining a first service path identifier and a device identifier of the first service atom, where the first flow classification entry includes a correspondence between the first service identifier, the first service path identifier, and a device identifier of the first service atom Relationship; encapsulating the first service > 3 ⁇ 4 text, Obtaining a first packet, where the first packet includes the first service path identifier and the source device identifier of the first packet, where the source device identifier of the first packet includes the device of the traffic classification device Identifying, sending the first packet to the first service atom;
- the first service atom 2220 is configured to receive a first packet, where the first packet is encapsulated with a first service packet, where the first packet further includes a first service path identifier; The information in the service packet is processed by the first service, and the first processing result is obtained. The first path exchange table is queried according to the source device identifier, the first processing result, and the first service path identifier of the first packet.
- the first path switch entry includes the source device identifier of the first packet, the first processing result, and the Corresponding relationship between the first service path identifier, the second service path identifier, and the device identifier of the second service atom; sending a second packet to the second service atom 2230, the source device of the second packet Identifying, as the device identifier of the first service atom 2220, the second packet is encapsulated with a second service packet, and the second service packet includes the second service path identifier, where The second service packet comprises a payload portion of the first service message (payload), the entire payload of the first service message (payload) of the packet or the first service.
- the service atom performs the service processing according to the information in the service packet to obtain the processing result, and determines the subsequent service path according to the processing result, so that the service path can be switched in the process of the service routing, and the service processing system Branch-type services can be processed to expand the range of services that can be handled by a business processing system composed of multiple service atoms.
- the service packet processing and forwarding device provided by the foregoing embodiment processes and forwards the service packet, only the division of the foregoing functional modules is illustrated. In actual applications, the foregoing function may be allocated according to requirements. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
- the method for processing and forwarding the service packet and the method for processing and forwarding the service packet provided by the foregoing embodiment are in the same concept, and the specific implementation process is described in the method embodiment, and details are not described herein again.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种业务报文处理方法、装置及系统,属于互联网技术领域。所述方法包括:第一业务原子接收中心交换设备发送的第二报文,该第二报文中封装有第一业务报文,该第二报文还包括第一业务路径标识;该第一业务原子根据该第一业务报文中的信息进行第一业务处理,得到第一处理结果;该第一业务原子根据该第一处理结果和该第一业务路径标识查询第一路径交换表项,从而获取第二业务路径标识;该第一业务原子向该中心交换设备发送第三报文,该第三报文的源设备标识为该第一业务原子的设备标识,该第三报文中封装有第二业务报文,该第三报文包括该第二业务路径标识。釆用本发明,可以扩大多个业务原子组成的业务处理系统所能处理的业务范围。
Description
一种业务报文处理方法、 装置及系统 本申请要求于 2013 年 2 月 22 日提交中国专利局、 申请号为 CN 201310057650.5、 发明名称为 "一种业务 文处理方法、 装置及系统" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及互联网技术领域, 特别涉及一种业务报文处理方法、 装置及 系统。 背景技术 随着互联网技术的飞速发展, 互联网能为用户提供的业务的种类越来越 丰富, 而且业务的逻辑也越来越复杂。 在布置业务处理机时, 一般釆用的方 法是, 每个完整的业务都对应分配一个业务处理机或分配业务处理机的一个 处理模块。 然而, 这种布置业务处理机的方式会造成较大的资源浪费。
为了提高系统资源的利用率, 业务原子开始得到了利用。 任何复杂的业 务都可以由多个基本的简单的业务组成。 可以为每个基本业务分配一个业务 处理机或分配业务处理机的一个处理模块, 这个分配给基本业务的业务处理 机或处理模块则被称作业务原子, 将各个业务原子通过网络连接构成业务处 理系统。 这样, 针对不同的业务, 可以根据组成该业务的基本业务, 在业务 处理系统中为其分配所需的业务原子的组合, 并将相应的业务报文按相应的 顺序在业务原子之间发送(称作业务路由 ),以分别执行每个基本业务的处理, 最终实现完整的业务处理。 通过这种方式, 将少量的业务原子组成业务处理 系统, 便可以实现对种类繁多的业务的处理。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 现有技术中, 业务原子组成的业务处理系统, 预先确定业务报文在业务 处理系统中传输的业务路径 (业务路径是多个业务原子串联形成的业务处理 顺序的路径), 业务报文只能按照预定的业务路径, 顺序通过业务路径上的各 业务原子, 这样, 只能对链式的业务进行处理, 业务报文无论在哪个业务原 子处, 它的目标业务原子都只能是确定的, 这对业务处理系统所能处理的业
务范围形成了较大的限制。
发明内容 本发明实施例提供了一种业务报文处理方法、 装置及系统, 技术方案如 下:
第一方面提供了一种业务报文处理转发的方法, 应用于业务处理系统, 所述方法包括:
流分类设备接收第一业务报文;
所述流分类设备获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
所述流分类设备根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识, 其中, 所述第一流分类表项包括所述第一业务标识和所 述第一业务路径标识的对应关系;
所述流分类设备对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
所述流分类设备将所述第一报文发送至中心交换设备。 第二方面提供一种业务报文处理方法, 所述方法包括:
流分类设备接收第一业务报文;
所述流分类设备获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
所述流分类设备根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识和第一业务原子的设备标识, 其中, 所述第一流分类表项 包括所述第一业务标识、 所述第一业务路径标识和所述第一业务原子的设备 标识的对应关系;
所述流分类设备对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
所述流分类设备将所述第一报文发送至所述第一业务原子。
第三方面提供了一种业务报文处理方法, 应用于业务处理系统, 所述方 法包括:
中心交换设备接收第一报文, 所述第一报文中封装有第一业务报文, 所 述第一报文包括第一业务路径标识和所述第一报文的源设备标识;
所述中心交换设备根据所述第一报文的源设备标识和所述第一业务路径 标识查询第一业务路由转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路由转发表项包括所述第一报文的源设备标识、 所述第一业务 路径标识和所述第一业务原子的设备标识的对应关系;
所述中心交换设备向所述第一业务原子发送第二报文, 所述第二报文中 封装有所述第一业务报文, 所述第二报文还包括所述第一业务路径标识。 第三方面的第一种实施例方式基于第三方面。 在第三方面的第一种实施 例方式中, 所述第一报文的源设备标识包括流分类设备的设备标识, 或者, 所述第一报文的源设备标识包括业务原子的设备标识。 第三方面的第二种实施方式基于第三方面或第三方面的第一种实施方 式。 在第三方面的第二种实施例方式中, 所述方法还包括:
所述中心交换设备接收所述第一业务原子发送的第三报文, 所述第三报 文包括第二业务路径标识, 所述第三报文中还封装有第二业务报文, 其中, 所述第二业务报文包括所述第一业务报文的有效负荷 payload的部分、所述第 一业务报文的有效负荷 payload的全部或所述第一业务报文;
所述中心交换设备根据所述第二业务路径标识和所述第三报文的源设备 标识查询第二业务路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路由转发表项包括所述第三报文的源设备标识、 所述第二业务 路径标识和所述第二业务原子的设备标识的对应关系;
所述中心交换设备向所述第二业务原子发送第四报文, 所述第四报文中 封装有所述第二业务报文, 所述第四报文还包括所述第二业务路径标识。 第四方面提供一种业务报文处理方法, 应用于业务处理系统, 所述方法 包括:
第一业务原子接收中心交换设备发送的第二报文, 所述第二报文中封装
有第一业务报文, 所述第二报文还包括第一业务路径标识;
所述第一业务原子根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果;
所述第一业务原子根据所述第一处理结果和所述第一业务路径标识查询 第一路径交换表项, 从而获取第二业务路径标识, 其中, 所述第一路径交换 表项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径标 识的对应关系;
所述第一业务原子向所述中心交换设备发送第三报文, 所述第三报文的 源设备标识为所述第一业务原子的设备标识, 所述第三报文中封装有第二业 务报文, 所述第三报文包括所述第二业务路径标识, 其中, 所述第二业务报 文包括所述第一业务报文的有效负荷 payload的部分、所述第一业务报文的有 效负荷 payload的全部或所述第一业务才艮文。 第五方面提供一种业务报文处理方法, 应用于业务处理系统, 所述方法 包括:
第一业务原子接收第一报文, 所述第一报文中封装有第一业务报文, 所 述第一报文还包括第一业务路径标识;
所述第一业务原子根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果;
所述第一业务原子根据所述第一报文的源设备标识、 所述第一处理结果 和所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标 识和第二业务原子的设备标识, 其中, 所述第一路径交换表项包括所述第一 报文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第二 业务路径标识和所述第二业务原子的设备标识的对应关系;
所述第一业务原子向所述第二业务原子发送第二报文, 所述第二报文的 源设备标识为所述第一业务原子的设备标识, 所述第二报文中封装有第二业 务报文, 所述第二报文包括所述第二业务路径标识, 其中, 所述第二业务报 文包括所述第一业务报文的有效负荷 payload的部分、所述第一业务报文的有 效负荷 payload的全部或所述第一业务才艮文。 第六方面提供一种流分类设备, 应用于业务处理系统, 所述流分类设备
包括:
接收模块, 用于接收第一业务报文;
获取模块, 用于获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
查询模块, 用于根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识, 其中, 所述第一流分类表项包括所述第一业务标识和所 述第一业务路径标识的对应关系;
封装模块, 用于对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
发送模块, 用于将所述第一报文发送至中心交换设备。 第七方面提供一种流分类设备, 应用于业务处理系统, 所述流分类设备 包括:
接收模块, 用于接收第一业务报文;
获取模块, 用于获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
查询模块, 用于根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识和第一业务原子的设备标识, 其中, 所述第一流分类表项 包括所述第一业务标识、 所述第一业务路径标识和所述第一业务原子的设备 标识的对应关系;
封装模块, 用于对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
发送模块, 用于将所述第一报文发送至所述第一业务原子。 第八方面提供一种中心交换设备, 应用于业务处理系统, 其特征在于, 所述中心交换设备包括:
接收模块, 用于接收第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文包括第一业务路径标识和所述第一报文的源设备标识;
查询模块, 用于根据所述第一报文的源设备标识和所述第一业务路径标
识查询第一业务路由转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路由转发表项包括所述第一报文的源设备标识、 所述第一业务 路径标识和所述第一业务原子的设备标识的对应关系;
发送模块, 用于向所述第一业务原子发送第二报文, 所述第二报文中封 装有所述第一业务报文, 所述第二报文还包括所述第一业务路径标识。 第八方面的第一种实施方式基于第八方面。 在第八方面的第一种实施方 式中, 所述第一报文的源设备标识包括流分类设备的设备标识, 或者, 所述 第一报文的源设备标识包括业务原子的设备标识。 第八方面的第二种实施方式基于第八方面或第八发面的第一种实施方 式。 在第八方面的第二种实施方式中,
所述接收模块, 还用于接收所述第一业务原子发送的第三报文, 所述第 三报文包括第二业务路径标识, 所述第三报文中还封装有第二业务报文, 其 中, 所述第二业务 文包括所述第一业务 文的有效负荷 payload的部分、 所 述第一业务报文的有效负荷 payload的全部或所述第一业务报文;
所述查询模块, 还用于根据所述第二业务路径标识和所述第三报文的源 设备标识查询第二业务路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路由转发表项包括所述第三报文的源设备标识、 所述第 二业务路径标识和所述第二业务原子的设备标识的对应关系;
所述发送模块, 还用于向所述第二业务原子发送第四报文, 所述第四报 文中封装有所述第二业务报文, 所述第四报文还包括所述第二业务路径标识。 第九方面提供一种第一业务原子, 应用于业务处理系统, 所述第一业务 原子包括:
接收模块, 用于接收中心交换设备发送的第二报文, 所述第二报文中封 装有第一业务报文, 所述第二报文还包括第一业务路径标识;
处理模块, 用于根据所述第一业务报文中的信息进行第一业务处理, 得 到第一处理结果;
查询模块, 用于根据所述第一处理结果和所述第一业务路径标识查询第 一路径交换表项, 从而获取第二业务路径标识, 其中, 所述第一路径交换表
项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径标识 的对应关系;
发送模块, 用于向所述中心交换设备发送第三报文, 所述第三报文的源 设备标识为所述第一业务原子的设备标识, 所述第三报文中封装有第二业务 报文, 所述第三报文包括所述第二业务路径标识, 其中, 所述第二业务报文 包括所述第一业务 文的有效负荷 payload的部分、所述第一业务 >¾文的有效 负荷 payload的全部或所述第一业务报文。 第十方面提供一种第一业务原子, 应用于业务处理系统, 所述第一业务 原子包括:
接收模块, 用于接收第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文还包括第一业务路径标识;
处理模块, 用于根据所述第一业务报文中的信息进行第一业务处理, 得 到第一处理结果;
查询模块, 用于根据所述第一报文的源设备标识、 所述第一处理结果和 所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标识 和第二业务原子的设备标识, 其中, 所述第一路径交换表项包括所述第一报 文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第二业 务路径标识和所述第二业务原子的设备标识的对应关系;
发送模块, 用于向所述第二业务原子发送第二报文, 所述第二报文的源 设备标识为所述第一业务原子的设备标识, 所述第二报文中封装有第二业务 报文, 所述第二报文包括所述第二业务路径标识, 其中, 所述第二业务报文 包括所述第一业务 文的有效负荷 payload的部分、所述第一业务 >¾文的有效 负荷 payload的全部或所述第一业务报文。 第十一方面提供一种业务处理系统, 其特征在于, 所述业务处理系统包 括流分类设备、 中心交换设备和至少一个业务原子, 其中:
所述流分类设备, 用于接收第一业务报文; 获取第一业务标识, 所述第 一业务标识为所述第一业务报文的业务标识; 根据所述第一业务标识查询第 一流分类表项, 从而获取第一业务路径标识, 其中, 所述第一流分类表项包 括所述第一业务标识和所述第一业务路径标识的对应关系; 对所述第一业务
报文进行封装, 得到第一报文, 所述第一报文包括所述第一业务路径标识和 所述第一报文的源设备标识, 其中, 所述第一报文的源设备标识包括所述流 分类设备的设备标识; 将所述第一报文发送至中心交换设备;
所述中心交换设备, 用于接收第一报文, 所述第一报文中封装有第一业 务报文, 所述第一报文包括第一业务路径标识和所述第一报文的源设备标识; 根据所述第一报文的源设备标识和所述第一业务路径标识查询第一业务路由 转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路由转 发表项包括所述第一报文的源设备标识、 所述第一业务路径标识和所述第一 业务原子的设备标识的对应关系; 向所述第一业务原子发送第二报文, 所述 第二报文中封装有所述第一业务报文, 所述第二报文还包括所述第一业务路 径标识;
所述第一业务原子, 用于接收中心交换设备发送的第二报文, 所述第二 报文中封装有第一业务报文, 所述第二报文还包括第一业务路径标识; 根据 所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果; 根据所 述第一处理结果和所述第一业务路径标识查询第一路径交换表项, 从而获取 第二业务路径标识, 其中, 所述第一路径交换表项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径标识的对应关系; 向所述中心交 换设备发送第三报文, 所述第三报文的源设备标识为所述第一业务原子的设 备标识, 所述第三报文中封装有第二业务报文, 所述第三报文包括所述第二 业务路径标识, 其中, 所述第二业务报文包括所述第一业务报文的有效负荷 payload的部分、 所述第一业务报文的有效负荷 payload的全部或所述第一业 务报文。 第十一方面的第一种实施方式基于第十一方面, 在第十一方面的第一种 实施方式中, 所述中心交换设备, 还用于:
接收所述第一业务原子发送的第三报文, 所述第三报文包括第二业务路 径标识, 所述第三报文中还封装有第二业务报文;
根据所述第二业务路径标识和所述第三报文的源设备标识查询第二业务 路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路 由转发表项包括所述第三报文的源设备标识、 所述第二业务路径标识和所述 第二业务原子的设备标识的对应关系;
向所述第二业务原子发送第四报文, 所述第四报文中封装有所述第二业 务报文, 所述第四报文还包括所述第二业务路径标识。 第十二方面提供一种业务处理系统, 所述业务处理系统包括流分类设备 和至少一个业务原子, 其中:
所述流分类设备, 用于接收第一业务报文; 获取第一业务标识, 所述第 一业务标识为所述第一业务报文的业务标识; 根据所述第一业务标识查询第 一流分类表项, 从而获取第一业务路径标识和第一业务原子的设备标识, 其 中, 所述第一流分类表项包括所述第一业务标识、 所述第一业务路径标识和 所述第一业务原子的设备标识的对应关系; 对所述第一业务报文进行封装, 得到第一报文, 所述第一报文包括所述第一业务路径标识和所述第一报文的 源设备标识, 其中, 所述第一报文的源设备标识包括所述流分类设备的设备 标识; 将所述第一报文发送至所述第一业务原子;
所述第一业务原子, 用于接收第一报文, 所述第一报文中封装有第一业 务报文, 所述第一报文还包括第一业务路径标识; 根据所述第一业务报文中 的信息进行第一业务处理, 得到第一处理结果; 根据所述第一报文的源设备 标识、 所述第一处理结果和所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标识和第二业务原子的设备标识, 其中, 所述第一路 径交换表项包括所述第一报文的源设备标识、 所述第一处理结果、 所述第一 业务路径标识、 所述第二业务路径标识和所述第二业务原子的设备标识的对 应关系; 向所述第二业务原子发送第二报文, 所述第二报文的源设备标识为 所述第一业务原子的设备标识, 所述第二报文中封装有第二业务报文, 所述 第二报文包括所述第二业务路径标识, 其中, 所述第二业务报文包括所述第 一业务报文的有效负荷 payload的部分、所述第一业务报文的有效负荷 payload 的全部或所述第一业务"¾文。 本发明实施例提供的技术方案带来的有益效果包括:
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。
附图说明 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的业务报文处理方法的流程图;
图 2是本发明实施例提供的业务报文处理方法的流程图;
图 3是本发明实施例提供的业务报文处理方法的流程图;
图 4是本发明实施例提供的业务报文处理方法的流程图;
图 5是本发明实施例提供的业务报文处理方法的流程图;
图 6是本发明实施例提供的业务路径示意图;
图 7是本发明实施例提供的业务处理系统的结构示意图;
图 8是本发明实施例提供的业务报文处理方法的流程图;
图 9是本发明实施例提供的业务处理系统的结构示意图;
图 10是本发明实施例提供的业务报文处理方法的流程图;
图 11是本发明实施例提供的流分类设备的结构示意图;
图 12是本发明实施例提供的中心交换设备的结构示意图;
图 13是本发明实施例提供的业务原子的结构示意图;
图 14是本发明实施例提供的流分类设备的结构示意图;
图 15是本发明实施例提供的业务原子的结构示意图;
图 16是本发明实施例提供的流分类设备的结构示意图;
图 17是本发明实施例提供的中心交换设备的结构示意图;
图 18是本发明实施例提供的业务原子的结构示意图;
图 19是本发明实施例提供的流分类设备的结构示意图;
图 20是本发明实施例提供的业务原子的结构示意图;
图 21是本发明实施例提供的业务处理系统的结构示意图;
图 22是本发明实施例提供的业务处理系统的结构示意图。
具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发 明实施方式作进一步地详细描述。
本发明实施例提供了一种业务报文处理方法, 应用于业务处理系统。 该 业务处理系统中可以包括流分类设备和至少一个业务原子, 还可以包括至少 一个出口设备, 还可以包括中心交换设备, 另外, 还可以包括控制设备。 流 分类设备可以作为业务处理系统的入口, 用于接收发给业务处理系统的业务 报文, 并转发给业务处理系统内部的其它设备。 出口设备是业务处理系统的 出口, 用于将业务处理系统处理完毕的业务报文向外部网络发送(可以根据 互联网协议发送)。 中心交换设备作为转发中介, 用于业务处理系统内部各设 备之间业务报文的转发。 控制设备可以用于对业务处理系统中部分或全部设 备进行控制。 业务处理系统中的上述设备可以集中设置在同一台机器上, 也 可以各自分别设置在不同的机器上, 还可以任意的组合设置, 对此, 本发明 不做限制。 同一业务原子的转发功能和处理功能可以布置在不同的设备上。 多个业务原子的转发功能可以布置在同一设备(或实体单元)上, 同时这些 业务原子的处理功能又可以分别布置在不同的设备(或实体单元)上。
实施例一
本发明实施例提供了一种业务报文处理方法, 应用于业务处理系统。 本 实施例中的业务处理系统中存在中心交换设备。 如图 1 所示, 该方法中流分 类设备的处理流程可以包括如下步骤:
步骤 101 , 流分类设备接收第一业务报文。
流分类设备可以作为业务处理系统的入口, 流分类设备用于接收发给业 务处理系统的业务报文, 并转发给业务处理系统内部的其它设备。
步骤 102, 流分类设备获取第一业务标识, 该第一业务标识为第一业务报 文的业务标识。
业务标识可以是预先设定的标记各业务的标识, 通过业务标识可以对应 到请求被处理的业务。 业务标识可以是业务 ^艮文五元组中的至少一个元素, 例如, 目的地址, 可以通过目的地址可以对应到业务 文所请求的处理的业 务, 业务标识也可以是业务报文的五元组本身, 另外业务标识还可以是业务 才艮文中的目的 MAC ( Media Access Control, 媒体接入控制)地址。
步骤 103 , 流分类设备根据第一业务标识查询第一流分类表项,从而获取 第一业务路径标识。 其中, 该第一流分类表项包括该第一业务标识和该第一
业务路径标识的对应关系。
具体的, 流分类设备可以存储流分类表, 在表中记录业务标识与业务路 径标识的对应关系。 这样, 根据业务处理系统外部发来的业务报文中的业务 标识查表, 便可以查询到对应的业务路径标识。 该步骤中就是根据第一业务 标识查表, 查询到包括该第一业务标识的第一流分类表项, 在该表项中获取 与该第一业务标识对应的第一业务路径标识。
步骤 104, 流分类设备对该第一业务报文进行封装, 得到第一报文, 该第 一报文包括该第一业务路径标识和所述第一报文的源设备标识, 其中, 该第 一才艮文的源设备标识包括该流分类设备的设备标识。
具体的, 此封装为业务处理系统内部所进行的封装, 具体可以是在第一 业务报文的外部增加业务处理系统内部使用的报头, 以得到第一报文。
该业务系统内容使用的报头中可以包括业务路径标识, 该业务路径标识 是业务报文封装得到的报文当前在业务处理系统中所属的业务路径的标识。 该报头中也可以包括该报文的源设备标识。 而且, 该报头中还可以包括该报 文的目的设备标识。 优选的, 报头中的信息可以按照源设备标识、 目的设备 标识和业务路径标识的顺序排列, 其中, 源设备标识在报头的最外侧, 业务 路径标识在报头的最内侧。
对于该第一报文, 业务路径标识可以为上述步骤 103 获取的第一业务路 径标识, 源设备标识可以为该流分类设备的设备标识, 目的设备标识可以为 中心交换设备的设备标识。
在业务处理系统内部两个相邻设备(相互直连)之间发送的报文, 报文 的源设备可以为两个相邻设备中发送该报文的设备, 目的设备可以为两个相 邻设备中接收该艮文的设备, 相应的, 源设备标识是该原设备的标识, 目的 设备标识是该目的设备的标识。
步骤 105 , 流分类设备将该第一报文发送至中心交换设备。
具体的, 流分类设备可以预先记录与中心交换设备连接的端口, 在执行 本步骤时, 可以将第一报文通过该端口发送。 另外, 流分类设备可以记录其 连接的各设备的设备标识、设备 IP ( Internet Protocol, 互联网协议)地址和端 口的对应关系, 在执行本步骤时, 流分类设备可以查找中心交换设备的设备 标识对应的端口, 并将第一^艮文通过查找到的端口发送。
实施例二
本发明实施例提供了一种业务报文处理方法, 应用于业务处理系统。 本 实施例中的业务处理系统中存在中心交换设备。 在包含中心交换设备的业务 处理系统中, 中心交换设备作为转发中介,用于业务处理系统内部各设备(流 分类设备、 业务原子、 出口设备等)之间业务报文的转发, 各业务原子、 流 分类设备、 出口设备可以分别与中心交换设备连接。
如图 2所示, 该方法中中心交换设备的处理流程可以包括如下步骤: 步骤 201 , 中心交换设备接收第一报文, 该第一报文中封装有第一业务报 文, 该第一 ^艮文包括第一业务路径标识和该第一 文的源设备标识。
其中, 实施例二中的第一报文可以是实施例一中流分类设备向中心交换 设备发送的第一报文, 也可以是某业务原子向中心交换设备发送的报文。 第 一业务报文可以是实施例一中的第一业务报文, 也可以是某业务原子向中心 交换设备发送的报文中封装的业务报文。 第一业务路径标识可以是实施例一 中的第一业务路径标识, 也可以是某业务原子向中心交换设备发送的报文中 封装的业务路径标识。 当实施例二中的第一报文是实施例一中流分类设备向 中心交换设备发送的第一报文时, 实施例二可以被理解为是实施例一的继续。
第一报文是对第一业务报文进行业务处理系统内部的封装而得到, 封装 的报头中除了包括业务路径标识和该第一报文的源设备标识, 还可以包括该 报文的目的设备标识。 具体封装规则可以参见实施例一步骤 104中的描述。
对于该第一 ^艮文, 业务路径标识可以为第一业务路径标识, 源设备标识 可以为流分类设备或某业务原子的设备标识, 目的设备标识可以为中心交换 设备的设备标识。
步骤 202,中心交换设备根据该第一报文的源设备标识和该第一业务路径 标识查询第一业务路由转发表项, 从而获取第一业务原子的设备标识, 其中, 该第一业务路由转发表项包括该第一 ^艮文的源设备标识、 该第一业务路径标 识和该第一业务原子的设备标识的对应关系。
其中, 由于第一报文可以是流分类设备向中心交换设备发送的报文, 也 可以是某业务原子向中心交换设备发送的报文, 所以, 第一报文的源设备标 识可以为流分类设备的设备标识, 第一报文的源设备标识也可以为业务原子 的设备标识。
具体的, 中心交换设备可以存储业务路由转发表, 在表中记录接收报文
的业务路径标识、 源设备标识与对接收 ^艮文转发的目的设备标识的对应关系。 这样, 根据接收到的报文封装的业务路径标识和原设备标识查表, 便可以查 询到对应的转发该报文的目的设备标识。 该步骤中就是根据第一报文的源设 备标识和第一业务路径标识查表, 查询到包括该第一 ^艮文的源设备标识和第 一业务路径标识的第一业务路由转发表项, 在该表项中获取与第一报文的源 设备标识和第一业务路径标识对应的第一业务原子的设备标识。
另外, 当查询到的对接收报文转发的目的设备标识为出口设备的设备标 识时, 中心交换设备可以去除第一业务报文的业务处理系统内部的封装, 并 将第一业务报文发送给该出口设备。
出口设备是业务处理系统的出口, 用于将业务处理系统处理完毕的业务 报文向外部网络发送(可以根据互联网协议发送)。 出口设备可以是各业务路 径的末端的设备, 它可以不进行具体的业务处理, 而只是进行业务报文的转 发, 转发到业务处理系统外部网络的业务报文是不带有业务处理系统内部的 封装的, 其向外转发可以是基于 IP进行的。 出口设备具体可以是路由器等。 去除业务处理系统内部的封装的处理也可以由出口设备来执行。
步骤 203 , 中心交换设备向第一业务原子发送第二报文, 该第二报文中封 装有第一业务报文, 该第二报文还包括该第一业务路径标识。
具体的, 中心交换设备可以对第一业务报文重新进行业务处理系统内部 的封装, 具体封装规则可以参见实施例一步骤 104中的描述。
该第二报文的还可以包括第二报文的源设备标识, 该第二报文的原设备 标识为该中心交换设备的设备标识, 该第二报文还可以包括该第二报文的目 的设备标识, 该第二报文的目的设备标识可以为上述步骤 202获取到的第一 业务原子的设备标识。
中心交换设备可以记录其连接的各设备的设备标识、 设备 IP地址和端口 的对应关系, 在发送第二报文时, 中心交换设备可以查找第一业务原子的设 备标识对应的端口, 并将第二>¾文通过查找到的端口发送。
中心交换设备将第二报文发送给第一业务原子之后, 第一业务原子可以 根据第二报文进行相应的处理, 得到第三报文并发送给中心交换设备(具体 的处理发送过程可以参见下面的实施例三), 中心交换设备还可以进行以下的 处理:
首先, 中心交换设备接收第一业务原子发送的第三报文, 第三报文包括
第二业务路径标识和第三报文的源设备标识, 第三报文中还封装有第二业务 报文, 其中, 第二业务报文包括第一业务报文的 payload (有效负荷)的部分、 所述第一业务报文的有效负荷 payload的全部或所述第一业务报文。
其中, 第二业务路径标识与第一业务路径标识可以是相同的业务路径标 识, 也可以是不同的业务路径标识。 第三报文的具体的封装规则可以参见实 施例一步骤 104中的描述。 该第三报文的源设备标识为第一业务原子的标识。 此外, 第三报文还可以包括第三报文的目的设备标识, 所述第三报文的目的 设备标识为中心交换设备的设备标识。
第二业务报文是第一业务原子根据对第一业务报文进行的业务处理而得 到的, 该业务处理过程可以不对第一业务 文的 payload进行改变, 即第二业 务报文包括第一业务报文的 payload的全部,该业务处理过程也可以改变第一 业务报文的 payload的部分内容,即第二业务报文包括第一业务报文的 payload 的部分, 该业务处理过程可以不对第一业务报文进行改变, 即第二业务报文 包括第一业务报文。
然后, 中心交换设备根据该第二业务路径标识和第三报文的源设备标识 查询第二业务路由转发表项, 从而获取第二业务原子的设备标识, 其中, 该 第二业务路由转发表项包括该第三报文的源设备标识、 该第二业务路径标识 和该第二业务原子的设备标识的对应关系。 具体的查询过程与步骤 202类似, 可以参见其步骤中的相应内容。
最后, 中心交换设备向第二业务原子发送第四报文, 该第四报文中封装 有第二业务报文, 该第四报文还包括第二业务路径标识。 具体的查询过程与 步骤 203类似, 可以参见其步骤中的相应内容。 实施例三
本发明实施例提供了一种业务报文处理方法, 应用于业务处理系统。 本 实施例中的业务处理系统中存在中心交换设备。 如图 3 所示, 该方法中业务 原子的处理流程可以包括如下步骤:
步骤 301 , 第一业务原子接收中心交换设备发送的第二报文, 该第二报文 中封装有第一业务报文, 该第二报文还包括第一业务路径标识。 第一业务原 子是业务处理系统中任意一个业务原子。
其中, 第二 ^^文是对第一业务 >¾文进行业务处理系统内部的封装得到的,
具体封装规则可以参见实施例一步骤 104 中的描述。 该第二报文的还可以包 括第二报文的源设备标识, 该第二报文的原设备标识为该中心交换设备的设 备标识, 该第二报文还可以包括该第二报文的目的设备标识, 该第二报文的 目的设备标识可以为上述步骤 202获取到的第一业务原子的设备标识。
当实施例三中的第二报文是实施例二中中心交换设备向第一业务原子发 送的第二报文时, 实施例三可以被理解为是实施例二的继续。
步骤 302 , 第一业务原子根据该第一业务报文中的信息进行第一业务处 理, 得到第一处理结果。
具体的, 第一业务原子可以获取第一业务报文中的信息(如 payload或五 元组等), 再根据获取的信息进行第一业务处理。 得到的处理结果可以是直接 处理结果, 例如, 某业务原子 A的功能是判断业务报文中请求访问的网址是 否允许被访问, 则直接处理结果为允许或禁止。 得到的处理结果也可以是预 先设置的结果码, 例如, 上述例子中, 可以设置允许的处理结果对应的结果 码为 1 , 禁止的处理结果对应的结果码为 2。
步骤 303 ,第一业务原子根据该第一处理结果和该第一业务路径标识查询 第一路径交换表项, 从而获取第二业务路径标识, 其中, 该第一路径交换表 项包括该第一处理结果、 该第一业务路径标识和该第二业务路径标识的对应 关系。 其中, 第二业务路径标识与第一业务路径标识可以是相同的业务路径 标识, 也可以是不同的业务路径标识。
具体的, 第一业务原子可以存储路径交换表, 在表中记录入路径的业务 路径标识、 处理结果与出路径的业务路径标识的对应关系。 这样, 根据接收 到的报文封装的业务路径标识和处理结果查表, 便可以查询到对应的出路径 的业务路径标识。 该步骤中就是根据第一处理结果和第一业务路径标识查表, 查询到存在该第一处理结果和该第一业务路径标识的第一路径交换表项, 在 该表项中获取与第一处理结果和该第一业务路径标识对应的第二业务路径标 识。
如果在某业务原子的路径交换表中, 对于同一入路径的业务路径标识, 不同的处理结果对应不同的出路径的业务路径标识, 那么该业务原子可称作 分支型业务原子, 需经过该业务原子处理的业务则可称作分支型的业务。
步骤 304, 第一业务原子向中心交换设备发送第三报文, 该第三报文的源 设备标识为该第一业务原子的设备标识, 该第三报文中封装有第二业务报文,
该第三报文包括该第二业务路径标识, 其中, 第二业务报文包括第一业务报 文的有效负荷 payload的部分、 第一业务报文的有效负荷 payload的全部或第 一业务报文。
其中, 第二业务报文是第一业务原子根据上述第一业务处理而得到的, 该业务处理过程可以不对第一业务报文的 payload进行改变, 即第二业务报文 包括第一业务报文的 payload的全部,该业务处理过程也可以不对第一业务报 文进行改变。 此外, 该业务处理过程也可以改变第一业务报文的 payload的部 分内容, 即第二业务报文包括第一业务报文的 payload的部分。
第三报文是对第二业务报文进行业务处理系统内部的封装得到的, 具体 的封装规则可以参见实施例一步骤 104 中的描述。 对于该第三报文, 业务路 径标识为第二业务路径标识, 源设备标识为该第一业务原子的设备标识, 目 的设备标识为中心交换设备的设备标识。 上述实施例的具体描述, 在此不再累述。
本发明实施例中, 优选的, 业务原子可以包括负责处理功能的设备(或 实体单元)和负责转发功能的设备(或实体单元)。 这样, 在上述流程中, 首 先, 负责转发功能的设备(或实体单元)接收业务报文, 并将业务报文发送 给负责处理功能的设备(或实体单元) 进行相应处理, 然后, 负责处理功能 的设备(或实体单元)将处理结果返回给负责转发功能的设备(或实体单元 ), 最后, 负责转发功能的设备(或实体单元 )进行步骤 303和步骤 304的处理。 此外, 在执行步骤 303和步骤 304之前, 负责处理功能的设备还可以将包括 所述业务报文的 payload 的部分或全部的一个业务报文发送给负责转发功能 的设备(或实体单元)。 实施例四
本发明实施例提供了一种业务报文处理方法, 应用于业务处理系统。 本 实施例中的业务处理系统可以不存在中心交换设备。 如图 4所示, 该方法中 流分类设备的处理流程可以包括如下步骤:
步骤 401 , 流分类设备接收第一业务报文。
步骤 402, 流分类设备获取第一业务标识, 该第一业务标识为该第一业务 >¾文的业务标识。
步骤 401、 402的具体内容可以参见实施例一中的步骤 101、 102 , 在此不 再累述。
步骤 403 , 流分类设备根据该第一业务标识查询第一流分类表项,从而获 取第一业务路径标识和第一业务原子的设备标识。 其中, 该第一流分类表项 包括该第一业务标识、 该第一业务路径标识和该第一业务原子的设备标识的 对应关系。 该第一业务标识、 该第一业务路径标识和该第一业务原子的设备 标识的对应关系包括该第一业务标识和该第一业务路径标识的对应关系, 还 包括该第一业务标识和该第一业务原子的设备标识的对应关系。
具体的, 流分类设备可以存储流分类表, 在表中记录业务标识与业务路 径标识、 目的设备标识的对应关系。 这样, 根据业务处理系统外部发来的业 务才艮文中的业务标识查表, 便可以查询到对应的业务路径标识和目的设备标 识。 该步骤中就是根据第一业务标识查表, 查询到存在该第一业务标识的第 一流分类表项, 在该表项中获取与该第一业务标识对应的第一业务路径标识 和第一业务原子的设备标识。
步骤 404, 流分类设备对第一业务报文进行封装, 得到第一报文, 该第一 报文包括该第一业务路径标识和所述第一报文的源设备标识, 其中, 该第一 才艮文的源设备标识包括该流分类设备的设备标识。
第一报文是对第一业务报文进行业务处理系统内部的封装得到的, 具体 的封装规则可以参见实施例一步骤 104 中的描述。 对于该第一报文, 第一报 文的业务路径标识可以为上述步骤 403 获取的第一业务路径标识, 第一报文 的源设备标识可以为该流分类设备的设备标识。 第一报文还可以包括目的设 备标识, 第一报文的目的设备标识可以为上述步骤 403 获取的第一业务原子 的设备标识。
步骤 405 , 流分类设备将该第一报文发送至第一业务原子。 上述实施例的具体描述, 在此不再累述。 实施例五
本发明实施例提供了一种业务报文处理方法, 应用于业务处理系统。 本 实施例中的业务处理系统可以不存在中心交换设备。 如图 5 所示, 该方法中 业务原子的处理流程可以包括如下步骤:
步骤 501 , 第一业务原子接收第一报文, 该第一报文中封装有第一业务报 文, 该第一报文还包括第一业务路径标识。 第一业务原子是业务处理系统中 任意一个业务原子。
其中, 实施例五中的第一报文可以是实施例四中流分类设备向第一业务 原子发送的第一报文, 也可以是其它业务原子向第一业务原子发送的报文。 当实施例五中的第一报文是实施例四中流分类设备向第一业务原子发送的第 一才艮文时, 实施例五可以被理解为是实施例四的继续。
第一报文是对第一业务报文进行业务处理系统内部的封装而得到的, 具 体的封装规则可以参见实施例一步骤 104 中的描述。 该第一报文的业务路径 标识为第一业务路径标识。 第一报文可以包括源设备标识, 第一报文的源设 备标识可以为流分类设备或某业务原子的设备标识。 第一报文还可以包括目 的设备标识, 第一报文的目的设备标识可以为该第一业务原子的设备标识。
步骤 502 , 第一业务原子根据该第一业务报文中的信息进行第一业务处 理, 得到第一处理结果。 具体内容可以参见实施例三中的步骤 302 , 在此不再 累述。
步骤 503 , 第一业务原子根据该第一报文的源设备标识、该第一处理结果 和该第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标识 和第二业务原子的设备标识。 其中, 该第一路径交换表项包括该第一报文的 源设备标识、 该第一处理结果、 该第一业务路径标识、 该第二业务路径标识 和该第二业务原子的设备标识的对应关系。 该第一 文的源设备标识、 该第 一处理结果、 该第一业务路径标识、 该第二业务路径标识和该第二业务原子 的设备标识的对应关系包括该第一报文的源设备标识、 该第一处理结果、 该 第一业务路径标识和该第二业务路径标识的对应关系, 还包括该第一报文的 源设备标识、 该第一处理结果、 该第一业务路径标识和该第二业务原子的设 备标识的对应关系。
具体的, 第一业务原子可以存储路径交换表, 在表中记录入路径的源设 备标识、 入路径的业务路径标识、 处理结果与出路径的业务路径标识和出路 径的目的设备标识的对应关系。 这样, 根据接收到的报文封装的业务路径标 识、 源设备标识和处理结果查表, 便可以查询到对应的出路径的业务路径标 识和目的设备标识。 该步骤中就是根据第一处理结果、 第一报文的源设备标 识和第一业务路径标识查表, 查询到存在该第一处理结果、 第一报文的源设
备标识和该第一业务路径标识的第一路径交换表项, 在该表项中获取对应的 第二业务路径标识和第二业务原子的设备标识。
步骤 504, 第一业务原子向第二业务原子发送第二报文, 该第二报文的源 设备标识为该第一业务原子的设备标识, 该第二报文中封装有第二业务报文, 该第二报文包括该第二业务路径标识, 其中, 第二业务报文包括第一业务报 文的有效负荷 payload的部分、 第一业务报文的有效负荷 payload的全部或第 一业务才艮文。 具体内容可以参见实施例三中的步骤 304, 在此不再累述。
第二报文是对第二业务报文进行业务处理系统内部的封装得到的, 具体 的封装规则可以参见实施例一步骤 104 中的描述。 对于该第二报文, 业务路 径标识为上述步骤 503 获取到的第二业务路径标识, 源设备标识为该第一业 务原子的设备标识, 目的设备标识为上述步骤 503 获取到的第二业务原子的 设备标识。 上述实施例一至五中, 流分类设备存储的流分类表, 中心交换设备存储 的业务路由转发表, 以及每个业务原子存储的路径交换表, 可以由控制设备 统一生成并分别下发给各个设备, 当然, 也可以分别由各设备自己生成并存 储。 可选地, 各业务原子的路径交换表可以是一个统一共用的路径交换表, 即各业务原子使用同一个路径交换表, 其中记录有属于各业务原子的表项。
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例六
下面将结合一个具体的应用场景对本发明实施例提供的业务报文处理方 法进行阐述。 在本实施例中, 以业务 1为例进行说明, 如图 6所示, 为对业 务 1进行处理的业务路径示意图, 业务 1由业务原子 A、 业务原子8、 业务原 子 、 业务原子 D (本实施例中定义这些业务原子的标识分别为 A、 B、 C、 D )共同处理。 如图中所示, 业务原子 A为分支型业务原子, 业务原子 A对 业务报文的两种处理结果对应的下一跳业务原子分别为业务原子 B和业务原 子0。 图中业务路径 1的处理顺序为业务原子八、 业务原子^ 业务原子〇、
出口设备 1 ,业务路径 2的处理顺序为业务原子 A、业务原子 D、业务原子 C、 出口设备 2 (本实施例中定义业务路径 1、 业务路径 2的标识分别为 SP1和 SP2, 出口设备 1和出口设备 2的设备标识分别为 EXIT1和 EXIT2 )。
如图 7 所示, 为本实施例中的业务处理系统的结构示意图, 该示意图中 省略了与业务 1不相关的业务原子和出口设备。 如图 8所示, 本发明实施例 中提供的业务 文处理方法可以包括如下的步骤:
步骤 801 , 流分类设备接收第一业务报文。 该第一业务报文是业务处理系 统外的设备向业务处理系统发送的报文。
步骤 802,流分类设备根据第一业务报文的五元组信息确定对应的业务路 径标识为 SP1 艮设该业务 文对应的业务为业务 1 , 且对应的业务路径标识 为 SP1 )。 流分类设备中可以存储流分类表, 流分类表中记录五元组信息和业 务路径标识之间的对应关系。
步骤 803 , 流分类设备对第一业务报文进行封装得到第一报文, 并发送给 中心交换设备。 该封装为业务处理系统内部的封装, 封装的报头中源设备标 识为该流分类设备的标识(本实施例中定义为 FP ), 目的设备标识为中心交换 设备的标识(本实施例中定义为 H ), 业务路径标识为 SP1。
步骤 804, 中心交换设备根据第一报文中封装的源设备标识(FP )和业务 路径标识( SP1 )查询到第一业务路由转发表项, 从而获取业务原子 A的设备 标识(A )。 中心交换设备可以存储业务路由转发表, 具体可以参见实施例二。 例如, 本实施例中的应用场景, 中心交换设备的业务路由转发表可以如下面 表 1 :
表 1
接收报文的业务路径标 接收报文的源设备标 对接收报文转发的目的 识 识 设备标识
SP1 FP A
SP1 A B
SP2 A D
SP1 B C
SP2 D C
SP1 C EXIT1
SP2 C EXIT2
步骤 805, 中心交换设备对第一业务报文进行封装得到第二报文, 并发送 给业务原子 A。 该封装为业务处理系统内部的封装, 第二报文的源设备标识 为 H, 目的设备标识为 A, 业务路径标识仍为 SP1。
步骤 806,业务原子 A根据第一业务报文中的信息进行第一业务处理(假 设处理结果的结果标识为 result2 ), 并根据处理结果( result2 )和第二报文封 装的业务路径标识(SP1 )查询到第一路径交换表项, 从而获取第二业务路径 标识(SP2 )。 业务原子 A存储有路径交换表, 具体可以参见实施例三。 业务 原子 A两种处理结果的结果标识分别为 resultl、 result2, 入路径的业务路径 标识为 SP1时, resultl对应的出路径的业务路径标识为 SP1 , result2对应的 出路径的业务路径标识为 SP2。 例如, 本实施例中的应用场景, 业务原子 A 的路径交换表可以如下面表 2:
表 2
步骤 807, 业务原子 A对基于第一业务报文得到的第二业务报文进行封 装得到第三报文, 并发送给中心交换设备。 该第二业务报文包括第一业务报 文的 payload的部分、 第一业务^艮文的 payload的全部或第一业务 文。 第三 才艮文的源设备标识为 A, 目的设备标识为 H, 业务路径标识为 SP2。
步骤 808, 中心交换设备根据第三报文中封装的源设备标识(A )和业务 路径标识( SP2 )查询到第二业务路由转发表项, 从而获取业务原子 D的设备 标识(D )。
步骤 809, 中心交换设备对第二业务报文进行封装得到第四报文, 并发送 给业务原子 D。 该封装为业务处理系统内部的封装, 第四报文的源设备标识 为 H, 目的设备标识为 D, 业务路径标识仍为 SP2。
步骤 810,业务原子 D根据第二业务 文中的信息进行第二业务处理(因 为业务原子 D为非分支型业务原子, 所以可以设置其处理结果的结果标识为 resultO ), 并根据处理结果(resultO )和第四报文封装的业务路径标识 ( SP2 ) 查询到第二路径交换表项, 从而获取第二业务路径标识 (SP2 )。
步骤 811 , 业务原子 D对基于第二业务报文得到的第三业务报文进行封 装得到第五报文, 并发送给中心交换设备。 该第三业务报文包括第二业务报
文的 payload的部分、 第二业务^艮文的 payload的全部或第二业务 文。 该封 装为业务处理系统内部的封装, 第五报文的源设备标识为 D, 目的设备标识 为 H, 业务路径标识仍为 SP2。
步骤 812, 中心交换设备根据第五报文中封装的源设备标识(D )和业务 路径标识( SP2 )查询到第三业务路由转发表项, 从而获取业务原子 C的设备 标识( C )。
步骤 813 , 中心交换设备对第三业务报文进行封装得到第六报文, 并发送 给业务原子 C。 该封装为业务处理系统内部的封装, 第六报文的源设备标识 为 H, 目的设备标识为 C, 业务路径标识仍为 SP2。
步骤 814,业务原子 C根据第三业务报文中的信息进行第三业务处理(业 务原子 C也是非分支型业务原子 ), 并根据处理结果( resultO )和第六报文封 装的业务路径标识(SP2 )查询到第三路径交换表项, 从而获取第二业务路径 标识 ( SP2 )。
步骤 815 , 业务原子 C对基于第三业务报文得到的第四业务报文进行封 装得到第七报文, 并发送给中心交换设备。 该第四业务报文包括第三业务报 文的 payload的部分、 第三业务^艮文的 payload的全部或第三业务 文。 该封 装为业务处理系统内部的封装, 第七报文的源设备标识为 C, 目的设备标识 为 H, 业务路径标识仍为 SP2。
步骤 816, 中心交换设备根据第七报文中封装的源设备标识(C )和业务 路径标识(SP2 )查询到第三业务路由转发表项, 从而获取出口设备 2的设备 标识(EXIT2 )。
步骤 817, 中心交换设备去除第四业务报文的业务处理系统内部的封装, 并将第四业务报文发送给出口设备 2。
步骤 818, 出口设备 2对第四业务报文进行 IP转发。
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例七
下面将结合另一个具体的应用场景对本发明实施例提供的业务报文处理
方法进行阐述。 在本实施例中, 还以业务 1为例进行说明, 对业务 1进行处 理的业务路径示意图可以参见图 6。 本实施例中定义的各设备的标识、 业务路 径的标识与实施例六相同。
如图 9所示, 为本实施例中的业务处理系统的结构示意图 (该业务处理 系统中不存在中心交换设备), 该示意图中省略了与业务 1不相关的业务原子 和出口设备, 而且, 该示意图中只画出了与业务 1 相关的设备连接, 实际上 本实施例中, 业务处理系统中任意两个设备之间都可以存在连接。 如图 10所 示, 本发明实施例中提供的业务报文处理方法可以包括如下的步骤:
步骤 1001 , 流分类设备接收第一业务报文。
步骤 1002, 流分类设备 居第一业务 文的五元组信息确定对应的业务 路径标识为 SP1和目的设备标识为 A (假设该业务报文对应的业务为业务 1 , 且对应的业务路径标识为 SP1 ,且该业务路径中的第一个业务原子为业务原子 A )。 流分类设备中可以存储流分类表, 流分类表中记录五元组信息、 业务路 径标识和目的设备标识的对应关系。
步骤 1003 , 流分类设备对第一业务报文进行封装得到第一报文, 并发送 给业务原子 A。 该封装为业务处理系统内部的封装, 源设备标识为 FP, 目的 设备标识为 A, 业务路径标识仍为 SP1。
步骤 1004,业务原子 A根据第一业务报文中的信息进行第一业务处理(假 设处理结果的结果标识为 resultl ), 并根据处理结果(resultl )和第一报文封 装的业务路径标识 (SP1 , 入路径的业务路径标识)、 源设备标识(FP ) 查询 到第一路径交换表项 (表 3 中的第一条表项), 从而获取第一业务路径标识 ( SP1 , 出路径的业务路径标识 )、 业务原子 B的设备标识 ( B )。 业务原子 A 存储有路径交换表, 具体可以参见实施例五。 业务原子 A两种处理结果的结 果标识分别为 resultl、 result2, 入路径的业务路径标识为 SP1、 入路径的源 设备标识为 FP时, resultl对应的出路径的业务路径标识为 SP1、 出路径的目 的设备标识为 B, result2对应的出路径的业务路径标识为 SP2、 出路径的目的 设备标识为 D。
步骤 1005, 业务原子 A对基于第一业务报文得到的第二业务报文进行封 装得到第二报文, 并发送给业务原子 B。 该第二业务报文包括第一业务报文 的 payload的部分、 第一业务报文的 payload的全部或第一业务报文。 该封装 为业务处理系统内部的封装, 源设备标识为 A, 目的设备标识为 B, 业务路径
标识仍为 SP1。
步骤 1006,业务原子 B根据第二业务 文中的信息进行第二业务处理(因 为业务原子 B为非分支型业务原子, 所以可以设置其处理结果的结果标识为 resultO ), 并根据处理结果(resultO )和第二报文封装的业务路径标识 (SP1 , 如路径的业务路径标识)、 源设备标识 (A )查询到第二路径交换表项, 从而 获取第一业务路径标识 (SP1 , 出路径的业务路径标识)、 业务原子 C的设备 标识( C )。
步骤 1007 , 业务原子 B对基于第二业务报文得到的第三业务报文进行封 装得到第三报文, 并发送给业务原子 C。 该第三业务报文包括第二业务报文 的 payload的部分、 第二业务报文的 payload的全部或第二业务报文。 该封装 为业务处理系统内部的封装, 源设备标识为 B, 目的设备标识为 C, 业务路径 标识仍为 SP1。
步骤 1008,业务原子 C根据第三业务 文中的信息进行第三业务处理(业 务原子 C也是非分支型业务原子 ), 并根据处理结果( resultO )和第三报文封 装的业务路径标识(SP1 )、 源设备标识(B )查询到第二路径交换表项, 从而 获取第一业务路径标识 ( SP1 )、 出口设备 1的设备标识 (EXIT1 )。
优选的, 各业务原子的路径交换表可以是一个统一共用的路径交换表, 即各业务原子使用同一个路径交换表, 其中记录有属于各业务原子的表项。 例如, 本实施例中的应用场景, 业务原子的路径交换表可以如下面表 3: 表 3
步骤 1009, 业务原子 C将基于第三业务报文得到的第四业务报文发送给 出口设备 1。 该第四业务报文包括第三业务报文的 payload的部分、 第三业务 报文的 payload的全部或第三业务报文。该第四业务报文并没有进行业务处理
系统内部的封装。
步骤 1010, 出口设备 1对第四业务 文进行 IP转发。
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例八
本发明实施例提供了一种流分类设备, 应用于业务处理系统, 如图 11所 示, 所述流分类设备包括:
接收模块 1110, 用于接收第一业务报文;
获取模块 1120, 用于获取第一业务标识, 所述第一业务标识为所述第一 业务报文的业务标识;
查询模块 1130, 用于根据所述第一业务标识查询第一流分类表项, 从而 获取第一业务路径标识, 其中, 所述第一流分类表项包括所述第一业务标识 和所述第一业务路径标识的对应关系;
封装模块 1140, 用于对所述第一业务报文进行封装, 得到第一报文, 所 述第一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所述第一报文的源设备标识包括所述流分类设备的设备标识;
发送模块 1150, 用于将所述第一报文发送至中心交换设备。
此外, 本实施例中的流分类设备能够执行实施例一中的流分类设备执行 的全部操作。
本发明实施例还提供了一种中心交换设备, 应用于业务处理系统, 如图 12所示, 所述中心交换设备包括:
接收模块 1210, 用于接收第一报文, 所述第一报文中封装有第一业务报 文, 所述第一报文包括第一业务路径标识和所述第一报文的源设备标识; 查询模块 1220, 用于根据所述第一报文的源设备标识和所述第一业务路 径标识查询第一业务路由转发表项, 从而获取第一业务原子的设备标识, 其 中, 所述第一业务路由转发表项包括所述第一报文的源设备标识、 所述第一 业务路径标识和所述第一业务原子的设备标识的对应关系;
发送模块 1230, 用于向所述第一业务原子发送第二报文, 所述第二报文
中封装有所述第一业务报文, 所述第二报文还包括所述第一业务路径标识。 优选的, 所述第一报文的源设备标识包括流分类设备的设备标识, 或者, 所述第一报文的源设备标识包括业务原子的设备标识。
优选的,
所述接收模块 1210 , 还用于接收所述第一业务原子发送的第三报文, 所 述第三报文包括第二业务路径标识, 所述第三报文中还封装有第二业务报文, 其中, 所述第二业务报文包括所述第一业务报文的有效负荷 (payload ) 的部 分、 所述第一业务 文的有效负荷(payload ) 的全部或所述第一业务>¾文; 所述查询模块 1220 , 还用于根据所述第二业务路径标识和所述第三报文 的源设备标识查询第二业务路由转发表项, 从而获取第二业务原子的设备标 识, 其中, 所述第二业务路由转发表项包括所述第三报文的源设备标识、 所 述第二业务路径标识和所述第二业务原子的设备标识的对应关系;
所述发送模块 1230 , 还用于向所述第二业务原子发送第四报文, 所述第 四报文中封装有所述第二业务报文, 所述第四报文还包括所述第二业务路径 标识。
此外, 本实施例中的中心交换设备能够执行实施例二中的中心交换设备 执行的全部操作。 本发明实施例还提供了一种第一业务原子, 应用于业务处理系统, 如图 13所示, 所述第一业务原子包括:
接收模块 1310, 用于接收中心交换设备发送的第二报文, 所述第二报文 中封装有第一业务报文, 所述第二报文还包括第一业务路径标识;
处理模块 1320,用于根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果;
查询模块 1330, 用于根据所述第一处理结果和所述第一业务路径标识查 询第一路径交换表项, 从而获取第二业务路径标识, 其中, 所述第一路径交 换表项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径 标识的对应关系;
发送模块 1340, 用于向所述中心交换设备发送第三报文, 所述第三报文 的源设备标识为所述第一业务原子的设备标识, 所述第三报文中封装有第二 业务报文, 所述第二业务报文包括所述第一业务报文的有效负荷的部分或全
部, 所述第三报文还包括所述第二业务路径标识。
此外, 本实施例中的第一业务原子能够执行实施例三中的第一业务原子 执行的全部操作。 本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例九
本发明实施例还提供了一种流分类设备, 应用于业务处理系统, 如图 14 所示, 所述流分类设备包括:
接收模块 1410, 用于接收第一业务报文;
获取模块 1420, 用于获取第一业务标识, 所述第一业务标识为所述第一 业务报文的业务标识;
查询模块 1430, 用于根据所述第一业务标识查询第一流分类表项, 从而 获取第一业务路径标识和第一业务原子的设备标识, 其中, 所述第一流分类 表项包括所述第一业务标识、 所述第一业务路径标识和所述第一业务原子的 设备标识的对应关系;
封装模块 1440, 用于对所述第一业务报文进行封装, 得到第一报文, 所 述第一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所述第一报文的源设备标识包括所述流分类设备的设备标识;
发送模块 1450, 用于将所述第一报文发送至所述第一业务原子。
此外, 本实施例中的流分类设备能够执行实施例四中的流分类设备执行 的全部操作。 本发明实施例还提供了一种第一业务原子, 应用于业务处理系统, 如图 15所示, 所述第一业务原子包括:
接收模块 1510, 用于接收第一报文, 所述第一报文中封装有第一业务报 文, 所述第一报文还包括第一业务路径标识;
处理模块 1520,用于根据所述第一业务报文中的信息进行第一业务处理,
得到第一处理结果;
查询模块 1530, 用于根据所述第一报文的源设备标识、 所述第一处理结 果和所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径 标识和第二业务原子的设备标识, 其中, 所述第一路径交换表项包括所述第 一报文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第 二业务路径标识和所述第二业务原子的设备标识的对应关系;
发送模块 1540, 用于向所述第二业务原子发送第二报文, 所述第二报文 的源设备标识为所述第一业务原子的设备标识, 所述第二报文中封装有第二 业务报文,所述第二业务报文包括所述第一业务报文的有效负荷 payload的部 分或全部, 所述第二报文还包括所述第二业务路径标识。
此外, 本实施例中的第一业务原子能够执行实施例五中的第一业务原子 执行的全部操作。 本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例十
本发明实施例还提供了一种流分类设备, 应用于业务处理系统。 如图 16 所示, 所述流分类设备包括第一处理器 1610、 第一存储器 1620和第一输入 / 输出电路 1630, 所述第一存储器 1620中保存有第一计算机可读指令。 所述第 一处理器 1610读取所述第一计算机可读指令, 与第一输入 /输出电路 1630相 互配合, 执行以下的处理过程:
接收第一业务报文;
获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识; 根据所述第一业务标识查询第一流分类表项, 从而获取第一业务路径标 识, 其中, 所述第一流分类表项包括所述第一业务标识和所述第一业务路径 标识的对应关系;
对所述第一业务报文进行封装, 得到第一报文, 所述第一报文包括所述 第一业务路径标识和所述第一报文的源设备标识, 其中, 所述第一报文的源
设备标识包括所述流分类设备的设备标识;
所述流分类设备将所述第一报文发送至中心交换设备。
此外, 所述第一处理器读取所述第一计算机可读指令, 与第一输入 /输出 电路相互配合, 还执行实施例一中的流分类设备执行的全部操作。 本发明实施例还提供了一种中心交换设备, 应用于业务处理系统。 如图
17所示, 所述中心交换设备包括第二处理器 1710、 第二存储器 1720和第二 输入 /输出电路 1730, 所述第二存储器 1720中保存有第二计算机可读指令。 所述第二处理器 1710 读取所述第二计算机可读指令, 与第二输入 /输出电路 1730相互配合, 执行以下的处理过程:
接收第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文包 括第一业务路径标识和所述第一报文的源设备标识;
根据所述第一报文的源设备标识和所述第一业务路径标识查询第一业务 路由转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路 由转发表项包括所述第一报文的源设备标识、 所述第一业务路径标识和所述 第一业务原子的设备标识的对应关系;
所述中心交换设备向所述第一业务原子发送第二报文, 所述第二报文中 封装有所述第一业务报文, 所述第二报文还包括所述第一业务路径标识。
优选的, 所述第一报文的源设备标识包括流分类设备的设备标识, 或者, 所述第一报文的源设备标识包括业务原子的设备标识。
优选的, 所述处理过程还包括:
接收所述第一业务原子发送的第三报文, 所述第三报文包括第二业务路 径标识, 所述第三报文中还封装有第二业务报文, 其中, 所述第二业务报文 包括所述第一业务报文的有效负荷 (payload ) 的部分、 所述第一业务报文的 有效负荷 (payload ) 的全部或所述第一业务>¾文;
所述中心交换设备根据所述第二业务路径标识和所述第三报文的源设备 标识查询第二业务路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路由转发表项包括所述第三报文的源设备标识、 所述第二业务 路径标识和所述第二业务原子的设备标识的对应关系;
所述中心交换设备向所述第二业务原子发送第四报文, 所述第四报文中 封装有所述第二业务报文, 所述第四报文还包括所述第二业务路径标识。
此外, 所述第二处理器读取所述第二计算机可读指令, 与第二输入 /输出 电路相互配合, 还执行实施例二中的中心交换设备执行的全部操作。 本发明实施例还提供了一种第一业务原子, 应用于业务处理系统。 如图
18所示, 所述第一业务原子包括第三处理器 1810、 第三存储器 1820和第三 输入 /输出电路 1830, 所述第三存储器 1820中保存有第三计算机可读指令。 所述第三处理器 1810 读取所述第三计算机可读指令, 与第三输入 /输出电路 1830相互配合, 执行以下的处理过程:
接收中心交换设备发送的第二报文, 所述第二报文中封装有第一业务报 文, 所述第二报文还包括第一业务路径标识;
根据所述第一业务 文中的信息进行第一业务处理, 得到第一处理结果; 根据所述第一处理结果和所述第一业务路径标识查询第一路径交换表 项, 从而获取第二业务路径标识, 其中, 所述第一路径交换表项包括所述第 一处理结果、 所述第一业务路径标识和所述第二业务路径标识的对应关系; 所述第一业务原子向所述中心交换设备发送第三报文, 所述第三报文的 源设备标识为所述第一业务原子的设备标识, 所述第三报文中封装有第二业 务>¾文, 所述第二业务 文包括所述第一业务 "^文的有效负荷的部分或全部, 所述第三报文还包括所述第二业务路径标识。
此外, 所述第三处理器读取所述第三计算机可读指令, 与第三输入 /输出 电路相互配合, 还执行实施例三中的业务原子执行的全部操作。 本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例十一
本发明实施例还提供了一种流分类设备, 应用于业务处理系统。 如图 19 所示, 所述流分类设备包括第四处理器 1910、 第四存储器 1920和第四输入 / 输出电路 1930, 所述第四存储器 1920中保存有第四计算机可读指令。 所述第 四处理器 1910读取所述第四计算机可读指令, 与第四输入 /输出电路 1930相
互配合, 执行以下的处理过程:
接收第一业务报文;
获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识; 所述流分类设备根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识和第一业务原子的设备标识, 其中, 所述第一流分类表项 包括所述第一业务标识、 所述第一业务路径标识和所述第一业务原子的设备 标识的对应关系;
所述流分类设备对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
所述流分类设备将所述第一报文发送至所述第一业务原子。
此外, 所述第四处理器读取所述第四计算机可读指令, 与第四输入 /输出 电路相互配合 , 还执行实施例四中的流分类设备执行的全部操作。 本发明实施例还提供了一种第一业务原子, 应用于业务处理系统。 如图
20所示, 所述第一业务原子包括第五处理器 2010、 第五存储器 2020和第五 输入 /输出电路 2030, 所述第五存储器 2020中保存有第五计算机可读指令。 所述第五处理器 2010 读取所述第五计算机可读指令, 与第五输入 /输出电路 2030相互配合, 执行以下的处理过程:
接收第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文还 包括第一业务路径标识;
所述第一业务原子根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果;
所述第一业务原子根据所述第一报文的源设备标识、 所述第一处理结果 和所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标 识和第二业务原子的设备标识, 其中, 所述第一路径交换表项包括所述第一 报文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第二 业务路径标识和所述第二业务原子的设备标识的对应关系;
所述第一业务原子向所述第二业务原子发送第二报文, 所述第二报文的 源设备标识为所述第一业务原子的设备标识, 所述第二报文中封装有第二业 务报文, 所述第二报文包括所述第二业务路径标识, 其中, 所述第二业务报
文包括所述第一业务报文的有效负荷 payload的部分、所述第一业务报文的有 效负荷 payload的全部或所述第一业务才艮文。
此外, 所述第五处理器读取所述第五计算机可读指令, 与第五输入 /输出 电路相互配合, 还执行实施例五中的业务原子执行的全部操作。
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例十二
本发明实施例还提供了一种业务处理系统, 如图 21所示, 所述业务处理 系统包括流分类设备 2110、 中心交换设备 2120、 第一业务原子 2130和第二 业务原子 2140, 其中:
所述流分类设备 2110, 用于接收第一业务报文; 获取第一业务标识, 所 述第一业务标识为所述第一业务报文的业务标识; 根据所述第一业务标识查 询第一流分类表项, 从而获取第一业务路径标识, 其中, 所述第一流分类表 项包括所述第一业务标识和所述第一业务路径标识的对应关系; 对所述第一 业务报文进行封装, 得到第一报文, 所述第一报文包括所述第一业务路径标 识和所述第一报文的源设备标识, 其中, 所述第一报文的源设备标识包括所 述流分类设备的设备标识; 将所述第一报文发送至中心交换设备;
所述中心交换设备 2120,用于接收所述流分类设备发送的所述第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文包括第一业务路径标识 和所述第一报文的源设备标识; 根据所述第一报文的源设备标识和所述第一 业务路径标识查询第一业务路由转发表项, 从而获取第一业务原子的设备标 识, 其中, 所述第一业务路由转发表项包括所述第一报文的源设备标识、 所 述第一业务路径标识和所述第一业务原子的设备标识的对应关系; 向所述第 一业务原子发送第二报文, 所述第二报文中封装有所述第一业务报文, 所述 第二报文还包括所述第一业务路径标识;
所述第一业务原子 2130, 用于接收中心交换设备发送的第二报文, 所述 第二报文中封装有第一业务报文, 所述第二报文还包括第一业务路径标识; 根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果; 根
据所述第一处理结果和所述第一业务路径标识查询第一路径交换表项, 从而 获取第二业务路径标识, 其中, 所述第一路径交换表项包括所述第一处理结 果、 所述第一业务路径标识和所述第二业务路径标识的对应关系; 向所述中 心交换设备发送第三报文, 所述第三报文的源设备标识为所述第一业务原子 的设备标识, 所述第三报文中封装有第二业务报文, 所述第二业务报文包括 所述第一业务报文的有效负荷的部分或全部, 所述第三报文还包括所述第二 业务路径标识。
优选的, 所述中心交换设备 2120, 还用于:
接收所述第一业务原子发送的第三报文, 所述第三报文包括第二业务路 径标识, 所述第三报文中还封装有第二业务报文, 其中, 所述第二业务报文 包括所述第一业务报文的有效负荷 (payload ) 的部分、 所述第一业务报文的 有效负荷 (payload ) 的全部或所述第一业务>¾文;
根据所述第二业务路径标识和所述第三报文的源设备标识查询第二业务 路由转发表项, 从而获取第二业务原子 2140的设备标识, 其中, 所述第二业 务路由转发表项包括所述第三报文的源设备标识、 所述第二业务路径标识和 所述第二业务原子的设备标识的对应关系;
向所述第二业务原子 2140发送第四报文, 所述第四报文中封装有所述第 二业务报文, 所述第四报文还包括所述第二业务路径标识。
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 实施例十三
本发明实施例还提供了一种业务处理系统, 如图 22所示, 所述业务处理 系统包括流分类设备 2210、 第一业务原子 2220和第二业务原子 2230, 其中: 所述流分类设备 2210, 用于接收第一业务报文; 获取第一业务标识, 所 述第一业务标识为所述第一业务报文的业务标识; 根据所述第一业务标识查 询第一流分类表项, 从而获取第一业务路径标识和第一业务原子的设备标识 , 其中, 所述第一流分类表项包括所述第一业务标识、 所述第一业务路径标识 和所述第一业务原子的设备标识的对应关系; 对所述第一业务>¾文进行封装,
得到第一报文, 所述第一报文包括所述第一业务路径标识和所述第一报文的 源设备标识, 所述第一报文的源设备标识包括所述流分类设备的设备标识; 将所述第一报文发送至所述第一业务原子;
所述第一业务原子 2220, 用于接收第一报文, 所述第一报文中封装有第 一业务报文, 所述第一报文还包括第一业务路径标识; 根据所述第一业务报 文中的信息进行第一业务处理, 得到第一处理结果; 根据所述第一报文的源 设备标识、 所述第一处理结果和所述第一业务路径标识查询第一路径交换表 项, 从而获取第二业务路径标识和第二业务原子 2230的设备标识, 其中, 所 述第一路径交换表项包括所述第一报文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第二业务路径标识和所述第二业务原子的设备 标识的对应关系; 向所述第二业务原子 2230发送第二报文, 所述第二报文的 源设备标识为所述第一业务原子 2220的设备标识, 所述第二报文中封装有第 二业务报文, 所述第二业务报文包括所述第二业务路径标识, 其中, 所述第 二业务报文包括所述第一业务报文的有效负荷 (payload ) 的部分、 所述第一 业务报文的有效负荷(payload ) 的全部或所述第一业务报文。
本发明实施例中, 业务原子根据业务报文中的信息进行业务处理得到处 理结果, 并根据处理结果确定后续的业务路径, 这样, 可以在业务路由的过 程中实现业务路径的切换, 业务处理系统可以对分支型的业务进行处理, 从 而, 扩大多个业务原子组成的业务处理系统所能处理的业务范围。 需要说明的是: 上述实施例提供的业务报文处理转发的装置在对业务报 文处理转发时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可 以根据需要而将上述功能分配由不同的功能模块完成, 即将装置的内部结构 划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述 实施例提供的业务报文处理转发的装置与业务报文处理转发的方法实施例属 于同一构思, 其具体实现过程详见方法实施例, 这里不再赘述。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存 储于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明 的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发 明的保护范围之内。
Claims
1、 一种业务^艮文处理方法, 应用于业务处理系统, 其特征在于, 所述方 法包括:
流分类设备接收第一业务报文;
所述流分类设备获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
所述流分类设备根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识, 其中, 所述第一流分类表项包括所述第一业务标识和所 述第一业务路径标识的对应关系;
所述流分类设备对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
所述流分类设备将所述第一报文发送至中心交换设备。
2、 一种业务^艮文处理方法, 应用于业务处理系统, 其特征在于, 所述方 法包括:
流分类设备接收第一业务报文;
所述流分类设备获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
所述流分类设备根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识和第一业务原子的设备标识, 其中, 所述第一流分类表项 包括所述第一业务标识、 所述第一业务路径标识和所述第一业务原子的设备 标识的对应关系;
所述流分类设备对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
所述流分类设备将所述第一报文发送至所述第一业务原子。
3、 一种业务^艮文处理方法, 应用于业务处理系统, 其特征在于, 所述方 法包括:
中心交换设备接收第一报文, 所述第一报文中封装有第一业务报文, 所
述第一报文包括第一业务路径标识和所述第一报文的源设备标识; 所述中心交换设备根据所述第一报文的源设备标识和所述第一业务路径 标识查询第一业务路由转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路由转发表项包括所述第一报文的源设备标识、 所述第一业务 路径标识和所述第一业务原子的设备标识的对应关系;
所述中心交换设备向所述第一业务原子发送第二报文, 所述第二报文中 封装有所述第一业务报文, 所述第二报文还包括所述第一业务路径标识。
4、 根据权利要求 3所述的方法, 其特征在于, 所述第一报文的源设备标 识包括流分类设备的设备标识, 或者, 所述第一报文的源设备标识包括业务 原子的设备标识。
5、 根据权利要求 3或 4所述的方法, 其特征在于, 所述方法还包括: 所述中心交换设备接收所述第一业务原子发送的第三报文, 所述第三报 文包括第二业务路径标识, 所述第三报文中还封装有第二业务报文, 其中, 所述第二业务报文包括所述第一业务报文的有效负荷 payload的部分、所述第 一业务报文的有效负荷 payload的全部或所述第一业务报文;
所述中心交换设备根据所述第二业务路径标识和所述第三报文的源设备 标识查询第二业务路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路由转发表项包括所述第三报文的源设备标识、 所述第二业务 路径标识和所述第二业务原子的设备标识的对应关系;
所述中心交换设备向所述第二业务原子发送第四报文, 所述第四报文中 封装有所述第二业务报文, 所述第四报文还包括所述第二业务路径标识。
6、 一种业务^艮文处理方法, 应用于业务处理系统, 其特征在于, 所述方 法包括:
第一业务原子接收中心交换设备发送的第二报文, 所述第二报文中封装 有第一业务报文, 所述第二报文还包括第一业务路径标识;
所述第一业务原子根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果;
所述第一业务原子根据所述第一处理结果和所述第一业务路径标识查询 第一路径交换表项, 从而获取第二业务路径标识, 其中, 所述第一路径交换 表项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径标
识的对应关系;
所述第一业务原子向所述中心交换设备发送第三报文, 所述第三报文的 源设备标识为所述第一业务原子的设备标识, 所述第三报文中封装有第二业 务报文, 所述第三报文包括所述第二业务路径标识, 其中, 所述第二业务报 文包括所述第一业务报文的有效负荷 payload的部分、所述第一业务报文的有 效负荷 payload的全部或所述第一业务才艮文。
7、 一种业务^艮文处理方法, 应用于业务处理系统, 其特征在于, 所述方 法包括:
第一业务原子接收第一报文, 所述第一报文中封装有第一业务报文, 所 述第一报文还包括第一业务路径标识;
所述第一业务原子根据所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果;
所述第一业务原子根据所述第一报文的源设备标识、 所述第一处理结果 和所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标 识和第二业务原子的设备标识, 其中, 所述第一路径交换表项包括所述第一 报文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第二 业务路径标识和所述第二业务原子的设备标识的对应关系;
所述第一业务原子向所述第二业务原子发送第二报文, 所述第二报文的 源设备标识为所述第一业务原子的设备标识, 所述第二报文中封装有第二业 务报文, 所述第二报文包括所述第二业务路径标识, 其中, 所述第二业务报 文包括所述第一业务报文的有效负荷 payload的部分、所述第一业务报文的有 效负荷 payload的全部或所述第一业务才艮文。
8、 一种流分类设备, 应用于业务处理系统, 其特征在于, 所述流分类设 备包括:
接收模块, 用于接收第一业务报文;
获取模块, 用于获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
查询模块, 用于根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识, 其中, 所述第一流分类表项包括所述第一业务标识和所
述第一业务路径标识的对应关系;
封装模块, 用于对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
发送模块, 用于将所述第一报文发送至中心交换设备。
9、 一种流分类设备, 应用于业务处理系统, 其特征在于, 所述流分类设 备包括:
接收模块, 用于接收第一业务报文;
获取模块, 用于获取第一业务标识, 所述第一业务标识为所述第一业务 >¾文的业务标识;
查询模块, 用于根据所述第一业务标识查询第一流分类表项, 从而获取 第一业务路径标识和第一业务原子的设备标识, 其中, 所述第一流分类表项 包括所述第一业务标识、 所述第一业务路径标识和所述第一业务原子的设备 标识的对应关系;
封装模块, 用于对所述第一业务报文进行封装, 得到第一报文, 所述第 一报文包括所述第一业务路径标识和所述第一报文的源设备标识, 其中, 所 述第一报文的源设备标识包括所述流分类设备的设备标识;
发送模块, 用于将所述第一报文发送至所述第一业务原子。
10、 一种中心交换设备, 应用于业务处理系统, 其特征在于, 所述中心 交换设备包括:
接收模块, 用于接收第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文包括第一业务路径标识和所述第一报文的源设备标识;
查询模块, 用于根据所述第一报文的源设备标识和所述第一业务路径标 识查询第一业务路由转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路由转发表项包括所述第一报文的源设备标识、 所述第一业务 路径标识和所述第一业务原子的设备标识的对应关系;
发送模块, 用于向所述第一业务原子发送第二报文, 所述第二报文中封 装有所述第一业务报文, 所述第二报文还包括所述第一业务路径标识。
11、 根据权利要求 10所述的中心交换设备, 其特征在于, 所述第一报文
的源设备标识包括流分类设备的设备标识, 或者, 所述第一报文的源设备标 识包括业务原子的设备标识。
12、 根据权利要求 10或 11所述的中心交换设备, 其特征在于, 所述接收模块, 还用于接收所述第一业务原子发送的第三报文, 所述第 三报文包括第二业务路径标识, 所述第三报文中还封装有第二业务报文, 其 中, 所述第二业务 文包括所述第一业务 文的有效负荷 payload的部分、 所 述第一业务报文的有效负荷 payload的全部或所述第一业务报文;
所述查询模块, 还用于根据所述第二业务路径标识和所述第三报文的源 设备标识查询第二业务路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路由转发表项包括所述第三报文的源设备标识、 所述第 二业务路径标识和所述第二业务原子的设备标识的对应关系;
所述发送模块, 还用于向所述第二业务原子发送第四报文, 所述第四报 文中封装有所述第二业务报文, 所述第四报文还包括所述第二业务路径标识。
13、 一种第一业务原子, 应用于业务处理系统, 其特征在于, 所述第一 业务原子包括:
接收模块, 用于接收中心交换设备发送的第二报文, 所述第二报文中封 装有第一业务报文, 所述第二报文还包括第一业务路径标识;
处理模块, 用于根据所述第一业务报文中的信息进行第一业务处理, 得 到第一处理结果;
查询模块, 用于根据所述第一处理结果和所述第一业务路径标识查询第 一路径交换表项, 从而获取第二业务路径标识, 其中, 所述第一路径交换表 项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径标识 的对应关系;
发送模块, 用于向所述中心交换设备发送第三报文, 所述第三报文的源 设备标识为所述第一业务原子的设备标识, 所述第三报文中封装有第二业务 报文, 所述第三报文包括所述第二业务路径标识, 其中, 所述第二业务报文 包括所述第一业务 文的有效负荷 payload的部分、所述第一业务 >¾文的有效 负荷 payload的全部或所述第一业务报文。
14、 一种第一业务原子, 应用于业务处理系统, 其特征在于, 所述第一
业务原子包括:
接收模块, 用于接收第一报文, 所述第一报文中封装有第一业务报文, 所述第一报文还包括第一业务路径标识;
处理模块, 用于根据所述第一业务报文中的信息进行第一业务处理, 得 到第一处理结果;
查询模块, 用于根据所述第一报文的源设备标识、 所述第一处理结果和 所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标识 和第二业务原子的设备标识, 其中, 所述第一路径交换表项包括所述第一报 文的源设备标识、 所述第一处理结果、 所述第一业务路径标识、 所述第二业 务路径标识和所述第二业务原子的设备标识的对应关系;
发送模块, 用于向所述第二业务原子发送第二报文, 所述第二报文的源 设备标识为所述第一业务原子的设备标识, 所述第二报文中封装有第二业务 报文, 所述第二报文包括所述第二业务路径标识, 其中, 所述第二业务报文 包括所述第一业务 文的有效负荷 payload的部分、所述第一业务 >¾文的有效 负荷 payload的全部或所述第一业务报文。
15、 一种业务处理系统, 其特征在于, 所述业务处理系统包括流分类设 备、 中心交换设备和至少一个业务原子, 其中:
所述流分类设备, 用于接收第一业务报文; 获取第一业务标识, 所述第 一业务标识为所述第一业务报文的业务标识; 根据所述第一业务标识查询第 一流分类表项, 从而获取第一业务路径标识, 其中, 所述第一流分类表项包 括所述第一业务标识和所述第一业务路径标识的对应关系; 对所述第一业务 报文进行封装, 得到第一报文, 所述第一报文包括所述第一业务路径标识和 所述第一报文的源设备标识, 其中, 所述第一报文的源设备标识包括所述流 分类设备的设备标识; 将所述第一报文发送至中心交换设备;
所述中心交换设备, 用于接收第一报文, 所述第一报文中封装有第一业 务报文, 所述第一报文包括第一业务路径标识和所述第一报文的源设备标识; 根据所述第一报文的源设备标识和所述第一业务路径标识查询第一业务路由 转发表项, 从而获取第一业务原子的设备标识, 其中, 所述第一业务路由转 发表项包括所述第一报文的源设备标识、 所述第一业务路径标识和所述第一 业务原子的设备标识的对应关系; 向所述第一业务原子发送第二报文, 所述
第二报文中封装有所述第一业务报文, 所述第二报文还包括所述第一业务路 径标识;
所述第一业务原子, 用于接收中心交换设备发送的第二报文, 所述第二 报文中封装有第一业务报文, 所述第二报文还包括第一业务路径标识; 根据 所述第一业务报文中的信息进行第一业务处理, 得到第一处理结果; 根据所 述第一处理结果和所述第一业务路径标识查询第一路径交换表项, 从而获取 第二业务路径标识, 其中, 所述第一路径交换表项包括所述第一处理结果、 所述第一业务路径标识和所述第二业务路径标识的对应关系; 向所述中心交 换设备发送第三报文, 所述第三报文的源设备标识为所述第一业务原子的设 备标识, 所述第三报文中封装有第二业务报文, 所述第三报文包括所述第二 业务路径标识, 其中, 所述第二业务报文包括所述第一业务报文的有效负荷 payload的部分、 所述第一业务报文的有效负荷 payload的全部或所述第一业 务报文。
16、 根据权利要求 15所述的业务处理系统, 其特征在于, 所述中心交换 设备, 还用于:
接收所述第一业务原子发送的第三报文, 所述第三报文包括第二业务路 径标识, 所述第三报文中还封装有第二业务报文;
根据所述第二业务路径标识和所述第三报文的源设备标识查询第二业务 路由转发表项, 从而获取第二业务原子的设备标识, 其中, 所述第二业务路 由转发表项包括所述第三报文的源设备标识、 所述第二业务路径标识和所述 第二业务原子的设备标识的对应关系;
向所述第二业务原子发送第四报文, 所述第四报文中封装有所述第二业 务报文, 所述第四报文还包括所述第二业务路径标识。
17、 一种业务处理系统, 其特征在于, 所述业务处理系统包括流分类设 备和至少一个业务原子, 其中:
所述流分类设备, 用于接收第一业务报文; 获取第一业务标识, 所述第 一业务标识为所述第一业务报文的业务标识; 根据所述第一业务标识查询第 一流分类表项, 从而获取第一业务路径标识和第一业务原子的设备标识, 其 中, 所述第一流分类表项包括所述第一业务标识、 所述第一业务路径标识和 所述第一业务原子的设备标识的对应关系; 对所述第一业务报文进行封装,
得到第一报文, 所述第一报文包括所述第一业务路径标识和所述第一报文的 源设备标识, 其中, 所述第一报文的源设备标识包括所述流分类设备的设备 标识; 将所述第一报文发送至所述第一业务原子;
所述第一业务原子, 用于接收第一报文, 所述第一报文中封装有第一业 务报文, 所述第一报文还包括第一业务路径标识; 根据所述第一业务报文中 的信息进行第一业务处理, 得到第一处理结果; 根据所述第一报文的源设备 标识、 所述第一处理结果和所述第一业务路径标识查询第一路径交换表项, 从而获取第二业务路径标识和第二业务原子的设备标识, 其中, 所述第一路 径交换表项包括所述第一报文的源设备标识、 所述第一处理结果、 所述第一 业务路径标识、 所述第二业务路径标识和所述第二业务原子的设备标识的对 应关系; 向所述第二业务原子发送第二报文, 所述第二报文的源设备标识为 所述第一业务原子的设备标识, 所述第二报文中封装有第二业务报文, 所述 第二报文包括所述第二业务路径标识, 其中, 所述第二业务报文包括所述第 一业务报文的有效负荷 payload的部分、所述第一业务报文的有效负荷 payload 的全部或所述第一业务"¾文。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP14754855.6A EP2953302B1 (en) | 2013-02-22 | 2014-02-08 | Service packet processing method, apparatus and system |
US14/832,835 US10263901B2 (en) | 2013-02-22 | 2015-08-21 | Service packet processing method, apparatus, and system |
US15/935,990 US11102133B2 (en) | 2013-02-22 | 2018-03-26 | Service packet processing method, apparatus, and system |
US17/394,705 US12028260B2 (en) | 2013-02-22 | 2021-08-05 | Service packet processing method, apparatus, and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057650.5A CN104009918B (zh) | 2013-02-22 | 2013-02-22 | 一种业务报文处理方法、装置及系统 |
CN201310057650.5 | 2013-02-22 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/832,835 Continuation US10263901B2 (en) | 2013-02-22 | 2015-08-21 | Service packet processing method, apparatus, and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014127701A1 true WO2014127701A1 (zh) | 2014-08-28 |
Family
ID=51370413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/071897 WO2014127701A1 (zh) | 2013-02-22 | 2014-02-08 | 一种业务报文处理方法、装置及系统 |
Country Status (4)
Country | Link |
---|---|
US (3) | US10263901B2 (zh) |
EP (2) | EP2953302B1 (zh) |
CN (2) | CN104009918B (zh) |
WO (1) | WO2014127701A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3247075A4 (en) * | 2015-01-31 | 2018-01-03 | Huawei Technologies Co., Ltd. | Service data stream data packet processing method and device |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015119410A1 (en) * | 2014-02-06 | 2015-08-13 | Lg Electronics Inc. | Method for processing a packet data convergence protocol service data unit at a user equipment in a dual connectivity system and device therefor |
CN104980488B (zh) * | 2015-03-20 | 2019-01-29 | 深圳市腾讯计算机系统有限公司 | 报文传输方法及相关装置和通信系统 |
CN106302157B (zh) * | 2015-05-11 | 2020-09-29 | 中兴通讯股份有限公司 | 报文发送方法及装置 |
US10165092B2 (en) * | 2016-05-11 | 2018-12-25 | Cisco Technology, Inc. | Using a network service header to manage a network-as-a-system |
CN111147381B (zh) * | 2018-11-02 | 2022-01-18 | 华为技术有限公司 | 流量均衡方法和装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272317A (zh) * | 2007-03-19 | 2008-09-24 | 中国电信股份有限公司 | 一种实现网络、业务融合和统一控制的系统和方法 |
CN101459575A (zh) * | 2007-12-14 | 2009-06-17 | 华为技术有限公司 | 一种实现资源准入控制的方法、系统及设备 |
CN101557297A (zh) * | 2009-05-14 | 2009-10-14 | 中兴通讯股份有限公司 | 一种基于互联网的开放式电信业务生成系统及方法 |
CN102404192A (zh) * | 2010-09-17 | 2012-04-04 | 华为终端有限公司 | 报文传输方法和网络设备 |
WO2012084462A1 (en) * | 2010-12-20 | 2012-06-28 | Alcatel Lucent | Method and network node for configuring a network for optimized transport of packet traffic |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050289244A1 (en) * | 2004-06-28 | 2005-12-29 | Himansu Sahu | Method for service chaining in a communication network |
US7990888B2 (en) * | 2005-03-04 | 2011-08-02 | Cisco Technology, Inc. | System and methods for network reachability detection |
US9253274B2 (en) * | 2007-01-19 | 2016-02-02 | Cisco Technology, Inc. | Service insertion architecture |
US8000329B2 (en) * | 2007-06-29 | 2011-08-16 | Alcatel Lucent | Open platform architecture for integrating multiple heterogeneous network functions |
CN101272337B (zh) * | 2007-12-27 | 2010-08-25 | 华为技术有限公司 | 业务数据处理方法与业务数据处理系统 |
GB0813953D0 (en) * | 2008-07-30 | 2008-09-03 | British Telecomm | Multiple carrrier compression scheme |
US8300532B1 (en) * | 2008-09-23 | 2012-10-30 | Juniper Networks, Inc. | Forwarding plane configuration for separation of services and forwarding in an integrated services router |
US8295279B2 (en) * | 2008-12-02 | 2012-10-23 | Electronics And Telecommunications Research Institute | Routing method and apparatus for providing different path by service |
US8526435B2 (en) * | 2010-03-19 | 2013-09-03 | Telefonaktiebolaget L M Ericsson (Publ) | Packet node for applying service path routing at the MAC layer |
US8619773B2 (en) * | 2010-07-29 | 2013-12-31 | Cisco Technology, Inc. | Service request packet including an exterior network protocol attribute |
US8830834B2 (en) * | 2011-12-21 | 2014-09-09 | Cisco Technology, Inc. | Overlay-based packet steering |
CN104753786B (zh) * | 2012-02-13 | 2019-01-15 | 华为技术有限公司 | 业务路由网络及业务处理的方法、设备 |
US8948001B2 (en) * | 2012-06-26 | 2015-02-03 | Juniper Networks, Inc. | Service plane triggered fast reroute protection |
US9083642B2 (en) * | 2012-07-27 | 2015-07-14 | Dell Products L.P. | Systems and methods for optimizing layer three routing in an information handling system |
US9036476B2 (en) * | 2012-09-28 | 2015-05-19 | Juniper Networks, Inc. | Maintaining load balancing after service application with a network device |
US9397950B2 (en) * | 2012-11-01 | 2016-07-19 | Telefonaktiebolaget Lm Ericsson (Publ) | Downlink service path determination for multiple subscription based services in provider edge network |
US9413667B2 (en) * | 2013-02-15 | 2016-08-09 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and network nodes for traffic steering based on per-flow policies |
CN104380667B (zh) * | 2013-06-14 | 2017-09-12 | 华为技术有限公司 | 一种数据报文的路由方法和设备 |
-
2013
- 2013-02-22 CN CN201310057650.5A patent/CN104009918B/zh active Active
- 2013-02-22 CN CN201810217327.2A patent/CN108650178B/zh active Active
-
2014
- 2014-02-08 EP EP14754855.6A patent/EP2953302B1/en active Active
- 2014-02-08 WO PCT/CN2014/071897 patent/WO2014127701A1/zh active Application Filing
- 2014-02-08 EP EP17197457.9A patent/EP3334102A1/en not_active Withdrawn
-
2015
- 2015-08-21 US US14/832,835 patent/US10263901B2/en active Active
-
2018
- 2018-03-26 US US15/935,990 patent/US11102133B2/en active Active
-
2021
- 2021-08-05 US US17/394,705 patent/US12028260B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272317A (zh) * | 2007-03-19 | 2008-09-24 | 中国电信股份有限公司 | 一种实现网络、业务融合和统一控制的系统和方法 |
CN101459575A (zh) * | 2007-12-14 | 2009-06-17 | 华为技术有限公司 | 一种实现资源准入控制的方法、系统及设备 |
CN101557297A (zh) * | 2009-05-14 | 2009-10-14 | 中兴通讯股份有限公司 | 一种基于互联网的开放式电信业务生成系统及方法 |
CN102404192A (zh) * | 2010-09-17 | 2012-04-04 | 华为终端有限公司 | 报文传输方法和网络设备 |
WO2012084462A1 (en) * | 2010-12-20 | 2012-06-28 | Alcatel Lucent | Method and network node for configuring a network for optimized transport of packet traffic |
Non-Patent Citations (1)
Title |
---|
See also references of EP2953302A4 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3247075A4 (en) * | 2015-01-31 | 2018-01-03 | Huawei Technologies Co., Ltd. | Service data stream data packet processing method and device |
US10700981B2 (en) | 2015-01-31 | 2020-06-30 | Huawei Technologies Co., Ltd. | Processing method for service flow packet, and device |
Also Published As
Publication number | Publication date |
---|---|
CN108650178A (zh) | 2018-10-12 |
EP2953302B1 (en) | 2018-01-10 |
CN104009918B (zh) | 2018-03-27 |
CN108650178B (zh) | 2021-01-15 |
US20150365331A1 (en) | 2015-12-17 |
US11102133B2 (en) | 2021-08-24 |
US10263901B2 (en) | 2019-04-16 |
CN104009918A (zh) | 2014-08-27 |
US12028260B2 (en) | 2024-07-02 |
EP3334102A1 (en) | 2018-06-13 |
EP2953302A1 (en) | 2015-12-09 |
EP2953302A4 (en) | 2016-09-14 |
US20210367896A1 (en) | 2021-11-25 |
US20180219785A1 (en) | 2018-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9065701B2 (en) | Enhanced serialization mechanism | |
US11979322B2 (en) | Method and apparatus for providing service for traffic flow | |
TWI744359B (zh) | 一種資料傳輸的方法及網路設備 | |
WO2014127701A1 (zh) | 一种业务报文处理方法、装置及系统 | |
CN105591971B (zh) | 一种QoS的实现方法和装置 | |
WO2018028590A1 (zh) | 报文传输 | |
WO2014205784A1 (zh) | 一种在nvo3网络中处理组播报文的方法、装置和nvo3网络 | |
WO2016062169A1 (zh) | 一种报文传输方法及装置 | |
TW201713082A (zh) | 用於經由封包中繼外部化網路功能之系統與方法 | |
WO2016177145A1 (zh) | 报文发送方法及装置 | |
US20140280827A1 (en) | Scalable distributed control plane for network switching systems | |
US10205610B2 (en) | Uplink packet routing in a system-on-a-chip base station architecture | |
WO2014139157A1 (zh) | 一种报文处理的方法、报文设备和系统 | |
CN107733765B (zh) | 映射方法、系统和相关设备 | |
WO2024141093A1 (zh) | Nfv接入方法、设备、系统及存储介质 | |
WO2017036384A1 (zh) | 运营商边缘设备及数据转发方法 | |
CN111130978B (zh) | 网络流量转发方法、装置、电子设备及机器可读存储介质 | |
WO2023040782A1 (zh) | 处理报文的方法、系统、设备和存储介质 | |
US10284426B2 (en) | Method and apparatus for processing service node ability, service classifier and service controller | |
JP7044223B2 (ja) | サービス処理方法およびネットワークデバイス | |
WO2016197933A2 (zh) | 报文转发 | |
CN111010344B (zh) | 报文转发方法、装置、电子设备及机器可读存储介质 | |
WO2014117474A1 (zh) | 路由方法、系统及相关设备 | |
CN110505138A (zh) | 报文转发方法、装置、电子设备及机器可读存储介质 | |
CN118713911A (zh) | 报文处理方法、装置、dpu及sdn控制器 |
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: 14754855 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2014754855 Country of ref document: EP |