WO2015192306A1 - 软件定义网络中的控制设备、系统和传输通道控制方法 - Google Patents

软件定义网络中的控制设备、系统和传输通道控制方法 Download PDF

Info

Publication number
WO2015192306A1
WO2015192306A1 PCT/CN2014/080024 CN2014080024W WO2015192306A1 WO 2015192306 A1 WO2015192306 A1 WO 2015192306A1 CN 2014080024 W CN2014080024 W CN 2014080024W WO 2015192306 A1 WO2015192306 A1 WO 2015192306A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
transmission channel
transmission
control device
state
Prior art date
Application number
PCT/CN2014/080024
Other languages
English (en)
French (fr)
Inventor
李建飞
王蛟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/080024 priority Critical patent/WO2015192306A1/zh
Priority to CN201480056019.6A priority patent/CN105637817B/zh
Priority to EP14895367.2A priority patent/EP3145132B1/en
Publication of WO2015192306A1 publication Critical patent/WO2015192306A1/zh
Priority to US15/382,041 priority patent/US10103979B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/125Shortest path evaluation based on throughput or bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/122Avoiding congestion; Recovering from congestion by diverting traffic away from congested entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Definitions

  • the present invention relates to the field of information technology, and in particular, to a control device, a system, and a control method of a transmission channel in a software-defined network SDN.
  • a software-defined network SDN separates two functions of data forwarding and management control of a traditional network device, and configures, manages, and controls various network devices through a standardized interface through a centralized control device.
  • the switching device Swi tch is strictly based on flow table forwarding; Swi tch provides an interface for the control device Con t r 011 e r control; Swi t ch and Con t r o 11 e r follow a certain protocol.
  • the characteristics of Swi tch include: 1. Initially, the flow table is empty; 2. When the received data packet cannot find the mismatched routing table in the swit ch, it is reported to the Con tr 01 1 er request. Forwarding strategy.
  • the features of the control ler include: Having a global view of the entire network, and formulating a delivery policy for the request reported by the switch.
  • the control device is directly connected to each switching device, and the network has independent control channels. Control information and data information transmission do not affect each other, and control signaling has better security. However, in this mode, each switch in the network needs to have a dedicated port for forwarding control signaling, which consumes more port resources.
  • In-band connection mode The control device only needs to be connected to some switching devices, and realizes communication with other switching devices by means of the link of the data plane. In this mode, the transmission of control information and data information interacts with each other, and the security is poor.
  • control information and the data information share the same transmission channel, and the forwarding of the data information may cause congestion of the transmission channel and affect the effective transmission of the control information. If the channel congestion of the transmission control information causes a failure, the control device will lose control of the plurality of switching devices.
  • the embodiments of the present invention provide a control method for a control device, a system, and a transmission channel in an SDN, to solve the problem that the reliability of the transmission channel is not high and the control channel is not adjusted in time in the in-band mode.
  • the embodiment of the present invention provides a control device in a software-defined network SDN, where control information and data information in the SDN are transmitted in the same transmission channel, and the control device controls the first transmission channel, the second transmission channel, and a third transmission channel, the first transmission channel is an active channel; the second transmission channel is an alternate channel of the first transmission channel, and is configured to switch to a primary channel when the first transmission channel is congested Controlling the transmission of information and/or data information; the control device comprises:
  • a state acquiring unit configured to acquire a connection state of the first transmission channel, the second transmission channel, and the third transmission channel
  • a first control unit configured to: when the connection state of the second transmission channel reaches a first state, set the third transmission channel as an alternate channel of the first transmission channel, where the first state refers to transmission
  • the congestion degree of the channel reaches the first threshold but does not reach the second threshold.
  • the transmission channel that reaches the first threshold is congested but can transmit control information.
  • the congestion of the transmission channel that reaches the second threshold cannot be controlled. Transmission of information; the third transmission channel is not in the first state and can replace the first transmission channel for control information and / or channel for data transmission;
  • a second control unit configured to switch the standby channel of the first transmission channel to a primary channel when the connection state of the first transmission channel reaches a second state, where the second state refers to congestion of the transmission channel The degree reaches the second threshold.
  • the first transmission channel, the second transmission channel, and the third transmission channel are transmission channels between the control device and a switching device in the SDN, or the switching device Transmission channel between.
  • control device further includes a flow table sending unit, where the flow table sending unit implements setting or updating the standby channel by sending a flow table to the switching device, or implementing the flow table by sending the flow table Switching between the primary channel and the alternate channel.
  • flow table sending unit implements setting or updating the standby channel by sending a flow table to the switching device, or implementing the flow table by sending the flow table Switching between the primary channel and the alternate channel.
  • the status obtaining unit includes:
  • a probe packet sending unit configured to send a probe data packet to the first transmission channel, the second transmission channel, and the third transmission channel
  • the state obtaining subunit is configured to obtain a connection state of each transmission channel according to a time when the probe data packet is transmitted in each transmission channel.
  • the state obtaining subunit includes:
  • a transmission time acquiring unit configured to acquire a transmission time of the probe data packet in each transmission channel
  • a state determining subunit configured to determine whether a transmission duration of the transmission channel reaches the first threshold and does not reach a second threshold, and if yes, determining that a connection state of the transmission channel reaches the first state; If the transmission duration of the channel exceeds the second threshold, it is determined that the connection state of the transmission channel reaches the second state.
  • control device further includes a handover notification acquiring unit, configured to acquire a transmission channel switching notification message sent by the switching device in the SDN, where the handover notification message is that the first transmission channel reaches the first
  • handover notification message is that the first transmission channel reaches the first
  • the switching device switches the standby channel to the primary channel and notifies the control device. Prepared news.
  • control device further includes a third control unit, configured to enable, according to the handover notification message sent by the switching device, the alternate channel carried in the handover notification message or send another transmission channel as the primary channel.
  • third control unit configured to enable, according to the handover notification message sent by the switching device, the alternate channel carried in the handover notification message or send another transmission channel as the primary channel.
  • the embodiment of the invention further provides a method for adjusting a transmission channel, which is applied to a software defined network.
  • the control information and the data information in the SDN are transmitted in the same transmission channel, where the SDN network includes a first transmission channel, a second transmission channel, and a third transmission channel, where the first transmission channel is used by the primary transmission channel.
  • the second transmission channel is an alternate channel of the first transmission channel, and is configured to switch the control channel and/or data information for the primary channel when the first transmission channel does not satisfy the transmission condition; :
  • the control device in the SDN acquires a connection state of the first transmission channel, the second transmission channel, and the third transmission channel;
  • the third channel is set as the backup channel of the first channel, and the first state refers to the congestion degree of the transmission channel reaches the first threshold.
  • the second threshold is not reached, wherein the transmission channel that reaches the first threshold has congestion but can transmit control information, and the transmission channel that reaches the second threshold is congested and cannot transmit control information;
  • the third transmission channel is a channel that does not reach the first state and can perform control information and/or data information transmission instead of the first transmission channel;
  • connection state of the first transmission channel reaches the second state
  • the backup channel of the first transmission channel is switched to the primary channel
  • the second state is that the congestion degree of the transmission channel reaches the second width. value.
  • the first transmission channel, the second transmission channel, and the third transmission channel are transmission channels between the control device and a switching device in the SDN, or the switching device Transmission channel between.
  • control device implements setting or updating the standby channel by sending a flow table to the switch, or implementing cutting between the primary channel and the backup channel by sending the flow table. Change.
  • the acquiring, by the control device in the SDN, the connection status of the first transmission channel, the second transmission channel, and the third transmission channel includes:
  • the control device sends a probe data packet to the first transmission channel, the second transmission channel, and the third transmission channel, and acquires a connection of each transmission channel by detecting a duration of transmission of the data packet in each transmission channel. status.
  • the obtaining, by detecting, the duration of the data packet transmission in each transmission channel, the connection status of each of the transmission channels includes:
  • the method further includes:
  • the control device acquires a handover notification message sent by the switching device, where the handover notification message is that the first transmission channel reaches the second state, and the switching device does not receive the control device to switch the primary channel.
  • the notification device switches the backup channel to the primary channel and notifies the control device of the message;
  • the control device enables the alternate channel carried in the handover notification message or sends another transmission channel as the primary channel according to the handover notification message.
  • the switching device in the SDN acquires a connection state of the first transmission channel, the second transmission channel, and the third transmission channel, where the first transmission channel reaches the second state. And when the channel switching notification of the control device is not received, the standby channel is switched to the primary channel, and the switching notification message of the switching channel is sent to the control device.
  • the embodiment of the present invention further provides a software-defined network SDN system, including a control device and a switching device, where control information and data information in the SDN are transmitted in the same transmission channel, and the control
  • the device controls a first transmission channel, a second transmission channel, and a third transmission channel, the first transmission channel being a primary channel between the control device and the switching device;
  • the second transmission channel is the An alternate channel between the control device and the switching device, configured to switch the control channel and/or the data information to be used as the primary channel when the first transmission channel is congested;
  • the control device includes:
  • a state acquiring unit configured to acquire a connection state of the first transmission channel, the second transmission channel, and the third transmission channel
  • a first control unit configured to: when the connection state of the second transmission channel reaches a first state, set the third transmission channel as an alternate channel of the first transmission channel, where the first state refers to transmission
  • the congestion degree of the channel reaches the first threshold but does not reach the second threshold.
  • the transmission channel that reaches the first threshold is congested but can transmit control information.
  • the congestion of the transmission channel that reaches the second threshold cannot be controlled. Transmission of information;
  • the third transmission channel is a channel that does not reach the first state and can perform control information and/or data information transmission instead of the first transmission channel;
  • a second control unit configured to switch the standby channel of the first transmission channel to a primary channel when the connection state of the first transmission channel reaches a second state, where the second state refers to congestion of the transmission channel The degree reaches the second threshold.
  • the control device, the system, and the transmission channel control method in the SDN provided by the embodiment of the present invention determine whether the backup channel is suitable to continue as a backup channel according to a preset threshold value, and if the backup channel is congested to a certain extent
  • the standby channel is adjusted, the other uncongested channels are set as the alternate channel, and when the active channel is congested, the standby channel is switched to the primary channel, which ensures the real-time adjustment of the channel and ensures the effective transmission of the control information.
  • FIG. 1 is a schematic diagram showing the basic hardware structure of a control device 100 in an SDN
  • FIG. 2 is a schematic diagram showing the structure of software and hardware of the control device 100 including a network information base;
  • Figure 3 is a schematic diagram of a network topology relationship in SDN
  • FIG. 4 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another control device according to an embodiment of the present invention.
  • FIG. 6 is a structural realization diagram of another implementation of a control device according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of another control device according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a channel control method according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart diagram of another channel control method according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a system in an SDN according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
  • FIG. 1 is a schematic diagram of a basic hardware structure of a control device 100 in an SDN.
  • the control device 100 includes basic hardware components such as a processor 101, a memory 102, a hard disk 103, and a network card 104.
  • the processor 101 reads commands from the memory 102, or acquires related data and information from the hard disk 103 and the network card 104 to implement control.
  • the control device 100 also includes other devices, and implements other control and management functions of the control device, and details are not described herein.
  • the control device 100 includes, in addition to the necessary hardware, necessary software, and hardware functions to implement the control functions.
  • FIG. 2 is a schematic diagram of a software and hardware structure of a control device 100 including a network information base.
  • the network information library 105 includes state information, node information, and the like of the SDN network where the control device 100 is located.
  • the information of the network information library 105 can be stored on a storage medium such as the hard disk 103 or the memory 102.
  • the processor 101 can pass through the memory 102 or the hard disk 103.
  • the information in the network information base 105 is read to implement related control of the network.
  • control devices there may be multiple control devices, and multiple control devices may be in a master-slave relationship or a peer-to-peer relationship.
  • One control device can control multiple switching devices, and one switching device can also be controlled by multiple control devices.
  • the control device is a separate server, such as an X86 server.
  • only one control device and six switching devices in the SDN network are taken as an example for description. As shown in FIG. 3, the control device is directly connected to the switching device 1, and the switching device 1 is directly connected to the switching device 2, the switching device 3, and the switching device 4, respectively.
  • the switching device 5 and the switching device 2, the switching device 3, and the switching device 6 are directly connected.
  • the switching device 6 is directly connected to the switching device 3, the switching device 4, and the switching device 5. Any two switching devices can be connected through different connecting links, and each switching device can pass different connecting links and control devices. Connected, and receives control information delivered by the control device.
  • the control of the network by the control device in the SDN is usually implemented by the pre-planning of the network control channel and the dynamic adjustment mechanism of the control channel.
  • the control device in the in-band mode, has established an initial control channel for the switching device of the entire network.
  • the initial control channel is between the control device and the switching device, and the control channel between the switching devices.
  • These initial control channels are The smooth control can realize the smooth delivery of the control information of the control device to the switching device, thereby realizing the effective control of the SDN by the control device.
  • the forwarding of the data information may cause congestion of the transmission channel, and thus affect the effective transmission of the control information.
  • the existing dynamic adjustment mechanism is implemented by configuring an alternate channel in advance or recalculating a new transmission channel in the event of a network failure.
  • This kind of dynamic adjustment mechanism has poor real-time performance and cannot be switched to normal in time.
  • the transmission channel is used to implement the transmission of control information.
  • control device and all switching devices perform data forwarding and data flow control in the in-band mode.
  • the primary channel between the control device and the switching device 5 is: Control device ⁇ Switching device 2 ⁇
  • the switching device 5 the standby channel of the primary channel is: control device ⁇ switching device 2 ⁇ switching device 3 ⁇ switching device 5.
  • the transmission channel between the switching device 2 and the switching device 3 is congested, for example, the congestion degree is 75%, the transmission channel may be about to be completely congested.
  • the backup channel (control device ⁇ switching device) 2 ⁇ Switching device 3 ⁇ Switching device 5) will not be adjusted;
  • the unadjusted alternate channel may also be congested and the control information cannot be transmitted.
  • the embodiment of the invention provides a method for adjusting a control device, an SDN system and a transmission channel in an SDN, to solve the problem that the control channel adjustment mechanism in the in-band mode has poor real-time performance in the SDN network, and the standby channel is not updated in time, and appears in the transmission channel.
  • the alternate channel When congestion is switched to the alternate channel, the alternate channel also has the problem that congestion affects the effective transmission of control information.
  • the control device in the SDN provided by the embodiment of the present invention adds the state acquiring unit, the first control unit, and the second control unit to the existing control device, and adjusts the alternate path in real time.
  • the switched transmission channel can effectively transmit control information.
  • the control device 100 of FIG. 1 the control device provided by the embodiment of the present invention adds the state acquiring unit 106, the first control unit 107, and the second control unit 108 on the basis of the control device 100.
  • the state obtaining unit 106, the first control unit 107, and the second control unit 108 may be present in a certain module or unit of the existing control device 100, or may be separately configured; the first control unit 107 and the second control unit 108 may be combined into a single control unit, or may be separately configured.
  • the embodiment of the present invention is described by taking the state acquisition unit 106, the first control unit 107, and the second control unit 108 separately as an example.
  • the state obtaining unit 106 is configured to acquire connection states of the first transmission channel, the second transmission channel, and the third transmission channel.
  • the first control unit is configured to: when the connection state of the second transmission channel reaches the first state, set the third transmission channel as an alternate channel of the first transmission channel, where the first state is The congestion of the transmission channel reaches the first threshold but does not reach the second threshold, wherein the transmission channel that reaches the first threshold is congested but can transmit control information, and the transmission channel that reaches the second threshold cannot be congested.
  • the third transmission channel is a channel that does not reach the first state and can perform control information and/or data information transmission instead of the first transmission channel;
  • a second control unit 108 configured to switch the standby channel of the first transmission channel to a primary channel when the connection state of the first transmission channel reaches a second state, where the second state refers to a transmission channel The degree of congestion reaches the second threshold.
  • the first transmission channel may be: control device ⁇ switching device 2 ⁇ switching device 5
  • the second transmission channel may be: control device ⁇ switching device 2 ⁇ switching device 3 ⁇ switching device 5
  • the third transmission channel can be: control device ⁇ switching device 3 ⁇ switching device 5.
  • the state obtaining unit 106 can obtain the information of the first transmission channel and the second transmission channel from the network information library 105, and acquire the real-time status of the first transmission channel, the second transmission channel, and the third transmission channel through the processor 101 or the like.
  • the first control unit 1007 determines whether the second transmission channel is congested according to the real-time status of the three transmission channels acquired by the state acquiring unit 106, and the degree of congestion.
  • the second transmission channel When the second transmission channel is partially congested, it may become congested.
  • the control information cannot be transmitted, for example, the preset partial congestion threshold is reached, and when the threshold of full congestion is reached, the third transmission channel that has not reached partial congestion is set as the alternate channel of the first transmission channel, or The third transmission channel serves as an alternate channel of the first transmission channel and has a higher priority than the second transmission channel. If congestion occurs between the control device and the switching device 2, or between the switching device 2 and the switching device 5, for example, when the threshold of full congestion is reached, the transmission of control information cannot be performed, and the second control unit 108 The alternate channel, the third transmission channel, switches to the primary channel. In this way, the previously set alternate channel that will be congested or has been congested will not be switched to the primary channel, which ensures the real-time adjustment of the channel and ensures the effective transmission of control information. Improve the reliability of control equipment in SDN.
  • the Openf low protocol is usually used between the control device and the switching device in the device, and the control device implements the setting of the switching device and the control channel by means of a flow table.
  • a flow table usually includes a packet header field, a counter, and an action. The header field is used for packet matching, the counter is used to count the number of packets, and the action is used to describe how the matched packet is processed, that is, the switching device receives the packet. What to do after matching packets.
  • the control device provided by the embodiment of the present invention may further include a flow table sending unit 109.
  • the flow table sending unit 109 implements setting of an alternate channel by sending a flow table to the switching device. Update, or switch between the primary channel and the alternate channel by issuing a flow table.
  • the control device sends a flow table to the switching device 5
  • the action part of the flow table records the information of the backup channel, and when the active channel is congested, the flow table sending unit 109 sends a new flow.
  • the state obtaining unit 106 of the embodiment of the present invention may include:
  • a probe packet sending unit 1061 configured to send a probe data packet to the first transmission channel, the second transmission channel, and the third transmission channel;
  • different transmission channels may be identified by different IDs to distinguish different transmission channels.
  • the frequency at which the probe packet sending unit 1061 sends the probe packet may be set according to the state of the network. For example, when the network load is large, the transmission frequency of the probe packet is increased, and when the network load is light, the transmission frequency of the probe packet may be reduced. .
  • the form of the probe packet may include a link level probe packet and a path level probe packet.
  • link-level probe packets it is the start device to the end device of a link, and then returns to the start device, so that the transmission time is detected in both directions of one link.
  • the starting device may be a control device or a switching device in the SDN, and the destination device may be a switching device in the SDN.
  • the control device is based on all nodes on the transmission channel.
  • (Switching device) Sends a probe packet with the specified number of hops.
  • the detection packets are set to different lengths according to the length of the path.
  • the path in FIG. 3: control device ⁇ switching device 2 ⁇ switching device 5 has three nodes. It is necessary to separately set the probe data packet of the control device to the switching device 2, and the probe data packet of the switching device 2 to the switching device 5, and exchange.
  • the device 5 returns the probe packet of the switching device 2, and the probe packet of the switching device 2 to the control device, so that the probe packets between all nodes on the path are set.
  • the state obtaining subunit 1062 is configured to obtain a connection state of each transmission channel according to a time when the probe data packet is transmitted in each transmission channel.
  • the switching device that receives the probe data packet times the probe data packet according to the ID of the probe data packet, records the time when the probe data packet is received, and forwards the probe data packet to the next switching device of the probe data packet. In this way, when the detection packet is returned to the control device, the time stamps of the nodes on the transmission channel are recorded, and according to the timestamp, the connection state of each transmission channel is obtained accordingly.
  • the time stamp difference between the source switching device and the destination switching device of each link is the transmission time of each link. If the transmission time is long, for example, exceeds the preset threshold, the connection status of the transmission channel is congested. If the transmission duration is lower than the preset threshold, congestion is not indicated.
  • the standby channel when the standby channel is congested and the congestion degree exceeds the first threshold, it can also be determined whether the congestion degree of the transmission channel is increasing at two time points, and if it is an upward trend, the The third transmission channel of the first threshold is set as the alternate channel, or the third transmission channel is used as the backup channel of the highest priority.
  • the detection packet sending unit 1061 sends the probe data packet, and the state acquisition sub-unit 1062 acquires the connection state of each transmission channel according to the transmission time of the probe data packet, so that the control device can obtain the congestion status of each transmission channel in real time,
  • the selection of the alternate channel and the switching of the primary and secondary channels provide a reference for timely adjustment of the alternate channel to provide effective support when congestion occurs in the alternate transmission channel and becomes congested.
  • the connection state of the transmission channel is determined by detecting the transmission time of the data packet in the transmission channel, In the implementation process of the body, other methods can also be used to obtain the connection state of the transmission channel.
  • the invention can be used to implement the effective transmission of the control device.
  • the embodiment of the present invention does not limit the specific manner of obtaining the state of the transmission channel.
  • the state obtaining subunit 1062 includes:
  • a transmission time obtaining unit 10621 configured to acquire a transmission time of the probe data packet in each transmission channel
  • a state determining sub-unit 10622 configured to determine whether a transmission duration of the transmission channel reaches the first threshold and does not reach a second threshold, and if yes, determining that a connection state of the transmission channel reaches the first state; If the transmission duration of the channel exceeds the second threshold, it is determined that the connection state of the transmission channel reaches the second state.
  • the related switching community does not receive the switching of the new flow table initiated by the control device.
  • the control device has lost control of the part of the switching device.
  • the associated switching device can actively switch the control channel and report the switched information to the control device.
  • control device of the embodiment of the present invention further includes a handover notification acquiring unit 110, configured to acquire a transmission channel switching notification message sent by the switching device in the SDN, where the handover notification message is When the first transmission channel reaches the second state and the switching device does not receive the notification of the control device switching channel, the switching device switches the standby channel to the primary channel and notifies the control device of the message.
  • a handover notification acquiring unit 110 configured to acquire a transmission channel switching notification message sent by the switching device in the SDN, where the handover notification message is When the first transmission channel reaches the second state and the switching device does not receive the notification of the control device switching channel, the switching device switches the standby channel to the primary channel and notifies the control device of the message.
  • the switching device 5 can switch the backup channel (for example, the control device ⁇ switching device 3 ⁇ switching device 5) delivered by the previously received control device to the primary channel, and the switched The channel information is sent to the control device, and after the notification notification acquisition unit 110 in the control device receives the notification from the switching device 5, the channel is determined (control device ⁇ Whether the switching device 3 ⁇ switching device 5) can transmit control information as a transmission channel of the switching device 5, if the channel is suitable as a new primary channel, accept the switching, and make relevant records, for example, recorded in the network information base 1 If the switching notification acquisition unit 1 1 0 determines that the channel (control device ⁇ switching device 3 ⁇ switching device 5) is not suitable as the transmission channel of the switching device 5, the control information is transmitted,
  • control device of the embodiment of the present invention may further include a third control unit 1 1 1 , configured to enable the backup channel carried in the handover notification message or send another transmission according to the handover notification message sent by the switching device.
  • the channel acts as the primary channel.
  • the alternate channel or other transmission channel is used as the primary channel, which can realize the switching of the transmission channel when the transmission channel failure cannot achieve the channel switching, further ensuring the timely adjustment of the control information transmission channel, and improving the control device to achieve control. reliability.
  • FIG. 8 is a schematic flowchart diagram of a method for adjusting a transmission channel according to an embodiment of the present invention.
  • the method is applied to a software-defined network SDN, where control information and data information in the SDN are transmitted in the same transmission channel, where the SDN network includes a first transmission channel, a second transmission channel, and a third transmission channel,
  • the first transmission channel is an active channel;
  • the second transmission channel is an alternate channel of the first transmission channel, and is configured to switch the control channel for the primary channel when the first transmission channel does not satisfy the transmission condition, and/or Or transmission of data information;
  • the method includes:
  • Step 800 The control device in the SDN acquires a connection state of the first transmission channel, the second transmission channel, and the third transmission channel.
  • Step 802 When the connection state of the second transmission channel reaches the first state, the third channel is set as the backup channel of the first channel, where the first state refers to the congestion degree of the transmission channel reaches the first a threshold but not reaching a second threshold, wherein the first threshold is reached.
  • the transmission channel is congested but capable of transmitting control information, and the transmission channel reaching the second threshold is congested and cannot transmit control information;
  • the third transmission channel is not up to the first state and can replace the a transmission channel for transmitting control information and/or data information;
  • Step 804 When the connection state of the first transmission channel reaches the second state, the backup channel of the first transmission channel is switched to the primary channel, and the second state is that the congestion degree of the transmission channel reaches the The second threshold.
  • the above method determines the state of the transmission channel, and according to the state of the transmission channel, determines whether the alternate channel is suitable to continue as the backup channel according to the preset threshold. If the backup channel is congested to a certain extent, the alternate channel is adjusted to other uncongested.
  • the channel is set as the standby channel, and when the active channel is congested, the standby channel is switched to the primary channel, which ensures the real-time adjustment of the channel, ensures the effective transmission of the control information, and improves the reliability of the control device in the SDN. .
  • the first transmission channel, the second transmission channel, and the third transmission channel are transmission channels between the control device and a switching device in the SDN, or between the switching devices. Transmission channel.
  • control device implements setting or updating the backup channel by sending a flow table to the switch, or switching between the primary channel and the standby channel by sending the flow table.
  • the acquiring, by the control device in the foregoing method, the connection status of the first transmission channel, the second transmission channel, and the third transmission channel may include: The first transmission channel, the second transmission channel, and the third transmission channel send probe data packets, and acquire the connection state of each transmission channel by detecting the length of time that the data packets are transmitted in each transmission channel.
  • the obtaining the connection status of each transmission channel by detecting the length of time that the data packet is transmitted in each transmission channel may include:
  • the method for implementing the transmission channel control by the control device in the foregoing method embodiment is also implemented by referring to the specific implementation manner of the control device 100 in the foregoing embodiment, and details are not described herein.
  • the transmission channel control method of the embodiment of the present invention further includes:
  • Step 806 The control device acquires a handover notification message sent by the switching device, where the handover notification message is that the first transmission channel reaches the second state and the switching device does not receive the control device handover.
  • the switching device switches the backup channel to the primary channel and notifies the control device of the message;
  • Step 808 The control device enables the alternate channel carried in the handover notification message or sends another transmission channel as the primary channel according to the handover notification message.
  • the method for implementing the transmission channel control by the control device in the foregoing method embodiment is also implemented by referring to the specific implementation manner of the control device 100 in the foregoing embodiment, and details are not described herein.
  • the switching of the transmission channel is realized, which further ensures the timely adjustment of the control information transmission channel, and improves the reliability of the control device to achieve control.
  • FIG. 3 is a transmission channel control method according to an embodiment of the present invention. And the implementation of the control device is described:
  • the networking mode of the network shown in Figure 3 is the in-band control mode.
  • the control device sets the detection packets of all channels established on the control channel according to the initial control channel. This embodiment is described by taking the probe data packets of three transmission channels as an example.
  • the format of the probe message formulated by the control device is shown in Table 1-Table 3. Assume that the packet is the 001th probe.
  • Table 3 Probe Packets for Control Channel Path [Switching Device 1 ⁇ Switching Device 2 ⁇ Switching Device 3]
  • the switch times the time free bits in each detected packet and forwards it to the next hop. For example, for the control channel path switching device 1 ⁇ switching device 2 ⁇ switching device 5 probe packets. The data packet is first sent by the control device to the switching device 1, and the switching device times the timestamp toi in the idle bit of T1, and then forwards the probe data packet to the next according to the switching device ID of the next hop in the probe data packet.
  • Jump switching device 2. The switching device 2 times the time stamp t02 at the T2 position, and forwards the probe data packet to the next hop switching device 5 according to the above rule.
  • the switching device 5 After receiving the time, the switching device 5 times the time stamp t03, and forwards the probe data packet to the switching device 2, and the switching device 2 receives the probe data packet sent by the switching device 5, and then time stamps the T4 position. T04, then transferred to the switching device 1, the switching device 1 times the time stamp t05 at the position of T5. Then, the control channel path switching device 1 ⁇ switching device 2 ⁇ switching device 5 after the probe packet is time stamped in the control channel, as follows:
  • the control packet path of the control channel path [switching device 1 ⁇ switching device 2 ⁇ switching device 5] controls the state of each link in the control channel after receiving the probe packet for the exchange exchange report feedback. Assume that the connection status for the link from the switching device 5 to the switching device 2 is as follows:
  • Table 4 Control Channel Link Status Table for L52
  • the preset first threshold is 10ms
  • the second threshold is 50ms.
  • the transmission delay of L52 is 30ms, which exceeds the warning value by 10ms, and the transmission delay belongs to the rising state (the transmission delay of the detection of 002 is 10ms)
  • the control device removes L52 from the topology and starts the rerouting calculation 0FS_5 to the new routing channel of the control device.
  • the control device delivers the backup stream table for the switching device 5 and serves as the first priority backup stream table.
  • the flow table delivered is shown in Table 5.
  • Table 5 the flow table entry in the second row that is bolded by the black physical line is the first priority backup flow table delivered by the control device.
  • the other flow table forwards the flow entry for the control channel of the switching device 5.
  • the control device receives the probe packet with the probe ID of 004, it finds that the transmission delay of the link L52 is 50 ms, and the second threshold has been touched. At this time, the control device notifies the switching device 5 to start the first priority backup flow entry. At this time, in the S ⁇ network, the control channel of the switching device 5 to the control device is adjusted by the switching device 1 ⁇ switching device 2 ⁇ switching device 5 to switching device 1 ⁇ switching device 3 ⁇ switching device 5.
  • the switching device 2 can detect the link switching device 2, the switching device 5, and the switching device in real time. 2 ⁇ The connection status of the switching device 3 and the switching device 2 ⁇ the switching device 1; the switching device 2 detects that the link switching device 2 ⁇ the switching device 1 has lost packets or congestion, and has reached the second threshold, and the switching device 2 has no Receiving the message of the switching control channel delivered by the control device; the switching device 2 queries its own backup flow table, and if there is a first priority backup flow table, the flow table is started as a new forwarding flow entry; If a priority backup flow table is used, the other backup flow table with normal port status is enabled. As shown in Table 6, the first priority backup flow entry is the flow entry in the bold black box in the second row.
  • the switching device 2 sends a switching message of the control channel to the control device, and the control channel switching message is as follows: After receiving the handover notification message sent by the switching device 2, the control device starts the third control unit, and determines that the new control channel path switching device 2 ⁇ switching device 3 ⁇ switching device 1 ⁇ control device is not Congestion occurs and is suitable as a new control channel. Accept this control channel and add new control channel information to the network information base.
  • the embodiment of the present invention further provides an SDN system 200, including a control device 201 and a switching device 202.
  • the control information and the data information in the SDN are transmitted in the same transmission channel, and the control device controls the first transmission channel, a second transmission channel, the first transmission channel being an active channel between the control device 201 and the switching device 202; the second transmission channel being the control device 201 and the
  • the alternate channel between the switching devices 202 is configured to switch the control channel and the data information to be used as the primary channel when the first transmission channel is congested.
  • the control device 201 includes:
  • a state obtaining unit 2011, configured to acquire a connection state of the first transmission channel, the second transmission channel, and the third transmission channel;
  • a first control unit 2012 configured to: when the connection state of the second transmission channel reaches a first state, set the third transmission channel as an alternate channel of the first transmission channel, where the first state refers to The congestion of the transmission channel reaches a first threshold but does not reach a second threshold.
  • the transmission channel that reaches the first threshold is congested but can transmit control information, and the transmission channel that reaches the second threshold is congested.
  • the transmission of the control information cannot be performed;
  • the third transmission channel is a channel that does not reach the first state and can perform control information and/or data information transmission instead of the first transmission channel;
  • the second control unit 2013 is configured to switch the standby channel of the first transmission channel to a primary channel when the connection state of the first transmission channel reaches a second state, where the second state refers to a transmission channel The degree of congestion reaches the second threshold.
  • the implementation of the foregoing SDN system may be implemented by referring to the foregoing implementation manner of the control device 100, and details are not described herein again.
  • the connection state of the control channel acquired by the state acquiring unit 2011 by the first control unit 2012 and the second control unit 2013 determines whether the alternate channel is suitable as the standby channel according to the preset threshold. If the alternate channel is congested to a certain distance When adjusting, the alternate channel is set to set the other uncongested channel as the alternate channel, and when the active channel is congested, the standby channel is switched to the primary channel, which ensures the real-time adjustment of the channel and ensures the effective transmission of control information. , improve the reliability of control device control in SDN.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or may be integrated by two or more units. In one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供了一种SDN中的控制设备、系统和传输通道控制方法。通过本发明实施例提供的技术方案,获取控制通道的连接状态,按照预先设置的阈值判断备用通道是否适合继续作为备用通道,如果备用通道拥塞到一定程度时,调整备用通道,将其它未拥塞的通道设置为备用通道, 并在主用通道拥塞时,将备用通道切换为主用通道,保证了通道调整的实时性,确保了控制信息的有效传输,提高了SDN中控制设备实现控制的可靠性。

Description

软件定义网络中的控制设备、 系统和传输通道控制方法 技术领域 本发明涉及信息技术领域, 尤其涉及软件定义网络 SDN中的控制设备、 系统和传输通道的控制方法。 背景技术 软件定义网络 SDN是将传统网络设备的数据转发与管理控制两大功能 模块分离, 通过集中式的控制设备通过标准化的接口对各种网络设备进行 配置、 管理和控制。 交换设备 Swi tch严格基于流表转发; Swi tch提供接口 供控制设备 Con t r 011 e r控制; Swi t ch和 Con t r o 11 e r之间遵循一定的协议。
在 S匪网络中, Swi tch的特性包括: 1.初始时, 流表为空; 2.收到的数 据包在 s w i t ch中找不到不匹配路由表时, 上报到 Con t r 01 1 e r请求转发策略。 Control ler的特性包括: 拥有整网得全局视图, 为交换机上报的请求制定 下发策略。
SDN网络的组网模式通常有两种: 带外连接控制 (Out-of-band mod ) 和带内连接控制 (In-band mod ) 。
1 ) 带外连接模式:
控制设备与每个交换设备直接相连, 网络中拥有独立的控制通道。 控 制信息与数据信息传输互不影响, 控制信令有较好的安全性。 但该种模式 下, 需要网络中每个交换机有一个专门的端口做转发控制信令, 对端口资 源的消耗较多。
2 ) 带内连接模式: 控制设备只需与部分交换设备相连, 借助数据平面的链路实现与其它 交换设备的通信, 该种模式下, 控制信息与数据信息的传输相互影响, 安 全性较差。
在带内控制模式下, 控制信息与数据信息共用同一条传输通道, 数据 信息的转发会导致传输通道的拥塞, 影响到控制信息的有效传递。 如果传 输控制信息的通道拥塞导致失效, 将使控制设备失去对多个交换设备的控 制能力。 发明内容
本发明实施例提供一种 SDN中的控制设备、 系统和传输通道的控制方 法, 以解决在带内模式下, 传输通道拥塞导致、 控制通道未及时调整带来 的可靠性不高的问题。
本发明实施例提供了一种软件定义网络 SDN中的控制设备, 所述 SDN中 的控制信息与数据信息在同一个传输通道中传输, 所述控制设备控制第一 传输通道、 第二传输通道和第三传输通道, 所述第一传输通道是主用通道; 所述第二传输通道是所述第一传输通道的备用通道, 用于在所述第一传输 通道拥塞时切换为主用通道进行控制信息和 /或数据信息的传输; 所述控制 设备包括:
状态获取单元, 用于获取所述第一传输通道、 所述第二传输通道和 所述第三传输通道的连接状态;
第一控制单元, 用于在所述第二传输通道的连接状态达到第一状态 时, 将所述第三传输通道设置为所述第一传输通道的备用通道, 所述第一 状态是指传输通道的拥塞程度达到第一阈值但未达到第二阈值, 其中, 达 到所述第一阈值的传输通道出现拥塞但能够进行控制信息的传输, 达到所 述第二阈值的传输通道出现拥塞不能进行控制信息的传输; 所述第三传输 通道是未达到所述第一状态且能够代替所述第一传输通道进行控制信息和 /或数据信息传输的通道;
第二控制单元, 用于在所述第一传输通道的连接状态达到第二状态时, 将所述第一传输通道的备用通道切换为主用通道,所述第二状态是指传输 通道的拥塞程度达到所述第二阔值。
可选的, 所述第一传输通道、 所述第二传输通道和所述第三传输通道, 是所述控制设备与所述 SDN中的交换设备之间的传输通道, 或所述交换设备 之间的传输通道。
可选的, 所述控制设备还包括流表下发单元, 所述流表下发单元通过 向交换设备下发流表的方式实现备用通道的设置或更新, 或通过下发流表 的方式实现主用通道与备用通道之间的切换。
可选的, 所述状态获取单元包括:
探测包发送单元, 用于向所述第一传输通道、 所述第二传输通道和所 述第三传输通道发送探测数据包;
状态获取子单元, 用于根据所述探测数据包在每一条传输通道中传输 的时间, 获取每一条传输通道的连接状态。
可选的, 所述状态获取子单元包括:
传输时间获取单元, 用于获取所述探测数据包在每一条传输通道的传 输时间;
状态确定子单元, 用于判断传输通道的传输时长是否达到所述第一阔 值且未达到第二阔值, 如果是, 则确定所述传输通道的连接状态达到所述 第一状态; 如果传输通道的传输时长超过所述第二阈值, 则确定所述传输 通道的连接状态达到所述第二状态。
可选的, 所述控制设备还包括切换通知获取单元, 用于获取所述 SDN中 的交换设备发送的传输通道切换通知消息, 所述切换通知消息是在所述第 一传输通道达到所述第二状态且所述交换设备未收到所述控制设备切换通 道的通知时, 所述交换设备将备用通道切换为主用通道并通知所述控制设 备的消息。
可选的, 所述控制设备还包括第三控制单元, 用于根据所述交换设备 发送的切换通知消息, 启用所述切换通知消息中携带的备用通道或下发其 它传输通道作为主用通道。
本发明实施例还提供一种传输通道调整的方法, 应用于软件定义网络
SDN中, 所述 SDN中的控制信息与数据信息在同一个传输通道中传输, 所述 SDN网络包括第一传输通道、 第二传输通道和第三传输通道, 所述第一传输 通道是主用通道; 所述第二传输通道为所述第一传输通道的备用通道, 用 于在所述第一传输通道不满足传输条件时切换为主用通道进行控制信息和 /或数据信息的传输; 包括:
所述 SDN中的控制设备获取所述第一传输通道、 所述第二传输通道 和所述第三传输通道的连接状态;
在所述第二传输通道的连接状态达到第一状态时, 将所述第三通道 设置为所述第一通道的备用通道, 所述第一状态是指传输通道的拥塞程度 达到第一阔值但未达到第二阔值, 其中, 达到所述第一阔值的传输通道出 现拥塞但能够进行控制信息的传输, 达到所述第二阈值的传输通道出现拥 塞不能进行控制信息的传输; 所述第三传输通道是未达到所述第一状态且 能够代替所述第一传输通道进行控制信息和 /或数据信息传输的通道;
在所述第一传输通道的连接状态达到第二状态时, 将所述第一传输通 道的备用通道切换为主用通道,所述第二状态是指传输通道的拥塞程度达 到所述第二阔值。
可选的, 所述第一传输通道、 所述第二传输通道和所述第三传输通道, 是所述控制设备与所述 SDN中的交换设备之间的传输通道, 或所述交换设备 之间的传输通道。
可选的, 所述控制设备通过向交换机下发流表的方式实现对备用通道 的设置或更新, 或通过下发流表的方式实现主用通道与备用通道之间的切 换。
可选的, 所述 SDN中的控制设备获取所述第一传输通道、 所述第二传输 通道和所述第三传输通道的连接状态包括:
所述控制设备向所述第一传输通道、 所述第二传输通道和所述第三传 输通道发送探测数据包, 通过探测数据包在每一条传输通道中传输的时长 获取每一条传输通道的连接状态。
可选的, 所述通过探测数据包在每一条传输通道中传输的时长获取每 一条传输通道的连接状态包括:
获取探测数据包在每一条传输通道的传输时长;
判断传输通道的传输时长是否达到所述第一阈值且未达到所述第二阔 值, 如果是, 则确定所述传输通道的连接状态达到所述第一状态; 如果传 输通道的传输时长达到所述第二阈值, 则确定所述传输通道的连接状态达 到所述第二状态。
可选的, 所述方法还包括:
所述控制设备获取所述交换设备发送的切换通知消息, 所述切换通知 消息是在所述第一传输通道达到所述第二状态且所述交换设备未收到所述 控制设备切换主用通道的通知时, 所述交换设备将备用通道切换为主用通 道并通知所述控制设备的消息;
所述控制设备根据所述切换通知消息, 启用所述切换通知消息中携带 的备用通道或下发其它传输通道作为主用通道。
可选的, 所述 SDN中的交换设备获取获取所述第一传输通道、 所述第二 传输通道和所述第三传输通道的连接状态, 在所述第一传输通道达到所述 第二状态且未收到所述控制设备的通道切换通知时, 将备用通道切换为主 用通道, 并向所述控制设备发送切换通道的切换通知消息。
本发明实施例还提供一种软件定义网络 SDN系统, 包括控制设备和交换 设备, 所述 SDN中的控制信息与数据信息在同一个传输通道中传输, 所述控 制设备控制第一传输通道、 第二传输通道和第三传输通道, 所述第一传输 通道是所述控制设备与所述交换设备之间的主用通道; 所述第二传输通道 是所述控制设备与所述交换设备之间的备用通道, 用于在所述第一传输通 道拥塞时切换为主用通道进行控制信息和 /或数据信息的传输; 所述控制设 备包括:
状态获取单元, 用于获取所述第一传输通道、 所述第二传输通道和 所述第三传输通道的连接状态;
第一控制单元, 用于在所述第二传输通道的连接状态达到第一状态 时, 将所述第三传输通道设置为所述第一传输通道的备用通道, 所述第一 状态是指传输通道的拥塞程度达到第一阈值但未达到第二阈值, 其中, 达 到所述第一阈值的传输通道出现拥塞但能够进行控制信息的传输, 达到所 述第二阈值的传输通道出现拥塞不能进行控制信息的传输; 所述第三传输 通道是未达到所述第一状态且能够代替所述第一传输通道进行控制信息和 /或数据信息传输的通道;
第二控制单元, 用于在所述第一传输通道的连接状态达到第二状态时, 将所述第一传输通道的备用通道切换为主用通道,所述第二状态是指传输 通道的拥塞程度达到所述第二阔值。
本发明实施例提供的 SDN中的控制设备、 系统和传输通道控制方法, 通 过获取的控制通道的连接状态, 按照预先设置的阈值判断备用通道是否适 合继续作为备用通道,如果备用通道拥塞到一定程度时,调整备用通道,将 其它未拥塞的通道设置为备用通道,并在主用通道拥塞时,将备用通道切换 为主用通道, 保证了通道调整的实时性, 确保了控制信息的有效传输, 提 高了 SDN中控制设备实现控制的可靠性。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为 SDN中控制设备 100的基本硬件结构示意图;
图 2为控制设备 100包含网路信息库的软硬件结构示意图;
图 3为 SDN中一种网络拓朴关系示意图;
图 4为本发明实施例一种控制设备的结构实现图;
图 5为本发明实施例另一种控制设备的结构实现图;
图 6为本发明实施例另一种控制设备具体实现的结构实现图; 图 7为本发明实施例另一种控制设备的结构实现图;
图 8为本发明实施例一种通道控制方法流程示意图;
图 9为本发明实施例另一种通道控制方法流程示意图;
图 10为本发明实施例一种 SDN中系统的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有 做出创造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护 的范围。
参考图 1 , 图 1为 SDN中控制设备 100的基本硬件结构示意图。控制设 备 100包括处理器 101、 内存 102、 硬盘 103、 网卡 104等基本硬件组成, 通过处理器 1 01从内存 102读取指令, 或从硬盘 103、 网卡 104获取相关数 据和信息实现控制。 控制设备 100还包括其它设备, 实现控制设备的其它 控制和管理功能, 在此不再赘述。 控制设备 100 除了必要的硬件之外, 还包括必要的软件, 与硬件配合 功能实现控制的功能。 参考图 2 , 图 2为控制设备 100包含网路信息库的软 硬件结构示意图。 该网络信息库 105包含控制设备 100所在的 SDN网络的 状态信息、 节点信息等,网络信息库 105的信息可以存储在硬盘 103或内存 102等存储介质上,处理器 101可以通过内存 102或硬盘 103来读取网络信 息库 105中的信息, 实现网络的相关控制。
S匪中, 控制设备可以有多个, 多个控制设备之间可以是主从关系, 也 可以是对等关系。 一个控制设备可以控制多个交换设备, 一个交换设备也 可以被多个控制设备控制。 通常情况下, 控制设备是一台独立的服务器, 例如 X86服务器等等。 本发明实施例中, 以 SDN网络中只有一个控制设备, 六个交换设备为例进行说明。 如图 3所示, 控制设备与交换设备 1直接相 连, 交换设备 1分别与交换设备 2、 交换设备 3和交换设备 4直接相连, 交 换设备 5与交换设备 2、 交换设备 3和交换设备 6直接相连, 交换设备 6与 交换设备 3、 交换设备 4和交换设备 5直接相连, 任意两个交换设备之间可 以通过不同的连接链路相连, 每个交换设备可以通过不同的连接链路与控 制设备相连, 并接收控制设备下发的控制信息。
SDN中的控制设备对网络的控制,通常是通过网络控制通道的预规划以 及控制通道的动态调整机制来实现的。 例如, 在带内模式下, 控制设备已 经建立了整个网络的交换设备的初始控制通道, 该初始控制通道是控制设 备与交换设备之间, 以及交换设备之间的控制通道, 这些初始控制通道是 畅通的, 能够实现控制设备的控制信息到交换设备的顺利下发, 从而实现 控制设备对 SDN的有效控制。 在 SDN网络运行过程中, 由于控制信息和数 据信息在一个传输通道进行传输, 数据信息的转发可能会导致传输通道的 拥塞, 并进而影响到控制信息的有效传递。 现有的动态调整机制, 通过提 前配置备用通道或在网络出现故障的时候重新计算新的传输通道的方式来 实现。 这种动态调整机制均存在着实时性差, 不能及时有效切换到正常的 传输通道来实现控制信息的传递。
例如图 3 中, 控制设备与所有交换设备之间在带内模式下进行数据的 转发和数据流的控制, 假设控制设备与交换设备 5之间的主用通道为: 控 制设备→交换设备 2→交换设备 5 , 该主用通道的备用通道为: 控制设备→ 交换设备 2→交换设备 3→交换设备 5。 当出现交换设备 2与交换设备 3之 间的传输通道拥塞时, 例如拥塞程度 75%, 该条传输通道可能即将出现完全 拥塞, 按照现有技术的方案, 此时备用通道(控制设备→交换设备 2→交换 设备 3→交换设备 5 )不会被调整; 当控制设备与交换设备 5之间的通道因 拥塞而需要切换时, 该未调整的备用通道可能也已经拥塞而无法进行控制 信息的传输。
本发明实施例提供了一种 SDN中的控制设备、 SDN系统和传输通道的调 整方法, 以解决 SDN 网络中, 带内模式下控制通道调整机制实时性差, 备 用通道未及时更新, 在传输通道出现拥塞切换到备用通道时, 备用通道也 存在拥塞影响到控制信息的有效传输的问题。
本发明实施例提供的 SDN中的控制设备, 如图 4所示, 在现有的控制 设备的基础之上, 增加状态获取单元、 第一控制单元和第二控制单元, 通 过实时调整备用路径, 实现在主用通道拥塞时, 切换后的传输通道能够有 效地进行控制信息的传输。 以图 1 中控制设备 100为例, 本发明实施例提 供的控制设备在控制设备 100基础之上, 增加状态获取单元 106、 第一控制 单元 107和第二控制单元 108。其中,状态获取单元 106、第一控制单元 107 和第二控制单元 108可以存在于现有控制设备 100的某个模块或单元中, 也可以单独的设置; 第一控制单元 107和第二控制单元 108可以合并为一 个独立的控制单元, 也可以分开单独设置; 本发明实施例以状态获取单元 106、 第一控制单元 107和第二控制单元 108分别单独设置为例进行说明。
其中, 状态获取单元 106 , 用于获取所述第一传输通道、 所述第二传输 通道和所述第三传输通道的连接状态; 第一控制单元 1 07 , 用于在所述第二传输通道的连接状态达到第一状态 时, 将所述第三传输通道设置为所述第一传输通道的备用通道, 所述第一 状态是指传输通道的拥塞程度达到第一阈值但未达到第二阈值, 其中, 达 到所述第一阈值的传输通道出现拥塞但能够进行控制信息的传输, 达到所 述第二阈值的传输通道出现拥塞不能进行控制信息的传输; 所述第三传输 通道是未达到所述第一状态且能够代替所述第一传输通道进行控制信息和 /或数据信息传输的通道;
第二控制单元 1 08 ,用于在所述第一传输通道的连接状态达到第二状态 时, 将所述第一传输通道的备用通道切换为主用通道,所述第二状态是指传 输通道的拥塞程度达到所述第二阔值。
以图 3所示的 SDN网络架构为例, 第一传输通道可以是: 控制设备→ 交换设备 2→交换设备 5 , 第二传输通道可以是: 控制设备→交换设备 2→ 交换设备 3→交换设备 5 , 第三传输通道可以是: 控制设备→交换设备 3→ 交换设备 5。状态获取单元 1 06可以从网络信息库 1 05获取第一传输通道和 第二传输通道的信息, 并通过处理器 1 01 等获取第一传输通道、 第二传输 通道和第三传输通道的实时状态。 第一控制单元 1 07 , 根据状态获取单元 1 06获取的三个传输通道的实时状态, 判断第二传输通道是否拥塞, 以及拥 塞的程度, 当第二传输通道出现部分拥塞, 可能即将发展成为拥塞而无法 传输控制信息时, 例如达到预设的部分拥塞的阔值而为达到完全拥塞的阔 值时, 将还未达到部分拥塞的第三传输通道设置为第一传输通道的备用通 道, 或者将第三传输通道作为第一传输通道的备用通道且优先级高于第二 传输通道。 如果此时控制设备与交换设备 2之间, 或交换设备 2与交换设 备 5之间也出现拥塞, 例如达到完全拥塞的阔值时, 不能进行控制信息的 传输, 由第二控制单元 1 08将备用通道, 即第三传输通道, 切换为主用通 道。 这样, 就不会将将会出现拥塞或已经出现拥塞的之前设置的备用通道 切换为主用通道, 保证了通道调整的实时性, 确保了控制信息的有效传输, 提高了 SDN中控制设备实现控制的可靠性。
在具体实现时, S匪中控制设备和交换设备之间通常釆用 Openf low协 议, 控制设备通过流表的方式方式实现对交换设备以及控制通道的设置。 流表通常包含包头域、 计数器和动作三部分, 其中包头域用于数据包的匹 配, 计数器用于统计数据包的个数, 动作用于描述匹配的数据包如何处理, 即交换设备在接收到匹配的数据包后应该如何处理。
本发明实施例提供的控制设备, 具体还可以包括流表下发单元 109 ,如 图 5所示, 该流表下发单元 109 , 通过向交换设备下发流表的方式实现备用 通道的设置或更新, 或通过下发流表的方式实现主用通道与备用通道之间 的切换。 例如, 图 3中, 控制设备向交换设备 5下发流表, 该流表中的动 作部分记录有备用通道的信息, 以及在主用通道拥塞时, 流表下发单元 109 下发新的流表, 在动作部分记录将备用通道切换为主用通道的操作信息。
在具体的实现中, 如图 6所示, 本发明实施例的状态获取单元 106可 以包括:
探测包发送单元 1061 , 用于向所述第一传输通道、 所述第二传输通道 和所述第三传输通道发送探测数据包;
具体的, 对不同的传输通道, 可以用不同的 ID来标识, 以区分不同的 传输通道。 探测包发送单元 1061发送探测包的频率, 可以依据网络的状态 设定, 例如, 在网络负载大的时候, 加大探测包的发送频率, 在网络负载 较轻时, 可以降低探测包的发送频率。
探测数据包的形式, 可以包括链路级别的探测包和路径级别的探测包 等。 对于链路级别的探测数据包, 是一条链路的起点设备到终点设备, 然 后再返回到起点设备, 这样一条链路的两个方向都检测到了传输时间。 其 中, 起点设备可以是 SDN中的控制设备或交换设备, 终点设备可以是 SDN中 的交换设备。
对于路径级别的探测数据包, 是控制设备根据传输通道上的所有节点 (交换设备)发送带有指定跳数的的探测数据包。 该种检测数据包按照路 径的长短分别设定不同的长度。 例如图 3中的路径: 控制设备→交换设备 2 →交换设备 5 , 共有三个节点, 需要分别设置控制设备到交换设备 2的探测 数据包, 交换设备 2到交换设备 5的探测数据包, 交换设备 5返回交换设备 2 的探测数据包, 以及交换设备 2到控制设备的探测数据包, 使得该路径上所 有节点之间的探测包都有设定。
状态获取子单元 1062 , 用于根据所述探测数据包在每一条传输通道中 传输的时间, 获取每一条传输通道的连接状态。
接收到探测数据包的交换设备, 会根据探测数据包的 ID , 给探测数据 包打上时间戳, 记录收到探测数据包的时间, 并将探测数据包转发给探测 数据包的下一个交换设备, 这样, 在探测数据包返回控制设备时, 就记录 了传输通道上各个节点打上的时间戳, 根据时间戳, 也就相应获取到每一 条传输通道的连接状态。 每条链路的源交换设备与目的交换设备的时间戳 差值, 就是每条链路的传输时间。 传输时间长的, 例如超过预设阔值的, 说明该传输通道的连接状态出现拥塞, 如果传输时长低于预设阈值的, 说 明未出现拥塞。
进一步的, 在备用通道出现拥塞并且拥塞程度超过第一阔值时, 还可 以判断该传输通道的拥塞程度在前后两个时间点是否呈上升趋势, 如果是 呈上升趋势, 则将未达到所述第一阔值的第三传输通道设置为备用通道, 或将所述第三传输通道作为最高优先级的备用通道。
上述通过探测包发送单元 1061发送探测数据包, 状态获取子单元 1062 根据所述探测数据包的传输时间获取每一条传输通道的连接状态, 能够使 得控制设备实时获取每一条传输通道的拥塞状况, 为备用通道的选定和主 备用通道的切换提供参考, 在备用传输通道出现拥塞并将发展成为拥塞状 态时及时调整备用通道提供有效的支撑。 需要说明的是, 本发明实施例是 以探测数据包在传输通道的传输时间来判断传输通道的连接状态的, 在具 体的实现过程中, 还可以釆用其它的方式来获取传输通道的连接状态, 只 要能够获取传输通道是否出现拥塞, 或是否将发展成为拥塞, 都可以用来 实现本发明关于控制设备实现有效传输控制信息的目的, 本发明实施例不 限定具体的获取传输通道状态的方式。
作为一种可选的实现方式, 所述状态获取子单元 1062包括:
传输时间获取单元 10621 , 用于获取所述探测数据包在每一条传输通道 的传输时间;
状态确定子单元 10622 , 用于判断传输通道的传输时长是否达到所述第 一阔值且未达到第二阈值, 如果是, 则确定所述传输通道的连接状态达到 所述第一状态; 如果传输通道的传输时长超过所述第二阈值, 则确定所述 传输通道的连接状态达到所述第二状态。
在 SDN的运行过程中, 还会出现网络中部分链路或交换设备的某个端口 已经拥塞, 而相关的交换社会也没有收控制设备下发的新的流表启动传输 通道的切换。 此时, 控制设备已经失去了对部分交换设备的控制能力。 为 确保控制设备的有效控制, 相关的交换设备可以主动切换控制通道, 并将 切换的信息上报给控制设备。 相应的, 如图 7所示, 本发明实施例的控制设 备还包括切换通知获取单元 110 , 用于获取所述 SDN中的交换设备发送的传 输通道切换通知消息, 所述切换通知消息是在所述第一传输通道达到所述 第二状态且所述交换设备未收到所述控制设备切换通道的通知时, 所述交 换设备将备用通道切换为主用通道并通知所述控制设备的消息。
以图 3中的 S匪网络为例, 如果交换设备 2与交换设备 5之间出现拥塞, 交换设备 5不能从主用通道接收控制设备的控制信息, 交换设备 5也未收到 控制设备切换通道的通知, 这种情况下, 交换设备 5可以将之前已经收到的 控制设备下发的备用通道(例如控制设备→交换设备 3→交换设备 5 )切换 为主用通道, 并将该切换后的通道信息发送给控制设备, 控制设备中的切 换通知获取单元 110接收到交换设备 5的通知后, 判断该通道(控制设备→ 交换设备 3→交换设备 5 )是否可以作为交换设备 5的传输通道来传输控制信 息, 如果该通道适合作为新的主用通道, 则接受该切换, 并做相关记录, 例如记录在网络信息库 1 05中; 如果切换通知获取单元 1 1 0判断该通道(控 制设备→交换设备 3→交换设备 5 )不适合作为交换设备 5的传输通道来传输 控制信息, 例如该通道也存在拥塞或时延较长等, 则重新获取新的到交换 设备 5的传输通道, 并下发给交换设备 5。
相应的, 本发明实施例的控制设备还可以包括第三控制单元 1 1 1 , 用于 根据所述交换设备发送的切换通知消息, 启用所述切换通知消息中携带的 备用通道或下发其它传输通道作为主用通道。
通过切换通知获取单元 1 1 0获取 SDN中的交换设备发送的传输通道切换 通知消息, 以及第三控制单元 1 1 1根据所述交换设备发送的切换通知消息, 启用所述切换通知消息中携带的备用通道或下发其它传输通道作为主用通 道, 能够在传输通道故障无法实现通道切换的情况下, 实现传输通道的切 换, 进一步保证了控制信息传输通道的及时调整, 提高了控制设备实现控 制的可靠性。
参考图 8 , 图 8为本发明实施例一种传输通道调整的方法的流程示意图。 该方法应用于软件定义网络 SDN中, 所述 SDN中的控制信息与数据信息在同 一个传输通道中传输, 所述 SDN网络包括第一传输通道、 第二传输通道和第 三传输通道, 所述第一传输通道是主用通道; 所述第二传输通道为所述第 一传输通道的备用通道, 用于在所述第一传输通道不满足传输条件时切换 为主用通道进行控制信息和 /或数据信息的传输; 该方法包括:
步骤 800 : 所述 SDN中的控制设备获取所述第一传输通道、 所述第二 传输通道和所述第三传输通道的连接状态;
步骤 802 : 在所述第二传输通道的连接状态达到第一状态时, 将所述 第三通道设置为所述第一通道的备用通道, 所述第一状态是指传输通道的 拥塞程度达到第一阔值但未达到第二阔值, 其中, 达到所述第一阔值的传 输通道出现拥塞但能够进行控制信息的传输, 达到所述第二阈值的传输通 道出现拥塞不能进行控制信息的传输; 所述第三传输通道是未达到所述第 一状态且能够代替所述第一传输通道进行控制信息和 /或数据信息传输的 通道;
步骤 804 : 在所述第一传输通道的连接状态达到第二状态时, 将所述 第一传输通道的备用通道切换为主用通道,所述第二状态是指传输通道的 拥塞程度达到所述第二阔值。
上述方法通过获取传输通道的状态,并根据传输通道的状态,按照预 先设置的阔值判断备用通道是否适合继续作为备用通道,如果备用通道拥 塞到一定程度时,调整备用通道,将其它未拥塞的通道设置为备用通道,并 在主用通道拥塞时,将备用通道切换为主用通道, 保证了通道调整的实时 性,确保了控制信息的有效传输,提高了 SDN中控制设备实现控制的可靠性。
其中, 所述第一传输通道、 所述第二传输通道和所述第三传输通道, 是所述控制设备与所述 SDN中的交换设备之间的传输通道, 或所述交换设备 之间的传输通道。
本发明实施例中, 所述控制设备通过向交换机下发流表的方式实现对 备用通道的设置或更新, 或通过下发流表的方式实现主用通道与备用通道 之间的切换。
作为一种可选的实现方式, 上述方法实施例中的控制设备获取所述第 一传输通道、 所述第二传输通道和所述第三传输通道的连接状态可以包括: 所述控制设备向所述第一传输通道、 所述第二传输通道和所述第三传 输通道发送探测数据包, 通过探测数据包在每一条传输通道中传输的时长 获取每一条传输通道的连接状态。
其中, 所述通过探测数据包在每一条传输通道中传输的时长获取每一 条传输通道的连接状态可以包括:
获取探测数据包在每一条传输通道的传输时长; 判断传输通道的传输时长是否达到所述第一阈值且未达到所述第二阔 值, 如果是, 则确定所述传输通道的连接状态达到所述第一状态; 如果传 输通道的传输时长达到所述第二阈值, 则确定所述传输通道的连接状态达 到所述第二状态。
上述方法实施例中控制设备实现传输通道控制的方法, 还可以参考上 述实施例中控制设备 100的具体实现方式来实现, 不再赘述。
如果出现主用通道出现拥塞而控制设备无法及时获取拥塞的相关信息 时, 所述控制设备所在的 SDN中相关的交换设备, 例如在所述主用通道上的 交换设备, 依据事先探测并获取到的主用通道拥塞的情况, 在未收到控制 设备的切换通知消息时, 启动备用通道的切换, 并将通道切换的通知消息 发送给所述控制设备。 相应的, 如图 9所示, 本发明实施例的传输通道控制 方法还包括:
步骤 806: 所述控制设备获取所述交换设备发送的切换通知消息, 所述 切换通知消息是在所述第一传输通道达到所述第二状态且所述交换设备未 收到所述控制设备切换主用通道的通知时, 所述交换设备将备用通道切换 为主用通道并通知所述控制设备的消息;
步骤 808: 所述控制设备根据所述切换通知消息, 启用所述切换通知消 息中携带的备用通道或下发其它传输通道作为主用通道。
上述方法实施例中控制设备实现传输通道控制的方法, 还可以参考上 述实施例中控制设备 100的具体实现方式来实现, 不再赘述。
通过获取交换设备发送的传输通道切换通知消息, 并根据所述切换通 知消息, 启用所述切换通知消息中携带的备用通道或下发其它传输通道作 为主用通道, 能够在传输通道故障无法实现通道切换的情况下, 实现传输 通道的切换, 进一步保证了控制信息传输通道的及时调整, 提高了控制设 备实现控制的可靠性。
下面以图 3所示的 SDN架构为例, 对本发明实施例的传输通道控制方法 和控制设备的实现方式进行说明:
图 3所示网络的组网模式是带内控制模式。 控制设备根据初始的控制通 道, 设定控制通道上已建立的所有通道的检测数据包。 本实施例以制定三 条传输通道的探测数据包为例说明。 控制设备制定的探测消息的格式如表 1-表 3所示, 假设该数据包为第 001次探测。
Figure imgf000018_0001
表 3: 控制通道路径【交换设备 1→交换设备 2→交换设备 3】 的探测数据包 交换机对每个检测数据包, 在时间空闲位打时间戳, 转给下一跳。 如 对于控制通道路径交换设备 1→交换设备 2→交换设备 5的探测数据包。该数据包首先 由控制设备发送给交换设备 1, 该交换设备在 T1的空闲位打时间戳 toi, 然 后根据该探测数据包中下一跳的交换设备 ID, 将该探测数据包转发给下一 跳交换设备 2。 交换设备 2在 T2位置打时间戳 t02, 同样依照上面的规律, 将 该探测数据包转发给下一跳交换设备 5。 交换设备 5接收到后, 在时间空闲 位打时间戳 t03, 并将该探测数据包转发给交换设备 2, 交换设备 2接收到交 换设备 5发来的探测数据包, 然后在 T4位置打时间戳 t04, 然后转给交换设 备 1, 交换设备 1在 T5的位置打时间戳 t05。 则控制通道路径交换设备 1→交 换设备 2→交换设备 5的探测数据包在控制通道中经过打时间戳之后, 如下:
Sw_ID T1/T5 Sw_ID T2/T4 Sw_ID T3 探测 ID
SI t01/t05 S2 t02/t04 S5 t03 001 表 1: 控制通道路径【交换设备 1→交换设备 2→交换设备 5】 的探测数据包 控制设备接收到交换交换申报反馈的探测数据包后, 维护控制通道中 每条链路的状态。 假设针对链路从交换设备 5到交换设备 2的的连接状态如 下:
从交换设备 1→交换设备 2→交换设备 5探测数据包中, 利用 T4与 T3的差 值得出 L52的检测时间。 且 L52的物理时延为 100ms, 控制设备每 10ms发送一 次探测数据包。 状态如下:
Figure imgf000019_0001
表 4: 控制通道链路 L52的状态表 对于 L52, 如果预先设定的第一阔值为 10ms, 第二阔值为 50ms。 根据上 表的实时状态, 在接收到探测 ID为 003的探测数据包时, L52的传输时延为 30ms, 超过了预警值 10ms, 且传输时延属于上升状态( 002的探测的传输时 延为 10ms ), 则此刻控制设备将 L52从拓朴中剔除, 启动重路由计算 0FS_5到 控制设备的新的路由通道。
若此时重路由的结果为交换设备 1→交换设备 3→交换设备 5 , 控制设备 为交换设备 5下发备份流表, 且作为第一优先级备份流表。 下发的流表如表 5所示。 表 5中, 第二行用黑色实体线加粗的一行的流表项为控制设备下发 的第一优先级备份流表。 另外一条流表为交换设备 5的控制通道转发流表 项。
Figure imgf000019_0002
交换设备 5的流表项 当控制设备接收到探测 ID为 004的探测数据包时, 发现链路 L52的传输 时延 50ms , 已经触到了第二阔值。 此时, 控制设备通知交换设备 5 , 启动第 一优先级备份流表项。 此时, S匪网路中, 交换设备 5到控制设备的控制通 道由交换设备 1→交换设备 2→交换设备 5调整为交换设备 1→交换设备 3→ 交换设备 5。
对于交换设备 2与控制设备之间已经出现拥塞, 而交换设备 2没有接收 控制设备下发的更新控制通道的策略时, 可以由交换设备 2实时检测链路交 换设备 2→交换设备 5、 交换设备 2→交换设备 3和交换设备 2→交换设备 1的 连接状况; 交换设备 2检测到链路交换设备 2→交换设备 1出现丟包情况或者 拥塞, 已经达到第二阔值, 交换设备 2又没有接收到控制设备下发的切换控 制通道的消息;换机设备 2查询自己的备份流表,如有第一优先级备份流表, 则启动该流表为新的转发流表项; 若没有第一优先级备份流表, 则任意启 用其他的端口状态正常的备份流表, 如表 6所示, 第一优先级备份流表项为 第二行中黑色粗体框中的流表项。
Figure imgf000020_0001
交换设备 2中的流表项 同时, 交换设备 2将控制通道的切换消息发给控制设备, 控制通道切换 消息如下:
Figure imgf000020_0002
控制设备收到交换设备 2发送的切换通知消息后, 启动第三控制单元, 判定新的控制通道路径交换设备 2→交换设备 3→交换设备 1→控制设备未 出现拥塞, 适合作为新的控制通道。 接受该控制通道, 将新的控制通道信 息添加到网络信息库中。
本发明实施例还提供了一种 SDN系统 200 , 包括控制设备 201和交换设备 202 , 所述 SDN中的控制信息与数据信息在同一个传输通道中传输, 所述控 制设备控制第一传输通道、 第二传输通道和第三传输通道, 所述第一传输 通道是所述控制设备 201与所述交换设备 202之间的主用通道; 所述第二传 输通道是所述控制设备 201与所述交换设备 202之间的备用通道, 用于在所 述第一传输通道拥塞时切换为主用通道进行控制信息和 /或数据信息的传 输; 其特征在于, 所述控制设备 201包括:
状态获取单元 2011 , 用于获取所述第一传输通道、 所述第二传输通 道和所述第三传输通道的连接状态;
第一控制单元 2012 , 用于在所述第二传输通道的连接状态达到第一 状态时, 将所述第三传输通道设置为所述第一传输通道的备用通道, 所述 第一状态是指传输通道的拥塞程度达到第一阔值但未达到第二阔值, 其中, 达到所述第一阈值的传输通道出现拥塞但能够进行控制信息的传输, 达到 所述第二阈值的传输通道出现拥塞不能进行控制信息的传输; 所述第三传 输通道是未达到所述第一状态且能够代替所述第一传输通道进行控制信息 和 /或数据信息传输的通道;
第二控制单元 2013 , 用于在所述第一传输通道的连接状态达到第二状 态时, 将所述第一传输通道的备用通道切换为主用通道,所述第二状态是指 传输通道的拥塞程度达到所述第二阔值。
上述 SDN系统的具体实现方式, 可以参考上述关于控制设备 100的实现 方式来实现, 在此不再赘述。
本发明实施例提供的 SDN系统, 通过第一控制单元 2012和第二控制单元 2013 , 状态获取单元 2011获取的控制通道的连接状态, 按照预先设置的阔 值判断备用通道是否适合继续作为备用通道,如果备用通道拥塞到一定程 度时,调整备用通道,将其它未拥塞的通道设置为备用通道,并在主用通道 拥塞时,将备用通道切换为主用通道, 保证了通道调整的实时性, 确保了控 制信息的有效传输, 提高了 SDN中控制设备实现控制的可靠性。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合 来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照 功能一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件 方式来执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员 可以对每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实 现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上 述描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中 的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅 是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实 现时可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成 到另一个系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的 相互之间的耦合或直接耦合或通信连接可以是通过一些接口、 装置或单元 的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本发明实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上单元集成 在一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用 软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销 售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分, 或者该技术 方案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存 储在一个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个 人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的 全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 ( ROM, Read-Only Memory ) 、 随机存取存储器 ( RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保 护范围之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。

Claims

权利要求
1 , 一种软件定义网络 SDN中的控制设备, 所述 SDN中的控制信息与数 据信息在同一个传输通道中传输, 所述控制设备控制第一传输通道、 第二 传输通道和第三传输通道, 所述第一传输通道是主用通道; 所述第二传输 通道是所述第一传输通道的备用通道, 用于在所述第一传输通道拥塞时切 换为主用通道进行控制信息和 /或数据信息的传输; 其特征在于, 所述控制 设备包括:
状态获取单元, 用于获取所述第一传输通道、 所述第二传输通道和所述 第三传输通道的连接状态;
第一控制单元, 用于在所述第二传输通道的连接状态达到第一状态时, 将所述第三传输通道设置为所述第一传输通道的备用通道, 所述第一状态 是指传输通道的拥塞程度达到第一阔值但未达到第二阔值, 其中, 达到所 述第一阈值的传输通道出现拥塞但能够进行控制信息的传输, 达到所述第 二阔值的传输通道出现拥塞不能进行控制信息的传输; 所述第三传输通道 是未达到所述第一状态且能够代替所述第一传输通道进行控制信息和 /或 数据信息传输的通道;
第二控制单元, 用于在所述第一传输通道的连接状态达到第二状态时, 将所述第一传输通道的备用通道切换为主用通道,所述第二状态是指传输 通道的拥塞程度达到所述第二阔值。
2 ,根据权利要求 1所述的控制设备,其特征在于: 所述第一传输通道、 所述第二传输通道和所述第三传输通道, 是所述控制设备与所述 SDN 中的 交换设备之间的传输通道, 或所述交换设备之间的传输通道。
3 , 根据权利要求 2所述的控制设备, 其特征在于, 所述控制设备还包 括流表下发单元, 所述流表下发单元通过向交换设备下发流表的方式实现 备用通道的设置或更新, 或通过下发流表的方式实现主用通道与备用通道 之间的切换。
4 , 根据权利要求 1-3所述的任一控制设备, 其特征在于, 所述状态获 取单元包括:
探测包发送单元, 用于向所述第一传输通道、 所述第二传输通道和所 述第三传输通道发送探测数据包;
状态获取子单元, 用于根据所述探测数据包在每一条传输通道中传输 的时间, 获取每一条传输通道的连接状态。
5 , 根据权利要求 4所述的控制设备, 其特征在于, 所述状态获取子单 元包括:
传输时间获取单元, 用于获取所述探测数据包在每一条传输通道的传 输时间;
状态确定子单元, 用于判断传输通道的传输时长是否达到所述第一阔 值且未达到第二阔值, 如果是, 则确定所述传输通道的连接状态达到所述 第一状态; 如果传输通道的传输时长超过所述第二阈值, 则确定所述传输 通道的连接状态达到所述第二状态。
6 , 根据权利要求 1-3任一所述的控制设备, 其特征在于, 所述控制设 备还包括切换通知获取单元, 用于获取所述 SDN中的交换设备发送的传输通 道切换通知消息, 所述切换通知消息是在所述第一传输通道达到所述第二 状态且所述交换设备未收到所述控制设备切换通道的通知时, 所述交换设 备将备用通道切换为主用通道并通知所述控制设备的消息。
7 , 根据权利要求 6所述的控制设备, 其特征在于, 所述控制设备还包 括第三控制单元, 用于根据所述交换设备发送的切换通知消息, 启用所述 切换通知消息中携带的备用通道或下发其它传输通道作为主用通道。
8 , 一种传输通道调整的方法, 应用于软件定义网络 SDN中, 所述 SDN 中的控制信息与数据信息在同一个传输通道中传输, 所述 SDN 网络包括第 一传输通道、 第二传输通道和第三传输通道, 所述第一传输通道是主用通 道; 所述第二传输通道为所述第一传输通道的备用通道, 用于在所述第一 传输通道不满足传输条件时切换为主用通道进行控制信息和 /或数据信息 的传输; 其特征在于:
所述 SDN中的控制设备获取所述第一传输通道、 所述第二传输通道和所 述第三传输通道的连接状态;
在所述第二传输通道的连接状态达到第一状态时, 将所述第三通道设置 为所述第一通道的备用通道, 所述第一状态是指传输通道的拥塞程度达到 第一阔值但未达到第二阔值, 其中, 达到所述第一阔值的传输通道出现拥 塞但能够进行控制信息的传输, 达到所述第二阈值的传输通道出现拥塞不 能进行控制信息的传输; 所述第三传输通道是未达到所述第一状态且能够 代替所述第一传输通道进行控制信息和 /或数据信息传输的通道;
在所述第一传输通道的连接状态达到第二状态时, 将所述第一传输通道 的备用通道切换为主用通道,所述第二状态是指传输通道的拥塞程度达到 所述第二阔值。
9 , 根据权利要求 8所述的传输通道调整的方法, 其特征在于: 所述第 一传输通道、 所述第二传输通道和所述第三传输通道, 是所述控制设备与 所述 SDN中的交换设备之间的传输通道, 或所述交换设备之间的传输通道。
10 , 根据权利要求 9所述的传输通道调整的方法, 其特征在于, 所述控 制设备通过向交换机下发流表的方式实现对备用通道的设置或更新, 或通 过下发流表的方式实现主用通道与备用通道之间的切换。
11 , 根据权利要求 8-10所述的任一传输通道调整的方法, 其特征在于, 所述 SDN中的控制设备获取所述第一传输通道、 所述第二传输通道和所述第 三传输通道的连接状态包括:
所述控制设备向所述第一传输通道、 所述第二传输通道和所述第三传 输通道发送探测数据包, 通过探测数据包在每一条传输通道中传输的时长 获取每一条传输通道的连接状态。
12 , 根据权利要求 11所述的传输通道调整的方法, 其特征在于, 所述 通过探测数据包在每一条传输通道中传输的时长获取每一条传输通道的连 接状态包括:
获取探测数据包在每一条传输通道的传输时长;
判断传输通道的传输时长是否达到所述第一阈值且未达到所述第二阔 值, 如果是, 则确定所述传输通道的连接状态达到所述第一状态; 如果传 输通道的传输时长达到所述第二阈值, 则确定所述传输通道的连接状态达 到所述第二状态。
1 3 , 根据权利要求 8-10所述的任一传输通道调整的方法, 其特征在于, 所述方法还包括:
所述控制设备获取所述交换设备发送的切换通知消息, 所述切换通知 消息是在所述第一传输通道达到所述第二状态且所述交换设备未收到所述 控制设备切换主用通道的通知时, 所述交换设备将备用通道切换为主用通 道并通知所述控制设备的消息;
所述控制设备根据所述切换通知消息, 启用所述切换通知消息中携带 的备用通道或下发其它传输通道作为主用通道。
14 , 根据权利要求 1 3所述的传输通道调整的方法, 其特征在于, 所述 SDN中的交换设备获取获取所述第一传输通道、 所述第二传输通道 和所述第三传输通道的连接状态, 在所述第一传输通道达到所述第二状态 且未收到所述控制设备的通道切换通知时, 将备用通道切换为主用通道, 并向所述控制设备发送切换通道的切换通知消息。
15 , 一种软件定义网络 SDN系统, 包括控制设备和交换设备, 所述 SDN 中的控制信息与数据信息在同一个传输通道中传输, 所述控制设备控制第 一传输通道、 第二传输通道和第三传输通道, 所述第一传输通道是所述控 制设备与所述交换设备之间的主用通道; 所述第二传输通道是所述控制设 备与所述交换设备之间的备用通道, 用于在所述第一传输通道拥塞时切换 为主用通道进行控制信息和 /或数据信息的传输; 其特征在于, 所述控制设 备包括:
状态获取单元, 用于获取所述第一传输通道、 所述第二传输通道和所述 第三传输通道的连接状态;
第一控制单元, 用于在所述第二传输通道的连接状态达到第一状态时, 将所述第三传输通道设置为所述第一传输通道的备用通道, 所述第一状态 是指传输通道的拥塞程度达到第一阔值但未达到第二阔值, 其中, 达到所 述第一阈值的传输通道出现拥塞但能够进行控制信息的传输, 达到所述第 二阔值的传输通道出现拥塞不能进行控制信息的传输; 所述第三传输通道 是未达到所述第一状态且能够代替所述第一传输通道进行控制信息和 /或 数据信息传输的通道;
第二控制单元, 用于在所述第一传输通道的连接状态达到第二状态时, 将所述第一传输通道的备用通道切换为主用通道,所述第二状态是指传输 通道的拥塞程度达到所述第二阔值。
PCT/CN2014/080024 2014-06-17 2014-06-17 软件定义网络中的控制设备、系统和传输通道控制方法 WO2015192306A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2014/080024 WO2015192306A1 (zh) 2014-06-17 2014-06-17 软件定义网络中的控制设备、系统和传输通道控制方法
CN201480056019.6A CN105637817B (zh) 2014-06-17 2014-06-17 软件定义网络中的控制设备、系统和传输通道控制方法
EP14895367.2A EP3145132B1 (en) 2014-06-17 2014-06-17 Control device and system and transmission channel control method in software-defined networking
US15/382,041 US10103979B2 (en) 2014-06-17 2016-12-16 Control device, system, and transmission channel adjustment method in software-defined networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/080024 WO2015192306A1 (zh) 2014-06-17 2014-06-17 软件定义网络中的控制设备、系统和传输通道控制方法

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/382,041 Continuation US10103979B2 (en) 2014-06-17 2016-12-16 Control device, system, and transmission channel adjustment method in software-defined networking

Publications (1)

Publication Number Publication Date
WO2015192306A1 true WO2015192306A1 (zh) 2015-12-23

Family

ID=54934663

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080024 WO2015192306A1 (zh) 2014-06-17 2014-06-17 软件定义网络中的控制设备、系统和传输通道控制方法

Country Status (4)

Country Link
US (1) US10103979B2 (zh)
EP (1) EP3145132B1 (zh)
CN (1) CN105637817B (zh)
WO (1) WO2015192306A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070810A (zh) * 2017-02-27 2017-08-18 郑州云海信息技术有限公司 一种数据传输方法、装置及系统
CN107395437A (zh) * 2017-08-25 2017-11-24 中国联合网络通信集团有限公司 异地路由数据传输方法及装置
EP3738274A4 (en) * 2018-01-12 2021-08-25 Telefonaktiebolaget LM Ericsson (publ) CONTROL CHANNEL MESSAGE REDIRECTION MECHANISM IN CASE OF SDN CONTROL CHANNEL FAILURES
US10673957B2 (en) 2018-06-28 2020-06-02 At&T Intellectual Property I, L.P. Providing high availability in a software defined network
US11005777B2 (en) 2018-07-10 2021-05-11 At&T Intellectual Property I, L.P. Software defined prober
CN110943998B (zh) * 2019-12-04 2022-02-01 腾讯科技(深圳)有限公司 一种信号传输方法、装置、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964544A (zh) * 2005-11-11 2007-05-16 大唐移动通信设备有限公司 移动通信系统中基站侧信令链路动态分配的方法
CN103428103A (zh) * 2013-08-08 2013-12-04 杭州华三通信技术有限公司 一种链路负载控制方法和堆叠设备
US20130336159A1 (en) * 2012-06-15 2013-12-19 Cisco Technology, Inc. Distributed stateful path computation element overlay architecture
CN103782552A (zh) * 2013-09-03 2014-05-07 华为技术有限公司 一种业务路径的保护方法、控制器、设备及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7609623B2 (en) * 2003-12-23 2009-10-27 At&T Intellectual Property I, L.P. Method and system for automatically rerouting data from an overbalanced logical circuit in a data network
US8259584B2 (en) * 2008-03-18 2012-09-04 Cisco Technology, Inc. Dynamic reroute of network traffic
ES2355562B1 (es) * 2008-12-09 2012-02-02 Vodafone España, S.A.U. Procedimiento y dispositivo para controlar conexiones de múltiples caminos en redes de acceso por radio.
US8976850B2 (en) * 2010-03-11 2015-03-10 Samsung Electronics Co., Ltd. Method and apparatus for sharing channel state information (CSI) in a multiple-user multiple-input multiple-output (MU-MIMO) environment
WO2012087971A2 (en) * 2010-12-20 2012-06-28 Marvell World Trade Ltd. Descriptor scheduler
EP2692069B1 (en) * 2011-03-31 2019-08-07 Huawei Technologies Co., Ltd. Method in a wireless communication system
US9276877B1 (en) * 2012-09-20 2016-03-01 Wiretap Ventures, LLC Data model for software defined networks
US9729949B2 (en) * 2014-04-23 2017-08-08 Alcatel Lucent Dynamic local decision control in software defined networking-based environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964544A (zh) * 2005-11-11 2007-05-16 大唐移动通信设备有限公司 移动通信系统中基站侧信令链路动态分配的方法
US20130336159A1 (en) * 2012-06-15 2013-12-19 Cisco Technology, Inc. Distributed stateful path computation element overlay architecture
CN103428103A (zh) * 2013-08-08 2013-12-04 杭州华三通信技术有限公司 一种链路负载控制方法和堆叠设备
CN103782552A (zh) * 2013-09-03 2014-05-07 华为技术有限公司 一种业务路径的保护方法、控制器、设备及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3145132A4 *

Also Published As

Publication number Publication date
US10103979B2 (en) 2018-10-16
CN105637817B (zh) 2019-04-19
EP3145132B1 (en) 2018-08-08
EP3145132A1 (en) 2017-03-22
EP3145132A4 (en) 2017-07-19
US20170099217A1 (en) 2017-04-06
CN105637817A (zh) 2016-06-01

Similar Documents

Publication Publication Date Title
EP2720418B1 (en) Lacp link switching and data transmission method and device
WO2015192306A1 (zh) 软件定义网络中的控制设备、系统和传输通道控制方法
EP2878105B1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
US9853856B2 (en) Method and device for protecting service reliability and network virtualization system
US7433317B2 (en) Network connection apparatus and network connection switching method
JP4031500B2 (ja) ノード冗長方法、インタフェースカード、インタフェースデバイス、ノード装置およびパケットリングネットワークシステム
US10164824B2 (en) Indicating a master network controller in a virtual router redundancy protocol
US9692697B2 (en) Control channel establishing method, forwarding point, and controller
WO2017124791A1 (zh) 链路检测方法及装置
WO2009082923A1 (fr) Procédé de traitement de défaut de liaison et dispositif de transfert de données
EP3142303A1 (en) Network control method and apparatus
US9215078B2 (en) Multicast method and multicast device
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2021135419A1 (zh) 更新路由信息的方法、装置、计算机设备和存储介质
WO2012174905A1 (zh) 一种实现虚拟集群交换机跨设备数据转发的方法和设备
US9065862B2 (en) Communication device, method for controlling the communication device, and communication system
US10097297B2 (en) Apparatus and method for two-way timestamp exchange
WO2014113957A1 (zh) 一种链路管理方法、设备和通信系统
CN108282406B (zh) 一种数据传输方法、堆叠设备及堆叠系统
CN100571215C (zh) 维持网络通信的方法及网元设备
US8327023B2 (en) Querier election method, router, and network system
WO2022063207A1 (zh) 处理时间同步故障的方法、装置及系统
KR20150034551A (ko) 컨트롤러와 스위치간 부하분산 방법 및 시스템
WO2019027043A1 (ja) 通信ノード、通信用エントリの管理方法及びプログラム
CN117220814A (zh) 时钟设备的同步方法及非易失性存储介质、电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895367

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014895367

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014895367

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE