WO2017054578A1 - Message forwarding method, service chain proxy apparatus and proxy device - Google Patents

Message forwarding method, service chain proxy apparatus and proxy device Download PDF

Info

Publication number
WO2017054578A1
WO2017054578A1 PCT/CN2016/094658 CN2016094658W WO2017054578A1 WO 2017054578 A1 WO2017054578 A1 WO 2017054578A1 CN 2016094658 W CN2016094658 W CN 2016094658W WO 2017054578 A1 WO2017054578 A1 WO 2017054578A1
Authority
WO
WIPO (PCT)
Prior art keywords
service chain
information
packet
proxy device
service
Prior art date
Application number
PCT/CN2016/094658
Other languages
French (fr)
Chinese (zh)
Inventor
周晟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017054578A1 publication Critical patent/WO2017054578A1/en

Links

Images

Classifications

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

Definitions

  • This document relates to, but is not limited to, the field of communications, and in particular, to a message forwarding method, a service chain proxy device, and a proxy device.
  • SF node Service Function node
  • HTTP Hypertext Transfer Protocol
  • a service chain proxy can be introduced, which completes the analysis of the service chain path and the header of the packet service chain path.
  • the SF node cannot identify the header, so it needs to be deleted) to delete, and distribute the traffic to the relevant SF node.
  • the SF node receives the packet, sends the packet back to the Proxy after the service processing, and sends the proxy to the next one of the service chain.
  • the business function node or the next business chain agent the process is shown in Figure 3.
  • the SF node may modify the original packet when processing the packet sent by the service chain proxy, for example, between the networks that modify the original packet.
  • the chain proxy does not perceive the SF node to modify the packet. This will cause the packet processed by the SF node to be sent to the proxy.
  • the proxy cannot obtain the original IP or port information from the packet, and cannot find the packet.
  • the correct service link path information causes the packet to fail to be forwarded.
  • the embodiment of the invention provides a message forwarding method, a service chain proxy device and a proxy device, which can implement the service chain agent to obtain the service chain path information after the service function node modifies the message, and complete the packet forwarding.
  • the embodiment of the invention provides a packet forwarding method, including:
  • the service chain proxy device receives the message with the service chain path information
  • the service chain proxy device processes the received packet to obtain a user packet, and adds query information for finding a next hop path to the obtained user packet;
  • the service chain proxy device sends the user message with the added query information to the current target service capability node, and receives the user message returned after the target service capability node processes;
  • the service chain proxy device obtains the query information from the returned user packet, searches for the next hop path according to the query information, and forwards the returned user packet according to the next hop path.
  • the query information includes service chain path information or association information associated with service chain path information
  • Adding the query information to the user packet includes:
  • the service chain proxy device extracts the service chain path information in the packet; the service chain proxy device adds the service chain path information to the processed office. User message;
  • the service chain proxy device When the query information includes the association information associated with the service chain path information, the service chain proxy device extracts the service chain path information in the packet and the associated information associated with the service chain path information for association storage; The service chain proxy device adds the associated information stored in the association The user message obtained after the processing.
  • the searching for the next hop path according to the query information includes:
  • the searching for the next hop path according to the query information includes:
  • the association information when the query information includes the service chain path information as the association information, includes: a protocol IP address, a destination IP address, a source port, and a target that are interconnected between the source networks.
  • a protocol IP address a protocol IP address
  • a destination IP address a destination IP address
  • a source port a source port
  • a target a target that are interconnected between the source networks.
  • One or more kinds of information in the port and service chain path information One or more kinds of information in the port and service chain path information.
  • the adding the query information to the obtained user packet includes:
  • the query information is added in the custom header field.
  • forwarding the user packet according to the next hop path includes:
  • next hop path corresponds to another target service capability node other than the target service capability node that returns the user message
  • the user message is sent to the other target service capability node.
  • the packet forwarding method further includes:
  • next hop path corresponds to another service chain proxy device
  • the query information in the user packet is deleted, and the user packet encapsulates the service chain header of the service chain path information. Send to the other service chain proxy device.
  • the embodiment of the invention further provides a service chain proxy device, where the service chain proxy device comprises:
  • a receiving module configured to receive a message with service chain path information
  • a processing module configured to process the received packet to obtain a user packet, and add query information for finding a next hop path in the obtained user packet;
  • a delivery module configured to send the user message with the added query information to the current target service capability node, and receive the user message returned by the target service capability node;
  • the management module is configured to obtain the query information from the returned user message returned by the returned target service capability node, find the next hop path according to the query information, and return the returned location according to the next hop path.
  • the user message is forwarded.
  • the processing module includes a first extraction submodule, a first addition submodule, a second extraction submodule, and a second addition submodule.
  • the first extraction sub-module is configured to: when the query information includes service chain path information, extract service chain path information in the packet;
  • the first adding sub-module is configured to add the service chain path information extracted by the first extraction sub-module to the user message obtained after the processing;
  • the second extraction sub-module is configured to: when the query information includes the association information associated with the service chain path information, extract the service chain path information in the packet and the associated information associated with the service chain path information.
  • Associated storage
  • the second adding sub-module is configured to add the association information to the user packet by associating and storing the second extraction sub-module.
  • the management module includes a first obtaining submodule, a first determining submodule, a second obtaining submodule, an associated query submodule, and a second determining submodule;
  • the first obtaining sub-module is configured to: when the query information includes service chain path information, extract the service chain path information from a user message returned by the target service capability node;
  • the first determining sub-module is configured to determine a next hop path of the user packet according to the service chain path information extracted by the first acquiring sub-module;
  • the second obtaining submodule is configured to
  • the query information When the query information includes the service chain path information as the association information, the query information is set to extract the association information from the user message returned by the target service capability node;
  • the association query sub-module is configured to find the service chain path information associated with the extracted association information according to the extracted association information
  • the second determining submodule is configured to determine a next hop path of the user packet according to the service chain path information.
  • the association information when the query information includes the service chain path information as the association information, includes: a source IP address, a destination IP address, a source port, a target port, and a service chain path information.
  • a source IP address a destination IP address
  • a source port a source port
  • a target port a service chain path information.
  • the service chain proxy device further includes an inserting module, configured to insert a custom header field in the obtained user message; the processing module is configured to be in the user The query information is added to the custom header field in the message.
  • the management module is configured to: obtain the query information from a user message returned by the returned target service capability node, and search for the query information according to the query information.
  • One-hop path
  • next hop path corresponds to another target service capability node other than the target service capability node that returns the user message
  • the user message is sent to the other target service capability node.
  • the management module is configured to: obtain the query information from a user message returned by the returned target service capability node, and search for the query information according to the query information.
  • One-hop path
  • next hop path corresponds to another service chain proxy device
  • the query information in the user packet is deleted, and the user packet encapsulates the service chain header of the service chain path information. Send to the other service chain proxy device.
  • An embodiment of the present invention further provides a proxy device, including the service chain proxy device as described above.
  • the technical solution provided by the embodiment of the present invention includes: the service chain proxy device receives the packet with the service link path information; after receiving the received packet, the user packet is obtained, and the obtained user packet is obtained.
  • the query information for finding the next hop path is added; the user message with the added query information is sent to the current target service capability node, and the user message returned after the target service capability node is processed is received;
  • the query information is obtained in the user packet, and the next hop path is found according to the query information, and the returned user packet is forwarded according to the next hop path.
  • the query information for finding the next hop path is added to the corresponding service function node, so that even if the service function node has the original IP in the packet, After the port is modified, the service chain proxy device can accurately obtain the next hop path information according to the query information in the packet, and implement accurate packet forwarding.
  • FIG. 1 is a schematic diagram of a network traffic flow in a related art
  • FIG. 2 is a schematic diagram of network traffic flow after the introduction of a service chain
  • FIG. 3 is a schematic diagram of network traffic flow after the introduction of a service chain proxy
  • FIG. 4 is a schematic flowchart of a packet forwarding method according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic structural diagram of a service chain proxy device according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural view of the processing module of FIG. 5;
  • FIG. 7 is another schematic structural view of the processing module of FIG. 5;
  • FIG. 8 is a schematic structural view of the management module of FIG. 5;
  • FIG. 9 is another schematic structural diagram of the management module of FIG. 5;
  • FIG. 10 is a schematic flowchart 1 of a packet forwarding method according to Embodiment 3 of the present invention.
  • FIG. 11 is a second schematic flowchart of a packet forwarding method according to Embodiment 3 of the present invention.
  • FIG. 12 is a third schematic flowchart of a packet forwarding method according to Embodiment 3 of the present invention.
  • the service chain proxy device in the embodiment of the present invention adds the query information for finding the next hop path to the corresponding service capability node, and receives the target service capability node for the user packet. After the user packet is returned, the next hop path can be found according to the query information added in the user packet, and the user packet is forwarded according to the next hop path. In this way, even if the service function node modifies the original IP address and port in the packet, the service chain The proxy device can still accurately obtain the next hop path information according to the query information in the packet, and implement accurate packet forwarding.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the packet forwarding method provided in this embodiment includes:
  • Step 401 The service chain proxy device receives the packet with the service chain path information; the packet is from the gateway on the SGi/Gi side, or from the previous hop node, and may include: an HTTP URL request message, etc.;
  • Step 402 The service chain proxy device processes the received packet to obtain a user packet, and adds query information for finding a next hop path to the obtained user packet.
  • the user message in the step includes the user message obtained by removing the transport layer information, such as the header of the service chain path of the received message, by the service chain proxy device;
  • the query information added in this step may be used to search for the next hop path of the packet, and the manner and/or location of the query information set in the packet may not be modified as long as the service function node is satisfied; for example;
  • the method that can be set includes: inserting a custom header field in the user message, and then adding query information in the custom header field;
  • Step 403 The service chain proxy device sends the user packet with the added query information to the current target service capability node, and receives the user packet returned by the target service capability node.
  • the current target service capability node in the step includes the service chain proxy device receiving the packet of the gateway, and determining the service capability node corresponding to the next hop from the service chain path of the packet;
  • Step 404 The service chain proxy device obtains the previously added query information from the returned user packet, searches for the next hop path according to the query information, and forwards the returned user packet according to the next hop path.
  • the information added by the service chain proxy device in the user packet may be used to query the service chain path information of the packet, and the query information may include the service chain path information of the packet itself, according to the service chain path information.
  • the information of the next hop path may be correctly found; the query information may also include the association information associated with the service chain path information, where the association information includes association information corresponding to the service chain path information of the packet, that is, According to the association information, any information of the service chain path information of the packet can be found; according to actual needs, the query information includes the service chain path information.
  • the association information may include one or more of a source IP address, a destination IP address, a source port, a destination port, and a service chain path information, as long as the service chain path information of the packet can be found.
  • the association information includes a source IP address, a destination IP address, a source port, a target port, and a service chain path information.
  • the service chain path information may include: a service path identifier (SPI), and a service path location (SI, Service Index).
  • SPI service path identifier
  • SI service path location
  • the service chain proxy device adds the query information to the user packet, including:
  • the service chain proxy device extracts the service chain path information in the packet sent by the gateway, and the embodiment of the present invention may extract the header of the service chain path of the packet;
  • the service chain proxy device adds the service chain path information to the user packet.
  • the embodiment of the present invention can insert a custom header field in the user packet, and the custom header field location can be set at the end of the user packet, and then the customization is performed.
  • the obtained service chain path information can be added to the header field; since the custom header field is not modified by the service function node, the accuracy of the subsequently obtained service chain path information can be ensured.
  • the service chain proxy device adds the query information to the user packet, including:
  • the service chain proxy device extracts service chain path information in the packet and association information associated with the service chain path information, and stores the service chain path information from the service chain path header of the packet, and then One or more of the source IP address, the destination IP address, the source port, the target port, and the service chain path information are extracted as the associated information in the parsed user packet;
  • the service chain proxy device adds the association information to the user packet.
  • a custom header field can be inserted in the user packet, and the custom header field location can be set at the end of the user packet, and then in the custom header.
  • the associated information is added to the domain.
  • the customized header field is not modified by the service function node. Therefore, the associated information obtained is the original information of the packet, and the packet can be obtained according to the original information.
  • the service chain path information determines the next hop according to the obtained service chain path information.
  • extracting the query information from the user message fed back from the service function node by the service chain proxy device and finding the next hop path includes:
  • the service chain path information is extracted from the user packet returned by the target service capability node, and the service chain path information is obtained from the custom header field in the user packet in the embodiment of the present invention
  • the next hop path of the user packet is determined according to the service chain path information.
  • extracting the query information from the user message fed back from the service function node by the service chain proxy device and finding the next hop path includes:
  • Extracting the association information from the user packet returned by the target service capability node where the embodiment of the present invention can obtain the service chain path information from the custom header field in the user packet;
  • the next hop path of the user packet is determined according to the found service chain path information.
  • the service chain proxy device determines, according to the found service chain path information, that the object corresponding to the next hop path of the user packet may be another target service capability node, or may be another service chain proxy device.
  • the service chain proxy device may directly send the user packet to the other target service capability node; when the service chain proxy device sends the packet, the service chain proxy device may The query information in the user packet is updated and sent out, or can be directly sent out when the update is not needed, for example, when the added query information is the source IP address, the destination IP address, the source port, the target port, and the service chain path.
  • One or more of the information and the next hop can be correctly found according to the query information.
  • the service chain proxy device When the next hop path corresponds to another service chain proxy device, the service chain proxy device deletes the query information added in the user packet, and also deletes the custom header field in the user packet, and encapsulates the user packet.
  • the service chain header of the service chain path information of the message is sent to the other service chain proxy device.
  • the other service chain proxy device repeats the steps shown in FIG. 4 after receiving the message.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the message forwarding method.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a service chain proxy device, which can be disposed in the proxy device.
  • the service chain proxy device includes:
  • the receiving module 1 is configured to receive a message with service chain path information; the message may include a gateway from the SGi/Gi side, or a message from a previous hop node, which may be a HTTP URL request message;
  • the processing module 2 is configured to process the received packet to obtain the user packet, and add the query information for finding the next hop path in the obtained user packet; where the user packet may include the service chain proxy device Transmitting the obtained user message by the transport layer information such as the header of the service chain path of the received message;
  • the query information added here may be used to search for the next hop path of the packet, and the manner and/or location of the query information set in the packet may not be modified as long as the service function node is satisfied; for example, the query
  • the information may be set by inserting a custom header field in the user message, and then adding the query information in the custom header field; therefore, the service chain proxy device in this embodiment may include the insertion module 5, and is set to be obtained.
  • a custom header field is inserted in the user packet; the processing module 2 is configured to add the query information in the custom header field in the user packet;
  • the delivery module 3 is configured to send the user message with the added query information to the current target service capability node, and receive the user message returned by the target service capability node; where the current target service capability node includes the service chain After receiving the packet of the gateway, the proxy device determines a service capability node corresponding to the next hop from the service chain path of the packet;
  • the management module 4 is configured to obtain the query information from the user message returned by the returned target service capability node, find the next hop path according to the query information, and perform the returned user message according to the next hop path. Forward.
  • the information added by the processing module 2 in this embodiment may be used to query the service chain path information of the packet, and the query information may include the service chain path information of the packet itself, and the path information according to the service chain may be correctly found.
  • the next hop path information; the query information may also include association information associated with the service chain path information, where the association information includes association information corresponding to the service chain path information of the packet, that is, the association information may be searched according to the association information.
  • Any information about the service chain path information of the packet; according to the actual needs, the query information may include the service chain path information as the associated information.
  • the association information may include one or more of a source IP address, a destination IP address, a source port, a destination port, and a service chain path information, as long as the service chain path information of the packet can be found.
  • the association information includes a source IP address, a destination IP address, a source port, a target port, and a service chain path information.
  • the processing module 2 includes a first extraction sub-module 21 and a first addition sub-module 22, the query information is service chain path information; and the first extraction sub-module 21 is set to extract The service chain path information in the packet may be extracted from the header of the service chain path of the packet in the embodiment of the present invention.
  • the first adding sub-module 22 is configured to add the service chain path information to the user packet, which may be used in the embodiment of the present invention. Insert a custom header field in the user packet.
  • the custom header field location can be set at the end of the user packet, and then the obtained service chain path information can be added in the custom header field; It will not be modified by the service function node, so the accuracy of the subsequently obtained service chain path information can be guaranteed.
  • the processing module 2 includes a second extraction submodule 23 and a second addition submodule 24, the query information is associated information associated with the service chain path information; and the second extraction submodule 23
  • the service chain path information and the associated information associated with the service chain path information are associated and stored, and the service chain path information in the message and the associated information associated with the service chain path information are associated and stored.
  • the service chain path information is extracted from the service chain path header of the packet, and then the source IP address, the destination IP address, the source port, the target port, and the service chain path information are extracted from the user packet obtained by the parsing.
  • the second adding sub-module 24 is configured to add the associated information to the user packet, and the embodiment of the present invention can insert a custom header field in the user packet, where the custom header field can be Set at the end of the user message, and then add the acquired association information in the custom header field; since the custom header field will not be repaired by the service function node , Thus guaranteeing the subsequent original information is acquired related information packet, and further information can be obtained based on the original message to the service chain path information, determine the next hop path according to the service information acquisition chain.
  • the management module 4 includes a first obtaining submodule 41 and a first determining submodule 42 , and the query information is service chain path information; and the first obtaining submodule 41 is configured to The service chain path information is extracted from the user packet returned by the target service capability node, and the service chain path information is obtained from the custom header field in the user packet in the embodiment of the present invention;
  • the determining submodule 42 is configured to determine a next hop path of the user packet according to the service chain path information;
  • the management module 4 includes a second obtaining sub-module 43, an associated query sub-module 44, and a second determining sub-module 45.
  • the query information includes service chain path information as associated information.
  • the second obtaining sub-module 43 is configured to extract the related information from the user message returned by the target service capability node, and the embodiment of the present invention may obtain the service chain path information from the custom header field in the user packet; the associated query sub-module And the second determining sub-module 45 is configured to determine the next hop path of the user packet according to the service chain path information, where the service chain path information, that is, the service chain path information of the packet, is set according to the association information. .
  • the management module 4 determines, according to the found service chain path information, that the object corresponding to the next hop path of the user packet may be another target service capability node, or may be another service chain proxy device.
  • the query information in the user message may be updated and sent out according to the actual situation, or may be directly updated when the message is not needed.
  • the added query information is one or more of a source IP address, a destination IP address, a source port, a target port, and a service chain path information, and the next hop can be correctly found according to the query information.
  • the management module 4 deletes the query information added in the user packet, and also deletes the custom header field in the user packet, and encapsulates the user packet.
  • the service chain header of the service chain path information of the message is sent to the other service chain proxy device.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the query information in the example is original IP address information, and may include at least one of a source IP address and a destination IP address.
  • the processing process includes:
  • Step 1001 The service chain proxy device receives the packet with the service chain path information in the header, and takes the service chain path information from the head and records it;
  • Step 1002 The service chain proxy device removes the header of the service chain path of the packet to obtain a user packet, and inserts a custom header field in the user packet, where the information in the header field is the IP address information of the packet.
  • Step 1003 The service chain proxy device sends the modified user packet to the corresponding target service function node.
  • Step 1004 After processing the packet, the target service function node modifies the IP address of the user packet, and sends the user packet to the service chain proxy device.
  • Step 1005 After receiving the user packet, the service chain proxy device extracts the original IP address of the user packet from the header field of the user packet, and then searches for the service chain path information of the original packet to find the next service path. Jumping node, assuming that the next node is another service chain proxy device;
  • Step 1006 The service chain proxy device removes the custom header field in the user packet, encapsulates the service chain header information, and sends the packet to the next service chain proxy device in the service chain path.
  • the query information in the example is original port information, and may include at least one of a source port and a destination port.
  • the processing process includes:
  • Step 1101 The service chain proxy device receives the packet with the service chain path information in the header, and records the service chain path information from the header.
  • Step 1102 The service chain proxy device removes the header of the service chain path of the packet to obtain the user packet, and inserts the user packet into the custom header field, where the information in the header field is the port information of the packet.
  • Step 1103 The service chain proxy device sends the modified user packet to the corresponding target service function node.
  • Step 1104 After processing the packet, the target service function node modifies the port of the user packet, and sends the user packet to the service chain proxy device.
  • Step 1105 After receiving the user packet, the service chain proxy device extracts the original port of the user packet from the header field of the user packet, and then searches for the service chain path information of the original packet to find the next hop of the service path. Node, assuming that the next node is another service function node;
  • Step 1106 The service chain proxy device directly sends the user packet to the next service function node of the service chain path.
  • the query information in the example includes service path information of the packet;
  • the process includes:
  • Step 1201 The service chain proxy device receives the packet with the service chain path information in the header, and takes the service chain path information from the header and records it;
  • Step 1202 The service chain proxy device removes the header of the service chain path of the packet to obtain the user packet, and inserts the user packet into the custom header field, where the information in the header field is the service chain path information.
  • Step 1203 The service chain proxy device sends the modified user packet to the corresponding target service function node.
  • Step 1204 After processing the packet, the target service function node sends the user packet to the service chain proxy device.
  • Step 1205 After receiving the user packet, the service chain proxy device extracts the original service chain path information of the user packet from the header field of the user packet, and then finds the next hop node of the service path, and assumes that the next node is another. a business function node;
  • Step 1206 The service chain proxy device directly sends the user packet to the next service function node of the service chain path.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the foregoing technical solution implements accurate forwarding of the message.

Abstract

A message forwarding method, a service chain proxy apparatus and a proxy device. The method comprises: a service chain proxy apparatus receiving a message carrying service chain path information; obtaining a user message after processing the received message, and adding query information for searching for a next hop path to the obtained user message; sending the user message, to which the query information is added, to a current target service capability node, and receiving a user message processed and returned by the target service capability node; and acquiring the query information from the returned user message, finding the next hop path according to the query information, and forwarding the returned user message according to the next hop path. The service chain proxy apparatus in the embodiments of the present invention sends a user message to a corresponding service function node after adding query information for searching for a next hop path to the user message, so that the service function node accurately acquires next hop path information according to the query information, and the message is accurately forwarded.

Description

一种报文转发方法、业务链代理装置及代理设备Message forwarding method, service chain proxy device and proxy device 技术领域Technical field
本文涉及但不限于通信领域,尤其涉及一种报文转发方法、业务链代理装置及代理设备。This document relates to, but is not limited to, the field of communications, and in particular, to a message forwarding method, a service chain proxy device, and a proxy device.
背景技术Background technique
在传统网络中,短保护间隔(SGi,The reference point between the EPC based PLMN and the packet data network)/保护间隔(Gi,Reference point between Packet Domain and an external packet data network)侧的流量需要通过所有的业务功能(Service Function,SF)节点的,如图1所示。随着智能手机等移动终端的广泛应用,移动网络的流量增长得非常迅猛,对移动网络的压力越来越大。其中超文本传输协议(HTTP,HyperText Transfer Protocol)的业务占很大的比重。为优化流量分布,在SGi/Gi侧期望对流量做分类,根据业务类型对流量的路径做出编排,这样业务流量可以根据预先编排好的路径,仅需经过路径上的SF节点做业务处理,而不需要像传统网络里经过所有的SF节点,如图2所示。In the traditional network, the traffic of the reference point between the EPC based PLMN and the packet data network (Gi, Reference point between Packet Domain and an external packet data network) needs to pass all the traffic. Service Function (SF) node, as shown in Figure 1. With the widespread use of mobile terminals such as smart phones, the traffic of mobile networks has grown very rapidly, and the pressure on mobile networks is increasing. Among them, the business of Hypertext Transfer Protocol (HTTP) accounts for a large proportion. In order to optimize the traffic distribution, it is desirable to classify the traffic on the SGi/Gi side, and arrange the traffic path according to the service type, so that the service traffic can be processed according to the pre-programmed path and only through the SF node on the path. It does not need to pass all the SF nodes in the traditional network, as shown in Figure 2.
由于做业务编排,需要在报文头部增加业务链路径信息,需要业务链路径上的所有SF节点能够解析该信息。而当前网络中的SF节点并不支持该解析功能。因此为了不改变相关技术中的SF节点,又要能支持业务编排,优化流量,可以引入业务链代理(Proxy),由它完成业务链路径的解析,并将该报文业务链路径的头部(SF节点不能识别该头部,故需删除)删除,把流量分发给相关的SF节点,SF节点收到报文,做业务处理后把报文回送给Proxy,Proxy发往业务链的下一个业务功能节点或下一个业务链代理,该过程如图3所示。As a service orchestration, it is necessary to add service chain path information in the packet header, and all SF nodes on the service chain path need to be able to parse the information. The SF node in the current network does not support this parsing function. Therefore, in order not to change the SF node in the related technology, but also to support the service orchestration and optimize the traffic, a service chain proxy (Proxy) can be introduced, which completes the analysis of the service chain path and the header of the packet service chain path. (The SF node cannot identify the header, so it needs to be deleted) to delete, and distribute the traffic to the relevant SF node. The SF node receives the packet, sends the packet back to the Proxy after the service processing, and sends the proxy to the next one of the service chain. The business function node or the next business chain agent, the process is shown in Figure 3.
在使用业务链代理为SF节点屏蔽业务链路径信息时会面临一个问题,SF节点在对业务链代理发送的报文做处理时可能会修改原始的报文,例如修改原始报文的网络之间互连的协议(IP)、端口,或者在报文中插入统一资源定位符(URL)的信息;而业务链路径编排是基于原始的http报文,而业务 链代理并不会感知SF节点对报文做了修改,这样会导致SF节点处理后的报文发给Proxy,Proxy无法从该报文中获取到原始的IP或端口等信息,进而无法查找到正确的业务链路径信息,导致该报文转发失败。When using the service chain proxy to shield the service chain path information for the SF node, the SF node may modify the original packet when processing the packet sent by the service chain proxy, for example, between the networks that modify the original packet. Interconnected protocol (IP), port, or information that inserts a uniform resource locator (URL) in the message; the service chain path orchestration is based on the original http message, and the service The chain proxy does not perceive the SF node to modify the packet. This will cause the packet processed by the SF node to be sent to the proxy. The proxy cannot obtain the original IP or port information from the packet, and cannot find the packet. The correct service link path information causes the packet to fail to be forwarded.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种报文转发方法、业务链代理装置及代理设备,能够实现业务链代理在业务功能节点对报文进行修改后业务链路径信息的获取,完成报文转发。The embodiment of the invention provides a message forwarding method, a service chain proxy device and a proxy device, which can implement the service chain agent to obtain the service chain path information after the service function node modifies the message, and complete the packet forwarding.
本发明实施例提供一种报文转发方法,包括:The embodiment of the invention provides a packet forwarding method, including:
业务链代理装置接收带有业务链路径信息的报文;The service chain proxy device receives the message with the service chain path information;
所述业务链代理装置对接收的所述报文处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;The service chain proxy device processes the received packet to obtain a user packet, and adds query information for finding a next hop path to the obtained user packet;
所述业务链代理装置将增加了查询信息的所述用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;The service chain proxy device sends the user message with the added query information to the current target service capability node, and receives the user message returned after the target service capability node processes;
所述业务链代理装置从返回的所述用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径,并根据下一跳路径对返回的所述用户报文进行转发。The service chain proxy device obtains the query information from the returned user packet, searches for the next hop path according to the query information, and forwards the returned user packet according to the next hop path.
在本发明的一个可选实施例中,所述查询信息包括业务链路径信息或与业务链路径信息关联的关联信息;In an optional embodiment of the present invention, the query information includes service chain path information or association information associated with service chain path information;
所述在所述用户报文中增加查询信息包括:Adding the query information to the user packet includes:
所述查询信息包括业务链路径信息时,所述业务链代理装置提取所述报文中的业务链路径信息;所述业务链代理装置将所述业务链路径信息加入所述处理后得到的所述用户报文;When the query information includes the service chain path information, the service chain proxy device extracts the service chain path information in the packet; the service chain proxy device adds the service chain path information to the processed office. User message;
所述查询信息包括与业务链路径信息关联的关联信息时,所述业务链代理装置提取所述报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储;所述业务链代理装置将所述关联存储的关联信息加入 所述处理后得到的所述用户报文。When the query information includes the association information associated with the service chain path information, the service chain proxy device extracts the service chain path information in the packet and the associated information associated with the service chain path information for association storage; The service chain proxy device adds the associated information stored in the association The user message obtained after the processing.
在本发明的一个可选实施例中,所述查询信息包括业务链路径信息时,所述根据所述查询信息查找到下一跳路径包括:In an optional embodiment of the present invention, when the query information includes the service chain path information, the searching for the next hop path according to the query information includes:
从所述目标业务能力节点返回的用户报文中提取所述业务链路径信息;Extracting the service chain path information from a user packet returned by the target service capability node;
根据所述业务链路径信息确定返回的所述用户报文的下一跳路径;Determining, according to the service chain path information, a next hop path of the returned user packet;
当所述查询信息为业务链路径信息为关联信息时,所述根据所述查询信息查找到下一跳路径包括:When the query information is the service chain path information, the searching for the next hop path according to the query information includes:
从所述目标业务能力节点返回的用户报文中提取所述关联信息;Extracting the association information from a user message returned by the target service capability node;
根据所述关联信息查找到与之关联的业务链路径信息;Finding service chain path information associated with the related information according to the related information;
根据所述业务链路径信息确定返回的所述用户报文的下一跳路径。Determining, according to the service chain path information, a next hop path of the returned user packet.
在本发明的一个可选实施例中,所述查询信息包括业务链路径信息为关联信息时,所述关联信息包括:源网络之间互连的协议IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或一种以上信息。In an optional embodiment of the present invention, when the query information includes the service chain path information as the association information, the association information includes: a protocol IP address, a destination IP address, a source port, and a target that are interconnected between the source networks. One or more kinds of information in the port and service chain path information.
在本发明的一个可选实施例中,所述在得到的所述用户报文中增加所述查询信息包括:In an optional embodiment of the present invention, the adding the query information to the obtained user packet includes:
在所述用户报文中插入自定义头域;Inserting a custom header field in the user message;
在所述自定义头域中增加所述查询信息。The query information is added in the custom header field.
在本发明的一个可选实施例中,根据下一跳路径对所述用户报文进行转发包括:In an optional embodiment of the present invention, forwarding the user packet according to the next hop path includes:
当下一跳路径对应的是除返回所述用户报文的目标业务能力节点以外的另一目标业务能力节点时,将所述用户报文至该另一目标业务能力节点。When the next hop path corresponds to another target service capability node other than the target service capability node that returns the user message, the user message is sent to the other target service capability node.
在本发明的一个可选实施例中,所述报文转发方法还包括:In an optional embodiment of the present invention, the packet forwarding method further includes:
当下一跳路径对应的是另一业务链代理装置时,将所述用户报文中的所述查询信息删除,并将所述用户报文封装包含所述业务链路径信息的业务链头部后发给该另一业务链代理装置。When the next hop path corresponds to another service chain proxy device, the query information in the user packet is deleted, and the user packet encapsulates the service chain header of the service chain path information. Send to the other service chain proxy device.
本发明实施例还提供了一种业务链代理装置,所述业务链代理装置包括:The embodiment of the invention further provides a service chain proxy device, where the service chain proxy device comprises:
接收模块,设置为接收带有业务链路径信息的报文; a receiving module, configured to receive a message with service chain path information;
处理模块,设置为对接收的所述报文处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;a processing module, configured to process the received packet to obtain a user packet, and add query information for finding a next hop path in the obtained user packet;
传递模块,设置为将增加了查询信息的所述用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;a delivery module, configured to send the user message with the added query information to the current target service capability node, and receive the user message returned by the target service capability node;
管理模块,设置为从返回的所述目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径,并根据下一跳路径对返回的所述用户报文进行转发。The management module is configured to obtain the query information from the returned user message returned by the returned target service capability node, find the next hop path according to the query information, and return the returned location according to the next hop path. The user message is forwarded.
在本发明的一个可选实施例中,所述处理模块包括第一提取子模块、第一添加子模块、第二提取子模块、第二添加子模块,In an optional embodiment of the present invention, the processing module includes a first extraction submodule, a first addition submodule, a second extraction submodule, and a second addition submodule.
所述第一提取子模块设置为,所述查询信息包括业务链路径信息时,提取所述报文中的业务链路径信息;The first extraction sub-module is configured to: when the query information includes service chain path information, extract service chain path information in the packet;
所述第一添加子模块设置为,将所述第一提取子模块提取的所述业务链路径信息加入所述处理后得到的所述用户报文;The first adding sub-module is configured to add the service chain path information extracted by the first extraction sub-module to the user message obtained after the processing;
所述包括第二提取子模块设置为,所述查询信息包括与业务链路径信息关联的关联信息时,提取所述报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储;The second extraction sub-module is configured to: when the query information includes the association information associated with the service chain path information, extract the service chain path information in the packet and the associated information associated with the service chain path information. Associated storage;
所述第二添加子模块设置为,将第二提取子模块关联存储的将所述关联信息加入所述用户报文。The second adding sub-module is configured to add the association information to the user packet by associating and storing the second extraction sub-module.
在本发明的一个可选实施例中,所述管理模块包括第一获取子模块、第一确定子模块、第二获取子模块、关联查询子模块、第二确定子模块;In an optional embodiment of the present invention, the management module includes a first obtaining submodule, a first determining submodule, a second obtaining submodule, an associated query submodule, and a second determining submodule;
所述第一获取子模块设置为,所述查询信息包括业务链路径信息时,;从所述目标业务能力节点返回的用户报文中提取所述业务链路径信息;The first obtaining sub-module is configured to: when the query information includes service chain path information, extract the service chain path information from a user message returned by the target service capability node;
所述第一确定子模块设置为,根据第一获取子模块提取的所述业务链路径信息确定所述用户报文的下一跳路径;The first determining sub-module is configured to determine a next hop path of the user packet according to the service chain path information extracted by the first acquiring sub-module;
所述第二获取子模块设置为,The second obtaining submodule is configured to
所述查询信息包括业务链路径信息为关联信息时,设置为从所述目标业务能力节点返回的用户报文中提取所述关联信息; When the query information includes the service chain path information as the association information, the query information is set to extract the association information from the user message returned by the target service capability node;
所述关联查询子模块设置为,根据提取的所述关联信息查找到与之关联的业务链路径信息;The association query sub-module is configured to find the service chain path information associated with the extracted association information according to the extracted association information;
所述第二确定子模块设置为,根据所述业务链路径信息确定所述用户报文的下一跳路径。The second determining submodule is configured to determine a next hop path of the user packet according to the service chain path information.
在本发明的一个可选实施例中,所述查询信息包括业务链路径信息为关联信息时,所述关联信息包括:源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或一种以上信息。In an optional embodiment of the present invention, when the query information includes the service chain path information as the association information, the association information includes: a source IP address, a destination IP address, a source port, a target port, and a service chain path information. One or more kinds of information.
在本发明的一个可选实施例中,所述业务链代理装置还包括插入模块,设置为在得到的所述用户报文中插入自定义头域;所述处理模块是设置为在所述用户报文中的所述自定义头域中增加所述查询信息。In an optional embodiment of the present invention, the service chain proxy device further includes an inserting module, configured to insert a custom header field in the obtained user message; the processing module is configured to be in the user The query information is added to the custom header field in the message.
在本发明的一个可选实施例中,所述管理模块是设置为,从返回的所述目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径;In an optional embodiment of the present invention, the management module is configured to: obtain the query information from a user message returned by the returned target service capability node, and search for the query information according to the query information. One-hop path
当下一跳路径对应的是除返回所述用户报文的目标业务能力节点以外的另一目标业务能力节点时,将所述用户报文至该另一目标业务能力节点。When the next hop path corresponds to another target service capability node other than the target service capability node that returns the user message, the user message is sent to the other target service capability node.
在本发明的一个可选实施例中,所述管理模块是设置为,从返回的所述目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径;In an optional embodiment of the present invention, the management module is configured to: obtain the query information from a user message returned by the returned target service capability node, and search for the query information according to the query information. One-hop path
当下一跳路径对应的是另一业务链代理装置时,将所述用户报文中的所述查询信息删除,并将所述用户报文封装包含所述业务链路径信息的业务链头部后发给该另一业务链代理装置。When the next hop path corresponds to another service chain proxy device, the query information in the user packet is deleted, and the user packet encapsulates the service chain header of the service chain path information. Send to the other service chain proxy device.
本发明实施例还提供了一种代理设备,包括如上所述的业务链代理装置。An embodiment of the present invention further provides a proxy device, including the service chain proxy device as described above.
与相关技术相比,本发明实施例提供的技术方案,包括:业务链代理装置接收带有业务链路径信息的报文;对接收的报文处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;将增加了查询信息的所述用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;从返回的用户报文中获取查询信息,根据查询信息查找到下一跳路径,并根据下一跳路径对返回的用户报文进行转发。也即本发 明实施例中的业务链代理装置用户报文中增加用于查找下一跳路径的查询信息后才将其发给相应的业务功能节点,这样即使业务功能节点对该报文中的原始IP、端口进行修改,业务链代理装置仍能根据该报文中的查询信息准确获取到下一跳路径信息,实现了报文的准确转发。Compared with the related art, the technical solution provided by the embodiment of the present invention includes: the service chain proxy device receives the packet with the service link path information; after receiving the received packet, the user packet is obtained, and the obtained user packet is obtained. The query information for finding the next hop path is added; the user message with the added query information is sent to the current target service capability node, and the user message returned after the target service capability node is processed is received; The query information is obtained in the user packet, and the next hop path is found according to the query information, and the returned user packet is forwarded according to the next hop path. This is the hair In the service chain proxy device user packet in the embodiment, the query information for finding the next hop path is added to the corresponding service function node, so that even if the service function node has the original IP in the packet, After the port is modified, the service chain proxy device can accurately obtain the next hop path information according to the query information in the packet, and implement accurate packet forwarding.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为相关技术中网络业务流向示意图;1 is a schematic diagram of a network traffic flow in a related art;
图2为引入业务链后网络业务流向示意图;2 is a schematic diagram of network traffic flow after the introduction of a service chain;
图3为引入业务链代理后网络业务流向示意图;3 is a schematic diagram of network traffic flow after the introduction of a service chain proxy;
图4为本发明实施例一提供的报文转发方法流程示意图;4 is a schematic flowchart of a packet forwarding method according to Embodiment 1 of the present invention;
图5为本发明实施例二提供的业务链代理装置结构示意图;FIG. 5 is a schematic structural diagram of a service chain proxy device according to Embodiment 2 of the present invention; FIG.
图6为图5中处理模块的一种结构示意图;6 is a schematic structural view of the processing module of FIG. 5;
图7为图5中处理模块的另一种结构示意图;7 is another schematic structural view of the processing module of FIG. 5;
图8为图5中管理模块的一种结构示意图;8 is a schematic structural view of the management module of FIG. 5;
图9为图5中管理模块的另一种结构示意图;9 is another schematic structural diagram of the management module of FIG. 5;
图10为本发明实施例三提供的报文转发方法流程示意图一;10 is a schematic flowchart 1 of a packet forwarding method according to Embodiment 3 of the present invention;
图11为本发明实施例三提供的报文转发方法流程示意图二;FIG. 11 is a second schematic flowchart of a packet forwarding method according to Embodiment 3 of the present invention;
图12为本发明实施例三提供的报文转发方法流程示意图三。FIG. 12 is a third schematic flowchart of a packet forwarding method according to Embodiment 3 of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明实施例中的业务链代理装置在用户报文中增加用于查找下一跳路径的查询信息后,才将其发给对应的业务能力节点;接收到目标业务能力节点对该用户报文处理后返回的用户报文后,根据之前在该用户报文中添加的查询信息即可查找到下一跳路径,并根据下一跳路径对用户报文进行后续的转发。这样即使业务功能节点对该报文中的原始IP、端口进行修改,业务链 代理装置仍能根据该报文中的查询信息准确获取到下一跳路径信息,实现了报文的准确转发。下面结合附图对本发明实施例作说明。The service chain proxy device in the embodiment of the present invention adds the query information for finding the next hop path to the corresponding service capability node, and receives the target service capability node for the user packet. After the user packet is returned, the next hop path can be found according to the query information added in the user packet, and the user packet is forwarded according to the next hop path. In this way, even if the service function node modifies the original IP address and port in the packet, the service chain The proxy device can still accurately obtain the next hop path information according to the query information in the packet, and implement accurate packet forwarding. The embodiments of the present invention will be described below with reference to the accompanying drawings.
实施例一:Embodiment 1:
请参见图4所示,本实施例中提供的报文转发方法包括:Referring to FIG. 4, the packet forwarding method provided in this embodiment includes:
步骤401:业务链代理装置接收带有业务链路径信息的报文;该报文来自SGi/Gi侧的网关,或来自上一跳节点,可以包括:HTTP的URL请求报文等;Step 401: The service chain proxy device receives the packet with the service chain path information; the packet is from the gateway on the SGi/Gi side, or from the previous hop node, and may include: an HTTP URL request message, etc.;
步骤402:业务链代理装置对接收的报文进行处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;Step 402: The service chain proxy device processes the received packet to obtain a user packet, and adds query information for finding a next hop path to the obtained user packet.
该步骤中的用户报文包括业务链代理装置将接收到的报文的业务链路径的头部等传输层信息去掉处理得到的用户报文;The user message in the step includes the user message obtained by removing the transport layer information, such as the header of the service chain path of the received message, by the service chain proxy device;
该步骤中增加的查询信息可以用于后续查找该报文的下一跳路径,该查询信息在报文中设置的方式和/或位置只要满足业务功能节点不会对其进行修改即可;例如可以设置的方式包括:在用户报文中插入自定义头域,然后在该自定义头域中增加查询信息;The query information added in this step may be used to search for the next hop path of the packet, and the manner and/or location of the query information set in the packet may not be modified as long as the service function node is satisfied; for example; The method that can be set includes: inserting a custom header field in the user message, and then adding query information in the custom header field;
步骤403:业务链代理装置将增加了查询信息的用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;Step 403: The service chain proxy device sends the user packet with the added query information to the current target service capability node, and receives the user packet returned by the target service capability node.
该步骤中当前的目标业务能力节点包括业务链代理装置接收到网关的该报文后,从该报文的业务链路径确定下一跳对应的业务能力节点;The current target service capability node in the step includes the service chain proxy device receiving the packet of the gateway, and determining the service capability node corresponding to the next hop from the service chain path of the packet;
步骤404:业务链代理装置从返回的用户报文中获取之前所添加的查询信息,根据查询信息查找到下一跳路径,并根据下一跳路径对返回的用户报文进行转发。Step 404: The service chain proxy device obtains the previously added query information from the returned user packet, searches for the next hop path according to the query information, and forwards the returned user packet according to the next hop path.
本实施例中业务链代理装置在用户报文中所添加的信息可以用于查询该报文的业务链路径信息,该查询信息可以包括报文自身的业务链路径信息,根据该业务链路径信息必然能正确的查找到下一跳路径信息;该查询信息也可以包括业务链路径信息关联的关联信息,此处的关联信息包括与报文的业务链路径信息一一对应的关联信息,也即根据该关联信息可以查找到报文的业务链路径信息的任意信息;根据实际需要,查询信息包括业务链路径信息 为关联信息时,该关联信息可包括源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或多种,只要能查找到报文的业务链路径信息即可。可选的,该关联信息包括源IP地址、目标IP地址、源端口、目标端口、业务链路径信息。In this embodiment, the information added by the service chain proxy device in the user packet may be used to query the service chain path information of the packet, and the query information may include the service chain path information of the packet itself, according to the service chain path information. The information of the next hop path may be correctly found; the query information may also include the association information associated with the service chain path information, where the association information includes association information corresponding to the service chain path information of the packet, that is, According to the association information, any information of the service chain path information of the packet can be found; according to actual needs, the query information includes the service chain path information. When the information is associated, the association information may include one or more of a source IP address, a destination IP address, a source port, a destination port, and a service chain path information, as long as the service chain path information of the packet can be found. Optionally, the association information includes a source IP address, a destination IP address, a source port, a target port, and a service chain path information.
需要说明的是,业务链路径信息可以包括:业务链路径标识(SPI,Service Path Id)、业务路径位置(SI,Service Index)。It should be noted that the service chain path information may include: a service path identifier (SPI), and a service path location (SI, Service Index).
可选的,当查询信息包括业务链路径信息时,业务链代理装置在用户报文中增加查询信息包括:Optionally, when the query information includes the service chain path information, the service chain proxy device adds the query information to the user packet, including:
业务链代理装置提取网关发送的报文中的业务链路径信息,本发明实施例可从该报文的业务链路径的头部提取;The service chain proxy device extracts the service chain path information in the packet sent by the gateway, and the embodiment of the present invention may extract the header of the service chain path of the packet;
业务链代理装置将业务链路径信息加入用户报文;本发明实施例可在用户报文中插入自定义头域,该自定义头域位置可设置在用户报文的尾部,然后在该自定义头域中加入获取的业务链路径信息即可;由于该自定义头域不会被业务功能节点修改,因此可保证后续获取到的业务链路径信息的准确性。The service chain proxy device adds the service chain path information to the user packet. The embodiment of the present invention can insert a custom header field in the user packet, and the custom header field location can be set at the end of the user packet, and then the customization is performed. The obtained service chain path information can be added to the header field; since the custom header field is not modified by the service function node, the accuracy of the subsequently obtained service chain path information can be ensured.
可选的,当查询信息包括与业务链路径信息关联的关联信息,业务链代理装置在用户报文中增加查询信息包括:Optionally, when the query information includes the association information associated with the service chain path information, the service chain proxy device adds the query information to the user packet, including:
业务链代理装置提取报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储;例如、从该报文的业务链路径头部中提取业务链路径信息,然后从该解析得到的用户报文中提取出源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或多种作为关联信息;The service chain proxy device extracts service chain path information in the packet and association information associated with the service chain path information, and stores the service chain path information from the service chain path header of the packet, and then One or more of the source IP address, the destination IP address, the source port, the target port, and the service chain path information are extracted as the associated information in the parsed user packet;
业务链代理装置将关联信息加入用户报文;本发明实施例,可在用户报文中插入自定义头域,该自定义头域位置可以设置在用户报文的尾部,然后在该自定义头域中加入获取的关联信息即可;由于该自定义头域不会被业务功能节点修改,因此可保证后续获取到的关联信息就是报文的原始信息,进而可根据该原始信息获取到报文业务链路径信息,根据获取的业务链路径信息确定出下一跳。The service chain proxy device adds the association information to the user packet. In the embodiment of the present invention, a custom header field can be inserted in the user packet, and the custom header field location can be set at the end of the user packet, and then in the custom header. The associated information is added to the domain. The customized header field is not modified by the service function node. Therefore, the associated information obtained is the original information of the packet, and the packet can be obtained according to the original information. The service chain path information determines the next hop according to the obtained service chain path information.
对应的,当查询信息为业务链路径信息时,根据业务链代理装置从业务功能节点反馈的用户报文中提取查询信息并查找到下一跳路径包括: Correspondingly, when the query information is the service chain path information, extracting the query information from the user message fed back from the service function node by the service chain proxy device and finding the next hop path includes:
从目标业务能力节点返回的用户报文中提取业务链路径信息,本发明实施例可从用户报文中的自定义头域中获取该业务链路径信息;The service chain path information is extracted from the user packet returned by the target service capability node, and the service chain path information is obtained from the custom header field in the user packet in the embodiment of the present invention;
根据业务链路径信息确定用户报文的下一跳路径。The next hop path of the user packet is determined according to the service chain path information.
对应的,当查询信息为关联信息时,根据业务链代理装置从业务功能节点反馈的用户报文中提取查询信息并查找到下一跳路径包括:Correspondingly, when the query information is the associated information, extracting the query information from the user message fed back from the service function node by the service chain proxy device and finding the next hop path includes:
从目标业务能力节点返回的用户报文中提取关联信息,本发明实施例可从用户报文中的自定义头域中获取该业务链路径信息;Extracting the association information from the user packet returned by the target service capability node, where the embodiment of the present invention can obtain the service chain path information from the custom header field in the user packet;
根据提取的关联信息查找到与之关联的业务链路径信息,也即该报文的业务链路径信息;Searching, according to the extracted association information, the service chain path information associated with the service, that is, the service chain path information of the packet;
根据查找到的业务链路径信息确定用户报文的下一跳路径。The next hop path of the user packet is determined according to the found service chain path information.
需要说明的是,根据关联信息查找业务链路径信息为本领域技术人员的惯用技术手段,在此不做赘述。It should be noted that searching for the service chain path information according to the related information is a common technical means of those skilled in the art, and details are not described herein.
本实施例中,业务链代理装置根据查找到的业务链路径信息确定用户报文的下一跳路径对应的对象可能是另一目标业务能力节点,也可能是另一业务链代理装置。当下一跳路径对应的是另一目标业务能力节点时,业务链代理装置可直接将该用户报文发至该另一目标业务能力节点;业务链代理装置发送报文时,可根据实际情况对该用户报文中的查询信息进行更新后外发,也可在不需要更新时直接外发,例如当增加中的查询信息为源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或多种且根据该查询信息能正确查找到下一跳时。当下一跳路径对应的是另一业务链代理装置时,业务链代理装置将用户报文中添加的查询信息删除,也即将用户报文中的自定义头域删除,并将用户报文封装包含该报文的业务链路径信息的业务链头部后发给该另一业务链代理装置。另一业务链代理装置收到该报文后重复上述图4所示的步骤。In this embodiment, the service chain proxy device determines, according to the found service chain path information, that the object corresponding to the next hop path of the user packet may be another target service capability node, or may be another service chain proxy device. When the next hop path corresponds to another target service capability node, the service chain proxy device may directly send the user packet to the other target service capability node; when the service chain proxy device sends the packet, the service chain proxy device may The query information in the user packet is updated and sent out, or can be directly sent out when the update is not needed, for example, when the added query information is the source IP address, the destination IP address, the source port, the target port, and the service chain path. One or more of the information and the next hop can be correctly found according to the query information. When the next hop path corresponds to another service chain proxy device, the service chain proxy device deletes the query information added in the user packet, and also deletes the custom header field in the user packet, and encapsulates the user packet. The service chain header of the service chain path information of the message is sent to the other service chain proxy device. The other service chain proxy device repeats the steps shown in FIG. 4 after receiving the message.
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述报文转发方法。 The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the message forwarding method.
实施例二:Embodiment 2:
本实施例提供了一种业务链代理装置,其可设置于代理设备中,请参见图5所示,待业务链代理装置包括:The embodiment provides a service chain proxy device, which can be disposed in the proxy device. As shown in FIG. 5, the service chain proxy device includes:
接收模块1,设置为接收带有业务链路径信息的报文;该报文可以包括来自SGi/Gi侧的网关,或来自上一跳节点,可为HTTP的URL请求报文等;The receiving module 1 is configured to receive a message with service chain path information; the message may include a gateway from the SGi/Gi side, or a message from a previous hop node, which may be a HTTP URL request message;
处理模块2,设置为对接收的报文处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;此处的用户报文可以包括业务链代理装置将接收到的报文的业务链路径的头部等传输层信息去掉得到的用户报文;The processing module 2 is configured to process the received packet to obtain the user packet, and add the query information for finding the next hop path in the obtained user packet; where the user packet may include the service chain proxy device Transmitting the obtained user message by the transport layer information such as the header of the service chain path of the received message;
此处增加的查询信息可以用于后续查找该报文的下一跳路径,该查询信息在报文中设置的方式和/或位置只要满足业务功能节点不会对其进行修改即可;例如查询信息的设置方式可为在用户报文中插入自定义头域,然后在该自定义头域中增加查询信息;因此本实施例中的业务链代理装置可包括插入模块5,设置为在得到的用户报文中插入自定义头域;处理模块2是设置为,在用户报文中的自定义头域中增加查询信息;The query information added here may be used to search for the next hop path of the packet, and the manner and/or location of the query information set in the packet may not be modified as long as the service function node is satisfied; for example, the query The information may be set by inserting a custom header field in the user message, and then adding the query information in the custom header field; therefore, the service chain proxy device in this embodiment may include the insertion module 5, and is set to be obtained. A custom header field is inserted in the user packet; the processing module 2 is configured to add the query information in the custom header field in the user packet;
传递模块3,设置为将增加了查询信息的用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;此处的当前的目标业务能力节点包括业务链代理装置接收到网关的该报文后,从该报文的业务链路径确定下一跳对应的业务能力节点;The delivery module 3 is configured to send the user message with the added query information to the current target service capability node, and receive the user message returned by the target service capability node; where the current target service capability node includes the service chain After receiving the packet of the gateway, the proxy device determines a service capability node corresponding to the next hop from the service chain path of the packet;
管理模块4,设置为从返回的目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据查询信息查找到下一跳路径,并根据下一跳路径对返回的用户报文进行转发。The management module 4 is configured to obtain the query information from the user message returned by the returned target service capability node, find the next hop path according to the query information, and perform the returned user message according to the next hop path. Forward.
本实施例中处理模块2所添加的信息可以用于查询该报文的业务链路径信息,该查询信息可以包括报文自身的业务链路径信息,根据该业务链路径信息必然能正确的查找到下一跳路径信息;该查询信息也可以包括业务链路径信息关联的关联信息,此处的关联信息包括与报文的业务链路径信息一一对应的关联信息,也即根据该关联信息可以查找到报文的业务链路径信息的任意信息;根据实际需要,查询信息可以包括业务链路径信息为关联信息时, 该关联信息可包括源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或多种,只要能查找到报文的业务链路径信息即可。可选该关联信息包括源IP地址、目标IP地址、源端口、目标端口、业务链路径信息。The information added by the processing module 2 in this embodiment may be used to query the service chain path information of the packet, and the query information may include the service chain path information of the packet itself, and the path information according to the service chain may be correctly found. The next hop path information; the query information may also include association information associated with the service chain path information, where the association information includes association information corresponding to the service chain path information of the packet, that is, the association information may be searched according to the association information. Any information about the service chain path information of the packet; according to the actual needs, the query information may include the service chain path information as the associated information. The association information may include one or more of a source IP address, a destination IP address, a source port, a destination port, and a service chain path information, as long as the service chain path information of the packet can be found. Optionally, the association information includes a source IP address, a destination IP address, a source port, a target port, and a service chain path information.
对应的,请参见图6所示,在一种示例中处理模块2包括第一提取子模块21和第一添加子模块22,查询信息为业务链路径信息;第一提取子模块21设置为提取报文中的业务链路径信息,本发明实施例可从该报文的业务链路径的头部提取;第一添加子模块22设置为将业务链路径信息加入用户报文,本发明实施例可在用户报文中插入自定义头域,该自定义头域位置可设置在用户报文的尾部,然后在该自定义头域中加入获取的业务链路径信息即可;由于该自定义头域不会被业务功能节点修改,因此可保证后续获取到的业务链路径信息的准确性。Correspondingly, referring to FIG. 6, in one example, the processing module 2 includes a first extraction sub-module 21 and a first addition sub-module 22, the query information is service chain path information; and the first extraction sub-module 21 is set to extract The service chain path information in the packet may be extracted from the header of the service chain path of the packet in the embodiment of the present invention. The first adding sub-module 22 is configured to add the service chain path information to the user packet, which may be used in the embodiment of the present invention. Insert a custom header field in the user packet. The custom header field location can be set at the end of the user packet, and then the obtained service chain path information can be added in the custom header field; It will not be modified by the service function node, so the accuracy of the subsequently obtained service chain path information can be guaranteed.
请参见图7所示,在另一示例中,处理模块2包括第二提取子模块23、第二添加子模块24,查询信息为与业务链路径信息关联的关联信息;第二提取子模块23设置为提取报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储,取报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储;例如、从该报文的业务链路径头部中提取业务链路径信息,然后从该解析得到的用户报文中提取出源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或多种作为关联信息;第二添加子模块24设置为,将关联信息加入用户报文,本发明实施例可在用户报文中插入自定义头域,该自定义头域位置可设置在用户报文的尾部,然后在该自定义头域中加入获取的关联信息即可;由于该自定义头域不会被业务功能节点修改,因此可保证后续获取到的关联信息是报文的原始信息,进而可根据该原始信息获取到报文业务链路径信息,根据获取的业务链路径信息确定出下一跳。Referring to FIG. 7, in another example, the processing module 2 includes a second extraction submodule 23 and a second addition submodule 24, the query information is associated information associated with the service chain path information; and the second extraction submodule 23 The service chain path information and the associated information associated with the service chain path information are associated and stored, and the service chain path information in the message and the associated information associated with the service chain path information are associated and stored. For example, the service chain path information is extracted from the service chain path header of the packet, and then the source IP address, the destination IP address, the source port, the target port, and the service chain path information are extracted from the user packet obtained by the parsing. One or more of the information is associated; the second adding sub-module 24 is configured to add the associated information to the user packet, and the embodiment of the present invention can insert a custom header field in the user packet, where the custom header field can be Set at the end of the user message, and then add the acquired association information in the custom header field; since the custom header field will not be repaired by the service function node , Thus guaranteeing the subsequent original information is acquired related information packet, and further information can be obtained based on the original message to the service chain path information, determine the next hop path according to the service information acquisition chain.
对应的,请参见图8所示,在一种示例中,管理模块4包括第一获取子模块41和第一确定子模块42,查询信息为业务链路径信息;第一获取子模块41设置为,从目标业务能力节点返回的用户报文中提取业务链路径信息,本发明实施例可从用户报文中的自定义头域中获取该业务链路径信息;第一 确定子模块42设置为根据业务链路径信息确定用户报文的下一跳路径;Correspondingly, as shown in FIG. 8 , in an example, the management module 4 includes a first obtaining submodule 41 and a first determining submodule 42 , and the query information is service chain path information; and the first obtaining submodule 41 is configured to The service chain path information is extracted from the user packet returned by the target service capability node, and the service chain path information is obtained from the custom header field in the user packet in the embodiment of the present invention; The determining submodule 42 is configured to determine a next hop path of the user packet according to the service chain path information;
请参见图9所示,在另一示例中,管理模块4包括第二获取子模块43、关联查询子模块44和第二确定子模块45,查询信息包括业务链路径信息为关联信息。第二获取子模块43设置为从目标业务能力节点返回的用户报文中提取关联信息,本发明实施例可从用户报文中的自定义头域中获取该业务链路径信息;关联查询子模块44设置为根据关联信息查找到与之关联的业务链路径信息,也即该报文的业务链路径信息;第二确定子模块45设置为根据业务链路径信息确定用户报文的下一跳路径。Referring to FIG. 9, in another example, the management module 4 includes a second obtaining sub-module 43, an associated query sub-module 44, and a second determining sub-module 45. The query information includes service chain path information as associated information. The second obtaining sub-module 43 is configured to extract the related information from the user message returned by the target service capability node, and the embodiment of the present invention may obtain the service chain path information from the custom header field in the user packet; the associated query sub-module And the second determining sub-module 45 is configured to determine the next hop path of the user packet according to the service chain path information, where the service chain path information, that is, the service chain path information of the packet, is set according to the association information. .
本实施例中,管理模块4根据查找到的业务链路径信息确定用户报文的下一跳路径对应的对象可能是另一目标业务能力节点,也可能是另一业务链代理装置。当下一跳路径对应的是另一目标业务能力节点时,管理模块4发送报文时,可根据实际情况对该用户报文中的查询信息进行更新后外发,也可在不需要更新时直接外发,例如当增加中的查询信息为源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或多种且根据该查询信息能正确查找到下一跳时。当下一跳路径对应的是另一业务链代理装置时,管理模块4将用户报文中添加的查询信息删除,也即将用户报文中的自定义头域删除,并将用户报文封装包含该报文的业务链路径信息的业务链头部后发给该另一业务链代理装置。In this embodiment, the management module 4 determines, according to the found service chain path information, that the object corresponding to the next hop path of the user packet may be another target service capability node, or may be another service chain proxy device. When the next hop path corresponds to another target service capability node, when the management module 4 sends the message, the query information in the user message may be updated and sent out according to the actual situation, or may be directly updated when the message is not needed. Outgoing, for example, when the added query information is one or more of a source IP address, a destination IP address, a source port, a target port, and a service chain path information, and the next hop can be correctly found according to the query information. When the next hop path corresponds to another service chain proxy device, the management module 4 deletes the query information added in the user packet, and also deletes the custom header field in the user packet, and encapsulates the user packet. The service chain header of the service chain path information of the message is sent to the other service chain proxy device.
实施例三:Embodiment 3:
为了更好的理解本发明实施例,下面结合几种示例对本发明实施例做进一步示例说明。For a better understanding of the embodiments of the present invention, the embodiments of the present invention are further illustrated by the following examples.
示例一Example one
请参见图10所示,该示例中的查询信息为原IP地址信息,可包括源IP地址、目的IP地址中的至少一个;其处理过程包括:Referring to FIG. 10, the query information in the example is original IP address information, and may include at least one of a source IP address and a destination IP address. The processing process includes:
步骤1001:业务链代理装置收到头部带有业务链路径信息的报文,从头部取出业务链路径信息记录下来;Step 1001: The service chain proxy device receives the packet with the service chain path information in the header, and takes the service chain path information from the head and records it;
步骤1002:业务链代理装置去除报文的业务链路径的头部得到用户报文,在用户报文中插入自定义头域,头域中的信息是报文的IP地址信息; Step 1002: The service chain proxy device removes the header of the service chain path of the packet to obtain a user packet, and inserts a custom header field in the user packet, where the information in the header field is the IP address information of the packet.
步骤1003:业务链代理装置把修改后的用户报文发给对应的目标业务功能节点;Step 1003: The service chain proxy device sends the modified user packet to the corresponding target service function node.
步骤1004:目标业务功能节点处理完报文后,修改了用户报文的IP地址,把用户报文发送给业务链代理装置;Step 1004: After processing the packet, the target service function node modifies the IP address of the user packet, and sends the user packet to the service chain proxy device.
步骤1005:业务链代理装置收到用户报文后,从用户报文的头域中取出用户报文原始的IP地址,进而关联查找到原始报文的业务链路径信息,找到业务路径的下一跳节点,假设为下一条节点为另一业务链代理装置;Step 1005: After receiving the user packet, the service chain proxy device extracts the original IP address of the user packet from the header field of the user packet, and then searches for the service chain path information of the original packet to find the next service path. Jumping node, assuming that the next node is another service chain proxy device;
步骤1006:业务链代理装置将用户报文中的自定义头域去除,封装业务链头部信息,把报文发往业务链路径的下一个业务链代理装置。Step 1006: The service chain proxy device removes the custom header field in the user packet, encapsulates the service chain header information, and sends the packet to the next service chain proxy device in the service chain path.
示例二Example two
请参见图11所示,该示例中的查询信息为原端口信息,可包括源端口、目的端口中的至少一个;其处理过程包括:Referring to FIG. 11 , the query information in the example is original port information, and may include at least one of a source port and a destination port. The processing process includes:
步骤1101:业务链代理装置收到头部带有业务链路径信息的报文,从头部取出业务链路径信息记录下来;Step 1101: The service chain proxy device receives the packet with the service chain path information in the header, and records the service chain path information from the header.
步骤1102:业务链代理装置去除报文的业务链路径的头部得到用户报文,在用户报文插入自定义头域,头域中的信息是报文的端口信息;Step 1102: The service chain proxy device removes the header of the service chain path of the packet to obtain the user packet, and inserts the user packet into the custom header field, where the information in the header field is the port information of the packet.
步骤1103:业务链代理装置把修改后的用户报文发给对应的目标业务功能节点;Step 1103: The service chain proxy device sends the modified user packet to the corresponding target service function node.
步骤1104:目标业务功能节点处理完报文后,修改了用户报文的端口,把用户报文发送给业务链代理装置Step 1104: After processing the packet, the target service function node modifies the port of the user packet, and sends the user packet to the service chain proxy device.
步骤1105:业务链代理装置收到用户报文后,从用户报文的头域中取出用户报文原始的端口,进而关联查找到原始报文的业务链路径信息,找到业务路径的下一跳节点,假设为下一条节点为另一业务功能节点;Step 1105: After receiving the user packet, the service chain proxy device extracts the original port of the user packet from the header field of the user packet, and then searches for the service chain path information of the original packet to find the next hop of the service path. Node, assuming that the next node is another service function node;
步骤1106:业务链代理装置直接将该用户报文发往业务链路径的下一个业务功能节点。Step 1106: The service chain proxy device directly sends the user packet to the next service function node of the service chain path.
示例三Example three
请参见图12所示,该示例中的查询信息包括报文的业务路路径信息;其 处理过程包括:Referring to FIG. 12, the query information in the example includes service path information of the packet; The process includes:
步骤1201:业务链代理装置收到头部带有业务链路径信息的报文,从头部取出业务链路径信息记录下来;Step 1201: The service chain proxy device receives the packet with the service chain path information in the header, and takes the service chain path information from the header and records it;
步骤1202:业务链代理装置去除报文的业务链路径的头部得到用户报文,在用户报文插入自定义头域,头域中的信息是业务链路径信息;Step 1202: The service chain proxy device removes the header of the service chain path of the packet to obtain the user packet, and inserts the user packet into the custom header field, where the information in the header field is the service chain path information.
步骤1203:业务链代理装置把修改后的用户报文发给对应的目标业务功能节点;Step 1203: The service chain proxy device sends the modified user packet to the corresponding target service function node.
步骤1204:目标业务功能节点处理完报文后,把用户报文发送给业务链代理装置;Step 1204: After processing the packet, the target service function node sends the user packet to the service chain proxy device.
步骤1205:业务链代理装置收到用户报文后,从用户报文的头域中取出用户报文原始的业务链路径信息,进而找到业务路径的下一跳节点,假设为下一条节点为另一业务功能节点;Step 1205: After receiving the user packet, the service chain proxy device extracts the original service chain path information of the user packet from the header field of the user packet, and then finds the next hop node of the service path, and assumes that the next node is another. a business function node;
步骤1206:业务链代理装置直接将该用户报文发往业务链路径的下一个业务功能节点。Step 1206: The service chain proxy device directly sends the user packet to the next service function node of the service chain path.
以上内容是本发明可选实施方式,是对本发明实施例的说明,不能认定本发明的实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is an alternative embodiment of the present invention, and is an illustration of the embodiments of the present invention, and it is not considered that the implementation of the present invention is limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. The invention is not limited to any specific form of combination of hardware and software.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请 而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present application are as above, the content described is only for facilitating understanding of the present application. The embodiments adopted are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案实现了报文的准确转发。 The foregoing technical solution implements accurate forwarding of the message.

Claims (15)

  1. 一种报文转发方法,所述报文转发方法包括:A packet forwarding method, where the packet forwarding method includes:
    业务链代理装置接收带有业务链路径信息的报文;The service chain proxy device receives the message with the service chain path information;
    所述业务链代理装置对接收的所述报文处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;The service chain proxy device processes the received packet to obtain a user packet, and adds query information for finding a next hop path to the obtained user packet;
    所述业务链代理装置将增加了查询信息的所述用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;The service chain proxy device sends the user message with the added query information to the current target service capability node, and receives the user message returned after the target service capability node processes;
    所述业务链代理装置从返回的所述用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径,并根据下一跳路径对返回的所述用户报文进行转发。The service chain proxy device obtains the query information from the returned user packet, searches for the next hop path according to the query information, and forwards the returned user packet according to the next hop path.
  2. 如权利要求1所述的报文转发方法,其中,所述查询信息包括业务链路径信息或与业务链路径信息关联的关联信息;The packet forwarding method according to claim 1, wherein the query information comprises service chain path information or associated information associated with service chain path information;
    所述在所述用户报文中增加查询信息包括:Adding the query information to the user packet includes:
    所述查询信息包括业务链路径信息时,所述业务链代理装置提取所述报文中的业务链路径信息;所述业务链代理装置将所述业务链路径信息加入所述处理后得到的所述用户报文;When the query information includes the service chain path information, the service chain proxy device extracts the service chain path information in the packet; the service chain proxy device adds the service chain path information to the processed office. User message;
    所述查询信息包括与业务链路径信息关联的关联信息时,所述业务链代理装置提取所述报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储;所述业务链代理装置将所述关联存储的关联信息加入所述处理后得到的所述用户报文。When the query information includes the association information associated with the service chain path information, the service chain proxy device extracts the service chain path information in the packet and the associated information associated with the service chain path information for association storage; The service chain proxy device adds the associated information stored in the association to the user packet obtained after the processing.
  3. 如权利要求2所述的报文转发方法,其中,所述查询信息包括业务链路径信息时,所述根据所述查询信息查找到下一跳路径包括:The packet forwarding method according to claim 2, wherein when the query information includes the service chain path information, the finding the next hop path according to the query information includes:
    从所述目标业务能力节点返回的用户报文中提取所述业务链路径信息;Extracting the service chain path information from a user packet returned by the target service capability node;
    根据所述业务链路径信息确定返回的所述用户报文的下一跳路径;Determining, according to the service chain path information, a next hop path of the returned user packet;
    当所述查询信息为业务链路径信息为关联信息时,所述根据所述查询信息查找到下一跳路径包括:When the query information is the service chain path information, the searching for the next hop path according to the query information includes:
    从所述目标业务能力节点返回的用户报文中提取所述关联信息; Extracting the association information from a user message returned by the target service capability node;
    根据所述关联信息查找到与之关联的业务链路径信息;Finding service chain path information associated with the related information according to the related information;
    根据所述业务链路径信息确定返回的所述用户报文的下一跳路径。Determining, according to the service chain path information, a next hop path of the returned user packet.
  4. 如权利要求2所述的报文转发方法,其中,所述查询信息包括业务链路径信息为关联信息时,所述关联信息包括:源网络之间互连的协议IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或一种以上信息。The packet forwarding method according to claim 2, wherein when the query information includes the service chain path information as association information, the association information includes: a protocol IP address, a destination IP address, and a source interconnected between the source networks. One or more pieces of information in the port, destination port, and service chain path information.
  5. 如权利要求1-4任一项所述的报文转发方法,其中,所述在得到的所述用户报文中增加所述查询信息包括:The message forwarding method according to any one of claims 1 to 4, wherein the adding the query information to the obtained user message comprises:
    在所述用户报文中插入自定义头域;Inserting a custom header field in the user message;
    在所述自定义头域中增加所述查询信息。The query information is added in the custom header field.
  6. 如权利要求1-4任一项所述的报文转发方法,其中,根据下一跳路径对所述用户报文进行转发包括:The packet forwarding method according to any one of claims 1 to 4, wherein forwarding the user packet according to the next hop path comprises:
    当下一跳路径对应的是除返回所述用户报文的目标业务能力节点以外的另一目标业务能力节点时,将所述用户报文至该另一目标业务能力节点。When the next hop path corresponds to another target service capability node other than the target service capability node that returns the user message, the user message is sent to the other target service capability node.
  7. 如权利要求1-4任一项所述的报文转发方法,所述报文转发方法还包括:The packet forwarding method according to any one of claims 1 to 4, wherein the packet forwarding method further comprises:
    当下一跳路径对应的是另一业务链代理装置时,将所述用户报文中的所述查询信息删除,并将所述用户报文封装包含所述业务链路径信息的业务链头部后发给该另一业务链代理装置。When the next hop path corresponds to another service chain proxy device, the query information in the user packet is deleted, and the user packet encapsulates the service chain header of the service chain path information. Send to the other service chain proxy device.
  8. 一种业务链代理装置,所述业务链代理装置包括:A service chain proxy device, the service chain proxy device comprising:
    接收模块,设置为接收带有业务链路径信息的报文;a receiving module, configured to receive a message with service chain path information;
    处理模块,设置为对接收的所述报文处理后得到用户报文,在得到的用户报文中增加用于查找下一跳路径的查询信息;a processing module, configured to process the received packet to obtain a user packet, and add query information for finding a next hop path in the obtained user packet;
    传递模块,设置为将增加了查询信息的所述用户报文发给当前的目标业务能力节点,接收该目标业务能力节点处理后返回的用户报文;a delivery module, configured to send the user message with the added query information to the current target service capability node, and receive the user message returned by the target service capability node;
    管理模块,设置为从返回的所述目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径,并根据下一跳路径对返回的所述用户报文进行转发。 The management module is configured to obtain the query information from the returned user message returned by the returned target service capability node, find the next hop path according to the query information, and return the returned location according to the next hop path. The user message is forwarded.
  9. 如权利要求8所述的业务链代理装置,其中,所述处理模块包括第一提取子模块、第一添加子模块、第二提取子模块、第二添加子模块,The service chain proxy device according to claim 8, wherein the processing module comprises a first extraction submodule, a first addition submodule, a second extraction submodule, and a second addition submodule.
    所述第一提取子模块设置为,所述查询信息包括业务链路径信息时,提取所述报文中的业务链路径信息;The first extraction sub-module is configured to: when the query information includes service chain path information, extract service chain path information in the packet;
    所述第一添加子模块设置为,将所述第一提取子模块提取的所述业务链路径信息加入所述处理后得到的所述用户报文;The first adding sub-module is configured to add the service chain path information extracted by the first extraction sub-module to the user message obtained after the processing;
    所述包括第二提取子模块设置为,所述查询信息包括与业务链路径信息关联的关联信息时,提取所述报文中的业务链路径信息以及与该业务链路径信息关联的关联信息进行关联存储;The second extraction sub-module is configured to: when the query information includes the association information associated with the service chain path information, extract the service chain path information in the packet and the associated information associated with the service chain path information. Associated storage;
    所述第二添加子模块设置为,将第二提取子模块关联存储的将所述关联信息加入所述用户报文。The second adding sub-module is configured to add the association information to the user packet by associating and storing the second extraction sub-module.
  10. 如权利要求9所述的业务链代理装置,其中,所述管理模块包括第一获取子模块、第一确定子模块、第二获取子模块、关联查询子模块、第二确定子模块;The service chain proxy device according to claim 9, wherein the management module comprises a first obtaining submodule, a first determining submodule, a second obtaining submodule, an associated query submodule, and a second determining submodule;
    所述第一获取子模块设置为,所述查询信息包括业务链路径信息时,;从所述目标业务能力节点返回的用户报文中提取所述业务链路径信息;The first obtaining sub-module is configured to: when the query information includes service chain path information, extract the service chain path information from a user message returned by the target service capability node;
    所述第一确定子模块设置为,根据第一获取子模块提取的所述业务链路径信息确定所述用户报文的下一跳路径;The first determining sub-module is configured to determine a next hop path of the user packet according to the service chain path information extracted by the first acquiring sub-module;
    所述第二获取子模块设置为,The second obtaining submodule is configured to
    所述查询信息包括业务链路径信息为关联信息时,设置为从所述目标业务能力节点返回的用户报文中提取所述关联信息;When the query information includes the service chain path information as the association information, the query information is set to extract the association information from the user message returned by the target service capability node;
    所述关联查询子模块设置为,根据提取的所述关联信息查找到与之关联的业务链路径信息;The association query sub-module is configured to find the service chain path information associated with the extracted association information according to the extracted association information;
    所述第二确定子模块设置为,根据所述业务链路径信息确定所述用户报文的下一跳路径。The second determining submodule is configured to determine a next hop path of the user packet according to the service chain path information.
  11. 如权利要求9所述的业务链代理装置,其中,所述查询信息包括业务链路径信息为关联信息时,所述关联信息包括:源IP地址、目标IP地址、源端口、目标端口、业务链路径信息中的一种或一种以上信息。 The service chain proxy device according to claim 9, wherein when the query information includes service chain path information as association information, the association information includes: a source IP address, a destination IP address, a source port, a target port, and a service chain. One or more pieces of information in the path information.
  12. 如权利要求9-11任一项所述的业务链代理装置,其中,所述业务链代理装置还包括插入模块,设置为在得到的所述用户报文中插入自定义头域;所述处理模块是设置为在所述用户报文中的所述自定义头域中增加所述查询信息。The service chain proxy device according to any one of claims 9-11, wherein the service chain proxy device further comprises an insertion module configured to insert a custom header field in the obtained user message; The module is configured to add the query information in the custom header field in the user message.
  13. 如权利要求9-11任一项所述的业务链代理装置,其中,所述管理模块是设置为,从返回的所述目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径;The service chain proxy device according to any one of claims 9 to 11, wherein the management module is configured to obtain the query information from a user message returned by the returned target service capability node. Finding a next hop path according to the query information;
    当下一跳路径对应的是除返回所述用户报文的目标业务能力节点以外的另一目标业务能力节点时,将所述用户报文至该另一目标业务能力节点。When the next hop path corresponds to another target service capability node other than the target service capability node that returns the user message, the user message is sent to the other target service capability node.
  14. 如权利要求9-11任一项所述的业务链代理装置,其中,所述管理模块是设置为,从返回的所述目标业务能力节点处理后返回的用户报文中获取所述查询信息,根据所述查询信息查找到下一跳路径;The service chain proxy device according to any one of claims 9 to 11, wherein the management module is configured to obtain the query information from a user message returned by the returned target service capability node. Finding a next hop path according to the query information;
    当下一跳路径对应的是另一业务链代理装置时,将所述用户报文中的所述查询信息删除,并将所述用户报文封装包含所述业务链路径信息的业务链头部后发给该另一业务链代理装置。When the next hop path corresponds to another service chain proxy device, the query information in the user packet is deleted, and the user packet encapsulates the service chain header of the service chain path information. Send to the other service chain proxy device.
  15. 一种代理设备,所述代理设备包括如权利要求9-14任一项所述的业务链代理装置。 A proxy device comprising the service chain proxy device of any of claims 9-14.
PCT/CN2016/094658 2015-09-29 2016-08-11 Message forwarding method, service chain proxy apparatus and proxy device WO2017054578A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510631944.3A CN106559333A (en) 2015-09-29 2015-09-29 Message forwarding method, business chain agent apparatus and agent equipment
CN201510631944.3 2015-09-29

Publications (1)

Publication Number Publication Date
WO2017054578A1 true WO2017054578A1 (en) 2017-04-06

Family

ID=58416856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/094658 WO2017054578A1 (en) 2015-09-29 2016-08-11 Message forwarding method, service chain proxy apparatus and proxy device

Country Status (2)

Country Link
CN (1) CN106559333A (en)
WO (1) WO2017054578A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109661037A (en) * 2017-10-12 2019-04-19 中兴通讯股份有限公司 A kind of SFC message forwarding method and equipment
WO2022081229A1 (en) * 2020-10-13 2022-04-21 Microsoft Technology Licensing, Llc Dynamic forward proxy chaining

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088821B (en) * 2017-06-14 2022-02-25 中兴通讯股份有限公司 Message transmission method, service chain system and computer readable storage medium
CN109150720B (en) * 2017-06-19 2022-04-12 中兴通讯股份有限公司 Service chain message forwarding method, device, equipment and computer readable storage medium
CN112565044B (en) * 2019-09-10 2023-08-25 华为技术有限公司 Message processing method and device
CN112583719A (en) * 2019-09-29 2021-03-30 中兴通讯股份有限公司 Service forwarding method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878126A (en) * 2005-06-07 2006-12-13 华为技术有限公司 Method for realizing signalling proxy in communication network
EP2400693A2 (en) * 2010-06-24 2011-12-28 Aryaka Networks, Inc. Routing and service performance management in an application acceleration environment
CN104022949A (en) * 2013-02-28 2014-09-03 中兴通讯股份有限公司 Method and device for long-time storage of cross-domain path information
CN104158749A (en) * 2013-05-14 2014-11-19 华为技术有限公司 Message forwarding method in software defined networking, network equipment and software defined networking
CN104283891A (en) * 2014-10-27 2015-01-14 杭州华三通信技术有限公司 Method and device for access of service function node to service link network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878126A (en) * 2005-06-07 2006-12-13 华为技术有限公司 Method for realizing signalling proxy in communication network
EP2400693A2 (en) * 2010-06-24 2011-12-28 Aryaka Networks, Inc. Routing and service performance management in an application acceleration environment
CN104022949A (en) * 2013-02-28 2014-09-03 中兴通讯股份有限公司 Method and device for long-time storage of cross-domain path information
CN104158749A (en) * 2013-05-14 2014-11-19 华为技术有限公司 Message forwarding method in software defined networking, network equipment and software defined networking
CN104283891A (en) * 2014-10-27 2015-01-14 杭州华三通信技术有限公司 Method and device for access of service function node to service link network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109661037A (en) * 2017-10-12 2019-04-19 中兴通讯股份有限公司 A kind of SFC message forwarding method and equipment
CN109661037B (en) * 2017-10-12 2023-07-04 中兴通讯股份有限公司 SFC message forwarding method and device
WO2022081229A1 (en) * 2020-10-13 2022-04-21 Microsoft Technology Licensing, Llc Dynamic forward proxy chaining
US11637812B2 (en) 2020-10-13 2023-04-25 Microsoft Technology Licensing, Llc Dynamic forward proxy chaining

Also Published As

Publication number Publication date
CN106559333A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2017054578A1 (en) Message forwarding method, service chain proxy apparatus and proxy device
US9461907B2 (en) Data routing
KR101717000B1 (en) Method and device for packet handling
US6968393B1 (en) Method and apparatus for an attribute oriented routing update
US10084659B2 (en) Systems and methods for enhanced discovery
US20170104671A1 (en) Data packet processing method, service node, and delivery node
US10333840B2 (en) System and method for on-demand content exchange with adaptive naming in information-centric networks
CN102694830B (en) A kind of mthods, systems and devices realizing Web content and share
US10462052B2 (en) Method and apparatus for incremental deployment of information centric network
US9479607B2 (en) Content caching and delivering system with traffic of repetitively requested content reduced
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
US20160210366A1 (en) Method and apparatus for providing media resource
CN105991793B (en) The method and apparatus of message forwarding
CN111510476A (en) Communication method, communication apparatus, computer device, and computer-readable storage medium
US20160164952A1 (en) Systems and Methods For Information Centric Networking
CN103957207A (en) Conversation keeping method and device
US20210314406A1 (en) Communication Method and System under Micro-Service Architecture
CN111064729B (en) Message processing method and device, storage medium and electronic device
WO2017024818A1 (en) Method and device for processing data message
CN107612831B (en) Transmission method and device for data message of access source station
US20190318036A1 (en) Topic Based Publish and Parametric Subscribe Pattern
US11057470B2 (en) Communication device and communication method for processing meta data
CN112367251A (en) Forwarding information base table item detection method, detection equipment and network equipment
US20200128103A1 (en) Methods, network node and client device for acquisition and delivery of resources in a communications network
CN114401319B (en) Request processing method, device, server and storage medium

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: 16850202

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: 16850202

Country of ref document: EP

Kind code of ref document: A1