CN108833177A - Virtual switch management method and main control card - Google Patents

Virtual switch management method and main control card Download PDF

Info

Publication number
CN108833177A
CN108833177A CN201810657253.4A CN201810657253A CN108833177A CN 108833177 A CN108833177 A CN 108833177A CN 201810657253 A CN201810657253 A CN 201810657253A CN 108833177 A CN108833177 A CN 108833177A
Authority
CN
China
Prior art keywords
virtual
virtual switch
main control
line card
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810657253.4A
Other languages
Chinese (zh)
Other versions
CN108833177B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201810657253.4A priority Critical patent/CN108833177B/en
Publication of CN108833177A publication Critical patent/CN108833177A/en
Application granted granted Critical
Publication of CN108833177B publication Critical patent/CN108833177B/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
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/208Port mirroring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application provides a kind of virtual switch management method and main control card, belongs to data communication field.This method receives virtual switch request to create by the main control card in physical switches and creates virtual switch, and the virtual switch request to create includes the configuration parameter of the virtual switch;Then the main control card creates the virtual controlling unit of the virtual switch on the main control card according to the configuration parameter and creates the virtual line card unit of the virtual switch on the target line card in the physical switches.In this programme, by creating virtual switch in the main control card of physical switches, the function of physical switches may be implemented in virtual switch, to improve the resource utilization of physical switches, and under complicated business scene, it can avoid introducing more physical equipment, saved physical equipment cost.

Description

Virtual switch management method and main control card
Technical field
This application involves data communication fields, in particular to a kind of virtual switch management method and main control card.
Background technique
With the sustainable development of Internet technology, data volume shows explosive growth, therefore, the management and transmission of data It becomes more and more important.In face of mass data, data safety, intensive data management, reliable data transmission and high speed data processing Etc. demands, data center arise, and in data center's building process, core switch plays important role.
In order to realize that exchange function quickly handles a large amount of data, common practice is to exchange in the prior art The hardware of machine is upgraded, it is made to have more powerful data-handling capacity, and this mode is higher for hardware requirement, thus Cause equipment cost also higher.Or more data processing equipments are introduced, it is huge that this mode possesses data center Physical equipment is for carrying out data processing, and the resource of each physical equipment is limited, but for increasingly increased huge number According to amount, it is impossible to infinitely increase physical equipment, and cause increasing without limitation for cost.
Summary of the invention
The embodiment of the present application is designed to provide a kind of virtual switch management method and main control card.
In a first aspect, the embodiment of the present application provides a kind of virtual switch management method, the method includes:Main control card It receives virtual switch request to create and creates virtual switch, the virtual switch request to create includes the virtual switch The configuration parameter of machine;The main control card creates the virtual of the virtual switch according to the configuration parameter on the main control card Control unit and the corresponding virtual line card unit of the virtual switch is created on target line card, wherein virtual line card list Member carries out message forwarding for the port according to the target line card for its distribution, and the virtual controlling unit is used for described Virtual line card unit is managed.In the present solution, by creating virtual switch in the main control card of physical switches, it is virtual to hand over It changes planes and the function of physical switches may be implemented, to improve the resource utilization of physical switches, and in complicated business Under scene, it can avoid introducing more physical equipment, saved physical equipment cost.
Further, the main control card creates the virtual switch according to the configuration parameter on the main control card Virtual controlling unit and after creating the virtual line card unit of the virtual switch on target line card, the method is also wrapped It includes:The main control card triggering backup main control card controls single according to the standby virtual that the configuration parameter creates the virtual switch Member.This programme can be then void using another main control card as backup main control card when physical switches possess dual master control card Quasi- interchanger creates standby virtual control unit on backup main control card, standby so as to carry out for the resource of virtual switch Part, improve serious forgiveness.
Further, the main control card creates the void of the virtual switch according to the configuration parameter on target line card Quasi- line card unit, including:The main control card is distributed according to the virtual line card unit that the configuration parameter is the virtual switch All or part of physical port of the target line card, to create the virtual line card unit.
Further, the main control card creates the virtual switch according to the configuration parameter on the main control card Virtual controlling unit and after creating the virtual line card unit of the virtual switch on target line card, the method is also wrapped It includes:The main control card receives the starting request for starting the virtual switch;The main control card is based on starting request starting The virtual controlling unit and the virtual line card unit of the virtual switch.After creating virtual switch, then open Dynamic virtual switch works, and virtual switch is allowed to carry out data processing as physical switches, improves object Manage the resource utilization of interchanger.
Further, the main control card creates the virtual switch according to the configuration parameter on the main control card Virtual controlling unit and after creating the virtual line card unit of the virtual switch on target line card, the method is also wrapped It includes:The main control card receives the removal request for deleting the virtual switch;The main control card is deleted based on the removal request The virtual switch.When virtual switch no longer needs, which can be deleted in time, to avoid The wasting of resources in physical switches.
Second aspect, the embodiment of the present application provide a kind of main control card, including:Request receiving module, it is virtual for receiving Interchanger request to create simultaneously creates virtual switch, and the virtual switch request to create includes the configuration of the virtual switch Parameter;Creation module, for creating the virtual controlling of the virtual switch on the main control card according to the configuration parameter Unit and the corresponding virtual line card unit of the virtual switch is created on target line card, wherein virtual line card unit is used Message forwarding is carried out in the port according to the target line card for its distribution, the virtual controlling unit is used for described virtual Line card unit is managed.
Further, main control card further includes notification module:
The notification module creates the standby of the virtual switch according to the configuration parameter for triggering backup main control card Part virtual controlling unit.
Further, the creation module is also used to the dummy line according to the configuration parameter for the virtual switch Card unit distributes all or part of physical port of the target line card, to create the virtual line card unit.
Further, the request receiving module is also used to receive the starting request for starting the virtual switch;It is described Main control card further includes:Starting module, for starting the virtual controlling list of the virtual switch based on the starting request The first and described virtual line card unit.
Further, the request receiving module is also used to receive the removal request for deleting the virtual switch;It is described Main control card further includes:Removing module, for deleting the virtual switch based on the removal request.
The third aspect, the embodiment of the present application provide a kind of interchanger, including processor and memory, and the memory is deposited Computer-readable instruction fetch is contained, when the computer-readable instruction fetch is executed by the processor, operation such as above-mentioned first The step in the method that aspect provides.
Fourth aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, are stored thereon with computer program, the meter The step in the method that first aspect offer is as above provided is run when calculation machine program is executed by processor.
The embodiment of the present application provides a kind of virtual switch management method and main control card, passes through the master control in physical switches Clamping receives virtual switch request to create and creates virtual switch, and the virtual switch request to create includes the virtual friendship The configuration parameter changed planes;Then the main control card creates the virtual switch according to the configuration parameter on the main control card Virtual controlling unit and the virtual line card unit of the virtual switch is created on target line card, wherein virtual line card Unit is used to carry out message forwarding according to the port of the target line card for its distribution, and the virtual controlling unit is used for institute Virtual line card unit is stated to be managed.In the present solution, by creating virtual switch in the main control card of physical switches, virtually The function of physical switches may be implemented in interchanger, to improve the resource utilization of physical switches, and in complicated industry Under scene of being engaged in, it can avoid introducing more physical equipment, saved physical equipment cost.
Another feature and advantage of the application will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing the embodiment of the present application understanding.The purpose of the application and another advantage can be by written theorys Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain another relevant attached drawing.
Fig. 1 is a kind of flow chart of virtual switch management method provided by the embodiments of the present application;
Fig. 2 is the structure intention of a kind of physical switches provided by the embodiments of the present application and virtual switch;
Fig. 3 is a kind of structural block diagram of main control card provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of interchanger provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done All another embodiments obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Virtualization technology is a kind of resource management techniques, by the various actual resources of physical equipment, after being abstracted, being converted It shows, breaks the not cleavable obstacle of entity structure part, allow user than the configuration better way of script to answer With these resources.
It, can (host equipment be alternatively referred to as computer equipment, physics master in a host equipment by virtualization technology Machine, physical computer or host) on simulate one or more virtual machine.Virtual machine can equally work to host equipment, For example, for another example, user can access network by virtual machine for that can install operating system and application program on a virtual machine Resource.For a user, virtual machine can regard the application program of operation on the host device as, but virtual for operating in For application program in machine, virtual machine provides working environment just as real host equipment for the application program.
And in the prior art, virtual machine technique is typically used on physical host or physical server, and for applying It is not referred to then on interchanger, therefore, in order to realize intel Virtualization Technology application on switches, so that can in physical switches To fictionalize virtual switch, the function of physical switches is may be implemented in virtual switch, so as to improve physical switches Resource utilization can avoid introducing more physical equipment and under complicated business scene, saved physical equipment at This, the embodiment of the present application provides a kind of virtual switch management method.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and hereinafter the embodiment of the present application are proposed regarding to the issue above Scheme all should be the contribution that inventor makes the application during the application.
In the embodiment of the present application, virtual switch is operated on physical switches, similar with physical machine and virtual machine, It is that virtual unit is fictionalized using virtualization technology on the physical devices.
It, can be on a physical switches (Physical Switch, abbreviation PS) in the virtualization technology of interchanger Fictionalize one or more virtual switches (Virtual Switch, abbreviation VS).Virtual switch can be as physical switches Equally work, for example, user can on virtual switch installation control system and application program, but it is virtual for operating in For application program in interchanger, virtual switch provides work just as real physical switches for the application program Environment.
In the present embodiment, virtualization technology can be using various ways such as KVM, XEN, linux containers.
Fig. 1 is please referred to, Fig. 1 is a kind of flow chart of virtual switch management method provided by the embodiments of the present application, described Method includes the following steps:
Step S110:Main control card receives virtual switch request to create and creates virtual switch, the virtual switch Request to create includes the configuration parameter of the virtual switch.
Wherein, physical switches include main control card and line card, and main control card is responsible for managing and controlling for entire physical switches Function, line card are responsible for the message forwarding capability of physical switches.
The configuration interface for allowing user to create virtual switch is provided in physical switches, so, user is needing When creating virtual switch, virtual switch request to create can be triggered on the configuration interface of physical switches, can such as be passed through It configures interface and sends a control instruction to main control card, which is virtual switch request to create, is used to indicate master Control card creation virtual switch.Wherein, virtual switch request to create includes the configuration parameter of the virtual switch of creation, configuration Parameter includes but is not limited to:The CPU core number of virtual switch, memory size, disk size etc..
Step S120:The main control card creates the virtual switch according to the configuration parameter on the main control card Virtual controlling unit and the virtual line card unit that the virtual switch is created on target line card.
Wherein, in order to enable the function as physical switches may be implemented in virtual switch, then virtual switch is also It need to include virtual controlling unit and virtual line card unit, the function virtual controlling unit and main control card realization is responsible for void Quasi- interchanger manages and controls function, and for being managed to the virtual line card unit, virtual line card unit and line card It realizes the same function, that is, is responsible for the message forwarding capability of physical switches, virtual line card unit is used for basis as its distribution The port of the line card carries out message forwarding.
The main control card creates virtual switch, then according to institute after receiving virtual switch request to create first The configuration parameter for stating virtual switch creates the virtual controlling unit of the virtual switch on main control card, the virtual controlling list Member operates on main control card, and the virtual line card unit of the virtual switch is then created on corresponding target line card, this is virtual Line card unit is corresponding with above-mentioned virtual controlling unit, and the mode for creating virtual line card unit can be by the complete of target line card Portion or part physical port assignment give virtual line card unit, so that virtual line card unit is real by the physical port on target line card The forwarding of existing message.
Virtual switch can be created in physical switches by virtualization technology as a result, virtual switch may be implemented The function of physical switches reduces the energy consumption of physical switches so as to improve the resource utilization of physical switches. And under complicated business scene, it can avoid introducing more physical equipment, saved physical equipment cost, adopted in the present embodiment With virtual switch, without increasing physical equipment, so as to save physical equipment cost, also, since virtual switch can To realize the function of physical switches, so, virtual switch can also carry out the forwarding of message, to improve physical exchange The data-handling efficiency of machine.
In addition, as an implementation, multiple virtual switches can also be created on the main control card of physical switches, If physical switches are after having created above-mentioned virtual switch, it also can receive another virtual switch request to create and create another One virtual switch, another virtual switch request to create includes the configuration parameter of another virtual switch, described Main control card according to the configuration parameter the main control card create another virtual controlling unit of another virtual switch with And another virtual line card unit of another virtual switch is created on the line card in the physical switches, wherein institute State another virtual line card unit for according to for its distribution the physical switches port progress message forwarding, it is described another Virtual controlling unit is for being managed another virtual line card unit.
It should be noted that the mode of the above-mentioned another virtual switch of creation and the mode one of above-mentioned creation virtual switch It causes, no longer excessively repeats herein.
In addition, another main control card can be used as backup main control card when physical switches possess dual master control card, it is possible to After having created virtual switch on main control card, the main control card triggering backup main control card is according to configuration parameter creation The standby virtual control unit of virtual switch.
Thus, it is possible to the standby virtual control unit of virtual switch be created on backup main control card, so that virtually Interchanger can also possess double virtual controlling units, can back up to the resource of virtual switch, improve serious forgiveness.
Due to creating multiple virtual switches in physical switches, and a virtual switch includes virtual controlling list Member and virtual line card unit, so distinguishing to realize to multiple virtual switches, each virtual switch is assigned with Corresponding identification information is the mark of virtual switch belonging to virtual controlling unit distribution when creating virtual controlling unit Information creates the mapping relations with the virtual controlling unit then when creating virtual line card unit for the virtual line card unit, Or the identification information of affiliated virtual switch is also distributed for the virtual line card unit, for example, for creating virtual switch 1, when creating the virtual controlling unit of the virtual switch 1, the mark of the virtual switch 1 is distributed for the virtual controlling unit Information, such as 1 when creating the virtual line card unit of virtual switch 1, while being virtual line card unit creation and virtual controlling Mapping relations one by one between unit, or be the identification information 1 of virtual line card unit distribution virtual switch 1, so as to Know that the virtual controlling unit and virtual line card unit belong to virtual switch 1.
For in other virtual switches virtual controlling unit and virtual line card unit can also be used aforesaid way into Row setting carries out the virtual controlling unit and virtual line card unit of multiple virtual switches in physical switches to realize It distinguishes.
It should be noted that as shown in Fig. 2, physical switches may include multiple main control cards and multiple line cards, virtually Interchanger may also comprise multiple virtual controlling units and multiple virtual line card units, can create on a main control card multiple virtual Control unit can create multiple virtual line card units on one line card, so, in the virtual controlling list of creation virtual switch When first, the mapping relations between virtual controlling unit and main control card can be first created, i.e., in which main control card of physical switches Business master-slave back-up or load-balancing function may be implemented between virtual controlling unit in upper creation virtual controlling unit.? When creating virtual line card unit, if there are multiple line cards, also need to create corresponding line for the virtual line card unit Mapping relations between card create the virtual line card unit on which line card, and also need to create which object on the line card Reason port belongs to the virtual line card unit and carries out service communication for virtual switch, if line card 1 has 24 physical ports, at this Creation has virtual line card unit 1 and virtual line card unit 2 on line card 1, then for virtual line card unit 1 and virtual line card unit 2 When distributing physical port, 12 physical ports in 24 can be distributed into virtual line card unit 1 and used, remaining remaining 12 A physical port distributes to the use of virtual line card unit 2.
So multiple virtual controlling units can be created on a main control card, can be created on a line card multiple virtual Line card unit realizes the purpose more than a void so that a physical switches can blur out multiple virtual switches, has saved hard Part device resource, reduces hardware cost.
It as an implementation,, can also be right after creating virtual switch in order to realize the management to virtual switch The virtual switch such as is started, is deleted, changing configuration information at the operation, to realize the management to virtual switch.Wherein, Start-up course to virtual switch is:The main control card receives the starting request for starting the virtual switch, the master control Block the virtual controlling unit and the virtual line card unit for starting the virtual switch based on the starting request.
If can be controlled using external control devices physical switches, can by external control devices to Physical switches send the starting request of a starting virtual switch, certainly, starting can be also triggered directly in physical switches The starting of virtual switch is requested, and as clicked the corresponding button in physical switches, corresponding virtual switch is selected to be opened It is dynamic.The control unit of physical switches starts the virtual switch after receiving starting request.It can in physical switches To be configured to the virtual switch management module of management virtual switch, virtual switch management module can be used for managing void The relevant rudimentary configuration information of quasi- control unit and virtual line card unit, so, on startup, virtual switch pipe can be passed through Reason module starts virtual controlling unit by virtualization technology on main control card.
Virtual switch management module can trigger virtual line card unit after the completion of perceiving virtual controlling unit starting Starting such as starts virtual line card unit by virtualization technology on line card, the starting of virtual switch can be completed, starting After virtual switch, it can start to load corresponding software module (such as upper application module, including device management module, routing Protocol module etc.), upper application module at runtime, does not perceive the difference of bottom running environment, and processing logical AND operates in It is consistent on main control card.
After virtual switch starting, virtual line card unit needs are managed by virtual controlling unit, virtual line card list Message communication can be carried out between member and virtual controlling unit, interactive controlling message, such virtual line card unit can be virtual Control unit finds and manages that virtual controlling unit is communicated using the physical port of virtual line card unit.In addition, upper layer is answered It is operated in virtual controlling unit and virtual line card unit with module (device management module, Routing Protocol Module etc.) and carries out business Processing, virtual controlling unit and virtual line card unit provide service identical with main control card and line card, and upper application module will not Perceive the running environment of oneself.
In addition, if when fictionalizing multiple virtual switches in physical switches, since each virtual switch carries phase The identification information answered can carry the virtual switch in starting request then in the starting request for sending virtual switch Identification information, then main control card receive the starting request after can need which virtual switch started according to identification information judgment Machine starts the virtual controlling unit and virtual line card unit of identification information having the same.
It as an implementation,, can also be right if the virtual switch no longer needs after having created virtual switch The virtual switch carries out delete operation, to avoid the wasting of resources of physical switches.Deletion behaviour is being carried out to virtual switch When making, corresponding delete operation can be triggered in physical switches, such as clicks corresponding button, and selection is in requisition for deletion Virtual switch sends removal request to main control card, delete it is, of course, also possible to be sent by external control devices to main control card Request.Main control card deletes the void after receiving the removal request for deleting the virtual switch, based on the removal request Quasi- interchanger.Its specific deletion process is:The main control card controls first operates in the virtual controlling unit and dummy line Upper application module on card unit is out of service, then returns to the physical port in advance for virtual line card unit distribution The line card closes the operation of virtual controlling unit and virtual line card unit, then in the configuration ginseng for deleting the virtual switch Number information, thus completes the delete operation to the virtual switch.
In addition, if when fictionalizing multiple virtual switches in physical switches, since each virtual switch carries phase The identification information answered can carry the virtual switch in the removal request then when sending the removal request of virtual switch Identification information, then main control card can need which virtual switch deleted after receiving the removal request according to identification information judgment Machine deletes the virtual controlling unit and virtual line card unit of identification information having the same.
Referring to figure 3., Fig. 3 is a kind of structural block diagram of main control card 200 provided by the embodiments of the present application, the main control card packet It includes:
Request receiving module 210, for receiving virtual switch request to create and creating virtual switch, the virtual friendship Request to create of changing planes includes the configuration parameter of the virtual switch;
Creation module 220, for creating the void of the virtual switch on the main control card according to the configuration parameter Intend control unit and creates the corresponding virtual line card of the virtual switch on the target line card in the physical switches Unit, wherein virtual line card unit is used to carry out message forwarding, the void according to the port of the target line card for its distribution Quasi- control unit is for being managed the virtual line card unit.
As an implementation, the main control card further includes notification module:
The notification module creates the standby of the virtual switch according to the configuration parameter for triggering backup main control card Part virtual controlling unit.
As an implementation, the creation module 220 is also used to according to the configuration parameter be the virtual switch The virtual line card unit of machine distributes all or part of physical port of the target line card, to create the virtual line card unit.
As an implementation, the request receiving module 210 is also used to receive opening for the starting virtual switch Dynamic request;
The main control card further includes:
Starting module, for starting the virtual controlling unit and the institute of the virtual switch based on the starting request State virtual line card unit.
As an implementation, the request receiving module 210 is also used to receive and deletes deleting for the virtual switch Except request;
The main control card further includes:
Removing module, for deleting the virtual switch based on the removal request.
Referring to figure 4., Fig. 4 is a kind of structural schematic diagram of interchanger provided by the embodiments of the present application, which can be with Including:At least one processor 410, such as CPU, at least one communication interface 420, at least one processor 430 and at least one A communication bus 440.Wherein, communication bus 440 is for realizing the direct connection communication of these components.Wherein, the present invention is implemented The communication interface 420 of equipment is used to carry out the communication of signaling or data with other node devices in example.Memory 430 can be height Fast RAM memory is also possible to non-labile memory (non-volatile memory), and a for example, at least disk is deposited Reservoir.Memory 430 optionally can also be that at least one is located remotely from the storage device of aforementioned processor.In memory 430 It is stored with computer-readable instruction fetch, and has computer-readable instruction fetch luck row above-mentioned in the execution memory 430 of processor 410 Virtual switch administrative law in step.
The embodiment of the present application also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer journey The step in the virtual switch management method as above stated is run when sequence is executed by processor.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
In conclusion the embodiment of the present application provides a kind of virtual switch management method and main control card, pass through physical exchange Main control card in machine receives virtual switch request to create and creates virtual switch, and the virtual switch request to create includes The configuration parameter of the virtual switch;Then described in the main control card creates on the main control card according to the configuration parameter The virtual controlling unit of virtual switch and the virtual switch is created on the target line card in the physical switches Virtual line card unit, wherein virtual line card unit be used for according to be its distribution the target line card port carry out message Forwarding, the virtual controlling unit is for being managed the virtual line card unit.In the present solution, by physical switches Main control card in create virtual switch, the function of physical switches may be implemented in virtual switch, so as to improve physics The resource utilization of interchanger, and under complicated business scene, it can avoid introducing more physical equipment, saved physics and set Standby cost.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any another variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also another element including being not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.

Claims (10)

1. a kind of virtual switch management method, which is characterized in that the method includes:
Main control card receives virtual switch request to create and creates virtual switch, and the virtual switch request to create includes institute State the configuration parameter of virtual switch;
The main control card creates the virtual controlling unit of the virtual switch according to the configuration parameter on the main control card And the corresponding virtual line card unit of the virtual switch is created on target line card, wherein virtual line card unit is used for root Message forwarding is carried out according to the port of the target line card for its distribution, the virtual controlling unit is used for the virtual line card Unit is managed.
2. the method according to claim 1, wherein the main control card is according to the configuration parameter in the master control The virtual controlling unit of the virtual switch is created on card and the virtual of the virtual switch is created on target line card After line card unit, the method also includes:
The main control card triggering backup main control card is controlled according to the standby virtual that the configuration parameter creates the virtual switch Unit.
3. the method according to claim 1, wherein the main control card is according to the configuration parameter in target line card The virtual line card unit of the upper creation virtual switch, including:
The main control card distributes the target line card according to the virtual line card unit that the configuration parameter is the virtual switch All or part of physical port, to create the virtual line card unit.
4. the method according to claim 1, wherein the main control card is according to the configuration parameter in the master control The virtual controlling unit of the virtual switch is created on card and the virtual of the virtual switch is created on target line card After line card unit, the method also includes:
The main control card receives the starting request for starting the virtual switch;
The main control card starts the virtual controlling unit of the virtual switch and described virtual based on the starting request Line card unit.
5. the method according to claim 1, wherein the main control card is according to the configuration parameter in the master control The virtual controlling unit of the virtual switch is created on card and the virtual of the virtual switch is created on target line card After line card unit, the method also includes:
The main control card receives the removal request for deleting the virtual switch;
The main control card is based on the removal request and deletes the virtual switch.
6. a kind of main control card, which is characterized in that including:
Request receiving module, for receiving virtual switch request to create and creating virtual switch, the virtual switch wound Build the configuration parameter that request includes the virtual switch;
Creation module, for creating the virtual controlling list of the virtual switch on the main control card according to the configuration parameter Member and create the corresponding virtual line card unit of the virtual switch on target line card, wherein virtual line card unit is used for Message forwarding is carried out according to the port of the target line card for its distribution, the virtual controlling unit is used for the dummy line Card unit is managed.
7. main control card according to claim 6, which is characterized in that the main control card further includes notification module:
The notification module creates the virtual control of the virtual switch for triggering backup main control card according to the configuration parameter Unit processed.
8. main control card according to claim 6, which is characterized in that the creation module is also used to be joined according to the configuration Number is that the virtual line card unit of the virtual switch distributes all or part of physical port of the target line card, to create State virtual line card unit.
9. main control card according to claim 6, which is characterized in that
The request receiving module is also used to receive the starting request for starting the virtual switch;
The main control card further includes:
Starting module, for based on the virtual controlling unit for starting the request starting virtual switch and the void Quasi- line card unit.
10. main control card according to claim 6, which is characterized in that
The request receiving module is also used to receive the removal request for deleting the virtual switch;
The main control card further includes:
Removing module, for deleting the virtual switch based on the removal request.
CN201810657253.4A 2018-06-22 2018-06-22 Virtual switch management method and master control card Active CN108833177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810657253.4A CN108833177B (en) 2018-06-22 2018-06-22 Virtual switch management method and master control card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810657253.4A CN108833177B (en) 2018-06-22 2018-06-22 Virtual switch management method and master control card

Publications (2)

Publication Number Publication Date
CN108833177A true CN108833177A (en) 2018-11-16
CN108833177B CN108833177B (en) 2021-08-03

Family

ID=64137600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810657253.4A Active CN108833177B (en) 2018-06-22 2018-06-22 Virtual switch management method and master control card

Country Status (1)

Country Link
CN (1) CN108833177B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110536188A (en) * 2019-07-18 2019-12-03 烽火通信科技股份有限公司 OLT device management method and system
CN116192755A (en) * 2023-04-28 2023-05-30 惠州迈腾伟业科技发展有限公司 Congestion processing method and system based on virtual switch establishment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960281A (en) * 2005-11-02 2007-05-09 盛科网络有限公司 Virtual internet exchanging system having virtual line card
CN102752147A (en) * 2012-07-17 2012-10-24 华为技术有限公司 Method and device for creating network equipment
US20130142197A1 (en) * 2002-11-21 2013-06-06 Juniper Networks, Inc. Systems and methods for implementing virtual switch planes in a physical switch fabric
CN104009929A (en) * 2013-02-21 2014-08-27 中兴通讯股份有限公司 Method for managing logical router (LR), and physical router
CN107995319A (en) * 2018-01-08 2018-05-04 迈普通信技术股份有限公司 Virtual unit collocation method and the network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130142197A1 (en) * 2002-11-21 2013-06-06 Juniper Networks, Inc. Systems and methods for implementing virtual switch planes in a physical switch fabric
CN1960281A (en) * 2005-11-02 2007-05-09 盛科网络有限公司 Virtual internet exchanging system having virtual line card
CN102752147A (en) * 2012-07-17 2012-10-24 华为技术有限公司 Method and device for creating network equipment
CN104009929A (en) * 2013-02-21 2014-08-27 中兴通讯股份有限公司 Method for managing logical router (LR), and physical router
CN107995319A (en) * 2018-01-08 2018-05-04 迈普通信技术股份有限公司 Virtual unit collocation method and the network equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110536188A (en) * 2019-07-18 2019-12-03 烽火通信科技股份有限公司 OLT device management method and system
CN110536188B (en) * 2019-07-18 2022-02-01 烽火通信科技股份有限公司 OLT equipment management method and system
CN116192755A (en) * 2023-04-28 2023-05-30 惠州迈腾伟业科技发展有限公司 Congestion processing method and system based on virtual switch establishment
CN116192755B (en) * 2023-04-28 2023-08-11 惠州迈腾伟业科技发展有限公司 Congestion processing method and system based on virtual switch establishment

Also Published As

Publication number Publication date
CN108833177B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN102710814B (en) The control method of virtual machine IP address and device
CN105812171B (en) A kind of the network function VNF control method and equipment of virtualization
US10917294B2 (en) Network function instance management method and related device
CN106031116B (en) A kind of correlating method, the apparatus and system of NS and VNF
WO2018205325A1 (en) Method and system for use in constructing content delivery network platform on heterogeneous resources
CN108304260B (en) Virtualization operation scheduling system based on high-performance cloud computing and implementation method thereof
WO2017113201A1 (en) Network service lifecycle management method and device
CN107689882A (en) The method and apparatus of service deployment in a kind of virtualization network
CN103078965B (en) The IP address management method of virtual machine
CN111880902A (en) Pod creation method, device, equipment and readable storage medium
CN107846313B (en) A kind of method and the network equipment of the generation of network service moulding plate
CN101739287A (en) Device, system and method for managing virtual machines
CN107977254B (en) Method for responding to request in cloud data system and computer-readable storage medium
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN109120444B (en) Cloud resource management method, processor and storage medium
CN106878204A (en) The creation method and device of a kind of virtual machine
CN108319524A (en) A kind of method and device that baseboard management controller passes through KVM carry files
CN104537045A (en) Service distribution method and device based on distributive system
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN107291395A (en) A kind of LUN on-line rapid estimations method and system
CN108833177A (en) Virtual switch management method and main control card
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN104809020B (en) A kind of mthods, systems and devices for generating snapshot
CN102929693B (en) Performance evaluation method and device for servers of whole equipment cabinet
CN108667750B (en) Virtual resource management method and device

Legal Events

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