CN105656744B - Identification method, equipment and the service chaining in service chaining path - Google Patents

Identification method, equipment and the service chaining in service chaining path Download PDF

Info

Publication number
CN105656744B
CN105656744B CN201410629060.XA CN201410629060A CN105656744B CN 105656744 B CN105656744 B CN 105656744B CN 201410629060 A CN201410629060 A CN 201410629060A CN 105656744 B CN105656744 B CN 105656744B
Authority
CN
China
Prior art keywords
data
tunnel
edge equipment
flows packet
equipment
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201410629060.XA
Other languages
Chinese (zh)
Other versions
CN105656744A (en
Inventor
吴涛
周赟
程宝传
雷歆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Digital Technologies Suzhou Co Ltd
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 Huawei Digital Technologies Suzhou Co Ltd filed Critical Huawei Digital Technologies Suzhou Co Ltd
Priority to CN201410629060.XA priority Critical patent/CN105656744B/en
Priority to PCT/CN2015/081803 priority patent/WO2016074478A1/en
Publication of CN105656744A publication Critical patent/CN105656744A/en
Application granted granted Critical
Publication of CN105656744B publication Critical patent/CN105656744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Abstract

The embodiment of the present invention provides a kind of identification method in service chaining path, equipment and service chaining, it include: the data on flows packet that the first tunnel edge equipment receives the carrying routing information that tunnel point device is sent by playing the tunnel of point device with tunnel, first tunnel edge equipment is data on flows packet making IP Option, and IP Option and routing information are established and mapped, the routing information in data on flows packet is replaced with into IP Option again, re-send to value-added service equipment, the data on flows packet returned is then received from value-added service equipment, IP Option and mapping further according to the data on flows packet of return, identify the routing information of the data on flows packet returned, IP option mark in the data on flows packet of return is replaced with into routing information, and the data on flows packet for carrying routing information is sent to down according to routing information One target device.It does not need to make the value-added service equipment of different manufacturers that can be deployed in service chaining for the privately owned label of flow set.

Description

Identification method, equipment and the service chaining in service chaining path
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of identification method in service chaining path, equipment and Service chaining.
Background technique
The value-added service equipment of conventional data centers network is generally deployed in convergence layer or core layer, position fix and Configuration be it is static, can not according to client to the different demands of value-added service provide dynamic value-added service superposition, it is transportable and Programmable services etc. can not also form value-added service service chaining.If necessary to increase, delete and/or change value-added service, need Deployment value-added service equipment is re-started, network topology is also required to change, in this way, to manage and maintain difficulty increase.In cloud Calculating epoch, the deployment way of this value-added service equipment are not obviously able to satisfy the demand of client.
For the value-added service of conventional data centers network, the value-added service portion service chaining (Service Chain) Flexibly, value-added service can be deployed in core switch, frame top (Top of Rack, abbreviation TOR) interchanger side or virtual machine for administration On (Virtual Machine, abbreviation VM).Administrator can increase, delete and/or change value-added service (object for tenant's dynamic It is reason or virtual), effectively improve flexibility and resource utilization.
Service chaining allows tenant to select different value-added services according to different business demands, and tenant does not have to be concerned about increment The specific deployed position and network topology of business device.Service chaining can give different flow not according to the different demands of user Same value-added service equipment processing.Its configuration can be routed by hop-by-hop configuration strategy, or the point-to-point tunnel of building between the two Road.The former configures complexity, and needs human configuration, and also needs to change configuration in network topology change, in view of configuration and Realize that simply industry generally uses tunnel (Tunnel) technology to realize service chaining function.
Tunneling technique is used as flow identifier by way of defining message and encapsulating privately owned Tag (label).Due to existing at present Value-added service equipment do not support tunnelling function very much, and the Tag that can identify of the value-added service equipment of different vendor is not yet Together, the poor compatibility between different vendor's equipment also carries out flow identification without standard agreement support or general method, if Flow is identified by the way of privately owned label according to the above-mentioned prior art, needs to re-start existing equipment exploitation, need Put into additional cost.
Summary of the invention
The embodiment of the present invention provides identification method, equipment and the service chaining in a kind of service chaining path, does not need to set for flow Privately owned label is set, can make the value-added service equipment of different manufacturers that can be deployed in service chaining.
In a first aspect, the embodiment of the present invention provides a kind of identification method in service chaining path, which comprises
First tunnel edge equipment plays the first tunnel between point device by the first tunnel edge equipment and tunnel It receives the tunnel and plays the data on flows packet that point device is sent, carry routing information in the data on flows packet;
The first tunnel edge equipment is the data on flows packet making Internet protocol IP Option, by the IP Option and the routing information, which are established, to be mapped, and the routing information in the data on flows packet is replaced with the IP Option;
The first tunnel edge equipment sends at least one for the data on flows packet for carrying the IP Option A value-added service equipment carries out value-added service processing;
The first tunnel edge equipment receives from least one described value-added service equipment and carries out value-added service place The data on flows packet returned after reason;
IP Option and the mapping of the first tunnel edge equipment according to the data on flows packet of return are known The routing information for the data on flows packet not returned, by the IP Option in the data on flows packet of return The routing information is replaced with, and the data on flows packet for carrying the routing information is sent to according to the routing information Next target device.
With reference to first aspect, in the first possible implementation of the first aspect, it is position that the tunnel, which plays point device, In the drainage point or the second tunnel edge equipment of the starting point in first tunnel;
Next target device includes the drainage point perhaps the second tunnel edge equipment or the second tunnel The third tunnel edge equipment of terminal, second tunnel be the second tunnel edge equipment and the third edge device it Between tunnel, the third tunnel edge equipment connects at least one value-added service equipment or internet device;Wherein:
If the first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the stream Amount data packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is described Drainage point;
If the first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the stream Amount data packet needs to access internet after carrying out the value-added service processing, then next target device is the internet Equipment;
If the first tunnel edge equipment is the non-first tunnel edge equipment that the data on flows packet passes through, and described Data on flows packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is institute State the second tunnel edge equipment;
If the first tunnel edge equipment is the non-first tunnel edge equipment that the data on flows packet passes through, and described Data on flows packet needed after carrying out the value-added service processing by the connection of the third tunnel edge equipment at least one Value-added service equipment carries out value-added service processing, then next target device is the third tunnel edge equipment;
If the first tunnel edge equipment is the non-first tunnel edge equipment that the data on flows packet passes through, and described Data on flows packet needs to access internet after carrying out the value-added service processing, then next target device is the interconnection Net equipment.
The possible implementation of with reference to first aspect the first, in the second possible implementation, the drainage Preconfigured a variety of routing informations are stored on point, the routing information is the drainage point in the institute for receiving user's transmission It is the data on flows from a variety of routing informations according to the characteristic information of the data on flows packet when stating data on flows packet Packet distribution;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
The possible implementation of second with reference to first aspect, it is in the third possible implementation, described a variety of Routing information is to be pre-configured with by software defined network SDN controller, and be sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
Any one into the third possible implementation of first aspect with reference to first aspect, the routing information It includes at least: the address of what the data on flows packet will successively pass through equipment at cunicular both ends.
Second aspect is applied to service chaining, and the service chaining includes at least: drainage point, the first tunnel edge equipment and institute At least one value-added service equipment of the first tunnel edge equipment connection is stated, the drainage point has logical at least one user foundation Letter connection, establishing between the drainage point and the first tunnel edge equipment has the first tunnel;The described method includes:
The drainage point is by first tunnel to the first tunnel edge equipment transmitted traffic data packet, the stream Routing information is carried in amount data packet, the data on flows packet is the stream that any one user sends at least one described user Measure data packet;
It is data on flows packet making internet after the first tunnel edge equipment receives the data on flows packet The IP Option and the routing information are established and are mapped by protocol IP Option, and will be in the data on flows packet The routing information replaces with the IP Option;
The first tunnel edge equipment by the data on flows packet for carrying the IP Option be sent to it is described extremely Few value-added service equipment carries out value-added service processing;
The first tunnel edge equipment receives from least one described value-added service equipment and carries out value-added service place The data on flows packet returned after reason;
IP Option and the mapping of the first tunnel edge equipment according to the data on flows packet of return are known The routing information for the data on flows packet not returned, by the IP Option in the data on flows packet of return The routing information is replaced with, and the data on flows packet for carrying the routing information is sent to according to the routing information Next target device.
In conjunction with second aspect, in the first possible implementation, the service chaining further include: the second tunnel edge is set At least one value-added service equipment standby, with the second tunnel edge linking of devices;Next target device includes: described Drain point perhaps the second tunnel edge equipment or internet device;Wherein:
If the data on flows packet needs to return to the drainage point after carrying out the value-added service processing, under described One target device is the drainage point;
If the data on flows packet needs to access internet, next target after carrying out the value-added service processing Equipment is the internet device;
If the data on flows packet needs after carrying out the value-added service processing through the second tunnel edge equipment At least one value-added service equipment of connection carry out value-added service processing, then next target device be second tunnel side Edge equipment.
In conjunction with the first possible implementation of second aspect, in second of possible practice, the drainage Preconfigured a variety of routing informations are stored on point, the routing information is the drainage point in the institute for receiving user's transmission It is the data on flows from a variety of routing informations according to the characteristic information of the data on flows packet when stating data on flows packet Packet distribution;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
It is in the third possible implementation, described a variety of in conjunction with second of possible implementation of second aspect Routing information is to be pre-configured with by software defined network SDN controller, and be sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
In conjunction with the third possible practice of second aspect to second aspect, in the 4th kind of possible implementation In, the routing information includes at least: the address of what the data on flows packet will successively pass through equipment at cunicular both ends.
The third aspect, provides a kind of tunnel edge equipment, and the tunnel edge equipment includes:
Receiving unit, for being risen by the tunnel edge equipment and tunnel described in the first tunnel reception between point device Tunnel plays the data on flows packet that point device is sent, and carries routing information in the data on flows packet;
Marking unit, for being the data on flows packet making Internet protocol IP Option, by the IP option mark Know to establish with the routing information and map, and the routing information in the data on flows packet is replaced with into the IP option mark Know;
Transmission unit, for sending at least one increment industry for the data on flows packet for carrying the IP Option Equipment of being engaged in carries out value-added service processing;
The receiving unit, which is also used to receive from least one described value-added service equipment, carries out the value-added service processing The data on flows packet returned afterwards;
Recognition unit, for according to the data on flows packet of return IP Option and the mapping, identification return The data on flows packet the routing information, the institute in the data on flows packet that the transmission unit is also used to return It states IP Option and replaces with the routing information, and the data on flows packet of the routing information will be carried according to the road Diameter information is sent to next target device.
In conjunction with the third aspect, in the first possible implementation of the third aspect, it is position that the tunnel, which plays point device, In the drainage point or the second tunnel edge equipment of the starting point in first tunnel;
Next target device includes the drainage point perhaps the second tunnel edge equipment or the second tunnel The third tunnel edge equipment of terminal, second tunnel be the second tunnel edge equipment and the third edge device it Between tunnel, the third tunnel edge equipment connects at least one value-added service equipment or internet device;Wherein:
If the first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the flow number Need to return to the drainage point after carrying out the value-added service processing according to packet, then next target device is the drainage Point;
If the first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the flow number Need to access internet after carrying out the value-added service processing according to packet, then next target device is that the internet is set It is standby;
If the non-first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the flow Data packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is described the Two tunnel edge equipment;
If the non-first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the flow Data packet is needed after carrying out the value-added service processing through at least one increment of the connection of the third tunnel edge equipment Business device carries out value-added service processing, then next target device is the third tunnel edge equipment;
If the non-first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the flow Data packet needs to access internet after carrying out the value-added service processing, then next target device is that the internet is set It is standby.
In conjunction with the first possible implementation of the third aspect, in the second possible implementation, the drainage Preconfigured a variety of routing informations are stored on point, the routing information is that the drainage point is receiving described in user's transmission It is the data on flows packet from a variety of routing informations according to the characteristic information of the data on flows packet when data on flows packet Distribution;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
It is in the third possible implementation, described a variety of in conjunction with second of possible implementation of the third aspect Routing information is to be pre-configured with by software defined network SDN controller, and be sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
In conjunction with the third aspect to the third aspect the third possible implementation in any one, in the 4th kind of possibility Implementation in, the routing information includes at least: what the data on flows packet will successively pass through cunicular both ends The address of equipment.
Fourth aspect provides a kind of service chaining, and the service chaining includes at least: drainage point, the first tunnel edge equipment, with At least one value-added service equipment of the first tunnel edge equipment connection, the drainage point is established at least one user to be had Communication connection, establishing between the drainage point and the first tunnel edge equipment has the first tunnel;Wherein:
The drainage point is used for through first tunnel to the first tunnel edge equipment transmitted traffic data packet, institute It states and carries routing information in data on flows packet, the data on flows packet is that any one user sends at least one described user Data on flows packet;
The first tunnel edge equipment is for after receiving the data on flows packet, being that the data on flows packet making is mutual The IP Option and the routing information are established and are mapped by networking protocol IP Option, and by the data on flows packet In the routing information replace with the IP Option;
The first tunnel edge equipment is also used to send the data on flows packet for carrying the IP Option to At least one described value-added service equipment carries out value-added service processing;
The first tunnel edge equipment, which is also used to receive from least one described value-added service equipment, carries out the increment The data on flows packet returned after business processing;
The first tunnel edge equipment is also used to according to the IP Option of the data on flows packet of return and described Mapping, identifies the routing information of the data on flows packet of return, by the IP in the data on flows packet of return Option replaces with the routing information, and the data on flows packet for carrying the routing information is believed according to the path Breath is sent to next target device.
In conjunction with fourth aspect, in the first possible implementation, the service chaining further include: the second tunnel edge is set At least one value-added service equipment standby, with the second tunnel edge linking of devices;Next target device includes: described Drain point perhaps the second tunnel edge equipment or internet device;Wherein:
If the data on flows packet needs to return to the drainage point after carrying out the value-added service processing, under described One target device is the drainage point;
If the data on flows packet needs to access internet, next target after carrying out the value-added service processing Equipment is the internet device;
If the data on flows packet needs after carrying out the value-added service processing through the second tunnel edge equipment At least one value-added service equipment of connection carry out value-added service processing, then next target device be second tunnel side Edge equipment.
In conjunction with the first possible implementation of fourth aspect, in the second possible implementation, the drainage Preconfigured a variety of routing informations are stored on point, the routing information is that the drainage point is receiving described in user's transmission It is the data on flows packet from a variety of routing informations according to the characteristic information of the data on flows packet when data on flows packet Distribution;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
It is in the third possible implementation, described a variety of in conjunction with second of possible implementation of fourth aspect Routing information is to be pre-configured with by software defined network SDN controller, and be sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
In conjunction with fourth aspect to fourth aspect the third possible implementation in any one, in the 4th kind of possibility Implementation in, the routing information includes at least: what the data on flows packet will successively pass through cunicular both ends The address of equipment.
In conclusion the embodiment of the present invention provides identification method, equipment and the service chaining in a kind of service chaining path, the first tunnel Road edge device plays the first tunnel between point device by the first tunnel edge equipment and tunnel and receives the tunnel The data on flows packet that point device is sent carries routing information in the data on flows packet, and the first tunnel edge equipment is institute Data on flows packet making Internet protocol IP Option is stated, and the IP Option and routing information foundation are reflected It penetrates, and the routing information in the data on flows packet is replaced with into the IP Option, the first tunnel edge equipment will The data on flows packet for carrying the IP Option is sent at least one value-added service equipment and carries out value-added service processing, The first tunnel edge equipment returns after receiving the progress value-added service processing from least one described value-added service equipment The data on flows packet, IP Option and institute of the first tunnel edge equipment according to the data on flows packet of return Mapping is stated, identifies that the routing information of the data on flows packet of return is the routing information, by the data on flows of return The IP Option in packet replaces with the routing information, and the data on flows packet for carrying the routing information is pressed Next target device is sent to according to the routing information.Compared to existing technologies, it does not need as the privately owned label of flow set just Value-added service equipment can be made to identify data on flows packet, can make the value-added service equipment of different manufacturers that can be deployed in service chaining In.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the identification method in service chaining path provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the identification method in another service chaining path provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the identification method in another service chaining path provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of service chaining provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of tunnel edge equipment provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another tunnel edge equipment provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of service chaining provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
For convenience of explanation, the application scenarios of the embodiment of the present invention are simply introduced first.The embodiment of the present invention mentions The identification method in the service chaining path of confession can be applied to service chaining, generally may include: software defined network in the service chaining (Software Defined Network, abbreviation SDN) controller, at least one drainage point, at least one tunnel edge equipment, And at least one value-added service equipment of each tunnel edge equipment connection.Wherein, drainage point drains flow Equipment, the equipment that each drainage point can connect multiple users, can pass through tunnel skill between drainage point and tunnel edge equipment Art establishes tunnel, can also establish tunnel, SDN controller between tunnel edge equipment and tunnel edge equipment by tunneling technique It can be different data on flows packet configuration path information, and routing information is sent to drainage point.
The embodiment of the present invention provides a kind of identification method in service chaining path, is applied to tunnel edge equipment, such as Fig. 1 institute Show, this method comprises:
Step 101, the first tunnel edge equipment play first between point device by the first tunnel edge equipment and tunnel Tunnel receives tunnel and plays the data on flows packet that point device is sent, and carries routing information in data on flows packet.
Step 102, the first tunnel edge equipment be data on flows packet making Internet protocol (Internet Protocol, Abbreviation IP) Option, IP Option and routing information are established and mapped, and the routing information in data on flows packet is replaced For IP Option.
The data on flows packet for carrying IP Option is sent at least one increasing by step 103, the first tunnel edge equipment It is worth business device and carries out value-added service processing.
Step 104, the first tunnel edge equipment are received from least one described value-added service equipment carries out value-added service place The data on flows packet returned after reason.
Step 105, the first tunnel edge equipment are returned according to the IP Option and mapping, identification of the data on flows packet of return IP Option in the data on flows packet of return is replaced with routing information by the routing information of the data on flows packet returned, and will The data on flows packet for carrying routing information is sent to next target device according to the routing information.
Wherein, next target device can be tunnel and play point device (data on flows packet backtracking), be also possible to next A tunnel edge equipment (data on flows packet will carry out next or multiple value-added service processing), is also possible to internet device (data on flows packet will access internet), tunnel, which plays point device, can be drainage point or tunnel edge equipment.
The embodiment of the present invention also provides a kind of identification method in service chaining path, is applied to service chaining, the service chaining is at least Include: drainage point, the first tunnel edge equipment, at least one the value-added service equipment being connect with the first tunnel edge equipment, draws Flow point and at least one user, which establish, communication connection, and establishing between drainage point and the first tunnel edge equipment has the first tunnel; As shown in Fig. 2, this method comprises:
Step 201, drainage point pass through the first tunnel to the first tunnel edge equipment transmitted traffic data packet, data on flows packet Middle carrying routing information, the data on flows packet are the data on flows packet that any one user sends at least one user.
It is data on flows packet making Internet protocol after step 202, the first tunnel edge equipment receive data on flows packet IP Option and routing information are established and are mapped, and the routing information in data on flows packet is replaced with institute by IP Option State IP Option.
The data on flows packet for carrying IP Option is sent at least one increasing by step 203, the first tunnel edge equipment It is worth business device and carries out value-added service processing.
Step 204, the first tunnel edge equipment are received from least one described value-added service equipment carries out value-added service place The data on flows packet returned after reason.
Step 205, the first tunnel edge equipment are returned according to the IP Option and mapping, identification of the data on flows packet of return IP Option in the data on flows packet of return is replaced with routing information by the routing information of the data on flows packet returned, and will The data on flows packet for carrying routing information is sent to next target device according to routing information.
Likewise, next target device, which can be tunnel, plays point device (data on flows packet backtracking), under being also possible to One tunnel edge equipment (data on flows packet will carry out next or multiple value-added service processing), is also possible to internet device (data on flows packet will access internet), tunnel, which plays point device, can be drainage point or tunnel edge equipment.
In conclusion the identification method in service chaining path provided in an embodiment of the present invention, the first tunnel edge equipment passes through The first tunnel edge equipment and tunnel play the first tunnel between point device and receive the stream that the tunnel plays point device transmission Data packet is measured, routing information is carried in the data on flows packet, the first tunnel edge equipment is the data on flows packet mark Remember Internet protocol IP Option, and the IP Option and the routing information are established and mapped, and by the flow Routing information in data packet replaces with the IP Option, and the first tunnel edge equipment will carry the IP option mark The data on flows packet known is sent at least one value-added service equipment and carries out value-added service processing, first tunnel edge Equipment receives the data on flows packet for carrying out returning after the value-added service processing from least one described value-added service equipment, IP Option and the mapping of the first tunnel edge equipment according to the data on flows packet of return, identify return The routing information of the data on flows packet is the routing information, by the IP option mark in the data on flows packet of return Knowledge replaces with the routing information, and the data on flows packet for carrying the routing information is sent according to the routing information To next target device.Compared to existing technologies, it does not need that value-added service equipment can be made for the privately owned label of flow set It identifies data on flows packet, can make the value-added service equipment of different manufacturers that can be deployed in service chaining.
In order to enable those skilled in the art to be more clearly understood that technical solution provided in an embodiment of the present invention, lead to below Specific embodiment is crossed, the identification method in service chaining path provided in an embodiment of the present invention is described in detail, such as Fig. 3 institute Show, this method comprises:
Step 301, drainage point receive data on flows packet from the user, carry routing information in data on flows packet.
Drainage point can connect with the equipment of multiple users, it should be noted that in service chaining drainage put quantity with And the data on flows packet that receives of drainage point all may be it is one or more, for convenience of explanation, here with a drainage point and It is illustrated for one data on flows packet, which can be any in the data on flows packet that the drainage point receives One.
Preconfigured a variety of routing informations are stored on drainage point, which is respectively used to different flows Data packet, these different data on flows packets can be distinguished by the characteristic information of the data on flows packet itself, this is pre-configured with A variety of routing informations be preconfigured by the service chain management module in SDN controller, and after configuration according to pre- If policy distribution is to the drainage point.Wherein, preset strategy for example may include: upon initialization, by configured a variety of roads Diameter information is sent to drainage point;Alternatively, updated a variety of routing informations are sent to described when a variety of routing informations update Drainage point.Wherein, routing information includes at least: the address of what data on flows packet will successively pass through equipment at cunicular both ends (such as when default setting after a certain tunnel edge equipment when needing to carry out a certain value-added service equipment to be handled, road It can not also include the address of the value-added service equipment in diameter information).It in addition to this also may include the value-added service to be passed through The address of equipment can also include the address of internet device if to access internet after carrying out value-added service processing.
Drainage point is after receiving at least one data on flows packet, according to the characteristic information of each data on flows packet, from institute State in a variety of routing informations is that each data on flows packet selects suitable routing information, and routing information is encapsulated in data on flows Bao Zhong.Above-mentioned routing information is exactly the routing information that drainage point is the distribution of data on flows packet.
Wherein, the characteristic information of data on flows packet can be the source IP address, source port number, destination IP of the data on flows packet Address, destination slogan, transport layer protocol number, the address source media access control (Media AccessControl, abbreviation MAC), At least one of target MAC (Media Access Control) address, virtual LAN (Virtual Local Area Network, VLAN) port numbers.
Step 302, drainage point pass through the first tunnel to the first tunnel edge equipment transmitted traffic data packet.
Wherein, the first tunnel is the tunnel between drainage point and the first tunnel edge equipment, and first tunnel is with the drainage Point is starting point, and is terminated in the first tunnel edge equipment.
After step 303, the first tunnel edge equipment receive data on flows packet, the routing information in data on flows packet is deleted It removes, is data on flows packet making IP Option, and IP Option and routing information are established and mapped.
Wherein, routing information at least may include: the data on flows packet will successively by cunicular both ends set Standby, value-added service equipment address.For example, it is assumed that data on flows packet will carry out value-added service 1 and value-added service 2, wherein assuming Value-added service 1 is carried out by value-added service equipment 1, and value-added service 2 is carried out by value-added service equipment 2, value-added service equipment 1 and tunnel Edge device 1 connects, and value-added service equipment 2 is connect with tunnel edge equipment 2, establishes between drainage point and tunnel edge equipment 1 Tunnel 2 is established in tunnel 1 between tunnel edge equipment 1 and tunnel edge equipment 2, then data on flows packet will successively by drainage point, Tunnel edge equipment 1, value-added service equipment 1, tunnel edge equipment 2, value-added service equipment 2, then routing information is drainage point ground Location -1 address of tunnel edge equipment -1 address of value-added service equipment -2 addresses of tunnel edge equipment -2 address of value-added service equipment, In, address can be IP address.
The data on flows packet for carrying IP Option is sent at least one increasing by step 304, the first tunnel edge equipment It is worth business device and carries out value-added service processing.
Wherein, the first tunnel edge equipment has multiple ports, therefore can connect at least one value-added service equipment, the One tunnel edge equipment at least one value-added service equipment connected to it can be is deployed in same ground jointly.
Step 305, the first tunnel edge equipment are received from least one described value-added service equipment carries out value-added service place The data on flows packet returned after reason.
The IP Option and the mapping of step 306, the first tunnel edge equipment according to the data on flows packet of return are known The routing information for the data on flows packet not returned is deleted the IP Option in the data on flows packet of return, by routing information It is added in the data on flows packet, and the data on flows packet for carrying routing information is sent to next target according to routing information Equipment.
Specifically, IP Option and the mapping of the first tunnel edge equipment according to the data on flows packet of return, just It can identify the original routing information of data on flows packet, then delete the IP Option in data on flows packet, and will The routing information Reseals in data on flows packet, then the data on flows packet for carrying routing information is sent according to routing information To next target device.Here next target device can be drainage point, perhaps can be the second tunnel edge equipment or It can be internet device.Wherein, if data on flows packet needs to return to drainage point after carrying out value-added service processing, this is needed Will be according to routing information backtracking, then next target device is just drainage point;If data on flows packet is carrying out value-added service It needs to access internet after processing, then next target device is the internet device;If data on flows packet is carrying out increment industry Need that (establishing between the second tunnel edge equipment and the first tunnel edge equipment has by the second tunnel edge equipment after business processing Second tunnel wherein the second tunnel is using the first tunnel edge equipment as starting point, and terminates in the second tunnel edge equipment) connection At least one value-added service equipment carries out value-added service processing, then next target device is the second tunnel edge equipment.
It for the clearer description embodiment of the present invention, is illustrated by following example, as shown in figure 4, being service chaining Structural scheme of mechanism, the service chaining include SDN controller, drainage point, tunnel edge equipment 1, value-added service equipment 1, tunnel side Edge equipment 2, value-added service equipment 2, wherein include service chain management module in SDN controller, and service chain management module is matched in advance The a variety of routing informations set, and it has been sent to drainage point, drainage point is connect with the equipment of multiple users (can also claim tenant), is drawn Establishing between flow point and tunnel edge equipment 1 has tunnel 1 (drainage point is starting point, and is terminated in tunnel edge equipment 1), tunnel side Established between edge equipment 1 and tunnel edge equipment 2 have tunnel 2 (tunnel edge equipment 1 is starting point, and tunnel edge equipment 2 eventually Knot), value-added service equipment 1 is connect with tunnel edge equipment 1, and is deployed in a ground together, value-added service equipment 2 and tunnel edge Equipment 2 connects, and is deployed in together anotherly, and for carrying out value-added service 1, value-added service equipment 2 is used for value-added service equipment 1 Carry out value-added service 2.Where it is assumed that the IP address of drainage point is 1.1.1.1, the IP address of tunnel edge equipment 1 2.2.2.2, the IP address of value-added service equipment 1 is 3.3.3.3, the 4.4.4.4 that the IP address of tunnel edge equipment 2 is, increment The IP address of business device 2 is 5.5.5.5.
If drainage point has received the data on flows packet 1 and data on flows packet 2 of user's transmission, it is assumed that data on flows packet 1 is wanted Value-added service 1 is carried out, data on flows packet 2 will carry out value-added service 1 and 2, according to a variety of routing informations of drainage point storage, drainage Point is that the routing information 1 that data on flows packet 1 distributes is 1.1.1.1-2.2.2.2-3.3.3.3, and drainage point is data on flows packet 2 minutes The routing information 2 matched is 1.1.1.1-2.2.2.2-3.3.3.3-4.4.4.4-5.5.5.5.
Routing information 1 is encapsulated in data on flows packet 1 by then drainage point, and routing information 2 is encapsulated in data on flows packet 2 In, and data on flows packet 1 and data on flows packet 2 are sent to by tunnel edge equipment 1 by tunnel 1.
After tunnel edge equipment 1 receives data on flows packet 1 and data on flows packet 2, respectively data on flows packet 1 and flow number IP Option is distributed according to packet 2, and IP Option and routing information are established and mapped, which can be mapping table 1, such as Shown in table.The IP Option of data on flows packet 1 is set as 1, and the IP Option of data on flows packet 2 is set as 2.
Table 1
Routing information IP Option
1.1.1.1-2.2.2.2-3.3.3.3 1
1.1.1.1-2.2.2.2-3.3.3.3-4.4.4.4-5.5.5.5 2
Then tunnel edge equipment 1 by data on flows packet 1 and data on flows packet 2 routing information 1 and routing information 2 divide It does not delete, and IP Option " 1 " and IP Option " 2 " is encapsulated into respectively in data on flows packet 1 and data on flows packet 2.
Tunnel edge equipment 1 will carry the data on flows packet 1 of IP Option " 1 " and the flow number of IP Option " 2 " It is sent to value-added service equipment 1 according to packet 2, value-added service 1 is carried out and handles.
After completing 1 processing of value-added service processing, data on flows packet 1 and data on flows packet 2 return to tunnel from value-added service equipment 1 Road edge device 1, tunnel edge equipment 1 identify the path of data on flows packet 1 according to mapping shown in IP Option " 1 " and table 1 Information is routing information 1, and the routing information of data on flows packet 2 is routing information 2.
Finally, tunnel edge equipment 1 by by data on flows packet 1 and data on flows packet 2 IP Option " 1 " and IP select Item mark " 2 " is deleted respectively, and routing information 1 and routing information 2 are encapsulated into data on flows packet 1 and data on flows packet 2 respectively In.
Tunnel edge equipment 1 according to routing information 1 by data on flows packet 1 according to backtracking, be sent to drainage point, according to Data on flows packet 2 is sent to tunnel edge equipment 2 by routing information 2, so that tunnel edge equipment 2 sends data on flows packet 2 Value-added service 2 is carried out to value-added service equipment 2, wherein data on flows packet 2 is sent to value-added service equipment by tunnel edge equipment 2 It is also required to distribute IP Option to flow data packet 2 before 2, and establishes mapping, method is identical with preceding method, no longer It repeats.
In conclusion first tunnel edge equipment is logical in the identification method in service chaining path provided in an embodiment of the present invention It crosses the first tunnel edge equipment and tunnel plays the first tunnel between point device and receives what the tunnel point device was sent Data on flows packet, routing information is carried in the data on flows packet, and the first tunnel edge equipment is the data on flows packet Internet protocol IP Option is marked, and the IP Option and the routing information are established and mapped, and by the stream Routing information in amount data packet replaces with the IP Option, and the first tunnel edge equipment will carry the IP option The data on flows packet of mark is sent at least one value-added service equipment and carries out value-added service processing, first tunnel side Edge equipment receives the data on flows for carrying out returning after the value-added service processing from least one described value-added service equipment Packet, the first tunnel edge equipment are returned according to the IP Option and the mapping, identification of the data on flows packet of return The routing information of the data on flows packet returned is the routing information, and the IP in the data on flows packet of return is selected Item mark replaces with the routing information, and will carry the data on flows packet of the routing information according to the routing information It is sent to next target device.The embodiment of the present invention compared to existing technologies, does not need as the privately owned label of flow set, use Be IP Option, since existing value-added service equipment can identify IP Option, different manufacturers can be made Value-added service equipment can be deployed in service chaining, improve the compatibility of value-added service equipment in service chaining, and then not needed Equipment is developed again, saves lower deployment cost.
The embodiment of the present invention also provides a kind of tunnel edge equipment 01, as shown in figure 5, tunnel edge equipment includes:
Receiving unit 011, for being risen by tunnel edge equipment and tunnel described in the first tunnel reception between point device Tunnel plays the data on flows packet that point device is sent, and carries routing information in the data on flows packet;
Marking unit 012, for being the data on flows packet making Internet protocol IP Option, by the IP option Mark is established with the routing information to be mapped, and the routing information in the data on flows packet is replaced with the IP option Mark;
Transmission unit 013, for sending at least one increasing for the data on flows packet for carrying the IP Option It is worth business device and carries out value-added service processing;
After receiving unit 011 is also used to receive the progress value-added service processing from least one described value-added service equipment The data on flows packet returned;
Recognition unit 014, for being returned according to the IP Option and the mapping, identification of the data on flows packet of return The routing information of the data on flows packet returned, in the data on flows packet that transmission unit 013 is also used to return The IP Option replaces with the routing information, and will carry the data on flows packet of the routing information according to described Routing information is sent to next target device.
Optionally, the tunnel plays the drainage point or the second tunnel side that point device is the starting point positioned at first tunnel Edge equipment;
Next target device includes the drainage point perhaps the second tunnel edge equipment or the second tunnel The third tunnel edge equipment of terminal, second tunnel be the second tunnel edge equipment and the third edge device it Between tunnel, the third tunnel edge equipment connects at least one value-added service equipment or internet device;Wherein:
If the first tunnel edge equipment that the tunnel edge equipment 01 is passed through for the data on flows packet, and the flow Data packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is described draws Flow point;
If the first tunnel edge equipment that tunnel edge equipment 01 is passed through for the data on flows packet, and the data on flows Packet needs to access internet after carrying out the value-added service processing, then next target device is the internet device;
If the non-first tunnel edge equipment that tunnel edge equipment 01 is passed through for the data on flows packet, and the flow number Need to return to the drainage point after carrying out the value-added service processing according to packet, then next target device is described second Tunnel edge equipment;
If the non-first tunnel edge equipment that tunnel edge equipment 01 is passed through for the data on flows packet, and the flow number It is needed after carrying out the value-added service processing according to packet through at least one increment industry of the connection of the third tunnel edge equipment Equipment of being engaged in carries out value-added service processing, then next target device is the third tunnel edge equipment;
If the non-first tunnel edge equipment that tunnel edge equipment 01 is passed through for the data on flows packet, and the flow number Need to access internet after carrying out the value-added service processing according to packet, then next target device is that the internet is set It is standby.
Optionally, preconfigured a variety of routing informations are stored on the drainage point, the routing information is described draws Flow point is when receiving the data on flows packet of user's transmission, according to the characteristic information of the data on flows packet from a variety of roads It is that the data on flows packet distributes in diameter information;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, vlan port number.
Optionally, a variety of routing informations are pre-configured with by software defined network SDN controller, and according to default plan Slightly it is sent to the drainage point;
Wherein, the preset strategy includes: upon initialization, a variety of routing informations to be sent to the drainage point; Or, updated a variety of routing informations are sent to the drainage point when a variety of routing informations update.
Optionally, the routing information includes at least: the cunicular both ends of institute that the data on flows packet will successively pass through Equipment address.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In conclusion the tunnel edge equipment of mark provided in an embodiment of the present invention, by the tunnel edge equipment with The first tunnel that tunnel plays between point device receives the tunnel and plays the data on flows packet that point device is sent, the data on flows packet Middle carrying routing information, the tunnel edge equipment are the data on flows packet making Internet protocol IP Option, and will The IP Option and the routing information, which are established, to be mapped, and the routing information in the data on flows packet is replaced with described IP Option, the tunnel edge equipment send at least one for the data on flows packet for carrying the IP Option Value-added service equipment carry out value-added service processing, the tunnel edge equipment from least one described value-added service equipment receive into The data on flows packet returned after row value-added service processing, the tunnel edge equipment is according to the flow number of return IP Option and the mapping according to packet identify that the routing information of the data on flows packet of return is the routing information, The IP Option in the data on flows packet of return is replaced with into the routing information, and the path letter will be carried The data on flows packet of breath is sent to next target device according to the routing information.Compared to existing technologies, it does not need Value-added service equipment can be made to identify data on flows packet for the privately owned label of flow set, the value-added service of different manufacturers can be made Equipment can be deployed in service chaining.
The embodiment of the present invention also provides another tunnel edge equipment 02, as shown in fig. 6, tunnel edge equipment 02 includes: Processor 021, memory 022, communication interface 023, processor 021, memory 022, communication interface 023 are connected by bus 024 It connects, wherein communication interface 023 with other equipment for communicating, and memory 022 is for storing computer program 0221, processor 021 for executing the computer program 0221, which includes:
Tunnel edge equipment 02 plays the first tunnel between point device by the first tunnel edge equipment 02 and tunnel It receives the tunnel and plays the data on flows packet that point device is sent, carry routing information in the data on flows packet;
Tunnel edge equipment 02 is the data on flows packet making Internet protocol IP Option, by the IP option mark Know to establish with the routing information and map, and the routing information in the data on flows packet is replaced with into the IP option mark Know;
The data on flows packet for carrying the IP Option is sent at least one increment by tunnel edge equipment 02 Business device carries out value-added service processing;
Tunnel edge equipment 02 is returned after receiving the progress value-added service processing from least one described value-added service equipment The data on flows packet returned;
IP Option and the mapping of the tunnel edge equipment 02 according to the data on flows packet of return, identification return The data on flows packet the routing information, the IP Option in the data on flows packet of return is replaced with The routing information, and the data on flows packet for carrying the routing information is sent to next mesh according to the routing information Marking device.
Optionally, the tunnel plays the drainage point or the second tunnel side that point device is the starting point positioned at first tunnel Edge equipment;
Next target device includes the drainage point perhaps the second tunnel edge equipment or the second tunnel The third tunnel edge equipment of terminal, second tunnel be the second tunnel edge equipment and the third edge device it Between tunnel, the third tunnel edge equipment connects at least one value-added service equipment or internet device;Wherein:
If the first tunnel edge equipment that tunnel edge equipment 02 is passed through for the data on flows packet, and the data on flows Packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is the drainage Point;
If the first tunnel edge equipment that tunnel edge equipment 02 is passed through for the data on flows packet, and the data on flows Packet needs to access internet after carrying out the value-added service processing, then next target device is the internet device;
If the non-first tunnel edge equipment that tunnel edge equipment 02 is passed through for the data on flows packet, and the flow number Need to return to the drainage point after carrying out the value-added service processing according to packet, then next target device is described second Tunnel edge equipment;
If the non-first tunnel edge equipment that tunnel edge equipment 02 is passed through for the data on flows packet, and the flow number It is needed after carrying out the value-added service processing according to packet through at least one increment industry of the connection of the third tunnel edge equipment Equipment of being engaged in carries out value-added service processing, then next target device is the third tunnel edge equipment;
If the non-first tunnel edge equipment that tunnel edge equipment 02 is passed through for the data on flows packet, and the flow number Need to access internet after carrying out the value-added service processing according to packet, then next target device is that the internet is set It is standby.
Optionally, preconfigured a variety of routing informations are stored on the drainage point, the routing information is described draws Flow point is when receiving the data on flows packet of user's transmission, according to the characteristic information of the data on flows packet from a variety of roads It is that the data on flows packet distributes in diameter information;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
Optionally, a variety of routing informations are pre-configured with by software defined network SDN controller, and according to default plan Slightly it is sent to the drainage point;
Wherein, the preset strategy includes: upon initialization, a variety of routing informations to be sent to the drainage point; Or, updated a variety of routing informations are sent to the drainage point when a variety of routing informations update.
Optionally, the routing information includes at least: the cunicular both ends of institute that the data on flows packet will successively pass through Equipment address.
In conclusion the tunnel edge equipment of mark provided in an embodiment of the present invention, by the tunnel edge equipment with The first tunnel that tunnel plays between point device receives the tunnel and plays the data on flows packet that point device is sent, the data on flows packet Middle carrying routing information, the tunnel edge equipment are the data on flows packet making Internet protocol IP Option, and will The IP Option and the routing information, which are established, to be mapped, and the routing information in the data on flows packet is replaced with described IP Option, the tunnel edge equipment send at least one for the data on flows packet for carrying the IP Option Value-added service equipment carry out value-added service processing, the tunnel edge equipment from least one described value-added service equipment receive into The data on flows packet returned after row value-added service processing, the tunnel edge equipment is according to the flow number of return IP Option and the mapping according to packet identify that the routing information of the data on flows packet of return is the routing information, The IP Option in the data on flows packet of return is replaced with into the routing information, and the path letter will be carried The data on flows packet of breath is sent to next target device according to the routing information.Compared to existing technologies, it does not need Value-added service equipment can be made to identify data on flows packet for the privately owned label of flow set, the value-added service of different manufacturers can be made Equipment can be deployed in service chaining.
The embodiment of the present invention also provides a kind of service chaining, which can be as shown in fig. 7, the service chaining be at least wrapped Include: the 1, first tunnel edge equipment 2 of drainage point, at least one value-added service connecting with the first tunnel edge equipment 1 are set Standby 3, drainage point 1 is established at least one user 4 communication connection, builds between drainage point 1 and the first tunnel edge equipment 2 It is vertical to have the first tunnel 5;Wherein:
Drainage point 1 is for passing through the first tunnel 5 to 2 transmitted traffic data packet of the first tunnel edge equipment, the flow number According to routing information is carried in packet, the data on flows packet is the flow that any one user sends at least one described user 4 Data packet;
First tunnel edge equipment 2 for the data on flows packet making for interconnecting after receiving the data on flows packet The IP Option and the routing information are established and are mapped by fidonetFido IP Option, and will be in the data on flows packet The routing information replace with the IP Option;
First tunnel edge equipment 2 is also used to send the data on flows packet for carrying the IP Option to described At least one value-added service equipment 3 carries out value-added service processing;
First tunnel edge equipment 2, which is also used to receive from least one described value-added service equipment 3, carries out the increment industry The data on flows packet returned after business processing;
First tunnel edge equipment 2 is also used to according to the IP Option of the data on flows packet of return and described reflects It penetrates, identifies the routing information of the data on flows packet of return, the IP in the data on flows packet of return is selected Item mark replaces with the routing information, and will carry the data on flows packet of the routing information according to the routing information It is sent to next target device.
Optionally, the service chaining further include: the second tunnel edge equipment 6, with the second tunnel edge equipment 6 link to Few value-added service equipment 7, establishing between the first tunnel edge equipment 2 and the second tunnel edge equipment 6 has the second tunnel 8; Next target device includes: drainage point 1 perhaps the second tunnel edge equipment 6 or internet device 9;Wherein:
If the data on flows packet needs to return to drainage point 1 after carrying out the value-added service processing, described next Target device is drainage point 1;
If the data on flows packet needs to access internet, next target after carrying out the value-added service processing Equipment is internet device 9;
If the data on flows packet needs the company by the second tunnel edge equipment 6 after carrying out the value-added service processing It connects at least one value-added service equipment 7 and carries out value-added service processing, then next target device is the second tunnel edge equipment 6。
Optionally, preconfigured a variety of routing informations are stored on drainage point 1, the routing information is that drainage point 1 exists When receiving the data on flows packet of the transmission of user 4, believed according to the characteristic information of the data on flows packet from a variety of paths It is that the data on flows packet distributes in breath;
The characteristic information include source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, At least one of source MAC, target MAC (Media Access Control) address, vlan port number.
Optionally, the service chaining further include: SDN controller 10, a variety of routing informations are pre- by SDN controller 10 It first configures, and is sent to drainage point 1 according to preset strategy;
Wherein, the preset strategy includes: upon initialization, a variety of routing informations to be sent to drainage point 1;Or, When a variety of routing informations update, updated a variety of routing informations are sent to drainage point 1.
Optionally, the routing information includes at least: the cunicular both ends of institute that the data on flows packet will successively pass through Equipment address.
Optionally, service chaining shown in Fig. 7 include above-mentioned first tunnel edge equipment 2 and the first tunnel edge equipment 6 only It is exemplary only, it needs to include more tunnel edge equipment in service chaining according to business and be set with tunnel edge For the value-added service equipment of connection, the tunnel edge equipment in the embodiment of the present invention can be the tunnel edge in previous embodiment Equipment 01 or 02.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In conclusion service chaining provided in an embodiment of the present invention, plays point device by the tunnel edge equipment and tunnel Between the first tunnel receive the tunnel and play the data on flows packet that point device is sent, path letter is carried in the data on flows packet Breath, the tunnel edge equipment are the data on flows packet making Internet protocol IP Option, and by the IP option mark Know to establish with the routing information and map, and the routing information in the data on flows packet is replaced with into the IP Option, The tunnel edge equipment sends at least one value-added service for the data on flows packet for carrying the IP Option and sets Standby to carry out value-added service processing, the tunnel edge equipment receives from least one described value-added service equipment and carries out the increment The data on flows packet returned after business processing, the tunnel edge equipment are selected according to the IP of the data on flows packet of return Item mark and the mapping identify that the routing information of the data on flows packet of return is the routing information, by the institute of return It states the IP Option in data on flows packet and replaces with the routing information, and the stream that the routing information will be carried It measures data packet and is sent to next target device according to the routing information.Compared to existing technologies, it does not need as flow set Privately owned label can make value-added service equipment identify data on flows packet, can make the value-added service equipment of different manufacturers can portion Administration is in service chaining.
In several embodiments provided by the present invention, it should be understood that disclosed methods, devices and systems, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (20)

1. a kind of identification method in service chaining path, which is characterized in that the described method includes:
First tunnel edge equipment plays the first tunnel between point device by the first tunnel edge equipment and tunnel and receives The tunnel plays the data on flows packet that point device is sent, and carries routing information in the data on flows packet;
The first tunnel edge equipment is the data on flows packet making Internet protocol IP Option, by the IP option Mark is established with the routing information to be mapped, and the routing information in the data on flows packet is replaced with the IP option Mark;
The data on flows packet for carrying the IP Option is sent at least one increasing by the first tunnel edge equipment It is worth business device and carries out value-added service processing;
The first tunnel edge equipment is after at least one described value-added service equipment reception progress value-added service processing The data on flows packet returned;
The first tunnel edge equipment is returned according to the IP Option and the mapping, identification of the data on flows packet of return The routing information of the data on flows packet returned replaces the IP Option in the data on flows packet of return For the routing information, and the data on flows packet for carrying the routing information is sent to according to the routing information next Target device.
2. the method according to claim 1, wherein it is positioned at first tunnel that the tunnel, which plays point device, The drainage point or the second tunnel edge equipment of starting point;
Next target device includes the drainage point perhaps the second tunnel edge equipment or the second termination point of a tunnel Third tunnel edge equipment, tunnel of second tunnel between the second tunnel edge equipment and third edge device Road, the third tunnel edge equipment connect at least one value-added service equipment or internet device;Wherein:
If the first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the flow number Need to return to the drainage point after carrying out the value-added service processing according to packet, then next target device is the drainage Point;
If the first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the flow number Need to access internet after carrying out the value-added service processing according to packet, then next target device is that the internet is set It is standby;
If the non-first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the flow Data packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is described the Two tunnel edge equipment;
If the non-first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the flow Data packet is needed after carrying out the value-added service processing through at least one increment of the connection of the third tunnel edge equipment Business device carries out value-added service processing, then next target device is the third tunnel edge equipment;
If the non-first tunnel edge equipment that the first tunnel edge equipment is passed through for the data on flows packet, and the flow Data packet needs to access internet after carrying out the value-added service processing, then next target device is that the internet is set It is standby.
3. according to the method described in claim 2, it is characterized in that, being stored with preconfigured a variety of paths on the drainage point Information, the routing information is the drainage point when receiving the data on flows packet of user's transmission, according to the flow number It is that the data on flows packet is distributed from a variety of routing informations according to the characteristic information of packet;
The characteristic information includes source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, source At least one of MAC Address, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
4. according to the method described in claim 3, it is characterized in that, a variety of routing informations are by software defined network SDN Controller is pre-configured with, and is sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
5. method according to claim 1-4, which is characterized in that the routing information includes at least: the stream Amount data packet successively to pass through the equipment at cunicular both ends address.
6. a kind of identification method in service chaining path, which is characterized in that be applied to service chaining, the service chaining includes at least: drawing Flow point, the first tunnel edge equipment, at least one the value-added service equipment being connect with the first tunnel edge equipment, it is described to draw Flow point and at least one user, which establish, communication connection, and foundation has the between the drainage point and the first tunnel edge equipment One tunnel;The described method includes:
The drainage point is by first tunnel to the first tunnel edge equipment transmitted traffic data packet, the flow number According to routing information is carried in packet, the data on flows packet is the flow number that any one user sends at least one described user According to packet;
It is the data on flows packet making Internet protocol after the first tunnel edge equipment receives the data on flows packet The IP Option and the routing information are established and are mapped by IP Option, and will be described in the data on flows packet Routing information replaces with the IP Option;
The first tunnel edge equipment sends described at least one for the data on flows packet for carrying the IP Option A value-added service equipment carries out value-added service processing;
The first tunnel edge equipment is after at least one described value-added service equipment reception progress value-added service processing The data on flows packet returned;
The first tunnel edge equipment is returned according to the IP Option and the mapping, identification of the data on flows packet of return The routing information of the data on flows packet returned replaces the IP Option in the data on flows packet of return For the routing information, and the data on flows packet for carrying the routing information is sent to according to the routing information next Target device.
7. according to the method described in claim 6, it is characterized in that, the service chaining further include: the second tunnel edge equipment, with At least one value-added service equipment of the second tunnel edge linking of devices;Next target device includes: the drainage Point perhaps the second tunnel edge equipment or internet device;Wherein:
If the data on flows packet needs to return to the drainage point, next mesh after carrying out the value-added service processing Marking device is the drainage point;
If the data on flows packet needs to access internet, next target device after carrying out the value-added service processing For the internet device;
If the data on flows packet needs the company by the second tunnel edge equipment after carrying out the value-added service processing It connects at least one value-added service equipment and carries out value-added service processing, then next target device is that second tunnel edge is set It is standby.
8. the method according to the description of claim 7 is characterized in that being stored with preconfigured a variety of paths on the drainage point Information, the routing information is the drainage point when receiving the data on flows packet of user's transmission, according to the flow number It is that the data on flows packet is distributed from a variety of routing informations according to the characteristic information of packet;
The characteristic information includes source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, source At least one of MAC Address, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
9. according to the method described in claim 8, it is characterized in that, a variety of routing informations are by software defined network SDN Controller is pre-configured with, and is sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
10. the method according to claim 6, which is characterized in that the routing information includes at least: the stream Amount data packet successively to pass through the equipment at cunicular both ends address.
11. a kind of tunnel edge equipment, which is characterized in that the tunnel edge equipment includes:
Receiving unit receives the tunnel for playing the first tunnel between point device by the tunnel edge equipment and tunnel The data on flows packet that point device is sent is played, carries routing information in the data on flows packet;
Marking unit, for be the data on flows packet making Internet protocol IP Option, by the IP Option with The routing information establishes mapping, and the routing information in the data on flows packet is replaced with the IP Option;
Transmission unit is set for sending at least one value-added service for the data on flows packet for carrying the IP Option It is standby to carry out value-added service processing;
The receiving unit is also used to return after receiving the progress value-added service processing from least one described value-added service equipment The data on flows packet returned;
Recognition unit, for according to the data on flows packet of return IP Option and the mapping, identify the institute of return The routing information of data on flows packet is stated, the IP in the data on flows packet that the transmission unit is also used to return Option replaces with the routing information, and the data on flows packet for carrying the routing information is believed according to the path Breath is sent to next target device.
12. tunnel edge equipment according to claim 11, which is characterized in that it is positioned at described that the tunnel, which plays point device, The drainage point or the second tunnel edge equipment of the starting point in the first tunnel;
Next target device includes the drainage point perhaps the second tunnel edge equipment or the second termination point of a tunnel Third tunnel edge equipment, tunnel of second tunnel between the second tunnel edge equipment and third edge device Road, the third tunnel edge equipment connect at least one value-added service equipment or internet device;Wherein:
If the first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the data on flows packet Need to return to the drainage point after carrying out the value-added service processing, then next target device is the drainage point;
If the first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the data on flows packet Need to access internet after carrying out the value-added service processing, then next target device is the internet device;
If the non-first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the data on flows Packet needs to return to the drainage point after carrying out the value-added service processing, then next target device is second tunnel Road edge device;
If the non-first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the data on flows Packet needs after carrying out the value-added service processing through at least one value-added service of the connection of the third tunnel edge equipment Equipment carries out value-added service processing, then next target device is the third tunnel edge equipment;
If the non-first tunnel edge equipment that the tunnel edge equipment is passed through for the data on flows packet, and the data on flows Packet needs to access internet after carrying out the value-added service processing, then next target device is the internet device.
13. tunnel edge equipment according to claim 12, which is characterized in that be stored with and be pre-configured on the drainage point A variety of routing informations, the routing information be it is described drainage point receive user transmission the data on flows packet when, according to The characteristic information of the data on flows packet is that the data on flows packet is distributed from a variety of routing informations;
The characteristic information includes source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, source At least one of MAC Address, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
14. tunnel edge equipment according to claim 13, which is characterized in that a variety of routing informations are determined by software Adopted network SDN controller is pre-configured with, and is sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
15. the described in any item tunnel edge equipment of 1-14 according to claim 1, which is characterized in that the routing information is at least It include: the address of what the data on flows packet will successively pass through equipment at cunicular both ends.
16. a kind of service chaining, which is characterized in that the service chaining includes at least: drainage point, the first tunnel edge equipment and institute At least one value-added service equipment of the first tunnel edge equipment connection is stated, the drainage point is to set to what flow was drained Standby, the drainage point and at least one user, which establish, communication connection, the drainage point and the first tunnel edge equipment it Between establish have the first tunnel;Wherein:
The drainage point is used for through first tunnel to the first tunnel edge equipment transmitted traffic data packet, the stream Routing information is carried in amount data packet, the data on flows packet is the stream that any one user sends at least one described user Measure data packet;
The first tunnel edge equipment is for after receiving the data on flows packet, being data on flows packet making internet The IP Option and the routing information are established and are mapped by protocol IP Option, and will be in the data on flows packet The routing information replaces with the IP Option;
The first tunnel edge equipment is also used to send the data on flows packet for carrying the IP Option to described At least one value-added service equipment carries out value-added service processing;
The first tunnel edge equipment, which is also used to receive from least one described value-added service equipment, carries out the value-added service The data on flows packet returned after processing;
The first tunnel edge equipment be also used to the data on flows packet according to return IP Option and the mapping, The routing information for identifying the data on flows packet returned, by the IP option mark in the data on flows packet of return Knowledge replaces with the routing information, and the data on flows packet for carrying the routing information is sent according to the routing information To next target device.
17. service chaining according to claim 16, which is characterized in that the service chaining further include: the second tunnel edge is set At least one value-added service equipment standby, with the second tunnel edge linking of devices;Next target device includes: described Drain point perhaps the second tunnel edge equipment or internet device;Wherein:
If the data on flows packet needs to return to the drainage point, next mesh after carrying out the value-added service processing Marking device is the drainage point;
If the data on flows packet needs to access internet, next target device after carrying out the value-added service processing For the internet device;
If the data on flows packet needs the company by the second tunnel edge equipment after carrying out the value-added service processing It connects at least one value-added service equipment and carries out value-added service processing, then next target device is that second tunnel edge is set It is standby.
18. service chaining according to claim 17, which is characterized in that be stored on the drainage point preconfigured a variety of Routing information, the routing information is the drainage point when receiving the data on flows packet of user's transmission, according to the stream The characteristic information for measuring data packet is that the data on flows packet is distributed from a variety of routing informations;
The characteristic information includes source IP address, source port number, purpose IP address, destination slogan, transport layer protocol number, source At least one of MAC Address, target MAC (Media Access Control) address, virtual LAN VLAN port numbers.
19. service chaining according to claim 18, which is characterized in that a variety of routing informations are by software defined network SDN controller is pre-configured with, and is sent to the drainage point according to preset strategy;
Wherein, the preset strategy includes:
Upon initialization, a variety of routing informations are sent to the drainage point;Or,
When a variety of routing informations update, updated a variety of routing informations are sent to the drainage point.
20. the described in any item service chainings of 6-19 according to claim 1, which is characterized in that the routing information includes at least: institute State the address of what data on flows packet will successively pass through equipment at cunicular both ends.
CN201410629060.XA 2014-11-10 2014-11-10 Identification method, equipment and the service chaining in service chaining path Active CN105656744B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410629060.XA CN105656744B (en) 2014-11-10 2014-11-10 Identification method, equipment and the service chaining in service chaining path
PCT/CN2015/081803 WO2016074478A1 (en) 2014-11-10 2015-06-18 Method and device for identifying service chain path, and service chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410629060.XA CN105656744B (en) 2014-11-10 2014-11-10 Identification method, equipment and the service chaining in service chaining path

Publications (2)

Publication Number Publication Date
CN105656744A CN105656744A (en) 2016-06-08
CN105656744B true CN105656744B (en) 2019-08-27

Family

ID=55953694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410629060.XA Active CN105656744B (en) 2014-11-10 2014-11-10 Identification method, equipment and the service chaining in service chaining path

Country Status (2)

Country Link
CN (1) CN105656744B (en)
WO (1) WO2016074478A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357634A (en) * 2016-09-06 2017-01-25 刘昱 Functional service management method and device
CN108418755B (en) * 2017-07-25 2019-10-11 新华三技术有限公司 Data flow transmission method and device
CN114157612A (en) * 2021-12-09 2022-03-08 中国电信股份有限公司 Flow traction control method and device, drainage device and flow traction system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184017A (en) * 2007-12-04 2008-05-21 华为技术有限公司 Ethernet tunnel processing method and communication system and related equipment
CN101272309A (en) * 2007-03-19 2008-09-24 明泰科技股份有限公司 Dynamic wireless network topological system providing load balance and flux control pipe
CN101616392A (en) * 2009-06-26 2009-12-30 中兴通讯股份有限公司 A kind of value-added service provides system and method
CN102215174A (en) * 2011-07-14 2011-10-12 丁泉龙 Adaptive multimedia stream link transmission method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100765320B1 (en) * 2005-09-14 2007-10-09 삼성전자주식회사 MPLS Network and Method for Applying Mobile IP to MPLS Network
US8989192B2 (en) * 2012-08-15 2015-03-24 Futurewei Technologies, Inc. Method and system for creating software defined ordered service patterns in a communications network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272309A (en) * 2007-03-19 2008-09-24 明泰科技股份有限公司 Dynamic wireless network topological system providing load balance and flux control pipe
CN101184017A (en) * 2007-12-04 2008-05-21 华为技术有限公司 Ethernet tunnel processing method and communication system and related equipment
CN101616392A (en) * 2009-06-26 2009-12-30 中兴通讯股份有限公司 A kind of value-added service provides system and method
CN102215174A (en) * 2011-07-14 2011-10-12 丁泉龙 Adaptive multimedia stream link transmission method

Also Published As

Publication number Publication date
WO2016074478A1 (en) 2016-05-19
CN105656744A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US11563602B2 (en) Method and apparatus for providing a point-to-point connection over a network
CN102882758B (en) Method, network side equipment and the data center apparatus of virtual private cloud access network
KR102429560B1 (en) Network slice control method and apparatus and computer-readable storage medium
CN104350467B (en) Elasticity for the cloud security using SDN carries out layer
CN103595648B (en) Method and system for balancing load at receiving side of server
CN103795623B (en) A kind of method and apparatus for realizing flow intercommunication between virtual unit
CN103634217B (en) Method for issuing route information, method and device for transmitting massage
CN105763385B (en) Traffic scheduling method and device
CN105323136A (en) Information processing method and device
CN107666419B (en) Virtual broadband access method, controller and system
CN106603550B (en) A kind of Network Isolation method and device
CN109245984A (en) A kind of message transmitting method, a kind of information processing method and its relevant device
CN104468368B (en) Configure the method and device of bgp neighbor
CN107645431B (en) Message forwarding method and device
CN112688814B (en) Equipment access method, device, equipment and machine readable storage medium
CN108768692A (en) A kind of network creation method, relevant device and system
CN108964940A (en) Message method and device, storage medium
CN107317768A (en) Traffic scheduling method and device
CN109768908A (en) A kind of configuration method of VXLAN, equipment and system
CN110519075A (en) The communication system and method for physical host and virtual cloud host based on SDN
CN109691026A (en) Method and apparatus for updating multiple multiprotocol label switching (MPLS) two-way converting detection (BFD) sessions
CN108141392A (en) The method and apparatus that pseudowire load is shared
CN105207909B (en) A kind of method and network equipment sending information
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN105656744B (en) Identification method, equipment and the service chaining in service chaining path

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
TR01 Transfer of patent right

Effective date of registration: 20211221

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 215123 Building A3, Creative Industry Park, 328 Xinghu Street, Suzhou Industrial Park, Jiangsu Province

Patentee before: Huawei digital technology (Suzhou) Co.,Ltd.

Effective date of registration: 20211221

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right