WO2015100644A1 - 一种处理报文的方法和装置 - Google Patents

一种处理报文的方法和装置 Download PDF

Info

Publication number
WO2015100644A1
WO2015100644A1 PCT/CN2013/091177 CN2013091177W WO2015100644A1 WO 2015100644 A1 WO2015100644 A1 WO 2015100644A1 CN 2013091177 W CN2013091177 W CN 2013091177W WO 2015100644 A1 WO2015100644 A1 WO 2015100644A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
service path
identifier
message
forwarding table
Prior art date
Application number
PCT/CN2013/091177
Other languages
English (en)
French (fr)
Inventor
杨继尚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/091177 priority Critical patent/WO2015100644A1/zh
Priority to CN201380003574.8A priority patent/CN105009542B/zh
Publication of WO2015100644A1 publication Critical patent/WO2015100644A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for processing a message.
  • a value-added service device such as a firewall, a load balancer (English: load balancer, LB), an intrusion prevention system (English: intrusion prevention system, abbreviation: IPS), an intrusion detection system (English) : Intrusion Detection System, Abbreviation: IDS), data loss prevention (English: data loss prevention, abbreviation: DLP) device, anti-virus (English: anti-virus, abbreviation: AV)
  • the deployment location of the device is usually strong and the network topology is strong.
  • the value-added service device is generally deployed on a normal forwarding path of the service flow that needs to be processed by the value-added service device, or is connected to a network device (such as a router or a switch) on the normal forwarding path.
  • the problem with the tight coupling of value-added service equipment and service flow forwarding described above is that the service processing path is not flexible. For example, on a forwarding path, packets that are normally forwarded pass through the firewall and IPS. However, some traffic flows through the forwarding path may only need to be processed by the firewall, and some may need to be processed by both the firewall and the IPS. In the traditional deployment mode, traffic that does not require IPS processing must pass through the IPS, which wastes the processing power of the IPS.
  • service chain In order to solve the above problem, the concept of a service chain (English: service chain) is proposed in the prior art.
  • the basic idea is to specify the value-added service processing and sequence to be performed on the service flow on a network node, and then use the tunnel technology to make the packets in the service flow pass through the value-added service devices in turn.
  • the service path and the service path are identified, so that the current value-added service device can send the processed packet to the next-hop value-added service device in the service path.
  • the service path refers to a path composed of value-added service devices that need to pass through a specific service flow.
  • the prior art proposes a method for identifying a service path by using a field in a standard tunnel header as a service path identifier in a message forwarding process, for example, using a key in a generic routing encapsulation (GRE).
  • Word (English: key) field
  • MAC-in-MAC encapsulation service instance virtual local area network identifier (English: Service nsiance VLA:), abbreviation: I-SID) field
  • network virtualization general routing encapsulation English: network virtualization using Virtual subnet identifier (English: virtual subnet identifier, abbreviated: VSID) in the generic routing encapsulation, abbreviation: NVGRE) or virtual scalable LAN (English: virtual extensible local area network, abbreviation: VXLAN)
  • the virtual network identifier (English: virtual network identifier, abbreviated: VNID) in the package identifies the service path.
  • the fields in the standard tunnel header already have a specific purpose in the existing network. Using these fields to identify the service path in the service chain can cause business conflicts.
  • the method requires that the network device (including the stream distribution point and the value-added service device) on the service path must support the corresponding tunnel function to encapsulate and de-encapsulate the tunnel during the service flow forwarding process, thereby increasing the burden on the network device.
  • the object of the present invention is to provide a method and a device for processing a message, so as to avoid the use of the field in the standard tunnel header to identify the service conflict caused by the service path and reduce the burden on the network device on the service path. .
  • the first aspect provides a method for processing a message, including:
  • the added packet is a packet obtained by adding a service path option to an IP header of the service packet, where the service path identifier includes a service path identifier, where the service path identifier is used to identify the service path; Obtaining the service path identifier according to the service path option;
  • the method before the acquiring the added packet, the method further includes: receiving service path information sent by the management device, where the service path information includes the service path identifier; The service path information updates the forwarding table.
  • the forwarding table is a first forwarding table, where the service path information further includes a service flow identifier and a next Hopping, the updating the forwarding table according to the service path information includes:
  • the first forwarding table Updating the first forwarding table according to the service path information, where the first forwarding table includes a correspondence between the service flow identifier, the service path identifier, and the next hop.
  • the obtaining the added packet includes:
  • the processing of the added packet according to the service path identifier and the locally stored forwarding table includes: searching the first forwarding table according to the service path identifier, obtaining a next hop corresponding to the service path identifier, and reporting the The next hop forwards the added message.
  • the service path information further includes a number of nodes of the service path corresponding to the service path identifier, where the A forwarding table includes a correspondence between the service flow identifier, the service path identifier, the next hop, and the number of nodes.
  • the obtaining the added packet includes:
  • the processing, by the service path identifier, and the locally stored forwarding table, the adding the message includes:
  • the first forwarding table is searched according to the service path identifier, and the next hop corresponding to the service path identifier is obtained, and the next hop is sent to the next hop. Send the added message.
  • the forwarding table is a second forwarding table, where the service path information further includes a next hop, Updating the forwarding table according to the service path information includes:
  • the obtaining the added packet includes:
  • the last hop device includes a stream distribution point or a last hop value service device.
  • the method before the obtaining the service path identifier according to the service path option, the method further includes: performing value-added service processing on the added packet, and obtaining the processed added packet.
  • the process of processing the added packet according to the service path identifier and the locally stored forwarding table includes: searching for the second forwarding table according to the service path identifier, obtaining a next hop corresponding to the service path identifier, and Transmitting, by the next hop, the processed added message; or
  • the process of processing the added packet according to the service path identifier and the locally stored forwarding table includes: searching for the second forwarding table according to the service path identifier, and obtaining a next hop corresponding to the service path identifier, where When the next hop is the termination identifier, the service path option in the processed added packet is deleted, and the processed service packet is obtained, and the processed service packet is normally forwarded; or
  • the process of processing the added packet according to the service path identifier and the locally stored forwarding table includes: The value of the generation time in the option is decremented by 1, the second forwarding table is searched according to the service path identifier, and the next hop corresponding to the service path identifier is obtained, and the processing is forwarded to the next hop. Add message; or
  • processing the added packet includes: deleting the processing
  • the service path option in the added packet is used to obtain the processed service packet, and the processed service packet is normally forwarded.
  • the second aspect provides an apparatus for processing a message, including:
  • a first obtaining unit configured to obtain an added packet, where the added packet is a packet obtained by adding a service path option to an IP header of the service packet, where the service path option includes the service path identifier,
  • the service path identifier is used to identify the service path.
  • a second acquiring unit configured to acquire the service path identifier according to the service path option
  • a storage unit configured to store and forward a table
  • a processing unit configured to process the added packet according to the service path identifier and the forwarding table.
  • the device further includes:
  • a receiving unit configured to receive service path information sent by the management device, where the service path information includes a service path identifier
  • An updating unit configured to update the forwarding table according to the service path information.
  • the service path information further includes a service flow identifier and a next hop, where the update unit is configured to:
  • the first acquiring unit is configured to:
  • the processing unit is configured to: search the first forwarding table according to the service path identifier, and obtain a corresponding The next hop of the service path identifier, and forwarding the added packet to the next hop.
  • the service path information further includes a number of nodes of the service path corresponding to the service path identifier, where A forwarding table includes a correspondence between the service flow identifier, the service path identifier, the next hop, and the number of nodes.
  • the first acquiring unit is configured to:
  • the processing unit is configured to:
  • the first forwarding table is searched according to the service path identifier, and the next hop corresponding to the service path identifier is obtained, and the next hop is sent to the next hop. Send the added message.
  • the service path information further includes a next hop, where the updating unit is configured to:
  • the first acquiring unit is configured to:
  • the last hop device includes a stream distribution point or a previous hop Value business equipment.
  • the device further includes: a value added service processing unit, configured to add the packet The value-added service is processed, and the processed added message is obtained.
  • the processing unit is configured to: search the second forwarding table according to the service path identifier, and obtain Corresponding to the next hop of the service path identifier, and forwarding the processed added packet to the next hop; or
  • the processing unit is configured to: search the second forwarding table according to the service path identifier, and obtain a next hop corresponding to the service path identifier, and when the next hop is a termination identifier, delete the processed Adding the service path option in the packet, and obtaining the processed service packet, and performing the normal forwarding of the processed service packet; or when the service path option further includes a lifetime, and the lifetime is When the value is greater than 1, the processing unit is configured to: decrement the value of the generation time in the service path option by one, and search the second forwarding table according to the service path identifier to obtain the corresponding service path. The identified next hop, forwarding the processed added message to the next hop; or
  • the processing unit is configured to: delete the service path option in the processed added message, and obtain the processed The service packet is forwarded normally by the processed service packet.
  • the stored forwarding table is updated according to the service path information that is sent by the management device, including the service path identifier, and the added packet obtained by adding the service path option to the IP header of the service packet is forwarded according to the forwarding table.
  • the decoupling of the service path identifier from the field in the standard tunnel header during the packet forwarding process avoids the use of fields in the standard tunnel header to identify the service conflict caused by the service path.
  • the above solution does not require the device for processing the message to assume additional tunnel functions, thereby reducing the burden on the device.
  • FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for configuring a service path identifier according to an embodiment of the present invention
  • 3 is a schematic flowchart of a method for processing a message according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a first forwarding table according to an embodiment of the present invention
  • Figure 5a is a schematic structural view of an IP header
  • FIG. 5b is a schematic structural diagram of a service path option according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of another method for processing a message according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of still another method for processing a message according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an apparatus for processing a message according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another apparatus for processing a message according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of them. Example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the network system 10 includes a management device 11, a stream distribution point 12, and a value-added service device 13.
  • the value-added service device may have one or more, and the plurality of value-added service devices 13a are shown. n.
  • the management device 11, the stream distribution point 12, and the value-added service device 13 may all be virtual nodes, virtual function modules or hardware physical entities in the network.
  • the management device 11 manages the stream distribution point 11 and the plurality of value-added service devices 13a-n, and determines a service path and a corresponding service path identifier according to the received service requirement, and the distribution point 11 and the The value-added service device 13 respectively transmits the service path information on the service path identifier.
  • the stream distribution point 12 is located at the entrance of the network system, and is configured to select a service path for the received service packet according to the first forwarding table stored locally, and add a service to the IP header of the service packet. After the path option obtains the added message, the added message is sent to the selected service path, where the service path includes one or more value-added service devices.
  • FIG. 1 includes the value-added service device 13a.
  • the value-added service device 13 is configured to perform a value-added service processing on the added message when receiving the added message, and send the processed service message to the next according to the locally stored second forwarding table. jump.
  • the embodiment of the present invention provides a method for configuring a service path identifier.
  • Place The execution subject of the method is the management device 11.
  • the management device receives a service requirement of a user, where the service requirement includes a service flow identifier and a service specification.
  • the service requirement of the user may be directly sent by the user to the management device; on the other hand, the service requirement of the user may be configured by a network management system, and sent by the network management system to the Manage devices.
  • the service flow identifier is used to identify a service flow that needs to be processed.
  • the service specification includes value-added services required by the service flow and their order.
  • the service specification may further include value-added service performance, where the value-added service performance is a performance requirement for the value-added service device, such as network throughput, concurrent connection number, and the like.
  • the management device selects a value-added service device according to the service requirement, and determines a service path, where the service path includes a value-added service device that the service flow corresponding to the service flow identifier needs to pass during the transmission process.
  • the management device selects a corresponding value-added service device according to the service requirement, and specifically, the value-added service device corresponding to each value-added service is selected according to the service specification in the service requirement.
  • the management device selects the value-added service device according to the value-added service and the value-added service performance in the service specification.
  • the service specification includes a plurality of value-added services
  • the service specifications may include value-added service performance corresponding to one or more value-added services. For example, when the service specification includes the performance of the firewall, indicating that the service flow requires a corresponding performance firewall, the management device selects a firewall that meets the performance from among multiple firewalls.
  • the management device determines a service path according to the sequence of the value-added service in the service specification, where the service path includes a value-added service device that the service flow needs to pass sequentially in the transmission process.
  • the service requirement indicates that the service flow needs to undergo filtering processing, intrusion detection, and load balancing processing in sequence
  • the service path may include: a firewall, an IDS, and a load balancer.
  • step 203 the management device determines a service path identifier of the service path.
  • a service path database is stored on the management device.
  • the service path database includes a service path identifier and a service path. Determining, by the management device, the service path identifier includes: the management device searching the service path database according to the service path, and in an implementation manner, if the service path is stored in the service path database, obtaining the location a service path identifier of the service path; in another implementation manner, if the service path is not stored in the service path database, assign a service path identifier to the service path, and record the location in the service path database The service path and the service path identifier.
  • the service path identifier is used to identify a service path.
  • the management device sends service path information to the network node it manages, where the service path information includes the service path identifier.
  • the network node comprises the stream distribution point 11 and the value added service device 13.
  • the management device sends service path information to the stream distribution point, where the service path information is used to enable the flow distribution point to update the first forwarding table.
  • the service path information includes, in addition to the service path identifier, a service flow identifier and a next hop of the flow distribution point on the service path (ie, the first value-added service device on the service path).
  • the first forwarding table includes a service flow identifier, a service path identifier, and a corresponding relationship of a next hop.
  • the service path information may further include the number of nodes of the service path, that is, the number of value-added service devices on the service path.
  • traffic 1 corresponds to service path 1
  • number of nodes in service path 1 is 4, and number of nodes in service path 2 is 3.
  • the first forwarding table includes a service flow identifier, a service path identifier, a number of nodes, and a corresponding relationship of the next hop.
  • the management device sends the service path information to the value-added service device, where the service path information is used to enable the value-added service device to update the second forwarding table.
  • the service path information includes, in addition to the service path identifier, a next hop of the value-added service device on the service path.
  • the second forwarding table includes a service path identifier and a correspondence of a next hop.
  • the next hop is a termination identifier.
  • the termination identifier is used to indicate that the value-added service device is the last hop of the service path corresponding to the service path identifier.
  • each value-added service device When the service path includes a plurality of value-added service devices, the management device needs to separately configure the service path information for each value-added service device on the service path. After the configuration is complete, each value-added service device generates a different second forwarding entry for the service path identifier. For example, in the network system shown in FIG. 1, for the service path 1, the second forwarding entry of the value-added service device 13a is (service path 1, 13b), and the second forwarding entry of the value-added service device 13b is (the service path). l, 13c), the configuration on other value-added services is similar.
  • the management device determines a service path for the service flow of the user according to the service requirement of the user, and determines a service path identifier for the service path, and then configures the traffic distribution point and the value-added service device.
  • Business path identifier Since the service path identifier is independent of the field in the standard tunnel header, the use of the service path identifier in the network does not cause a conflict of services.
  • the traffic forwarding point and the value-added service device can be identified and forwarded by adding a first forwarding table or a second forwarding table respectively, and the service is identified by using a field in the standard tunnel header. Compared with the path, the value-added service device does not need to bear the amount.
  • the external tunnel function relieves the burden of value-added service equipment.
  • the present invention additionally provides a method of processing a message as shown in Fig. 3.
  • the execution subject of the method is a stream distribution point 12 or a value-added service device 13.
  • step 301 service path information sent by the management device is received, where the service path information includes a service path identifier.
  • the stream distribution point receives the service path information sent by the management device, where the service path information includes the service flow identifier and the next hop, or the service flow identifier, in addition to the service path identifier, and the next The number of nodes of the service path corresponding to the hop and the service path identifier.
  • the value-added service device receives the service path information sent by the management device, where the service path information includes a next hop in addition to the service path identifier.
  • the next hop is a termination identifier. The termination identifier is used to indicate that the value-added service device is the last hop of the service path corresponding to the service path identifier.
  • step 302 the locally stored forwarding table is updated according to the service path information.
  • the step 302 is performed by a stream distribution point.
  • the updating the forwarding table according to the service path information includes: updating, according to the service path information, a first forwarding table locally stored by the stream distribution point.
  • the service path information includes the service flow identifier and the next hop
  • the first forwarding table is as shown in FIG. 4a, and includes a service flow identifier, a service path identifier, and a next hop.
  • the service path information includes, in addition to the service path identifier, a service flow identifier, a next hop, and a number of nodes of the service path corresponding to the service path identifier (that is, a value-added service device on the service path)
  • the first forwarding table includes a correspondence between a service flow identifier, a service path identifier, a next hop, and a number of nodes.
  • the step 302 is performed by the value added service device.
  • the service path information includes a next hop in addition to the service path identifier.
  • the updating the forwarding table according to the service path information includes: updating, according to the service path information, a second forwarding table locally stored by the value-added service device, where the second forwarding table includes a service path identifier and a correspondence relationship of a next hop .
  • the updating the forwarding table including generating the forwarding table, generating a new entry for the forwarding table, or replacing any one of the original entries in the forwarding table.
  • the foregoing steps 301 and 302 are optional, and the information in the service path information may be sent to the stream distribution point or the value-added service device by other means, for example, the management device is used to provide a service path.
  • the path information is sent to the stream distribution point, and then sent by the stream distribution point to the value-added service device.
  • the management device directly sends the forwarding table to the stream distribution point or the value-added service device.
  • the added packet is obtained by adding a service path option to the IP header of the service packet, where the service path option includes the service path identifier.
  • the service path identifier is used to identify a service path.
  • FIG. 5a it is a schematic diagram of the IP header structure. It can be seen that in addition to the standard defined fields, a series of options (English: option) can be included in the IP header.
  • the service path option in the embodiment of the present invention is an extended option in the IP header.
  • FIG. 5b it is a schematic structural diagram of a service path option in an embodiment of the present invention, where a type indicates that the option is a service path option, for example, may be 250; a length indicates a total length of the service path option.
  • the time-to-live (abbreviation: TTL) is used to indicate the number of value-added service devices (the number of nodes) that the packet can pass.
  • the path ID (path ID) indicates the service path identifier.
  • the service path option may include only the service path identifier, and may include the service path identifier and the TTL.
  • step 303 is performed by a stream distribution point.
  • the obtaining the added packet includes: the stream distribution point receiving the service packet, where the service packet belongs to the service flow corresponding to the service flow identifier, and is obtained according to the service flow identifier and searching the first forwarding table.
  • the service path option is added to the IP header of the service packet according to the service path identifier, to obtain the added packet, where the service path option includes the service path identifier; or the flow
  • the distribution point receives the service packet, and the service packet belongs to the service flow corresponding to the service flow identifier, and searches the first forwarding table according to the service flow identifier to obtain the service path identifier and the number of nodes, according to the The service path identifier and the number of nodes add a service path option to the IP header of the service packet to obtain the added packet, where the service path option includes the service path identifier and a lifetime, and the lifetime value is The number of nodes.
  • step 303 is performed by the value added service device.
  • the obtaining the added packet includes: the value-added service device receiving the added packet sent by the last hop device, where the last hop device may add value to the flow distribution point or the last hop of the value-added service device Business equipment.
  • step 304 the service path identifier is obtained according to the service path option.
  • the stream distribution point or the value-added service device parses the added packet to obtain the service path option, and obtains the service path identifier from the service path option.
  • the added message is processed according to the service path identifier and the locally stored forwarding table.
  • the step 305 is performed by a stream distribution point.
  • the flow distribution point searches for the first forwarding table according to the service path identifier, and obtains a next hop corresponding to the service path identifier, and provides a next hop to the service path identifier.
  • the next hop forwards the added message; when the service path option further includes a lifetime, the stream distribution point decrements the value of the lifetime by 1, and searches for the number according to the service path identifier.
  • a forwarding table obtains a next hop corresponding to the service path identifier, and forwards the added packet to the next hop.
  • the stream distribution point needs to obtain the service path option before sending the added message.
  • the service path identifier is determined, and the added packet is processed correspondingly according to the service path identifier.
  • the step 305 is performed by a value added service device.
  • the method further includes: the value-added service device performs value-added service processing on the added packet, and obtains the processed added packet. Thereafter, the value-added service device searches for the second forwarding table according to the service path identifier, obtains a next hop corresponding to the service path identifier, and forwards the processed added packet to the next hop.
  • the value-added service device searches for the second forwarding table according to the service path identifier, and obtains a next hop corresponding to the service path identifier, and when the next hop is a termination identifier, deleting the processed Adding the service path option in the packet, and obtaining the processed service packet, and performing the normal forwarding of the processed service packet; or when the service path option further includes a lifetime, and the lifetime is After the value of the service value is greater than 1, the value-added service device reduces the value of the generation time in the service path option by one, and searches the second forwarding table according to the service path identifier to obtain the corresponding service path identifier.
  • the value-added service device deletes the service path option in the processed added packet, and obtains the processed service packet, and the processed service packet is processed.
  • the normal forwarding is performed, that is, the service packet is forwarded in Layer 2 or Layer 3 according to the destination address of the processed service packet.
  • the value of the time-to-live value is the number of value-added service devices (including the value-added service device that currently receives the added message) that needs to pass through the added packet on the service path. For example, in the service path option in the added message received by the value-added device 13b, the service path identifier is 1, and the lifetime time value is 3.
  • the added packet is obtained by adding a service path option to an option of an IP header of the service packet
  • the addition of the service path option does not affect the IP header of the service packet.
  • the other information does not affect the payload of the service message. Therefore, the processing of the added message by the value-added service device is equivalent to the processing of the service message. Therefore, after deleting the service path option from the processed added message, The result is the processed business message.
  • the stream distribution point receives the service path information sent by the management device, where the service path information includes the service path identifier.
  • step 602 the stream distribution point updates the first forwarding table according to the service path information.
  • the service path information includes a service flow identifier, a service path identifier, and a next hop of the flow distribution point.
  • the flow distribution point updates the locally stored first forwarding table according to the service path information. As shown in FIG. 4a, the first forwarding table includes a service flow identifier, a service path identifier, and a next hop correspondence.
  • the service path information may further include the number of nodes of the service path, that is, the number of value-added service devices on the service path.
  • the number of nodes in service path 1 is 4, and the number of nodes in service path 2 is 3.
  • the first forwarding table includes a service flow identifier, a service path identifier, a number of nodes, and a corresponding relationship of the next hop.
  • the stream distribution point receives a service packet, and the service packet belongs to a service flow corresponding to the service flow identifier, and obtains the service flow identifier according to the service packet, according to the service flow identifier.
  • the first forwarding table is searched for the service path identifier, and the service path option is added to the IP header of the service packet according to the service path identifier to obtain the added packet.
  • the service packet is a packet that needs to be processed by the value-added service after the flow distribution point enters the network system.
  • the service flow identifier may be a quintuple, an IPv6 address prefix, or other information that can uniquely identify a service flow.
  • the stream distribution point searches for the first forwarding table stored locally according to the obtained service flow identifier to obtain the service path identifier, where the second forwarding table includes the service flow identifier, the service path identifier, and the next hop corresponding relationship.
  • the flow distribution point adds a service path option to the IP header of the service packet according to the service path identifier, to obtain the added packet.
  • the service path option includes the service path identifier.
  • the flow distribution point searches for the first forwarding table stored locally to obtain the path identifier and the number of nodes according to the obtained service flow identifier, where the first forwarding table includes a service flow identifier, a service path identifier, and a node. And a corresponding relationship between the number and the next hop, where the stream distribution point adds a service path option to the IP header of the service packet according to the service path identifier and the number of nodes, where the service path option includes the service path
  • TTL time-to-live
  • the stream distribution point acquires the service path identifier according to the service path option, and processes the added message according to the service path identifier and the first forwarding table.
  • the stream distribution point searches for the first forwarding table according to the service path identifier, and obtains the identifier corresponding to the service path identifier. One hop, and forwarding the added message to the next hop.
  • the stream distribution point when the service path option further includes a time-to-live, the stream distribution point reduces the value of the time-to-live by 1, and searches for the first forwarding table according to the service path identifier. Obtaining a next hop corresponding to the service path identifier, and forwarding the added packet to the next hop.
  • the value-added service device receives the service path information sent by the management device, where the service path information includes the service path identifier.
  • step 702 the value-added service device updates the second forwarding table according to the service path information.
  • the service path information includes a service path identifier and a next hop of the value-added service device
  • the value-added service device updates the locally stored second forwarding table according to the service path information, where the second forwarding table includes The correspondence between the service path identifier and the next hop.
  • the next hop is a termination identifier.
  • the value-added service device obtains an added packet, where the added packet is a packet obtained by adding a service path option to an IP header of the service packet, where the service path option includes the service path identifier. .
  • the value-added service device may receive the added message from the stream distribution point, or may receive the added message from the last-hop value-added service device.
  • the service path option includes a service path identifier. In another implementation, the service path option includes a service path identifier and a lifetime.
  • step 704 the value-added service device performs value-added service processing on the added packet to obtain a processed added message.
  • step 705 the value-added service device acquires the service path identifier according to the service path option, and processes the processed added message according to the service path identifier and the second forwarding table.
  • the value-added service device searches for a second forwarding table that is locally stored by the value-added service device according to the service path identifier, acquires a next hop corresponding to the service path identifier, and forwards the message according to the next hop. Added message after processing.
  • the service path option includes only the service path identifier, and the value-added service device directly sends the processed added packet to the next hop.
  • the value-added service device deletes the service path option in the processed added packet, and obtains the processed service packet. The processed service packets are forwarded normally.
  • the service path option includes a time-to-live in addition to the service path identifier. If the value of the time-to-live time is greater than 1, the value-added service device reduces the value of the time-to-live by one. The processed added packet is sent to the next hop; if the value of the lifetime is equal to 1, the value-added service device deletes the service path option in the processed added packet, and obtains The processed service packet is sent to the next hop.
  • the flow distribution point and the value-added service device respectively update the stored forwarding table according to the service path information that is sent by the management device, including the service path identifier, and add the IP header of the service packet according to the forwarding table forwarding.
  • the service path identifier is decoupled from the field in the standard tunnel header.
  • the field in the standard tunnel header is used to identify the service conflict caused by the service path.
  • the above embodiments of the present invention do not require the stream distribution point and the value-added service device to take on additional tunnel functions, thereby reducing the burden of the stream distribution point and the value-added service device.
  • An embodiment of the present invention further provides an apparatus for processing a message.
  • the apparatus includes: a receiving unit 801, an updating unit 802, a storage unit 803, a first obtaining unit 804, and a second acquiring unit 805. And a processing unit 806.
  • the receiving unit 801 and the updating unit 802 are optional for the embodiment of the present invention.
  • the receiving unit 801 is configured to receive service path information sent by a management device, where the service path information includes a service path identifier.
  • the device that processes the message is a stream distribution point
  • the receiving unit 801 receives the service path information sent by the management device, where the service path information includes the service flow identifier in addition to the service path identifier. And the next hop, or the service flow identifier, the next hop, and the number of nodes of the service path corresponding to the service path identifier.
  • the device that processes the message is a value-added service device, and the receiving unit 801 receives the service path information sent by the management device, where the service path information includes the next jump.
  • the next hop is a termination identifier.
  • the updating unit 802 is configured to update the forwarding table according to the service path information.
  • the update forwarding table is stored on the storage unit 803.
  • the device that processes the message is a stream distribution point
  • the updating unit 802 is configured to: update the first forwarding table stored on the storage unit 803 of the stream distribution point according to the service path information.
  • the service path information includes the service flow identifier and the next hop
  • the first forwarding table is as shown in FIG. 4a, and includes a service flow identifier, a service path identifier, and a next hop. Correspondence relationship.
  • the service path information includes, in addition to the service path identifier, a service flow identifier, a next hop, and a number of nodes of the service path corresponding to the service path identifier (that is, a value-added service device on the service path)
  • the first forwarding table includes a service flow identifier, a service path identifier, a number of nodes, and a corresponding relationship of a next hop.
  • the device for processing a message is a value-added service device
  • the service path information includes a next hop in addition to the service path identifier.
  • the updating unit 802 is configured to: update, according to the service path information, a second forwarding table stored on the storage unit 803 of the value-added service device.
  • the second forwarding table includes a service path identifier and a correspondence of a next hop.
  • the first obtaining unit 804 is configured to obtain an added packet, where the added packet is a packet obtained by adding a service path option to an IP header of the service packet, where the service path option includes the service path identifier.
  • the service path identifier is used to identify a service path.
  • FIG. 5a it is a schematic diagram of the IP header structure. It can be seen that in addition to the standard defined fields, a series of options (English: option) can be included in the IP header.
  • the service path option in the embodiment of the present invention is an extended option in the IP header.
  • a schematic structural diagram of a service path option in an embodiment of the present invention wherein a type (English: type) indicates that the option is a service path option, for example, may be 250; a length (English: length) indicates the service path.
  • the total length of the option time-to-live (abbreviation: TTL) is used to indicate the number of value-added service devices (referred to as the number of nodes) that the packet can pass, and the path ID (English: path ID) Business path identifier.
  • TTL time-to-live
  • the service path option may include only the service path identifier, and may include the service path identifier and the TTL.
  • the device for processing a message is a stream distribution point
  • the first obtaining unit 804 is configured to receive the service packet, where the service packet belongs to a service flow corresponding to the service flow identifier, And searching for the first forwarding table according to the service flow identifier to obtain the service path identifier, and adding a service path option to the IP header of the service packet according to the service path identifier, to obtain the added packet, where
  • the service path option includes the service path identifier; or the first obtaining unit 804 is configured to receive the service packet, where the service packet belongs to a service flow corresponding to the service flow identifier, according to the service packet Obtaining the service flow identifier, searching the first forwarding table according to the service flow identifier to obtain the service path identifier and the number of nodes, and according to the service path identifier and the number of nodes in the IP header of the service packet
  • the device for processing a message is a value-added service device
  • the first acquiring unit 804 is configured to: receive an added message sent by the last hop device, where the last hop device may be a flow distribution Point or the last hop value-added service device of the device that processes the message.
  • the second obtaining unit 805 is configured to obtain the service path identifier according to the service path option. Specifically, the second obtaining unit parses the added packet to obtain the service path option, and obtains the service path identifier from the service path option.
  • the processing unit 806 is configured to process the added packet according to the service path identifier and a forwarding table stored by the storage unit 803.
  • the device for processing a message is a stream distribution point, and when the service path option includes only the service path identifier, the processing unit 806 is configured to search for the service path identifier according to the service path identifier.
  • the first forwarding table obtains a next hop corresponding to the service path identifier, and forwards the added packet to the next hop; when the service path option further includes a lifetime, the processing unit 806 After the value of the time-to-live is decremented by 1, the first forwarding table is searched according to the service path identifier, and the next hop corresponding to the service path identifier is obtained, and the next hop is forwarded to the next hop. Add a message.
  • the device for processing a message is a value-added service device, and the device further includes a value-added service processing unit, performing value-added service processing on the added message, and obtaining the processed added message.
  • the processing unit 806 is configured to search the second forwarding table according to the service path identifier, obtain a next hop corresponding to the service path identifier, and forward the processed added packet to the next hop. Or the processing unit 806 is configured to search the second forwarding table according to the service path identifier to obtain a next hop corresponding to the service path identifier, and when the next hop is a termination identifier, delete the The service path option in the added packet is processed, and the processed service packet is obtained, and the processed service packet is forwarded normally; or, when the service path option further includes a lifetime, When the value of the time-to-live is greater than 1, the processing unit 806 is configured to decrement the value of the generation time in the service path option by 1, and search the second forwarding table according to the service path identifier to obtain a corresponding The next hop of the service path identifier, and forwarding the processed added packet to the next hop; when the service path option includes the service path identifier and the generation time, and When the value of the generation time is 1,
  • the normal forwarding is performed, that is, the service packet is forwarded in Layer 2 or Layer 3 according to the destination address of the processed service packet.
  • the value of the lifetime is a value-added service device that needs to pass the added packet on the service path (including the value-added service that currently receives the added packet). Number of devices). For example, in the service path option in the added message received by the value-added device 13b, the service path identifier is 1 and the lifetime time is 3.
  • FIG. 9 is a schematic structural diagram of another apparatus for processing a message according to an embodiment of the present invention.
  • the device includes: a communication port 901, a memory 902, and a processor 903.
  • the device may further include other common components, which are not limited herein.
  • the memory 902 stores a set of program codes
  • the processor 903 is configured to call the program code stored in the memory 902 to perform the following operations:
  • the added packet is a packet obtained by adding a service path option to an IP header of the service packet, where the service path identifier includes a service path identifier, where the service path identifier is used to identify the service path; Obtaining the service path identifier according to the service path option;
  • the operations further include: receiving service path information sent by the management device, where the service path information includes a service path identifier; and updating the forwarding table according to the service path information.
  • the apparatus is for implementing the functionality of a stream distribution point.
  • the service path information further includes a service flow identifier and a next hop
  • the updating the forwarding table according to the service path information includes: updating a locally stored first forwarding table according to the service path information, where the first forwarding table includes Corresponding relationship between the service flow identifier, the service path identifier, and the next hop.
  • the obtaining the added packet includes: receiving the service packet, where the service packet belongs to the service flow corresponding to the service flow identifier; acquiring the service flow identifier according to the service packet, and identifying the service flow identifier according to the service flow identifier
  • the first forwarding table is searched for the service path identifier, and the service path option is added to the IP header of the service packet according to the service path identifier to obtain the added packet.
  • the processing of the added packet according to the service path identifier and the locally stored forwarding table includes: searching the first forwarding table according to the service path identifier, and obtaining a next hop corresponding to the service path identifier, and The next hop forwards the added message.
  • the apparatus is for implementing the functionality of another stream distribution point.
  • the service path information further includes a service flow identifier, a next hop, and a number of nodes of the service path corresponding to the service path identifier, where the first forwarding table includes the service flow identifier, the service path identifier, and the next One hop and the corresponding relationship of the number of nodes.
  • the obtaining the added packet includes: receiving the service packet, where the service packet belongs to the service flow corresponding to the service flow identifier; acquiring the service flow identifier according to the service packet, and identifying the service flow identifier according to the service flow identifier Searching the first forwarding table to obtain the service path identifier and the number of nodes, adding a service path option to an IP header of the service packet according to the service path identifier and the number of nodes, to obtain the adding Message, the service path option
  • the service path identifier and the lifetime are included, and the value of the lifetime is the number of the nodes.
  • the processing the adding the packet according to the service path identifier and the locally stored forwarding table includes: after decrementing the value of the time-to-live in the service path option, searching for the first turn according to the service path identifier Publishing, obtaining a next hop corresponding to the service path identifier, and forwarding the added packet to the next hop.
  • the apparatus is configured to implement the functionality of a value added service device.
  • the service path information further includes a next hop
  • the updating the forwarding table according to the service path information includes: updating a locally stored second forwarding table according to the service path information, where the second forwarding table includes the service path The identifier and the correspondence of the next hop.
  • the obtaining the added packet includes: receiving the added packet sent by the last hop device, where the last hop device includes a stream distribution point or a last hop value added service device.
  • the operation further includes: performing value-added service processing on the added packet, and obtaining the processed added message.
  • the process of processing the added packet according to the service path identifier and the locally stored forwarding table includes: searching for the second forwarding table according to the service path identifier, obtaining a next hop corresponding to the service path identifier, and The next hop forwards the processed added packet; or searches the second forwarding table according to the service path identifier to obtain a next hop corresponding to the service path identifier, when the next hop is
  • the service path option in the processed added packet is deleted, and the processed service packet is obtained, and the processed service packet is normally forwarded; or when the service path option is used.
  • the method further includes: a survival time, where the value of the survival time is greater than 1, the processing, according to the service path identifier and the locally stored forwarding table, the adding the message comprises: generating the generation time in the service path option The value of the value is decremented by 1, and the second forwarding table is searched according to the service path identifier, and the next hop corresponding to the service path identifier is obtained, and the next hop is sent to the next hop.
  • Adding the processed message; or when the service path option further includes a lifetime, and the value of the lifetime is 1, the processing according to the service path identifier and the locally stored forwarding table Adding the packet includes: deleting the service path option in the processed added packet, and obtaining the processed service packet, and performing the normal forwarding of the processed service packet, that is, according to the processed
  • the destination address of the service packet carries the Layer 2 or Layer 3 forwarding of the service packet.
  • the device that processes the message updates the stored forwarding table according to the service path information that is sent by the management device, including the service path identifier, and forwards the packet according to the forwarding table, thereby implementing the service path identifier in the packet forwarding process.
  • Decoupling from fields in the standard tunnel header avoids the use of fields in the standard tunnel header to identify business conflicts caused by the service path.
  • the above embodiment of the present invention does not require the apparatus for processing messages to assume additional tunnel functions, thereby reducing the burden on the apparatus.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

 本申请涉及通信领域,提供了一种处理报文的方法和装置。流分发点或增值业务设备接收管理设备发送的业务路径信息,所述业务路径信息包括业务路径标识;根据所述业务路径信息更新转发表;获取添加报文,所述添加报文为在业务报文的IP头中添加业务路径选项后得到的报文,所述业务路径选项包括所述业务路径标识;根据所述业务路径选项获取所述业务路径标识,根据所述业务路径标识以及本地存储的转发表处理所述添加报文。通过实施本发明,能够避免在处理报文的过程中使用标准隧道头中的字段来标识业务路径引起的业务冲突,减轻业务路径上的网络设备的负担。

Description

一种处理报文的方法和装置
技术领域 本发明涉及通信领域, 尤其涉及一种处理报文的方法和装置。 背景技术 在传统的通信网络中,增值业务设备,如防火墙、负载均衡器(英文: load balancer, 縮写: LB ) 、 入侵防御系统 (英文: intrusion prevention system, 縮写: IPS ) 、 入侵检 测系统(英文: Intrusion Detection System, 縮写: IDS )、数据丢失防护(英文: data loss prevention, 縮写: DLP) 设备、 防病毒 (英文: anti-virus, 縮写: AV) 设备等的部署位 置通常和网络拓扑是强相关的, 即增值业务设备一般部署在需要该增值业务设备处理的 业务流的正常转发路径上, 或者旁挂在正常转发路径上的网络设备(例如路由器或交换 机) 上。
采用上述的增值业务设备和业务流转发紧密耦合带来的问题是业务处理路径不灵 活。 例如, 在一条转发路径上, 正常转发的报文都会经过防火墙和 IPS。 但经过该转发 路径的业务流, 有些可能只需要防火墙进行处理, 有些则需要防火墙和 IPS都进行处理。 在传统部署模式下, 不需要 IPS处理的业务流也必须经过 IPS, 浪费了 IPS的处理能力。
为了解决上述问题, 现有技术中提出了业务链(英文: service chain) 的概念。 其基 本思路是在一个网络节点上对业务流指定需要进行的增值业务处理及顺序,然后通过隧 道技术使该业务流中的报文依次经过各个增值业务设备。 通过采用业务链, 可以实现增 值业务部署位置和网络拓扑的解耦, 避免对增值业务设备能力的浪费。
在使用业务链的场景中, 需要选择业务路径和识别业务路径, 使当前增值业务设备 能够将处理后的报文送到业务路径中的下一跳增值业务设备。 所述业务路径, 是指由特 定业务流需要经过的增值业务设备组成的路径。
现有技术提出了一种在报文转发过程中使用标准隧道头中的字段作为业务路径标 识来识别业务路径的方法,例如,使用通用路由封装(英文: generic routing encapsulation 縮写: GRE) 中的关键字 (英文: key)字段, MAC-in-MAC封装中的业务实例虚拟局 域网标识(英文: Service nsiance VLA :), 缩写: I-SID)字段, 网络虚拟化通用路由 封装 (英文: network virtualization using generic routing encapsulation, 縮写: NVGRE) 中 的虚拟子网标识 (英文: virtual subnet identifier, 縮写: VSID) 或者虚拟可扩展局域网 (英文: virtual extensible local area network,縮写: VXLAN)封装中的虚拟网络标识(英 文: virtual network identifier, 縮写: VNID) 来标识业务路径。
然而, 标准隧道头中的字段在现有网络中已经有了特定用途, 用这些字段来标识业 务链中的业务路径, 会引起业务冲突。 此外, 该方法要求业务路径上的网络设备 (包括 流分发点和增值业务设备)都必须支持相应的隧道功能, 以在业务流的转发过程中进行 隧道的封装和解封装, 增加了网络设备的负担。 发明内容
本发明的目的在于提供一种处理报文的方法和装置, 以避免在处理报文的过程中使 用标准隧道头中的字段来标识业务路径引起的业务冲突,减轻业务路径上的网络设备的 负担。
第一方面提供一种处理报文的方法, 包括:
获取添加报文, 所述添加报文为在业务报文的 IP头中添加业务路径选项后得到的报 文, 所述业务路径选项包括业务路径标识, 所述业务路径标识用于标识业务路径; 根据所述业务路径选项获取所述业务路径标识;
根据所述业务路径标识以及本地存储的转发表处理所述添加报文。
在所述第一方面的第一种实现方式中, 所述获取添加报文之前, 所述方法还包括: 接收管理设备发送的业务路径信息, 所述业务路径信息包括所述业务路径标识; 根据所述业务路径信息更新所述转发表。
结合所述第一方面的第一种实现方式, 在所述第一方面的第二种实现方式中, 所述 转发表为第一转发表, 所述业务路径信息还包括业务流标识以及下一跳, 所述根据所述 业务路径信息更新转发表包括:
根据所述业务路径信息更新所述第一转发表, 所述第一转发表包括所述业务流标 识、 所述业务路径标识以及所述下一跳的对应关系。
结合所述第一方面的第二种实现方式, 在所述第一方面的第三种实现方式中, 所述 获取添加报文包括:
接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流;
根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识, 根据所述业务路径标识在所述业务报文的 IP头中添加所述业 务路径选项, 得到所述添加报文。
结合所述第一方面的第三种实现方式, 在所述第一方面的第四种实现方式中, 所述 根据所述业务路径标识以及本地存储的转发表处理所述添加报文包括: 根据所述业务路径标识查找所述第一转发表, 得到对应所述业务路径标识的下一 跳, 并向所述下一跳转发所述添加报文。
结合所述第一方面的第二种实现方式, 在所述第一方面的第五种实现方式中, 所述 业务路径信息还包括所述业务路径标识对应的业务路径的节点数,所述第一转发表包括 所述业务流标识、 所述业务路径标识、 所述下一跳以及所述节点数的对应关系。
结合所述第一方面的第五种实现方式, 在所述第一方面的第六种实现方式中, 所述 获取添加报文包括:
接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流;
根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识以及所述节点数,根据所述业务路径标识及所述节点数在所述 业务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项包括所述 业务路径标识以及生存时间, 所述生存时间的值为所述节点数。
结合所述第一方面的第六种实现方式, 在所述第一方面的第七种实现方式中, 所述 根据所述业务路径标识以及本地存储的转发表处理所述添加报文包括:
将所述业务路径选项中的生存时间的值减 1后, 根据所述业务路径标识查找所述第 一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加报文。
结合所述第一方面的第一种实现方式, 在所述第一方面的第八种实现方式中, 所述 转发表为第二转发表, 所述业务路径信息还包括下一跳, 所述根据所述业务路径信息更 新转发表包括:
根据所述业务路径信息更新所述第二转发表,所述第二转发表包括所述业务路径标 识以及所述下一跳的对应关系。
结合所述第一方面的第八种实现方式, 在所述第一方面的第九种实现方式中, 所述 获取添加报文包括:
接收上一跳设备发送的所述添加报文,所述上一跳设备包括流分发点或者上一跳增 值业务设备。
结合所述第一方面的第八种或第九种实现方式,在所述第一方面的第十种实现方式 中, 所述根据所述业务路径选项获取所述业务路径标识之前, 所述方法还包括: 对所述 添加报文进行增值业务处理, 得到处理后的添加报文。
结合所述第一方面的第十种实现方式, 在所述第一方面的第十一种实现方式中, 所述根据所述业务路径标识以及本地存储的转发表处理所述添加报文包括: 根据所 述业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 并向所述 下一跳转发所述处理后的添加报文; 或
所述根据所述业务路径标识以及本地存储的转发表处理所述添加报文包括: 根据所 述业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 当所述下 一跳为终止标识时, 删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的 业务报文, 对所述处理后的业务报文进行正常转发; 或
当所述业务路径选项中还包括生存时间, 且所述生存时间的值大于 1时, 所述根据 所述业务路径标识以及本地存储的转发表处理所述添加报文包括:将所述业务路径选项 中的所述生成时间的值减 1, 根据所述业务路径标识查找所述第二转发表, 得到对应所 述业务路径标识的下一跳, 向所述下一跳转发所述处理后的添加报文; 或
当所述业务路径选项中还包括生存时间, 且所述生存时间的值为 1时, 所述根据所 述业务路径标识以及本地存储的转发表处理所述添加报文包括:删除所述处理后的添加 报文中的所述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正 常转发。
第二方面提供一种处理报文的装置, 包括:
第一获取单元, 用于获取添加报文, 所述添加报文为在业务报文的 IP头中添加业务 路径选项后得到的报文, 所述业务路径选项包括所述业务路径标识, 所述业务路径标识 用于标识业务路径;
第二获取单元, 用于根据所述业务路径选项获取所述业务路径标识;
存储单元, 用于存储转发表;
处理单元, 用于根据所述业务路径标识以及所述转发表处理所述添加报文。
在所述第二方面的第一种实现方式中, 所述装置还包括:
接收单元, 用于接收管理设备发送的业务路径信息, 所述业务路径信息包括业务路 径标识;
更新单元, 用于根据所述业务路径信息更新所述转发表。
结合所述第二方面的第一种实现方式, 在所述第二方面的第二种实现方式中, 所述 业务路径信息还包括业务流标识以及下一跳, 所述更新单元用于:
根据所述业务路径信息更新所述第一转发表, 所述第一转发表包括所述业务流标 识、 所述业务路径标识以及所述下一跳的对应关系。 结合所述第二方面的第二种实现方式, 在所述第二方面的第三种实现方式中, 所述 第一获取单元用于:
接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流;
根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识, 根据所述业务路径标识在所述业务报文的 IP头中添加业务路 径选项, 得到所述添加报文。
结合所述第二方面的第三种实现方式, 在所述第二方面的第四种实现方式中, 所述 处理单元用于: 根据所述业务路径标识查找所述第一转发表, 得到对应所述业务路径标 识的下一跳, 并向所述下一跳转发所述添加报文。
结合所述第二方面的第二种实现方式, 在所述第二方面的第五种实现方式中, 所述 业务路径信息还包括所述业务路径标识对应的业务路径的节点数,所述第一转发表包括 所述业务流标识、 所述业务路径标识、 所述下一跳以及所述节点数的对应关系。
结合所述第二方面的第五种实现方式, 在所述第二方面的第六种实现方式中, 所述 第一获取单元用于:
接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流;
根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识以及所述节点数,根据所述业务路径标识及所述节点数在所述 业务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项包括所述 业务路径标识以及生存时间, 所述生存时间的值为所述节点数。
结合所述第二方面的第六种实现方式, 在所述第二方面的第七种实现方式中, 所述 处理单元用于:
将所述业务路径选项中的生存时间的值减 1后, 根据所述业务路径标识查找所述第 一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加报文。
结合所述第二方面的第一种实现方式, 在所述第二方面的第八种实现方式中, 所述 业务路径信息还包括下一跳, 所述更新单元用于:
根据所述业务路径信息更新所述第二转发表,所述第二转发表包括所述业务路径标 识以及所述下一跳的对应关系。
结合所述第二方面的第八种实现方式, 在所述第二方面的第九种实现方式中, 所述 第一获取单元用于:
接收上一跳设备发送的所述添加报文,所述上一跳设备包括流分发点或者上一跳增 值业务设备。
结合所述第二方面的第八种或第九种实现方式,在所述第二方面的第十种实现方式 中, 所述装置还包括: 增值业务处理单元, 用于对所述添加报文进行增值业务处理, 得 到处理后的添加报文。
结合所述第二方面的第十种实现方式, 在所述第二方面的第十一种实现方式中, 所述处理单元用于: 根据所述业务路径标识查找所述第二转发表, 得到对应所述业 务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加报文; 或
所述处理单元用于: 根据所述业务路径标识查找所述第二转发表, 得到对应所述业 务路径标识的下一跳, 当所述下一跳为终止标识时, 删除所述处理后的添加报文中的所 述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发; 或 当所述业务路径选项中还包括生存时间, 且所述生存时间的值大于 1时, 所述处理 单元用于: 将所述业务路径选项中的所述生成时间的值减 1, 根据所述业务路径标识查 找所述第二转发表, 得到对应所述业务路径标识的下一跳, 向所述下一跳转发所述处理 后的添加报文; 或
当所述业务路径选项中还包括生存时间, 且所述生存时间的值为 1时, 所述处理单 元用于: 删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发。
上述方案中,通过根据管理设备发送的包括业务路径标识的业务路径信息更新存储 的转发表, 并根据该转发表转发在业务报文的 IP头中添加业务路径选项后得到的添加报 文, 实现了报文转发过程中业务路径标识与标准隧道头中的字段的解耦, 避免了使用标 准隧道头中的字段来标识业务路径引起的业务冲突。 并且, 上述方案不需要所述处理报 文的装置承担额外的隧道功能, 减轻了所述装置的负担。 附图说明 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用 的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对 于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得 其他的附图。
图 1是本发明实施例提供的一种网络系统结构示意图;
图 2是本发明实施例中提供的配置业务路径标识的方法的流程示意图; 图 3是本发明实施例中提供的一种处理报文的方法的流程示意图; 图 4a和图 4b是本发明实施例提供的第一转发表的结构示意图;
图 5a是 IP头的结构示意图;
图 5b是本发明实施例提供的业务路径选项的结构示意图;
图 6是本发明实施例中提供的另一种处理报文的方法的流程示意图;
图 7是本发明实施例中提供的再一种处理报文的方法的结构示意图;
图 8是本发明实施例中提供的一种处理报文的装置的结构示意图;
图 9是本发明实施例中提供的另一种处理报文的装置的结构示意图。 具体实 »式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整 地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基 于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有 其他实施例, 都属于本发明保护的范围。
本发明实施例提供了一种网络系统。 如图 1所示, 所述网络系统 10包括管理设备 11, 流分发点 12以及增值业务设备 13, 所述增值业务设备可以有一个或多个, 图中示出了多 个增值业务设备 13a-n。其中, 所述管理设备 11, 流分发点 12以及增值业务设备 13均可以 是网络中的虚拟节点, 虚拟功能模块或者硬件物理实体。 所述管理设备 11管理所述流分发点 11和所述多个增值业务设备 13a-n,根据接收的业 务需求确定业务路径以及相应的业务路径标识, 向所述流分发点 11上和所述增值业务设 备 13上分别发送包括所述业务路径标识上的业务路径信息。所述流分发点 12位于所述网 络系统的入口处, 用于根据本地存储的第一转发表为接收到的业务报文选择业务路径, 并在为所述业务报文的 IP头中添加业务路径选项获得添加报文后, 将所述添加报文发送 到所述选择的业务路径, 所述业务路径包括一个或多个增值业务设备, 例如, 图 1中示 出了包括增值业务设备 13a, 13b, 13c以及 13d的业务路径 1和包括增值业务设备 13a, 13b 以及 13η的业务路径 2。 所述增值业务设备 13用于在接收到添加报文时, 对该添加报文进 行相应的增值业务处理, 并根据本地存储的第二转发表, 将经过处理后的业务报文发送 到下一跳。 基于图 1所示的网络系统, 本发明实施例提供了一种配置业务路径标识的方法。 所 述方法的执行主体为所述管理设备 11。 如图 2所示, 在步骤 201中, 所述管理设备接收用户的业务需求, 所述业务需求包括 业务流标识和业务规格。 一方面,所述用户的业务需求可以由所述用户直接发送给所述管理设备;另一方面, 所述用户的业务需求可以由网络管理系统配置, 并由所述网络管理系统发送给所述管理 设备。 所述业务流标识用于识别需要处理的业务流。 所述业务规格包括所述业务流需要 的增值业务及其顺序。 所述业务规格还可以进一步包括增值业务性能, 所述增值业务性 能为对增值业务设备的性能要求, 例如网络吞吐量, 并发连接数等。 在步骤 202中, 所述管理设备根据所述业务需求选择增值业务设备, 确定业务路径, 所述业务路径包括所述业务流标识对应的业务流在传输过程中需要经过的增值业务设 备。
所述管理设备根据所述业务需求选择相应的增值业务设备, 具体可以是, 根据所述 业务需求中的业务规格选择每个增值业务对应的增值业务设备。当所述业务规格中还包 括增值业务性能时,所述管理设备根据业务规格中的增值业务以及增值业务性能选择增 值业务设备。 当所述业务规格中包括多个增值业务时, 所述业务规格中可以包括对应一 种或多种增值业务的增值业务性能。 例如, 当所述业务规格包括防火墙的性能时, 表明 处理所述业务流需要相应性能的防火墙, 因此, 所述管理设备从多个防火墙中选择符合 所述性能的防火墙。
选择增值业务设备后, 所述管理设备根据所述业务规格中的所述增值业务的顺序, 确定业务路径,所述业务路径包括所述业务流在传输过程中需要顺序经过的增值业务设 备。例如,所述业务需求表明业务流需要依次经过过滤处理、入侵检测和负载均衡处理, 那么所述业务路径可以包括: 防火墙、 IDS和负载均衡器。
在步骤 203中, 所述管理设备确定所述业务路径的业务路径标识。
所述管理设备上存储有业务路径数据库。所述业务路径数据库中包括业务路径标识 和业务路径。 所述管理设备确定所述业务路径标识包括: 所述管理设备根据所述业务路 径查找所述业务路径数据库, 在一个实现方式中, 如果所述业务路径数据库中存储有所 述业务路径, 获取所述业务路径的业务路径标识; 在另一个实现方式中, 如果所述业务 路径数据库中没有存储所述业务路径时, 为所述业务路径分配业务路径标识, 并在所述 业务路径数据库中记录所述业务路径及所述业务路径标识。所述业务路径标识用于标识 业务路径。 在步骤 204中, 所述管理设备向其所管理的网络节点发送业务路径信息, 所述业务 路径信息包括所述业务路径标识。
所述网络节点包括所述流分发点 11以及所述增值业务设备 13。
在一个实现方式中, 所述管理设备向所述流分发点发送业务路径信息, 所述业务路 径信息用于使所述流分发点更新第一转发表。 所述业务路径信息除所述业务路径标识 夕卜, 还包括业务流标识以及所述业务路径上所述流分发点的下一跳(即所述业务路径上 的第一个增值业务设备)。 所述第一转发表包括业务流标识, 业务路径标识以及下一跳 的对应关系。
可选地, 所述业务路径信息还可以进一步包括所述业务路径的节点数, 即所述业务 路径上增值业务设备的数量。 例如, 图 1中, 业务流 1对应业务路径 1, 业务路径 1的 节点数为 4, 业务路径 2的节点数为 3。 这种情况下, 所述第一转发表包括业务流标识, 业务路径标识, 节点数以及下一跳的对应关系。
在另一个实现方式中, 所述管理设备向所述增值业务设备发送业务路径信息, 所述 业务路径信息用于使所述增值业务设备更新第二转发表。所述业务路径信息除所述业务 路径标识外, 还包括所述业务路径上所述增值业务设备的下一跳。 所述第二转发表包括 业务路径标识以及下一跳的对应关系。 在另一实现方式中, 当所述增值业务设备为所述 业务路径标识对应的业务路径上的最后一个增值业务设备时, 所述下一跳为终止标识。 所述终止标识用于表示所述增值业务设备为所述业务路径标识对应的业务路径的最后 一跳。
当所述业务路径包括多个增值业务设备时,所述管理设备需要为所述业务路径上的 每个增值业务设备分别配置配置业务路径信息。 配置完成后, 每个增值业务设备针对所 述业务路径标识, 生成不同的第二转发表项。 例如, 在图 1所示的网络系统中, 针对业 务路径 1, 增值业务设备 13a的第二转发表项为 (业务路径 1, 13b ) , 增值业务设备 13b 的第二转发表项为 (业务路径 l,13c), 其他增值业务上的配置类似。
本发明上述实施例中,管理设备根据用户的业务需求为所述用户的业务流确定业务 路径, 并为所述业务路径确定业务路径标识, 然后将在流分发点和增值业务设备上配置 所述业务路径标识。 由于所述业务路径标识与标准隧道头中的字段无关, 因此, 在网络 中使用所述业务路径标识, 不会引起业务的冲突。 进一步地, 上述实施例中, 流分发点 上和增值业务设备上只要分别增加一个第一转发表或第二转发表就能实现业务流的识 别和转发, 与使用标准隧道头中的字段标识业务路径相比, 增值业务设备不需要承担额 外的隧道功能, 减轻了增值业务设备的负担。
基于图 1所示的网络系统, 本发明另外提供了一种如图 3所示的处理报文的方法。 所述方法的执行主体为流分发点 12或增值业务设备 13。
如图 3所示, 在步骤 301中, 接收管理设备发送的业务路径信息, 所述业务路径信 息包括业务路径标识。
在一个实现方式中, 流分发点接收管理设备发送的业务路径信息, 所述业务路径信 息除所述业务路径标识外, 还包括业务流标识以及下一跳, 或者还包括业务流标识, 下 一跳以及以及所述业务路径标识对应的业务路径的节点数。
在另一个实现方式中, 增值业务设备接收管理设备发送的业务路径信息, 所述业务 路径信息除所述业务路径标识外, 还包括下一跳。 在另一实现方式中, 当所述增值业务 设备为所述业务路径标识对应的业务路径上的最后一个增值业务设备时,所述下一跳为 终止标识。所述终止标识用于表示所述增值业务设备为所述业务路径标识对应的业务路 径的最后一跳。
在步骤 302中, 根据所述业务路径信息更新本地存储的转发表。
在一个实现方式中, 所述步骤 302由流分发点执行。 所述根据所述业务路径信息更 新转发表包括: 根据所述业务路径信息更新所述流分发点本地存储的第一转发表。 当所 述业务路径信息除所述业务路径标识外, 还包括业务流标识以及下一跳时, 所述第一转 发表如图 4a所示, 包括业务流标识, 业务路径标识以及下一跳的对应关系。 进一步地, 当所述业务路径信息除所述业务路径标识外, 还包括业务流标识、 下一跳以及所述业务 路径标识对应的业务路径的节点数(即所述业务路径上增值业务设备的数量) 时, 所述 第一转发表如图 4b所示, 包括业务流标识, 业务路径标识, 下一跳以及节点数的对应 关系。
在另一个实现方式中, 所述步骤 302由增值业务设备执行。 所述业务路径信息除所 述业务路径标识外, 还包括下一跳。 所述根据所述业务路径信息更新转发表包括: 根据 所述业务路径信息更新所述增值业务设备本地存储的第二转发表,所述第二转发表包括 业务路径标识以及下一跳的对应关系。
所述的更新转发表, 包括生成所述转发表, 为所述转发表生成新的表项, 或者替换 掉所述转发表中原有的表项中的任意一种。
在本发明实施例中, 上述步骤 301和 302是可选的, 上述业务路径信息中的信息还 可以通过其他方式发送给所述流分发点或者增值业务设备, 例如, 由管理设备将业务路 径信息发送给所述流分发点, 再由所述流分发点发送给所述增值业务设备; 或者, 由管 理设备直接将转发表下发送流分发点或者增值业务设备。
在步骤 303中, 获取添加报文, 所述添加报文为在业务报文的 IP头中添加业务路 径选项后得到的报文, 所述业务路径选项包括所述业务路径标识。
如前所述, 所述业务路径标识用于标识业务路径。
如图 5a所示, 为 IP头结构示意图。 可以看出, 除了标准定义的字段外, 在 IP头中 还可以包括一系列选项 (英文: option)。 本发明实施例的业务路径选项, 即为 IP头中 的一个扩展选项。
如图 5b所示, 为本发明实施例中业务路径选项的结构示意图, 其中类型(type)表 示该选项为业务路径选项, 例如, 可以是 250; 长度(length)表示该业务路径选项的总 长度, 生存时间 (英文: time-to-live, 縮写: TTL) 用于表示该报文可以经过的增值业 务设备的数量 (简称为节点数), 路径 ID (path ID) 表示业务路径标识。
所述业务路径选项中可以只包括业务路径标识, 也可以包括业务路径标识和 TTL。 在一个实施例中, 步骤 303由流分发点执行。 所述获取添加报文包括: 所述流分发 点接收业务报文, 所述业务报文属于所述业务流标识对应的业务流, 根据所述业务流标 识以及查找所述第一转发表以获取所述业务路径标识,根据所述业务路径标识在所述业 务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项包括所述 业务路径标识; 或所述流分发点接收业务报文, 所述业务报文属于所述业务流标识对应 的业务流, 根据所述业务流标识查找所述第一转发表以获取所述业务路径标识及节点 数, 根据所述业务路径标识及节点数在所述业务报文的 IP头中添加业务路径选项, 得 到所述添加报文, 所述业务路径选项包括所述业务路径标识以及生存时间, 所述生存时 间的值为所述节点数。
在另一个实施例中, 步骤 303由增值业务设备执行。 所述获取添加报文包括: 所述 增值业务设备接收上一跳设备发送的所述添加报文,所述上一跳设备可以为所述流分发 点或者所述增值业务设备的上一跳增值业务设备。
在步骤 304中, 根据所述业务路径选项获取所述业务路径标识。
具体来说, 所述流分发点或者增值业务设备解析所述添加报文, 得到所述业务路径 选项, 从所述业务路径选项中获取所述业务路径标识。 在步骤 305中,根据所述业务路径标识以及所述本地存储的转发表处理所述添加报 文。 在一个实施例中, 所述步骤 305由流分发点执行。 当所述业务路径选项中只包括所 述业务路径标识时, 所述流分发点根据所述业务路径标识查找所述第一转发表, 得到对 应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加报文; 当所述业务路径选 项中还包括生存时间时, 所述流分发点将所述生存时间的值减 1, 根据所述业务路径标 识查找所述第一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所 述添加报文。
由于流分发点中生成添加报文的功能模块(或进程)和发送所述添加报文的功能模 块(或进程) 不同, 因此在发送添加报文之前, 流分发点还需要获取该业务路径选项中 的业务路径标识, 并根据该业务路径标识对所述添加报文进行相应的处理。
在另一个实施例中, 所述步骤 305由增值业务设备执行。 则在步骤 303和步骤 304 之间, 所述方法还包括: 所述增值业务设备对所述添加报文进行增值业务处理, 得到处 理后的添加报文。此后,所述增值业务设备根据所述业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加报文; 或 所述增值业务设备根据所述业务路径标识查找所述第二转发表,得到对应所述业务路径 标识的下一跳, 当所述下一跳为终止标识时, 删除所述处理后的添加报文中的所述业务 路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发; 或当所述 业务路径选项中还包括生存时间, 且所述生存时间的值大于 1时, 所述增值业务设备将 所述业务路径选项中的所述生成时间的值减 1后,根据所述业务路径标识查找所述第二 转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加 报文; 或当所述业务路径选项中包括所述业务路径标识以及生成时间, 且所述生成时间 的值为 1时, 所述增值业务设备删除所述处理后的添加报文中的所述业务路径选项, 得 到处理后的业务报文, 对所述处理后的业务报文进行正常转发, 即根据所述处理后的业 务报文的目的地址对所述业务报文进行二层或者三层转发。所述生存时间的值为所述业 务路径上所述添加报文需要经过的增值业务设备(包括当前接收所述添加报文的增值业 务设备) 的数量。 例如, 增值设备 13b收到的添加报文中的业务路径选项中, 业务路径 标识为 1, 生存时间的值为 3。
上述实现方式中, 由于所述添加报文是通过在业务报文的 IP头的选项添加业务路 径选项得到的, 所述业务路径选项的添加, 既不会影响所述业务报文的 IP头中的其他 信息, 也不会影响所述业务报文的载荷。 因此, 增值业务设备对该添加报文的处理, 相 当于对该业务报文的处理。 因此, 从处理后的添加报文中删除所述业务路径选项后, 得 到的就是处理后的业务报文。
基于图 1所示的网络系统, 以下从流分发点 12的角度, 对本发明图 3所示上述方 法实施例作进一步说明。
如图 6所示, 在步骤 601中, 流分发点接收管理设备发送的业务路径信息, 所述业 务路径信息包括业务路径标识。
在步骤 602中, 所述流分发点根据所述业务路径信息更新第一转发表。
在一个实现方式中, 所述业务路径信息包括业务流标识, 业务路径标识以及所述流 分发点的下一跳。 所述流分发点根据所述业务路径信息, 更新本地存储的第一转发表, 如图 4a所示, 所述第一转发表包括业务流标识, 业务路径标识以及下一跳的对应关系。
可选地, 所述业务路径信息还可以包括所述业务路径的节点数, 即所述业务路径上 增值业务设备的数量。 例如, 图 1中, 业务路径 1的节点数为 4, 业务路径 2的节点数 为 3。 这种情况下, 如图 4b所示, 所述第一转发表包括业务流标识, 业务路径标识, 节 点数以及下一跳的对应关系。
在步骤 603中, 所述流分发点接收业务报文, 所述业务报文属于所述业务流标识对 应的业务流, 根据所述业务报文获取所述业务流标识, 根据所述业务流标识查找所述第 一转发表以获取业务路径标识, 根据所述业务路径标识在所述业务报文的 IP头中添加 业务路径选项, 得到添加报文。
所述业务报文为经过所述流分发点进入所述网络系统的, 需要进行增值业务处理的 报文。
所述业务流标识可以是五元组, IPv6地址前缀, 或者其他可以唯一标识业务流的信 息。
在一个实现方式中,流分发点根据获取的业务流标识查找本地存储的第一转发表以 获取业务路径标识, 所述流第二转发表包括业务流标识, 业务路径标识以及下一跳的对 应关系。 所述流分发点根据所述业务路径标识在所述业务报文的 IP头中添加业务路径 选项, 得到所述添加报文。 所述业务路径选项包括所述业务路径标识。
在另一个实现方式中,所述流分发点根据获取的业务流标识查找本地存储的第一转 发表以获取路径标识以及节点数, 所述第一转发表包括业务流标识, 业务路径标识, 节 点数以及下一跳的对应关系,所述流分发点根据所述业务路径标识以及所述节点数在所 述业务报文的 IP头中添加业务路径选项, 所述业务路径选项包括所述业务路径标识以 及生存时间 (英文: time-to-live, 縮写: TTL), 所述生存时间的值为所述节点数。 在步骤 604中, 所述流分发点根据根据所述业务路径选项获取所述业务路径标识, 根据所述业务路径标识以及所述第一转发表处理所述添加报文。
在一个实现方式中, 当所述业务路径选项中只包括所述业务路径标识时, 所述流分 发点根据所述业务路径标识查找所述第一转发表, 得到对应所述业务路径标识的下一 跳, 并向所述下一跳转发所述添加报文。
在另一个实现方式中, 当所述业务路径选项中还包括生存时间时, 所述流分发点将 所述生存时间的值减 1后, 根据所述业务路径标识查找所述第一转发表, 得到对应所述 业务路径标识的下一跳, 并向所述下一跳转发所述添加报文。
基于图 1所示的网络系统, 以下从增值业务设备 13的角度, 对本发明图 3所示上 述方法实施例作进一步说明。
如图 7所示, 在步骤 701中, 增值业务设备接收管理设备发送的业务路径信息, 所 述业务路径信息包括业务路径标识。
在步骤 702中, 所述增值业务设备根据所述业务路径信息更新第二转发表。
具体地, 所述业务路径信息包括业务路径标识以及所述增值业务设备的下一跳, 所 述增值业务设备根据所述业务路径信息更新本地存储的第二转发表,所述第二转发表包 括业务路径标识以及下一跳的对应关系。当所述增值业务设备为所述业务路径标识对应 的业务路径上的最后一个增值业务设备时, 所述下一跳为终止标识。
在步骤 703中, 所述增值业务设备获取添加报文, 所述添加报文为在业务报文的 IP 头中添加业务路径选项后得到的报文, 所述业务路径选项包括所述业务路径标识。
所述增值业务设备可以是从流分发点接收所述添加报文,也可以是从上一跳增值业 务设备接收所述添加报文。
在一个实现方式中, 所述业务路径选项包括业务路径标识。 在另一个实现方式中, 所述业务路径选项包括业务路径标识和生存时间。
在步骤 704中, 所述增值业务设备对所述添加报文进行增值业务处理, 得到处理后 的添加报文。
在步骤 705中, 所述增值业务设备根据所述业务路径选项获取所述业务路径标识, 根据所述业务路径标识以及所述第二转发表处理所述处理后的添加报文。
其中,所述增值业务设备根据所述业务路径标识查找所述增值业务设备本地存储的 第二转发表, 获取所述业务路径标识对应的下一跳, 并根据所述下一跳转发所述处理后 的添加报文。 在一个实现方式中, 所述业务路径选项中只包括业务路径标识, 所述增值业务设备 直接将所述处理后的添加报文发送给所述下一跳。 在另一个实现方式中, 当所述下一跳 为终止标识时, 所述增值业务设备删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发。
在另一个实现方式中, 所述业务路径选项除了业务路径标识外还包括生存时间, 如 果所述生存时间的值大于 1, 则所述增值业务设备将所述生存时间的值减 1后, 将所述 处理后的添加报文发送给所述下一跳; 如果所述生存时间的值等于 1, 则所述增值业务 设备删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的业务报文, 并所 述处理后的业务报文发送给所述下一跳。
本发明上述实施例中,流分发点和增值业务设备根据管理设备发送的包括业务路径 标识的业务路径信息分别更新各自存储的转发表,并根据该转发表转发在业务报文的 IP 头中添加业务路径选项后得到的添加报文, 实现了报文转发过程中业务路径标识与标准 隧道头中的字段的解耦,避免了使用标准隧道头中的字段来标识业务路径引起的业务冲 突。 并且, 本发明上述实施例不需要流分发点和增值业务设备承担额外的隧道功能, 减 轻了流分发点和增值业务设备的负担。
本发明实施例另外提供了一种处理报文的装置, 如图 8所示, 所述装置包括: 接收 单元 801、 更新单元 802、存储单元 803、第一获取单元 804以、第二获取单元 805以及 处理单元 806。 其中, 接收单元 801和更新单元 802对于本发明实施例来说是可选的。
所述接收单元 801用于接收管理设备发送的业务路径信息,所述业务路径信息包括 业务路径标识。
在一个实现方式中, 所述处理报文的装置为流分发点, 所述接收单元 801接收管理 设备发送的业务路径信息, 所述业务路径信息除所述业务路径标识外, 还包括业务流标 识以及下一跳, 或者还包括业务流标识, 下一跳以及以及所述业务路径标识对应的业务 路径的节点数。
在另一个实现方式中, 所述处理报文的装置为增值业务设备, 所述接收单元 801接 收管理设备发送的业务路径信息, 所述业务路径信息除所述业务路径标识外, 还包括下 一跳。 在另一实现方式中, 当所述增值业务设备为所述业务路径标识对应的业务路径上 的最后一个增值业务设备时, 所述下一跳为终止标识。
所述更新单元 802用于根据所述业务路径信息更新转发表。所述更新转发表存储在 所述存储单元 803上。 在一个实现方式中, 所述处理报文的装置为流分发点, 所述更新单元 802用于: 根 据所述业务路径信息更新流分发点的存储单元 803上存储的第一转发表。当所述业务路 径信息除所述业务路径标识外, 还包括业务流标识以及下一跳时, 所述第一转发表如图 4a所示, 包括业务流标识, 业务路径标识以及下一跳的对应关系。 进一步地, 当所述业 务路径信息除所述业务路径标识外, 还包括业务流标识、 下一跳以及所述业务路径标识 对应的业务路径的节点数(即所述业务路径上增值业务设备的数量) 时, 所述第一转发 表如图 4b所示, 包括业务流标识, 业务路径标识, 节点数以及下一跳的对应关系。
在另一个实现方式中, 所述处理报文的装置为增值业务设备, 所述业务路径信息除 所述业务路径标识外, 还包括下一跳。 所述更新单元 802用于: 根据所述业务路径信息 更新增值业务设备的所述存储单元 803上存储的第二转发表。所述第二转发表包括业务 路径标识以及下一跳的对应关系。
所述第一获取单元 804用于获取添加报文, 所述添加报文为在业务报文的 IP头中 添加业务路径选项后得到的报文, 所述业务路径选项包括所述业务路径标识。 所述业务 路径标识用于标识业务路径。
如图 5a所示, 为 IP头结构示意图。 可以看出, 除了标准定义的字段外, 在 IP头中 还可以包括一系列选项 (英文: option)。 本发明实施例的业务路径选项, 即为 IP头中 的一个扩展选项。
如图 5b所示,为本发明实施例中业务路径选项的结构示意图,其中类型(英文: type) 表示该选项为业务路径选项, 例如, 可以是 250; 长度(英文: length)表示该业务路径 选项的总长度, 生存时间 (英文: time-to-live, 縮写: TTL) 用于表示该报文可以经过 的增值业务设备的数量(简称为节点数), 路径 ID (英文: path ID)表示业务路径标识。
所述业务路径选项中可以只包括业务路径标识, 也可以包括业务路径标识和 TTL。 在一个实施例中, 所述处理报文的装置为流分发点, 所述第一获取单元 804用于接 收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流, 根据所述业务流标 识查找所述第一转发表以获取所述业务路径标识,根据所述业务路径标识在所述业务报 文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项包括所述业务 路径标识; 或所述第一获取单元 804用于接收所述业务报文, 所述业务报文属于所述业 务流标识对应的业务流, 根据所述业务报文获取所述业务流标识, 根据所述业务流标识 查找所述第一转发表以获取所述业务路径标识及节点数,根据所述业务路径标识及节点 数在所述业务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选 项包括所述业务路径标识以及生存时间, 所述生存时间的值为所述节点数。
在另一个实施例中, 所述处理报文的装置为增值业务设备, 所述第一获取单元 804 用于: 接收上一跳设备发送的添加报文, 所述上一跳设备可以为流分发点或者所述处理 报文的装置的上一跳增值业务设备。
所述第二获取单元 805用于根据所述业务路径选项获取所述业务路径标识。具体来 说, 所述第二获取单元解析所述添加报文, 得到所述业务路径选项, 从所述业务路径选 项获取所述业务路径标识。
所述处理单元 806用于根据所述业务路径标识以及所处存储单元 803存储的转发表 处理所述添加报文。
在一个实施例中, 所述处理报文的装置为流分发点, 当所述业务路径选项中只包括 所述业务路径标识时,所述处理单元 806用于根据所述业务路径标识查找所述第一转发 表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加报文; 当所述 业务路径选项中还包括生存时间时,所述处理单元 806用于将所述生存时间的值减 1后, 根据所述业务路径标识查找所述第一转发表, 得到对应所述业务路径标识的下一跳, 并 向所述下一跳转发所述添加报文。
在另一个实施例中, 所述处理报文的装置为增值业务设备, 所述装置还包括增值业 务处理单元, 于对所述添加报文进行增值业务处理, 得到处理后的添加报文。
所述处理单元 806用于根据所述业务路径标识查找所述第二转发表,得到对应所述 业务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加报文; 或, 所述处理单 元 806用于根据所述业务路径标识查找所述第二转发表,得到对应所述业务路径标识的 下一跳, 当所述下一跳为终止标识时, 删除所述处理后的添加报文中的所述业务路径选 项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发; 或, 当所述业务 路径选项中还包括生存时间, 且所述生存时间的值大于 1时, 所述处理单元 806用于将 所述业务路径选项中的所述生成时间的值减 1, 根据所述业务路径标识查找所述第二转 发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加报 文; 当所述业务路径选项中包括所述业务路径标识以及生成时间, 且所述生成时间的值 为 1时, 所述处理单元 806用于删除所述处理后的添加报文中的所述业务路径选项, 得 到处理后的业务报文, 对所述处理后的业务报文进行正常转发, 即根据所述处理后的业 务报文的目的地址对所述业务报文进行二层或者三层转发。所述生存时间的值为所述业 务路径上所述添加报文需要经过的增值业务设备(包括当前接收所述添加报文的增值业 务设备) 的数量。 例如, 增值设备 13b收到的添加报文中的业务路径选项中, 业务路径 标识为 1, 生存时间的值为 3。
请参阅图 9, 图 9为本发明实施例中另一种处理报文的装置的结构示意图。 如图 9 所示, 所述装置包括: 通信端口 901、 存储器 902和处理器 903, 当然, 所述装置 还可以包括其它的通用部件, 本发明实施例在此不作任何限制。
其中, 存储器 902中存储一组程序代码, 处理器 903用于调用存储器 902中 存储的程序代码, 以执行以下操作:
获取添加报文, 所述添加报文为在业务报文的 IP头中添加业务路径选项后得到的报 文, 所述业务路径选项包括业务路径标识, 所述业务路径标识用于标识业务路径; 根据所述业务路径选项获取所述业务路径标识;
根据所述业务路径标识以及本地存储的转发表处理所述添加报文。
在一个实施方式中, 所述操作还包括: 接收管理设备发送的业务路径信息, 所述业 务路径信息包括业务路径标识; 根据所述业务路径信息更新所述转发表。
在一个实现方式中, 所述装置用于实现流分发点的功能。 所述业务路径信息还包括 业务流标识以及下一跳, 所述根据所述业务路径信息更新转发表包括: 根据所述业务路 径信息更新本地存储的第一转发表, 所述第一转发表包括所述业务流标识、 所述业务路 径标识以及所述下一跳的对应关系。 所述获取添加报文包括: 接收所述业务报文, 所述 业务报文属于所述业务流标识对应的业务流; 根据所述业务报文获取所述业务流标识, 根据所述业务流标识查找所述第一转发表以获取所述业务路径标识,根据所述业务路径 标识在所述业务报文的 IP头中添加业务路径选项, 得到所述添加报文。 所述根据所述业 务路径标识以及本地存储的转发表处理所述添加报文包括:根据所述业务路径标识查找 所述第一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加 报文。
在另一实现方式中, 所述装置用于实现另一种流分发点的功能。 所述业务路径信息 还包括业务流标识、 下一跳以及所述业务路径标识对应的业务路径的节点数, 所述第一 转发表包括所述业务流标识、 所述业务路径标识、 所述下一跳以及所述节点数的对应关 系。 所述获取添加报文包括: 接收所述业务报文, 所述业务报文属于所述业务流标识对 应的业务流; 根据所述业务报文获取所述业务流标识, 根据所述业务流标识查找所述第 一转发表以获取所述业务路径标识以及所述节点数,根据所述业务路径标识及所述节点 数在所述业务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项 包括所述业务路径标识以及生存时间, 所述生存时间的值为所述节点数。 所述根据所述 业务路径标识以及本地存储的转发表处理所述添加报文包括:将所述业务路径选项中的 生存时间的值减 1后, 根据所述业务路径标识查找所述第一转发表, 得到对应所述业务 路径标识的下一跳, 并向所述下一跳转发所述添加报文。
在另一个实现方式中, 所述装置用于实现增值业务设备的功能。 所述业务路径信息 还包括下一跳, 所述根据所述业务路径信息更新转发表包括: 根据所述业务路径信息更 新本地存储的第二转发表,所述第二转发表包括所述业务路径标识以及所述下一跳的对 应关系。 所述获取添加报文包括: 接收上一跳设备发送的所述添加报文, 所述上一跳设 备包括流分发点或者上一跳增值业务设备。 然后, 所述操作还包括: 对所述添加报文进 行增值业务处理, 得到处理后的添加报文。 所述根据所述业务路径标识以及本地存储的 转发表处理所述添加报文包括: 根据所述业务路径标识查找所述第二转发表, 得到对应 所述业务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加报文; 或根据所述 业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 当所述下一 跳为终止标识时, 删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的业 务报文, 对所述处理后的业务报文进行正常转发; 或当所述业务路径选项中还包括生存 时间, 且所述生存时间的值大于 1时, 所述根据所述业务路径标识以及本地存储的转发 表处理所述添加报文包括: 将所述业务路径选项中的所述生成时间的值减 1, 根据所述 业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 向所述下一 跳转发所述处理后的添加报文; 或当所述业务路径选项中还包括生存时间, 且所述生存 时间的值为 1时, 所述根据所述业务路径标识以及本地存储的转发表处理所述添加报文 包括: 删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的业务报文, 对 所述处理后的业务报文进行正常转发, 即根据所述处理后的业务报文的目的地址对所述 业务报文进行二层或者三层转发。
上述图 8以及图 9所示的装置用于实现上述图 3、图 6以及图 Ί所述的方法。因此, 本实施例中没有详细描述的描述, 可以参考上述对于图 3、 图 6以及图 7的说明。
本发明上述实施例中,处理报文的装置根据管理设备发送的包括业务路径标识的业 务路径信息更新存储的转发表, 并根据该转发表转发报文, 实现了报文转发过程中业务 路径标识与标准隧道头中的字段的解耦,避免了使用标准隧道头中的字段来标识业务路 径引起的业务冲突。 并且, 本发明上述实施例不需要所述处理报文的装置承担额外的隧 道功能, 减轻了所述装置的负担。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来 完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读 存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求
1、 一种处理报文的方法, 其特征在于, 包括:
获取添加报文, 所述添加报文为在业务报文的 IP头中添加业务路径选项后得到的报 文, 所述业务路径选项包括业务路径标识, 所述业务路径标识用于标识业务路径; 根据所述业务路径选项获取所述业务路径标识;
根据所述业务路径标识以及本地存储的转发表处理所述添加报文。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取添加报文之前, 所述方法还 包括:
接收管理设备发送的业务路径信息, 所述业务路径信息包括所述业务路径标识; 根据所述业务路径信息更新所述转发表。
3、 根据权利要求 2所述的方法, 其特征在于, 所述转发表为第一转发表, 所述业务 路径信息还包括业务流标识以及下一跳, 所述业务流标识用于标识业务流;
所述根据所述业务路径信息更新所述转发表包括:
根据所述业务路径信息更新所述第一转发表, 所述第一转发表包括所述业务流标 识、 所述业务路径标识以及所述下一跳的对应关系。
4、 根据权利要求 3所述的方法, 其特征在于, 所述获取添加报文包括: 接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流; 根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识, 根据所述业务路径标识在所述业务报文的 IP头中添加所述业 务路径选项, 得到所述添加报文。
5、 根据权利要求 4所述的方法, 其特征在于, 所述根据所述业务路径标识以及本地 存储的转发表处理所述添加报文包括:
根据所述业务路径标识查找所述第一转发表, 得到对应所述业务路径标识的下一 跳, 并向所述下一跳转发所述添加报文。
6、 根据权利要求 3所述的方法, 其特征在于, 所述业务路径信息还包括所述业务路 径标识对应的业务路径的节点数, 所述第一转发表包括所述业务流标识, 所述业务路径 标识、 所述下一跳以及所述节点数的对应关系。
7、 根据权利要求 6所述的方法, 其特征在于, 所述获取添加报文包括: 接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流; 根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识以及所述节点数,根据所述业务路径标识及所述节点数在所述 业务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项包括所述 业务路径标识以及生存时间, 所述生存时间的值为所述节点数。
8、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述业务路径标识以及本地 存储的转发表处理所述添加报文包括:
将所述业务路径选项中的生存时间的值减 1后, 根据所述业务路径标识查找所述第 一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加报文。
9、 根据权利要求 2所述的方法, 其特征在于, 所述转发表为第二转发表, 所述业务 路径信息还包括下一跳, 所述根据所述业务路径信息更新转发表包括:
根据所述业务路径信息更新所述第二转发表,所述第二转发表包括所述业务路径标 识以及所述下一跳的对应关系。
10、 根据权利要求 9所述的方法, 其特征在于, 所述获取添加报文包括: 接收上一跳设备发送的所述添加报文,所述上一跳设备包括流分发点或者上一跳增 值业务设备。
11、 根据权利要求 9或 10所述的方法, 其特征在于, 所述根据所述业务路径选项获 取所述业务路径标识之前, 所述方法还包括:
对所述添加报文进行增值业务处理, 得到处理后的添加报文。
12、 根据权利要求 11所述的方法, 其特征在于,
所述根据所述业务路径标识以及本地存储的转发表处理所述添加报文包括:根据所 述业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 并向所述 下一跳转发所述处理后的添加报文; 或
所述根据所述业务路径标识以及本地存储的转发表处理所述添加报文包括:根据所 述业务路径标识查找所述第二转发表, 得到对应所述业务路径标识的下一跳, 当所述下 一跳为终止标识时, 删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的 业务报文, 对所述处理后的业务报文进行正常转发; 或
当所述业务路径选项中还包括生存时间, 且所述生存时间的值大于 1时, 所述根据 所述业务路径标识以及本地存储的转发表处理所述添加报文包括: 将所述业务路径选项 中的所述生成时间的值减 1, 根据所述业务路径标识查找所述第二转发表, 得到对应所 述业务路径标识的下一跳, 向所述下一跳转发所述处理后的添加报文; 或
当所述业务路径选项中还包括生存时间, 且所述生存时间的值为 1时, 所述根据所 述业务路径标识以及本地存储的转发表处理所述添加报文包括:删除所述处理后的添加 报文中的所述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正 常转发。
13、 一种处理报文的装置, 其特征在于, 包括:
第一获取单元, 用于获取添加报文, 所述添加报文为在业务报文的 IP头中添加业务 路径选项后得到的报文, 所述业务路径选项包括业务路径标识, 所述业务路径标识用于 标识业务路径;
第二获取单元, 用于根据所述业务路径选项获取所述业务路径标识;
存储单元, 用于存储转发表;
处理单元, 用于根据所述业务路径标识以及所述转发表处理所述添加报文。
14、 根据权利要求 13所述的装置, 其特征在于, 还包括:
接收单元, 用于接收管理设备发送的业务路径信息, 所述业务路径信息包括业务路 径标识;
更新单元, 用于根据所述业务路径信息更新所述转发表。
15、 根据权利要求 14所述的装置, 其特征在于, 所述转发表为第一转发表, 所述业 务路径信息还包括业务流标识以及下一跳, 所述业务流标识用于标识业务流; 所述更新 单元用于:
根据所述业务路径信息更新所述第一转发表, 所述第一转发表包括所述业务流标 识、 所述业务路径标识以及所述下一跳的对应关系。
16、 根据权利要求 15所述的装置, 其特征在于, 所述第一获取单元用于: 接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流; 根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识, 根据所述业务路径标识在所述业务报文的 IP头中添加所述业 务路径选项, 得到所述添加报文。
17、 根据权利要求 16所述的装置, 其特征在于, 所述处理单元用于: 根据所述业务 路径标识查找所述第一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳 转发所述添加报文。
18、 根据权利要求 15所述的装置, 其特征在于, 所述业务路径信息还包括所述业务 路径标识对应的业务路径的节点数, 所述第一转发表包括所述业务流标识, 所述业务路 径标识、 所述下一跳以及所述节点数的对应关系。
19、 根据权利要求 18所述的装置, 其特征在于, 所述第一获取单元用于: 接收所述业务报文, 所述业务报文属于所述业务流标识对应的业务流;
根据所述业务报文获取所述业务流标识,根据所述业务流标识查找所述第一转发表 以获取所述业务路径标识以及所述节点数,根据所述业务路径标识及所述节点数在所述 业务报文的 IP头中添加业务路径选项, 得到所述添加报文, 所述业务路径选项包括所述 业务路径标识以及生存时间, 所述生存时间的值为所述节点数。
20、 根据权利要求 19所述的装置, 其特征在于, 所述处理单元用于:
将所述业务路径选项中的生存时间的值减 1后, 根据所述业务路径标识查找所述第 一转发表, 得到对应所述业务路径标识的下一跳, 并向所述下一跳转发所述添加报文。
21、 根据权利要求 12所述的装置, 其特征在于, 所述转发表为第二转发表, 所述业 务路径信息还包括下一跳, 所述更新单元用于:
根据所述业务路径信息更新所述第二转发表,所述第二转发表包括所述业务路径标 识以及所述下一跳的对应关系。
22、 根据权利要求 21所述的装置, 其特征在于, 所述第一获取单元用于: 接收上一跳设备发送的所述添加报文,所述上一跳设备包括流分发点或者上一跳增 值业务设备。
23、 根据权利要求 20或 21所述的装置, 其特征在于, 所述装置还包括:
增值业务处理单元, 用于对所述添加报文进行增值业务处理, 得到处理后的添加报 文。
24、 根据权利要求 23所述的装置, 其特征在于,
所述处理单元用于: 根据所述业务路径标识查找所述第二转发表, 得到对应所述业 务路径标识的下一跳, 并向所述下一跳转发所述处理后的添加报文; 或
所述处理单元用于: 根据所述业务路径标识查找所述第二转发表, 得到对应所述业 务路径标识的下一跳, 当所述下一跳为终止标识时, 删除所述处理后的添加报文中的所 述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发; 或 当所述业务路径选项中还包括生存时间, 且所述生存时间的值大于 1时, 所述处理 单元用于: 将所述业务路径选项中的所述生成时间的值减 1, 根据所述业务路径标识查 找所述第二转发表, 得到对应所述业务路径标识的下一跳, 向所述下一跳转发所述处理 后的添加报文; 或
当所述业务路径选项中还包括生存时间, 且所述生存时间的值为 1时, 所述处理单 元用于: 删除所述处理后的添加报文中的所述业务路径选项, 得到处理后的业务报文, 对所述处理后的业务报文进行正常转发。
PCT/CN2013/091177 2013-12-31 2013-12-31 一种处理报文的方法和装置 WO2015100644A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/091177 WO2015100644A1 (zh) 2013-12-31 2013-12-31 一种处理报文的方法和装置
CN201380003574.8A CN105009542B (zh) 2013-12-31 2013-12-31 一种处理报文的方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/091177 WO2015100644A1 (zh) 2013-12-31 2013-12-31 一种处理报文的方法和装置

Publications (1)

Publication Number Publication Date
WO2015100644A1 true WO2015100644A1 (zh) 2015-07-09

Family

ID=53492987

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/091177 WO2015100644A1 (zh) 2013-12-31 2013-12-31 一种处理报文的方法和装置

Country Status (2)

Country Link
CN (1) CN105009542B (zh)
WO (1) WO2015100644A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055289A (zh) * 2016-07-01 2021-06-29 华为技术有限公司 基于业务功能链sfc的报文转发方法、装置和系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922005B (zh) * 2017-12-13 2022-08-19 中兴通讯股份有限公司 一种负载分担方法、装置和系统、计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047391A1 (en) * 2003-08-26 2005-03-03 Michael Tuxen Selection method for message paths in communication systems
EP1624644A2 (en) * 2004-08-02 2006-02-08 Novell, Inc. Privileged network routing
CN101360097A (zh) * 2007-08-01 2009-02-04 华为技术有限公司 一种转发报文的方法、网络及网元
CN102437931A (zh) * 2011-12-29 2012-05-02 华为技术有限公司 一种业务路径的探测方法及设备
CN102571545A (zh) * 2010-12-27 2012-07-11 华为技术有限公司 在IPv4网络中传递信息的方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030918B (zh) * 2006-03-03 2010-06-02 华为技术有限公司 一种基于ip网络提供组播业务的方法、设备和系统
CN101599895B (zh) * 2008-06-04 2012-07-04 华为技术有限公司 数据处理方法及宽带网络网关、策略控制器装置和接入节点设备
US8284666B2 (en) * 2009-06-29 2012-10-09 Alcatel Lucent Method and apparatus for controlling packet flow in a packet-switched network
CN102143035B (zh) * 2010-06-04 2013-06-12 华为技术有限公司 数据业务处理方法、网络设备和网络系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047391A1 (en) * 2003-08-26 2005-03-03 Michael Tuxen Selection method for message paths in communication systems
EP1624644A2 (en) * 2004-08-02 2006-02-08 Novell, Inc. Privileged network routing
CN101360097A (zh) * 2007-08-01 2009-02-04 华为技术有限公司 一种转发报文的方法、网络及网元
CN102571545A (zh) * 2010-12-27 2012-07-11 华为技术有限公司 在IPv4网络中传递信息的方法和装置
CN102437931A (zh) * 2011-12-29 2012-05-02 华为技术有限公司 一种业务路径的探测方法及设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055289A (zh) * 2016-07-01 2021-06-29 华为技术有限公司 基于业务功能链sfc的报文转发方法、装置和系统
CN113055289B (zh) * 2016-07-01 2023-12-08 华为技术有限公司 基于业务功能链sfc的报文转发方法、装置和系统
US11895026B2 (en) 2016-07-01 2024-02-06 Huawei Technologies Co., Ltd. Service function chaining SFC-based packet forwarding method, apparatus, and system

Also Published As

Publication number Publication date
CN105009542A (zh) 2015-10-28
CN105009542B (zh) 2018-01-23

Similar Documents

Publication Publication Date Title
JP7274582B2 (ja) ローカルエリアネットワーク(lan)をサポートする方法および装置
CN109218178B (zh) 一种报文处理方法及网络设备
CN108574630B (zh) Evpn报文处理方法、设备及系统
US10412008B2 (en) Packet processing method, apparatus, and system
CN112787931B (zh) 报文传输方法、代理节点及存储介质
WO2021089052A1 (zh) 报文传输方法、代理节点及存储介质
US10263808B2 (en) Deployment of virtual extensible local area network
EP2731313B1 (en) Distributed cluster processing system and message processing method thereof
WO2014176740A1 (zh) 流分类器、业务路由触发器、报文处理的方法和系统
US20130058345A1 (en) Apparatus and Method for Establishing Tunnels Between Nodes in a Communication Network
US11233724B2 (en) Multicast data packet processing method, and apparatus
US20110032939A1 (en) Network system, packet forwarding apparatus, and method of forwarding packets
WO2016101646A1 (zh) 以太虚拟网络的接入方法及装置
WO2014205784A1 (zh) 一种在nvo3网络中处理组播报文的方法、装置和nvo3网络
US10791051B2 (en) System and method to bypass the forwarding information base (FIB) for interest packet forwarding in an information-centric networking (ICN) environment
CN110798403B (zh) 通信方法、通信设备和通信系统
EP3095216B1 (en) Single hop overlay architecture for line rate performance in campus networks
CN112134776B (zh) 生成组播转发表项的方法和接入网关
CN111614505B (zh) 报文处理的方法和网关设备
EP2953302B1 (en) Service packet processing method, apparatus and system
WO2014139157A1 (zh) 一种报文处理的方法、报文设备和系统
WO2022117018A1 (zh) 报文传输的方法和装置
WO2019196914A1 (zh) 一种发现转发路径的方法及其相关设备
CN113904981A (zh) 一种路由信息处理方法、装置、电子设备和存储介质
WO2015100644A1 (zh) 一种处理报文的方法和装置

Legal Events

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

Ref document number: 13900623

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13900623

Country of ref document: EP

Kind code of ref document: A1