WO2015074550A1 - Network service processing method, adapter, and network service processing system - Google Patents

Network service processing method, adapter, and network service processing system Download PDF

Info

Publication number
WO2015074550A1
WO2015074550A1 PCT/CN2014/091491 CN2014091491W WO2015074550A1 WO 2015074550 A1 WO2015074550 A1 WO 2015074550A1 CN 2014091491 W CN2014091491 W CN 2014091491W WO 2015074550 A1 WO2015074550 A1 WO 2015074550A1
Authority
WO
WIPO (PCT)
Prior art keywords
network service
packet
service node
adapter
field
Prior art date
Application number
PCT/CN2014/091491
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 WO2015074550A1 publication Critical patent/WO2015074550A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1033Signalling gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • 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/08Protocols for interworking; Protocol conversion
    • 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/24Negotiation of communication capabilities

Definitions

  • the present invention relates to the field of communications, and in particular, to a network service processing method, an adapter, and a network service processing system.
  • Network communication is a process of parsing packets according to the protocol of network packets.
  • Different network services may correspond to different packet structures.
  • different network services such as load balancing services, firewall services, or intrusion detection services, etc.
  • a dedicated network service node is usually required for service processing. In order to adapt to different packets, the network service node needs to be constantly changed, so that the network service node cannot focus on the service itself.
  • the embodiment of the invention provides a network service processing method, which can simplify the network service node and focus on the service processing.
  • a first aspect of the present invention provides a network service processing method, including:
  • the adapter receives the first message sent from the network device
  • the adapter processes the first packet according to the first adaptation rule, and forms a second packet that can be processed by the network service node.
  • the first adaptation rule includes: deleting the first performance rule according to the performance of the network service node. A field in the message that is not supported by the network service node or a field that needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, or a network service that is not included in the first packet but is added A field that must be available when a node performs business processing;
  • the adapter sends the second packet to the network service node for service processing.
  • the first packet is processed by the adapter according to the first adaptation rule, and the second packet that can be processed by the network service node is formed.
  • the second packet that can be processed by the network service node is formed.
  • the adapter receives a first adaptation rule sent from a network service controller.
  • the network service processing method further includes:
  • the adapter processes the return packet according to the second adaptation rule to form a third packet for the adapter to forward;
  • the second adaptation rule includes: adding the first suitable in the return packet A field that is not supported by the network service node deleted in the rule, or a field that needs to be masked to the network service node deleted in the first adaptation rule, or a network service node that is not required to be modified in the first packet.
  • the returning packet is processed by the adapter according to a second adaptation rule to form an adapter.
  • the third packet is forwarded, it also includes:
  • the adapter receives a second adaptation rule sent from a network service controller.
  • a second aspect of the invention provides an adapter, the adapter comprising:
  • a first receiving module configured to receive a first packet sent from a network device
  • the first processing module is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, where the first adaptation rule includes: according to the network service node The performance of deleting the field that is not supported by the network service node in the first packet or the field that needs to be blocked to the network service node, or modifying the field in the first packet that does not need to be processed by the network service node, or adding the first packet However, the network service node must have a field for business processing;
  • the first sending module is configured to send the second packet to a network service node for service processing.
  • the adapter further includes:
  • the second receiving module is configured to receive a first adaptation rule sent from the network service controller.
  • the adapter further includes:
  • a third receiving module configured to receive, after the network service node performs service processing on the second packet, Return message
  • a second processing module configured to process the returned packet according to the second adaptation rule to form a third packet for forwarding by the adapter; and the second adaptation rule includes: adding the a field that is not supported by the network service node deleted in the first adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or the first message is modified in the return message.
  • the second receiving module is further configured to receive a second adaptation rule that is sent from the network service controller. .
  • a third aspect of the present invention provides a network service processing system, where the network service processing system includes: a network service controller, a network device, an adapter, and a network service node, where
  • the network service controller is configured to send a first adaptation rule to the adapter, where the first adaptation rule includes: deleting a field that is not supported by the network service node in the first packet according to the performance of the network service node Or a field that needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, or a field that is not included in the first packet but that is required to be processed by the network service node;
  • the network device is configured to send a first packet to the adapter
  • the adapter is configured to receive the first adaptation rule sent from a network service controller, and receive a first packet sent from a network device, and compare the first packet according to the first adaptation rule.
  • the packet is processed to form a second packet that can be processed by the network service node, and the second packet is sent to the network service node for service processing;
  • the network service node is configured to perform service processing on the second packet sent by the adapter.
  • the network service node is further configured to perform a service processing on the second packet to generate a return packet, and send the return packet to the Adapter
  • the network service controller is further configured to send a second adaptation rule to the adapter, where the second adaptation rule includes: adding, in the return message, the deleted in the first adaptation rule A field that is not supported by the network service node, or a field that is deleted in the first adaptation rule and needs to be blocked to the network service node, or a network service node that does not need to be modified in the first packet.
  • the adapter is further configured to receive the second adaptation rule sent from a network service controller, and receive a return message generated by a network service node, and send the return message according to the second adaptation rule. Processing is performed to form a third message for the adapter to forward.
  • the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on Business processing.
  • FIG. 1 is a schematic flowchart of a network service processing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of another network service processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an adapter according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another adapter according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of still another adapter according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a network service processing system according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a packet including an SR field according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of an interaction process when the network service processing system shown in FIG. 6 performs network service processing on a packet of the structure shown in FIG. 7;
  • FIG. 9 is a schematic structural diagram of another network service processing system according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a packet including a source MAC field and a destination MAC field according to an embodiment of the present disclosure
  • FIG. 11 is a schematic diagram of an interaction process when the network service processing system shown in FIG. 9 performs network service processing on a packet of the structure shown in FIG. 10;
  • FIG. 12 is a schematic structural diagram of still another network service processing system according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a packet including a VLAN ID field according to an embodiment of the present disclosure
  • FIG. 14 is a schematic diagram showing the interaction process when the network service processing system shown in FIG. 12 performs network service processing on the packet of the structure shown in FIG. 13;
  • FIG. 15 is a schematic structural diagram of still another network service processing system according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic diagram of the interaction process when the network service processing system shown in FIG. 15 performs network service processing on the packet of the structure shown in FIG. 13;
  • FIG. 17 is a schematic diagram of another interaction process when the network service processing system shown in FIG. 6 performs network service processing.
  • the network device is configured to send a first packet to an adapter, where the network device may be a router or a switch.
  • the network service controller is configured to send an adaptation rule for processing the first packet or the returned packet according to the characteristics of the network service node, where the network service controller may be a server, a PC, a virtual machine, or a virtual container ( For example, Linux Containers and other devices, the adapter is used to process the received first packet or the returned packet according to the adaptation rule.
  • the adapter may be a router, a switch, a server, a PC, or a virtual machine;
  • the network service node may be a server, a PC, a virtual machine, or a virtual container (such as Linux Containers), after processing the received message or forwarding the processed result to generate a return message.
  • the network service processing method includes:
  • the adapter receives the first packet sent from the network device.
  • the first message may include a field that is not supported by the network service node, or a field that needs to be blocked to the network service node, or a field that does not need to be processed by the network service node, and the first report.
  • the text may be missing from the network service node for business processing.
  • the field that does not need to be processed by the network service node includes the field for network service. The node can handle it, but in order to simplify the network service node, the network service node does not process the field, and the field is processed by other devices such as an adapter.
  • the adapter processes the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node.
  • the first adaptation rule includes: performing performance according to the network service node. Deleting a field that is not supported by the network service node in the first packet or a field that needs to be blocked to the network service node, or modifying a field in the first packet that does not need to be processed by the network service node, or adding a field that is not in the first packet but A field that must be available when a network service node performs business processing.
  • the method further includes: the adapter receiving the slave network service controller The first adaptation rule sent.
  • the adapter sends the second packet to the network service node for service processing.
  • the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
  • FIG. 2 is a schematic flowchart of another network service processing method according to the present invention.
  • a network service node performs a service processing on a second packet to generate a return packet.
  • the network service processing method includes the following steps:
  • the adapter receives the first packet sent from the network device.
  • the first message may include a field that is not supported by the network service node, or a field that needs to be blocked to the network service node, or a field that does not need to be processed by the network service node, and the first report.
  • the text may be missing from the network service node for business processing.
  • the field that does not need to be processed by the network service node includes the field that can be processed by the network service node, but in order to simplify the network service node, the network service node does not process the field, and other devices For example, the adapter processes the field.
  • the adapter processes the first packet according to the first adaptation rule, and forms a second packet that can be processed by the network service node.
  • the first adaptation rule includes: performing performance according to the network service node. Deleting a field that is not supported by the network service node in the first packet or a field that needs to be blocked to the network service node, or modifying a field in the first packet that does not need to be processed by the network service node, or According to the performance of the network service node, a field that is not included in the first packet but is required to be processed by the network service node in the first packet is added in the first packet.
  • the method further includes: the adapter receiving the slave network service controller The first adaptation rule sent.
  • the adapter sends the second packet to the network service node for service processing.
  • the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing.
  • the adapter receives a return message generated by the network service node after performing service processing on the second packet.
  • the network service node generates a return message after performing the service processing on the second packet, and when the return message needs to be returned, the network service node sends the return message to the adapter.
  • the adapter processes the return packet according to the second adaptation rule to form a third packet for the adapter to forward.
  • the second adaptation rule includes: adding the first packet to the return packet. a field that is not supported by the network service node deleted in an adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or modified in the first packet, in the return message A field that needs to be processed by the network service node, or a field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs service processing.
  • the method further includes:
  • the adapter receives a second adaptation rule sent from a network service controller.
  • the adapter may further forward the third packet to a network device or other network device that sends the first packet.
  • the network relay device such as a switch, can be used to receive the first processed second packet sent by the adapter, and forward the second packet to the network service.
  • the node receives the third packet sent by the adapter and forwards the third packet to the network device.
  • the network relay device can also be used to receive the packet sent by the network device, send the packet to the adapter, or forward the return packet sent by the adapter to the network device.
  • the forwarding mode is not limited to the foregoing forwarding format, and may be in other forms as long as the forwarding of the packet or the returned packet can be implemented. .
  • the first packet is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
  • FIG. 3 is a schematic structural diagram of an adapter 1 according to an embodiment of the present invention, including:
  • the first receiving module 11 is configured to receive the first packet sent from the network device.
  • the first processing module 12 is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node.
  • the first sending module 13 is configured to send the second packet to a network service node for service processing.
  • the adapter may further include: a second receiving module 14 configured to receive the first adaptation rule sent from the network service controller.
  • the first adaptation rule includes: deleting a field that is not supported by the network service node in the first packet or a field that needs to be blocked to the network service node according to the performance of the network service node, or modifying the network service node that is not required in the first packet.
  • the field that does not need to be processed by the network service node includes the field that can be processed by the network service node, but in order to simplify the network service node, the network service node does not process the field, and other devices For example, the adapter processes the field.
  • the second packet that can be processed by the network service node is formed, so that the network service node can focus on the service processing and simplify the network service node.
  • FIG. 4 is another schematic structural diagram of an adapter according to an embodiment of the present invention.
  • the adapter 2 includes:
  • the first receiving module 21 is configured to receive the first packet sent from the network device.
  • the first processing module 22 is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, where the first adaptation rule includes: according to the network service
  • the performance of the node deletes the field in the first packet that is not supported by the network service node or needs to be sent to the network service.
  • the first sending module 23 is configured to send the second packet to a network service node for service processing
  • a second receiving module 24 configured to receive a first adaptation rule and a second adaptation rule sent from a network service controller
  • the third receiving module 25 is configured to receive a return message generated by the network service node after performing service processing on the second packet;
  • the second processing module 26 is configured to process the return packet according to the second adaptation rule to form a third packet for forwarding by the adapter; and the second adaptation rule includes: adding in the return packet a field that is not supported by the network service node deleted in the first adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or modified in the first packet, in the return message A field that does not need to be processed by the network service node, or a field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs service processing.
  • the adapter 2 can further comprise a second sending module 27 for forwarding the third message to the network device or other network device that sends the first message.
  • the packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing. , simplifying network service nodes.
  • FIG. 5 is a schematic structural diagram of another embodiment of an adapter according to the present invention.
  • the embodiment includes at least one receiver, a processor, and a transmitting unit, wherein the receiver has the same functions as the first receiving module 21, the second receiving module 24, and the third receiving module 25, and details are not described herein.
  • the functions of the processor are the same as those of the first processing module 22 and the second processing module 26, and are not described herein.
  • the transmitting unit in this embodiment has the same functions as the first transmitting unit 23 and the second transmitting unit 27, and details are not described herein.
  • the receiver is configured to receive the first packet sent by the network device, and the adaptation rule sent by the network service controller, where the processor processes, according to the adaptation rule, the first packet received by the receiver, and sends the packet.
  • the unit sends the second packet that the network service node processed by the processor can process to the network service node.
  • the receiving unit receives the return message and sends it to The processor performs processing to obtain a third packet for forwarding by the sending unit, and the third packet is forwarded to the network device by the sending unit.
  • the processing of the packet to be sent to the network service node by the adapter forms a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
  • FIG. 6 is a schematic structural diagram of a network service processing system according to an embodiment of the present invention.
  • the network service processing system 3 includes:
  • a network device 31 a network service controller 32, a network service node 33, and an adapter 34, wherein
  • the network device 31 is configured to send a first packet to the adapter 34.
  • the network service controller 32 is configured to send an adaptation rule to the adapter 34.
  • the network service node 33 is configured to perform service processing on the second packet formed by the adapter 34 and processed by the adaptation rule according to the adaptation rule;
  • the adapter 34 is configured to receive the first packet sent from the network device 31, receive the adaptation rule sent from the network service controller 32, and process the first packet according to the adaptation rule to form a network service.
  • the second packet that the node 33 can process, and the second packet are sent to the network service node 33 for service processing.
  • the network service node 33 is further configured to perform a service processing on the second packet to generate a return packet, and send the return packet to the adapter 34;
  • the adapter 34 is further configured to receive a return message generated by the network service node 33 after performing service processing, process the return message to form a third message for the adapter to forward, and forward the third message.
  • the network device to which the third packet is forwarded and the network device that sends the first packet may be the same network device or different network devices.
  • the network service processing system may further include a network relay device:
  • the network relay device is configured to receive the second packet processed by the adapter for the first time, and forward the second packet to the network service node.
  • the adapter is further configured to send the first packet that can be processed by the first processed network service node to the network relay device.
  • the adapter is further configured to send the third processed message to the network relay device;
  • the network relay device is further configured to receive a third packet sent by the adapter, and forward the third packet to a network device.
  • the first processing of the packet to be sent to the network service node by the adapter forms a message that the network service node can process, so that the network service node can focus on the service processing and simplify the network service node.
  • the message as shown in FIG. 7, includes a field SR, where SR is a data structure, as follows:
  • FIG. 8 is a schematic diagram of the interaction process of the network device 31, the network service controller 32, the adapter 34, and the network service node 33 when the network service processing system shown in FIG. 6 performs network service processing on the packet of the structure shown in FIG. step:
  • the network service controller 32 sends an adaptation rule to the adapter 34.
  • the adaptation rule includes a first adaptation rule and a second adaptation rule.
  • the first adaptation rule includes deleting the SR field in the first packet; the second adaptation rule includes adding an SR field in the return message.
  • the network device 31 sends the first packet with the service identifier to the adapter 34.
  • the first packet is as shown in FIG. 7, where the SR field is a field that needs to be blocked to the network service node.
  • the adapter 34 processes the first packet according to the adaptation rule to form a second packet that can be processed by the network service node.
  • the adapter 34 deletes the SR field in the packet according to the first adaptation rule, and the packet after deleting the SR field is the second packet that the network service node 33 can process.
  • the adapter 34 sends the second packet to the network service node 33 for service processing.
  • the network service node 33 performs service processing on the received second packet to generate a return packet.
  • the network service node 33 sends the return message to the adapter 34;
  • the adapter 34 processes the returned packet according to the adaptation rule, and generates a third packet for the adapter to forward.
  • the adapter 34 adds the SR field to the return message according to the second adaptation rule.
  • the adapter 34 sends the third packet to the network device 31.
  • the method further includes a transit step, such as the step of the network service controller 32 sending an adaptation rule to the adapter 34, where the adaptation rule may not be directly the network service controller 32.
  • a transit step such as the step of the network service controller 32 sending an adaptation rule to the adapter 34, where the adaptation rule may not be directly the network service controller 32.
  • network service controller 32 Sended to adapter 34, network service controller 32 first sends the adaptation rules to a relay device, such as a network controller, which then forwards the adaptation rules to adapter 34.
  • the network controller can be a network management system or an Openflow controller.
  • the first processing of the first packet to be sent to the network service node by the adapter forms a second packet that can be processed by the network service node, so that the network service node can focus on the service processing, simplifying the network service node.
  • FIG. 10 it is a schematic structural diagram of a first packet in another embodiment.
  • a source MAC field and a destination MAC field belong to a field that does not need to be processed by a network service node.
  • the field that is not processed by the network service node can be processed for the network service node, but in order to simplify the network service node, the network service node does not process the field, and other A device such as an adapter processes the field.
  • the source MAC field and the destination MAC field are handleable for the network service node, but to simplify the network service node, the processing of the source MAC field and the destination MAC field is done by the adapter.
  • the schematic diagram of the process mainly includes:
  • the network service controller 42 sends an adaptation rule to the adapter 44.
  • the adaptation rule includes a first adaptation rule and a second adaptation rule.
  • the first adaptation rule includes when the value of the source MAC is a certain value, for example, when the value of the source MAC is 11-22-33-44-55-66, The value of the destination MAC of a packet is modified to the MAC address value of the network service node. For example, when the MAC value of the network service node is 22-33-44-55-66-77, the first adaptation rule is: when the source MAC is If the value is 11-22-33-44-55-66, change the destination MAC address of the packet to 22-33-44-55-66-77.
  • the second adaptation rule includes modifying the destination MAC value of the returned packet to 11-22-33-44-55-66.
  • the network device 41 sends the first packet to the adapter 44.
  • the structure of the first message is as shown in FIG.
  • the adapter 44 processes the first packet according to the adaptation rule to form a second packet that can be processed by the network service node;
  • the adapter 44 modifies the destination MAC value in the packet to 22-33-44-55-66 when the value of the source MAC is 11-22-33-44-55-66 according to the first adaptation rule. -77.
  • the processed message is a second message that the network service node 33 can process.
  • the adapter 44 sends the second message to the network relay device 45;
  • the network relay device 45 forwards the second packet to the network service node 43;
  • the network service node 43 performs service processing on the received second packet to generate a return packet.
  • the network service node 43 sends a return message to the adapter 44;
  • the adapter 44 processes the returned packet according to the adaptation rule, and generates a third packet for the adapter 44 to forward.
  • the adapter 44 modifies the destination MAC value of the return message to 11-22-33-44-55-66 according to the second adaptation rule.
  • the adapter 44 sends the third message to the network relay device 45;
  • the network relay device 45 forwards the third packet to the network device 41 according to the destination MAC value.
  • the method further includes a transit step, such as the step of the network service controller 42 sending an adaptation rule to the adapter 44, where the adaptation rule may not be directly the network service controller 42.
  • a transit step such as the step of the network service controller 42 sending an adaptation rule to the adapter 44, where the adaptation rule may not be directly the network service controller 42.
  • network service controller 42 Sended to adapter 44, network service controller 42 first sends the adaptation rules to a relay device, such as a network controller, which then forwards the adaptation rules to adapter 44.
  • the network controller can be a network management system or an Openflow controller.
  • the first processing of the packet to be sent to the network service node by the adapter forms a message that the network service node can process, so that the network service node can focus on the service processing,
  • the network service node is transformed.
  • FIG. 13 it is a schematic structural diagram of a first packet in another embodiment.
  • a VLAN ID field belongs to a field that is not supported by a network service node or a field that needs to be blocked to a network service node.
  • the schematic diagram of the interaction process mainly includes:
  • the network service controller 52 sends a forwarding rule to the network relay device 55.
  • the forwarding rule includes: forwarding a packet with a VLAN ID value of 100 sent by the network device 51 to the adapter 54;
  • the network service controller 52 sends an adaptation rule to the adapter 54.
  • the adaptation rule includes a first adaptation rule and a second adaptation rule.
  • the first adaptation rule includes: when the value of the VLAN ID is 100, the VLAN ID field in the packet is deleted; the second adaptation rule includes: the adapter adds a VLAN ID field in the received return packet, and the VLAN is added.
  • the value of the ID is set to 100.
  • the network device 51 sends a first packet containing a VLAN ID field and a VLAN ID value of 100 to the network relay device 55;
  • the network relay device 55 sends the received first message to the adapter 54;
  • the adapter 54 processes the first packet according to the adaptation rule to generate a second packet.
  • the VLAN ID field in the first packet is deleted according to the first adaptation rule.
  • the adapter 54 sends the second message to the network service node 53;
  • the network service node 53 performs service processing on the received second packet to generate a return packet.
  • the network service node 53 sends a return message to the adapter 54;
  • the adapter 54 performs a second processing on the returned packet according to the adaptation rule to generate a third packet.
  • the VLAN ID field is added to the return packet, and the value of the VLAN ID is set to 100.
  • the adapter 54 sends the second processed return message to the network relay device 55;
  • the network relay device 55 forwards the received third packet to the network device 51.
  • the method further includes a relay step.
  • the network service controller 52 sends an adaptation rule to the adapter 54, wherein the adaptation rule may be that the network service controller 52 does not directly send to the adapter 54, but the network service controller 52 first sends the adaptation rule.
  • a relay device such as a network controller, is then forwarded by the network controller to the adapter 54.
  • the network controller can be a network management system or an Openflow controller.
  • the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
  • the structure of the first message is as shown in FIG. 13.
  • the VLAN ID field is a field that is not supported by the network service node or a field that needs to be blocked to the network service node.
  • the schematic diagram of the process mainly includes:
  • the network service controller 62 sends a forwarding rule to the network relay device 63.
  • the forwarding rule includes: forwarding a packet with a VLAN ID value of 100 sent by the network device 61 to the adapter 64, and sending the packet with the adapter 64 without the VLAN ID field. Forwarding to the network service node 65, forwarding the return message sent from the network service node 65 to the adapter 64, forwarding the packet sent by the adapter 64 and having a VLAN ID of 100 to the network device 61;
  • the network service controller 62 sends an adaptation rule to the adapter 64.
  • the adaptation rule includes a first adaptation rule and a second adaptation rule.
  • the first adaptation rule includes: when the value of the VLAN ID is 100, the VLAN ID field in the packet is deleted; the second adaptation rule includes: the adapter adds a VLAN ID field in the received return packet, and the VLAN is added.
  • the value of the ID is set to 100.
  • the network device 61 sends a first packet containing a VLAN ID field and a VLAN ID value of 100 to the network relay device 63;
  • the network relay device 63 sends the received first message to the adapter 64;
  • the adapter 64 processes the first packet according to the adaptation rule to generate a second packet.
  • the VLAN ID field in the packet is deleted according to the first adaptation rule.
  • the adapter 64 sends the second message to the network relay device 63;
  • the network relay device 63 forwards the second packet to the network service node 65;
  • the network service node 65 performs service processing on the received second packet to generate a return packet.
  • the network service node 65 sends the return message to the network relay device 63;
  • the network relay device 63 sends a return message to the adapter 64;
  • the adapter 64 performs a second processing on the returned packet according to the adaptation rule to generate a third packet.
  • the VLAN ID field is added to the return packet, and the value of the VLAN ID is set to 100.
  • the adapter 64 sends the third message to the network relay device 63;
  • the network relay device 63 sends the third packet to the network device 61.
  • the method further includes a transit step, such as the step of the network service controller 62 sending an adaptation rule to the adapter 64, where the adaptation rule may not be directly the network service controller 62.
  • a transit step such as the step of the network service controller 62 sending an adaptation rule to the adapter 64, where the adaptation rule may not be directly the network service controller 62.
  • network service controller 62 Sended to adapter 64, network service controller 62 first sends the adaptation rules to a relay device, such as a network controller, which then forwards the adaptation rules to adapter 64.
  • the network controller can be a network management system or an Openflow controller.
  • the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing.
  • FIG. 17 is a schematic diagram of another interaction process when the network service processing system shown in FIG. 6 performs network service processing.
  • the network service node 33 has the following characteristics: When the network service node 33 performs service processing, the VLAN ID field must be present in the packet, and the network service node 33 can perform service processing. The VLAN ID field is not included in the first message sent by the network device 31 in this embodiment.
  • the specific process includes the following steps:
  • the network service controller 32 sends an adaptation rule to the adapter 34.
  • the adaptation rule includes a first adaptation rule and a second adaptation rule.
  • the first adaptation rule includes: adding, according to the characteristics of the network service node 33, the VLAN ID field in the first packet when the first packet sent by the network device 31 to the adapter 34 does not include the VLAN ID field;
  • the matching rule includes: deleting the VLAN ID field added in the first adaptation rule in the return message.
  • the network device 31 sends a first packet to the adapter 34.
  • the field in the first packet does not report the VLAN ID field.
  • the adapter 34 adds a VLAN ID field to the first packet according to the first adaptation rule. Into the second message;
  • the adapter 34 sends the second packet to the network service node 33;
  • S705 The network service node 33 performs service processing on the second packet to generate a return packet.
  • the network service node 33 sends the return message to the adapter 34;
  • the adapter 34 deletes the VLAN ID field added in the first adaptation rule in the return packet according to the second adaptation rule, to generate a third packet.
  • the adapter 34 sends the third message to the network device 31.
  • a field that is required in the first packet and that is required to be processed by the network service node is added in the first packet, so that the processed second packet becomes a packet that can be processed by the network service node. So that network service nodes can focus on business processing.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a network service processing method, an adapter, and a network service processing system. The network service processing method comprises: an adapter receiving a first packet sent from a network device; the adapter processing the first packet according to a first adaptation rule to form a second packet that can be processed by a network service node, the first adaptation rule comprising: deleting, according to performances of the network service node, a field in the first packet that the network service node does not support or that needs to be masked from the network service node, modifying a field in the first packet that does not need to be processed by the network service node, or adding a field that does not exist in the first packet and is necessary for service processing of the network service node; and the adapter sending the second packet to the network service node for service processing. The present invention can simplify the network service node, allowing the network service node to focus on service processing.

Description

一种网络业务处理方法、适配器及网络业务处理***Network service processing method, adapter and network service processing system 技术领域Technical field
本发明涉及通信领域,尤其涉及一种网络业务处理方法、适配器及网络业务处理***。The present invention relates to the field of communications, and in particular, to a network service processing method, an adapter, and a network service processing system.
背景技术Background technique
网络通信是对网络数据包根据协议进行报文解析的过程,不同的网络业务可能对应不同的报文结构,在网络通信中针对不同的网络业务,比如负载平衡业务、防火墙业务或者入侵检测业务等,通常需要专用的网络业务节点进行业务处理。网络业务节点为了适应不同报文,需要不断改变,使得网络业务节点不能聚焦于业务本身。Network communication is a process of parsing packets according to the protocol of network packets. Different network services may correspond to different packet structures. For network services, different network services, such as load balancing services, firewall services, or intrusion detection services, etc. A dedicated network service node is usually required for service processing. In order to adapt to different packets, the network service node needs to be constantly changed, so that the network service node cannot focus on the service itself.
发明内容Summary of the invention
本发明实施例提供一种网络业务处理方法,该方法可以简化网络业务节点,使其聚焦于业务处理。The embodiment of the invention provides a network service processing method, which can simplify the network service node and focus on the service processing.
本发明第一方面提供了一种网络业务处理方法,包括:A first aspect of the present invention provides a network service processing method, including:
适配器接收从网络设备发来的第一报文;The adapter receives the first message sent from the network device;
所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The adapter processes the first packet according to the first adaptation rule, and forms a second packet that can be processed by the network service node. The first adaptation rule includes: deleting the first performance rule according to the performance of the network service node. A field in the message that is not supported by the network service node or a field that needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, or a network service that is not included in the first packet but is added A field that must be available when a node performs business processing;
所述适配器将所述第二报文发送给所述网络业务节点进行业务处理。The adapter sends the second packet to the network service node for service processing.
结合第一方面,在第一方面的第一种可能的实现方式中,在所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文之前,还包括: With reference to the first aspect, in a first possible implementation manner of the first aspect, the first packet is processed by the adapter according to the first adaptation rule, and the second packet that can be processed by the network service node is formed. Previously, it also included:
所述适配器接收从网络业务控制器发来的第一适配规则。The adapter receives a first adaptation rule sent from a network service controller.
结合第一方面,在第一方面的第二种可能的实现方式中,所述网络业务处理方法还包括:With reference to the first aspect, in a second possible implementation manner of the first aspect, the network service processing method further includes:
所述适配器接收网络业务节点对所述第二报文进行业务处理后生成的返回报文;Receiving, by the adapter, a return message generated by the network service node after performing service processing on the second packet;
所述适配器根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文;所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。The adapter processes the return packet according to the second adaptation rule to form a third packet for the adapter to forward; the second adaptation rule includes: adding the first suitable in the return packet A field that is not supported by the network service node deleted in the rule, or a field that needs to be masked to the network service node deleted in the first adaptation rule, or a network service node that is not required to be modified in the first packet. The field to be processed, or the field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs business processing.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,在所述适配器根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文之前,还包括:In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the returning packet is processed by the adapter according to a second adaptation rule to form an adapter. Before the third packet is forwarded, it also includes:
所述适配器接收从网络业务控制器发来的第二适配规则。The adapter receives a second adaptation rule sent from a network service controller.
本发明第二方面提供了一种适配器,所述适配器包括:A second aspect of the invention provides an adapter, the adapter comprising:
第一接收模块,用于接收从网络设备发来的第一报文;a first receiving module, configured to receive a first packet sent from a network device;
第一处理模块,用于根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The first processing module is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, where the first adaptation rule includes: according to the network service node The performance of deleting the field that is not supported by the network service node in the first packet or the field that needs to be blocked to the network service node, or modifying the field in the first packet that does not need to be processed by the network service node, or adding the first packet However, the network service node must have a field for business processing;
第一发送模块,用于将所述第二报文发送给网络业务节点进行业务处理。The first sending module is configured to send the second packet to a network service node for service processing.
结合第二方面,在第二方面的第一种可能的实现方式中,,所述适配器还包括:In conjunction with the second aspect, in a first possible implementation of the second aspect, the adapter further includes:
第二接收模块,用于接收从网络业务控制器发来的第一适配规则。The second receiving module is configured to receive a first adaptation rule sent from the network service controller.
结合第二方面,在第二方面的第二种可能的实现方式中,所述适配器还包括:In conjunction with the second aspect, in a second possible implementation of the second aspect, the adapter further includes:
第三接收模块,用于接收网络业务节点对所述第二报文进行业务处理后生 成的返回报文;a third receiving module, configured to receive, after the network service node performs service processing on the second packet, Return message
第二处理模块,用于根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文;所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的所述网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。a second processing module, configured to process the returned packet according to the second adaptation rule to form a third packet for forwarding by the adapter; and the second adaptation rule includes: adding the a field that is not supported by the network service node deleted in the first adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or the first message is modified in the return message. A field that does not need to be processed by the network service node, or a field that is not included in the first packet added in the first adaptation rule but must be present when the network service node performs service processing.
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述第二接收模块还用于接收从网络业务控制器发来的第二适配规则。In conjunction with the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the second receiving module is further configured to receive a second adaptation rule that is sent from the network service controller. .
本发明第三方面提供了一种网络业务处理***,所述网络业务处理***包括:网络业务控制器、网络设备、适配器和网络业务节点、其中,A third aspect of the present invention provides a network service processing system, where the network service processing system includes: a network service controller, a network device, an adapter, and a network service node, where
所述网络业务控制器,用于向所述适配器发送第一适配规则;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The network service controller is configured to send a first adaptation rule to the adapter, where the first adaptation rule includes: deleting a field that is not supported by the network service node in the first packet according to the performance of the network service node Or a field that needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, or a field that is not included in the first packet but that is required to be processed by the network service node;
所述网络设备,用于向所述适配器发送第一报文;The network device is configured to send a first packet to the adapter;
所述适配器,用于接收从网络业务控制器发来的所述第一适配规则、以及接收从网络设备发来的第一报文、并根据所述第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文,以及将所述第二报文发送给网络业务节点进行业务处理;The adapter is configured to receive the first adaptation rule sent from a network service controller, and receive a first packet sent from a network device, and compare the first packet according to the first adaptation rule. The packet is processed to form a second packet that can be processed by the network service node, and the second packet is sent to the network service node for service processing;
所述网络业务节点,用于对所述适配器发来的第二报文进行业务处理。The network service node is configured to perform service processing on the second packet sent by the adapter.
结合第三方面,在第三方面的第一种可能的实现方式中,所述网络业务节点,还用于对第二报文进行业务处理后生成返回报文,并将返回报文发送给所述适配器;With reference to the third aspect, in a first possible implementation manner of the third aspect, the network service node is further configured to perform a service processing on the second packet to generate a return packet, and send the return packet to the Adapter
所述网络业务控制器,还用于向所述适配器发送第二适配规则;其中,所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的所述网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处 理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The network service controller is further configured to send a second adaptation rule to the adapter, where the second adaptation rule includes: adding, in the return message, the deleted in the first adaptation rule A field that is not supported by the network service node, or a field that is deleted in the first adaptation rule and needs to be blocked to the network service node, or a network service node that does not need to be modified in the first packet. The field, or the field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs service processing;
所述适配器,还用于接收从网络业务控制器发来的所述第二适配规则、以及接收网络业务节点生成的返回报文、以及根据所述第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文。The adapter is further configured to receive the second adaptation rule sent from a network service controller, and receive a return message generated by a network service node, and send the return message according to the second adaptation rule. Processing is performed to form a third message for the adapter to forward.
由上可见,本发明的一些可行的实施方式中,通过适配器对要发送到网络业务节点的第一报文进行处理,形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理。It can be seen that, in some possible implementation manners of the present invention, the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on Business processing.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种网络业务处理方法的流程示意图;FIG. 1 is a schematic flowchart of a network service processing method according to an embodiment of the present disclosure;
图2为本发明实施例提供的另一种网络业务处理方法的流程示意图;2 is a schematic flowchart of another network service processing method according to an embodiment of the present invention;
图3为本发明实施例提供的一种适配器的结构示意图;3 is a schematic structural diagram of an adapter according to an embodiment of the present invention;
图4为本发明实施例提供的另一种适配器的结构示意图;4 is a schematic structural diagram of another adapter according to an embodiment of the present invention;
图5为本发明实施例提供的又一种适配器的结构示意图;FIG. 5 is a schematic structural diagram of still another adapter according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种网络业务处理***的结构示意图;FIG. 6 is a schematic structural diagram of a network service processing system according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种包括SR字段的报文的结构示意图;FIG. 7 is a schematic structural diagram of a packet including an SR field according to an embodiment of the present disclosure;
图8为图6所示网络业务处理***对图7所示结构的报文进行网络业务处理时的交互流程示意图;8 is a schematic diagram of an interaction process when the network service processing system shown in FIG. 6 performs network service processing on a packet of the structure shown in FIG. 7;
图9为本发明实施例提供的另一种网络业务处理***的结构示意图;FIG. 9 is a schematic structural diagram of another network service processing system according to an embodiment of the present disclosure;
图10为本发明实施例提供的一种包括源MAC字段和目的MAC字段的报文的结构示意图;FIG. 10 is a schematic structural diagram of a packet including a source MAC field and a destination MAC field according to an embodiment of the present disclosure;
图11为图9所示网络业务处理***对图10所示结构的报文进行网络业务处理时的交互流程示意图;11 is a schematic diagram of an interaction process when the network service processing system shown in FIG. 9 performs network service processing on a packet of the structure shown in FIG. 10;
图12为本发明实施例提供的又一种网络业务处理***的结构示意图; FIG. 12 is a schematic structural diagram of still another network service processing system according to an embodiment of the present disclosure;
图13为本发明实施例提供的一种包括VLAN ID字段的报文的结构示意图;FIG. 13 is a schematic structural diagram of a packet including a VLAN ID field according to an embodiment of the present disclosure;
图14为图12所示网络业务处理***对图13所示结构的报文进行网络业务处理时的交互流程示意图;FIG. 14 is a schematic diagram showing the interaction process when the network service processing system shown in FIG. 12 performs network service processing on the packet of the structure shown in FIG. 13;
图15为本发明实施例提供的又一种网络业务处理***的结构示意图;FIG. 15 is a schematic structural diagram of still another network service processing system according to an embodiment of the present disclosure;
图16为图15所示网络业务处理***对图13所示结构的报文进行网络业务处理时的交互流程示意图;FIG. 16 is a schematic diagram of the interaction process when the network service processing system shown in FIG. 15 performs network service processing on the packet of the structure shown in FIG. 13;
图17为结构是图6所示网络业务处理***进行网络业务处理时的另一交互流程示意图。FIG. 17 is a schematic diagram of another interaction process when the network service processing system shown in FIG. 6 performs network service processing.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,为本发明实施例提供的一种网络业务处理方法的流程示意图,其中,本发明实施例所述的网络设备用于向适配器发送第一报文,网络设备可以是路由器或者交换机等设备;网络业务控制器用于根据网络业务节点的特性向适配器发送对第一报文或者返回报文进行处理的适配规则,网络业务控制器可以是服务器、PC机、虚拟机、虚拟容器(比如Linux Containers)等设备,适配器用于根据适配规则对收到的第一报文或者返回报文进行处理,适配器可以是路由器、交换机、服务器或PC机或者虚拟机等设备;网络业务节点用于对接收到的报文进行处理或者将处理后的结果生成返回报文进行转发,网络业务节点可以是服务器、PC机、虚拟机、虚拟容器(比如Linux Containers)等设备。网络业务处理方法方法包括:1 is a schematic flowchart of a method for processing a network service according to an embodiment of the present invention. The network device according to the embodiment of the present invention is configured to send a first packet to an adapter, where the network device may be a router or a switch. The network service controller is configured to send an adaptation rule for processing the first packet or the returned packet according to the characteristics of the network service node, where the network service controller may be a server, a PC, a virtual machine, or a virtual container ( For example, Linux Containers and other devices, the adapter is used to process the received first packet or the returned packet according to the adaptation rule. The adapter may be a router, a switch, a server, a PC, or a virtual machine; The network service node may be a server, a PC, a virtual machine, or a virtual container (such as Linux Containers), after processing the received message or forwarding the processed result to generate a return message. The network service processing method includes:
S101,适配器接收从网络设备发来的第一报文;S101. The adapter receives the first packet sent from the network device.
在本发明的实施例中,在第一报文中可能包括网络业务节点不支持的字段、或者需要向网络业务节点屏蔽的字段、或者不需要由网络业务节点进行处理的字段、以及第一报文中可能缺少网络业务节点进行业务处理时必须要有的字段。需要说明的是:不需要由网络业务节点处理的字段包括所述字段对于网络业务 节点来说是可以处理的,但是为了简化网络业务节点,网络业务节点对所述字段不进行处理,由其他设备比如适配器对所述字段进行处理。In the embodiment of the present invention, the first message may include a field that is not supported by the network service node, or a field that needs to be blocked to the network service node, or a field that does not need to be processed by the network service node, and the first report. The text may be missing from the network service node for business processing. It should be noted that the field that does not need to be processed by the network service node includes the field for network service. The node can handle it, but in order to simplify the network service node, the network service node does not process the field, and the field is processed by other devices such as an adapter.
S102,所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。S102. The adapter processes the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node. The first adaptation rule includes: performing performance according to the network service node. Deleting a field that is not supported by the network service node in the first packet or a field that needs to be blocked to the network service node, or modifying a field in the first packet that does not need to be processed by the network service node, or adding a field that is not in the first packet but A field that must be available when a network service node performs business processing.
需要说明的是:在所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文之前,还包括:所述适配器接收从网络业务控制器发来的第一适配规则。It is to be noted that before the adapter processes the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, the method further includes: the adapter receiving the slave network service controller The first adaptation rule sent.
S103,所述适配器将所述第二报文发送给所述网络业务节点进行业务处理。S103. The adapter sends the second packet to the network service node for service processing.
由上可见,通过适配器对要发送到网络业务节点的第一报文进行处理,形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
进一步地,请参阅图2,为本发明提供的另一种网络业务处理方法的流程示意图,在该实施例中网络业务节点对第二报文进行业务处理后生成返回报文,具体地,所述网络业务处理方法包括如下步骤:Further, please refer to FIG. 2, which is a schematic flowchart of another network service processing method according to the present invention. In this embodiment, a network service node performs a service processing on a second packet to generate a return packet. Specifically, The network service processing method includes the following steps:
S201、适配器接收从网络设备发来的第一报文;S201. The adapter receives the first packet sent from the network device.
在本发明的实施例中,在第一报文中可能包括网络业务节点不支持的字段、或者需要向网络业务节点屏蔽的字段、或者不需要由网络业务节点进行处理的字段、以及第一报文中可能缺少网络业务节点进行业务处理时必须要有的字段。需要说明的是:不需要由网络业务节点处理的字段包括所述字段对于网络业务节点来说是可以处理的,但是为了简化网络业务节点,网络业务节点对所述字段不进行处理,由其他设备比如适配器对所述字段进行处理。In the embodiment of the present invention, the first message may include a field that is not supported by the network service node, or a field that needs to be blocked to the network service node, or a field that does not need to be processed by the network service node, and the first report. The text may be missing from the network service node for business processing. It should be noted that the field that does not need to be processed by the network service node includes the field that can be processed by the network service node, but in order to simplify the network service node, the network service node does not process the field, and other devices For example, the adapter processes the field.
S202、所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者 根据网络业务节点的性能在第一报文中添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。S202. The adapter processes the first packet according to the first adaptation rule, and forms a second packet that can be processed by the network service node. The first adaptation rule includes: performing performance according to the network service node. Deleting a field that is not supported by the network service node in the first packet or a field that needs to be blocked to the network service node, or modifying a field in the first packet that does not need to be processed by the network service node, or According to the performance of the network service node, a field that is not included in the first packet but is required to be processed by the network service node in the first packet is added in the first packet.
需要说明的是:在所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文之前,还包括:所述适配器接收从网络业务控制器发来的第一适配规则。It is to be noted that before the adapter processes the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, the method further includes: the adapter receiving the slave network service controller The first adaptation rule sent.
S203、所述适配器将所述第二报文发送给所述网络业务节点进行业务处理。S203. The adapter sends the second packet to the network service node for service processing.
由上可见,通过适配器对要发送到网络业务节点的第一报文进行处理,形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理。It can be seen that the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing.
S204,所述适配器接收网络业务节点对所述第二报文进行业务处理后生成的返回报文。S204. The adapter receives a return message generated by the network service node after performing service processing on the second packet.
具体地,网络业务节点对第二报文进行业务处理后生成返回报文,当需要将返回报文返回时,网络业务节点将返回报文发送到所述适配器。Specifically, the network service node generates a return message after performing the service processing on the second packet, and when the return message needs to be returned, the network service node sends the return message to the adapter.
S205,所述适配器根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文;所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的所述网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。S205. The adapter processes the return packet according to the second adaptation rule to form a third packet for the adapter to forward. The second adaptation rule includes: adding the first packet to the return packet. a field that is not supported by the network service node deleted in an adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or modified in the first packet, in the return message A field that needs to be processed by the network service node, or a field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs service processing.
需要说明的是:在所述适配器根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文之前,还包括:It should be noted that: before the adapter processes the return packet according to the second adaptation rule to form a third packet for the adapter to forward, the method further includes:
所述适配器接收从网络业务控制器发来的第二适配规则。The adapter receives a second adaptation rule sent from a network service controller.
需要说明的是,所述适配器还可以将所述第三报文转发到发送第一报文的网络设备或者其他网络设备。It should be noted that the adapter may further forward the third packet to a network device or other network device that sends the first packet.
可以理解地,适配器传输报文或者传输返回报文时,可以使用网络中转设备比如交换机,接收适配器发来的第一次处理后的第二报文、并将该第二报文转发到网络业务节点;或者接收适配器发来的第三报文、并将该第三报文转发到网络设备。It can be understood that when the adapter transmits the packet or transmits the return packet, the network relay device, such as a switch, can be used to receive the first processed second packet sent by the adapter, and forward the second packet to the network service. The node receives the third packet sent by the adapter and forwards the third packet to the network device.
当然,网络中转设备也可以用于接收网络设备发送的报文,将该报文发送给适配器,或者将适配器发来的返回报文转发给网络设备。 Of course, the network relay device can also be used to receive the packet sent by the network device, send the packet to the adapter, or forward the return packet sent by the adapter to the network device.
需要说明的是,使用网络中转设备对接收到的报文或者返回报文进行转发时,不限于上述的转发形式,还可以为其他形式,只要能实现对报文或者返回报文的转发即可以。It should be noted that, when the network forwarding device is used to forward the received or returned packets, the forwarding mode is not limited to the foregoing forwarding format, and may be in other forms as long as the forwarding of the packet or the returned packet can be implemented. .
由上可见,通过适配器对第一报文进行处理,形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that the first packet is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
请参阅图3,为本发明实施例提供的适配器1的结构示意图,包括:FIG. 3 is a schematic structural diagram of an adapter 1 according to an embodiment of the present invention, including:
第一接收模块11,用于接收从网络设备发来的第一报文。The first receiving module 11 is configured to receive the first packet sent from the network device.
第一处理模块12,用于根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文。The first processing module 12 is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node.
第一发送模块13,用于将所述第二报文发送给网络业务节点进行业务处理。The first sending module 13 is configured to send the second packet to a network service node for service processing.
需要说明的是,适配器还可以包括:第二接收模块14,用于接收从网络业务控制器发来的第一适配规则。所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。It should be noted that the adapter may further include: a second receiving module 14 configured to receive the first adaptation rule sent from the network service controller. The first adaptation rule includes: deleting a field that is not supported by the network service node in the first packet or a field that needs to be blocked to the network service node according to the performance of the network service node, or modifying the network service node that is not required in the first packet. The field to be processed, or a field that must be available when the network service node does not have the first message but does not have the network service node for business processing.
需要说明的是:不需要由网络业务节点处理的字段包括所述字段对于网络业务节点来说是可以处理的,但是为了简化网络业务节点,网络业务节点对所述字段不进行处理,由其他设备比如适配器对所述字段进行处理。It should be noted that the field that does not need to be processed by the network service node includes the field that can be processed by the network service node, but in order to simplify the network service node, the network service node does not process the field, and other devices For example, the adapter processes the field.
由上可见,通过适配器对要发送到网络业务节点的第一报文进行处理后,形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that after the first packet to be sent to the network service node is processed by the adapter, the second packet that can be processed by the network service node is formed, so that the network service node can focus on the service processing and simplify the network service node.
请参阅图4,为本发明实施例提供的适配器的另一结构示意图,所述适配器2包括:FIG. 4 is another schematic structural diagram of an adapter according to an embodiment of the present invention. The adapter 2 includes:
第一接收模块21,用于接收从网络设备发来的第一报文;The first receiving module 21 is configured to receive the first packet sent from the network device.
第一处理模块22,用于根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务 节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The first processing module 22 is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, where the first adaptation rule includes: according to the network service The performance of the node deletes the field in the first packet that is not supported by the network service node or needs to be sent to the network service. The field masked by the node, or the field in the first packet that does not need to be processed by the network service node, or the field that is not included in the first packet but must be in the network service node for service processing;
第一发送模块23,用于将所述第二报文发送给网络业务节点进行业务处理;The first sending module 23 is configured to send the second packet to a network service node for service processing;
第二接收模块24,用于接收从网络业务控制器发来的第一适配规则和第二适配规则;a second receiving module 24, configured to receive a first adaptation rule and a second adaptation rule sent from a network service controller;
第三接收模块25,用于接收网络业务节点对所述第二报文进行业务处理后生成的返回报文;The third receiving module 25 is configured to receive a return message generated by the network service node after performing service processing on the second packet;
第二处理模块26,用于根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文;所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。The second processing module 26 is configured to process the return packet according to the second adaptation rule to form a third packet for forwarding by the adapter; and the second adaptation rule includes: adding in the return packet a field that is not supported by the network service node deleted in the first adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or modified in the first packet, in the return message A field that does not need to be processed by the network service node, or a field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs service processing.
可以理解的是,适配器2还可以包括第二发送模块27,用于将第三报文转发到发送第一报文的网络设备或者其他网络设备。It can be understood that the adapter 2 can further comprise a second sending module 27 for forwarding the third message to the network device or other network device that sends the first message.
由上可见,本发明的一些可行的实施方式中,通过适配器对要发送到网络业务节点的报文进行处理,形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that, in some possible implementation manners of the present invention, the packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing. , simplifying network service nodes.
请参见图5,图5为本发明适配器的另一实施例的结构组成示意图。所述实施例包括至少一个接收器、处理器和发送单元,其中所述接收器与第一接收模块21、第二接收模块24和第三接收模块25的功能相同,在此不进行赘述。处理器与第一处理模块22和第二处理模块26的功能相同,在此不进行赘述。本实施例中的发送单元与第一发送单元23和第二发送单元27的功能相同,在此不进行赘述。Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another embodiment of an adapter according to the present invention. The embodiment includes at least one receiver, a processor, and a transmitting unit, wherein the receiver has the same functions as the first receiving module 21, the second receiving module 24, and the third receiving module 25, and details are not described herein. The functions of the processor are the same as those of the first processing module 22 and the second processing module 26, and are not described herein. The transmitting unit in this embodiment has the same functions as the first transmitting unit 23 and the second transmitting unit 27, and details are not described herein.
具体地,本实施例中接收器用于接收网络设备发送的第一报文,以及网络业务控制器发送的适配规则,处理器对接收器接收的第一报文根据适配规则进行处理,发送单元将处理器处理后的网络业务节点可以处理的第二报文发送到网络业务节点。当网络业务节点生产返回报文时,接收单元接收返回报文发到 处理器进行处理得到用于发送单元转发的第三报文,第三报文通过发送单元转发到网络设备。Specifically, in the embodiment, the receiver is configured to receive the first packet sent by the network device, and the adaptation rule sent by the network service controller, where the processor processes, according to the adaptation rule, the first packet received by the receiver, and sends the packet. The unit sends the second packet that the network service node processed by the processor can process to the network service node. When the network service node produces a return message, the receiving unit receives the return message and sends it to The processor performs processing to obtain a third packet for forwarding by the sending unit, and the third packet is forwarded to the network device by the sending unit.
由上可见,通过适配器对要发送到网络业务节点的报文进行处理形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that the processing of the packet to be sent to the network service node by the adapter forms a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
图6为本发明实施例提供的一种网络业务处理***的结构示意图。该网络业务处理***3包括:FIG. 6 is a schematic structural diagram of a network service processing system according to an embodiment of the present invention. The network service processing system 3 includes:
网络设备31、网络业务控制器32、网络业务节点33和适配器34、其中,a network device 31, a network service controller 32, a network service node 33, and an adapter 34, wherein
所述网络设备31,用于向所述适配器34发送第一报文;The network device 31 is configured to send a first packet to the adapter 34.
所述网络业务控制器32,用于向所述适配器34发送适配规则;The network service controller 32 is configured to send an adaptation rule to the adapter 34.
所述网络业务节点33,用于对所述适配器34发来的对第一报文按照适配规则处理后形成的第二报文进行业务处理;The network service node 33 is configured to perform service processing on the second packet formed by the adapter 34 and processed by the adaptation rule according to the adaptation rule;
所述适配器34,用于接收从网络设备31发来的第一报文、接收从网络业务控制器32发来的适配规则、根据所述适配规则对第一报文进行处理形成网络业务节点33可处理的第二报文,以及将所述第二报文发送给网络业务节点33进行业务处理。The adapter 34 is configured to receive the first packet sent from the network device 31, receive the adaptation rule sent from the network service controller 32, and process the first packet according to the adaptation rule to form a network service. The second packet that the node 33 can process, and the second packet are sent to the network service node 33 for service processing.
进一步地,所述网络业务节点33,还用于对第二报文进行业务处理后生成返回报文,并将返回报文发送给所述适配器34;Further, the network service node 33 is further configured to perform a service processing on the second packet to generate a return packet, and send the return packet to the adapter 34;
所述适配器34,还用于接收网络业务节点33进行业务处理后生成的返回报文、对所述返回报文进行处理形成用于适配器进行转发的第三报文、以及将第三报文转发到网络设备31,需要说明的是第三报文转发到的网络设备与发送第一报文的网络设备可以为同一个网络设备,也可以为不同的网络设备。The adapter 34 is further configured to receive a return message generated by the network service node 33 after performing service processing, process the return message to form a third message for the adapter to forward, and forward the third message. To the network device 31, it should be noted that the network device to which the third packet is forwarded and the network device that sends the first packet may be the same network device or different network devices.
进一步地,所述网络业务处理***还可以包括网络中转设备:Further, the network service processing system may further include a network relay device:
所述网络中转设备,用于接收所述适配器第一次处理后的第二报文,并将该第二报文转发给所述网络业务节点。The network relay device is configured to receive the second packet processed by the adapter for the first time, and forward the second packet to the network service node.
所述适配器还用于将所述第一次处理后的网络业务节点可处理的第一报文发送给网络中转设备。The adapter is further configured to send the first packet that can be processed by the first processed network service node to the network relay device.
进一步地,所述适配器,还用于将第二次处理后的第三报文发送到网络中转设备; Further, the adapter is further configured to send the third processed message to the network relay device;
所述网络中转设备,还用于接收所述适配器发送的第三报文,并将该第三报文转发到网络设备。The network relay device is further configured to receive a third packet sent by the adapter, and forward the third packet to a network device.
由上可见,通过适配器对要发送到网络业务节点的报文进行第一次处理形成网络业务节点可以处理的报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that the first processing of the packet to be sent to the network service node by the adapter forms a message that the network service node can process, so that the network service node can focus on the service processing and simplify the network service node.
在另一实施例中,报文如图7所示,包括字段SR,其中SR为一个数据结构,具体如下:In another embodiment, the message, as shown in FIG. 7, includes a field SR, where SR is a data structure, as follows:
Struc service_routing_header{Struc service_routing_header{
Uint16 id;Uint16 id;
Uint16 resv;Uint16 resv;
}_packed;}_packed;
图8为图6所示网络业务处理***对图7所示结构的报文进行网络业务处理时,网络设备31、网络业务控制器32、适配器34和网络业务节点33的交互流程示意图,包括如下步骤:FIG. 8 is a schematic diagram of the interaction process of the network device 31, the network service controller 32, the adapter 34, and the network service node 33 when the network service processing system shown in FIG. 6 performs network service processing on the packet of the structure shown in FIG. step:
S301、网络业务控制器32向适配器34发送适配规则;S301. The network service controller 32 sends an adaptation rule to the adapter 34.
具体地,在这个实施例中,假设SR字段属于需要向网络业务节点屏蔽的字段,即:使网络业务节点看不到SR字段。所述适配规则包括第一适配规则和第二适配规则。第一适配规则包括删除第一报文中的SR字段;第二适配规则包括在返回报文中添加SR字段。Specifically, in this embodiment, it is assumed that the SR field belongs to a field that needs to be masked to the network service node, that is, the network service node does not see the SR field. The adaptation rule includes a first adaptation rule and a second adaptation rule. The first adaptation rule includes deleting the SR field in the first packet; the second adaptation rule includes adding an SR field in the return message.
S302、网络设备31向适配器34发送带业务标识的第一报文;S302. The network device 31 sends the first packet with the service identifier to the adapter 34.
具体地,所述第一报文如图7所述,其中的SR字段是需要向网络业务节点屏蔽的字段。Specifically, the first packet is as shown in FIG. 7, where the SR field is a field that needs to be blocked to the network service node.
S303、适配器34根据所述适配规则对第一报文进行处理形成网络业务节点可处理的第二报文;S303. The adapter 34 processes the first packet according to the adaptation rule to form a second packet that can be processed by the network service node.
具体地,适配器34根据第一适配规则删除报文中的SR字段,删除SR字段后的报文是网络业务节点33可以处理的第二报文。Specifically, the adapter 34 deletes the SR field in the packet according to the first adaptation rule, and the packet after deleting the SR field is the second packet that the network service node 33 can process.
S304、适配器34将所述第二报文发送给所述网络业务节点33进行业务处理。S304. The adapter 34 sends the second packet to the network service node 33 for service processing.
S305、网络业务节点33对接收到的第二报文进行业务处理,生成返回报文; S305. The network service node 33 performs service processing on the received second packet to generate a return packet.
S306、网络业务节点33将返回报文发送给适配器34;S306, the network service node 33 sends the return message to the adapter 34;
S307、适配器34根据适配规则对返回报文进行处理,生成用于适配器进行转发的第三报文;S307. The adapter 34 processes the returned packet according to the adaptation rule, and generates a third packet for the adapter to forward.
具体地,适配器34根据第二适配规则将SR字段添加到返回报文中。Specifically, the adapter 34 adds the SR field to the return message according to the second adaptation rule.
S308、适配器34将第三报文发送给网络设备31。S308. The adapter 34 sends the third packet to the network device 31.
需要说明的是,上述各步骤进行数据传输时,还可以进一步地包括中转步骤,比如网络业务控制器32向适配器34发送适配规则的步骤,其中的适配规则可以不是网络业务控制器32直接发送到适配器34,而是网络业务控制器32先把适配规则发给一个中转装置,比如网络控制器,然后由网络控制器将适配规则转发到适配器34。网络控制器可以是网管***或Openflow控制器等。It should be noted that, when the foregoing steps perform data transmission, the method further includes a transit step, such as the step of the network service controller 32 sending an adaptation rule to the adapter 34, where the adaptation rule may not be directly the network service controller 32. Sended to adapter 34, network service controller 32 first sends the adaptation rules to a relay device, such as a network controller, which then forwards the adaptation rules to adapter 34. The network controller can be a network management system or an Openflow controller.
由上可见,通过适配器对要发送到网络业务节点的第一报文进行第一次处理形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that the first processing of the first packet to be sent to the network service node by the adapter forms a second packet that can be processed by the network service node, so that the network service node can focus on the service processing, simplifying the network service node. .
请参阅图10,为另一个实施例中第一报文的结构示意图,在该实施例中,假设源MAC字段和目的MAC字段属于不需要由网络业务节点进行处理的字段。Referring to FIG. 10, it is a schematic structural diagram of a first packet in another embodiment. In this embodiment, it is assumed that a source MAC field and a destination MAC field belong to a field that does not need to be processed by a network service node.
需要说明的是:不需要由网络业务节点处理的字段,包括所述字段对于网络业务节点来说是可以处理的,但是为了简化网络业务节点,网络业务节点对所述字段不进行处理,由其他设备比如适配器对所述字段进行处理。It should be noted that the field that is not processed by the network service node, including the field, can be processed for the network service node, but in order to simplify the network service node, the network service node does not process the field, and other A device such as an adapter processes the field.
在该实施例中,所述源MAC字段和目的MAC字段对于网络业务节点来说是可以处理的,但是为了简化网络业务节点,将对源MAC字段及目的MAC字段的处理由适配器来完成。In this embodiment, the source MAC field and the destination MAC field are handleable for the network service node, but to simplify the network service node, the processing of the source MAC field and the destination MAC field is done by the adapter.
图11为图9所示网络业务处理***对图10所示结构的报文进行网络业务处理时,网络设备41、网络业务控制器42、网络业务节点43、适配器44和网络中转设备45的交互流程示意图,主要包括:11 is an interaction between the network device 41, the network service controller 42, the network service node 43, the adapter 44, and the network relay device 45 when the network service processing system shown in FIG. 9 performs network service processing on the packet of the structure shown in FIG. The schematic diagram of the process mainly includes:
S401、网络业务控制器42向适配器44发送适配规则;S401. The network service controller 42 sends an adaptation rule to the adapter 44.
具体地,所述适配规则包括第一适配规则和第二适配规则。第一适配规则包括当源MAC的值为某个值,比如当源MAC的值为11-22-33-44-55-66时,将第 一报文的目的MAC的值修改为网络业务节点的MAC地址值,比如网络业务节点的MAC值为22-33-44-55-66-77时,第一适配规则就是:当源MAC的值为11-22-33-44-55-66时,将报文的目的MAC值改为22-33-44-55-66-77;Specifically, the adaptation rule includes a first adaptation rule and a second adaptation rule. The first adaptation rule includes when the value of the source MAC is a certain value, for example, when the value of the source MAC is 11-22-33-44-55-66, The value of the destination MAC of a packet is modified to the MAC address value of the network service node. For example, when the MAC value of the network service node is 22-33-44-55-66-77, the first adaptation rule is: when the source MAC is If the value is 11-22-33-44-55-66, change the destination MAC address of the packet to 22-33-44-55-66-77.
第二适配规则包括,将返回报文的目的MAC值修改为11-22-33-44-55-66。The second adaptation rule includes modifying the destination MAC value of the returned packet to 11-22-33-44-55-66.
S402、网络设备41向适配器44发送第一报文;S402. The network device 41 sends the first packet to the adapter 44.
具体地,第一报文的结构如图10所述。Specifically, the structure of the first message is as shown in FIG.
S403、根据适配规则对第一报文进行处理,形成第二报文;S403. Process the first packet according to the adaptation rule to form a second packet.
适配器44根据所述适配规则对所述第一报文进行处理形成网络业务节点可处理的第二报文;The adapter 44 processes the first packet according to the adaptation rule to form a second packet that can be processed by the network service node;
具体地,适配器44根据第一适配规则,当源MAC的值为11-22-33-44-55-66时,将报文中的目的MAC值修改为22-33-44-55-66-77,处理后的报文是网络业务节点33可以处理的第二报文。Specifically, the adapter 44 modifies the destination MAC value in the packet to 22-33-44-55-66 when the value of the source MAC is 11-22-33-44-55-66 according to the first adaptation rule. -77. The processed message is a second message that the network service node 33 can process.
S404、适配器44将所第二报文发送给所述网络中转设备45;S404, the adapter 44 sends the second message to the network relay device 45;
S405、网络中转设备45将第二报文转发给网络业务节点43;S405, the network relay device 45 forwards the second packet to the network service node 43;
S406、网络业务节点43对接收到的第二报文进行业务处理,生成返回报文;S406. The network service node 43 performs service processing on the received second packet to generate a return packet.
S407、网络业务节点43将返回报文发送给适配器44;S407, the network service node 43 sends a return message to the adapter 44;
S408、适配器44根据适配规则对返回报文进行处理,生成用于适配器44进行转发的第三报文;S408. The adapter 44 processes the returned packet according to the adaptation rule, and generates a third packet for the adapter 44 to forward.
具体地,适配器44根据第二适配规则将返回报文的目的MAC值修改为11-22-33-44-55-66。Specifically, the adapter 44 modifies the destination MAC value of the return message to 11-22-33-44-55-66 according to the second adaptation rule.
S409、适配器44将第三报文发送给网络中转设备45;S409, the adapter 44 sends the third message to the network relay device 45;
S410、由网络中转设备45根据目的MAC值将第三报文转发到网络设备41。S410. The network relay device 45 forwards the third packet to the network device 41 according to the destination MAC value.
需要说明的是,上述各步骤进行数据传输时,还可以进一步地包括中转步骤,比如网络业务控制器42向适配器44发送适配规则的步骤,其中的适配规则可以不是网络业务控制器42直接发送到适配器44,而是网络业务控制器42先把适配规则发给一个中转装置,比如网络控制器,然后由网络控制器将适配规则转发到适配器44。网络控制器可以是网管***或Openflow控制器等。It should be noted that, when the foregoing steps perform data transmission, the method further includes a transit step, such as the step of the network service controller 42 sending an adaptation rule to the adapter 44, where the adaptation rule may not be directly the network service controller 42. Sended to adapter 44, network service controller 42 first sends the adaptation rules to a relay device, such as a network controller, which then forwards the adaptation rules to adapter 44. The network controller can be a network management system or an Openflow controller.
由上可见,通过适配器对要发送到网络业务节点的报文进行第一次处理形成网络业务节点可以处理的报文,使得网络业务节点可以聚焦于业务处理,简 化了网络业务节点。It can be seen that the first processing of the packet to be sent to the network service node by the adapter forms a message that the network service node can process, so that the network service node can focus on the service processing, The network service node is transformed.
请参见图13,为另一实施例中第一报文的结构示意图,在该实施例中,假设VLAN ID字段属于网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段。Referring to FIG. 13, it is a schematic structural diagram of a first packet in another embodiment. In this embodiment, it is assumed that a VLAN ID field belongs to a field that is not supported by a network service node or a field that needs to be blocked to a network service node.
图14为图12所示网络业务处理***对图13所示结构的第一报文进行网络业务处理时,网络设备51、网络业务控制器52、网络业务节点53、适配器54和网络中转设备55的交互流程示意图,主要包括:14 is a network device 51, a network service controller 52, a network service node 53, an adapter 54, and a network relay device 55 when the network service processing system shown in FIG. 12 performs network service processing on the first packet of the structure shown in FIG. The schematic diagram of the interaction process mainly includes:
S501、网络业务控制器52向网络中转设备55发送转发规则;S501. The network service controller 52 sends a forwarding rule to the network relay device 55.
具体地,在本实施例中,所述转发规则包括:将网络设备51发来的VLAN ID的值为100的报文转发到适配器54;Specifically, in this embodiment, the forwarding rule includes: forwarding a packet with a VLAN ID value of 100 sent by the network device 51 to the adapter 54;
S502、网络业务控制器52向适配器54发送适配规则;S502. The network service controller 52 sends an adaptation rule to the adapter 54.
具体地所述适配规则包括第一适配规则和第二适配规则。其中,第一适配规则包括,当VLAN ID的值为100时,删除报文中的VLAN ID字段;第二适配规则包括:适配器在接收的返回报文中添加VLAN ID字段,且将VLAN ID的值设置为100。Specifically, the adaptation rule includes a first adaptation rule and a second adaptation rule. The first adaptation rule includes: when the value of the VLAN ID is 100, the VLAN ID field in the packet is deleted; the second adaptation rule includes: the adapter adds a VLAN ID field in the received return packet, and the VLAN is added. The value of the ID is set to 100.
S503、网络设备51将包含VLAN ID字段且VLAN ID的值为100的第一报文发送到网络中转设备55;S503, the network device 51 sends a first packet containing a VLAN ID field and a VLAN ID value of 100 to the network relay device 55;
S504、网络中转设备55将接收的第一报文发送到适配器54;S504, the network relay device 55 sends the received first message to the adapter 54;
S505、适配器54根据适配规则对第一报文进行处理,生成第二报文;S505. The adapter 54 processes the first packet according to the adaptation rule to generate a second packet.
具体地,根据第一次适配规则,删除第一报文中的VLAN ID字段;Specifically, the VLAN ID field in the first packet is deleted according to the first adaptation rule.
S506、适配器54将第二报文发送到网络业务节点53;S506, the adapter 54 sends the second message to the network service node 53;
S507、网络业务节点53对接收的第二报文进行业务处理,生成返回报文;S507. The network service node 53 performs service processing on the received second packet to generate a return packet.
S508、网络业务节点53将返回报文发送到适配器54;S508, the network service node 53 sends a return message to the adapter 54;
S509、适配器54根据适配规则对返回报文进行第二次处理,生成第三报文;S509. The adapter 54 performs a second processing on the returned packet according to the adaptation rule to generate a third packet.
具体地,在返回报文中添加VLAN ID字段,并将VLAN ID的值设置为100;Specifically, the VLAN ID field is added to the return packet, and the value of the VLAN ID is set to 100.
S510、适配器54将第二次处理后的返回报文发送到网络中转设备55;S510, the adapter 54 sends the second processed return message to the network relay device 55;
S511、网络中转设备55将接收到的第三报文转发到网络设备51。S511. The network relay device 55 forwards the received third packet to the network device 51.
需要说明的是,上述各步骤进行数据传输时,还可以进一步地包括中转步 骤,比如网络业务控制器52向适配器54发送适配规则的步骤,其中的适配规则可以是网络业务控制器52不直接发送到适配器54,而是网络业务控制器52先把适配规则发给一个中转装置,比如网络控制器,然后由网络控制器将适配规则转发到适配器54。网络控制器可以是网管***或Openflow控制器等。It should be noted that, when the foregoing steps perform data transmission, the method further includes a relay step. For example, the network service controller 52 sends an adaptation rule to the adapter 54, wherein the adaptation rule may be that the network service controller 52 does not directly send to the adapter 54, but the network service controller 52 first sends the adaptation rule. A relay device, such as a network controller, is then forwarded by the network controller to the adapter 54. The network controller can be a network management system or an Openflow controller.
由上可见,通过适配器对要发送到网络业务节点的第一报文进行处理形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理,简化了网络业务节点。It can be seen that the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing and simplify the network service node.
在另一实施例中,第一报文的结构如图13所示,在该实施例中,VLAN ID字段是网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段。In another embodiment, the structure of the first message is as shown in FIG. 13. In this embodiment, the VLAN ID field is a field that is not supported by the network service node or a field that needs to be blocked to the network service node.
图16为图15所示网络业务处理***对图13所示结构的报文进行网络业务处理时,网络设备61、网络业务控制器62、网络中转设备63、适配器64和网络业务节点65的交互流程示意图,主要包括:16 is an interaction between the network device 61, the network service controller 62, the network relay device 63, the adapter 64, and the network service node 65 when the network service processing system shown in FIG. 15 performs network service processing on the packet of the structure shown in FIG. The schematic diagram of the process mainly includes:
S601、网络业务控制器62向网络中转设备63发送转发规则;S601. The network service controller 62 sends a forwarding rule to the network relay device 63.
具体地,在本实施例中,所述转发规则包括:将网络设备61发来的VLAN ID的值为100的报文转发到适配器64、将适配器64发来的且没有VLAN ID字段的报文转发到网络业务节点65、将从网络业务节点65发来的返回报文转发到适配器64、将由适配器64发来的且VLAN ID的值为100的报文转发给网络设备61;Specifically, in this embodiment, the forwarding rule includes: forwarding a packet with a VLAN ID value of 100 sent by the network device 61 to the adapter 64, and sending the packet with the adapter 64 without the VLAN ID field. Forwarding to the network service node 65, forwarding the return message sent from the network service node 65 to the adapter 64, forwarding the packet sent by the adapter 64 and having a VLAN ID of 100 to the network device 61;
S602、网络业务控制器62向适配器64发送适配规则;S602. The network service controller 62 sends an adaptation rule to the adapter 64.
具体地所述适配规则包括第一适配规则和第二适配规则。其中,第一适配规则包括,当VLAN ID的值为100时,删除报文中的VLAN ID字段;第二适配规则包括:适配器在接收的返回报文中添加VLAN ID字段,且将VLAN ID的值设置为100。Specifically, the adaptation rule includes a first adaptation rule and a second adaptation rule. The first adaptation rule includes: when the value of the VLAN ID is 100, the VLAN ID field in the packet is deleted; the second adaptation rule includes: the adapter adds a VLAN ID field in the received return packet, and the VLAN is added. The value of the ID is set to 100.
S603、网络设备61将包含VLAN ID字段且VLAN ID的值为100的第一报文发送到网络中转设备63;S603, the network device 61 sends a first packet containing a VLAN ID field and a VLAN ID value of 100 to the network relay device 63;
S604、网络中转设备63将接收的第一报文发送到适配器64;S604, the network relay device 63 sends the received first message to the adapter 64;
S605、适配器64根据适配规则对第一报文进行处理,生成第二报文;S605. The adapter 64 processes the first packet according to the adaptation rule to generate a second packet.
具体地,根据第一次适配规则,删除报文中的VLAN ID字段;Specifically, the VLAN ID field in the packet is deleted according to the first adaptation rule.
S606、适配器64将第二报文发送到网络中转设备63; S606, the adapter 64 sends the second message to the network relay device 63;
S607、网络中转设备63将第二报文转发到网络业务节点65;S607, the network relay device 63 forwards the second packet to the network service node 65;
S608、网络业务节点65对接收到的第二报文进行业务处理,生成返回报文;S608. The network service node 65 performs service processing on the received second packet to generate a return packet.
S609、网络业务节点65将返回报文发送到网络中转设备63;S609, the network service node 65 sends the return message to the network relay device 63;
S610、网络中转设备63将返回报文发送到适配器64;S610, the network relay device 63 sends a return message to the adapter 64;
S611、适配器64根据适配规则对返回报文进行第二次处理,生成第三报文;S611. The adapter 64 performs a second processing on the returned packet according to the adaptation rule to generate a third packet.
具体地,在返回报文中添加VLAN ID字段,并将VLAN ID的值设置为100;Specifically, the VLAN ID field is added to the return packet, and the value of the VLAN ID is set to 100.
S612、适配器64将第三报文发送到网络中转设备63;S612, the adapter 64 sends the third message to the network relay device 63;
S613、网络中转设备63将第三报文发送到网络设备61。S613. The network relay device 63 sends the third packet to the network device 61.
需要说明的是,上述各步骤进行数据传输时,还可以进一步地包括中转步骤,比如网络业务控制器62向适配器64发送适配规则的步骤,其中的适配规则可以不是网络业务控制器62直接发送到适配器64,而是网络业务控制器62先把适配规则发给一个中转装置,比如网络控制器,然后由网络控制器将适配规则转发到适配器64。网络控制器可以是网管***或Openflow控制器等。It should be noted that, when the foregoing steps perform data transmission, the method further includes a transit step, such as the step of the network service controller 62 sending an adaptation rule to the adapter 64, where the adaptation rule may not be directly the network service controller 62. Sended to adapter 64, network service controller 62 first sends the adaptation rules to a relay device, such as a network controller, which then forwards the adaptation rules to adapter 64. The network controller can be a network management system or an Openflow controller.
由上可见,通过适配器对要发送到网络业务节点的第一报文进行处理形成网络业务节点可以处理的第二报文,使得网络业务节点可以聚焦于业务处理。It can be seen that the first packet to be sent to the network service node is processed by the adapter to form a second packet that can be processed by the network service node, so that the network service node can focus on the service processing.
请参阅图17,图17为图6所示网络业务处理***进行网络业务处理时的另一交互流程示意图。在该实施例中,网络业务节点33具有如下特点:网络业务节点33进行业务处理时,在报文中必须要有VLAN ID字段,网络业务节点33才能进行业务处理。在该实施例中由网络设备31发送的第一报文中不包括VLAN ID字段。具体流程包括如下步骤:Please refer to FIG. 17. FIG. 17 is a schematic diagram of another interaction process when the network service processing system shown in FIG. 6 performs network service processing. In this embodiment, the network service node 33 has the following characteristics: When the network service node 33 performs service processing, the VLAN ID field must be present in the packet, and the network service node 33 can perform service processing. The VLAN ID field is not included in the first message sent by the network device 31 in this embodiment. The specific process includes the following steps:
S701、网络业务控制器32向适配器34发送适配规则;S701. The network service controller 32 sends an adaptation rule to the adapter 34.
所述适配规则包括,第一适配规则和第二适配规则。其中第一适配规则包括:根据网络业务节点33的特性,当网络设备31发送给适配器34的第一报文不包含VLAN ID字段时,在第一报文中添加VLAN ID字段;第二适配规则包括:在返回报文中删除在第一适配规则中添加的VLAN ID字段。The adaptation rule includes a first adaptation rule and a second adaptation rule. The first adaptation rule includes: adding, according to the characteristics of the network service node 33, the VLAN ID field in the first packet when the first packet sent by the network device 31 to the adapter 34 does not include the VLAN ID field; The matching rule includes: deleting the VLAN ID field added in the first adaptation rule in the return message.
S702、网络设备31向适配器34发送第一报文;所述第一报文中的字段不报VLAN ID字段;S702. The network device 31 sends a first packet to the adapter 34. The field in the first packet does not report the VLAN ID field.
S703、适配器34根据第一适配规则在第一报文中添加VLAN ID字段,生 成第二报文;S703. The adapter 34 adds a VLAN ID field to the first packet according to the first adaptation rule. Into the second message;
S704、适配器34将所述第二报文发送给网络业务节点33;S704, the adapter 34 sends the second packet to the network service node 33;
S705、网络业务节点33对第二报文进行业务处理,生成返回报文;S705: The network service node 33 performs service processing on the second packet to generate a return packet.
S706、网络业务节点33将返回报文发送给适配器34;S706, the network service node 33 sends the return message to the adapter 34;
S707、适配器34根据第二适配规则在返回报文中删除在第一适配规则中添加的VLAN ID字段,生成第三报文;S707. The adapter 34 deletes the VLAN ID field added in the first adaptation rule in the return packet according to the second adaptation rule, to generate a third packet.
S708、适配器34将第三报文发送到网络设备31。S708. The adapter 34 sends the third message to the network device 31.
本实施例通过在第一报文中添加第一报文中缺少的且网络业务节点进行业务处理时必须要有的字段,使得经过处理后的第二报文成为网络业务节点可以处理的报文,使得网络业务节点可以聚焦于业务处理。In this embodiment, a field that is required in the first packet and that is required to be processed by the network service node is added in the first packet, so that the processed second packet becomes a packet that can be processed by the network service node. So that network service nodes can focus on business processing.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种网络业务处理方法,其特征在于,包括:A network service processing method, comprising:
    适配器接收从网络设备发来的第一报文;The adapter receives the first message sent from the network device;
    所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The adapter processes the first packet according to the first adaptation rule, and forms a second packet that can be processed by the network service node. The first adaptation rule includes: deleting the first performance rule according to the performance of the network service node. A field in the message that is not supported by the network service node or a field that needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, or a network service that is not included in the first packet but is added A field that must be available when a node performs business processing;
    所述适配器将所述第二报文发送给所述网络业务节点进行业务处理。The adapter sends the second packet to the network service node for service processing.
  2. 如权利要求1所述的网络业务处理方法,其特征在于,在所述适配器根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文之前,还包括:The network service processing method according to claim 1, wherein the first packet is processed by the adapter according to the first adaptation rule to form a second packet that can be processed by the network service node, and include:
    所述适配器接收从网络业务控制器发来的第一适配规则。The adapter receives a first adaptation rule sent from a network service controller.
  3. 如权利要求1所述的网络业务处理方法,其特征在于,所述网络业务处理方法还包括:The network service processing method according to claim 1, wherein the network service processing method further comprises:
    所述适配器接收网络业务节点对所述第二报文进行业务处理后生成的返回报文;Receiving, by the adapter, a return message generated by the network service node after performing service processing on the second packet;
    所述适配器根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文;所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。The adapter processes the return packet according to the second adaptation rule to form a third packet for the adapter to forward; the second adaptation rule includes: adding the first suitable in the return packet A field that is not supported by the network service node deleted in the rule, or a field that needs to be masked to the network service node deleted in the first adaptation rule, or a network service node that is not required to be modified in the first packet. The field to be processed, or the field that is not included in the first packet added in the first adaptation rule but must be available when the network service node performs business processing.
  4. 如权利要求3所述的网络业务处理方法,其特征在于,在所述适配器根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报 文之前,还包括:The network service processing method according to claim 3, wherein the return packet is processed by the adapter according to the second adaptation rule to form a third report for the adapter to forward Before the article, it also includes:
    所述适配器接收从网络业务控制器发来的第二适配规则。The adapter receives a second adaptation rule sent from a network service controller.
  5. 一种适配器,其特征在于,包括:An adapter, comprising:
    第一接收模块,用于接收从网络设备发来的第一报文;a first receiving module, configured to receive a first packet sent from a network device;
    第一处理模块,用于根据第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The first processing module is configured to process the first packet according to the first adaptation rule to form a second packet that can be processed by the network service node, where the first adaptation rule includes: according to the network service node The performance of deleting the field that is not supported by the network service node in the first packet or the field that needs to be blocked to the network service node, or modifying the field in the first packet that does not need to be processed by the network service node, or adding the first packet However, the network service node must have a field for business processing;
    第一发送模块,用于将所述第二报文发送给网络业务节点进行业务处理。The first sending module is configured to send the second packet to a network service node for service processing.
  6. 如权利要求5所述的适配器,其特征在于,所述适配器还包括The adapter of claim 5 wherein said adapter further comprises
    第二接收模块,用于接收从网络业务控制器发来的第一适配规则。The second receiving module is configured to receive a first adaptation rule sent from the network service controller.
  7. 如权利要求5所述的适配器,其特征在于,所述适配器还包括:The adapter of claim 5 wherein said adapter further comprises:
    第三接收模块,用于接收网络业务节点对所述第二报文进行业务处理后生成的返回报文;a third receiving module, configured to receive a return message generated by the network service node after performing service processing on the second packet;
    第二处理模块,用于根据第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文;所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的所述网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段。a second processing module, configured to process the returned packet according to the second adaptation rule to form a third packet for forwarding by the adapter; and the second adaptation rule includes: adding the a field that is not supported by the network service node deleted in the first adaptation rule, or a field that needs to be blocked to the network service node deleted in the first adaptation rule, or the first message is modified in the return message. A field that does not need to be processed by the network service node, or a field that is not included in the first packet added in the first adaptation rule but must be present when the network service node performs service processing.
  8. 如权利要求7所述的适配器,其特征在于,The adapter of claim 7 wherein:
    所述第二接收模块还用于接收从网络业务控制器发来的第二适配规则。The second receiving module is further configured to receive a second adaptation rule sent from the network service controller.
  9. 一种网络业务处理***,其特征在于,包括:网络业务控制器、网络设 备、适配器和网络业务节点、其中,A network service processing system, comprising: a network service controller and a network design Backup, adapter, and network service nodes, among them,
    所述网络业务控制器,用于向所述适配器发送第一适配规则;其中,所述第一适配规则包括:根据网络业务节点的性能删除第一报文中网络业务节点不支持的字段或者需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者添加第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The network service controller is configured to send a first adaptation rule to the adapter, where the first adaptation rule includes: deleting a field that is not supported by the network service node in the first packet according to the performance of the network service node Or a field that needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, or a field that is not included in the first packet but that is required to be processed by the network service node;
    所述网络设备,用于向所述适配器发送第一报文;The network device is configured to send a first packet to the adapter;
    所述适配器,用于接收从网络业务控制器发来的所述第一适配规则、以及接收从网络设备发来的第一报文、并根据所述第一适配规则对所述第一报文进行处理,形成网络业务节点可处理的第二报文,以及将所述第二报文发送给网络业务节点进行业务处理;The adapter is configured to receive the first adaptation rule sent from a network service controller, and receive a first packet sent from a network device, and compare the first packet according to the first adaptation rule. The packet is processed to form a second packet that can be processed by the network service node, and the second packet is sent to the network service node for service processing;
    所述网络业务节点,用于对所述适配器发来的第二报文进行业务处理。The network service node is configured to perform service processing on the second packet sent by the adapter.
  10. 如权利要求9所述的网络业务处理***,其特征在于,A network service processing system according to claim 9, wherein:
    所述网络业务节点,还用于对第二报文进行业务处理后生成返回报文,并将返回报文发送给所述适配器;The network service node is further configured to: after performing service processing on the second packet, generate a return packet, and send the return packet to the adapter;
    所述网络业务控制器,还用于向所述适配器发送第二适配规则;其中,所述第二适配规则包括:在返回报文中添加所述第一适配规则中删除的所述网络业务节点不支持的字段、或者在返回报文中添加在第一适配规则中删除的需要向网络业务节点屏蔽的字段,或者修改第一报文中不需要网络业务节点进行处理的字段,或者删除在第一适配规则中添加的第一报文中没有的但是网络业务节点进行业务处理时必须要有的字段;The network service controller is further configured to send a second adaptation rule to the adapter, where the second adaptation rule includes: adding, in the return message, the deleted in the first adaptation rule a field that is not supported by the network service node, or a field that is deleted in the first adaptation rule and needs to be blocked to the network service node, or a field in the first packet that does not need to be processed by the network service node, Or deleting a field that is not included in the first packet added in the first adaptation rule but is required to be processed by the network service node;
    所述适配器,还用于接收从网络业务控制器发来的所述第二适配规则、以及接收网络业务节点生成的返回报文、以及根据所述第二适配规则对所述返回报文进行处理,形成用于适配器进行转发的第三报文。 The adapter is further configured to receive the second adaptation rule sent from a network service controller, and receive a return message generated by a network service node, and send the return message according to the second adaptation rule. Processing is performed to form a third message for the adapter to forward.
PCT/CN2014/091491 2013-11-25 2014-11-19 Network service processing method, adapter, and network service processing system WO2015074550A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310607077.0A CN104660657B (en) 2013-11-25 2013-11-25 A kind of network service processing method, adapter and network service processing system
CN201310607077.0 2013-11-25

Publications (1)

Publication Number Publication Date
WO2015074550A1 true WO2015074550A1 (en) 2015-05-28

Family

ID=53178949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091491 WO2015074550A1 (en) 2013-11-25 2014-11-19 Network service processing method, adapter, and network service processing system

Country Status (2)

Country Link
CN (1) CN104660657B (en)
WO (1) WO2015074550A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818905B (en) * 2017-11-21 2022-06-03 ***通信有限公司研究院 Method, network element equipment and system for adapting transport layer protocol
GB2592850B (en) * 2019-08-20 2024-02-21 Metaswitch Networks Ltd Processing signalling messages in a network node
CN112991023B (en) * 2021-04-22 2021-11-02 深圳华锐金融技术股份有限公司 Order data processing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399475A (en) * 2001-07-25 2003-02-26 华为技术有限公司 Quick flow-searching method
CN101335759A (en) * 2007-06-22 2008-12-31 埃森哲环球服务有限公司 Session initiation protocol adaptor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509431B2 (en) * 2004-11-17 2009-03-24 Cisco Technology, Inc. Performing message and transformation adapter functions in a network element on behalf of an application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399475A (en) * 2001-07-25 2003-02-26 华为技术有限公司 Quick flow-searching method
CN101335759A (en) * 2007-06-22 2008-12-31 埃森哲环球服务有限公司 Session initiation protocol adaptor

Also Published As

Publication number Publication date
CN104660657B (en) 2018-05-18
CN104660657A (en) 2015-05-27

Similar Documents

Publication Publication Date Title
US10237089B2 (en) Packet tunneling method, switching device, and control device
CN107948076B (en) Method and device for forwarding message
KR101409384B1 (en) Methods, systems, and computer readable media for providing dynamic origination-based routing key registration in a diameter network
CN111107001B (en) Method for segment source route in network and storage medium
US20160330167A1 (en) Arp Implementation Method, Switch Device, and Control Device
WO2018059284A1 (en) Data transmission method and network equipment
US10263808B2 (en) Deployment of virtual extensible local area network
US10375193B2 (en) Source IP address transparency systems and methods
EP3026872B1 (en) Packet forwarding method, apparatus, and system
CN108429680B (en) Route configuration method, system, medium and equipment based on virtual private cloud
WO2018036254A1 (en) Packet forwarding method and device
CN109361606A (en) A kind of message handling system and the network equipment
EP3313031B1 (en) Sdn-based arp realization method and apparatus
CN104852855A (en) Congestion control method, device and equipment
WO2015074550A1 (en) Network service processing method, adapter, and network service processing system
WO2022089169A1 (en) Method and apparatus for sending computing routing information, device, and storage medium
CN109120556B (en) A kind of method and system of cloud host access object storage server
US11343153B2 (en) BGP logical topology generation method, and device
US10104018B2 (en) Method, apparatus, and system for controlling forwarding of service data in virtual network
JP5459226B2 (en) Route control device, route control method, route control program, network system
CN107404546B (en) Communication method and device in SDN network
CN111464441A (en) Communication method and device
WO2017164068A1 (en) Transport network control device, communication system, transfer node control method, and program
CN105471817A (en) Method, device and system for unloading service flow
US10142126B2 (en) Scalable dynamic overlay tunnel management

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

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

Country of ref document: EP

Kind code of ref document: A1