CN104702479A - Tunnel building method and device in Software Defined Network (SDN) - Google Patents

Tunnel building method and device in Software Defined Network (SDN) Download PDF

Info

Publication number
CN104702479A
CN104702479A CN201510104000.0A CN201510104000A CN104702479A CN 104702479 A CN104702479 A CN 104702479A CN 201510104000 A CN201510104000 A CN 201510104000A CN 104702479 A CN104702479 A CN 104702479A
Authority
CN
China
Prior art keywords
tunnel
message
port
endpoint device
outgoing interface
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.)
Granted
Application number
CN201510104000.0A
Other languages
Chinese (zh)
Other versions
CN104702479B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510104000.0A priority Critical patent/CN104702479B/en
Publication of CN104702479A publication Critical patent/CN104702479A/en
Application granted granted Critical
Publication of CN104702479B publication Critical patent/CN104702479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a tunnel building method in a SDN to be applied to a controller. The method comprises sending tunnel port creating information to tunnel endpoint equipment, wherein tunnel ports are corresponding to tunnels to be built, and the creating information comprises tunnel packaging information and physical outcoming interfaces on the endpoint equipment; sending flow tables with the tunnel ports serving as the outcoming interfaces to the endpoint equipment, wherein the flow tables are used for instructing the endpoint equipment package original messages matched with the flow tables according to packaging information and then sending the packaged original messages out through the physical outcoming interfaces. By means of the technical scheme, centralized control of the controller over tunnel transmitting paths, and the SDN network flow control can be well achieved.

Description

The method and apparatus in tunnel is set up in SDN
Technical field
The application relates to network communication technology field, particularly relates to the method and apparatus setting up tunnel in a kind of SDN (Software DefinedNetwork, software defined network) network.
Background technology
SDN is current a kind of virtualization solution prevailing, its core concept is that original message repeating mode controlled by switch/router is completely converted to the flow forwarding mode described based on multiple domain net handbag head, the datum plane (data plane) of legacy network devices and control plane (control plane) are separated simultaneously, route test function is stripped out from the network equipment, the decision-making of all forwarding behaviors all moves on centralized controller, with standardized interface by controller (Controller) the various network equipment is managed and configured, thus the design to Internet resources, management and provides more possibility.In other words, the essence of SDN carries out centralized control to network, realizes the flexible network of dynamic assignment being SDN important goal.
Summary of the invention
In view of this, the application provides a kind of method setting up tunnel in SDN, and application on the controller, comprising:
Endpoint device to tunnel issues the establishment message of tunnel port, and described tunnel port is corresponding to tunnel to be set up; Described establishment message comprises the packaging information in described tunnel and the physics outgoing interface in described endpoint device;
To the described endpoint device stream table that to issue with described tunnel port be outgoing interface, described stream table is used for endpoint device described in instruction after being encapsulated according to described packaging information by the original message of the described stream table of coupling, sends from described physics outgoing interface.
Set up the method in tunnel in the another kind of SDN that the application provides, be applied in the endpoint device in tunnel, comprise:
The tunnel port receiving controller creates message; Described establishment message comprises the packaging information in tunnel and the physics outgoing interface in described endpoint device;
The tunnel table corresponding to described tunnel port is generated according to the packaging information in described tunnel and the physics outgoing interface in described endpoint device;
Receive the stream table being outgoing interface with described tunnel port that controller issues;
After the original message of the described stream table of coupling is encapsulated according to the packaging information corresponded in the tunnel table of described tunnel port, send from the physics outgoing interface described tunnel table.
Present invention also provides the device setting up tunnel in a kind of SDN, application on the controller, comprising:
Create message and issue unit, for issuing the establishment message of tunnel port to the endpoint device in tunnel, described tunnel port is corresponding to tunnel to be set up; Described establishment message comprises the packaging information in described tunnel and the physics outgoing interface in described endpoint device;
Tunnel flow table issues unit, for the stream table that to issue with described tunnel port to described endpoint device be outgoing interface, described stream table is used for endpoint device described in instruction after being encapsulated according to described packaging information by the original message of the described stream table of coupling, sends from described physics outgoing interface.
Set up the device in tunnel in the another kind of SDN that the application provides, be applied in the endpoint device in tunnel, comprise:
Create message reception units, create message for the tunnel port receiving controller; Described establishment message comprises the packaging information in tunnel and the physics outgoing interface in described endpoint device;
Tunnel table generation unit, generates for the packaging information according to described tunnel and the physics outgoing interface in described endpoint device the tunnel table corresponding to described tunnel port;
Tunnel flow table receiving element, for receiving the stream table being outgoing interface with described tunnel port that controller issues;
Enter tunnel unit, after the original message of the described stream table of coupling is encapsulated according to the packaging information corresponded in the tunnel table of described tunnel port, send from the physics outgoing interface described tunnel table.
From above technical scheme, the embodiment of the application turns to corresponding tunnel port by virtual for tunnel, controller issues encapsulation and the routing information in tunnel when instruct endpoints equipment creates tunnel port, encapsulation and routing information is quoted by tunnel port when forwarding in instruct endpoints equipment utilization tunnel, achieve the centralized control of controller to tunnel forward-path, be convenient to realize the better flow control of SDN.
Accompanying drawing explanation
Fig. 1 is that in an example, SDN controls the equipment at place or the hardware structure schematic diagram of endpoint device;
Fig. 2 is the flow chart setting up the method in tunnel in an example in a kind of application SDN on the controller;
Fig. 3 is the flow chart setting up the method in tunnel in an example in a kind of SDN be applied on endpoint of a tunnel equipment;
Fig. 4 is the networking structure figure of a kind of SDN in an example;
Fig. 5 is the building-block of logic setting up the device in tunnel in an example in a kind of application SDN on the controller;
Fig. 6 is the building-block of logic setting up the device in tunnel in an example in a kind of SDN be applied on endpoint of a tunnel equipment.
Embodiment
Tunnel is a kind of mode utilizing the infrastructure of public network to transmit data between user network.Tunnel provides a kind of message encapsulation means between two endpoint devices, by the endpoint device as tunnel starting point using original message (its header comprises the address of sender and the address of destination) as data load, be encapsulated in channel message (message after encapsulation) and be transferred to opposite end, tunnel.In original message, the address of sender and the address of destination are called home address, and the address of channel message is called external address, the address that two endpoint devices in the source address of external address and destination address normally tunnel use when setting up tunnel.Endpoint device as termination point of a tunnel carries out decapsulation to channel message, obtains original message, and it forwards to destination by the address according to original message destination.
The message of not common procotol can be transmitted by public network by tunnel, the network address that user is privately owned can be hidden, the fail safe of data can also be increased by all or part of content of encrypting original message, be widely used in SDN, as MPLS (Multi-Protocol LabelSwitching, multiprotocol label switching), IP tunnel etc.
In prior art, when tunnel set up by needs in SDN, network manager configures identical tunnel ID (index) in two endpoint devices in SDN controller and tunnel, is used for identifying same tunnel.The configuration-direct creating tunnel is issued in two endpoint devices in tunnel by NMP by NM server or SDN controller.Endpoint device runs next hop address and the physics outgoing interface that Routing Protocol obtains tunnel, or is specified next hop address and the physics outgoing interface in tunnel by network manager's static configuration.Endpoint device creates this tunnel (namely having the tunnel of this tunnel ID), generate the tunnel table in this tunnel, include tunnel list item and go out tunnel list item, wherein enter tunnel list item and comprise next hop address, and when original message being encapsulated as channel message required other packaging information, go out tunnel list item and be included in decapsulation information required when channel message being descapsulated into original message.
In SDN, message forwarding on network devices depends on the stream table that controller issues.When there being the message that forwarded by tunnel to arrive endpoint device, owing to not matching existing stream table, endpoint device by this message up sending to controller.Controller issues the stream table being forwarded this message by tunnel to endpoint device, tunnel ID, tunnel label (source address and destination address as MPLS label, IP tunnel) is specified in stream table, but the packaging information not relevant with next hop address due to controller and the physics outgoing interface information of this tunnel in endpoint device, be handed down in the stream table of endpoint device and will lack foregoing, need to fill these list items in stream table voluntarily by endpoint device.Like this, controller cannot carry out centralized control to the actual transmission paths of tunnel in common network, can not carry out flow control according to the whole network state of common network.If the physics outgoing interface of tunnel in certain endpoint device changes, controller needs to this endpoint device issuing message, upgrades all stream tables forwarded by this tunnel; After the stream table of endpoint device after receiving renewal, new physics outgoing interface is filled in stream table.Stream table due to the message sent by tunnel from this endpoint device all needs to upgrade, and result in stream table handlings a large amount of in interacting messages a large amount of between controller and endpoint device and endpoint device.
In an example of the application, run the control logic setting up tunnel on the controller with the SDN operated in endpoint device and can realize the centralized control of controller to tunnel actual transmission paths, to reach better flow control.The equipment at controller place or endpoint device can have the hardware configuration shown in Fig. 1, and comprise processor 110, memory 120 and network interface 130, these hardware are interconnected by internal bus 140.Processor 110 runs the control logic that SDN sets up tunnel in memory 120, and as shown in Figure 2, the operational process in endpoint device as shown in Figure 3 for operational process on the controller.
On the controller, step 210, the endpoint device to tunnel issues the establishment message of tunnel port, this tunnel port is corresponding to tunnel to be set up.
In SDN, controller is preserved the information of managed devices in its management domain, as the connection topology, Link State etc. of the physical port of the network equipment and state thereof, network.When setting up tunnel between the network equipment of two in management domain, controller can calculate the forward-path of tunnel between these two endpoint devices according to preserved information, comprising the physics outgoing interface of tunnel in endpoint device.
In this example, endpoint device turns to a corresponding logic port (tunnel port) by virtual for tunnel, the attribute of tunnel port comprises the corresponding packaging information in tunnel and the physics outgoing interface in this endpoint device; When tunnel set up by needs, controller issues tunnel port establishment message to the endpoint device in tunnel, is creating in message the packaging information in tunnel and the physics outgoing interface in this endpoint device of carrying corresponding to institute's establishment tunnel port.
The packaging information in tunnel is different according to the difference of the host-host protocol (also referred to as tunneling) in set up tunnel.Such as, to two layer tunnel, the outer source MAC of channel message is normally as MAC (the Media Access Control of the endpoint device of tunnel starting point, medium education) address, outer target MAC (Media Access Control) address is normally as the MAC Address of the endpoint device of termination point of a tunnel, and packaging information comprises outer source MAC and outer target MAC (Media Access Control) address; To three layer tunnel, the outer source MAC of channel message and outer source IP address are normally as MAC Address and the IP address of the endpoint device of tunnel starting point, outer object IP address is normally as the IP address of the endpoint device of termination point of a tunnel, and outer target MAC (Media Access Control) address normally next-hop network equipment (according to controller calculate forward-path determine) MAC Address, packaging information comprises outer source and destination MAC Address, source and destination IP address; To MPLS tunnel, its packaging information comprises label, if tunnel belongs to certain Service Instance, MPLS label will corresponding to this Service Instance.
On controller and endpoint device, be often used as the mark of each logic port or physical port with port numbers, controller is usually in the port numbers issuing appointment tunnel port when tunnel port creates message.A port numbers span can be divided for tunnel port, for physical port and other logic ports divide another different port numbers span, the range of port number of tunnel port is different from the range of port number of other ports, by port numbers, such endpoint device can judge whether this port is tunnel port.
In endpoint device, step 310, the tunnel port receiving controller creates message; This establishment message comprises the packaging information in tunnel and the physics outgoing interface in this endpoint device.
In endpoint device, step 320, creates the packaging information in tunnel in message according to tunnel port and the physics outgoing interface in this endpoint device generates the tunnel table corresponding to this tunnel port.
Endpoint device receives the tunnel port establishment message that controller issues, and creates logic port as tunnel port, according to creating the tunnel table of message generation corresponding to this tunnel port.The list item structure of tunnel table and content thereof can be different according to the specific implementation difference of endpoint device, as a rule include tunnel list item and go out tunnel list item, wherein enter after tunnel list item is used for that the original message that is tunnel starting point with this endpoint device is encapsulated as channel message and forward, comprise packaging information and physics outgoing interface; Go out tunnel list item and be used for the channel message decapsulation that will be termination point of a tunnel with this endpoint device, comprise the information needed for decapsulation.Therefore, can generate into tunnel list item according to the packaging information created in message and physics outgoing interface, the packaging information according to creating in message generates tunnel list item.
After generating corresponding tunnel table for tunnel port, controller and endpoint device can quote corresponding tunnel table by tunnel port, and what complete original message enters tunnel process.
On the controller, step 220, to the endpoint device stream table that to issue with this tunnel port be outgoing interface, this stream table is used for this endpoint device of instruction after being encapsulated according to the packaging information of this tunnel interface by the original message of this stream table of coupling, sends from the physics outgoing interface of this tunnel interface.
According to concrete application scenarios, controller can issue to endpoint device the stream table using this tunnel to forward original message in all cases.Such as, when endpoint device receives the original message of failing to mate existing stream table, give this original message on controller, controller is determined to forward by tunnel according to the destination address of this original message, then issue the stream table using this tunnel to forward to endpoint device.For another example, controller after receiving the forward-path between source IP address and object IP address and comprising the ARP message in tunnel, owing to being about to the original message forwarded by this tunnel, can issue the stream table using this tunnel to forward to endpoint device.
The stream table that controller forwards to use tunnel that endpoint device issues, with tunnel port corresponding to this tunnel for outgoing interface.The stream table being outgoing interface with tunnel port is used for instruction endpoint device after the original message receiving this stream table of coupling, after original message is encapsulated as channel message according to the packaging information of this tunnel interface, send this channel message from the physics outgoing interface of this tunnel interface.The occurrence of stream table with reference to the occurrence of the stream table forwarded by tunnel in prior art, can be repeated no more.
In endpoint device, step 330, receives the stream table being outgoing interface with this tunnel port that controller issues.The stream table that controller issues by endpoint device is kept at this locality.
In endpoint device, step 340, after being encapsulated by the original message of this stream table of coupling, sends from the physics outgoing interface this tunnel table according to the packaging information corresponded in the tunnel table of this tunnel port.
After endpoint device receives the original message of from host, search the stream table that can mate this original message.If the outgoing interface mating the stream table of this original message is tunnel port, then search the tunnel table corresponding to this tunnel port, therefrom obtain packaging information and the physics outgoing interface of this tunnel port.Endpoint device utilizes packaging information that original message is encapsulated as channel message, and is sent from physics outgoing interface by channel message.
It should be noted that, packaging information and physics outgoing interface not comprise tunnel in the tunnel port stream table that is outgoing interface that this routine middle controller issues, endpoint device does not need to fill these contents in this stream table yet; But quote tunnel table corresponding to this tunnel port to obtain packaging information and physics outgoing interface by endpoint device.
Channel message by issuing the mode of stream table to each network equipment in tunnel actual transmission paths, for the channel message of the label or address that mate outer envelope specifies outgoing interface, can be transferred to the endpoint device as termination point of a tunnel by controller.After the endpoint device as termination point of a tunnel receives the channel message on ground for the purpose of this equipment, the decapsulation information of this channel message is searched in tunnel table, according to decapsulation information, channel message is descapsulated into original message, and forwards according to the stream table of original message coupling.The processing procedure going out channel message in this example is consistent with prior art, repeats no more.
Corresponding tunnel port is turned to by virtual for tunnel in this example, controller creates tunnel port by instruct endpoints equipment and sets up tunnel, encapsulation and the routing information in corresponding tunnel is issued by the attribute issuing tunnel port, encapsulation and routing information is quoted by tunnel port when controller forwards in instruct endpoints equipment utilization tunnel, thus the centralized control of controller to tunnel creation, tunnel forward-path can be realized, lay a good foundation for reaching better flow control.
Further, due to a variety of causes, controller may need the packaging information of change tunnel in endpoint device, physics outgoing interface etc.Such as, when there is link failure on the transmission path in original tunnel, change transmission path is needed to interrupt to avoid forwarding; For another example, when flow is excessive on original tunnel transmission path, also can change transmission path, under both of these case, all may need change physics outgoing interface.When changing the packaging information of tunnel in endpoint device and/or physics outgoing interface, controller issues the amendment message of tunnel port corresponding to this tunnel to endpoint device, the packaging information carry change in amendment message after and/or physics outgoing interface.After endpoint device receives the amendment message of the tunnel port that controller issues, correspond to the tunnel table of this tunnel port according to amendment information updating.Like this, when the original message of the stream table that subsequent match is outgoing interface with this tunnel port arrives endpoint device, by the encapsulation and the forwarding that adopt the packaging information after upgrading and/or physics outgoing interface to carry out this original message, avoid and upgrade stream table when tunnel information changes, the stream table decreased between controller and switch upgrades message, reduces the impact of stream table renewal on endpoint device performance.
When no longer needing certain tunnel in SDN, controller the endpoint device in this tunnel of instruction can delete this tunnel.Controller issues the deletion message of corresponding tunnel port to the endpoint device in this tunnel; After endpoint device receives the deletion message of tunnel port, the stream table deleted tunnel table corresponding to this tunnel port and be outgoing interface with this tunnel port.
In this example, controller creates message, tunnel port modifications message and tunnel port deletion message to the tunnel port that endpoint device issues can adopt self-defining form, also can adopt the extend type of existing SDN control message.Such as, in the SDN of Openflow (open flows) agreement, controller can adopt Port Modification Message (port change message) to change port attribute on managed devices, shown in port change message, Config field is defined as follows:
enum ofp_port_config{
OFPPC_PORT_DOWN=1<<0,/*Port is administratively down.*/
OFPPC_NO_RECV=1<<2,/*Drop all packets received by port.*/
OFPPC_NO_FWD=1<<5,/*Drop packets forwarded to port..*/
OFPPC_TUNNEL_CRE=1<<7,/*Create Tunnel Port.*/
OFPPC_TUNNEL_MODIFY=1<<8,/*Modify Tunnel Port.*/
OFPPC_TUNNEL_DELETE=1<<9,/*Delete Tunnel Port.*/
Wherein, action type OFPPC_PORT_DOWN be used for instruction managed devices close designated port; Action type OFPPC_NO_RECV be used for instruction managed devices abandon designated port receive all messages; Action type OFPPC_NO_FWD is used for instruction managed devices and abandons all messages being forwarded to designated port; Action type OFPPC_TUNNEL_CREATE, OFPPC_TUNNEL_MODIFY, OFPPC_TUNNEL_DELETE are the expansion config field increased in this example.In extended field, action type OFPPC_TUNNEL_CREATE is used for instruction endpoint device increases tunnel port, action type OFPPC_TUNNEL_MODIFY is used for the packaging information of instruction endpoint device amendment tunnel port and/or physics outgoing interface, and OFPPC_TUNNEL_DELETE is used for instruction endpoint device and deletes tunnel port.The port numbers of tunnel port can be carried by the portno field in Port ModificationMessage message; The packaging information in tunnel and physics outgoing interface are carried by the properties field in PortModification Message message, experimenter field in this properties field is the field that Openflow agreement is reserved, and can carry the above-mentioned information in tunnel.In order to distinguish with common physical port, can divide a section and identifying tunnel port from the port numbers span of Openflow agreement, on the port numbers in this section and the Openflow network equipment, the port numbers section of other ports is not overlapping.
The Openflow network equipment is after receiving the Port Modification Message message that controller issues, if the action type of the config field of message is OFPPC_TUNNEL_CREATE, OFPPC_TUNNEL_MODIFY or OFPPC_TUNNEL_DELETE, then carry out the process of tunnel port, increase, revise or delete tunnel; If action type is not above-mentioned three kinds, the flow process conventionally obtains other ports on this equipment in portno field, process accordingly other ports.
In another example of the application, a kind of networking structure of SDN as shown in Figure 4.Controller 410 is mutual by management channels and the network equipment 420,430,440 and 450, the physical interface 423 of main frame 460 interconnection network equipment 420, the physical interface 453 of main frame 470 interconnection network equipment 450.There is customer service between main frame 460 and 470, this customer service belongs to Service Instance 1, and needs to transmit in two layer tunnel.
According to the topological structure of SDN in Fig. 4, controller 410 is learnt to be needed with the network equipment 420 and 450 for endpoint device is to set up tunnel.Through calculating, controller 410 is determined the actual forward-path of the path of the network equipment 420,430 to 450 as tunnel, and like this, the physics outgoing interface of tunnel on the network equipment 420 is interface 421, and the physics outgoing interface on the network equipment 450 is interface 451.
Controller 410 issues the establishment message of tunnel port to endpoint device 420, port numbers is 0xFFFF0001, packaging information in message comprises outer source MAC MAC-420 (MAC Address of endpoint device 420), outer target MAC (Media Access Control) address MAC-450 (MAC Address of endpoint device 450) and tunnel label MPLS Label1 (corresponding to Service Instance 1), and the physics outgoing interface in message is interface 421.After endpoint device 420 receives this establishment message, generate in this locality and correspond to the tunnel table of port numbers 0xFFFF0001, wherein enter tunnel list item and comprise above-mentioned packaging information and physics outgoing interface, go out tunnel list item and comprise decapsulation information corresponding to packaging information.
Controller 410 issues the establishment message of tunnel port to endpoint device 450, port numbers is 0xFFFF0002, packaging information in message comprises outer source MAC MAC-450, outer target MAC (Media Access Control) address MAC-420 and tunnel label MPLS Label1, and the physics outgoing interface in message is interface 451.After endpoint device 450 receives this establishment message, generate in this locality and correspond to the tunnel table of port numbers 0xFFFF0002, wherein enter tunnel list item and comprise above-mentioned packaging information and physics outgoing interface, go out tunnel list item and comprise decapsulation information corresponding to packaging information.
When mutually sending datagram between main frame 460 and 470, trigger controller 410 issues stream table to endpoint device 420 and endpoint device 450.
The occurrence that controller 410 is handed down to the Article 1 stream table of endpoint device 420 is IP address and the Service Instance 1 of main frame 470, and action refers to that making interface is tunnel port 0xFFFF0001; The occurrence being handed down to the Article 2 stream table of endpoint device 420 is IP address and the Service Instance 1 of main frame 460, and action refers to makes interface, and outgoing interface is interface 423.After endpoint device 420 receives the Article 1 stream table that controller 110 issues, quote the tunnel table generating forward list item that tunnel port 0xFFFF0001 is corresponding, the occurrence of this forwarding-table item is the occurrence of stream table, action is for entering tunnel, the outer source MAC in tunnel is MAC-420, outer target MAC (Media Access Control) address is MAC-450, tunnel label is MPLS Label1, outgoing interface 421.Endpoint device 420 is identical with Article 2 stream table with action according to the occurrence of the forwarding-table item that Article 2 stream table generates.
The occurrence that controller 410 is handed down to the Article 1 stream table of endpoint device 450 is IP address and the Service Instance 1 of main frame 460, and action refers to that making interface is tunnel port 0xFFFF0002; The occurrence being handed down to the Article 2 stream table of endpoint device 450 is IP address and the Service Instance 1 of main frame 470, and action refers to makes interface, and outgoing interface is interface 453.After endpoint device 450 receives the Article 1 stream table that controller 110 issues, quote the tunnel table generating forward list item that tunnel port 0xFFFF0002 is corresponding, the occurrence of this forwarding-table item is the occurrence of stream table, action is for entering tunnel, the outer source MAC in tunnel is MAC-450, outer target MAC (Media Access Control) address is MAC-420, tunnel label is MPLS Label1, outgoing interface 451.Endpoint device 450 is identical with Article 2 stream table with action according to the occurrence of the forwarding-table item that Article 2 stream table generates.
Endpoint device 420 receives after main frame 460 mails to the message of main frame 470, mates the forwarding-table item generated according to Article 1 stream table, after the original message of main frame 460 is encapsulated as channel message, sends to the network equipment 430 from port 421.Channel message is forwarded to endpoint device 450 by the network equipment 430.Endpoint device 450 receives the channel message on ground for the purpose of this equipment, matches tunnel list item, channel message is descapsulated into original message, the forwarding-table item that original message coupling generates according to Article 2 stream table, is forwarded to destination host 470 from interface 453.Main frame 470 mail to the process of the message of main frame 460 and repeating process similar to the above, no longer repeat.
When the network equipment 430 breaks down, the forward-path in tunnel, through calculating, is changed into the network equipment 420,440 to 450, needs the physics outgoing interface in change two endpoint devices like this by controller 110.Issue the amendment message of tunnel port to endpoint device 420 and 450, be handed down in the message of endpoint device 420 the physics outgoing interface 422 after carrying change, be handed down in the message of endpoint device 450 the physics outgoing interface 452 after carrying change.Endpoint device 420 and 450 responds the amendment message of tunnel port, and upgrade the physics outgoing interface in tunnel table, according to existing realization, the forwarding-table item quoting tunnel table can upgrade its physics outgoing interface automatically.Like this, controller 110 is without the need to upgrading the stream table for main frame 460 and main frame 470.In actual SDN, the host number of message transmissions is carried out by tunnel often quite a lot of between two endpoint devices, adopt the mode of tunnel port modifications can reduce a large amount of stream table updating message, the protocol interaction efficiency between controller and switch can be very significantly improved.
Realize corresponding with above-mentioned flow process, present invention also provides in SDN the device setting up tunnel, be applied in the endpoint device in controller or tunnel, this device can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, can in memory 120, run in SDN by the processor 110 in Fig. 1 set up tunnel control logic and be formed.
Figure 5 shows that the device setting up tunnel in a kind of SDN in the application's example, application on the controller, functionally divide, comprise and create message and issue unit and tunnel flow table issues unit, wherein: create message and issue unit for issuing the establishment message of tunnel port to the endpoint device in tunnel, described tunnel port is corresponding to tunnel to be set up; Described establishment message comprises the packaging information in described tunnel and the physics outgoing interface in described endpoint device; Tunnel flow table issues unit for stream table that to issue with described tunnel port to described endpoint device be outgoing interface, described stream table is used for endpoint device described in instruction after being encapsulated according to described packaging information by the original message of the described stream table of coupling, sends from described physics outgoing interface.
Described device can also comprise amendment message and issue unit, for when changing the packaging information of tunnel in described endpoint device and/or physics outgoing interface, endpoint device to described tunnel issues the amendment message of corresponding tunnel port, and described amendment message comprises the packaging information after change and/or physics outgoing interface.
Described device can also comprise deletion message and issue unit, and for when deleting tunnel, the endpoint device to described tunnel issues the deletion message of corresponding tunnel port.
Figure 6 shows that the device setting up tunnel in a kind of SDN in the application's example, be applied in the endpoint device in tunnel, functionally divide, comprise and create message reception units, tunnel table generation unit, tunnel flow table receiving element and enter tunnel unit, wherein: create message reception units and create message for the tunnel port receiving controller; Described establishment message comprises the packaging information in tunnel and the physics outgoing interface in described endpoint device; Tunnel table generation unit generates for the packaging information according to described tunnel and the physics outgoing interface in described endpoint device the tunnel table corresponding to described tunnel port; The stream table being outgoing interface with described tunnel port that tunnel flow table receiving element issues for receiving controller; Enter tunnel unit for by coupling described stream table original message according to correspond to described tunnel port tunnel table in packaging information encapsulate after, from described tunnel table physics outgoing interface send.
In an example, described tunnel table includes tunnel list item and goes out tunnel list item; Described enter tunnel list item generate according to described packaging information and physics outgoing interface, for taking this equipment as the encapsulation of original message and the forwarding of described tunnel starting point; Described go out tunnel list item generate according to described packaging information, for taking this equipment as the decapsulation of channel message of described termination point of a tunnel.
Described device can also comprise amendment message reception units and tunnel updating block, wherein: the amendment message of described tunnel port of amendment message reception units for receiving controller and issuing, described amendment message comprises packaging information that tunnel will upgrade and/or the physics outgoing interface in described endpoint device; Tunnel updating block is used for the tunnel table corresponding to described tunnel port according to described amendment information updating.
Described device can also comprise deletes message reception units and tunnel delete cells, wherein: delete the deletion message of described tunnel port of message reception units for receiving controller and issuing; The stream table of tunnel delete cells for deleting tunnel table corresponding to described tunnel port and being outgoing interface with described tunnel port.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, within all spirit in the application and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.

Claims (15)

1. set up the method in tunnel in software defined network SDN, on the controller, it is characterized in that, described method comprises in application:
Endpoint device to tunnel issues the establishment message of tunnel port, and described tunnel port is corresponding to tunnel to be set up; Described establishment message comprises the packaging information in described tunnel and the physics outgoing interface in described endpoint device;
To the described endpoint device stream table that to issue with described tunnel port be outgoing interface, described stream table is used for endpoint device described in instruction after being encapsulated according to described packaging information by the original message of the described stream table of coupling, sends from described physics outgoing interface.
2. method according to claim 1, it is characterized in that, described method also comprises: when changing the packaging information of tunnel in described endpoint device and/or physics outgoing interface, endpoint device to described tunnel issues the amendment message of corresponding tunnel port, and described amendment message comprises the packaging information after change and/or physics outgoing interface.
3. method according to claim 1, is characterized in that, described method also comprises: when deleting tunnel, and the endpoint device to described tunnel issues the deletion message of corresponding tunnel port.
4. method according to claim 1, is characterized in that, described establishment message is the port change message Port Modification Message of open flows Openflow agreement; The range of port number of described tunnel port is different from the range of port number of other ports.
5. set up the method in tunnel in software defined network SDN, be applied in the endpoint device in tunnel, it is characterized in that, described method comprises:
The tunnel port receiving controller creates message; Described establishment message comprises the packaging information in tunnel and the physics outgoing interface in described endpoint device;
The tunnel table corresponding to described tunnel port is generated according to the packaging information in described tunnel and the physics outgoing interface in described endpoint device;
Receive the stream table being outgoing interface with described tunnel port that controller issues;
After the original message of the described stream table of coupling is encapsulated according to the packaging information corresponded in the tunnel table of described tunnel port, send from the physics outgoing interface described tunnel table.
6. method according to claim 5, is characterized in that, described tunnel table includes tunnel list item and goes out tunnel list item; Described enter tunnel list item generate according to described packaging information and physics outgoing interface, for taking this equipment as the encapsulation of original message and the forwarding of described tunnel starting point; Described go out tunnel list item generate according to described packaging information, for taking this equipment as the decapsulation of channel message of described termination point of a tunnel.
7. the method according to claim 5 or 6, is characterized in that, described method also comprises:
Receive the amendment message of described tunnel port that controller issues, described amendment message comprises packaging information that tunnel will upgrade and/or the physics outgoing interface in described endpoint device;
The tunnel table of described tunnel port is corresponded to according to described amendment information updating.
8. the method according to claim 5 or 6, is characterized in that, described method also comprises:
Receive the deletion message of the described tunnel port that controller issues;
The stream table deleting tunnel table corresponding to described tunnel port and be outgoing interface with described tunnel port.
9. set up the device in tunnel in software defined network SDN, on the controller, it is characterized in that, described device comprises in application:
Create message and issue unit, for issuing the establishment message of tunnel port to the endpoint device in tunnel, described tunnel port is corresponding to tunnel to be set up; Described establishment message comprises the packaging information in described tunnel and the physics outgoing interface in described endpoint device;
Tunnel flow table issues unit, for the stream table that to issue with described tunnel port to described endpoint device be outgoing interface, described stream table is used for endpoint device described in instruction after being encapsulated according to described packaging information by the original message of the described stream table of coupling, sends from described physics outgoing interface.
10. device according to claim 9, it is characterized in that, described device also comprises: amendment message issues unit, for when changing the packaging information of tunnel in described endpoint device and/or physics outgoing interface, endpoint device to described tunnel issues the amendment message of corresponding tunnel port, and described amendment message comprises the packaging information after change and/or physics outgoing interface.
11. devices according to claim 9, is characterized in that, described device also comprises: delete message and issue unit, and for when deleting tunnel, the endpoint device to described tunnel issues the deletion message of corresponding tunnel port.
Set up the device in tunnel in 12. 1 kinds of software defined network SDN, be applied in the endpoint device in tunnel, it is characterized in that, described device comprises:
Create message reception units, create message for the tunnel port receiving controller; Described establishment message comprises the packaging information in tunnel and the physics outgoing interface in described endpoint device;
Tunnel table generation unit, generates for the packaging information according to described tunnel and the physics outgoing interface in described endpoint device the tunnel table corresponding to described tunnel port;
Tunnel flow table receiving element, for receiving the stream table being outgoing interface with described tunnel port that controller issues;
Enter tunnel unit, after the original message of the described stream table of coupling is encapsulated according to the packaging information corresponded in the tunnel table of described tunnel port, send from the physics outgoing interface described tunnel table.
13. devices according to claim 12, is characterized in that, described tunnel table includes tunnel list item and goes out tunnel list item; Described enter tunnel list item generate according to described packaging information and physics outgoing interface, for taking this equipment as the encapsulation of original message and the forwarding of described tunnel starting point; Described go out tunnel list item generate according to described packaging information, for taking this equipment as the decapsulation of channel message of described termination point of a tunnel.
14. devices according to claim 12 or 13, it is characterized in that, described device also comprises:
Amendment message reception units, for receiving the amendment message of the described tunnel port that controller issues, described amendment message comprises packaging information that tunnel will upgrade and/or the physics outgoing interface in described endpoint device;
Tunnel updating block, for corresponding to the tunnel table of described tunnel port according to described amendment information updating.
15. devices according to claim 12 or 13, it is characterized in that, described device also comprises:
Delete message reception units, for receiving the deletion message of the described tunnel port that controller issues;
Tunnel delete cells, for the stream table deleted tunnel table corresponding to described tunnel port and be outgoing interface with described tunnel port.
CN201510104000.0A 2015-03-10 2015-03-10 The method and apparatus that tunnel is established in SDN network Active CN104702479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510104000.0A CN104702479B (en) 2015-03-10 2015-03-10 The method and apparatus that tunnel is established in SDN network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510104000.0A CN104702479B (en) 2015-03-10 2015-03-10 The method and apparatus that tunnel is established in SDN network

Publications (2)

Publication Number Publication Date
CN104702479A true CN104702479A (en) 2015-06-10
CN104702479B CN104702479B (en) 2018-08-24

Family

ID=53349268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510104000.0A Active CN104702479B (en) 2015-03-10 2015-03-10 The method and apparatus that tunnel is established in SDN network

Country Status (1)

Country Link
CN (1) CN104702479B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049358A (en) * 2015-06-25 2015-11-11 清华大学 Virtual forwarding platform of SDN (Software Defined Network) and communication method thereof
CN105610717A (en) * 2015-12-30 2016-05-25 杭州华三通信技术有限公司 Cross-SDN routing release method and device
WO2017016106A1 (en) * 2015-07-28 2017-02-02 上海斐讯数据通信技术有限公司 Sdn-based qos-supported communications tunnel establishment method and system
CN107453971A (en) * 2016-05-30 2017-12-08 北京京东尚科信息技术有限公司 Communication means and system between a kind of multiple virtual machines
CN107995031A (en) * 2017-11-22 2018-05-04 郑州市景安网络科技股份有限公司 A kind of method for building up of SDN network, system and relevant apparatus
CN108337111A (en) * 2018-01-05 2018-07-27 新华三技术有限公司 Obtain the method and device of network node topology
CN108600021A (en) * 2018-04-28 2018-09-28 盛科网络(苏州)有限公司 Can flexible programming configuration tunnel encapsulation chip implementing method and device
CN108768889A (en) * 2018-05-07 2018-11-06 广州大学华软软件学院 A kind of SDN network multichannel line bandwidth dynamic allocation method
CN110061897A (en) * 2018-01-19 2019-07-26 思锐科技股份有限公司 Data on flows acquisition methods and system in virtual network tunnel
CN110087252A (en) * 2019-05-30 2019-08-02 深圳市中航比特通讯技术有限公司 A kind of communication network service dynamic change technology
CN112311697A (en) * 2020-10-26 2021-02-02 新华三大数据技术有限公司 Path configuration method and device
CN112787926A (en) * 2021-01-05 2021-05-11 北京信息科技大学 Device, method and system for segmented routing of interest packets
CN113746739A (en) * 2021-08-20 2021-12-03 新华三信息安全技术有限公司 Routing table creating method, PE (provider edge) equipment, electronic equipment and storage medium
CN114006788A (en) * 2020-11-30 2022-02-01 易识科技(广东)有限责任公司 Control method and system for establishing bidirectional tunnel
CN114244803A (en) * 2020-11-30 2022-03-25 易识科技(广东)有限责任公司 Tunnel penetration control method and system
CN114301737A (en) * 2021-12-29 2022-04-08 迈普通信技术股份有限公司 Network configuration method and device, network equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219149A (en) * 2014-08-26 2014-12-17 杭州华三通信技术有限公司 Virtual connection based message transmission method and device
WO2014198217A1 (en) * 2013-06-14 2014-12-18 中兴通讯股份有限公司 Tunnel processing method and system, control plane equipment and forwarding plane equipment
CN104243317A (en) * 2014-09-26 2014-12-24 杭州华三通信技术有限公司 Method and device for forwarding IP (internet protocol) routes
CN104243270A (en) * 2014-09-25 2014-12-24 杭州华三通信技术有限公司 Tunnel setup method and tunnel setup device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014198217A1 (en) * 2013-06-14 2014-12-18 中兴通讯股份有限公司 Tunnel processing method and system, control plane equipment and forwarding plane equipment
CN104219149A (en) * 2014-08-26 2014-12-17 杭州华三通信技术有限公司 Virtual connection based message transmission method and device
CN104243270A (en) * 2014-09-25 2014-12-24 杭州华三通信技术有限公司 Tunnel setup method and tunnel setup device
CN104243317A (en) * 2014-09-26 2014-12-24 杭州华三通信技术有限公司 Method and device for forwarding IP (internet protocol) routes

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049358B (en) * 2015-06-25 2018-08-28 清华大学 A kind of virtual forwarding platform and its communication means of SDN network
CN105049358A (en) * 2015-06-25 2015-11-11 清华大学 Virtual forwarding platform of SDN (Software Defined Network) and communication method thereof
WO2017016106A1 (en) * 2015-07-28 2017-02-02 上海斐讯数据通信技术有限公司 Sdn-based qos-supported communications tunnel establishment method and system
CN105610717A (en) * 2015-12-30 2016-05-25 杭州华三通信技术有限公司 Cross-SDN routing release method and device
CN105610717B (en) * 2015-12-30 2018-11-27 新华三技术有限公司 A kind of route issuing method and device across SDN network
CN107453971B (en) * 2016-05-30 2020-11-24 北京京东尚科信息技术有限公司 Communication method, communication system, computer system, and computer-readable storage medium
CN107453971A (en) * 2016-05-30 2017-12-08 北京京东尚科信息技术有限公司 Communication means and system between a kind of multiple virtual machines
CN107995031B (en) * 2017-11-22 2021-02-23 郑州市景安网络科技股份有限公司 SDN network establishing method, system and related device
CN107995031A (en) * 2017-11-22 2018-05-04 郑州市景安网络科技股份有限公司 A kind of method for building up of SDN network, system and relevant apparatus
CN108337111B (en) * 2018-01-05 2021-07-30 新华三技术有限公司 Method and device for acquiring network node topology
CN108337111A (en) * 2018-01-05 2018-07-27 新华三技术有限公司 Obtain the method and device of network node topology
CN110061897A (en) * 2018-01-19 2019-07-26 思锐科技股份有限公司 Data on flows acquisition methods and system in virtual network tunnel
CN108600021B (en) * 2018-04-28 2021-06-18 盛科网络(苏州)有限公司 Tunnel packaging chip implementation method and device capable of being flexibly programmed and configured
CN108600021A (en) * 2018-04-28 2018-09-28 盛科网络(苏州)有限公司 Can flexible programming configuration tunnel encapsulation chip implementing method and device
CN108768889A (en) * 2018-05-07 2018-11-06 广州大学华软软件学院 A kind of SDN network multichannel line bandwidth dynamic allocation method
CN110087252A (en) * 2019-05-30 2019-08-02 深圳市中航比特通讯技术有限公司 A kind of communication network service dynamic change technology
CN112311697B (en) * 2020-10-26 2022-05-24 新华三大数据技术有限公司 Path configuration method and device
CN112311697A (en) * 2020-10-26 2021-02-02 新华三大数据技术有限公司 Path configuration method and device
CN114006788A (en) * 2020-11-30 2022-02-01 易识科技(广东)有限责任公司 Control method and system for establishing bidirectional tunnel
CN114244803A (en) * 2020-11-30 2022-03-25 易识科技(广东)有限责任公司 Tunnel penetration control method and system
CN112787926A (en) * 2021-01-05 2021-05-11 北京信息科技大学 Device, method and system for segmented routing of interest packets
CN113746739A (en) * 2021-08-20 2021-12-03 新华三信息安全技术有限公司 Routing table creating method, PE (provider edge) equipment, electronic equipment and storage medium
CN113746739B (en) * 2021-08-20 2022-10-21 新华三信息安全技术有限公司 Routing table creating method, PE (provider edge) equipment, electronic equipment and storage medium
CN114301737A (en) * 2021-12-29 2022-04-08 迈普通信技术股份有限公司 Network configuration method and device, network equipment and computer readable storage medium
CN114301737B (en) * 2021-12-29 2023-10-24 迈普通信技术股份有限公司 Network configuration method, device, network equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN104702479B (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN104702479A (en) Tunnel building method and device in Software Defined Network (SDN)
CN103997414B (en) Generate method and the network control unit of configuration information
CN102857416B (en) A kind of realize the method for virtual network, controller and virtual network
CN105450532B (en) Three-layer forwarding method in software defined network and device
CN112187517B (en) Configuration method, platform and controller for SDN virtual routing of data center
CN101394361B (en) Packet transmission method, device and system
CN109218178A (en) A kind of message processing method and the network equipment
CN109246017A (en) A kind of method and device for inquiring multicast forwarding path
WO2014136864A1 (en) Packet rewriting apparatus, control apparatus, communication system, packet transmitting method and program
CN108574616A (en) A kind of method, equipment and the system of processing routing
CN107204867A (en) A kind of information transferring method, device and system
CN107948086A (en) A kind of data packet sending method, device and mixed cloud network system
CN106712988A (en) Virtual network management method and device
CN104283791A (en) Three-layer topology determining method and device in SDN network
CN111147372B (en) Downlink message sending and forwarding method and device
CN105897465A (en) Equipment configuration method and apparatus
CN105099846A (en) Method of transmitting data messages and provider edge (PE) devices
CN105337853A (en) Instance establishing method and apparatus in software defined network (SDN)
CN105515802B (en) Network virtualization method and device
WO2016124049A1 (en) Method and apparatus for obtaining port path
CN104135446A (en) System and method of implementing transition from IPv4 (Internet Protocol Version4) to IPv6 (Internet Protocol Version6) based on SDN (Software Defined Network)
CN104486227B (en) The system and method for IPv6 flexible deployments is realized by VxLAN technologies
CN104243299A (en) Tunnel processing method and system, control surface equipment and forwarding surface equipment
CN108123819A (en) A kind of emulation mode of actual situation network seamless fusion
CN107948077A (en) The retransmission method and device of a kind of data message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant