CN104660657B - A kind of network service processing method, adapter and network service processing system - Google Patents

A kind of network service processing method, adapter and network service processing system Download PDF

Info

Publication number
CN104660657B
CN104660657B CN201310607077.0A CN201310607077A CN104660657B CN 104660657 B CN104660657 B CN 104660657B CN 201310607077 A CN201310607077 A CN 201310607077A CN 104660657 B CN104660657 B CN 104660657B
Authority
CN
China
Prior art keywords
network service
message
service node
adapter
adaptation rule
Prior art date
Application number
CN201310607077.0A
Other languages
Chinese (zh)
Other versions
CN104660657A (en
Inventor
周洪
李峰
殷悦
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201310607077.0A priority Critical patent/CN104660657B/en
Publication of CN104660657A publication Critical patent/CN104660657A/en
Application granted granted Critical
Publication of CN104660657B publication Critical patent/CN104660657B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/15Directories; Name-to-address mapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/22Header parsing or analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/25Network arrangements or network protocols for addressing or naming mapping of addresses of the same type; address translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/10Signalling, control or architecture
    • H04L65/1003Signalling or session protocols
    • H04L65/1006SIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/10Signalling, control or architecture
    • H04L65/1013Network architectures, gateways, control or user entities
    • H04L65/102Gateways
    • H04L65/1033Signalling gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/10Signalling, control or architecture
    • H04L65/1066Session control
    • H04L65/1069Setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/28Network-specific arrangements or communication protocols supporting networked applications for the provision of proxy services, e.g. intermediate processing or storage in the network
    • H04L67/2823Network-specific arrangements or communication protocols supporting networked applications for the provision of proxy services, e.g. intermediate processing or storage in the network for conversion or adaptation of application content or format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/32Network-specific arrangements or communication protocols supporting networked applications for scheduling or organising the servicing of application requests, e.g. requests for application data transmissions involving the analysis and optimisation of the required network resources
    • H04L67/327Network-specific arrangements or communication protocols supporting networked applications for scheduling or organising the servicing of application requests, e.g. requests for application data transmissions involving the analysis and optimisation of the required network resources whereby the routing of a service request to a node providing the service depends on the content or context of the request, e.g. profile, connectivity status, payload or application type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/08Protocols for interworking or protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/24Negotiation of communication capabilities

Abstract

The embodiment of the invention discloses a kind of network service processing method, adapter and network service processing system, wherein the network service processing method includes:The first message that adapter reception is sent from the network equipment;The adapter is handled first message according to the first adaptation rule, forms accessible second message of network service node;Wherein, first adaptation rule includes:The field or need the field shielded to network service node that network service node is not supported in first message are deleted according to the performance of network service node, must have field when either changing do not have in the first message of the field that network service node is not required to be handled in the first message or addition but network service node progress business processing;Second message is sent to the network service node and carries out business processing by the adapter.Network service node can be simplified using the present invention, it is made to focus on business processing.

Description

A kind of network service processing method, adapter and network service processing system

Technical field

The present invention relates to a kind of communications field more particularly to network service processing method, adapter and network service processing System.

Background technology

Network communication is to carry out the process of packet parsing according to agreement to network packet, and different network services may be right Answer different message structures, in network communications for different network services, such as load balancing traffic, firewall services or Person's intrusion detection business etc., it usually needs dedicated network service node carries out business processing.Network service node is in order to adapt to Different messages are, it is necessary to constantly change so that network service node cannot focus on business in itself.

The content of the invention

The embodiment of the present invention provides a kind of network service processing method, and this method can simplify network service node, make it Focus on business processing.

First aspect present invention provides a kind of network service processing method, including:

The first message that adapter reception is sent from the network equipment;

The adapter is handled first message according to the first adaptation rule, and forming network service node can locate Second message of reason;Wherein, first adaptation rule includes:Net in first message is deleted according to the performance of network service node The field that network service node is not supported either needs to be not required in the first message of field or modification shielded to network service node The still network service node not having in the first message of field or addition that network service node is handled is wanted to carry out business Must have field during processing;

Second message is sent to the network service node and carries out business processing by the adapter.

With reference to first aspect, in the first possible realization method of first aspect, in the adapter according to first Adaptation rule handles first message, is formed before accessible second message of network service node, further included:

The first adaptation rule that the adapter reception is sent from network service controlling device.

With reference to first aspect, in second of possible realization method of first aspect, the network service processing method It further includes:

The adapter receives the returned packet that network service node to second message generate after business processing;

The adapter is handled the returned packet according to the second adaptation rule, and formation is turned for adapter 3rd message of hair;Second adaptation rule includes:The net deleted in first adaptation rule is added in returned packet The needs that field that network service node is not supported or added in returned packet is deleted in the first adaptation rule are to network industry The field of business node shield is either changed the field that network service node is not required to be handled in the first message or is deleted Do not have in the first message added in the first adaptation rule but network service node must have during business processing Field.

Second of possible realization method with reference to first aspect, in the third possible realization method of first aspect In, the returned packet is handled according to the second adaptation rule in the adapter, is formed and is forwarded to for adapter The 3rd message before, further include:

The second adaptation rule that the adapter reception is sent from network service controlling device.

Second aspect of the present invention provides a kind of adapter, and the adapter includes:

First receiving module, for receiving the first message sent from the network equipment;

First processing module for being handled according to the first adaptation rule first message, forms network service Accessible second message of node;Wherein, first adaptation rule includes:First is deleted according to the performance of network service node The field that network service node is not supported in message either needs the first report of field or modification shielded to network service node The field or add do not have in the first message but network service node that network service node is handled are not required in text Carry out the field that must have during business processing;

First sending module carries out business processing for second message to be sent to network service node.

With reference to second aspect, in the first possible realization method of second aspect, the adapter further includes:

Second receiving module, for receiving the first adaptation rule sent from network service controlling device.

With reference to second aspect, in second of possible realization method of second aspect, the adapter further includes:

3rd receiving module returns for receiving network service node to what is generated after second message progress business processing Return text;

Second processing module for handling the returned packet according to the second adaptation rule, forms to be adapted to The 3rd message that device is forwarded to;Second adaptation rule includes:It is added in returned packet in first adaptation rule The field or add what is deleted in the first adaptation rule in returned packet that the network service node deleted is not supported Need the word in the first message of field or modification shielded to network service node network service node being not required to be handled Section deletes do not have in the first message added in the first adaptation rule but network service node progress business processing When must have field.

With reference to second of possible realization method of second aspect, in the third possible realization method of second aspect In, second receiving module is additionally operable to receive the second adaptation rule sent from network service controlling device.

Third aspect present invention provides a kind of network service processing system, and the network service processing system includes:Net Network service controller, the network equipment, adapter and network service node, wherein,

The network service controlling device, for sending the first adaptation rule to the adapter;Wherein, first adaptation Rule includes:The field or needs that network service node is not supported in first message are deleted according to the performance of network service node The field in the first message of field or modification shielded to network service node network service node being not required to be handled, Or the still network service node not having in the first message of addition carries out the field that must have during business processing;

The network equipment, for sending the first message to the adapter;

The adapter, for receive first adaptation rule sent from network service controlling device and receive from The first message that the network equipment is sent simultaneously is handled first message according to first adaptation rule, forms network Accessible second message of service node and by second message be sent to network service node carry out business processing;

The network service node, the second message for being sent to the adapter carry out business processing.

With reference to the third aspect, in the first possible realization method of the third aspect, the network service node is also used Returned packet is generated after business processing is carried out to the second message, and returned packet is sent to the adapter;

The network service controlling device is additionally operable to send the second adaptation rule to the adapter;Wherein, described second is suitable Include with rule:The word that the network service node deleted in first adaptation rule is not supported is added in returned packet Section or added in returned packet field that the needs deleted in the first adaptation rule are shielded to network service node or Person changes the field that network service node is not required to be handled in the first message or deletes and added in the first adaptation rule The first message in do not have but network service node must have field during business processing;

The adapter is additionally operable to receive second adaptation rule sent from network service controlling device and reception The returned packet and handled according to second adaptation rule the returned packet, shape that network service node generates Into the 3rd message being forwarded to for adapter.

Therefore in some feasible embodiments of the invention, by adapter to network service section to be sent to First message of point is handled, and forms manageable second message of network service node so that network service node can be with Focus on business processing.

Description of the drawings

It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.

Fig. 1 is a kind of flow diagram of network service processing method provided in an embodiment of the present invention;

Fig. 2 is the flow diagram of another network service processing method provided in an embodiment of the present invention;

Fig. 3 is a kind of structure diagram of adapter provided in an embodiment of the present invention;

Fig. 4 is the structure diagram of another adapter provided in an embodiment of the present invention;

Fig. 5 is the structure diagram of another adapter provided in an embodiment of the present invention;

Fig. 6 is a kind of structure diagram of network service processing system provided in an embodiment of the present invention;

Fig. 7 is a kind of structure diagram of the message including SR fields provided in an embodiment of the present invention;

Fig. 8 is friendship when network service processing system shown in Fig. 6 carries out the message of structure shown in Fig. 7 network service processing Mutual flow diagram;

Fig. 9 is the structure diagram of another network service processing system provided in an embodiment of the present invention;

Figure 10 shows for a kind of structure of the message including source MAC fields and purpose MAC fields provided in an embodiment of the present invention It is intended to;

Figure 11 is when network service processing system shown in Fig. 9 carries out the message of structure shown in Figure 10 network service processing Interaction flow schematic diagram;

Figure 12 is the structure diagram of another network service processing system provided in an embodiment of the present invention;

Figure 13 is a kind of structure diagram of the message including VLAN id fields provided in an embodiment of the present invention;

When Figure 14 is that network service processing system shown in Figure 12 carries out network service processing to the message of structure shown in Figure 13 Interaction flow schematic diagram;

Figure 15 is the structure diagram of another network service processing system provided in an embodiment of the present invention;

When Figure 16 is that network service processing system shown in Figure 15 carries out network service processing to the message of structure shown in Figure 13 Interaction flow schematic diagram;

Figure 17 is that another interaction flow when structure is the progress network service processing of network service processing system shown in Fig. 6 shows It is intended to.

Specific embodiment

Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment belongs to the scope of protection of the invention.

Referring to Fig. 1, be a kind of flow diagram of network service processing method provided in an embodiment of the present invention, wherein, The network equipment described in the embodiment of the present invention is used to send the first message to adapter, and the network equipment can be router or friendship It the equipment such as changes planes;Network service controlling device be used to be sent to the first message to adapter according to the characteristic of network service node or The adaptation rule that returned packet is handled, network service controlling device can be server, PC machine, virtual machine, virtual container(Than Such as Linux Containers)Etc. equipment, adapter be used for according to adaptation rule to the first message or returned packet that receive It is handled, adapter can be the equipment such as router, interchanger, server or PC machine or virtual machine;Network service node For being handled the message received or being forwarded to treated result generation returned packet, network service node Can be server, PC machine, virtual machine, virtual container(Such as Linux Containers)Etc. equipment.Network service processing side Method method includes:

S101, the first message that adapter reception is sent from the network equipment;

In an embodiment of the present invention, may include in the first message the field do not supported of network service node or Need the field shielded to network service node or need not be by field and first that network service node is handled Network service node may be lacked in message and carry out the field that must have during business processing.It should be noted that:It need not be by It is manageable for network service node that the field of network service node processing, which includes the field, but for letter Change network service node, network service node to the field without processing, by other equipment such as adapter to the word Duan Jinhang processing.

S102, the adapter are handled first message according to the first adaptation rule, form network service section Accessible second message of point;Wherein, first adaptation rule includes:First report is deleted according to the performance of network service node The field that network service node is not supported in text either needs the first message of field or modification shielded to network service node In be not required do not have in the first message of the field that is handled of network service node or addition but network service node into Must have field during row business processing.

It should be noted that:First message is handled according to the first adaptation rule in the adapter, is formed Before accessible second message of network service node, further include:What the adapter reception was sent from network service controlling device First adaptation rule.

Second message is sent to the network service node and carries out business processing by S103, the adapter.

Therefore the first message of network service node to be sent to is handled by adapter, form network Manageable second message of service node so that network service node can focus on business processing, simplify network service Node.

Further, referring to Fig. 2, for another network service processing method provided by the invention flow diagram, Network service node generates returned packet after carrying out business processing to the second message in this embodiment, specifically, the network Method for processing business includes the following steps:

The first message that S201, adapter reception are sent from the network equipment;

In an embodiment of the present invention, may include in the first message the field do not supported of network service node or Need the field shielded to network service node or need not be by field and first that network service node is handled Network service node may be lacked in message and carry out the field that must have during business processing.It should be noted that:It need not be by It is manageable for network service node that the field of network service node processing, which includes the field, but for letter Change network service node, network service node to the field without processing, by other equipment such as adapter to the word Duan Jinhang processing.

S202, the adapter are handled first message according to the first adaptation rule, form network service section Accessible second message of point;Wherein, first adaptation rule includes:First report is deleted according to the performance of network service node The field that network service node is not supported in text either needs the first message of field or modification shielded to network service node In the field that is handled of network service node be not required or added according to the performance of network service node in the first message Do not have in first message but network service node carries out the field that must have during business processing.

It should be noted that:First message is handled according to the first adaptation rule in the adapter, is formed Before accessible second message of network service node, further include:What the adapter reception was sent from network service controlling device First adaptation rule.

Second message is sent to the network service node and carries out business processing by S203, the adapter.

Therefore the first message of network service node to be sent to is handled by adapter, form network Manageable second message of service node so that network service node can focus on business processing.

S204, the adapter receive the return that network service node to second message generate after business processing Message.

Specifically, network service node generates returned packet after carrying out business processing to the second message, when needs will return When message returns, returned packet is sent to the adapter by network service node.

S205, the adapter are handled the returned packet according to the second adaptation rule, are formed for adapter The 3rd message being forwarded to;Second adaptation rule includes:It adds in returned packet and is deleted in first adaptation rule The field or the need deleted in the first adaptation rule are added in returned packet that the network service node removed is not supported The word in the first message of field or modification to be shielded to network service node network service node being not required to be handled Section deletes do not have in the first message added in the first adaptation rule but network service node progress business processing When must have field.

It should be noted that:The returned packet is handled according to the second adaptation rule in the adapter, is formed Before the 3rd message being forwarded to for adapter, further include:

The second adaptation rule that the adapter reception is sent from network service controlling device.

It should be noted that the network that the 3rd message can also be forwarded to the first message of transmission by the adapter is set Standby or other network equipments.

It is to be appreciated that when adapter transmitting message or transmission returned packet, network relay device can be used such as Interchanger receives first time for sending of adapter treated the second message and second message is forwarded to network service section Point;Or it receives the 3rd message that adapter is sent and the 3rd message is forwarded to the network equipment.

Certainly, network relay device can be used for receiving the message that the network equipment is sent, which is sent to adaptation Device or the returned packet for sending adapter are transmitted to the network equipment.

It should be noted that when being forwarded to using network relay device to the message or returned packet that receive, no It is limited to above-mentioned forwarding form, can also is other forms, it can to the forwarding of message or returned packet as long as can realize.

Therefore the first message is handled by adapter, form network service node manageable second Message so that network service node can focus on business processing, simplify network service node.

Referring to Fig. 3, be the structure diagram of adapter 1 provided in an embodiment of the present invention, including:

First receiving module 11, for receiving the first message sent from the network equipment.

First processing module 12 for being handled according to the first adaptation rule first message, forms network industry Business accessible second message of node.

First sending module 13 carries out business processing for second message to be sent to network service node.

It should be noted that adapter can also include:Second receiving module 14, for receiving from network service controlling device The first adaptation rule sent.First adaptation rule includes:It is deleted according to the performance of network service node in the first message The field that network service node is not supported either is needed in the first message of field or modification shielded to network service node not The still network service node not having in the first message of field or addition that network service node is handled is needed into industry Must have field during business processing.

It should be noted that:The field that need not be handled by network service node includes the field for network service section Manageable for point, but in order to simplify network service node, network service node to the field without processing, The field is handled by other equipment such as adapter.

Therefore after being handled by adapter the first message of network service node to be sent to, net is formed Manageable second message of network service node so that network service node can focus on business processing, simplify network industry Business node.

Referring to Fig. 4, being another structure diagram of adapter provided in an embodiment of the present invention, the adapter 2 includes:

First receiving module 21, for receiving the first message sent from the network equipment;

First processing module 22 for being handled according to the first adaptation rule first message, forms network industry Business accessible second message of node;Wherein, first adaptation rule includes:The is deleted according to the performance of network service node The field that network service node is not supported in one message either needs the field shielded to network service node or modification first The field or add do not have in the first message but network service section that network service node is handled are not required in message Point carries out the field that must have during business processing;

First sending module 23 carries out business processing for second message to be sent to network service node;

Second receiving module 24, for receiving the first adaptation rule sent from network service controlling device and the second adaptation rule Then;

3rd receiving module 25 generates for receiving after network service node carries out business processing to second message Returned packet;

Second processing module 26 for handling the returned packet according to the second adaptation rule, forms to fit The 3rd message that orchestration is forwarded to;Second adaptation rule includes:First adaptation rule is added in returned packet The field or the need deleted in the first adaptation rule are added in returned packet that the network service node of middle deletion is not supported The word in the first message of field or modification to be shielded to network service node network service node being not required to be handled Section deletes do not have in the first message added in the first adaptation rule but network service node progress business processing When must have field.

It is understood that adapter 2 can also include the second sending module 27, for the 3rd message to be forwarded to transmission The network equipment of first message or other network equipments.

Therefore in some feasible embodiments of the invention, by adapter to network service section to be sent to The message of point is handled, and forms manageable second message of network service node so that network service node can focus on In business processing, network service node is simplified.

Fig. 5 is referred to, Fig. 5 is the structure composition schematic diagram of another embodiment of adapter of the present invention.The embodiment bag At least one receiver, processor and transmitting element are included, wherein the receiver and the first receiving module 21, the second receiving module 24 is identical with the function of the 3rd receiving module 25, herein without repeating.Processor and first processing module 22 and second processing The function of module 26 is identical, herein without repeating.Transmitting element and the first transmitting element 23 and the second hair in the present embodiment The function of sending unit 27 is identical, herein without repeating.

Specifically, receiver is used to receive the first message of network equipment transmission and network service control in the present embodiment The adaptation rule that device processed is sent, processor handle the first message that receiver receives according to adaptation rule, transmitting element By processor, treated that manageable second message of network service node is sent to network service node.When network service section During point production returned packet, receiving unit reception returned packet is dealt into processor and is handled to obtain for transmitting element forwarding 3rd message, the 3rd message are forwarded to the network equipment by transmitting element.

Therefore processing is carried out to the message of network service node to be sent to by adapter and forms network service section Manageable second message of point so that network service node can focus on business processing, simplify network service node.

Fig. 6 is a kind of structure diagram of network service processing system provided in an embodiment of the present invention.At the network service Reason system 3 includes:

The network equipment 31, network service controlling device 32, network service node 33 and adapter 34, wherein,

The network equipment 31, for sending the first message to the adapter 34;

The network service controlling device 32, for sending adaptation rule to the adapter 34;

The network service node 33 is handled the first message according to adaptation rule for what is sent to the adapter 34 The second message formed afterwards carries out business processing;

The adapter 34, the first message sent for reception from the network equipment 31 are received from network service controlling device 32 adaptation rules sent, the first message is carried out according to the adaptation rule processing formed network service node 33 it is accessible It second message and second message is sent to network service node 33 carries out business processing.

Further, the network service node 33 is additionally operable to generation after carrying out business processing to the second message and returns to report Text, and returned packet is sent to the adapter 34;

The adapter 34, is additionally operable to receive network service node 33 and carries out the returned packet, right generated after business processing The returned packet carries out processing and forms the 3rd message being forwarded to for adapter and the 3rd message is forwarded to network Equipment 31, it is necessary to explanation be the network equipment that is forwarded to of the 3rd message and the network equipment of the first message of transmission can be same A network equipment, or the different network equipments.

Further, the network service processing system can also include network relay device:

The network relay device, treated for the first time for receiving the adapter the second message, and by this second Message is transmitted to the network service node.

The adapter is additionally operable to that accessible first message of network service node is sent by treated the first time Give network relay device.

Further, the adapter, is additionally operable to second that treated that the 3rd message is sent to network relay device;

The network relay device is additionally operable to receive the 3rd message that the adapter is sent, and the 3rd message is turned It is dealt into the network equipment.

Therefore first time processing is carried out to the message of network service node to be sent to by adapter and forms network The manageable message of service node so that network service node can focus on business processing, simplify network service node.

In another embodiment, message is as shown in fig. 7, comprises field SR, wherein SR are a data structure, specifically such as Under:

Struc service_routing_header{

Uint16id;

Uint16resv;

}_packed;

When Fig. 8 is that network service processing system shown in Fig. 6 carries out network service processing to the message of structure shown in Fig. 7, net Network equipment 31, network service controlling device 32, the interaction flow schematic diagram of adapter 34 and network service node 33, including walking as follows Suddenly:

S301, network service controlling device 32 send adaptation rule to adapter 34;

Specifically, in this embodiment it is assumed that SR fields belong to the field that needs are shielded to network service node, i.e.,: Network service node is made to can't see SR fields.The adaptation rule includes the first adaptation rule and the second adaptation rule.First is suitable Include deleting the SR fields in the first message with rule;Second adaptation rule is included in addition SR fields in returned packet.

S302, the network equipment 31 send the first message with service identification to adapter 34;

Specifically, as described in Figure 7, SR fields therein are to need the word shielded to network service node to first message Section.

S303, adapter 34, which carry out the first message according to the adaptation rule processing formation network service node, to be handled The second message;

Specifically, adapter 34 deletes the SR fields in message according to the first adaptation rule, deletes the message after SR fields It is 33 manageable second message of network service node.

Second message is sent to the network service node 33 and carries out business processing by S304, adapter 34.

S305, network service node 33 carry out business processing to the second message received, generate returned packet;

Returned packet is sent to adapter 34 by S306, network service node 33;

S307, adapter 34 are handled returned packet according to adaptation rule, what generation was forwarded to for adapter 3rd message;

Specifically, SR fields are added in returned packet by adapter 34 according to the second adaptation rule.

3rd message is sent to the network equipment 31 by S308, adapter 34.

It should be noted that when above steps carries out data transmission, gone to step in can also further including, such as The step of network service controlling device 32 is to the transmission adaptation rule of adapter 34, adaptation rule therein can not be network service control Device 32 processed is sent directly to adapter 34, but adaptation rule is first issued a transferring device by network service controlling device 32, than Such as network controller, then it is network controlled device and adaptation rule is forwarded to adapter 34.Network controller can be webmaster system System or Openflow controllers etc..

Therefore first time processing is carried out to the first message of network service node to be sent to by adapter and is formed Manageable second message of network service node so that network service node can focus on business processing, simplify network Service node.

Referring to Fig. 10, it is the structure diagram of the first message in another embodiment, in this embodiment it is assumed that source MAC fields and purpose MAC fields belong to the field that need not be handled by network service node.

It should be noted that:The field that need not be handled by network service node, including the field for network service It is manageable for node, but in order to simplify network service node, network service node is to the field without place Reason, is handled the field by other equipment such as adapter.

In this embodiment, the source MAC fields and purpose MAC fields are that can handle for network service node , but in order to simplify network service node, the processing of source MAC fields and purpose MAC fields will be completed by adapter.

When Figure 11 is that network service processing system shown in Fig. 9 carries out network service processing to the message of structure shown in Figure 10, The network equipment 41, network service controlling device 42, network service node 43, the interaction flow of adapter 44 and network relay device 45 Schematic diagram mainly includes:

S401, network service controlling device 42 send adaptation rule to adapter 44;

Specifically, the adaptation rule includes the first adaptation rule and the second adaptation rule.First adaptation rule includes working as The value of source MAC is some value, such as when the value of source MAC is 11-22-33-44-55-66, by the purpose MAC's of the first message Value is revised as the MAC Address value of network service node, such as when the MAC value of network service node is 22-33-44-55-66-77, First adaptation rule is exactly:When the value of source MAC is 11-22-33-44-55-66, the purpose MAC value of message is changed to 22-33- 44-55-66-77;

Second adaptation rule includes, and the purpose MAC value of returned packet is revised as 11-22-33-44-55-66.

S402, the network equipment 41 send the first message to adapter 44;

Specifically, the structure of the first message is as described in Figure 10.

S403, the first message is handled according to adaptation rule, forms the second message;

Adapter 44, which carries out first message according to the adaptation rule processing formation network service node, to be handled The second message;

Specifically, adapter 44, when the value of source MAC is 11-22-33-44-55-66, will be reported according to the first adaptation rule Purpose MAC value in text is revised as 22-33-44-55-66-77, and treated, and message is that network service node 33 is manageable Second message.

Second message is sent to the network relay device 45 by S404, adapter 44;

Second message is transmitted to network service node 43 by S405, network relay device 45;

S406, network service node 43 carry out business processing to the second message received, generate returned packet;

Returned packet is sent to adapter 44 by S407, network service node 43;

S408, adapter 44 are handled returned packet according to adaptation rule, and generation is forwarded to for adapter 44 The 3rd message;

Specifically, the purpose MAC value of returned packet is revised as 11-22-33- by adapter 44 according to the second adaptation rule 44-55-66。

3rd message is sent to network relay device 45 by S409, adapter 44;

S410, the 3rd message is forwarded to by the network equipment 41 according to purpose MAC value by network relay device 45.

It should be noted that when above steps carries out data transmission, gone to step in can also further including, such as The step of network service controlling device 42 is to the transmission adaptation rule of adapter 44, adaptation rule therein can not be network service control Device 42 processed is sent directly to adapter 44, but adaptation rule is first issued a transferring device by network service controlling device 42, than Such as network controller, then it is network controlled device and adaptation rule is forwarded to adapter 44.Network controller can be webmaster system System or Openflow controllers etc..

Therefore first time processing is carried out to the message of network service node to be sent to by adapter and forms network The manageable message of service node so that network service node can focus on business processing, simplify network service node.

Figure 13 is referred to, is the structure diagram of the first message in another embodiment, in this embodiment it is assumed that VLAN Id field belongs to the field that network service node do not support or needs the field shielded to network service node.

Figure 14 is that network service processing system shown in Figure 12 carries out at network service the first message of structure shown in Figure 13 During reason, the friendship of the network equipment 51, network service controlling device 52, network service node 53, adapter 54 and network relay device 55 Mutual flow diagram, mainly includes:

S501, network service controlling device 52 send forwarding rule to network relay device 55;

Specifically, in the present embodiment, the forwarding rule includes:Value by the VLAN ID that the network equipment 51 is sent is 100 message is forwarded to adapter 54;

S502, network service controlling device 52 send adaptation rule to adapter 54;

Specifically the adaptation rule includes the first adaptation rule and the second adaptation rule.Wherein, the first adaptation rule bag It includes, when the value of VLAN ID is 100, deletes the VLAN id fields in message;Second adaptation rule includes:Adapter is receiving Returned packet in add VLAN id fields, and the value of VLAN ID is arranged to 100.

The first message that value comprising VLAN id fields and VLAN ID is 100 is sent to net by S503, the network equipment 51 Network relay device 55;

First message of reception is sent to adapter 54 by S504, network relay device 55;

S505, adapter 54 are handled the first message according to adaptation rule, generate the second message;

Specifically, according to first time adaptation rule, the VLAN id fields in the first message are deleted;

Second message is sent to network service node 53 by S506, adapter 54;

S507, network service node 53 carry out business processing to the second message of reception, generate returned packet;

Returned packet is sent to adapter 54 by S508, network service node 53;

S509, adapter 54 carry out second to returned packet according to adaptation rule and handle, and generate the 3rd message;

Specifically, VLAN id fields are added in returned packet, and the value of VLAN ID is arranged to 100;

Returned packet is sent to network relay device 55 by treated for the second time for S510, adapter 54;

The 3rd message received is forwarded to the network equipment 51 by S511, network relay device 55.

It should be noted that when above steps carries out data transmission, gone to step in can also further including, such as The step of network service controlling device 52 is to the transmission adaptation rule of adapter 54, adaptation rule therein can be network service controlling Device 52 is not sent directly to adapter 54, but adaptation rule is first issued a transferring device by network service controlling device 52, than Such as network controller, then it is network controlled device and adaptation rule is forwarded to adapter 54.Network controller can be webmaster system System or Openflow controllers etc..

Therefore processing is carried out to the first message of network service node to be sent to by adapter and forms network industry Business manageable second message of node so that network service node can focus on business processing, simplify network service section Point.

In another embodiment, the structure of the first message is as shown in figure 13, and in this embodiment, VLAN id fields are nets The field or need the field shielded to network service node that network service node is not supported.

When Figure 16 is that network service processing system shown in Figure 15 carries out network service processing to the message of structure shown in Figure 13, The network equipment 61, network service controlling device 62, network relay device 63, the interaction flow of adapter 64 and network service node 65 Schematic diagram mainly includes:

S601, network service controlling device 62 send forwarding rule to network relay device 63;

Specifically, in the present embodiment, the forwarding rule includes:Value by the VLAN ID that the network equipment 61 is sent is 100 message is forwarded to adapter 64, sending by adapter 64 and message of no VLAN id fields is forwarded to network service Node 65, the returned packet sent from network service node 65 is forwarded to adapter 64, by sending by adapter 64 and The message that the value of VLAN ID is 100 is transmitted to the network equipment 61;

S602, network service controlling device 62 send adaptation rule to adapter 64;

Specifically the adaptation rule includes the first adaptation rule and the second adaptation rule.Wherein, the first adaptation rule bag It includes, when the value of VLAN ID is 100, deletes the VLAN id fields in message;Second adaptation rule includes:Adapter is receiving Returned packet in add VLAN id fields, and the value of VLAN ID is arranged to 100.

The first message that value comprising VLAN id fields and VLAN ID is 100 is sent to net by S603, the network equipment 61 Network relay device 63;

First message of reception is sent to adapter 64 by S604, network relay device 63;

S605, adapter 64 are handled the first message according to adaptation rule, generate the second message;

Specifically, according to first time adaptation rule, the VLAN id fields in message are deleted;

Second message is sent to network relay device 63 by S606, adapter 64;

Second message is forwarded to network service node 65 by S607, network relay device 63;

S608, network service node 65 carry out business processing to the second message received, generate returned packet;

Returned packet is sent to network relay device 63 by S609, network service node 65;

Returned packet is sent to adapter 64 by S610, network relay device 63;

S611, adapter 64 carry out second to returned packet according to adaptation rule and handle, and generate the 3rd message;

Specifically, VLAN id fields are added in returned packet, and the value of VLAN ID is arranged to 100;

3rd message is sent to network relay device 63 by S612, adapter 64;

3rd message is sent to the network equipment 61 by S613, network relay device 63.

It should be noted that when above steps carries out data transmission, gone to step in can also further including, such as The step of network service controlling device 62 is to the transmission adaptation rule of adapter 64, adaptation rule therein can not be network service control Device 62 processed is sent directly to adapter 64, but adaptation rule is first issued a transferring device by network service controlling device 62, than Such as network controller, then it is network controlled device and adaptation rule is forwarded to adapter 64.Network controller can be webmaster system System or Openflow controllers etc..

Therefore processing is carried out to the first message of network service node to be sent to by adapter and forms network industry Business manageable second message of node so that network service node can focus on business processing.

It is another interaction when network service processing system shown in Fig. 6 carries out network service processing to please refer to Fig.1 7, Figure 17 Flow diagram.In this embodiment, network service node 33 has following features:Network service node 33 carries out business processing When, it must have VLAN id fields in messages, network service node 33 could carry out business processing.In this embodiment by Do not include VLAN id fields in the first message that the network equipment 31 is sent.Idiographic flow includes the following steps:

S701, network service controlling device 32 send adaptation rule to adapter 34;

The adaptation rule includes, the first adaptation rule and the second adaptation rule.Wherein the first adaptation rule includes:According to The characteristic of network service node 33, when the first message that the network equipment 31 is sent to adapter 34 does not include VLAN id fields, VLAN id fields are added in the first message;Second adaptation rule includes:It is deleted in returned packet in the first adaptation rule The VLAN id fields of addition.

S702, the network equipment 31 send the first message to adapter 34;Field in first message does not report VLAN ID Field;

S703, adapter 34 add VLAN id fields, the second report of generation according to the first adaptation rule in the first message Text;

Second message is sent to network service node 33 by S704, adapter 34;

S705, network service node 33 carry out business processing to the second message, generate returned packet;

Returned packet is sent to adapter 34 by S706, network service node 33;

S707, adapter 34 delete what is added in the first adaptation rule according to the second adaptation rule in returned packet VLAN id fields generate the 3rd message;

3rd message is sent to the network equipment 31 by S708, adapter 34.

The present embodiment is carried out by adding lack in the first message and network service node in the first message at business Must have field during reason so that the second message after treatment becomes the manageable message of network service node, makes Business processing can be focused on by obtaining network service node.

One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.

The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.

Claims (7)

1. a kind of network service processing method, which is characterized in that including:
The first message that adapter reception is sent from the network equipment;
The adapter is handled first message according to the first adaptation rule, and it is accessible to form network service node Second message;Wherein, first adaptation rule includes:Network industry in first message is deleted according to the performance of network service node The field that business node is not supported either needs that net is not required in the first message of field or modification shielded to network service node Do not have in the first message of field or addition that network service node is handled but network service node progress business processing When must have field;
Second message is sent to the network service node and carries out business processing by the adapter;
The adapter receives the returned packet that network service node to second message generate after business processing;
The adapter is handled the returned packet according to the second adaptation rule, forms what is be forwarded to for adapter 3rd message;Second adaptation rule includes:The network industry deleted in first adaptation rule is added in returned packet The needs that the field do not supported of business node or added in returned packet is deleted in the first adaptation rule are to network service section The field of point shielding, which either change, is not required the field that is handled of network service node or deletion the in the first message Do not have in the first message added in one adaptation rule but network service node carries out the word that must have during business processing Section.
2. network service processing method as described in claim 1, which is characterized in that advised in the adapter according to the first adaptation Then first message is handled, is formed before accessible second message of network service node, further included:
The first adaptation rule that the adapter reception is sent from network service controlling device.
3. network service processing method as claimed in claim 2, which is characterized in that advised in the adapter according to the second adaptation Then the returned packet is handled, is formed before the 3rd message being forwarded to for adapter, further included:
The second adaptation rule that the adapter reception is sent from network service controlling device.
4. a kind of adapter, which is characterized in that including:
First receiving module, for receiving the first message sent from the network equipment;
First processing module for being handled according to the first adaptation rule first message, forms network service node Accessible second message;Wherein, first adaptation rule includes:First message is deleted according to the performance of network service node The field that middle network service node is not supported either is needed in the first message of field or modification shielded to network service node Do not have in the first message of field or addition that network service node is handled but network service node is not required to carry out Must have field during business processing;
First sending module carries out business processing for second message to be sent to network service node;
3rd receiving module, for receiving the return report that network service node to second message generate after business processing Text;
Second processing module, for being handled according to the second adaptation rule the returned packet, formed for adapter into 3rd message of row forwarding;Second adaptation rule includes:It adds in returned packet and is deleted in first adaptation rule The field do not supported of the network service node or the needs deleted in the first adaptation rule are added in returned packet The field in the first message of field or modification shielded to network service node network service node being not required to be handled, Or when deleting do not have in the first message added in the first adaptation rule but network service node progress business processing Must have field.
5. adapter as claimed in claim 4, which is characterized in that the adapter further includes
Second receiving module, for receiving the first adaptation rule sent from network service controlling device.
6. adapter as claimed in claim 5, which is characterized in that
Second receiving module is additionally operable to receive the second adaptation rule sent from network service controlling device.
7. a kind of network service processing system, which is characterized in that including:Network service controlling device, the network equipment, adapter and net Network service node, wherein,
The network service controlling device, for sending the first adaptation rule to the adapter;Wherein, first adaptation rule Including:The field or need to net that network service node is not supported in first message are deleted according to the performance of network service node The field of network service node shielding either change in the first message need not the field that is handled of network service node or It adds do not have in the first message but network service node and carries out the field that must have during business processing;
The network equipment, for sending the first message to the adapter;
The adapter, for receiving first adaptation rule sent from network service controlling device and receiving from network The first message that equipment is sent simultaneously is handled first message according to first adaptation rule, forms network service Accessible second message of node and by second message be sent to network service node carry out business processing;
The network service node, the second message for being sent to the adapter carry out business processing and are reported to second Text generates returned packet after carrying out business processing, and returned packet is sent to the adapter;
The network service controlling device is additionally operable to send the second adaptation rule to the adapter;Wherein, the second adaptation rule Then include:Added in returned packet field that the network service node deleted in first adaptation rule do not support, Or the field that the needs deleted in the first adaptation rule are shielded to network service node, Huo Zhexiu are added in returned packet Change that the field that is handled of network service node or delete is not required to be added in the first adaptation rule in the first message Do not have in one message but network service node carries out the field that must have during business processing;
The adapter is additionally operable to receive second adaptation rule sent from network service controlling device and reception network The returned packet and handled according to second adaptation rule the returned packet that service node generates, form and use In the 3rd message that adapter is forwarded to.
CN201310607077.0A 2013-11-25 2013-11-25 A kind of network service processing method, adapter and network service processing system CN104660657B (en)

Priority Applications (1)

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

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
PCT/CN2014/091491 WO2015074550A1 (en) 2013-11-25 2014-11-19 Network service processing method, adapter, and network service processing system

Publications (2)

Publication Number Publication Date
CN104660657A CN104660657A (en) 2015-05-27
CN104660657B true CN104660657B (en) 2018-05-18

Family

ID=53178949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310607077.0A CN104660657B (en) 2013-11-25 2013-11-25 A kind of 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818905A (en) * 2017-11-21 2019-05-28 中国移动通信有限公司研究院 A kind of method, network element device and the system of transport layer protocol adaptation

Citations (3)

* 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
CN101023420A (en) * 2004-11-17 2007-08-22 思科技术公司 Performing message and transformation adapter functions in a network element on behalf of an application
CN101335759A (en) * 2007-06-22 2008-12-31 埃森哲环球服务有限公司 Session initiation protocol adaptor

Patent Citations (3)

* 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
CN101023420A (en) * 2004-11-17 2007-08-22 思科技术公司 Performing message and transformation adapter functions in a network element on behalf of an application
CN101335759A (en) * 2007-06-22 2008-12-31 埃森哲环球服务有限公司 Session initiation protocol adaptor

Also Published As

Publication number Publication date
WO2015074550A1 (en) 2015-05-28
CN104660657A (en) 2015-05-27

Similar Documents

Publication Publication Date Title
US9497118B2 (en) Communication system, communication device, controller, and method and program for controlling forwarding path of packet flow
CN105830395B (en) For promoting the dialogue-based grouping routing of analysis
CN106161335B (en) A kind for the treatment of method and apparatus of network packet
US9461907B2 (en) Data routing
CN104022953B (en) Message forwarding method and device based on open flows Openflow
EP3091705B1 (en) Tunnel processing method for packet, switching device and control device
US20160142251A1 (en) Network controller and a computer implemented method for automatically define forwarding rules to configure a computer networking device
CN105210337B (en) A kind of service implementation method and communication unit of NFV system
EP2544417B1 (en) Communication system, path control apparatus, packet forwarding apparatus and path control method
US20140376406A1 (en) Method for controlling software defined network and apparatus for the same
CN104580168B (en) A kind of processing method of Attacking Packets, apparatus and system
CN105099922B (en) A kind of data message forwarding method and device across virtual expansible LAN
CN102986169B (en) For providing method, the system of reciprocity route at DIAMETER Nodes
US9515874B2 (en) Efficient use of dynamic host configuration protocol in low power and lossy networks
KR101886291B1 (en) Flow entry configuration method, apparatus, and system
CN101573927B (en) Path MTU discovery in network system
EP2991304B1 (en) Conflict detection and solving method and device
WO2015106618A1 (en) Resource scheduling method and apparatus
US9537755B2 (en) Access relay method and access gateway device
JP2014533001A (en) Transfer device control device, transfer device control method, communication system, and program
CN103250383A (en) Terminal, control device, communication method, communication system, communication module, program, and information processing device
CN104937896B (en) The processing method and transponder of address resolution protocol message, controller
CN104246700A (en) System and method for routing traffic between distinct infiniband subnets based on fat-tree routing
CN103929368B (en) Load balance method and device for multiple service units
CN107624240A (en) Configuration for the network element of the route automatically based on strategy

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant