CN104135440B - Method and apparatus for inhibiting host migration - Google Patents

Method and apparatus for inhibiting host migration Download PDF

Info

Publication number
CN104135440B
CN104135440B CN201410391178.3A CN201410391178A CN104135440B CN 104135440 B CN104135440 B CN 104135440B CN 201410391178 A CN201410391178 A CN 201410391178A CN 104135440 B CN104135440 B CN 104135440B
Authority
CN
China
Prior art keywords
port
vrrp
groups
multicast
vrrp groups
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410391178.3A
Other languages
Chinese (zh)
Other versions
CN104135440A (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 CN201410391178.3A priority Critical patent/CN104135440B/en
Publication of CN104135440A publication Critical patent/CN104135440A/en
Application granted granted Critical
Publication of CN104135440B publication Critical patent/CN104135440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and apparatus for inhibiting host migration.Based on the present invention, OpenFlow controllers identify the VRRP groups belonging to the multicast VRRP messages that each port of edge switching equipment receives, it is thus possible to detect the VRRP groups accessed in each port;Also, OpenFlow controllers are that each VRRP groups are only issued using a selected port in all of the port of its access as the flow table of exit port, it is thus possible to which the VRRP group binding one of which by access in multiple ports selectes port.To, by by VRRP group bindings a selected port, the present invention can avoid due to multicast VRRP messages respectively from different port report to OpenFlow controllers caused by host migration.Moreover, for all of the port of each VRRP groups access, a selected port can be recorded as main port by OpenFlow controllers, remaining port then can be recorded as standby port by OpenFlow controllers.To which when binding has the main port exception of VRRP groups, OpenFlow controllers can utilize the standby port of its record to realize active-standby switch.

Description

Method and apparatus for inhibiting host migration
Technical field
The present invention relates to the OpenFlow in SDN (Software Defined Network, software defined network) framework (open flows) technology, more particularly to one kind of the OpenFlow controllers suitable for SDN frameworks is for inhibiting host migration side Method and device.
Background technology
SDN frameworks are detached the control plane of the network equipment with data surface using OpenFlow technologies, to realize network flow The flexible control of amount.Correspondingly, SDN frameworks include OpenFlow controllers and OpenFlow switching equipment, wherein: It is communicated by the channels OpenFlow between OpenFlow controllers and OpenFlow switching equipment, OpenFlow controller roots Flow table issuance is generated to OpenFlow switching equipment, OpenFlow switching equipment according to the configuration of user or the agreement of dynamic operation The flow table issued according to OpenFlow controllers carries out Message processing.
In practical networking, the OpenFlow switching equipment in SDN network edge can be described as edge switching equipment, SDN These edge switching equipments in network are for gateway device with VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) group form access.However, when a VRRP group is accessed in SDN network simultaneously Multiple ports (end of the different port of the same edge of table switching equipment or different edge switching equipments of edge switching equipment Mouthful) when, the multicast VRRP messages which sends can report to OpenFlow controllers from different port respectively, so as to cause OpenFlow controllers are mistakenly considered the flow table for host migration having occurred between different port and thus frequent updating issues, into And cause that OpenFlow controllers are busy, flow that can not be in normal response SDN network, it is unavailable to even result in SDN network.
Invention content
In view of this, the present invention provides a kind of method and apparatus for inhibiting host migration.
A kind of method for inhibiting host migration provided by the invention, this method are included in SDN frameworks The following steps that OpenFlow controllers execute:
Step a, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Step b, the VRRP groups belonging to the multicast VRRP messages that identification reports;
Step c, a port is selected from all of the port of multicast VRRP messages for receiving the same VRRP groups;
Step d, it is issued using selected port as the flow table of exit port for VRRP groups.
Optionally, step c from all of the port of multicast VRRP messages for receiving the same VRRP groups select one Port is registered as corresponding to the main port of the VRRP groups, remaining standby port for being recorded as corresponding to the VRRP groups;Also, step D is in the flow table that VRRP groups issue using its corresponding main port as exit port;And this method further comprises:
Step e, when the corresponding main port exception of VRRP groups, by all standby ports of the correspondence of the record VRRP groups In a main port for being promoted as corresponding to the VRRP groups;
Step f, delete be VRRP groups issue using former main port as the flow table of exit port and be that VRRP groups are issued with new The main port of promotion is the flow table of exit port.
Optionally, in all of the port of multicast VRRP messages for receiving the same VRRP groups:
Being initially received a ports of the multicast VRRP messages of the VRRP groups, to be registered as the VRRP groups corresponding primary Port;
Alternatively, a port for not being registered as the main port of other VRRP groups is preferentially registered as VRRP groups correspondence Main port.
Optionally, the target MAC (Media Access Control) address in the flow table that step a is issued is multicast mac address, exit port is that edge exchange is set The port of standby connection OpenFlow controllers.
Optionally, step b utilizes the VRRP groups belonging to the VRID identification multicast VRRP messages in multicast VRRP messages.
A kind of device for inhibiting host migration provided by the invention, the device are included in SDN frameworks The following module of OpenFlow controllers operation:
Configuration module is reported, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Message identification module identifies the VRRP groups belonging to the multicast VRRP messages reported;
Port chosen module selectes an end from all of the port of multicast VRRP messages for receiving the same VRRP groups Mouthful;
Configuration module is forwarded, is that VRRP groups are issued using selected port as the flow table of exit port.
Optionally, port chosen module is selected from all of the port of multicast VRRP messages for receiving the same VRRP groups A port be registered as corresponding to the main port of the VRRP groups, remaining standby port for being recorded as corresponding to the VRRP groups;And And forwarding configuration module is in the flow table that VRRP groups issue using its corresponding main port as exit port;And the device is into one Step includes:
Port handover module, when the corresponding main port exception of VRRP groups, by owning for the correspondence of the record VRRP groups One in the standby port main port for being promoted as corresponding to the VRRP groups;
Forward update module, delete for VRRP groups issue using former main port as the flow table of exit port and be VRRP groups The main port newly to promote is issued as the flow table of exit port.
Optionally, in all of the port of multicast VRRP messages for receiving the same VRRP groups:
Being initially received a ports of the multicast VRRP messages of the VRRP groups, to be registered as the VRRP groups corresponding primary Port;
Alternatively, a port for not being registered as the main port of other VRRP groups is preferentially registered as VRRP groups correspondence Main port.
Optionally, report that the target MAC (Media Access Control) address in the flow table that configuration module issues is multicast mac address, exit port is side Edge switching equipment connects the port of OpenFlow controllers.
Optionally, message identification module utilizes the VRRP belonging to the VRID identification multicast VRRP messages in multicast VRRP messages Group.
It can be seen that based on the present invention, OpenFlow controllers identify the multicast that each port of edge switching equipment receives VRRP groups belonging to VRRP messages, it is thus possible to detect the VRRP groups accessed in each port;Also, OpenFlow controllers are Each VRRP groups are only issued using a selected port in all of the port of its access as the flow table of exit port, it is thus possible to will be connect Enter the VRRP group binding one of which in multiple ports and selectes port.To by the way that VRRP group bindings are selected at one Port, the present invention can be avoided since multicast VRRP messages are respectively from caused by different port reports to OpenFlow controllers Host migration, to enable the flow in OpenFlow controller normal response SDN network and thus improve OpenFlow controls The reliability of device processed.
Moreover, for all of the port of each VRRP groups access, one of them selected port can be controlled by OpenFlow Device processed is recorded as main port, remaining port then can be recorded as standby port by OpenFlow controllers.To when binding has When the main port exception of VRRP groups, OpenFlow controllers can utilize the standby port of its record to realize active-standby switch.
Description of the drawings
Fig. 1 is the exemplary flow schematic diagram of the method for inhibiting host migration in the embodiment of the present invention;
Fig. 2 is a kind of Optimizing Flow schematic diagram of exemplary flow as shown in Figure 1;
Fig. 3 a and Fig. 3 b are the schematic diagram of the preferred implementation of Optimizing Flow as shown in Figure 2;
Fig. 4 is the example arrangement schematic diagram of the device for inhibiting host migration in the embodiment of the present invention;
Fig. 5 is a kind of optimization structural schematic diagram of example arrangement as shown in Figure 4;
Fig. 6 a and Fig. 6 b are the schematic diagram of the preferred implementation of optimization structure as shown in Figure 5;
Fig. 7 is the schematic diagram of the application example in the embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, develop simultaneously embodiment referring to the drawings, right The present invention is further described.
In the present embodiment, identify that the multicast VRRP that each port of edge switching equipment receives is reported by OpenFlow controllers VRRP groups belonging to text, and the VRRP groups that each port for thus detecting edge switching equipment is accessed;Also, for identifying Access there is all of the port of the same VRRP groups, OpenFlow controllers therefrom to select a port and change VRRP groups only under Hair selectes flow table of the port as exit port using this, is achieved that the VRRP groups one wherein in multiple ports by access as a result, The binding of selected port.To, by by VRRP group bindings a selected port, you can avoid due to multicast VRRP messages point Not from different port report to OpenFlow controllers caused by host migration.In turn, enable OpenFlow controllers just The often flow in response SDN network and the thus reliability of raising OpenFlow controllers.
Based on above-mentioned principle, a kind of method for inhibiting host migration is present embodiments provided, this method can be answered Used in OpenFlow controllers.Also, Fig. 1 is referred to, this method is included in the following steps of OpenFlow controllers execution:
Step 101, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Step 102, the VRRP groups belonging to the multicast VRRP messages reported are identified;
Step 103, a port is selected from all of the port of multicast VRRP messages for receiving the same VRRP groups;
Step 104, it is that VRRP groups are issued using selected port as the flow table of exit port.
So far, above-mentioned flow terminates.
In practical applications, OpenFlow controllers can determine that the edge in SDN network is handed over by Network topology The flow table for making edge switching equipment report multicast VRRP messages can be correctly issued to edge by exchange device, therefore, step 101 Switching equipment, wherein in the flow table for making edge switching equipment report multicast VRRP messages, purpose MAC (Media Access Control, media access control) address is multicast mac address, such as 01-00-5e-00-00-12, and exit port is then edge Switching equipment connects the port of OpenFlow controllers.
Moreover, all can include the VRRP groups for sending the VRRP messages in source MAC in all VRRP messages VRID (Virtual Route Identify, virtual router mark), such as 00-00-5e-00-01-VRID, therefore, for The each multicast VRRP messages reported, step 102 can identify multicast VRRP reports by the VRID in multicast VRRP messages VRRP groups belonging to text.
In addition, only a port is used in receiving all of the port of the multicast VRRP messages of the same VRRP groups, That is, by the exit port in step 103 is selected and is issued as step 104 flow table, but remaining unselected port can be made To select the backup of port, in order to the active-standby switch of the port binding of realization VRRP groups in selected port exception.
Specifically, step 103 from all of the port of multicast VRRP messages for receiving the same VRRP groups select one A port can be registered as corresponding to that the main port of the VRRP groups, remaining can then be registered as corresponding to the spare of the VRRP groups Port;Correspondingly, it is the primary end recorded that step 104, which is the selected port in the flow table that VRRP groups issue as exit port, Mouthful.
Based on above-mentioned active-standby switch mechanism, for inhibiting the method for host migration can be optimised in the present embodiment, ask Referring to Fig. 2, this method after optimization is included in the following steps of OpenFlow controllers execution:
Step 201, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Step 202, the VRRP groups belonging to the multicast VRRP messages reported are identified;
Step 203, a port is selected from all of the port of multicast VRRP messages for receiving the same VRRP groups, and Selected a port is recorded as corresponding to the main port of the VRRP groups, remaining port is recorded as corresponding to the standby of the VRRP groups Use port;
Step 204, it is that VRRP groups issue flow table using main port as exit port;
Step 205, when the corresponding main port exception of VRRP groups, by all spare ends of the correspondence of the record VRRP groups A main port for being promoted as corresponding to the VRRP groups in mouthful;
Step 206, delete for VRRP groups issue using former main port as the flow table of exit port and be VRRP groups issue with The main port newly promoted is the flow table of exit port.
So far, above-mentioned flow terminates.
Wherein, for above-mentioned steps 203, main port can be selected according to different criterion.
For example, using time priority principle, that is, in all of the port for the multicast VRRP messages for receiving the same VRRP groups In, the corresponding primary end of the VRRP groups can be registered as by being initially received a port of the multicast VRRP messages of the VRRP groups Mouthful;
Alternatively, port load balancing principle, that is, for the case where there are multiple VRRP groups, receiving the same VRRP In all of the port of the multicast VRRP messages of group, a port for not being registered as the main port of other VRRP groups can be preferential It is registered as the corresponding main port of VRRP groups.
Fig. 3 a are referred to, when above-mentioned steps 203 are using time priority principle, step 203 may include following specific Processing procedure:
S311 judges to work as when step 202 identifies the affiliated VRRP groups of multicast VRRP messages that a port receives Before the main port of the whether existing record of VRRP groups that identifies execute S312 if not recording main port, if Record has main port then to execute S313;
Then S312, the main port for the VRRP groups that present port is recorded as currently identifying trigger step 204;
S313, the standby port for the VRRP groups that present port is recorded as currently identifying, be then back to step 202, etc. Next multicast VRRP messages to be identified.
As for step 201-202 and 204-205 shown in Fig. 3 a, identical as Fig. 2, details are not described herein again.
Fig. 3 b are referred to, when above-mentioned steps 203 are using port load balancing principle, step 203 may include following Concrete processing procedure:
S321 judges to work as when step 202 identifies the affiliated VRRP groups of multicast VRRP messages that a port receives Before the main port of the whether existing record of VRRP groups that identifies execute S322 if not recording main port, if Record has main port then to execute S323;
Then S322, the main port for the VRRP groups that present port is recorded as currently identifying trigger step 204;
S323, the main port for judging present port and having recorded (the primary end of the VRRP groups currently identified Mouthful) whether and meanwhile be also multiplexed with the main ports of other VRRP groups, if present port is not by the multiplexing of other VRRP groups but The main port of record is multiplexed with the main port of other VRRP groups simultaneously, then executes S324, otherwise (such as the master recorded It is not re-used with port or present port and the main port that has recorded is multiplexed by other VRRP groups) execute S325;
S324, the main port for the VRRP groups that present port is recorded as currently identifying, and the current knowledge that will have been recorded The main port for the VRRP groups not gone out is changed to the standby port of the VRRP groups currently identified, then triggers step 204 update Flow table;
S325, the standby port for the VRRP groups which is recorded as currently identifying are then back to step 202, wait for Identify next multicast VRRP messages.
As for step 201-202 and 204-205 shown in Fig. 3 b, identical as Fig. 2, details are not described herein again.
It is the detailed description to the method for inhibiting host migration in the present embodiment above.Since this method can be in terms of Calculation machine program realizes that therefore, the present embodiment also accordingly provides a kind of device for inhibiting host migration.
Fig. 4 is referred to, it may include being transported in OpenFlow controllers to be used to inhibit the device of host migration in the present embodiment Capable following module:
Configuration module 401 is reported, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Message identification module 402 identifies the VRRP groups belonging to the multicast VRRP messages reported;
Port chosen module 403 selectes one from all of the port of multicast VRRP messages for receiving the same VRRP groups A port;
Configuration module 404 is forwarded, is that VRRP groups are issued using selected port as the flow table of exit port.
Similarly with method part, since OpenFlow controllers can be determined by Network topology in SDN network Edge switching equipment, therefore configuration module 401 is reported edge switching equipment can will to be made to report the flow table of multicast VRRP messages just Really it is issued to edge switching equipment, wherein in the flow table for making edge switching equipment report multicast VRRP messages, purpose MAC Address is multicast mac address, such as 01-00-5e-00-00-12, and exit port is then edge switching equipment connection OpenFlow The port of controller;Moreover, message identification module 402 can identify multicast VRRP by the VRID in multicast VRRP messages VRRP groups belonging to message.
In addition, the active-standby switch mechanism that method part refers to may be used in port chosen module 403, at this point, the present embodiment In for inhibiting the device of host migration can be optimised, refer to Fig. 5, the device after optimization is included in OpenFlow controls The following module of device operation:
Configuration module 501 is reported, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Message identification module 502 identifies the VRRP groups belonging to the multicast VRRP messages reported;
Port chosen module 503 selectes one from all of the port of multicast VRRP messages for receiving the same VRRP groups A port, and selected a port is recorded as corresponding to the main port of the VRRP groups, remaining port be recorded as it is corresponding this The standby port of VRRP groups;
Configuration module 504 is forwarded, is that VRRP groups issue flow table using main port as exit port;
Port handover module 505, when the corresponding main port exception of VRRP groups, by the institute of the correspondence of the record VRRP groups There is in standby port main port for being promoted as corresponding to the VRRP groups;
Forward update module 506, delete for VRRP groups issue using former main port as the flow table of exit port and for VRRP Group issues the main port newly to promote as the flow table of exit port.
Similarly with method part, it for above-mentioned port chosen module 503, can select to lead according to different criterion Use port.For example, what is be mentioned above uses time priority principle, alternatively, port load balancing principle.
Fig. 6 a are referred to, when above-mentioned port chosen module 503 is using time priority principle, port chosen module 503 can With including following submodule:
Record queries submodule 611, whenever message identification module 502 identifies the multicast VRRP reports that a port receives Belonging to text when VRRP groups, judge that the main port of the whether existing record of the VRRP groups triggers if not recording main port Primary record sub module 612 triggers duplicated record submodule 613 if having recorded main port;
Primary record sub module 612 will be recorded as the main port of the VRRP groups currently identified when port, then trigger Forward configuration module 504;
Duplicated record submodule 613, the standby port for the VRRP groups that present port is recorded as currently identifying, then etc. Wait for that message identification module 502 identifies next multicast VRRP messages.
As for reported shown in Fig. 6 a configuration module 501, message identification module 502, forwarding configuration module 504, port Handover module 505 and forwarding update module 506, identical as Fig. 5, details are not described herein again.
Fig. 6 b are referred to, when above-mentioned port chosen module 503 is using port load balancing principle, port chosen module 503 may include following submodule:
Record queries submodule 621, whenever message identification module 502 identifies the multicast VRRP reports that a port receives Belonging to text when VRRP groups, judge that the main port of the whether existing record of the VRRP groups triggers if not recording main port Primary record sub module 622 triggers multiplexing if having recorded main port and differentiates submodule 623;
Primary record sub module 622, the main port for the VRRP groups which is recorded as currently identifying, is then triggered Step 204;
Multiplexing differentiates that submodule 623, the main port for judging present port and having recorded (currently identify The main port of VRRP groups) whether and meanwhile be also multiplexed with the main ports of other VRRP groups, if present port is not by other The multiplexing of VRRP groups but the main port recorded while the main port for being multiplexed with other VRRP groups, then trigger primary replacement Submodule 624, otherwise (such as the main port recorded is not re-used or present port and the main port that has recorded It is multiplexed by other VRRP groups) triggering duplicated record submodule 625;
Primary replacement submodule 624, the main port for the VRRP groups that present port is recorded as currently identifying, and will The main port of the VRRP groups of record is changed to the standby port of the VRRP groups, and then triggering forwarding configuration module 604 updates Flow table;
Duplicated record submodule 625, the standby port for the VRRP groups that present port is recorded as currently identifying, then etc. Wait for that message identification module 502 identifies next multicast VRRP messages.
As for reported shown in Fig. 6 b configuration module 501, message identification module 502, forwarding configuration module 504, port Handover module 505 and forwarding update module 506, identical as Fig. 5, details are not described herein again.
The method and apparatus for being used to inhibit host migration in the present embodiment as described above in order to better understand, below again It is further described for an application example.
Fig. 7 is referred to, in the application example:
There are two edge switching equipment A and B for tool in SDN network, wherein edge switching equipment A has port a1 and a2, side Edge switching equipment B has port b1 and b2;
OpenFlow controllers send a flow table to edge switching equipment A, make edge switching equipment A by port a1 and a2 The multicast VRRP messages received report OpenFlow controllers, also, OpenFlow controllers are sent to edge switching equipment B A same flow table makes edge switching equipment B report OpenFlow to control the multicast VRRP messages that port b1 and b2 are received Device processed;
Gateway A and gateway B form the VRRP groups that virtual ip address is " 1.1.1.1/24 ", wherein gateway A connects edge and hands over The port b1 of the port a1 and edge switching equipment B of exchange device A is simultaneously accessed and is had host A, and gateway B connects edge and exchanges simultaneously The port b2 of the port a2 and edge switching equipment B of device A is simultaneously accessed and is had host B.
In application example as shown in Figure 7, to select primary end there are a VRRP group and using time priority principle For mouthful:
When the VRRP groups that gateway A and B are formed start, which can send out multicast VRRP messages.
Correspondingly, the port b1 and b2 of the port a1 and a2 and edge switching equipment B of edge switching equipment A may Receive the multicast VRRP messages sent out by VRRP groups.
Assuming that the port a1 of edge switching equipment A receives multicast VRRP messages and reports to OpenFlow controllers at first, It is " 1 " that then OpenFlow controllers, which parse multicast VRRP messages and obtain corresponding VRID, then inquires the VRID that value is " 1 " With the presence or absence of corresponding record list item.
Include in record list item:VRID fields indicate the value of the VRID carried in the multicast VRRP messages identified; Switching equipment field indicates the edge switching equipment for reporting multicast VRRP messages;Exit port field, expression receive this The port of multicast VRRP messages;And port type comprising the spare end indicated with " M " main port indicated and with " B " Mouth both types.
It is " 1 " due to not receiving the multicast VRRP messages of the VRRP groups before this, thus necessarily without value is inquired The VRID there are corresponding record list item, to increase record list item, the port a1 of edge switching equipment A is recorded as this The main port of VRRP groups, record list item at this time refer to table 1.
VRID Switching equipment Exit port Port type
1 A a1 M
Table 1
Correspondingly, according to above-mentioned record list item as shown in Table 1, the side where OpenFlow controllers to main port a1 Edge switching equipment A issues flow table, and the purpose IP address of the flow table is 1.1.1.1/24, the end that exit port is edge switching equipment A Mouth a1, so that all messages for being directed toward VRRP groups are all forwarded via the port a1 of edge switching equipment A.
Then, it is assumed that the port a2 of edge switching equipment A receives the multicast VRRP messages with identical VRID and is reported to OpenFlow controllers, it is " 1 " that OpenFlow controllers, which parse multicast VRRP messages and obtain corresponding VRID, is then inquired Existing value is the record list item of the VRID of " 1 ", i.e. list item shown in table 1, thus only increases a new record sheet As, the port a2 of edge switching equipment A to be recorded as to the standby port of the VRRP groups, record list item at this time is referring to table 2.
VRID Switching equipment Exit port Port type
1 A a1 M
1 A a2 B
Table 2
But after having increased record list item newly, OpenFlow controllers no longer issue flow table to edge switching equipment A, accordingly Ground, edge switching equipment A still continue to use flow table before this, so that all messages for being directed toward VRRP groups still via edge switching equipment A Port a1 forwarding.
Hereafter, it is further assumed that the port a1 of edge switching equipment A is abnormal, and OpenFlow controllers are by edge switching equipment A's Port a1 and a2 carry out active-standby switch, and record list item at this time is referring to table 3.
VRID Switching equipment Exit port Port type
1 A a1 B
1 A a2 M
Table 3
Port a2 is switched to by port a1 accordingly, due to main port, therefore, according to above-mentioned record as shown in table 3 List item, OpenFlow controllers need delete be handed down to before this edge switching equipment A using port a1 as the flow table of exit port, and Flow table is re-issued to the edge switching equipment A where main port a2, the purpose IP address of the flow table re-issued is still 1.1.1.1/24 but exit port be edge switching equipment A port a2 so that it is all be directed toward VRRP groups message be changed to via side The port a2 of edge switching equipment A is forwarded.
Similarly, if the multicast VRRP messages that the port b1 and b2 of edge switching equipment B are received report to OpenFlow Controller, then can equally be registered as standby port and can be different in main port as the port a2 of edge switching equipment A Main port is promoted as in switching when often.
Separately it should be noted that above application example is primarily to embody the side that the present embodiment is used to inhibit host migration The effect that can inhibit host migration of the basic principle and generation of method and device, for there are multiple VRRP groups and using end The case where mouth load balancing principle selectes port, also corresponds to the basic principle and can equally generate can inhibit host migration Effect, no longer repeated herein by application example.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (10)

1. a kind of method for inhibiting host migration, which is characterized in that this method is included in the controls of the OpenFlow in SDN frameworks The following steps that device processed executes:
Step a, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Step b, the VRRP groups belonging to the multicast VRRP messages that identification reports;
Step c, a port is selected from all of the port of multicast VRRP messages for receiving the same VRRP groups;
Step d, it is issued using selected port as the flow table of exit port for VRRP groups.
2. according to the method described in claim 1, it is characterized in that, step c is from the multicast VRRP for receiving the same VRRP groups The a port selected in all of the port of message be registered as corresponding to the main port of the VRRP groups, remaining be recorded as it is corresponding this The standby port of VRRP groups;Also, step d is in the flow table that VRRP groups issue using its corresponding main port as exit port;With And this method further comprises:
It step e, will be in all standby ports of the correspondence of the record VRRP groups when the corresponding main port exception of VRRP groups One main port for being promoted as corresponding to the VRRP groups;
Step f, delete be VRRP groups issue using former main port as the flow table of exit port and be that VRRP groups are issued newly to promote Main port be exit port flow table.
3. according to the method described in claim 2, it is characterized in that, in the multicast VRRP messages for receiving the same VRRP groups In all of the port:
The a port for being initially received the multicast VRRP messages of the VRRP groups is registered as the corresponding main port of VRRP groups;
Alternatively, a port for not being registered as the main port of other VRRP groups is preferentially registered as the corresponding master of the VRRP groups Use port.
4. according to the method described in claim 1, it is characterized in that, the target MAC (Media Access Control) address in the flow table that step a is issued is multicast The exit port for the flow table that MAC Address, step a are issued is the port that edge switching equipment connects OpenFlow controllers.
5. according to the method described in claim 1, it is characterized in that, step b utilizes the VRID identification groups in multicast VRRP messages Broadcast the VRRP groups belonging to VRRP messages.
6. a kind of device for inhibiting host migration, which is characterized in that the device is included in the controls of the OpenFlow in SDN frameworks The following module of device operation processed:
Configuration module is reported, the flow table for making it report multicast VRRP messages is issued to edge switching equipment;
Message identification module identifies the VRRP groups belonging to the multicast VRRP messages reported;
Port chosen module selectes a port from all of the port of multicast VRRP messages for receiving the same VRRP groups;
Configuration module is forwarded, is that VRRP groups are issued using selected port as the flow table of exit port.
7. device according to claim 6, which is characterized in that port chosen module is from the group for receiving the same VRRP groups It broadcasts a port selected in all of the port of VRRP messages and is registered as corresponding to that the main port of the VRRP groups, remaining is recorded as The standby port of the corresponding VRRP groups;Also, forwarding configuration module is in the flow table that VRRP groups issue with its corresponding primary end Mouth is exit port;And the device further comprises:
Port handover module, when the corresponding main port exception of VRRP groups, by all spare of the correspondence of the record VRRP groups One in the port main port for being promoted as corresponding to the VRRP groups;
Forward update module, delete for VRRP groups issue using former main port as the flow table of exit port and be that VRRP groups issue Using the main port newly promoted as the flow table of exit port.
8. device according to claim 7, which is characterized in that in the multicast VRRP messages for receiving the same VRRP groups In all of the port:
The a port for being initially received the multicast VRRP messages of the VRRP groups is registered as the corresponding main port of VRRP groups;
Alternatively, a port for not being registered as the main port of other VRRP groups is preferentially registered as the corresponding master of the VRRP groups Use port.
9. device according to claim 6, which is characterized in that with reporting the purpose MAC in the flow table that configuration module issues It is edge switching equipment connection OpenFlow controls that location, which is multicast mac address, reports the exit port for the flow table that configuration module issues The port of device.
10. device according to claim 6, which is characterized in that message identification module utilizes in multicast VRRP messages VRID identifies the VRRP groups belonging to multicast VRRP messages.
CN201410391178.3A 2014-08-11 2014-08-11 Method and apparatus for inhibiting host migration Active CN104135440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410391178.3A CN104135440B (en) 2014-08-11 2014-08-11 Method and apparatus for inhibiting host migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410391178.3A CN104135440B (en) 2014-08-11 2014-08-11 Method and apparatus for inhibiting host migration

Publications (2)

Publication Number Publication Date
CN104135440A CN104135440A (en) 2014-11-05
CN104135440B true CN104135440B (en) 2018-07-20

Family

ID=51807964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410391178.3A Active CN104135440B (en) 2014-08-11 2014-08-11 Method and apparatus for inhibiting host migration

Country Status (1)

Country Link
CN (1) CN104135440B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888396B (en) * 2016-09-29 2023-05-09 日本电气株式会社 Data transmission method in WIFI network, network node and terminal equipment
CN110572318B (en) * 2019-09-29 2021-11-26 迈普通信技术股份有限公司 Main/standby switching method and router

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916897A (en) * 2012-10-10 2013-02-06 杭州华三通信技术有限公司 Method and equipment for realizing VRRP load sharing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572675B (en) * 2009-06-23 2012-01-04 杭州华三通信技术有限公司 Method for finding operating VRRP network equipment in directly connected network segment and device thereof
CN101588304B (en) * 2009-06-30 2012-04-18 杭州华三通信技术有限公司 Implementation method of VRRP and device
CN103856417B (en) * 2012-11-30 2018-01-23 中兴通讯股份有限公司 software defined network message forwarding method and system
CN103051538B (en) * 2012-12-27 2015-07-08 华为技术有限公司 Method, control equipment and system for generating ARP (Address Resolution Protocol) table entry

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916897A (en) * 2012-10-10 2013-02-06 杭州华三通信技术有限公司 Method and equipment for realizing VRRP load sharing

Also Published As

Publication number Publication date
CN104135440A (en) 2014-11-05

Similar Documents

Publication Publication Date Title
US20210160157A1 (en) Technologies for annotating process and user information for network flows
US10454806B2 (en) SDN controller, data center system, and routing connection method
CN107431642B (en) System and method for controlling a switch to capture and monitor network traffic
CN104468181B (en) The detection and processing of virtual network device failure
CN104243317B (en) A kind of method and apparatus for realizing IP routing forwardings
CN103888369B (en) Ethernet communication method, system and SDN switch
CN102576343B (en) Department of computer science unifies virtual machine migration method
US10645006B2 (en) Information system, control apparatus, communication method, and program
CN109561033B (en) Method and device for multicast replication in Overlay network
CN104243239B (en) The condition detection method and device of controller in a kind of SDN clusters
CN102594689A (en) Distributed network control method and device
CA2555545A1 (en) Interface bundles in virtual network devices
CN104919760B (en) Virtual enclosure system control protocol
CN105791175A (en) Method and equipment for controlling transmission resources in software defined network SDN
EP3355533B1 (en) Path switching
CN102387028A (en) Network system, network management server, and OAM test method
CN102884762B (en) Network path control method, equipment and system
EP3038296B1 (en) Pool element status information synchronization method, pool register and pool element
KR20150090212A (en) Switch device, vlan setting management method and program
CN104135440B (en) Method and apparatus for inhibiting host migration
JP5904285B2 (en) Communication system, virtual network management device, communication node, communication method, and program
CN104579729B (en) The notification method and device of CGN single board default
CN105939276B (en) The retransmission method and device of multicast data message
CN102349271B (en) Multicast protocol message monitoring method, device and switch
US9596129B2 (en) Communication system, control apparatus, communication apparatus, information-relaying method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant