CN107135121A - The switching method and device of a kind of network node - Google Patents

The switching method and device of a kind of network node Download PDF

Info

Publication number
CN107135121A
CN107135121A CN201710295932.7A CN201710295932A CN107135121A CN 107135121 A CN107135121 A CN 107135121A CN 201710295932 A CN201710295932 A CN 201710295932A CN 107135121 A CN107135121 A CN 107135121A
Authority
CN
China
Prior art keywords
network node
vtep
node
sent
interchanger
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
CN201710295932.7A
Other languages
Chinese (zh)
Other versions
CN107135121B (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710295932.7A priority Critical patent/CN107135121B/en
Publication of CN107135121A publication Critical patent/CN107135121A/en
Application granted granted Critical
Publication of CN107135121B publication Critical patent/CN107135121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the invention provide a kind of switching method of network node and device, SDN controllers are connected with control node, control node connects at least two network nodes, there is the tunnel using the corresponding VTEP IP address foundation of the network node between the interchanger and the interchanger that each calculate node connect of the connection of each network node;The corresponding first VTEP IP address of first network node is sent to control node by first network node;First VTEP IP address is sent to SDN controllers by control node;SDN controllers are according to the first VTEP IP address, and the interchanger connected for each calculate node generates forwarding flow table respectively, and is handed down to corresponding interchanger;Forwarding flow table is used to indicate message is sent into the interchanger that first network node is connected for the tunnel of the first VTEP IP address by purpose IP address.Using the embodiment of the present invention, cutout time during network node switching is reduced.

Description

The switching method and device of a kind of network node
Technical field
The present invention relates to Internet technical field, the switching method and device of more particularly to a kind of network node.
Background technology
Include control node, network node and calculate node in OpenStack networkings, control node to network node and Calculate node is controlled and managed, and the message that virtual machine is sent to outer net is sent to network node, network node by calculate node Message is handled.
At present, in order to improve the reliability of network, 2 network nodes is usually included in OpenStack networkings, are designated as respectively A and B, operational network node A, it is, the message for being sent to outer net is sent to network node A processing by calculate node;Work as network During node A failures, the network node of operation is switched to network node B by control node in OpenStack networkings, it is, meter The message for being sent to outer net is sent to network node B processing by operator node.
Specifically, be previously stored with network node A and B report_interval (keep Alive Packet send cycle time, Such as 30s);Schedular_time is previously stored with control node and (checks the cycle time of network node survival condition, such as 37s) with dead_time (dead time, such as 150s);The network node currently run is network node A;
In this case, network node A sends a keep Alive Packet every 30s to control node;Control node is every 37s Primary network node A survival condition is checked, the last duration for receiving keep Alive Packet of distance is calculated, when calculating obtains distance When last time receives the duration of keep Alive Packet more than 150s, then network node A failures can be determined, control node will be run Network node switch to network node B.
Based on above-mentioned situation, need to consider in network node switching report_interval, schedular_time, The times such as dead_time, this causes the situation that cutout occurs in network node switches, and the cutout time is long.
The content of the invention
The purpose of the embodiment of the present invention is the switching method and device for providing a kind of network node, to reduce network node Cutout time during switching.Concrete technical scheme is as follows:
On the one hand, the embodiment of the invention discloses a kind of switching method of network node, applied to SDN (Software Defined Network, software defined network) controller, the SDN controllers are connected with control node, the control node At least two network nodes are connected, are deposited between the interchanger of each network node connection and the interchanger of each calculate node connection Using the corresponding VTEP of the network node (Virtual eXtensible LAN Tunnel End Point, it is expansible virtual LAN endpoint of a tunnel)-IP (Internet Protocol, procotol) address set up tunnel;Methods described includes:
Receive the first address for carrying the corresponding first VTEP-IP addresses of first network node that the control node is sent Change request;The first VTEP-IP addresses are that the first network node exists it is determined that carrying during the second network node failure The control node is sent in second address change request;
According to the first VTEP-IP addresses, the interchanger connected for each calculate node generates forwarding flow table respectively; Each forwarding flow table is used to indicate to send the message for being sent to outer net for the tunnel of the first VTEP-IP addresses by purpose IP address The interchanger connected to the first network node;
The forwarding flow table that the interchanger connected for each calculate node is generated respectively, is handed down to each forwarding flow respectively The corresponding interchanger of table, so that the interchanger of first network node connection is according to the VTEP-IP addresses itself stored and end The corresponding relation of mouth, the message forwarded according to the forwarding flow table that will be received passes through the first VTEP-IP addresses correspondence Port be sent to the first network node.
Two aspects, the embodiment of the invention discloses a kind of switching method of network node, applied to control node, the control Node processed is connected with SDN controllers, at least two network nodes, the interchanger and each calculate node of each network node connection There is the tunnel set up using the corresponding VTEP-IP addresses of the network node between the interchanger of connection;Methods described includes:
First network node is received it is determined that the carrying first network node pair sent during the second network node failure The the second address change request for the first VTEP-IP addresses answered;
The first VTEP-IP addresses are carried and are sent to the SDN controllers in the first address change request, so that The SDN controllers are according to the first VTEP-IP addresses, and the interchanger connected for each calculate node generates forwarding respectively Flow table, each forwarding flow table is used for the report for indicating that outer net will be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address Text is sent to the interchanger of the first network node connection, and the interchanger connected for each calculate node is generated respectively Flow table is forwarded, each corresponding interchanger of forwarding flow table is handed down to respectively, and then make the exchange of the first network node connection Machine will receive according to the VTEP-IP addresses itself stored and the corresponding relation of port and forward what flow table was forwarded according to described Message is sent to the first network node by the corresponding port in the first VTEP-IP addresses.
Three aspects, it is described applied to SDN controllers the embodiment of the invention discloses a kind of switching device of network node SDN controllers are connected with control node, and the control node connects at least two network nodes, the friendship of each network node connection Change planes between the interchanger connected each calculate node and there is the tunnel set up using the corresponding VTEP-IP addresses of the network node Road;Described device includes:
Receiving unit, for receiving corresponding first VTEP-IP of carrying first network node that the control node is sent The first address change request of address;The first VTEP-IP addresses are the first network node it is determined that the second network section Carried during point failure and be sent to the control node in the second address change request;
Generation unit, for according to the first VTEP-IP addresses, distinguishing for the interchanger that each calculate node is connected Generation forwarding flow table;Each forwarding flow table is used to indicate to be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address The message of outer net is sent to the interchanger of the first network node connection;
Issuance unit, for the forwarding flow table for generating the interchanger connected for each calculate node respectively, respectively under Each corresponding interchanger of forwarding flow table is issued, so that what the interchanger of first network node connection was stored according to itself VTEP-IP addresses and the corresponding relation of port, by the message forwarded according to the forwarding flow table received by described first The corresponding port in VTEP-IP addresses is sent to the first network node.
Four aspects, the embodiment of the invention discloses a kind of switching device of network node, applied to control node, the control Node processed is connected with SDN controllers, at least two network nodes, the interchanger and each calculate node of each network node connection There is the tunnel set up using the corresponding VTEP-IP addresses of the network node between the interchanger of connection;Described device includes:
Receiving unit, for receiving first network node it is determined that the carrying described sent during the second network node failure The second address change request of the corresponding first VTEP-IP addresses of one network node;
Transmitting element, it is described for the first VTEP-IP addresses carrying to be sent in the first address change request SDN controllers, so that the SDN controllers are according to the first VTEP-IP addresses, the exchange connected for each calculate node Machine generates forwarding flow table respectively, and each forwarding flow table is used to indicate the tunnel by the way that purpose IP address is the first VTEP-IP addresses The message for being sent to outer net is sent to the interchanger of the first network node connection, the friendship that will be connected for each calculate node Change planes the forwarding flow table generated respectively, each corresponding interchanger of forwarding flow table is handed down to respectively, and then make the first network The interchanger of node connection is according to the VTEP-IP addresses itself stored and the corresponding relation of port, by described in the basis received The message of forwarding flow table forwarding is sent to the first network node by the corresponding port in the first VTEP-IP addresses.
In the embodiment of the present invention, combined in OpenStack networkings with SDN networkings, wherein, SDN controllers and control node Connection, control node connects at least two network nodes, and the interchanger of each network node connection is connected with each calculate node Interchanger between there is the tunnel set up using the corresponding VTEP-IP addresses of the network node;First network node it is determined that The corresponding first VTEP-IP addresses of first network node are carried in the second address change request during the second network node failure It is sent to control node;The the first address change request for carrying the first VTEP-IP addresses is sent to SDN controls by control node again Device;SDN controllers are according to the first VTEP-IP addresses, and the interchanger connected for each calculate node generates forwarding flow table respectively, Wherein, each forwarding flow table is used for the report for indicating that outer net will be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address Text is sent to the interchanger of first network node connection, the forwarding that the interchanger connected for each calculate node is generated respectively Flow table, is handed down to each corresponding interchanger of forwarding flow table respectively;So, the interchanger of first network node connection is according to itself The VTEP-IP addresses of storage and the corresponding relation of port, by the message forwarded according to forwarding flow table received by first The corresponding port in VTEP-IP addresses is sent to first network node.
It can be seen that, in the embodiment of the present invention, it is not necessary to consider report_interval, schedular_time, dead_time Deng the time, but the VTEP-IP addresses reported by SDN controllers according to network node issue forwarding flow table, realize network node Switching, reduces cutout time during network node switching.Certainly, implementing any product or method of the present invention might not need All the above advantage is reached simultaneously.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic diagram of networking;
Fig. 2 is a kind of schematic diagram of the networking used in the embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of the switching method of network node provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the switching method of another network node provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the switching device of network node provided in an embodiment of the present invention;
Fig. 6 is the structural representation of the switching device of another network node provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
At present, as shown in figure 1, including control node 100, network node 200, network node in OpenStack networkings 201 and calculate node 301.In practical application, multiple calculate nodes can be included in OpenStack networkings, herein only one meter Illustrated exemplified by operator node.
If the network node currently run is network node 200, the message that calculate node 301 is sent to outer net is directed to The process of network node 201 is:
Network node 200 sends a keep Alive Packet every report_interval to control node;Control node 100 The survival condition of primary network node 200 is checked every schedular_time, calculating receives keep Alive Packet apart from the last time Duration, when calculate obtain that distance is last to receive the duration of keep Alive Packet more than dead_time when, control node 100 to Calculate node 301 issues the message for pointing to network node 201, and the message that calculate node 301 is sent to outer net is directed into network Node 201.
In this case, message calculate node 301 sent to outer net switches to finger from being directed to from network node 200 To when needing to consider report_interval, schedular_time, dead_time etc. during network node 201 Between, the cutout time is longer.
In order to reduce cutout time during network node switching, the embodiments of the invention provide a kind of networking, such as Fig. 2 institutes Show, the networking includes:SDN controllers 400, control node 100, network node 200, network node 201, calculate node 301 With interchanger 500,501, that is, OpenStack networkings are combined with SDN networkings, in addition, network node at least two, extremely Few two network nodes can connect same interchanger, can also connect different interchangers, only be connected here with two network nodes Exemplified by connecing same interchanger;Calculate node can also have multiple, only be illustrated here by taking a calculate node as an example;
Wherein, SDN controllers 400 are connected with control node 100, and control node 100 connects at least two network nodes, often Exist between the interchanger and the interchanger that each calculate node is connected of individual network node connection corresponding using the network node The tunnel that VTEP-IP addresses are set up.
Based on the networking shown in Fig. 2, the embodiments of the invention provide a kind of switching method of network node and device.With reference to Fig. 3, Fig. 3 are a kind of a kind of schematic flow sheet of the switching method of network node provided in an embodiment of the present invention, applied to SDN controls Device processed, this method includes:
S301:Receive the first ground for carrying the corresponding first VTEP-IP addresses of first network node that control node is sent Location change request;
Wherein, the first VTEP-IP addresses are first network node it is determined that carrying second during the second network node failure Control node is sent in address change request.Here, the second network node failure is that the second network node can not be normal Work, such as the second network node is restarted, the second network node is stuck.
It should be noted that before the second network node failure, the interchanger of each calculate node connection passes through purpose The message for being sent to outer net is sent to the second network by IP address for the tunnel of the corresponding 2nd VTEP-IP addresses of the second network node The interchanger of node connection, and then the interchanger that the second network node is connected is according to the VTEP-IP addresses itself stored and port Corresponding relation, the message received is sent to the second network node by the corresponding port in the 2nd VTEP-IP addresses, also It is that before the second network node failure, the message that each calculate node is sent to outer net is directed to the second network node.
In one embodiment of the invention, can be with order to guarantee to be realized the switching of network node by SDN controllers It is a network node by the second network node and first network node equivalent, it is, the second network node and first network The device identification of node is set to same.For example, the mark of the second network node and first network node is both configured to network1.In addition, going out to carry outside the first VTEP-IP addresses in the second address change request, it can be identified with Portable device.
So, when control node, which receives first network node, reports the second address change to ask, however, it is determined that the second ground The device identification carried in the change request of location is identical with the device identification of the second network node, it is possible to think only to be merely network The corresponding VTEP-IP addresses of node are changed, it is only necessary to which the purpose IP address for changing forwarding flow table just can be with;Now, The first address change that control node sent, carried the first VTEP-IP addresses to SDN controllers is asked.Here, turning after change Hair flow table is used to indicate to be sent to the message for being sent to outer net and for the tunnel of the first VTEP-IP addresses by purpose IP address The interchanger of one network node connection.
S302:According to the first VTEP-IP addresses, the interchanger connected for each calculate node generates forwarding flow respectively Table;
Wherein, each forwarding flow table of generation is used to indicate the tunnel by the way that purpose IP address is the first VTEP-IP addresses The message for being sent to outer net is sent to the interchanger being connected with first network node.
S303:The forwarding flow table that the interchanger connected for each calculate node is generated respectively, is handed down to each respectively Forward the corresponding interchanger of flow table.
In this case, first network node connection interchanger just can according to itself store VTEP-IP addresses with The corresponding relation of port, the corresponding port in the first VTEP-IP addresses is passed through by the message forwarded according to forwarding flow table received First network node is sent to, and then realizes the switching of network node, that is, realizes what each calculate node was sent to outer net Message is directed to first network node from being directed to the second network section and switch to.
In one embodiment of the invention, in order to ensure the network of determination second that first network node can be promptly and accurately Node whether failure, can be by pacemaker (cluster resource manager) and corosync (cluster management engine) technology Cluster is built, wherein, main equipment and standby equipment can be used as a network node respectively.Now, main equipment and standby equipment is (also Network node) can in real time be monitored by pacemaker and corosync other side whether failure.
In this case, if current second network node is main equipment, first network node is standby equipment, then calculate node The message for being sent to outer net is directed to the second network node, meanwhile, first network node is real by pacemaker and corosync When monitor the second network node whether failure;
When first network node monitors the second network node failure by pacemaker and corosync, the first net Itself is defined as main equipment by network node, reports VTEP-IP to change event to control node, and the VTEP-IP changes event and is Second address change is asked, and VTEP-IP change events include the corresponding first VTEP-IP addresses of first network node;
Control node sends to SDN controllers according to the first VTEP-IP addresses and carries the first of the first VTEP-IP addresses Address change is asked.
Using above-described embodiment, it is not necessary to when considering report_interval, schedular_time, dead_time etc. Between, but the VTEP-IP addresses reported by SDN controllers according to network node issue forwarding flow table, realize that network node switches, Reduce cutout time during network node switching.
With reference to Fig. 4, Fig. 4 is the schematic flow sheet of the switching method of another network node provided in an embodiment of the present invention, Applied to control node, methods described includes:
S401:First network node is received it is determined that the carrying first network node pair sent during the second network node failure The the second address change request for the first VTEP-IP addresses answered;
In one embodiment of the invention, stored in the presetting database (such as Mysql databases) of control node The configuration file of network node;Before the second address change request sent on first network node is received, due to first network The device identification of node and the second network node is set for same device identification, and some pins can be had more in the presetting database To first network node and the redundant configuration file of the second network node;In order to save memory space, it is ensured that network node switches Success, can delete these redundant configuration files.
S402:First VTEP-IP addresses are carried and are sent to SDN controllers in the first address change request.
In this case, SDN controllers are according to the first VTEP-IP addresses, the interchanger connected for each calculate node Forwarding flow table is generated respectively, and each forwarding flow table is used for instruction will for the tunnel of the first VTEP-IP addresses by purpose IP address The message for being sent to outer net is sent to the interchanger being connected with first network node, the interchanger that will be connected for each calculate node The forwarding flow table generated respectively, is handed down to each corresponding interchanger of forwarding flow table respectively;
And then the interchanger of first network node connection is closed according to the VTEP-IP addresses itself stored are corresponding with port System, the first net is sent to by the message forwarded according to forwarding flow table received by the corresponding port in the first VTEP-IP addresses Network node.
In one embodiment of the invention, first network node and the second network node have identical device identification; Portable device mark is gone back in second address change request;
In this case, control node can first determine device identification and the second net carried in the second address change request Whether the device identification of network node is identical, it is determined that the device identification carried in the second address change request and the second network node Device identification it is identical when, by the first VTEP-IP addresses carry the first address change request in be sent to SDN controllers.
In one embodiment of the invention, in order to ensure the network of determination second that first network node can be promptly and accurately Node whether failure, the second network node and first network node are the cluster built by pacemake and corosync, the Two network nodes and first network node can in real time be monitored by pacemaker+corosync other side whether failure;When When first network node determines the second network node failure by pacemake and corosync, the second ground is sent to control node Location change request;It is, the second address change request is passing through pacemake and corosync determinations for first network node Control node is sent to during the second network node failure.
It should be noted that each embodiment is described by the way of related, it is identical similar between each embodiment Part mutually referring to.
Using above-described embodiment, it is not necessary to when considering report_interval, schedular_time, dead_time etc. Between, but the VTEP-IP addresses reported by SDN controllers according to network node issue forwarding flow table, realize that network node switches, Reduce cutout time during network node switching.
Networking with reference to shown in Fig. 2, describes the switching method of network node provided in an embodiment of the present invention in detail, wherein, The cluster that network node 200 and network node 201 are built by pacemaker and corosync.The correspondence of network node 200 VTEP-IP addresses be IP 1, the corresponding VTEP-IP addresses of network node 201 be IP2, network node 200 and network node 201 device identification is identical, is network1;At least two tunnels are set up between interchanger 500 and interchanger 501, are remembered respectively For tunnel 1 and tunnel 2, tunnel 1 is IP 1 in the VTEP-IP addresses of the side of interchanger 500, and tunnel 2 is in the side of interchanger 500 VTEP-IP addresses are IP 2.
Assuming that:When initial, network node 200 is the main equipment of the cluster, and network node 201 is the standby equipment of the cluster; Device identification network1 and the corresponding VTEP-IP of network node 200 as main equipment are previously stored with control node 100 The corresponding relation of address (i.e. IP 1), the corresponding relation can manually be pre-configured with or main equipment on give;Exchange IP 1 and port A (port being connected on interchanger 500 with network node 200) corresponding relation are previously stored with machine 500, IP 2 and port B (port being connected on interchanger 500 with network node 201) corresponding relation.
IP 1 is informed SDN controllers 400 by control node 100, and SDN controllers 400 are according to the IP 1 generations for exchanging The flow table 1 of machine 501, and flow table 1 is handed down to interchanger 501, the flow table 1 is used to indicate calculate node 301 being sent to outer net Message is sent to interchanger 500 by tunnel 1.So, interchanger 501 is receiving the report that calculate node 301 is sent to outer net Wen Hou, according to flow table 1, the corresponding encapsulation in tunnel 1 is carried out to message, channel message is obtained, the purpose IP address of the channel message As IP 1.
Interchanger 500 is received after the channel message that interchanger 501 is sent by tunnel 1, according to advance in interchanger 500 Be stored with IP 1 and port A corresponding relation, it is known that the purpose IP address of channel message corresponds to port A, then to tunnel report Text decapsulation, network node 200 is sent to by the message obtained after decapsulation by port A.
In addition, monitoring other side in real time by pacemaker and corosync between network node 200 and network node 201 is No failure;
When network node 201 monitors 200 failure of network node, itself is defined as main equipment, to control node 100 Send VTEP-IP and change event (i.e. the second address change request);Network node 201 is carried in the VTEP-IP change events Corresponding VTEP-IP addresses (i.e. IP 2) and device identification network1;
Control node 100 receives VTEP-IP and changes event, due to network node 201 and the equipment mark of network node 200 It is sensible same, i.e. network1, then it is that main equipment (network node 200) carries out VTEP-IP address changes that control node 100, which will be considered that, More, therefore control node 100 is corresponding with the network node 200 as main equipment using the device identification network1 stored IP address in the corresponding relation of VTEP-IP addresses (i.e. IP 1) is revised as IP 2, and the IP 2 is sent into SDN controllers 400;
SDN controllers 400 generate the flow table 2 for interchanger 501 according to the IP 2, and flow table 2 is handed down into interchanger 501, flow table 2 is used to indicate that the message that calculate node 301 is sent into outer net is sent to interchanger 500 by tunnel 2.So, hand over 501 are changed planes after the message that calculate node 301 is sent to outer net is received, according to flow table 2, tunnel 2 is carried out to message corresponding Encapsulation, obtains channel message, the purpose IP address of the channel message is IP 2.Wherein, the structure that flow table 2 can be with flow table 1 Identical, difference is that (the tunnel purpose IP address of flow table 1 is IP 1, the tunnel purpose IP of flow table 2 to tunnel purpose IP address difference Address be IP 2) and flow table 2 priority be higher than flow table 1 priority;Or flow table 2 is used to indicate the tunnel in flow table 1 Road purpose IP address is revised as IP 2.
Interchanger 500 is received after the channel message that interchanger 501 is sent by tunnel 2, according to advance in interchanger 500 Be stored with IP 2 and port B corresponding relation, it is known that the purpose IP address of channel message corresponds to port B, then to tunnel report Text decapsulation, network node 201 is sent to by the message obtained after decapsulation by port B.
With reference to Fig. 5, Fig. 5 is a kind of structural representation of the switching device of network node provided in an embodiment of the present invention, should For SDN controllers, SDN controllers are connected with control node, and control node connects at least two network nodes, each network section Exist with using the corresponding VTEP-IP of the network node between the interchanger and the interchanger that each calculate node connect of point connection The tunnel that location is set up;The device includes:
Receiving unit 501, for receiving corresponding first VTEP-IP of carrying first network node that control node is sent The first address change request of location;First VTEP-IP addresses are first network node it is determined that taking during the second network node failure Band is sent to control node in the second address change request;
Generation unit 502, for according to the first VTEP-IP addresses, distinguishing for the interchanger that each calculate node is connected Generation forwarding flow table;Each forwarding flow table is used to indicate to be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address The message of outer net is sent to the interchanger being connected with first network node;
Issuance unit 503, for the forwarding flow table for generating the interchanger connected for each calculate node respectively, difference Each corresponding interchanger of forwarding flow table is handed down to, so that what the interchanger of first network node connection was stored according to itself VTEP-IP addresses and the corresponding relation of port, the message forwarded according to forwarding flow table that will receive is by the first VTEP-IP The corresponding port in location is sent to first network node.
In one embodiment of the invention, first network node and the second network node have identical device identification; Portable device mark is gone back in second address change request;
In this case, receiving unit 501, specifically can be used for:
Control node is received it is determined that the device identification that carries and the second network node are set in the second address change request For the first address change request sent when identifying identical, the corresponding first VTEP-IP addresses of carrying first network node.
In one embodiment of the invention, the second network node and first network node be by pacemake and The cluster that corosync is built;
Second address change request is determining the second network section for first network node by pacemake and corosync Control node is sent to during point failure.
Using above-described embodiment, it is not necessary to when considering report_interval, schedular_time, dead_time etc. Between, but the VTEP-IP addresses reported by SDN controllers according to network node issue forwarding flow table, realize that network node switches, Reduce cutout time during network node switching.
With reference to Fig. 6, Fig. 6 is the structural representation of the switching device of another network node provided in an embodiment of the present invention, Applied to control node, control node is connected with SDN controllers, at least two network nodes, the friendship of each network node connection Change planes between the interchanger connected each calculate node and there is the tunnel set up using the corresponding VTEP-IP addresses of the network node Road;The device includes:
Receiving unit 601, for receiving first network node it is determined that the carrying sent during the second network node failure The second address change request of the corresponding first VTEP-IP addresses of one network node;
Transmitting element 602, SDN controls are sent to for the first VTEP-IP addresses to be carried in the first address change request Device processed, so that SDN controllers are according to the first VTEP-IP addresses, the interchanger connected for each calculate node is generated respectively to be turned Flow table is sent out, each forwarding flow table is used to indicate that outer net will to be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address Message is sent to the interchanger being connected with first network node, and the interchanger connected for each calculate node is generated respectively Flow table is forwarded, each corresponding interchanger of forwarding flow table, and then the interchanger root for connecting first network node are handed down to respectively The VTEP-IP addresses stored according to itself and the corresponding relation of port, the message forwarded according to forwarding flow table received is passed through The corresponding port in first VTEP-IP addresses is sent to first network node.
In one embodiment of the invention, first network node and the second network node have identical device identification; Portable device mark is gone back in second address change request;
In this case, transmitting element 602, specifically can be used for:
When it is determined that the device identification carried in the second address change request is identical with the device identification of the second network node, First VTEP-IP addresses are carried and are sent to SDN controllers in the first address change request.
In one embodiment of the invention, above-mentioned switching device can also include:
Unit (not shown in Fig. 6) is deleted, for receiving the carrying first network node pair that first network node is sent Before in the second address change request for the first VTEP-IP addresses answered, delete and first network node is directed in presetting database With the redundant configuration file of the second network node;Presetting database is used for the configuration file for storing network node.
In one embodiment of the invention, the second network node and first network node be by pacemake and The cluster that corosync is built;
In this case, the second address change request is passing through pacemake and corosync determinations for first network node Control node is sent to during the second network node failure.
Using above-described embodiment, it is not necessary to when considering report_interval, schedular_time, dead_time etc. Between, but the VTEP-IP addresses reported by SDN controllers according to network node issue forwarding flow table, realize that network node switches, Reduce cutout time during network node switching.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (14)

1. a kind of switching method of network node, it is characterised in that applied to software defined network SDN controllers, the SDN controls Device processed is connected with control node, and the control node connects at least two network nodes, the interchanger of each network node connection Exist between the interchanger connected each calculate node using the corresponding expansible VLAN tunnel end of the network node The tunnel that point VTEP- network protocol IP address is set up;Methods described includes:
Receive the first address change for carrying the corresponding first VTEP-IP addresses of first network node that the control node is sent Request;The first VTEP-IP addresses are the first network node it is determined that carrying second during the second network node failure The control node is sent in address change request;
According to the first VTEP-IP addresses, the interchanger connected for each calculate node generates forwarding flow table respectively;Each Forwarding flow table is used to indicate that the message for being sent to outer net is sent into institute for the tunnel of the first VTEP-IP addresses by purpose IP address State the interchanger of first network node connection;
The forwarding flow table that the interchanger connected for each calculate node is generated respectively, is handed down to each forwarding flow table pair respectively The interchanger answered, so that the interchanger of first network node connection is according to the VTEP-IP addresses and port itself stored Corresponding relation, the corresponding end in the first VTEP-IP addresses is passed through by the message forwarded according to the forwarding flow table received Mouth is sent to the first network node.
2. according to the method described in claim 1, it is characterised in that the first network node and second network node tool There is identical device identification;Portable device mark is gone back in the second address change request;
It is described to receive the first address for carrying the corresponding first VTEP-IP addresses of first network node that the control node is sent The step of change request, including:
The control node is received it is determined that the device identification carried in second address change request and second network The first address being sent when the device identification of node is identical, carrying the corresponding first VTEP-IP addresses of first network node becomes More ask.
3. method according to claim 1 or 2, it is characterised in that second network node and the first network section Point is the cluster built by cluster resource manager pacemake and cluster management engine corosync;
Second address change request is determining described for the first network node by pacemake and corosync The control node is sent to during two network node failures.
4. a kind of switching method of network node, it is characterised in that applied to control node, the control node and software definition Network SDN controllers, the connection of at least two network nodes, the interchanger of each network node connection are connected with each calculate node Interchanger between with existing using the corresponding expansible VLAN endpoint of a tunnel VTEP- procotols IP of the network node The tunnel that location is set up;Methods described includes:
First network node is received it is determined that the carrying first network node sent during the second network node failure is corresponding The second address change request of first VTEP-IP addresses;
The first VTEP-IP addresses are carried and are sent to the SDN controllers in the first address change request, so that described SDN controllers are according to the first VTEP-IP addresses, and the interchanger connected for each calculate node generates forwarding flow respectively Table, each forwarding flow table is used for the message for indicating that outer net will be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address The interchanger of the first network node connection is sent to, by turning that the interchanger connected for each calculate node is generated respectively Flow table is sent out, each corresponding interchanger of forwarding flow table is handed down to respectively, and then make the interchanger of the first network node connection The VTEP-IP addresses stored according to itself and the corresponding relation of port, by the report forwarded according to the forwarding flow table received Text is sent to the first network node by the corresponding port in the first VTEP-IP addresses.
5. method according to claim 4, it is characterised in that the first network node and second network node tool There is identical device identification;Portable device mark is gone back in the second address change request;
It is described that the first VTEP-IP addresses are carried to the step that the SDN controllers are sent in the first address change request Suddenly, including:
It is determined that the device identification carried in second address change request and the device identification phase of second network node Meanwhile, the first VTEP-IP addresses are carried and are sent to the SDN controllers in the first address change request.
6. method according to claim 4, it is characterised in that receiving the carrying described first that first network node is sent Before in the second address change request of the corresponding first VTEP-IP addresses of network node, methods described also includes:
Delete the redundant configuration file for the first network node and second network node in presetting database;It is described Presetting database is used for the configuration file for storing network node.
7. the method according to claim any one of 4-6, it is characterised in that second network node and first net Network node is the cluster built by cluster resource manager pacemake and cluster management engine corosync;
Second address change request is determining described for the first network node by pacemake and corosync The control node is sent to during two network node failures.
8. a kind of switching device of network node, it is characterised in that applied to software defined network SDN controllers, the SDN controls Device processed is connected with control node, and the control node connects at least two network nodes, the interchanger of each network node connection Exist between the interchanger connected each calculate node using the corresponding expansible VLAN tunnel end of the network node The tunnel that point VTEP- network protocol IP address is set up;Described device includes:
Receiving unit, for receiving the corresponding first VTEP-IP addresses of carrying first network node that the control node is sent The first address change request;The first VTEP-IP addresses are the first network node it is determined that the event of the second network node Carried during barrier and be sent to the control node in the second address change request;
Generation unit, for according to the first VTEP-IP addresses, the interchanger connected for each calculate node to be generated respectively Forward flow table;Each forwarding flow table is used to indicate that outer net will to be sent to for the tunnel of the first VTEP-IP addresses by purpose IP address Message be sent to the interchanger of first network node connection;
Issuance unit, for the forwarding flow table for generating the interchanger connected for each calculate node respectively, is handed down to respectively Each corresponding interchanger of forwarding flow table, so that the VTEP- that the interchanger of first network node connection is stored according to itself IP address and the corresponding relation of port, the first VTEP- is passed through by the message forwarded according to the forwarding flow table received The corresponding port of IP address is sent to the first network node.
9. device according to claim 8, it is characterised in that the first network node and second network node tool There is identical device identification;Portable device mark is gone back in the second address change request;
The receiving unit, specifically for:
The control node is received it is determined that the device identification carried in second address change request and second network The first address being sent when the device identification of node is identical, carrying the corresponding first VTEP-IP addresses of first network node becomes More ask.
10. device according to claim 8 or claim 9, it is characterised in that second network node and the first network section Point is the cluster built by cluster resource manager pacemake and cluster management engine corosync;
Second address change request is determining described for the first network node by pacemake and corosync The control node is sent to during two network node failures.
11. a kind of switching device of network node, it is characterised in that applied to control node, the control node is determined with software Adopted network SDN controllers, the connection of at least two network nodes, the interchanger of each network node connection connect with each calculate node Exist between the interchanger connect and use the corresponding expansible VLAN endpoint of a tunnel VTEP- procotols IP of the network node The tunnel that address is set up;Described device includes:
Receiving unit, for receiving first network node it is determined that carrying first net sent during the second network node failure The second address change request of the corresponding first VTEP-IP addresses of network node;
Transmitting element, the SDN controls are sent to for the first VTEP-IP addresses to be carried in the first address change request Device processed, so that the SDN controllers are according to the first VTEP-IP addresses, the interchanger point connected for each calculate node Flow table Sheng Cheng not be forwarded, each forwarding flow table is used to indicate to send out for the tunnel of the first VTEP-IP addresses by purpose IP address Message toward outer net is sent to the interchanger of the first network node connection, the interchanger that will be connected for each calculate node The forwarding flow table generated respectively, is handed down to each corresponding interchanger of forwarding flow table, and then make the first network node respectively The interchanger of connection will be received according to the forwarding according to the VTEP-IP addresses itself stored and the corresponding relation of port The message of flow table forwarding is sent to the first network node by the corresponding port in the first VTEP-IP addresses.
12. device according to claim 11, it is characterised in that the first network node and second network node With identical device identification;Portable device mark is gone back in the second address change request;
The transmitting element, specifically for:
It is determined that the device identification carried in second address change request and the device identification phase of second network node Meanwhile, the first VTEP-IP addresses are carried and are sent to the SDN controllers in the first address change request.
13. device according to claim 11, it is characterised in that described device also includes:
Unit is deleted, for receiving corresponding first VTEP- of the carrying first network node that first network node is sent Before in the second address change request of IP address, delete and the first network node and described second are directed in presetting database The redundant configuration file of network node;The presetting database is used for the configuration file for storing network node.
14. the device according to claim any one of 11-13, it is characterised in that second network node and described the One network node is the cluster built by cluster resource manager pacemake and cluster management engine corosync;
Second address change request is determining described for the first network node by pacemake and corosync The control node is sent to during two network node failures.
CN201710295932.7A 2017-04-28 2017-04-28 Switching method and device of network nodes Active CN107135121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710295932.7A CN107135121B (en) 2017-04-28 2017-04-28 Switching method and device of network nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710295932.7A CN107135121B (en) 2017-04-28 2017-04-28 Switching method and device of network nodes

Publications (2)

Publication Number Publication Date
CN107135121A true CN107135121A (en) 2017-09-05
CN107135121B CN107135121B (en) 2020-02-11

Family

ID=59716751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710295932.7A Active CN107135121B (en) 2017-04-28 2017-04-28 Switching method and device of network nodes

Country Status (1)

Country Link
CN (1) CN107135121B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995641A (en) * 2019-03-21 2019-07-09 新华三技术有限公司 A kind of information processing method, calculate node and storage medium
CN111788777A (en) * 2018-03-05 2020-10-16 施瓦哲工程实验有限公司 Time-based network operation profile in software defined networks
CN112583708A (en) * 2020-12-25 2021-03-30 新华三技术有限公司 Connection relation control method and device and electronic equipment
CN113259162A (en) * 2021-05-08 2021-08-13 中国工商银行股份有限公司 Network fault determination method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN
US20150215156A1 (en) * 2014-01-24 2015-07-30 Electronics And Telecommunications Research Institute Method and apparatus for network failure restoration
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN105847157A (en) * 2016-03-21 2016-08-10 中国人民解放军国防科学技术大学 End-to-end communication method between identification networks based on SDN

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150215156A1 (en) * 2014-01-24 2015-07-30 Electronics And Telecommunications Research Institute Method and apparatus for network failure restoration
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN
CN105847157A (en) * 2016-03-21 2016-08-10 中国人民解放军国防科学技术大学 End-to-end communication method between identification networks based on SDN

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111788777A (en) * 2018-03-05 2020-10-16 施瓦哲工程实验有限公司 Time-based network operation profile in software defined networks
CN109995641A (en) * 2019-03-21 2019-07-09 新华三技术有限公司 A kind of information processing method, calculate node and storage medium
CN109995641B (en) * 2019-03-21 2021-05-28 新华三技术有限公司 Information processing method, computing node and storage medium
CN112583708A (en) * 2020-12-25 2021-03-30 新华三技术有限公司 Connection relation control method and device and electronic equipment
CN112583708B (en) * 2020-12-25 2022-08-30 新华三技术有限公司 Connection relation control method and device and electronic equipment
CN113259162A (en) * 2021-05-08 2021-08-13 中国工商银行股份有限公司 Network fault determination method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107135121B (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN107135121A (en) The switching method and device of a kind of network node
CN100583818C (en) Method for switching network connecting device in network system and network system
US8542681B2 (en) Method and system for simplified network wide traffic and/or flow monitoring in a data network
CN104506408B (en) The method and device of data transfer based on SDN
CN106302199B (en) user mode protocol stack implementation method and system based on three-layer switch equipment
CN105897465B (en) Equipment configuration method and device
CN107306215B (en) Data processing method, system and node
CN104639435B (en) Forwarding data flow method and device in SDN
CN102904818A (en) Method and device for updating ARP (Address Resolution Protocol) information table
CN103441932B (en) A kind of Host routes list item generates method and apparatus
CN104539457A (en) Device unified control method, device and system based on software definition technology
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
CN106712988A (en) Virtual network management method and device
CN104852869B (en) A kind of port convergence method and device
CN100461706C (en) Method for recovering sponsor media accessing control address and operation businesss edge apparatus
CN106911534A (en) A kind of live migration of virtual machine method and its system
CN106375105A (en) Method of determining path fault, controller, switches and system
CN109889411A (en) A kind of method and device of data transmission
CN107094091A (en) A kind of intelligent substation station level network configuration method of calibration and system
JP4964666B2 (en) Computer, program and method for switching redundant communication paths
CN103441940A (en) Method and device for switching network device from stand-by state to main state and network device
US20140301226A1 (en) Apparatus and method for network monitoring and packet inspection
CN107819708A (en) Data processing method, system and equipment based on virtual machine (vm) migration
CN102143011A (en) Device and method for realizing network protection
KR100889753B1 (en) Method of protection switching for link aggregation group and Apparatus thereof

Legal Events

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