WO2017024818A1 - Method and device for processing data message - Google Patents

Method and device for processing data message Download PDF

Info

Publication number
WO2017024818A1
WO2017024818A1 PCT/CN2016/080538 CN2016080538W WO2017024818A1 WO 2017024818 A1 WO2017024818 A1 WO 2017024818A1 CN 2016080538 W CN2016080538 W CN 2016080538W WO 2017024818 A1 WO2017024818 A1 WO 2017024818A1
Authority
WO
WIPO (PCT)
Prior art keywords
context data
data
header
header type
enhanced
Prior art date
Application number
PCT/CN2016/080538
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 WO2017024818A1 publication Critical patent/WO2017024818A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present application relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for processing data messages.
  • SFC service function chain
  • SFF service function forwarder
  • SF service function
  • NSH Proxy Network Service Header Proxy
  • the Classifier is responsible for classifying the traffic, and according to the classification result, the network service header (NSH) is encapsulated in the traffic, that is, the service function path of the packet is determined on the Classifier, and the overlay layer is further encapsulated.
  • the SFF receives the packet, decapsulates the overlay layer, and parses the received packet carrying the NSH header, according to the information in the NSH header.
  • the SF is responsible for forwarding the packet to the corresponding SF.
  • the SF is responsible for performing the corresponding service function processing on the received packet.
  • the NSH header is further updated and the updated packet is forwarded to its SFF.
  • the corresponding transport layer encapsulation is searched according to the information in the NSH packet, and the NSH packet is encapsulated and the packet is forwarded to the next hop SFF.
  • the NSH Proxy mainly represents the SFF and interacts with the SF that does not perceive the NSH header.
  • the complete packet format sent from the Classifier after using the overlay technology of IPv4-GRE is shown in the outer packet of the original packet.
  • the classification rules and service function chain definitions of the SFC and the NSH are issued or locally configured by the SFC controller; from the data plane encapsulation, the entire NSH of the service function chain and the service is as shown in FIG. 3, Including Base Header, Service Path Header (Service Path) Header), context header (Context Header), and variable length optional context data; wherein the basic header mainly identifies the version number, length, context data type, and next protocol number; the core of the service path header identifies the entire service function
  • the service function path information of the chain including the service path identifier (Service Path ID) and the service index (Service Index), wherein the service path identifier is globally delivered, and the node confirms, according to the service path identifier and the service index, where the current packet should be forwarded.
  • the optional variable length Context Headers are used for optional carrying. Contextual information.
  • the context information refers to information shared between the classifier and the service function SF, between the SFs, between the service function SFs and the service function forwarder SFFs, and information that needs to be transmitted.
  • an extended definition is defined for a mandatory context data header that must carry 4 bytes.
  • extension definitions There are two main types of extension definitions: one is the mandatory context header extension definition for the data center scenario, as shown in Figure 6; the other is the mandatory context header extension definition for the mobile scenario, as shown in Figure 7.
  • a node receives an NSH packet carrying a context header, it does not know how to parse the context header. For example, it is not known whether to use the context header as the context data of the data center scene, or The context data of the moving scene is parsed, or it is parsed as context data in another scene. If the parsing error occurs, the context data information cannot be read correctly, causing the business process to fail.
  • This document provides a method and apparatus for processing data messages to enhance the recognition of context header types.
  • An embodiment of the present invention provides a method for processing a data packet, which is applied to a node supporting a service function chain, and the method includes:
  • the data packet is sent along the service forwarding path.
  • the enhanced context data header type includes any one of the following:
  • the context data header type of the data center scene the context data header type of the mobile scene, and the context data header type of the broadband network scenario.
  • the enhanced context data header type is configured according to network deployment conditions and/or context data header data information.
  • the enhanced context data header type is locally configured or sent by a centralized controller.
  • the data packet is composed of original data and a network service header, or is composed of original data, a network service header, and an overlay network packet header.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
  • the embodiment of the invention further provides a device for processing a data message, which is applied to a node supporting a service function chain, and the device includes:
  • the obtaining module is configured to: obtain an enhanced context data header type;
  • the enhanced context data header type includes any one of the following: a context data header type of the data center scene, a context data header type of the mobile scene, and a broadband network scenario.
  • the encapsulating module is configured to: encapsulate the enhanced context data header type in a network service header, and encapsulate the network service header in a data packet, where the data packet is composed of original data and a network service header. Or consisting of original data, network traffic headers, and overlay network headers;
  • the sending module is configured to: send the data packet along a service forwarding path.
  • the device further includes:
  • the configuration module is configured to: configure the enhanced context data header type according to network deployment conditions and/or context data header data information.
  • the obtaining module is further configured to: obtain the enhanced context data header type that is locally configured or sent by the centralized controller.
  • the embodiment of the present invention further provides a method for processing a data packet, which is applied to a node supporting a service function chain, and the method includes:
  • the method further includes:
  • the context data information and/or the enhanced context data header type are updated when it is determined that the context data information needs to be updated.
  • the method further includes: parsing the service forwarding path information in the data packet;
  • the method further includes:
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
  • the embodiment of the invention further provides a device for processing a data message, which is applied to a node supporting a service function chain, and the device includes:
  • the receiving module is configured to: receive a data packet carrying a network service header
  • a parsing module configured to: parse an enhanced context header class in the network traffic header type
  • the processing module is configured to: read context data information in the data packet according to the enhanced context data header type.
  • the device further includes:
  • the update module is configured to: update the context data information and/or the enhanced context data header type when it is determined that the context data information needs to be updated.
  • the parsing module is further configured to: parse the service forwarding path information in the data packet;
  • the processing module is further configured to: forward the data packet or the updated data packet according to the service forwarding path information.
  • the context data header type identifier is further added to enhance the further identification of the context data header on the node supporting the service chain.
  • FIG. 1 is a schematic diagram of an SFC technology architecture
  • FIG. 2 is a schematic diagram of a complete message structure sent from a Classifier component under SFC technology
  • NSH is a schematic diagram of an optional variable length context data header structure in an NSH
  • FIG. 6 is a schematic diagram of a mandatory context header extension definition of a data center scenario
  • FIG. 7 is a schematic diagram of a mandatory context data header extension definition of a mobile scenario
  • FIG. 8 is a flowchart of a method for processing a data message on a sending node side according to an embodiment of the present invention
  • FIG. 9 is a flowchart of a method for processing a data message on a receiving node side according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a message reference format for enhancing a context data header type in an NSH according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of processing a data packet based on a data center scenario according to Embodiment 1 of the present invention.
  • FIG. 12 is a schematic diagram of processing a data packet based on a mobile scenario according to Embodiment 2 of the present invention.
  • FIG. 13 is a schematic diagram of updating an enhanced context data header type on an intermediate node according to Embodiment 3 of the present invention.
  • FIG. 14 is a schematic diagram of an apparatus for processing a data message on a transmitting side according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of an apparatus for processing a data message on a receiving side according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for processing a data packet on a sending node side according to an embodiment of the present invention. As shown in FIG. 8 , the method is applied to a node supporting a service function chain, including:
  • Step 11 Obtain an enhanced context data header type.
  • Step 12 Encapsulating the enhanced context data header type in a network service header, and encapsulating the network service header in a data packet;
  • Step 13 Send the data packet along a service forwarding path.
  • the enhanced context data header type includes any one of the following: a context data header type of the data center scenario, a context data header type of the mobile scenario, and a context data header type of the broadband network scenario.
  • the enhanced context data header type is configured according to a network deployment situation and/or context data header data information, and may be locally configured; or may be delivered by a centralized controller;
  • the data packet is composed of the original data and the network service header, or is composed of the original data, the network service header, and the overlay network packet header, where the original data is included in the data packet before the encapsulation.
  • the included data; the overlay network header can be seen in Figure 2.
  • the part in front of the NSH is the overlay network header.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
  • FIG. 9 is a flowchart of a method for processing a data packet on a receiving node side according to an embodiment of the present invention. As shown in FIG. 9, the method includes:
  • Step 21 Receive a data packet carrying a network service header.
  • Step 22 Parsing an enhanced context data header type in the network service header
  • Step 23 Read context data information in the data packet according to the enhanced context data header type.
  • the method can be applied to nodes that support a business function chain.
  • the receiving node may update the context data information and/or the enhanced context data header type according to actual deployment conditions.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
  • FIG. 10 it is a packet reference format based on an NSH extended enhanced context data header type field in an embodiment of the present invention; wherein an E-MD-ty identifier is an Enhanced MD-type, that is, an enhanced context data header type field;
  • an E-MD-ty identifier is an Enhanced MD-type, that is, an enhanced context data header type field;
  • 4 bits are reserved in 8 bits (bits) of the MD-type to be applied to the embodiment of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the service function chain SFC1 in the data center can be SF2->SF5; SF1 and SF2 are connected to TOR (Top-of-Rack, set-top switch) 1/SFF1, and SF3 is connected to TOR2/SFF2. SF4 and SF5 are connected to TOR3/SFF3; that is, the service forwarding path experienced by the service function chain is SFP1: SFF1->SF2>SFF3->SF5.
  • the packet is sent to the data center gateway device.
  • the gateway device is used as the classifier in the service function chain technology to classify the packet.
  • the packet is forwarded to the service chain SFC1, that is, the corresponding service forwarding path is SFP1.
  • Can include:
  • Step 101 Classifier node classification finds that an enhanced context data header type is obtained, and the traffic needs to enter the data center for processing, so that information about the service forwarding path and context data header information belonging to the data center scenario are acquired to form an NSH header.
  • the NSH header is encapsulated in the original data packet and forwarded to the next hop node TOR1/SFF1 according to the service forwarding path.
  • Step 102 After receiving the packet, TOR1/SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field.
  • Information to determine whether there is context data information required by the TOR1/SFF1 node; if there is, the context data information is correctly read and used according to the enhanced context data header type field (for example, the first 16 bits of the mandatory context data header are interpreted as D/F/Source Node ID/Source Interface ID); if it needs to update the context data information after use, it is updated; if not, the context data information is not updated; TOR1/SFF1 forwards the message to the corresponding according to the service forwarding path information.
  • SF2 to handle;
  • Step 103 After receiving the packet, the SF2 correctly parses the context data information in the packet according to the enhanced context data header type field to determine whether there is context data information required by the SF2 node; if yes, according to the enhanced context data header The type field correctly reads the context data information and processes the corresponding service (for example, interpreting the fourth 16 bits of the mandatory context data header as A/Service Tag), and if necessary, updating the context data related information after processing; if not , the context data related information is not updated; then the message is forwarded to TOR1/SFF1;
  • the service for example, interpreting the fourth 16 bits of the mandatory context data header as A/Service Tag
  • Step 104 After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the TOR1/SFF1 node; if so, correctly read and use the context data information according to the enhanced context data header type field, and update if the context data information needs to be updated after use; if not , the context data information is not updated; the TOR1/SFF1 forwards the message to the next hop TOR3/SFF3 according to the service forwarding path information;
  • Step 105 After receiving the packet, the TOR3/SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field. Information to determine if there is a context required by the TOR3/SFF3 node Data information; if so, the context data information is correctly read and used according to the Enhanced Context Data Header Type field (for example, the first 16 bits of the mandatory context data header is interpreted as the D/F/Source Node ID/Source Interface ID) If the context data information needs to be updated after the use, the context data information is updated; if not, the context data information is not updated; the TOR3/SFF3 forwards the message to the corresponding SF5 for processing according to the service forwarding path information;
  • the TOR3/SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field.
  • Step 106 After receiving the packet, the SF5 correctly parses the context data information in the packet according to the enhanced context data header type field, and determines whether there is context data information required by the SF5 node; if yes, according to the enhanced context data header
  • the type field correctly reads the context data information and processes the corresponding service (for example, interpreting the fourth 16 bits of the mandatory context data header as A/Service Tag), and if necessary, updating the context data related information after processing; if not , the context data related information is not updated; then the message is forwarded to TOR3/SFF3;
  • Step 107 After receiving the packet, the TOR3/SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field. Information, to determine whether there is context data information required by the TOR3/SFF3 node; if there is, the context data information is correctly read and used according to the enhanced context data header type field, after use, the NSH header is stripped, and the message is based on The destination IP address in the original packet is forwarded.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the service function chain SFC2 in the mobile scenario may be SF2->SF5; wherein SF1 and SF2 are connected to SFF1, SF3 is connected to SFF2, and SF4 and SF5 are connected to SFF3; that is, the service experienced by the service function chain
  • the forwarding path is SFP2: SFF1->SF2>SFF3->SF5.
  • the packet arrives at the mobile network gateway device (P-GW), and the gateway device is used as a classifier in the service function chain technology to classify the packet and find that the packet is forwarded to the service chain SFC2, that is, the corresponding service forwarding path is SFP2.
  • the forwarding process of the packet may include:
  • Step 201 Classifier node classification finds that an enhanced context data header type is obtained, and the traffic needs to enter the mobile network data center for processing, so that information about the service forwarding path and context data header information belonging to the mobile scenario are obtained to form an NSH header.
  • the NSH header is encapsulated in the original data packet and forwarded to the next hop node SFF1 according to the service forwarding path.
  • Step 202 After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the SFF1 node; if so, correctly read and use the context data information according to the enhanced context data header type field (for example, interpret the first 16 bits of the mandatory context header as a Flow Cookie) If the context data information needs to be updated after the use, the update is performed; if not, the context data information is not updated; the SFF1 forwards the message to the corresponding SF2 for processing according to the service forwarding path information;
  • the enhanced context data header type field for example, interpret the first 16 bits of the mandatory context header as a Flow Cookie
  • Step 203 After receiving the packet, the SF2 correctly parses the context data information in the packet according to the enhanced context data header type field, and determines whether there is context data information required by the SF2 node; if yes, according to the enhanced context data header.
  • the type field correctly reads the context data information and processes the corresponding service (for example, interpreting the second 16 bits of the mandatory context data header as the TenTy/Tenant ID), and if necessary, updating the context data related information after processing; if not , the context data related information is not updated; then the message is forwarded to SFF1;
  • Step 204 After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determining whether there is context data information required by the SFF1 node; if so, correctly reading the context data information according to the enhanced context data header type field and using it, and updating if necessary to update the context data information after use; if not, then The context data information is not updated; the SFF1 forwards the packet to the next hop SFF3 according to the service forwarding path information;
  • Step 205 After receiving the packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the SFF3 node; if so, correctly read and use the context data information according to the enhanced context header type field (for example, interpret the first 16 bits of the mandatory context header as a Flow Cookie) If the context data information needs to be updated after the use, the update is performed; if not, the context data information is not updated; the SFF3 forwards the message to the corresponding SF5 for processing according to the service forwarding path information;
  • the enhanced context data header type field for example, interpret the first 16 bits of the mandatory context header as a Flow Cookie
  • Step 206 After receiving the packet, the SF5 correctly parses the context data information in the packet according to the enhanced context data header type field, and determines whether there is a context data packet required by the SF5 node. Interest; if there is, the context data information is correctly read according to the enhanced context data header type field and the corresponding service is processed (for example, the second 16 bits of the mandatory context data header is interpreted as TenTy/Tenant ID), after processing If it needs to update the context data related information, it is updated; if not, the context data related information is not updated; then the message is forwarded to SFF3;
  • Step 207 After receiving the packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the SFF3 node; if yes, read the context data information correctly according to the enhanced context data header type field and use it. After use, strip the NSH header and use the packet according to the original packet. The destination IP address is forwarded.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the service function chain SFC3 can be SF2->SF3->SF5; where SF1 and SF2 are connected to SFF1, which is a broadband network domain, and SF3 is connected to SFF2, SF4 and SF5 are connected to the SFF3, which is the data center network domain; that is, the service forwarding path experienced by the service function chain is SFP3: SFF1->SF2->SFF2->SF3->SFF3->SF5. On SFF2, reclassification occurs.
  • the subsequent new service forwarding path is SFP4: SFF1->SF2->SFF2->SF3->SFF3->SF4;
  • the packet is sent to the broadband network device (BNG).
  • BNG broadband network device
  • the gateway device is used as the classifier in the service function chain technology to classify the packet and finds that the packet is forwarded to the service chain SFC3, that is, the corresponding service forwarding path is SFP3.
  • the forwarding process can include:
  • Step 301 Classifier node classification finds that an enhanced context data header type is obtained, and the traffic needs to be processed into a broadband network for processing, so that information about the service forwarding path and context data header information belonging to the broadband network scenario are acquired to form an NSH header.
  • the NSH header is encapsulated in the original data packet and forwarded to the next hop node SFF1 according to the service forwarding path.
  • Step 302 After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field.
  • Step 303 After receiving the packet, the SF2 correctly parses the context data information in the packet according to the enhanced context data header type field into a broadband network scenario, and determines whether there is context data information required by the SF2 node; if yes, The context data information is correctly read according to the enhanced context data header type field and processed by the corresponding service, and updated if the context data related information needs to be updated after processing; if not, the context data related information is not updated; then the message is updated Forward to SFF1;
  • Step 304 After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determining whether there is context data information required by the SFF1 node; if so, correctly reading the context data information according to the enhanced context data header type field and using it, and updating if necessary to update the context data information after use; if not, then The context data information is not updated; the SFF1 forwards the packet to the next hop SFF2 according to the service forwarding path information;
  • Step 305 After receiving the packet, the SFF2 re-classifies the information, re-acquires the service forwarding path information SFP4, and the enhanced context data header type and context data header information in the data center scenario to form an NSH header, and the established NSH header. Encapsulated in the original data packet and forwarded to the next hop node SF3 according to the service forwarding path;
  • Step 306 After receiving the packet, the SF3 correctly parses the context data information in the packet according to the received enhanced context data header type field into a data center scenario, and determines whether there is context data information required by the SF2 node; If yes, the context data information is correctly read according to the enhanced context data header type field and the corresponding service is processed. If the context data related information needs to be updated after the processing, the context data related information is updated; if not, the context data related information is not updated; Forward the packet to SFF2.
  • Step 307 After receiving the packet, the SFF2 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determining whether there is context data information required by the SFF2 node; if so, correctly reading the context data information according to the enhanced context data header type field and Used to update the context data information if it needs to be updated after use; if not, the context data information is not updated; SFF2 forwards the message to the next hop SFF3 according to the service forwarding path information;
  • Step 308 After receiving the packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field.
  • Step 309 After receiving the message, the SF5 correctly parses the context data information in the packet according to the received enhanced context data header type field into a data center scenario, and determines whether there is context data information required by the SF5 node; If yes, the context data information is correctly read according to the enhanced context data header type field and the corresponding service is processed. If the context data related information needs to be updated after the processing, the context data related information is updated; if not, the context data related information is not updated; Forward the packet to SFF3.
  • Step 310 After receiving the data packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. , to determine whether there is context data information required by the SFF3 node; if there is, the context data information is correctly read and used according to the enhanced context data header type field, after use, the NSH header is stripped, and the message is based on the original message. The destination IP address is forwarded.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the intermediate node interprets the context data header information according to certain rules.
  • FIG. 14 is a schematic diagram of an apparatus for processing a data packet on a sending side according to an embodiment of the present invention. As shown in FIG. 14, the apparatus of the embodiment is applied to a node supporting a service function chain, including:
  • An acquisition module configured to: obtain an enhanced context data header type; the enhanced context
  • the data header type includes any one of the following: a context data header type of the data center scenario, a context data header type of the mobile scenario, and a context data header type of the broadband network scenario;
  • the encapsulating module is configured to: encapsulate the enhanced context data header type in a network service header, and encapsulate the network service header in a data packet;
  • the sending module is configured to: send the data packet along a service forwarding path.
  • the data packet may be composed of original data and a network service header, or may be composed of original data, a network service header, and an overlay network packet header.
  • the method may further include:
  • the configuration module is configured to: configure the enhanced context data header type according to network deployment conditions and/or context data header data information.
  • the obtaining module may be further configured to: acquire the enhanced context data header type that is locally configured or sent by the centralized controller.
  • Figure 15 is a schematic diagram of an apparatus for processing a data packet on a receiving side according to an embodiment of the present invention. As shown in Figure 15, the apparatus of the present embodiment is applied to a node supporting a service function chain, and may include:
  • the receiving module is configured to: receive a data packet carrying a network service header
  • a parsing module configured to: parse an enhanced context data header type in the network service header;
  • the processing module is configured to: read context data information in the data packet according to the enhanced context data header type.
  • the apparatus may further include:
  • the update module is configured to: update the context data information and/or the enhanced context data header type when it is determined that the context data information needs to be updated.
  • the parsing module may be further configured to: parse the service forwarding path information in the data packet;
  • the processing module may be further configured to: forward the data packet or the updated data packet according to the service forwarding path information.
  • the computer program can be implemented in a computer readable storage medium, the computer program being executed on a corresponding hardware platform (such as a system, device, device, device, etc.), when executed, including One or a combination of the steps of the method embodiments.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • an enhanced context data header type by using the solution of the embodiment of the present invention; encapsulating the enhanced context data header type in a network service header, and encapsulating the network service header in a data packet; The packet is sent along the service forwarding path.
  • a context data header type identifier is further added to enhance further identification of the context data header on the node supporting the service chain.

Abstract

A method for processing data message includes: obtaining an enhanced context data header type; encapsulating the enhanced context data header type into a network service header, and encapsulating the network service header into a data message; transmitting the data message along a service forwarding path.

Description

一种处理数据报文的方法及装置Method and device for processing data message 技术领域Technical field
本申请涉及但不限于通讯领域,特别是涉及一种处理数据报文的方法及装置。The present application relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for processing data messages.
背景技术Background technique
相关技术中提出了一种业务功能链(Service Function Chain,简称SFC)的技术,即把所有的业务整合,虚拟出Service overlay(业务覆盖)层,形成自己的服务拓扑,和底层网络解耦合,不再受到底层网络结构的限制,架构如图1所示。可以看出,SFC技术包括如下组件:分类器(Classifier),业务功能转发器(Service Function Forwarder,简称SFF),业务功能(Service Function,简称SF),网络业务头代理(Network Service Header Proxy,简称NSH Proxy)。其中,Classifier负责对流量进行分类,根据分类结果,对流量进行网络业务头(Network Service Header,简称NSH)的封装,即在Classifier上确定报文后续的业务功能路径,并进一步进行overlay层的封装和转发,通过overlay技术将报文转发到下一跳SFF,SFF收到报文,解封装overlay层,并对接收到的携带有NSH报文头的报文进行解析,根据NSH头中的信息,将报文转发给相应的SF处理;SF负责对接收到的报文进行相应的业务功能处理,处理完后,进一步更新NSH报文头并将更新后的报文转发给自己的SFF;SFF进一步根据NSH报文中的信息查找对应的传输层封装,对NSH报文进行overlay的封装,并将报文转发给下一跳SFF。NSH Proxy主要代表SFF,与不感知NSH报文头的SF进行交互。举例如下,对于使用IPv4-GRE(Generic Routing Encapsulation,通用路由封装)的overlay技术后从Classifier发送出来的完整报文格式如图2所示,即在原始报文(original packet)外层封装上了NSH头、IPv4-GRE头、L2头。A technology of a service function chain (SFC) is proposed in the related art, that is, all services are integrated, and a service overlay layer is virtualized to form a service topology and decoupled from the underlying network. No longer limited by the underlying network structure, the architecture is shown in Figure 1. It can be seen that the SFC technology includes the following components: a classifier, a service function forwarder (SFF), a service function (SF), and a network service header proxy (Network Service Header Proxy). NSH Proxy). The Classifier is responsible for classifying the traffic, and according to the classification result, the network service header (NSH) is encapsulated in the traffic, that is, the service function path of the packet is determined on the Classifier, and the overlay layer is further encapsulated. And forwarding, the packet is forwarded to the next hop SFF through the overlay technology, the SFF receives the packet, decapsulates the overlay layer, and parses the received packet carrying the NSH header, according to the information in the NSH header. The SF is responsible for forwarding the packet to the corresponding SF. The SF is responsible for performing the corresponding service function processing on the received packet. After the processing, the NSH header is further updated and the updated packet is forwarded to its SFF. Further, the corresponding transport layer encapsulation is searched according to the information in the NSH packet, and the NSH packet is encapsulated and the packet is forwarded to the next hop SFF. The NSH Proxy mainly represents the SFF and interacts with the SF that does not perceive the NSH header. For example, as shown in Figure 2, the complete packet format sent from the Classifier after using the overlay technology of IPv4-GRE (Generic Routing Encapsulation) is shown in the outer packet of the original packet. NSH header, IPv4-GRE header, L2 header.
从控制面来看,SFC的分类规则和业务功能链定义以及NSH由SFC控制器下发或者本地配置;从数据面封装来看,业务功能链的和业务相关的整个NSH如图3所示,包括基本头(Base Header),业务路径头(Service Path  Header),上下文数据头(Context Header),以及变长可选的上下文数据;其中,基本头主要标识版本号、长度、上下文数据类型以及下一个协议号;业务路径头最核心,标识整个业务功能链的业务功能路径信息,包括业务路径标识(Service Path ID)和业务索引(Service Index),其中,业务路径标识为全局下发,节点根据业务路径标识和业务索引确认当前报文应该转发到哪一个业务功能链以及哪一个业务功能去处理;强制上下文数据头(Mandatory Context Header)用于携带必须携带的上下文信息,可选的变长上下文数据头(Optional Variable Length Context Headers)用于可选携带的上下文信息。所谓上下文信息是指在分类器和业务功能SF之间、SFs之间、业务功能SFs和业务功能转发器SFFs之间分享的信息和需要传递的信息。From the control point of view, the classification rules and service function chain definitions of the SFC and the NSH are issued or locally configured by the SFC controller; from the data plane encapsulation, the entire NSH of the service function chain and the service is as shown in FIG. 3, Including Base Header, Service Path Header (Service Path) Header), context header (Context Header), and variable length optional context data; wherein the basic header mainly identifies the version number, length, context data type, and next protocol number; the core of the service path header identifies the entire service function The service function path information of the chain, including the service path identifier (Service Path ID) and the service index (Service Index), wherein the service path identifier is globally delivered, and the node confirms, according to the service path identifier and the service index, where the current packet should be forwarded. A service function chain and which service function to process; the mandatory context header (Mandatory Context Header) is used to carry the context information that must be carried. The optional variable length Context Headers are used for optional carrying. Contextual information. The context information refers to information shared between the classifier and the service function SF, between the SFs, between the service function SFs and the service function forwarder SFFs, and information that needs to be transmitted.
当前,IETF(Internet Engineering Task Force,互联网工程任务组)SFC工作组中,对于上下文数据头的定义包括两种:一种MD-type(Metadata(元数据)类型)=1(必选支持),此时NSH报文头中除了携带可选的变长上下文数据头,必须携带4字节的强制上下文数据头,报文格式如图3所示;另一种是MD-type(Metadata类型)=2(可选支持),此时NSH报文头中无需携带4字节的强制上下文数据头,报文格式如图4所示;无论是MD-type=1还是MD-type=2,其中,变长可选的上下文数据格式如图5所示。Currently, in the IETF (Internet Engineering Task Force) SFC working group, there are two definitions of context data headers: one MD-type (Metadata type) = 1 (required support), In this case, the NSH packet header must carry a 4-byte mandatory context data header in addition to the optional variable-length context data header. The packet format is as shown in Figure 3. The other is MD-type (Metadata type) = 2 (optional support), the NSH packet header does not need to carry a 4-byte mandatory context data header. The format of the packet is as shown in Figure 4; whether it is MD-type=1 or MD-type=2, where The variable length optional context data format is shown in Figure 5.
发明内容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.
当前IETF SFC工作组中,当MD-type=1时,对于必须携带4字节的强制上下文数据头进行了扩展定义。扩展定义主要有两种:一种是用于数据中心场景的强制上下文数据头扩展定义,如图6所示;一种是用于移动场景的强制上下文数据头扩展定义,如图7所示。但是,当节点收到携带有上下文数据头的NSH报文时,并不知道如何去解析这个上下文数据头,例如不知道是把这个上下文数据头当作数据中心场景的上下文数据去解析,还是当作移动场景的上下文数据去解析,抑或是当作别的场景下的上下文数据去解析。如果解析错误,则无法正确读取上下文数据信息,导致业务处理失败。 In the current IETF SFC working group, when MD-type=1, an extended definition is defined for a mandatory context data header that must carry 4 bytes. There are two main types of extension definitions: one is the mandatory context header extension definition for the data center scenario, as shown in Figure 6; the other is the mandatory context header extension definition for the mobile scenario, as shown in Figure 7. However, when a node receives an NSH packet carrying a context header, it does not know how to parse the context header. For example, it is not known whether to use the context header as the context data of the data center scene, or The context data of the moving scene is parsed, or it is parsed as context data in another scene. If the parsing error occurs, the context data information cannot be read correctly, causing the business process to fail.
本文提供一种处理数据报文的方法及装置,以增强上下文报文头类型识别度。This document provides a method and apparatus for processing data messages to enhance the recognition of context header types.
本发明实施例提供了一种处理数据报文的方法,应用于支持业务功能链的节点,该方法包括:An embodiment of the present invention provides a method for processing a data packet, which is applied to a node supporting a service function chain, and the method includes:
获取增强型上下文数据头类型;Get an enhanced context data header type;
将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中;Encapsulating the enhanced context data header type in a network service header, and encapsulating the network service header in a data packet;
将所述数据报文沿着业务转发路径进行发送。The data packet is sent along the service forwarding path.
可选地,所述增强型上下文数据头类型包括以下的任意一种:Optionally, the enhanced context data header type includes any one of the following:
数据中心场景的上下文数据头类型、移动场景的上下文数据头类型、宽带网络场景的上下文数据头类型。The context data header type of the data center scene, the context data header type of the mobile scene, and the context data header type of the broadband network scenario.
可选地,所述增强型上下文数据头类型是根据网络部署情况和/或上下文数据头数据信息进行配置的。Optionally, the enhanced context data header type is configured according to network deployment conditions and/or context data header data information.
可选地,所述增强型上下文数据头类型是本地配置的,或者是集中控制器下发的。Optionally, the enhanced context data header type is locally configured or sent by a centralized controller.
可选地,所述数据报文由原始数据和网络业务头组成,或者由原始数据、网络业务头和叠加网络报文头组成。Optionally, the data packet is composed of original data and a network service header, or is composed of original data, a network service header, and an overlay network packet header.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现该处理数据报文的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
本发明实施例还提供了一种处理数据报文的装置,应用于支持业务功能链的节点,该装置包括:The embodiment of the invention further provides a device for processing a data message, which is applied to a node supporting a service function chain, and the device includes:
获取模块,设置为:获取增强型上下文数据头类型;所述增强型上下文数据头类型包括以下的任意一种:数据中心场景的上下文数据头类型、移动场景的上下文数据头类型、宽带网络场景的上下文数据头类型;The obtaining module is configured to: obtain an enhanced context data header type; the enhanced context data header type includes any one of the following: a context data header type of the data center scene, a context data header type of the mobile scene, and a broadband network scenario. Context data header type;
封装模块,设置为:将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中,所述数据报文由原始数据和网络业务头组成,或者由原始数据、网络业务头和叠加网络报文头组成; The encapsulating module is configured to: encapsulate the enhanced context data header type in a network service header, and encapsulate the network service header in a data packet, where the data packet is composed of original data and a network service header. Or consisting of original data, network traffic headers, and overlay network headers;
发送模块,设置为:将所述数据报文沿着业务转发路径进行发送。The sending module is configured to: send the data packet along a service forwarding path.
可选地,该装置还包括:Optionally, the device further includes:
配置模块,设置为:根据网络部署情况和/或上下文数据头数据信息来配置所述增强型上下文数据头类型。The configuration module is configured to: configure the enhanced context data header type according to network deployment conditions and/or context data header data information.
可选地,所述获取模块还设置为:获取本地配置的或者集中控制器下发的所述增强型上下文数据头类型。Optionally, the obtaining module is further configured to: obtain the enhanced context data header type that is locally configured or sent by the centralized controller.
本发明实施例还提供了一种处理数据报文的方法,应用于支持业务功能链的节点,该方法包括:The embodiment of the present invention further provides a method for processing a data packet, which is applied to a node supporting a service function chain, and the method includes:
接收携带有网络业务头的数据报文;Receiving a data packet carrying a network service header;
解析所述网络业务头中的增强型上下文数据头类型;Parsing an enhanced context data header type in the network traffic header;
根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息。Reading context data information in the data message according to the enhanced context data header type.
可选地,所述根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息后,该方法还包括:Optionally, after the reading the context data information in the data packet according to the enhanced context data header type, the method further includes:
当判断需更新上下文数据信息时,对所述上下文数据信息和/或增强型上下文数据头类型进行更新。The context data information and/or the enhanced context data header type are updated when it is determined that the context data information needs to be updated.
可选地,所述接收携带有网络业务头的数据报文后,该方法还包括:解析所述数据报文中的业务转发路径信息;Optionally, after the receiving the data packet carrying the network service header, the method further includes: parsing the service forwarding path information in the data packet;
所述根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息后,该方法还包括:After the context data information in the data packet is read according to the enhanced context data header type, the method further includes:
根据所述业务转发路径信息转发所述数据报文或更新后的数据报文。And forwarding the data packet or the updated data packet according to the service forwarding path information.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现该处理数据报文的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
本发明实施例还提供了一种处理数据报文的装置,应用于支持业务功能链的节点,该装置包括:The embodiment of the invention further provides a device for processing a data message, which is applied to a node supporting a service function chain, and the device includes:
接收模块,设置为:接收携带有网络业务头的数据报文;The receiving module is configured to: receive a data packet carrying a network service header;
解析模块,设置为:解析所述网络业务头中的增强型上下文数据头类 型;a parsing module, configured to: parse an enhanced context header class in the network traffic header type;
处理模块,设置为:根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息。The processing module is configured to: read context data information in the data packet according to the enhanced context data header type.
可选地,该装置还包括:Optionally, the device further includes:
更新模块,设置为:当判断需更新上下文数据信息时,对所述上下文数据信息和/或增强型上下文数据头类型进行更新。The update module is configured to: update the context data information and/or the enhanced context data header type when it is determined that the context data information needs to be updated.
可选地,所述解析模块还设置为:解析所述数据报文中的业务转发路径信息;Optionally, the parsing module is further configured to: parse the service forwarding path information in the data packet;
所述处理模块还设置为:根据所述业务转发路径信息转发所述数据报文或更新后的数据报文。The processing module is further configured to: forward the data packet or the updated data packet according to the service forwarding path information.
通过本发明实施例,在上述SFC网络中,进一步增加上下文数据头类型标识,以增强支持业务链的节点上对上下文数据头的进一步识别。In the foregoing SFC network, the context data header type identifier is further added to enhance the further identification of the context data header on the node supporting the service chain.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是SFC技术架构的示意图;Figure 1 is a schematic diagram of an SFC technology architecture;
图2是SFC技术下从Classifier组件发送的完整报文结构的示意图;2 is a schematic diagram of a complete message structure sent from a Classifier component under SFC technology;
图3是SFC技术下数据面封装的MD-type=1的网络业务报文头NSH的示意图;3 is a schematic diagram of a network service packet header NSH of MD-type=1 encapsulated in a data plane under SFC technology;
图4是SFC技术下数据面封装的MD-type=2的网络业务报文头NSH的示意图;4 is a schematic diagram of a network service packet header NSH of MD-type=2 in a data plane encapsulation under SFC technology;
图5是NSH中可选的变长上下文数据头结构的示意图;5 is a schematic diagram of an optional variable length context data header structure in an NSH;
图6是数据中心场景的强制上下文数据头扩展定义的示意图;6 is a schematic diagram of a mandatory context header extension definition of a data center scenario;
图7是移动场景的强制上下文数据头扩展定义的示意图;7 is a schematic diagram of a mandatory context data header extension definition of a mobile scenario;
图8为本发明实施例的发送节点侧一种处理数据报文的方法的流程图;FIG. 8 is a flowchart of a method for processing a data message on a sending node side according to an embodiment of the present invention;
图9为本发明实施例的接收节点侧的一种处理数据报文的方法的流程图; FIG. 9 is a flowchart of a method for processing a data message on a receiving node side according to an embodiment of the present invention;
图10是本发明实施例的在NSH中增强上下文数据头类型的报文参考格式的示意图;10 is a schematic diagram of a message reference format for enhancing a context data header type in an NSH according to an embodiment of the present invention;
图11是本发明实施例一的基于数据中心场景下的处理数据报文的示意图;11 is a schematic diagram of processing a data packet based on a data center scenario according to Embodiment 1 of the present invention;
图12是本发明实施例二的基于移动场景下的处理数据报文的示意图;FIG. 12 is a schematic diagram of processing a data packet based on a mobile scenario according to Embodiment 2 of the present invention; FIG.
图13是本发明实施例三的在中间节点上更新增强型上下文数据头类型的示意图;13 is a schematic diagram of updating an enhanced context data header type on an intermediate node according to Embodiment 3 of the present invention;
图14为本发明实施例的发送侧的处理数据报文的装置的示意图;FIG. 14 is a schematic diagram of an apparatus for processing a data message on a transmitting side according to an embodiment of the present invention; FIG.
图15为本发明实施例的接收侧的处理数据报文的装置的示意图。FIG. 15 is a schematic diagram of an apparatus for processing a data message on a receiving side according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。Embodiments of the present invention will be described below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the various manners in the embodiments may be combined with each other without conflict.
图8为本发明实施例的发送节点侧一种处理数据报文的方法的流程图,如图8所示,所述方法应用于支持业务功能链的节点,包括:FIG. 8 is a flowchart of a method for processing a data packet on a sending node side according to an embodiment of the present invention. As shown in FIG. 8 , the method is applied to a node supporting a service function chain, including:
步骤11、获取增强型上下文数据头类型; Step 11. Obtain an enhanced context data header type.
步骤12、将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中;Step 12: Encapsulating the enhanced context data header type in a network service header, and encapsulating the network service header in a data packet;
步骤13、将所述数据报文沿着业务转发路径进行发送。Step 13: Send the data packet along a service forwarding path.
可选地,所述增强型上下文数据头类型包括以下任意一种:数据中心场景的上下文数据头类型、移动场景的上下文数据头类型、宽带网络场景的上下文数据头类型。Optionally, the enhanced context data header type includes any one of the following: a context data header type of the data center scenario, a context data header type of the mobile scenario, and a context data header type of the broadband network scenario.
可选地,所述增强型上下文数据头类型是根据网络部署情况和/或上下文数据头数据信息进行配置的,可以是本地配置的;或者,也可以是集中控制器下发的;Optionally, the enhanced context data header type is configured according to a network deployment situation and/or context data header data information, and may be locally configured; or may be delivered by a centralized controller;
可选地,所述数据报文由原始数据和网络业务头组成,或由原始数据、网络业务头和叠加网络报文头组成,原始数据是指在封装之前数据报文中已 经包含的数据;叠加网络报文头可以参见图2,NSH前面的部分就是叠加网络报文头。Optionally, the data packet is composed of the original data and the network service header, or is composed of the original data, the network service header, and the overlay network packet header, where the original data is included in the data packet before the encapsulation. The included data; the overlay network header can be seen in Figure 2. The part in front of the NSH is the overlay network header.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现该处理数据报文的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
图9为本发明实施例的接收节点侧的一种处理数据报文的方法的流程图,如图9所示,所述方法包括:FIG. 9 is a flowchart of a method for processing a data packet on a receiving node side according to an embodiment of the present invention. As shown in FIG. 9, the method includes:
步骤21、接收携带有网络业务头的数据报文;Step 21: Receive a data packet carrying a network service header.
步骤22、解析所述网络业务头中的增强型上下文数据头类型;Step 22: Parsing an enhanced context data header type in the network service header;
步骤23、根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息。Step 23: Read context data information in the data packet according to the enhanced context data header type.
所述方法可以应用于支持业务功能链的节点。The method can be applied to nodes that support a business function chain.
可选地,接收节点可以根据实际部署情况,更新上下文数据信息和/或增强型上下文数据头类型。Optionally, the receiving node may update the context data information and/or the enhanced context data header type according to actual deployment conditions.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现该处理数据报文的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for processing the data message being implemented when the computer executable instructions are executed.
如图10所示,是本发明实施例基于NSH扩展增强型上下文数据头类型字段的报文参考格式;其中,E-MD-ty标识Enhanced MD-type,即增强的上下文数据头类型字段;本参考格式中在MD-type的8bits(位)中保留了4bits应用于本发明实施例。As shown in FIG. 10, it is a packet reference format based on an NSH extended enhanced context data header type field in an embodiment of the present invention; wherein an E-MD-ty identifier is an Enhanced MD-type, that is, an enhanced context data header type field; In the reference format, 4 bits are reserved in 8 bits (bits) of the MD-type to be applied to the embodiment of the present invention.
实施例一:Embodiment 1:
如图11所示,数据中心内部的业务功能链SFC1可以为SF2->SF5;其中SF1和SF2连接至TOR(Top-of-Rack,机顶交换机)1/SFF1,SF3连接至TOR2/SFF2,SF4和SF5连接至TOR3/SFF3;即该业务功能链所经历的业务转发路径为SFP1:SFF1->SF2>SFF3->SF5。As shown in Figure 11, the service function chain SFC1 in the data center can be SF2->SF5; SF1 and SF2 are connected to TOR (Top-of-Rack, set-top switch) 1/SFF1, and SF3 is connected to TOR2/SFF2. SF4 and SF5 are connected to TOR3/SFF3; that is, the service forwarding path experienced by the service function chain is SFP1: SFF1->SF2>SFF3->SF5.
报文到达数据中心网关设备上,网关设备作为业务功能链技术中的Classifier,对报文进行分类,发现报文转发对应业务链SFC1,即相应的业务转发路径为SFP1,则报文的转发流程可包括: The packet is sent to the data center gateway device. The gateway device is used as the classifier in the service function chain technology to classify the packet. The packet is forwarded to the service chain SFC1, that is, the corresponding service forwarding path is SFP1. Can include:
步骤101:Classifier节点分类发现,获取增强型上下文数据头类型,该流量需要进入到数据中心进行处理,于是获取业务转发路径相关信息以及属于数据中心场景下的上下文数据头信息以组建NSH头,将所组建的NSH头封装在原始数据报文中,按照业务转发路径转发到下一跳节点TOR1/SFF1上;Step 101: Classifier node classification finds that an enhanced context data header type is obtained, and the traffic needs to enter the data center for processing, so that information about the service forwarding path and context data header information belonging to the data center scenario are acquired to form an NSH header. The NSH header is encapsulated in the original data packet and forwarded to the next hop node TOR1/SFF1 according to the service forwarding path.
步骤102:TOR1/SFF1收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有TOR1/SFF1节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并使用(比如,解读强制上下文数据头的第一个16bits为D/F/Source Node ID/Source Interface ID);使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;TOR1/SFF1根据业务转发路径信息,将报文转发到相应的SF2去处理;Step 102: After receiving the packet, TOR1/SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field. Information, to determine whether there is context data information required by the TOR1/SFF1 node; if there is, the context data information is correctly read and used according to the enhanced context data header type field (for example, the first 16 bits of the mandatory context data header are interpreted as D/F/Source Node ID/Source Interface ID); if it needs to update the context data information after use, it is updated; if not, the context data information is not updated; TOR1/SFF1 forwards the message to the corresponding according to the service forwarding path information. SF2 to handle;
步骤103:SF2收到报文后,根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SF2节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理(比如,解读强制上下文数据头的第四个16bits为A/Service Tag),处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给TOR1/SFF1;Step 103: After receiving the packet, the SF2 correctly parses the context data information in the packet according to the enhanced context data header type field to determine whether there is context data information required by the SF2 node; if yes, according to the enhanced context data header The type field correctly reads the context data information and processes the corresponding service (for example, interpreting the fourth 16 bits of the mandatory context data header as A/Service Tag), and if necessary, updating the context data related information after processing; if not , the context data related information is not updated; then the message is forwarded to TOR1/SFF1;
步骤104:SFF1收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有TOR1/SFF1节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用,使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;TOR1/SFF1根据业务转发路径信息,将报文转发到下一跳TOR3/SFF3去处理;Step 104: After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the TOR1/SFF1 node; if so, correctly read and use the context data information according to the enhanced context data header type field, and update if the context data information needs to be updated after use; if not , the context data information is not updated; the TOR1/SFF1 forwards the message to the next hop TOR3/SFF3 according to the service forwarding path information;
步骤105:TOR3/SFF3收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有TOR3/SFF3节点需要的上下文 数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用(比如,解读强制上下文数据头的第一个16bits为D/F/Source Node ID/Source Interface ID);使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;TOR3/SFF3根据业务转发路径信息,将报文转发到相应的SF5去处理;Step 105: After receiving the packet, the TOR3/SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field. Information to determine if there is a context required by the TOR3/SFF3 node Data information; if so, the context data information is correctly read and used according to the Enhanced Context Data Header Type field (for example, the first 16 bits of the mandatory context data header is interpreted as the D/F/Source Node ID/Source Interface ID) If the context data information needs to be updated after the use, the context data information is updated; if not, the context data information is not updated; the TOR3/SFF3 forwards the message to the corresponding SF5 for processing according to the service forwarding path information;
步骤106:SF5收到报文后,根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SF5节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理(比如,解读强制上下文数据头的第四个16bits为A/Service Tag),处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给TOR3/SFF3;Step 106: After receiving the packet, the SF5 correctly parses the context data information in the packet according to the enhanced context data header type field, and determines whether there is context data information required by the SF5 node; if yes, according to the enhanced context data header The type field correctly reads the context data information and processes the corresponding service (for example, interpreting the fourth 16 bits of the mandatory context data header as A/Service Tag), and if necessary, updating the context data related information after processing; if not , the context data related information is not updated; then the message is forwarded to TOR3/SFF3;
步骤107:TOR3/SFF3收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有TOR3/SFF3节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用,使用完后,剥离NSH头,将报文根据原始报文中的目的IP地址进行转发。Step 107: After receiving the packet, the TOR3/SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data in the packet according to the enhanced context data header type field. Information, to determine whether there is context data information required by the TOR3/SFF3 node; if there is, the context data information is correctly read and used according to the enhanced context data header type field, after use, the NSH header is stripped, and the message is based on The destination IP address in the original packet is forwarded.
实施例二:Embodiment 2:
如图12所示,移动场景下的业务功能链SFC2可以为SF2->SF5;其中SF1和SF2连接至SFF1,SF3连接至SFF2,SF4和SF5连接至SFF3;即该业务功能链所经历的业务转发路径为SFP2:SFF1->SF2>SFF3->SF5。As shown in FIG. 12, the service function chain SFC2 in the mobile scenario may be SF2->SF5; wherein SF1 and SF2 are connected to SFF1, SF3 is connected to SFF2, and SF4 and SF5 are connected to SFF3; that is, the service experienced by the service function chain The forwarding path is SFP2: SFF1->SF2>SFF3->SF5.
报文到达移动网络网关设备(P-GW)上,网关设备作为业务功能链技术中的Classifier,对报文进行分类,发现报文转发对应业务链SFC2,即相应的业务转发路径为SFP2,则报文的转发流程可包括:The packet arrives at the mobile network gateway device (P-GW), and the gateway device is used as a classifier in the service function chain technology to classify the packet and find that the packet is forwarded to the service chain SFC2, that is, the corresponding service forwarding path is SFP2. The forwarding process of the packet may include:
步骤201:Classifier节点分类发现,获取增强型上下文数据头类型,该流量需要进入到移动网络数据中心进行处理,于是获取业务转发路径相关信息以及属于移动场景下的上下文数据头信息以组建NSH头,将所组建的NSH头封装在原始数据报文中,按照业务转发路径转发到下一跳节点SFF1上; Step 201: Classifier node classification finds that an enhanced context data header type is obtained, and the traffic needs to enter the mobile network data center for processing, so that information about the service forwarding path and context data header information belonging to the mobile scenario are obtained to form an NSH header. The NSH header is encapsulated in the original data packet and forwarded to the next hop node SFF1 according to the service forwarding path.
步骤202:SFF1收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF1节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用(比如,解读强制上下文数据头的第一个16bits为Flow Cookie);使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;SFF1根据业务转发路径信息,将报文转发到相应的SF2去处理;Step 202: After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the SFF1 node; if so, correctly read and use the context data information according to the enhanced context data header type field (for example, interpret the first 16 bits of the mandatory context header as a Flow Cookie) If the context data information needs to be updated after the use, the update is performed; if not, the context data information is not updated; the SFF1 forwards the message to the corresponding SF2 for processing according to the service forwarding path information;
步骤203:SF2收到报文后,根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SF2节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理(比如,解读强制上下文数据头的第二个16bits为TenTy/Tenant ID),处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给SFF1;Step 203: After receiving the packet, the SF2 correctly parses the context data information in the packet according to the enhanced context data header type field, and determines whether there is context data information required by the SF2 node; if yes, according to the enhanced context data header. The type field correctly reads the context data information and processes the corresponding service (for example, interpreting the second 16 bits of the mandatory context data header as the TenTy/Tenant ID), and if necessary, updating the context data related information after processing; if not , the context data related information is not updated; then the message is forwarded to SFF1;
步骤204:SFF1收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF1节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用,使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;SFF1根据业务转发路径信息,将报文转发到下一跳SFF3去处理;Step 204: After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determining whether there is context data information required by the SFF1 node; if so, correctly reading the context data information according to the enhanced context data header type field and using it, and updating if necessary to update the context data information after use; if not, then The context data information is not updated; the SFF1 forwards the packet to the next hop SFF3 according to the service forwarding path information;
步骤205:SFF3收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF3节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用(比如,解读强制上下文数据头的第一个16bits为Flow Cookie);使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;SFF3根据业务转发路径信息,将报文转发到相应的SF5去处理;Step 205: After receiving the packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the SFF3 node; if so, correctly read and use the context data information according to the enhanced context header type field (for example, interpret the first 16 bits of the mandatory context header as a Flow Cookie) If the context data information needs to be updated after the use, the update is performed; if not, the context data information is not updated; the SFF3 forwards the message to the corresponding SF5 for processing according to the service forwarding path information;
步骤206:SF5收到报文后,根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SF5节点需要的上下文数据信 息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理(比如,解读强制上下文数据头的第二个16bits为TenTy/Tenant ID),处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给SFF3;Step 206: After receiving the packet, the SF5 correctly parses the context data information in the packet according to the enhanced context data header type field, and determines whether there is a context data packet required by the SF5 node. Interest; if there is, the context data information is correctly read according to the enhanced context data header type field and the corresponding service is processed (for example, the second 16 bits of the mandatory context data header is interpreted as TenTy/Tenant ID), after processing If it needs to update the context data related information, it is updated; if not, the context data related information is not updated; then the message is forwarded to SFF3;
步骤207:SFF3收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF3节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用,使用完后,剥离NSH头,将报文根据原始报文中的目的IP地址进行转发。Step 207: After receiving the packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determine whether there is context data information required by the SFF3 node; if yes, read the context data information correctly according to the enhanced context data header type field and use it. After use, strip the NSH header and use the packet according to the original packet. The destination IP address is forwarded.
实施例三:Embodiment 3:
如图13所示,对于需要经历宽带网络然后进入数据中心的数据流量,业务功能链SFC3可以为SF2->SF3->SF5;其中SF1和SF2连接至SFF1,是宽带网络域的,SF3连接至SFF2,SF4和SF5连接至SFF3,是数据中心网络域的;即,该业务功能链所经历的业务转发路径为SFP3:SFF1->SF2->SFF2->SF3->SFF3->SF5。在SFF2上,会发生重新分类,后续新的业务转发路径为SFP4:SFF1->SF2->SFF2->SF3->SFF3->SF4;As shown in Figure 13, for data traffic that needs to go through a broadband network and then enter the data center, the service function chain SFC3 can be SF2->SF3->SF5; where SF1 and SF2 are connected to SFF1, which is a broadband network domain, and SF3 is connected to SFF2, SF4 and SF5 are connected to the SFF3, which is the data center network domain; that is, the service forwarding path experienced by the service function chain is SFP3: SFF1->SF2->SFF2->SF3->SFF3->SF5. On SFF2, reclassification occurs. The subsequent new service forwarding path is SFP4: SFF1->SF2->SFF2->SF3->SFF3->SF4;
报文到达宽带网络设备(BNG)上,网关设备作为业务功能链技术中的Classifier,对报文进行分类,发现报文转发对应业务链SFC3,即相应的业务转发路径为SFP3,则报文的转发流程可包括:The packet is sent to the broadband network device (BNG). The gateway device is used as the classifier in the service function chain technology to classify the packet and finds that the packet is forwarded to the service chain SFC3, that is, the corresponding service forwarding path is SFP3. The forwarding process can include:
步骤301:Classifier节点分类发现,获取增强型上下文数据头类型,该流量需要进入到宽带网络中进行处理,于是获取业务转发路径相关信息以及属于宽带网络场景下的上下文数据头信息以组建NSH头,将所组建的NSH头封装在原始数据报文中,按照业务转发路径转发到下一跳节点SFF1上;Step 301: Classifier node classification finds that an enhanced context data header type is obtained, and the traffic needs to be processed into a broadband network for processing, so that information about the service forwarding path and context data header information belonging to the broadband network scenario are acquired to form an NSH header. The NSH header is encapsulated in the original data packet and forwarded to the next hop node SFF1 according to the service forwarding path.
步骤302:SFF1收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息为宽带网络场景下的,判断是否有SFF1节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用;使用完后如果需要更新上下文数据信息则更 新;如果没有,则不更新上下文数据信息;SFF1根据业务转发路径信息,将报文转发到相应的SF2去处理;Step 302: After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. In the broadband network scenario, it is determined whether there is context data information required by the SFF1 node; if yes, the context data information is correctly read and used according to the enhanced context data header type field; if the context data information needs to be updated after use More New; if not, the context data information is not updated; the SFF1 forwards the message to the corresponding SF2 for processing according to the service forwarding path information;
步骤303:SF2收到报文后,根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息为宽带网络场景下的,判断是否有SF2节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理,处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给SFF1;Step 303: After receiving the packet, the SF2 correctly parses the context data information in the packet according to the enhanced context data header type field into a broadband network scenario, and determines whether there is context data information required by the SF2 node; if yes, The context data information is correctly read according to the enhanced context data header type field and processed by the corresponding service, and updated if the context data related information needs to be updated after processing; if not, the context data related information is not updated; then the message is updated Forward to SFF1;
步骤304:SFF1收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF1节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用,使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;SFF1根据业务转发路径信息,将报文转发到下一跳SFF2去处理;Step 304: After receiving the packet, the SFF1 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determining whether there is context data information required by the SFF1 node; if so, correctly reading the context data information according to the enhanced context data header type field and using it, and updating if necessary to update the context data information after use; if not, then The context data information is not updated; the SFF1 forwards the packet to the next hop SFF2 according to the service forwarding path information;
步骤305:SFF2收到报文后进行重新分类,重新获取业务转发路径信息SFP4,以及属于数据中心场景下的增强型上下文数据头类型和上下文数据头信息以组建NSH头,将所组建的NSH头封装在原始数据报文中,按照业务转发路径转发到下一跳节点SF3上;Step 305: After receiving the packet, the SFF2 re-classifies the information, re-acquires the service forwarding path information SFP4, and the enhanced context data header type and context data header information in the data center scenario to form an NSH header, and the established NSH header. Encapsulated in the original data packet and forwarded to the next hop node SF3 according to the service forwarding path;
步骤306:SF3收到报文后,根据接收到的增强型上下文数据头类型字段正确地解析报文中的上下文数据信息为数据中心场景下的,判断是否有SF2节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理,处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给SFF2;Step 306: After receiving the packet, the SF3 correctly parses the context data information in the packet according to the received enhanced context data header type field into a data center scenario, and determines whether there is context data information required by the SF2 node; If yes, the context data information is correctly read according to the enhanced context data header type field and the corresponding service is processed. If the context data related information needs to be updated after the processing, the context data related information is updated; if not, the context data related information is not updated; Forward the packet to SFF2.
步骤307:SFF2收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF2节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并 加以使用,使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;SFF2根据业务转发路径信息,将报文转发到下一跳SFF3去处理;Step 307: After receiving the packet, the SFF2 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. Determining whether there is context data information required by the SFF2 node; if so, correctly reading the context data information according to the enhanced context data header type field and Used to update the context data information if it needs to be updated after use; if not, the context data information is not updated; SFF2 forwards the message to the next hop SFF3 according to the service forwarding path information;
步骤308:SFF3收到报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息为数据中心场景下的,判断是否有SFF3节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用;使用完后如果需要更新上下文数据信息则更新;如果没有,则不更新上下文数据信息;SFF3根据业务转发路径信息,将报文转发到相应的SF5去处理;Step 308: After receiving the packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. In the data center scenario, it is determined whether there is context data information required by the SFF3 node; if yes, the context data information is correctly read and used according to the enhanced context data header type field; if the context data information needs to be updated after use Update; if not, the context data information is not updated; the SFF3 forwards the message to the corresponding SF5 for processing according to the service forwarding path information;
步骤309:SF5收到报文后,根据接收到的增强型上下文数据头类型字段正确地解析报文中的上下文数据信息为数据中心场景下的,判断是否有SF5节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并进行相应业务的处理,处理完后如果需要更新上下文数据相关信息则更新;如果没有,则不更新上下文数据相关信息;然后将报文转发给SFF3;Step 309: After receiving the message, the SF5 correctly parses the context data information in the packet according to the received enhanced context data header type field into a data center scenario, and determines whether there is context data information required by the SF5 node; If yes, the context data information is correctly read according to the enhanced context data header type field and the corresponding service is processed. If the context data related information needs to be updated after the processing, the context data related information is updated; if not, the context data related information is not updated; Forward the packet to SFF3.
步骤310:SFF3收到数据报文后,解析并读取报文中的业务转发路径信息和增强型上下文数据头类型,并根据增强型上下文数据头类型字段正确地解析报文中的上下文数据信息,判断是否有SFF3节点需要的上下文数据信息;如果有,则根据增强型上下文数据头类型字段正确地读取上下文数据信息并加以使用,使用完后,剥离NSH头,将报文根据原始报文中的目的IP地址进行转发。Step 310: After receiving the data packet, the SFF3 parses and reads the service forwarding path information and the enhanced context data header type in the packet, and correctly parses the context data information in the packet according to the enhanced context data header type field. , to determine whether there is context data information required by the SFF3 node; if there is, the context data information is correctly read and used according to the enhanced context data header type field, after use, the NSH header is stripped, and the message is based on the original message. The destination IP address is forwarded.
实施例四:Embodiment 4:
当中间节点上不识别增强型上下文数据头类型时,则可忽略此字段;可选地,中间节点根据一定的规则去解读上下文数据头信息。When the enhanced context data header type is not recognized on the intermediate node, this field can be ignored; optionally, the intermediate node interprets the context data header information according to certain rules.
图14为本发明实施例的发送侧的处理数据报文的装置的示意图,如图14所示,本实施例的装置应用于支持业务功能链的节点,包括:FIG. 14 is a schematic diagram of an apparatus for processing a data packet on a sending side according to an embodiment of the present invention. As shown in FIG. 14, the apparatus of the embodiment is applied to a node supporting a service function chain, including:
获取模块,设置为:获取增强型上下文数据头类型;所述增强型上下文 数据头类型包括以下的任意一种:数据中心场景的上下文数据头类型、移动场景的上下文数据头类型、宽带网络场景的上下文数据头类型;An acquisition module, configured to: obtain an enhanced context data header type; the enhanced context The data header type includes any one of the following: a context data header type of the data center scenario, a context data header type of the mobile scenario, and a context data header type of the broadband network scenario;
封装模块,设置为:将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中;The encapsulating module is configured to: encapsulate the enhanced context data header type in a network service header, and encapsulate the network service header in a data packet;
发送模块,设置为:将所述数据报文沿着业务转发路径进行发送。The sending module is configured to: send the data packet along a service forwarding path.
其中,所述数据报文可以由原始数据和网络业务头组成,或者可以由原始数据、网络业务头和叠加网络报文头组成。The data packet may be composed of original data and a network service header, or may be composed of original data, a network service header, and an overlay network packet header.
在一可选实施例中,还可以包括:In an optional embodiment, the method may further include:
配置模块,设置为:根据网络部署情况和/或上下文数据头数据信息来配置所述增强型上下文数据头类型。The configuration module is configured to: configure the enhanced context data header type according to network deployment conditions and/or context data header data information.
在一可选实施例中,所述获取模块还可以设置为:获取本地配置的或者集中控制器下发的所述增强型上下文数据头类型。In an optional embodiment, the obtaining module may be further configured to: acquire the enhanced context data header type that is locally configured or sent by the centralized controller.
图15为本发明实施例的接收侧的处理数据报文的装置的示意图,如图15所示,本实施例的装置应用于支持业务功能链的节点,可以包括:Figure 15 is a schematic diagram of an apparatus for processing a data packet on a receiving side according to an embodiment of the present invention. As shown in Figure 15, the apparatus of the present embodiment is applied to a node supporting a service function chain, and may include:
接收模块,设置为:接收携带有网络业务头的数据报文;The receiving module is configured to: receive a data packet carrying a network service header;
解析模块,设置为:解析所述网络业务头中的增强型上下文数据头类型;a parsing module, configured to: parse an enhanced context data header type in the network service header;
处理模块,设置为:根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息。The processing module is configured to: read context data information in the data packet according to the enhanced context data header type.
在一可选实施例中,所述装置还可以包括:In an optional embodiment, the apparatus may further include:
更新模块,设置为:当判断需更新上下文数据信息时,对所述上下文数据信息和/或增强型上下文数据头类型进行更新。The update module is configured to: update the context data information and/or the enhanced context data header type when it is determined that the context data information needs to be updated.
在一可选实施例中,所述解析模块还可以设置为:解析所述数据报文中的业务转发路径信息;In an optional embodiment, the parsing module may be further configured to: parse the service forwarding path information in the data packet;
所述处理模块还可以设置为:根据所述业务转发路径信息转发所述数据报文或更新后的数据报文。The processing module may be further configured to: forward the data packet or the updated data packet according to the service forwarding path information.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计 算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or part of the steps of the above embodiments may be used. The computer program can be implemented in a computer readable storage medium, the computer program being executed on a corresponding hardware platform (such as a system, device, device, device, etc.), when executed, including One or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
通过本发明实施例的方案,获取增强型上下文数据头类型;将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中;将所述数据报文沿着业务转发路径进行发送。由此,通过本发明实施例的方案,在上述SFC网络中,进一步增加了上下文数据头类型标识,以增强支持业务链的节点上对上下文数据头的进一步识别。 Obtaining an enhanced context data header type by using the solution of the embodiment of the present invention; encapsulating the enhanced context data header type in a network service header, and encapsulating the network service header in a data packet; The packet is sent along the service forwarding path. Thus, through the solution of the embodiment of the present invention, in the foregoing SFC network, a context data header type identifier is further added to enhance further identification of the context data header on the node supporting the service chain.

Claims (14)

  1. 一种处理数据报文的方法,应用于支持业务功能链的节点,包括:A method for processing data messages, applied to nodes supporting a service function chain, including:
    获取增强型上下文数据头类型;Get an enhanced context data header type;
    将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中;Encapsulating the enhanced context data header type in a network service header, and encapsulating the network service header in a data packet;
    将所述数据报文沿着业务转发路径进行发送。The data packet is sent along the service forwarding path.
  2. 如权利要求1所述的方法,其中,所述增强型上下文数据头类型包括以下的任意一种:The method of claim 1 wherein said enhanced context data header type comprises any of the following:
    数据中心场景的上下文数据头类型、移动场景的上下文数据头类型、宽带网络场景的上下文数据头类型。The context data header type of the data center scene, the context data header type of the mobile scene, and the context data header type of the broadband network scenario.
  3. 如权利要求1或2所述的方法,其中,所述增强型上下文数据头类型是根据网络部署情况和/或上下文数据头数据信息进行配置的。The method of claim 1 or 2, wherein the enhanced context data header type is configured according to network deployment conditions and/or context data header data information.
  4. 如权利要求1或2所述的方法,其中,所述增强型上下文数据头类型是本地配置的,或者是集中控制器下发的。The method of claim 1 or 2, wherein the enhanced context data header type is locally configured or issued by a centralized controller.
  5. 如权利要求1所述的方法,其中,所述数据报文由原始数据和网络业务头组成,或者由原始数据、网络业务头和叠加网络报文头组成。The method of claim 1 wherein said data message consists of raw data and network traffic headers or consists of raw data, network traffic headers, and overlay network headers.
  6. 一种处理数据报文的装置,应用于支持业务功能链的节点,包括:A device for processing data messages, applied to nodes supporting a service function chain, including:
    获取模块,设置为:获取增强型上下文数据头类型;所述增强型上下文数据头类型包括以下的任意一种:数据中心场景的上下文数据头类型、移动场景的上下文数据头类型、宽带网络场景的上下文数据头类型;The obtaining module is configured to: obtain an enhanced context data header type; the enhanced context data header type includes any one of the following: a context data header type of the data center scene, a context data header type of the mobile scene, and a broadband network scenario. Context data header type;
    封装模块,设置为:将所述增强型上下文数据头类型封装在网络业务头中,并将所述网络业务头封装在数据报文中,所述数据报文由原始数据和网络业务头组成,或者由原始数据、网络业务头和叠加网络报文头组成;The encapsulating module is configured to: encapsulate the enhanced context data header type in a network service header, and encapsulate the network service header in a data packet, where the data packet is composed of original data and a network service header. Or consisting of original data, network traffic headers, and overlay network headers;
    发送模块,设置为:将所述数据报文沿着业务转发路径进行发送。The sending module is configured to: send the data packet along a service forwarding path.
  7. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    配置模块,设置为:根据网络部署情况和/或上下文数据头数据信息来配置所述增强型上下文数据头类型。 The configuration module is configured to: configure the enhanced context data header type according to network deployment conditions and/or context data header data information.
  8. 如权利要求6或7所述的装置,所述获取模块还设置为:获取本地配置的或者集中控制器下发的所述增强型上下文数据头类型。The apparatus according to claim 6 or 7, wherein the obtaining module is further configured to: acquire the enhanced context data header type that is locally configured or sent by the centralized controller.
  9. 一种处理数据报文的方法,应用于支持业务功能链的节点,包括:A method for processing data messages, applied to nodes supporting a service function chain, including:
    接收携带有网络业务头的数据报文;Receiving a data packet carrying a network service header;
    解析所述网络业务头中的增强型上下文数据头类型;Parsing an enhanced context data header type in the network traffic header;
    根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息。Reading context data information in the data message according to the enhanced context data header type.
  10. 如权利要求9所述的方法,所述根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息后,还包括:The method of claim 9, after the reading the context data information in the data packet according to the enhanced context data header type, further comprising:
    当判断需更新上下文数据信息时,对所述上下文数据信息和/或增强型上下文数据头类型进行更新。The context data information and/or the enhanced context data header type are updated when it is determined that the context data information needs to be updated.
  11. 如权利要求9或10所述的方法,所述接收携带有网络业务头的数据报文后,还包括:解析所述数据报文中的业务转发路径信息;The method of claim 9 or 10, after the receiving the data packet carrying the network service header, the method further includes: parsing the service forwarding path information in the data packet;
    所述根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息后,还包括:After the reading the context data information in the data packet according to the enhanced context data header type, the method further includes:
    根据所述业务转发路径信息转发所述数据报文或更新后的数据报文。And forwarding the data packet or the updated data packet according to the service forwarding path information.
  12. 一种处理数据报文的装置,应用于支持业务功能链的节点,包括:A device for processing data messages, applied to nodes supporting a service function chain, including:
    接收模块,设置为:接收携带有网络业务头的数据报文;The receiving module is configured to: receive a data packet carrying a network service header;
    解析模块,设置为:解析所述网络业务头中的增强型上下文数据头类型;a parsing module, configured to: parse an enhanced context data header type in the network service header;
    处理模块,设置为:根据所述增强型上下文数据头类型读取所述数据报文中的上下文数据信息。The processing module is configured to: read context data information in the data packet according to the enhanced context data header type.
  13. 如权利要求12所述的装置,还包括:The apparatus of claim 12, further comprising:
    更新模块,设置为:当判断需更新上下文数据信息时,对所述上下文数据信息和/或增强型上下文数据头类型进行更新。The update module is configured to: update the context data information and/or the enhanced context data header type when it is determined that the context data information needs to be updated.
  14. 如权利要求12或13所述的装置,所述解析模块还设置为:解析所述数据报文中的业务转发路径信息; The apparatus according to claim 12 or 13, wherein the parsing module is further configured to: parse the service forwarding path information in the data packet;
    所述处理模块还设置为:根据所述业务转发路径信息转发所述数据报文或更新后的数据报文。 The processing module is further configured to: forward the data packet or the updated data packet according to the service forwarding path information.
PCT/CN2016/080538 2015-08-07 2016-04-28 Method and device for processing data message WO2017024818A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510483930.1 2015-08-07
CN201510483930.1A CN106453204B (en) 2015-08-07 2015-08-07 Method and device for processing data message

Publications (1)

Publication Number Publication Date
WO2017024818A1 true WO2017024818A1 (en) 2017-02-16

Family

ID=57983894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080538 WO2017024818A1 (en) 2015-08-07 2016-04-28 Method and device for processing data message

Country Status (2)

Country Link
CN (1) CN106453204B (en)
WO (1) WO2017024818A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491729A (en) * 2020-09-22 2021-03-12 中兴通讯股份有限公司 Data processing method and device, storage medium and electronic device
CN115460145A (en) * 2022-08-15 2022-12-09 阿里云计算有限公司 Forwarding rule issuing method, intelligent network card and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108574638B (en) * 2017-03-14 2020-10-16 华为技术有限公司 Method and equipment for forwarding data message
CN111857945A (en) * 2019-04-30 2020-10-30 中兴通讯股份有限公司 Data packet transmission method, data packet management method, data packet transmission device, data packet management device, data packet forwarding device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299766A (en) * 2008-06-19 2008-11-05 中兴通讯股份有限公司 Method for processing locating information format
US20150092564A1 (en) * 2013-09-27 2015-04-02 Futurewei Technologies, Inc. Validation of Chained Network Services
CN104639414A (en) * 2015-01-30 2015-05-20 杭州华三通信技术有限公司 Message transmitting method and message transmitting equipment
US20150195197A1 (en) * 2014-01-06 2015-07-09 Futurewei Technologies, Inc. Service Function Chaining in a Packet Network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9319324B2 (en) * 2013-12-06 2016-04-19 Telefonaktiebolaget L M Ericsson (Publ) Method and system of service placement for service chaining

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299766A (en) * 2008-06-19 2008-11-05 中兴通讯股份有限公司 Method for processing locating information format
US20150092564A1 (en) * 2013-09-27 2015-04-02 Futurewei Technologies, Inc. Validation of Chained Network Services
US20150195197A1 (en) * 2014-01-06 2015-07-09 Futurewei Technologies, Inc. Service Function Chaining in a Packet Network
CN104639414A (en) * 2015-01-30 2015-05-20 杭州华三通信技术有限公司 Message transmitting method and message transmitting equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ED, P.Q. ET AL.: "NETWORK SERVICE HEADER DRAFT-IETF-SFC-NSH-01", NETWORK WORKING GROUP INTERNET -DRAFT, 23 July 2015 (2015-07-23) *
WANG, C. ET AL.: "METADATA TYPE ISSUES DRAFT-WANG-SFC- MD -TYPE-ISSUES-00", SFC WG INTERNET -DRAFT, 21 September 2015 (2015-09-21), pages 6 - 8, XP015108494 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491729A (en) * 2020-09-22 2021-03-12 中兴通讯股份有限公司 Data processing method and device, storage medium and electronic device
CN115460145A (en) * 2022-08-15 2022-12-09 阿里云计算有限公司 Forwarding rule issuing method, intelligent network card and storage medium

Also Published As

Publication number Publication date
CN106453204A (en) 2017-02-22
CN106453204B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
WO2016165492A1 (en) Method and apparatus for implementing service function chain
CN110506411B (en) Method and system for providing packet enforcement using logical ports in a virtualized computing environment
CN106559325B (en) Path detection method and device
US9832130B2 (en) Data packet routing method and device
EP3958521A1 (en) Method and apparatus for providing service for service flow
CN110999265B (en) Managing network connectivity between cloud computing service endpoints and virtual machines
US20100063988A1 (en) Service Insertion in a Computer Network Using Internet Protocol Version 6 Techniques
JP7432095B2 (en) How to forward packets in SRv6 service function chain, SFF, and SF devices
US20160330167A1 (en) Arp Implementation Method, Switch Device, and Control Device
CN105684382A (en) Packet control method, switch and controller
CN105577413A (en) OAM (Operation, Administration and Management) message processing method and device
US10284460B1 (en) Network packet tracing
WO2017024818A1 (en) Method and device for processing data message
KR101477012B1 (en) Method, apparatus, system and computer-readable recording medium for sdn switching
CN107786437B (en) Message forwarding method and device
US11522795B1 (en) End to end application identification and analytics of tunnel encapsulated traffic in the underlay
CN109088821B (en) Message transmission method, service chain system and computer readable storage medium
CN105577416B (en) Service function chain operation, management and maintenance method and node equipment
WO2021083341A1 (en) Method for processing message, and network node and system
US20150043588A1 (en) Communication System, Upper Layer Switch, Control Apparatus, Switch Control Method, and Program
EP2720421A1 (en) Method for processing congestion and network device
CN108600109A (en) A kind of message forwarding method and device
US20220109627A1 (en) Method and Apparatus for Implementing Service Function Processing
US10165092B2 (en) Using a network service header to manage a network-as-a-system
CN109379241A (en) A kind of routing information determines method and device

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

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

Country of ref document: EP

Kind code of ref document: A1