CN105763368B - A kind of stacking method and device - Google Patents

A kind of stacking method and device Download PDF

Info

Publication number
CN105763368B
CN105763368B CN201610079972.3A CN201610079972A CN105763368B CN 105763368 B CN105763368 B CN 105763368B CN 201610079972 A CN201610079972 A CN 201610079972A CN 105763368 B CN105763368 B CN 105763368B
Authority
CN
China
Prior art keywords
software version
version information
virtual machine
domain identifier
sdn controller
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
CN201610079972.3A
Other languages
Chinese (zh)
Other versions
CN105763368A (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 Information 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 CN201610079972.3A priority Critical patent/CN105763368B/en
Publication of CN105763368A publication Critical patent/CN105763368A/en
Application granted granted Critical
Publication of CN105763368B publication Critical patent/CN105763368B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a kind of stacking method and device, which comprises SDN controller obtains the first software version information and first bridge MAC corresponding with first software version information for the virtual machine of self-management stacked;When the SDN controller detects that target virtual machine needs that stacking is added, the SDN controller obtains the second software version information of the target virtual machine, and second software version information and first software version information;Third bridge MAC corresponding with the third software version information is carried and is sent to the target virtual machine in notification message is added with the consistent third software version information of second software version information, the SDN controller if existing in first software version information.Stacking efficiency can be improved using the embodiment of the present invention.

Description

A kind of stacking method and device
Technical field
The present invention relates to network communication technology field more particularly to a kind of stacking methods and device.
Background technique
The development of virtualization technology drives the development of the big double layer network of data center, but with the continuous expansion of network size Greatly, the network equipment quantity for needing to manage also increases with it, and network management becomes one in the big double layer network management of data center A difficult point that can't steer clear of.A large amount of virtual machines are uniformly accessed into a double layer network, no equally convenient shape of image of Buddha traditional equipment At the stacking of daisy chain type, realize that star-like stacking can make these virtual machines virtually and be an equipment, streamlining management, and meanwhile it is automatic It supports various backups, share.
When virtual machine needs to be added the operation of star-like stacking system, need to configure a virtual slot number on a virtual machine The virtual machine is identified and managed, an IRF (Intelligent Resilient Framework, intelligent elastic frame) is distributed Domain is for identifying which IRF stacking system belonged to.Then the operation such as configuring stacking mouth, stacking port.It is finished to basic operation Later, the equipment (virtual machine) being newly added will receive from the heartbeat message for stacking main equipment, then restart addition.Restarted Main equipment is stacked in journey judges whether the new version that equipment is added is consistent with its, and new equipment is successfully joined if consistent;Otherwise, The equipment of addition can constantly restart, and increase SDN (Software Defined Network, software defined network) network-control The load of level, while the long-time that will lead to flow is interrupted.
In view of the above-mentioned problems, current solution is that heap prestack is added by manually checking the virtual machine in virtual machine Whether software version is consistent with the software version for having member device in stacking system, and it is lower to stack efficiency.
Summary of the invention
The present invention provides a kind of stacking method and device, passes through people to solve heap prestack is added in virtual machine in the prior art Work checks that the whether consistent scheme of software version for having member device in the software version and stacking system of the virtual machine stacks The problem of low efficiency.
According to a first aspect of the embodiments of the present invention, a kind of stacking method is provided, comprising:
Software defined network SDN controller obtain self-management the virtual machine stacked the first software version information with And first bridge MAC corresponding with first software version information;
When the SDN controller detects that target virtual machine needs that stacking is added, the SDN controller obtains the mesh Mark the second software version information of virtual machine, and second software version information and first software version information;
If existing and the consistent third software version of second software version information in first software version information Information, then third bridge MAC corresponding with the third software version information is carried and notification message is being added by the SDN controller In be sent to the target virtual machine.
According to a second aspect of the embodiments of the present invention, a kind of stack device is provided, comprising:
Acquiring unit, for obtain the virtual machine of self-management stacked the first software version information and with it is described The corresponding first bridge MAC of first software version information;
The acquiring unit is also used to obtain when the stack device detects that target virtual machine needs that stacking is added Second software version information of the target virtual machine;
Comparing unit, for second software version information and first software version information;
Transmission unit, if consistent with second software version information for existing in first software version information Third software version information carries third bridge MAC corresponding with the third software version information in notification message is added It is sent to the target virtual machine.
Using the embodiment of the present invention, SDN controller passes through the first software for obtaining the virtual machine of self-management stacked Version information and first bridge MAC corresponding with the first software version information, when SDN controller detects target virtual machine needs When stacking is added, SDN controller obtains the second software version information of the target virtual machine, and compares the second software version information With the first software version information, if in the first software version information exist and the consistent third software version of the second software version information This information, then third bridge MAC corresponding with third software version information is carried and is sent in notification message is added by SDN controller To target virtual machine, realizes and judge automatically whether target virtual machine can be added stacking by SDN controller, improve stacking Efficiency.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of stacking method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another stacking method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of stack device provided in an embodiment of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention Case is described in further detail.
It should be noted that in embodiments herein,
Domain: virtual machine (member device) the stacking domain (domain) having the same in a certain stacking is stacked, difference stacks Same stacking can not be added in the virtual machine in domain.
Bridge MAC: heap poststack is added for virtual machine (member device), realizes the bridge MAC Address of correspondence with foreign country, i.e. each heap Unique bridge MAC is presented outside overlay.
Cluster member number: for it is a certain stacking domain in virtual machine (member device) number, for being distinguished in stacked environment Other virtual machines.
Referring to Fig. 1, it is a kind of flow diagram of stacking method provided in an embodiment of the present invention, may include following step It is rapid:
Step 101, SDN controller obtain self-management the virtual machine stacked the first software version information and with The corresponding first bridge MAC of first software version information.
It, can be to enable in order to improve the judging efficiency whether virtual machine can be added stacking system in the embodiment of the present invention SDN controller can include but is not limited to software to the information collecting function of the virtual machine of self-management stacked, the information Version information (referred to herein as the first software version information), and bridge MAC corresponding with first software version information (Media Access Control, media access control) (referred to herein as first bridge MAC) etc..
As an alternative embodiment, it is virtual that SDN controller obtains having stacked for self-management in step 101 First software version information of machine and first bridge MAC corresponding with the first software version information, may comprise steps of:
11), the virtual machine of SDN controller and self-management establishes LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) connection;
12), SDN controller receives the LLDP message that the virtual machine of self-management stacked is sent, which takes The first software version information with the virtual machine for sending the LLDP message and corresponding with first software version information the One bridge MAC.
In this embodiment, the LLDP link discovery function of enabling SDN controller and virtual machine, when virtual machine is added When SDN network, SDN controller is established LLDP with the virtual machine and is connect, and in turn, for the virtual machine stacked, virtual machine can be with It is connected by the LLDP to the transmission of SDN controller and carries the first software version information and corresponding with the first software version information The first bridge MAC LLDP message so that the virtual machine that has stacked of the SDN controller according to the LLDP Receive message self-management The first software version information and first bridge MAC corresponding with the first software version information, realize to the virtual of self-management The collection of the relevant information of machine.
In the embodiment of the present invention, SDN controller gets the first software version of the virtual machine of self-management stacked After the information such as information and the first bridge MAC corresponding with the first software version information, can in local maintenance relevant entries, with Save the information got.
In the embodiment of the present invention, virtual machine can include but is not limited to VSR (Virtual Service Router, virtually Router), VFW (Virtual Fire Wall, virtual firewall) or VLB (Virtual Load Balance, dummy load Equalizing equipment) etc..
Step 102, when SDN controller detect target virtual machine need be added stack when, SDN controller obtains the target Second software version information of virtual machine, and compare second software version information and the first software version information.
In the embodiment of the present invention, target virtual machine and the virtual machine for being not specific to a certain fixation, but may refer to SDN control Any virtual machine for needing to be added stacking system of device management, the embodiment of the present invention is subsequent no longer to be repeated.
In the embodiment of the present invention, when target virtual machine needs that stacking system is added, target virtual machine is sent out to SDN controller Send heartbeat message;After SDN controller receives the heartbeat message, determine that the target virtual machine needs that stacking system is added, thus, The software version information (referred to herein as the second software version information) of the available target virtual machine of SDN.
Wherein, the software version information that SDN controller obtains the target virtual machine can also realize by LLDP connection, i.e., Target virtual machine can establish LLDP with SDN controller and connect after the network that SDN controller management is added, in turn, SDN control Device processed can obtain the relevant information (such as software version information) of target virtual machine by the LLDP connection.
It, can be according in step 101 after SDN controller gets target software release information in the embodiment of the present invention The first software version information got compares second software version information and the first software version information.
If existing and the consistent third software version of the second software version information in step 103, the first software version information Information, then third bridge MAC corresponding with third software version information is carried and is sent in notification message is added by SDN controller Target virtual machine.
In the embodiment of the present invention, after SDN controller compares the second software version information and the first software version information, if Exist and the first software version information consistent software version information (referred to herein as third software in second software version information Version information), SDN controller thinks that the corresponding bridge MAC of third software version information can be added (herein in the target virtual machine Referred to as third bridge MAC) belonging to stacking system, at this point, SDN controller to target virtual machine send be added notification message, should plus Enter and carry third bridge MAC corresponding with third software version information in notification message, the addition notification message is for notifying mesh Stacking system belonging to bridge MAC is added in mark virtual machine.After the addition notification message that target virtual machine receives, obtaining should add Enter the third bridge MAC carried in notification message, and according to the third bridge MAC third bridge MAC is added belonging to stacking system.
It should be noted that in embodiments of the present invention, software version information unanimously includes corresponding software version number phase Together or software version is compatible etc..
In the embodiment of the present invention, it is contemplated that when software version information and the stacking system of virtual machine have the soft of member device When part version information is inconsistent, virtual machine request addition stacking system will lead to the virtual machine and constantly restart, thus, if first is soft In part version information there is no with the consistent software version information of the second software version information, i.e. in the first software version information not There are above-mentioned third software version information, then SDN controller can be sent to target virtual machine for notify target virtual machine without The notification message of method addition stacking system;After target virtual machine receives the notification message, determine that stacking can not be added in itself System efficiently avoids requesting the software version information that member device is added and itself software version information not due to virtual machine The problem of constantly restarting caused by consistent stacking system.
As it can be seen that SDN controller passes through the addition stacking system for collecting self-management in method flow shown in Fig. 1 Software version information and bridge MAC corresponding with the software version information, and when SDN controller detect target virtual machine need When stacking system is added, the software version information of the available target virtual machine of SDN controller, and compare the software version Information and the software version information of virtual machine stacked, and exist in the software version information for the virtual machine that ought have been stacked and mesh When marking the consistent software version information of software version information of virtual machine, the corresponding bridge MAC of the software version information is carried and is existed It is added in notification message and is sent to target virtual machine, realize and target virtual machine is judged automatically by SDN controller whether can It is added and stacks, improve stacking efficiency.
Fig. 2 is referred to, may include following for the flow diagram of another stacking method provided in an embodiment of the present invention Step:
Step 201, SDN controller obtain the first software version information of the virtual machine of self-management stacked, with the The corresponding first bridge MAC of one software version information, and the first domain identifier corresponding with the first software version information.
In the embodiment of the present invention, it is contemplated that in the scene of the multiple stacking systems of SDN controller management, when virtual machine needs Be added when stacking, the domain identifier of virtual machine need it is identical as the domain identifier of stacking of addition, thus, SDN controller is in addition to can be with Obtain the first software version information of the virtual machine stacked of self-management and corresponding with first software version information Except first bridge MAC, the domain identifier corresponding with the first software version information of the virtual machine stacked can also be obtained (herein In be known as the first domain identifier).
Step 202, when SDN controller detect target virtual machine need to be added stack when, it is empty that SDN controller obtains target Second domain identifier of quasi- machine, and compare the second domain identifier and the first domain identifier.If existing and the second domain identifier in the second domain identifier Identical third domain identifier, then go to step 203;Otherwise, step 205 is gone to.
In the embodiment of the present invention, when SDN controller detects that target virtual machine needs that stacking is added, SDN controller is first The domain identifier (referred to herein as the second domain identifier) of target virtual machine is obtained, and compares second domain identifier and the first domain identifier, It whether there is domain identifier identical with the second domain identifier (referred to herein as third domain identifier) to determine in the first domain identifier;If depositing In then further comparison software version information;Otherwise it is assumed that stacking can not be added in target virtual machine.
It should be noted that in embodiments of the present invention, between step 202 and step 203 and there is no inevitable timing Relationship, i.e., in embodiments of the present invention, SDN controller detect that target virtual machine needs to be added heap poststack, can first carry out ratio The step of compared with the second domain identifier and the first domain identifier, rear execute compare the second software version information and the first software version information Step;The step of comparing the second software version information and the first software version information can also be first carried out, rear execute compares second The step of domain identifier and the first domain identifier, the specific implementation embodiment of the present invention repeat no more.
Step 203, SDN controller obtain the second software version information of target virtual machine, and compare third domain identifier pair The software version information and the second software version information answered.If the corresponding software version information of third domain identifier and the second software version This information is consistent, goes to step 204;Otherwise, step 205 is gone to.
In the embodiment of the present invention, SDN controller, which determines, has third identical with the second domain identifier domain in the first domain identifier After mark, SDN controller further compares the corresponding software version information of third domain identifier and the second software version information, with Determine whether the corresponding software version information of third domain identifier and the second software version information are consistent;If consistent, (i.e. third domain is marked Knowing corresponding software version information is the above third software version information), then SDN controller thinks destination virtual Stacking belonging to the corresponding third bridge MAC of the third software version information can be added in machine;Otherwise, SDN controller thinks target Stacking cannot be added in virtual machine.
Further, in one implementation, SDN controller can also obtain the virtual machine of self-management stacked The first domain identifier corresponding cluster member number (referred to herein as the first cluster member number);When target virtual machine needs to add Enter to stack, and SDN controller determines there is third domain identifier identical with the second domain identifier in the first domain identifier, then SDN is controlled Device first can further obtain the cluster member number (referred to herein as the second cluster member number) of target virtual machine, and compare The corresponding cluster member number of third domain identifier is numbered with the second cluster member;If the corresponding cluster member number of third domain identifier It is different from the second cluster member number, then further comparison software version information;Otherwise it is assumed that heap can not be added in target virtual machine It is folded.
It should be noted that in embodiments of the present invention, SDN controller is determined to exist in the first domain identifier and be marked with the second domain After knowing identical third domain identifier, it can first carry out and compare the second cluster member number third cluster corresponding with third domain identifier The step of member's number, then execute the step for comparing the second software version information software version information corresponding with third domain identifier Suddenly;The step of comparing the second software version information corresponding with third domain identifier software version information can also be first carried out, then is held The step of row relatively the second cluster member number third cluster member number corresponding with third domain identifier, i.e., therebetween not In the presence of inevitable sequential relationship, the specific implementation embodiment of the present invention is repeated no more.
Step 204, SDN controller carry third bridge MAC corresponding with third software version information to disappear in addition notice Target virtual machine is sent in breath.
In the embodiment of the present invention, SDN controller, which determines, has third identical with the second domain identifier domain in the first domain identifier Mark, and unanimously (i.e. third domain identifier is corresponding with the second software version information for the corresponding software version information of third domain identifier Software version information is third software version information), then SDN controller thinks that third software version can be added in target virtual machine Stacking belonging to the corresponding third bridge MAC of information, in turn, SDN controller can will corresponding with third software version information Three bridge MAC, which are carried, is sent to target virtual machine in notification message is added, so that corresponding stacking is added in target virtual machine.
Step 205, SDN controller are sent to target virtual machine for notifying target virtual machine that stacking system can not be added Notification message.
In the embodiment of the present invention, when there is no domain identifier identical with the second domain identifier or third domains in the first domain identifier When identifying corresponding software version information and inconsistent the second software version information, SDN controller can be sent out to target virtual machine It send for notifying target virtual machine that the notification message of stacking system can not be added, to notify target virtual machine stops being added to stack.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, below with reference to specific Application scenarios technical solution provided in an embodiment of the present invention is described.
In this embodiment, virtual machine is added to stack and may include steps of:
Step 1 is pre-configured: including configuration management IP (Internet Protocol, Internet protocol) address, for connecing Enter controller management network (i.e. SDN network), realizes a kind of openflow (opening flow table control protocol) connection;Configure user Account and user password, for establishing http (Hypertext Transfer Protocol, hypertext transfer protocol)/https (Secure Hypertext Transfer Protocol, Secure Hypertext Transfer Protocol) connection realizes SDN controller to certainly The equipment of barrel reason issues or obtains the relevant configuration of the equipment of self-management;
Step 2, (Network Function Virtualization, network function are virtual by SDN controller addition NFV Change) resource: by backstage API, (Application Programming Interface, application programming connect SDN controller Mouthful) or add AFC (Auto Flow Control, automatic flow control) to create NFV resource, NFV resource and NFV network element device (virtual machine) corresponds, in resource adding procedure, by interacting openflow hello report between virtual machine and SDN controller Text establishes ofp (optical-fibre channel) connection;
Step 3 sends LLDP message: after virtual machine activation, it is assumed that virtual machine and controller have enabled LLDP function, then LLDP connection can be established by interacting lldp hello packet between virtual machine and SDN controller, thus realize virtual machine and The interaction of LLDP message between SDN controller.
Wherein, in this embodiment, the virtual machine stacked is sent to the LLDPPDU of the LLDP message of SDN controller (LLDP Protocol Data Unit, LLDP protocol Data Unit) Optional (optional) TLV (Type, Length, Value, type, length, value) bridge MAC, software version information and other stack arrangement information can be carried.
Step 4, SDN controller receive the LLDP message that the virtual machine of self-management is sent, and from the LLDP message The information such as domain identifier, bridge MAC, the software version information of virtual machine are obtained in Optional TLV in LLDPPDU, and are added In the NFV resource node list of local maintenance.
Step 5, virtual machine, which are added, to be stacked: when target virtual machine needs that stacking system is added, sending heartbeat to SDN controller Message, after SDN controller receives the heartbeat message, obtain the second domain identifier of target virtual machine, the second software version information, Second cluster member number;Then, NFV the Resources list of SDN controller inquiry self maintained, compares the second domain identifier and heap The domain identifier of folded virtual machine is marked if there is third identical with the second domain identifier domain in the domain identifier of the virtual machine stacked Know, then compares the corresponding cluster member number of third domain identifier;Otherwise, stacking system can not be added to target virtual machine transmission Stacking system can not be added in notification message, notice target virtual machine.
If the corresponding cluster member number of third domain identifier is different from the second cluster member number, compare third domain identifier Corresponding software version information and the second software version information;Otherwise, stacking system can not be added to target virtual machine transmission Stacking system can not be added in notification message, notice target virtual machine.
If the corresponding software version information of third domain identifier is consistent with the second software version information, which is believed It ceases corresponding bridge MAC carrying and is sent to target virtual machine in notification message is added, so that corresponding heap is added in target virtual machine It is folded;Otherwise, the notification message that stacking system can not be added is sent to target virtual machine, stacking can not be added in notice target virtual machine System.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, SDN controller passes through acquisition First software version information of the virtual machine of self-management stacked and the first bridge corresponding with the first software version information MAC, when SDN controller detects that target virtual machine needs that stacking is added, SDN controller obtains the second of the target virtual machine Software version information, and compare the second software version information and the first software version information, if being deposited in the first software version information With the consistent third software version information of the second software version information, then SDN controller will be with third software version information pair The third bridge MAC answered, which is carried, is sent to target virtual machine in notification message is added, and realizes and is judged automatically by SDN controller Whether target virtual machine can be added stacking, improve stacking efficiency.
Fig. 3 is referred to, is a kind of structural schematic diagram of stack device provided in an embodiment of the present invention, wherein the stacking Device can be applied to the SDN controller in above method embodiment, as shown in figure 3, the stack device may include
Acquiring unit 310, for obtain the virtual machine of self-management stacked the first software version information and with The corresponding first bridge MAC of first software version information;
Detection unit 320, for detecting whether virtual machine needs that stacking is added;
The acquiring unit 310 is also used to stack when the detection unit 320 detects that target virtual machine needs to be added When, obtain the second software version information of the target virtual machine;
Comparing unit 330, for second software version information and first software version information;
Transmission unit 340, for obtaining first software version information according to the comparison result of the comparing unit 330 It, will be with the third software version information when middle presence third software version information consistent with second software version information Corresponding third bridge MAC, which is carried, is sent to the target virtual machine in notification message is added.
In an alternative embodiment, the transmission unit 340 can be also used for the comparison knot according to the comparing unit 330 Fruit show that Xiang Suoshu target virtual machine is sent there is no when the third software version information in first software version information For notifying the target virtual machine that the notification message of stacking system can not be added.
In an alternative embodiment, the acquiring unit 310 can be also used for obtaining and first software version information pair The first domain identifier answered;
The acquiring unit 310 can be also used for detecting that target virtual machine needs that heap is added when the detection unit 320 When folded, the second domain identifier of the target virtual machine is obtained;
Correspondingly, the comparing unit 330, can be also used for the second domain identifier described in comparison and first domain identifier, Compare second software version information and first software version information;
The transmission unit 340 can be also used for obtaining the first domain mark according to the comparison result of the comparing unit There is third domain identifier identical with second domain identifier in knowledge, and there are the thirds in first software version information When software version information, then third bridge MAC corresponding with the third software version information is carried in notification message is added It is sent to the target virtual machine.
In an alternative embodiment, the comparing unit 320, can be specifically used for existing in first domain identifier and institute When stating the identical third domain identifier of the second domain identifier, if the corresponding software version information of the third domain identifier and described second soft Part version information is consistent, it is determined that exists in first software version information and second software version information consistent the Three software version informations.
In an alternative embodiment, the acquiring unit 310 can be also used for obtaining corresponding with first domain identifier the One cluster member number;
The acquiring unit 310, if can be also used for existing in first domain identifier identical as second domain identifier Third domain identifier, then obtain the target virtual machine the second cluster member number;
Correspondingly, the comparing unit 330 can be also used for the number of the second cluster member described in comparison and third domain identifier Corresponding third cluster member number;
The transmission unit 340 can be also used for obtaining second collection according to the comparison result of the comparing unit 330 Group members number is different from the third cluster member number, and there are the third softwares in first software version information When version information, third bridge MAC corresponding with the third software version information is carried and is sent in notification message is added The target virtual machine.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, the first software that SDN controller passes through the virtual machine of acquisition self-management stacked Version information and first bridge MAC corresponding with the first software version information, when SDN controller detects target virtual machine needs When stacking is added, SDN controller obtains the second software version information of the target virtual machine, and compares the second software version information With the first software version information, if in the first software version information exist and the consistent third software version of the second software version information This information, then third bridge MAC corresponding with third software version information is carried and is sent in notification message is added by SDN controller To target virtual machine, realizes and judge automatically whether target virtual machine can be added stacking by SDN controller, improve stacking Efficiency.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of stacking method characterized by comprising
Software defined network SDN controller obtain self-management the virtual machine stacked the first software version information and with The corresponding first bridge MAC of first software version information;
When the SDN controller detects that target virtual machine needs that stacking is added, it is empty that the SDN controller obtains the target Second software version information of quasi- machine, and second software version information and first software version information;
If in first software version information exist with the consistent third software version information of second software version information, Then third bridge MAC corresponding with the third software version information is carried and is sent out in notification message is added by the SDN controller Give the target virtual machine.
2. the method according to claim 1, wherein the method also includes:
If the third software version information is not present in first software version information, the SDN controller is to described Target virtual machine is sent for notifying the target virtual machine that the notification message of stacking system can not be added.
3. the method according to claim 1, wherein the method also includes:
The SDN controller obtains the first domain identifier corresponding with first software version information;
When the SDN controller detects that target virtual machine needs that stacking is added, it is empty that the SDN controller obtains the target Second domain identifier of quasi- machine, and second domain identifier and first domain identifier;
If there is third domain identifier identical with second domain identifier in first domain identifier, and first software version There are the third software version informations in information, then the SDN controller will be corresponding with the third software version information Third bridge MAC, which is carried, is sent to the target virtual machine in notification message is added.
4. according to the method described in claim 3, it is characterized in that, being marked if existing in first domain identifier with second domain Know identical third domain identifier, SDN controller second software version information and first software version are believed Breath, comprising:
The corresponding software version information of the SDN controller third domain identifier and second software version information;
If the corresponding software version information of the third domain identifier is consistent with second software version information, it is determined that described Exist and the consistent third software version information of second software version information in one software version information.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The SDN controller obtains the first cluster member number corresponding with first domain identifier;
If there is third domain identifier identical with second domain identifier in first domain identifier, the SDN controller is obtained Second cluster member of the target virtual machine is numbered, and second cluster member number is corresponding with third domain identifier Third cluster member number;
If the second cluster member number is different from the third cluster member number, and in first software version information There are the third software version informations, then the SDN controller will third bridge corresponding with the third software version information MAC, which is carried, is sent to the target virtual machine in notification message is added.
6. a kind of stack device characterized by comprising
Acquiring unit, for obtaining the first software version information of the virtual machine of self-management stacked and with described first The corresponding first bridge MAC of software version information;
Detection unit, for detecting whether virtual machine needs that stacking is added;
The acquiring unit is also used to when the detection unit detects that target virtual machine needs that stacking is added, described in acquisition Second software version information of target virtual machine;
Comparing unit, for second software version information and first software version information;
Transmission unit, for obtaining in first software version information exist and institute according to the comparison result of the comparing unit It, will third corresponding with the third software version information when stating the consistent third software version information of the second software version information Bridge MAC, which is carried, is sent to the target virtual machine in notification message is added.
7. device according to claim 6, which is characterized in that
The transmission unit is also used to be obtained according to the comparison result of the comparing unit in first software version information not There are when the third software version information, Xiang Suoshu target virtual machine is sent for notifying the target virtual machine that can not be added The notification message of stacking system.
8. device according to claim 6, which is characterized in that
The acquiring unit is also used to obtain the first domain identifier corresponding with first software version information;
The acquiring unit is also used to when the detection unit detects that target virtual machine needs that stacking is added, described in acquisition Second domain identifier of target virtual machine;
The comparing unit is also used to the second domain identifier described in comparison and first domain identifier;
The transmission unit is also used to obtain in first domain identifier exist and institute according to the comparison result of the comparing unit The identical third domain identifier of the second domain identifier is stated, and there are the third software version informations in first software version information When, third bridge MAC corresponding with the third software version information is carried and is sent to the target in notification message is added Virtual machine.
9. device according to claim 8, which is characterized in that
The comparing unit is specifically used for working as in first domain identifier and mark in the presence of third domain identical with second domain identifier When knowledge, if the corresponding software version information of the third domain identifier is consistent with second software version information, it is determined that described Exist and the consistent third software version information of second software version information in first software version information.
10. device according to claim 9, which is characterized in that
The acquiring unit is also used to obtain the first cluster member number corresponding with first domain identifier;
The acquiring unit is marked if being also used to have third domain identical with second domain identifier in first domain identifier Know, then obtains the second cluster member number of the target virtual machine;
The comparing unit is also used to the second cluster member described in comparison and numbers third cluster member corresponding with third domain identifier Number;
The transmission unit is also used to obtain the second cluster member number and institute according to the comparison result of the comparing unit It is different to state third cluster member number, and is incited somebody to action in first software version information there are when the third software version information Third bridge MAC corresponding with the third software version information, which is carried, is sent to the destination virtual in notification message is added Machine.
CN201610079972.3A 2016-02-04 2016-02-04 A kind of stacking method and device Active CN105763368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610079972.3A CN105763368B (en) 2016-02-04 2016-02-04 A kind of stacking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610079972.3A CN105763368B (en) 2016-02-04 2016-02-04 A kind of stacking method and device

Publications (2)

Publication Number Publication Date
CN105763368A CN105763368A (en) 2016-07-13
CN105763368B true CN105763368B (en) 2019-04-09

Family

ID=56330576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610079972.3A Active CN105763368B (en) 2016-02-04 2016-02-04 A kind of stacking method and device

Country Status (1)

Country Link
CN (1) CN105763368B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221660B (en) * 2018-11-26 2023-03-24 中兴通讯股份有限公司 Method, apparatus and storage medium for I2C device management in a stacked system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6820029B2 (en) * 2000-12-22 2004-11-16 United Microelectronics Corp. Method for determining failure rate and selecting best burn-in time
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN101621407A (en) * 2009-08-11 2010-01-06 杭州华三通信技术有限公司 Method for processing non-uniformity of software versions and member device of stack system
CN101674198A (en) * 2009-10-23 2010-03-17 杭州华三通信技术有限公司 Method and device for realizing stacking
CN101478422B (en) * 2008-12-01 2010-12-22 北京星网锐捷网络技术有限公司 Self negotiation method and system for software version
CN102244669A (en) * 2010-05-12 2011-11-16 杭州华三通信技术有限公司 Software upgrading method in stacking equipment and stacking equipment
CN104869015A (en) * 2015-04-28 2015-08-26 杭州华三通信技术有限公司 Method for constructing star-shaped stack and virtual machine equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6820029B2 (en) * 2000-12-22 2004-11-16 United Microelectronics Corp. Method for determining failure rate and selecting best burn-in time
CN101478422B (en) * 2008-12-01 2010-12-22 北京星网锐捷网络技术有限公司 Self negotiation method and system for software version
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN101621407A (en) * 2009-08-11 2010-01-06 杭州华三通信技术有限公司 Method for processing non-uniformity of software versions and member device of stack system
CN101674198A (en) * 2009-10-23 2010-03-17 杭州华三通信技术有限公司 Method and device for realizing stacking
CN102244669A (en) * 2010-05-12 2011-11-16 杭州华三通信技术有限公司 Software upgrading method in stacking equipment and stacking equipment
CN104869015A (en) * 2015-04-28 2015-08-26 杭州华三通信技术有限公司 Method for constructing star-shaped stack and virtual machine equipment

Also Published As

Publication number Publication date
CN105763368A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN112911525B (en) Message and system for influencing service route by application function
JP6556875B2 (en) Software-defined data center and service cluster placement method there
US7460527B2 (en) Port aggregation for fibre channel interfaces
US10404773B2 (en) Distributed cluster processing system and packet processing method thereof
WO2019047740A1 (en) Interconnected region controller, interconnected region control method, and computer storage medium
US10439879B2 (en) Bandwidth management in a non-blocking network fabric
US20120303790A1 (en) Host Visibility as a Network Service
CN103812823A (en) Method, device and system for configuration information migration in thermal migration of virtual machine
US20130201875A1 (en) Distributed fabric management protocol
CN111464454B (en) Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center
CN110768862B (en) Cloud platform physical link connectivity detection device, method and system
CN105681445A (en) Method and device for selecting point-to-point transmission path of data
WO2013152718A1 (en) Path computation element communication protocol session establishment method and device
WO2015196923A1 (en) Method for sending information and network device
WO2013029507A1 (en) Management session establishment method, customer premises equipment and auto configuration server
US20240106708A1 (en) Fabric availability and synchronization
CN105763368B (en) A kind of stacking method and device
WO2016065925A1 (en) Controller replacing method and device
TW201132163A (en) Network interface selection method and network device thereof
CN103107942A (en) Tracking method and device of static route
US20200287784A1 (en) Priority based selection of time services
CN106130863A (en) The transfer approach of LAN protocol message, device and system
WO2018113633A1 (en) Packet forwarding method, packet forwarding controller, bras, and computer storage medium
CN109120520A (en) A kind of fault handling method and equipment
WO2015188682A1 (en) Service chain processing method, device and system

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: NEW H3C TECHNOLOGIES Co.,Ltd.

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

Applicant before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230616

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

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

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right