CN108039968A - Network optimized approach, equipment and computer-readable recording medium - Google Patents

Network optimized approach, equipment and computer-readable recording medium Download PDF

Info

Publication number
CN108039968A
CN108039968A CN201711326927.4A CN201711326927A CN108039968A CN 108039968 A CN108039968 A CN 108039968A CN 201711326927 A CN201711326927 A CN 201711326927A CN 108039968 A CN108039968 A CN 108039968A
Authority
CN
China
Prior art keywords
message
type
initial
flow table
data
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
CN201711326927.4A
Other languages
Chinese (zh)
Other versions
CN108039968B (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.)
Tai Xintong Information Technology Co Ltd Of Shenzhen
Original Assignee
Tai Xintong Information Technology Co Ltd Of Shenzhen
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 Tai Xintong Information Technology Co Ltd Of Shenzhen filed Critical Tai Xintong Information Technology Co Ltd Of Shenzhen
Priority to CN201711326927.4A priority Critical patent/CN108039968B/en
Publication of CN108039968A publication Critical patent/CN108039968A/en
Application granted granted Critical
Publication of CN108039968B publication Critical patent/CN108039968B/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/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Landscapes

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

Abstract

The invention discloses a kind of network optimized approach, equipment and computer-readable recording medium, the described method includes:When detecting that the calculate node in the OpenStack starts, the SDN controllers cluster being connected with the calculate node is called to issue initial flow table to the virtual bridge inside the calculate node;The initial message data of virtual machine transmission is received by the virtual bridge, and determines whether the type of message of the initial message data matches with the type of message in the initial flow table;If so, then by the initial packet data transmission to the SDN controllers cluster;The SDN controllers cluster is called to control corresponding module to generate flow table according to the type of message of the initial message data, and by the flow table issuance to the virtual switch associated with the switch identification in the initial message data.The present invention can effectively avoid the Single Point of Faliure problem of OpenStack, and effectively carry out behavior extension.

Description

Network optimized approach, equipment and computer-readable recording medium
Technical field
The present invention relates to the communications field, more particularly to a kind of network optimized approach, equipment and computer-readable recording medium.
Background technology
With the fast development of the communication technology, OpenStack cloud computing platforms also produce therewith, and OpenStack's is primary In scheme, all physical servers are all interconnected by interchanger, and (are typically that a common x86 is serviced by network node Device) the relevant network function of physical server distribution is distributed to, all virtual machines are supported by single network node.
In the primary scheme of OpenStack, single network node occur delaying machine the problems such as when, can be to whole Virtual network in OpenStack impacts, so as to Single Point of Faliure problem occur, further, since being single network node collection Middle processing network traffics, and still being run on common X86 servers, when virtual machine is larger, can not effectively into How row behavior extension, therefore, avoid the Single Point of Faliure problem of OpenStack, and the effective behavior extension that carries out is current Urgent problem to be solved.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
The content of the invention
It is a primary object of the present invention to provide a kind of network optimized approach, equipment and computer-readable recording medium, purport Solving the problems, such as how to avoid the Single Point of Faliure of OpenStack, and the effective technical problem for carrying out behavior extension.
To achieve the above object, the present invention provides a kind of network optimized approach, and the network optimized approach is applied to OpenStack cloud computing platforms, the network optimized approach comprise the following steps:
When detecting that the calculate node in the OpenStack starts, the SDN controls being connected with the calculate node are called Device cluster processed issues initial flow table to the virtual bridge inside the calculate node;
The initial message data of virtual machine transmission is received by the virtual bridge, and determines the initial message data Whether type of message matches with the type of message in the initial flow table;
, will be described first when the type of message of the initial message data is matched with the type of message in the initial flow table Beginning packet data transmission is to the SDN controllers cluster;
The SDN controllers cluster is called to control corresponding module to generate according to the type of message of the initial message data Flow table, and by the flow table issuance to the virtual switch associated with the switch identification in the initial message data.
Optionally it is determined that the type of message of the initial message data whether with the type of message in the initial flow table With the step of include:
Message label information is extracted from the initial message data, and according to the message label information and default message Type list determines the type of message of the initial message data;
The type of message is compared with each type of message in the initial flow table, to obtain type of message ratio To information;
Judge whether the type of message comparison information is default comparison information;
If the type of message comparison information is default comparison information, it is determined that the type of message of the initial message data Matched with the type of message in the initial flow table;
If the type of message comparison information is not default comparison information, it is determined that the message class of the initial message data Type is mismatched with the type of message in the initial flow table.
Alternatively, call the SDN controllers cluster corresponding according to the type of message control of the initial message data The step of module generation flow table, includes:
The SDN controllers cluster is called to determine the type of message of the initial message data, and according to the message class Type determines module to be controlled;
Module to be controlled described in the SDN controllers clustered control is called, based on the initial message data generation flow table.
Alternatively, by the flow table issuance to the virtual friendship associated with the switch identification in the initial message data After the step of changing planes, the network optimized approach further includes:
When detecting virtual machine with external network communication, the SDN controllers clustered control hardware switch pair is called The virtual machine is handled.
Alternatively, the network optimized approach further includes:
When performing the call operation of the SDN controllers cluster, the call operation day of the SDN controllers cluster is recorded Will, and the current state of the call operation daily record is registered as wait state;
After the call operation runs succeeded, the current state of the call operation daily record is registered as success status, And after the call operation performs time-out, the current state of the call operation daily record is registered as timeout mode;
By the call operation daily record that current state is success status, and the call operation day that current state is timeout mode Will write operation log database.
Alternatively, it is described by the call operation daily record that current state is success status, and current state is timeout mode Call operation daily record write-in operation log database the step of after, the network optimized approach further includes:
Call operation of the current state as success status is read from the operation log database using interval preset time Daily record;
According to current state for success status call operation daily record by Neutron databases in the OpenStack Data are synchronized in the database of the SDN controllers cluster.
In the OpenStack data of Neutron databases be synchronized to the SDN controllers cluster database it Afterwards, the call operation daily record that current state is success status is deleted from the operation log database.
In addition, to achieve the above object, the present invention also provides a kind of network optimization equipment, applied to OpenStack cloud meters Platform is calculated, the network optimization equipment includes:Memory, processor and it is stored on the memory and can be in the processor The network optimization program of upper operation, the network optimization program realize the network optimization as described above when being performed by the processor The step of method.
The present invention also provides a kind of computer-readable recording medium, network is stored with the computer-readable recording medium The step of optimization program, the network optimization program realizes network optimized approach as described above when being executed by processor.
The present invention provides a kind of network optimized approach, equipment and computer-readable recording medium, and the present invention passes through when detection When calculate node into OpenStack starts, the SDN controllers cluster being connected with the calculate node is called to the calculate node Internal virtual bridge issues initial flow table, and the initial message data of virtual machine transmission is then received by the virtual bridge, and Determine whether the type of message of the initial message data matches with the type of message in the initial flow table, if initial message data Type of message matched with the type of message in the initial flow table, then by the packet data transmission to SDN controller clusters, finally SDN controllers cluster is called to control corresponding module to generate flow table according to the type of message of the message data, and by under the flow table It is sent to the virtual switch associated with the switch identification in the initial message data so that calculate node possesses distribution two Function, the single calculate node such as layer switch and distributed route and distributed DHCP can complete primary net in OpenStack The function of network node, so as to utilize calculate node alternative networks node, the network concentrated is not present in whole OpenStack Node, can effectively avoid Single Point of Faliure problem, optimize OpenStack, while by adding or deleting calculate node Behavior extension is carried out, easy to the behavior extension of OpenStack.
Brief description of the drawings
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of inventive network optimization method first embodiment;
Fig. 3 is the refinement flow diagram of step S102 in inventive network optimization method first embodiment;
Fig. 4 is the refinement flow diagram of step S104 in inventive network optimization method first embodiment
Fig. 5 is the flow diagram of inventive network optimization method 3rd embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:By when detect the calculate node in OpenStack start when, The SDN controllers cluster being connected with the calculate node is called to issue initial flow table to the virtual bridge inside the calculate node, so The initial message data of virtual machine transmission is received by the virtual bridge afterwards, and the type of message of the definite initial message data is The no type of message with the initial flow table matches, if the type of message of initial message data and the message in the initial flow table Type matching, then by the packet data transmission to SDN controller clusters, finally call SDN controllers cluster according to the message number According to type of message control corresponding module generation flow table, and by the flow table issuance to the interchanger in the initial message data The associated virtual switch of mark.
Due to the primary scheme of OpenStack, single network node occur delaying machine the problems such as when, can be to whole Virtual network in OpenStack impacts, so as to Single Point of Faliure problem occur, further, since being single network node collection Middle processing network traffics, and still being run on common X86 servers, when virtual machine is larger, can not effectively into Row behavior extension.
The embodiment of the present invention provides a kind of network optimized approach, first when detecting that the calculate node in OpenStack opens When dynamic, the SDN controllers cluster being connected with the calculate node is called to issue initial flow to the virtual bridge inside the calculate node Table, then receives the initial message data of virtual machine transmission by the virtual bridge, and determines the message of the initial message data Whether type matches with the type of message in the initial flow table, if in the type of message and the initial flow table of initial message data Type of message matching, then by the packet data transmission to SDN controller clusters, finally call SDN controllers cluster according to this The type of message of message data controls corresponding module generation flow table, and by the flow table issuance to in the initial message data The virtual switch that switch identification is associated so that calculate node possesses distributed Layer 2 switch and distributed route and divides The functions such as cloth DHCP, single calculate node can complete the function of primary network node in OpenStack, so as to utilize Calculate node alternative networks node, there is no the network node concentrated in whole OpenStack, can effectively avoid single-point therefore Barrier problem, optimizes OpenStack, while can carry out behavior extension by adding or deleting calculate node, easy to OpenStack Behavior extension.
The present invention provides a kind of network optimization equipment.
With reference to Fig. 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the network optimization equipment can include:Processor 1001, such as CPU, communication bus 1002, user Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used for realization the connection between these components Communication.User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optionally with Family interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally include standard Wireline interface, wave point (such as WI-FI interfaces).Memory 1005 can be depositing for high-speed RAM memory or stabilization Reservoir (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of foregoing place Manage the storage device of device 1001.
Alternatively, which can also include camera, RF (Radio Frequency, radio frequency) circuit, pass Sensor, voicefrequency circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensors.
It will be understood by those skilled in the art that the network optimization equipment structure shown in Fig. 1 is not formed to the network optimization The restriction of equipment, can include than illustrating more or fewer components, either combine some components or different component cloth Put.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network Believe module, Subscriber Interface Module SIM and network optimization program.Wherein, operating system be management and network optimization equipment hardware with it is soft The program of part resource, supports network communication module, Subscriber Interface Module SIM, network optimization program and other programs or the fortune of software OK;Network communication module is used to managing and controlling network interface 1004;Subscriber Interface Module SIM is used to managing and controlling user interface 1003。
In the network optimization equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is taken with backstage Device be engaged in into row data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication; And processor 1001 can be used for calling the network optimization program stored in memory 1005, and realize following steps:
When detecting that the calculate node in the OpenStack starts, the SDN controls being connected with the calculate node are called Device cluster processed issues initial flow table to the virtual bridge inside the calculate node;
The initial message data of virtual machine transmission is received by the virtual bridge, and determines the initial message data Whether type of message matches with the type of message in the initial flow table;
, will be described first when the type of message of the initial message data is matched with the type of message in the initial flow table Beginning packet data transmission is to the SDN controllers cluster;
The SDN controllers cluster is called to control corresponding module to generate according to the type of message of the initial message data Flow table, and by the flow table issuance to the virtual switch associated with the switch identification in the initial message data.
Further, processor 1001 can be used for calling the network optimization program stored in memory 1005, and realize Following steps:
Message label information is extracted from the initial message data, and according to the message label information and default message Type list determines the type of message of the initial message data;
The type of message is compared with each type of message in the initial flow table, to obtain type of message ratio To information;
Judge whether the type of message comparison information is default comparison information;
If the type of message comparison information is default comparison information, it is determined that the type of message of the initial message data Matched with the type of message in the initial flow table;
If the type of message comparison information is not default comparison information, it is determined that the message class of the initial message data Type is mismatched with the type of message in the initial flow table.
Further, processor 1001 can be used for calling the network optimization program stored in memory 1005, and realize Following steps:
The SDN controllers cluster is called to determine the type of message of the initial message data, and according to the message class Type determines module to be controlled;
Module to be controlled described in the SDN controllers clustered control is called, based on the initial message data generation flow table.
Further, processor 1001 can be used for calling the network optimization program stored in memory 1005, and realize Following steps:
When detecting virtual machine with external network communication, the SDN controllers clustered control hardware switch pair is called The virtual machine is handled
Further, processor 1001 can be used for calling the network optimization program stored in memory 1005, and realize Following steps:
When performing the call operation of the SDN controllers cluster, the call operation day of the SDN controllers cluster is recorded Will, and the current state of the call operation daily record is registered as wait state;
After the call operation runs succeeded, the current state of the call operation daily record is registered as success status, And after the call operation performs time-out, the current state of the call operation daily record is registered as timeout mode;
By the call operation daily record that current state is success status, and the call operation day that current state is timeout mode Will write operation log database.
Further, processor 1001 can be used for calling the network optimization program stored in memory 1005, and realize Following steps:
Call operation of the current state as success status is read from the operation log database using interval preset time Daily record;
According to current state for success status call operation daily record by Neutron databases in the OpenStack Data are synchronized in the database of the SDN controllers cluster.
In the OpenStack data of Neutron databases be synchronized to the SDN controllers cluster database it Afterwards, the call operation daily record that current state is success status is deleted from the operation log database.
Each embodiment of the specific embodiment and following network optimized approach of inventive network optimization equipment is essentially identical, This is not repeated.
The present invention also provides a kind of network optimized approach.
With reference to Fig. 2, Fig. 2 is the flow diagram of inventive network optimization method first embodiment.
In the present embodiment, which includes:
Step S101, when detecting that the calculate node in the OpenStack starts, calls and connects with the calculate node The SDN controllers cluster connect issues initial flow table to the virtual bridge inside the calculate node;
In the present embodiment, the present invention mainly realizes the distributed exchange of calculate node by way of OpenFlow flow table The functions such as machine, DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) and route, make Obtain calculate node and possess the function that network node possesses in the primary schemes of OpenStack so that in the OpenStack after optimization not In the presence of the network node of centralized processing network traffics, so as to effectively avoid the Single Point of Faliure in the primary schemes of OpenStack from asking Topic.OpenFlow flow table is made of many flow table items, and flow table item then represents forwarding rule, and the data packet into interchanger passes through Flow table is inquired about to obtain corresponding operation.Flow table item is mainly by matching field (match fields), counter (counters) Formed with 3 parts such as operations (instructions).The structure of matching field includes many occurrences, covers link layer, net Network layers and transport layer largely identify.
Specifically, which is applied to network optimization equipment, the network optimization equipment and calculate node and SDN (Software Defined Network, software defined network) controller cluster connects, each meter in OpenStack Operator node is connected with SDN controller clusters, when detecting that the calculate node in OpenStack starts, the network optimization equipment The SDN controllers cluster being connected with the calculate node is called to issue initial flow table to the virtual bridge inside the calculate node, should Initial flow table includes the information such as type of message and the corresponding operation of type of message.The SDN controllers cluster is controlled by some SDN Device forms, it is necessary to which explanation, the quantity for the SDN controllers which includes can be by those skilled in the art's base It is configured in actual conditions, the present embodiment is not especially limited this.
Step S102, the initial message data of virtual machine transmission is received by the virtual bridge, and is determined described initial Whether the type of message of message data matches with the type of message in the initial flow table;
The network optimization equipment receives the initial message number of virtual machine transmission by the virtual bridge inside the calculate node According to, and determine whether the type of message of the initial message data matches with the type of message in the initial flow table.
Specifically, it is the refinement flow diagram of step S102 described in Fig. 2 with reference to Fig. 3, Fig. 3, step S102 includes:
Step S1021, message label information is extracted from the initial message data, and according to the message label information The type of message of the initial message data is determined with default type of message table;
Step S1022, the type of message is compared with each type of message in the initial flow table, to obtain Type of message comparison information;
Step S1023, judges whether the type of message comparison information is default comparison information;
Step S1024, if the type of message comparison information is default comparison information, it is determined that the initial message data Type of message matched with the type of message in the initial flow table;
Step S1025, if the type of message comparison information is not default comparison information, it is determined that the initial message number According to type of message mismatched with the type of message in the initial flow table.
The network optimization equipment receives the initial message of virtual machine transmission by the virtual bridge inside the calculate node After data, message label information is extracted from the initial message data, and according to the message label information and default message class Type table determines the type of message of the initial message data, i.e., is obtained and the message label information association from default type of message table Type of message, and the type of message that the initial message data will be determined as with the type of message of the message label information association, so The type of message of the initial message data is compared with each type of message in the initial flow table afterwards, to obtain message class Type comparison information, that is, the comparison of the type of message and each type of message in the initial flow table that obtain the initial message data are believed Breath, and judge whether the type of message comparison information is default comparison information, if the type of message comparison information is default ratio To information, it is determined that the type of message of the initial message data is matched with the type of message in the initial flow table, if the message Type comparison information is not default comparison information, it is determined that in the type of message of the initial message data and the initial flow table Type of message mismatches.It should be noted that the default comparison information can be carried out by those skilled in the art based on actual conditions Set, the present embodiment is not especially limited this.
Step S103, matches in the type of message of the initial message data with the type of message in the initial flow table When, by the initial packet data transmission to the SDN controllers cluster;
Step S104, calls the SDN controllers cluster to be controlled according to the type of message of the initial message data and corresponds to Module generation flow table, and by the flow table issuance to associated with the switch identification in the initial message data virtual Interchanger.
The network optimization equipment is matched in the type of message of the initial message data with the type of message in the initial flow table When, by the initial packet data transmission to the SDN controller clusters, and the SDN controllers cluster is called according to the initial message The type of messages of data controls corresponding module generation flow table, and by the flow table issuance of generation to in the initial message data The virtual switch that switch identification is associated, in type of message and the message class in the initial flow table of the initial message data When type mismatches, do not process.
Specifically, it is the refinement flow diagram of step S104 in Fig. 2 with reference to Fig. 4, Fig. 4, step S104 includes:
Step S1041, calls the SDN controllers cluster to determine the type of message of the initial message data, and according to The type of message determines module to be controlled;
Step S1042, calls module to be controlled described in the SDN controllers clustered control, based on the initial message number According to generation flow table.
The network optimization equipment after the initial packet data transmission to the SDN controller clusters, will call the SDN to control Device cluster determines the type of message of the initial message data, and determines module to be controlled according to the type of message, that is, obtains and be somebody's turn to do The associated module id of type of message, and module to be controlled is determined based on the module id, then call the SDN controller clusters The module to be controlled is controlled, and based on the initial message data generation flow table, it is finally that the flow table issuance of generation is initial extremely with this The virtual switch that switch identification in message data is associated.The type of message includes ARP (Address Resolution Protocol, address resolution protocol) message, DHCP message and source purpose IP packet etc., which includes but not limited to Distribution switch, distributed DHCP and distributed route, wherein, the ARP messages are corresponding with distribution switch, DHCP reports Text is corresponding with distributed DHCP, distribution route and source purpose IP packet.
In the present embodiment, the present invention is by when detecting that the calculate node in OpenStack starts, calling and the meter The SDN controllers cluster of operator node connection issues initial flow table to the virtual bridge inside the calculate node, then passes through the void Intend bridge and receive the initial message data that virtual machine is sent, and determine whether the type of message of the initial message data is initial with this Type of message matching in flow table, if the type of message of initial message data is matched with the type of message in the initial flow table, Then by the packet data transmission to SDN controller clusters, message class of the SDN controllers cluster according to the message data is finally called Type controls corresponding module generation flow table, and the flow table issuance is extremely associated with the switch identification in the initial message data Virtual switch so that calculate node possesses the function such as distributed Layer 2 switch and distributed route and distributed DHCP, Single calculate node can complete the function of primary network node in OpenStack, so as to replace net using calculate node Network node, there is no the network node concentrated in whole OpenStack, can effectively avoid Single Point of Faliure problem, optimize OpenStack, while behavior extension can be carried out by adding or deleting calculate node, easy to the behavior extension of OpenStack.
Further, based on above-mentioned first embodiment, it is proposed that the second embodiment of inventive network optimization method, it is and preceding Stating embodiment, difference lies in after step S104, which further includes:
When detecting virtual machine with external network communication, the SDN controllers clustered control hardware switch pair is called The virtual machine is handled.
Specifically, which calls SDN controller clusters when detecting virtual machine with external network communication Control hardware switch handles the virtual machine, i.e., is transferred to a part for calculate node to the processing procedure of virtual machine Hardware switch carry out, such as the tunnel decapsulation of virtual machine and hardware server direct communication etc., it is necessary to described in, in hardware The processing procedure of the virtual machine carried out on interchanger can be configured by those skilled in the art based on actual conditions, the present embodiment This is not especially limited.
In addition, the function of hardware switch is control based on SDN cluster controllers and issues what configuration was realized, that is, work as inspection When measuring the control node in OpenStack has network call, call SDN cluster controllers to be based on the network call and hardware is handed over Change planes and configured accordingly, which includes network creation, network subnet creates and subnet port creates etc., for example, When network call creates for network subnet, the SDN cluster controllers by the vlan of the network subnet in hardware switch and Vxlan (vni) correspondence is embodied in the configuration of hardware switch, and hardware switch needs to create corresponding tunnel, creates stream Table enters tunnel etc..
In the present embodiment, the present invention is by the transition of operation such as the tunnel decapsulation of virtual machine to external hardware interchanger, The performance of network can effectively be lifted.
Further, with reference to Fig. 5, based on above-mentioned first or second embodiments, it is proposed that inventive network optimization method 3rd embodiment, difference lies in the network optimized approach further includes with previous embodiment:
Step S105, when performing the call operation of the SDN controllers cluster, records the SDN controllers cluster Call operation daily record, and the current state of the call operation daily record is registered as wait state;
Step S106, after the call operation runs succeeded, the current state of the call operation daily record is registered as Success status, and after the call operation performs time-out, the current state of the call operation daily record is registered as overtime shape State;
Step S107, by the call operation daily record that current state is success status, and current state is timeout mode Call operation daily record writes operation log database.
Specifically, which records SDN controls when performing the call operation of the SDN controller clusters The call operation daily record of device cluster, and the current state of the call operation daily record is registered as wait state, then in the calling After operation runs succeeded, the current state of the call operation daily record is registered as success status, and perform and surpass in the call operation Shi Hou, timeout mode is registered as by the current state of the call operation daily record, finally the calling by current state for success status Operation log, and current state write operation log database for the call operation daily record of timeout mode.
In the present embodiment, after step S107, further include:
Call operation of the current state as success status is read from the operation log database using interval preset time Daily record;
According to current state for success status call operation daily record by Neutron databases in the OpenStack Data are synchronized in the database of the SDN controllers cluster.
In the OpenStack data of Neutron databases be synchronized to the SDN controllers cluster database it Afterwards, the call operation daily record that current state is success status is deleted from the operation log database.
The network optimization equipment reads current state as success shape using interval preset time from the operation log database The call operation daily record of state, and according to current state for success status call operation daily record by Neutron in the OpenStack The data of database are synchronized in the database of the SDN controller clusters, the number of Neutron databases in the OpenStack After the database of the SDN controller clusters is synchronized to, it is successful shape to delete current state from the operation log database The call operation daily record of state.Neutron databases are the number of network and address administration in the OpenStack in the OpenStack According to storehouse.
In the present embodiment, the present invention is by creating operation log database, based on current in operation log database State is synchronized to the SDN controllers for the data of Neutron databases in the call operation daily record of the success status OpenStack In the database of cluster, it can effectively solve the problems, such as that data are inconsistent.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with network optimization program, the network optimization program realizes following steps when being executed by processor:
When detecting that the calculate node in the OpenStack starts, the SDN controls being connected with the calculate node are called Device cluster processed issues initial flow table to the virtual bridge inside the calculate node;
The initial message data of virtual machine transmission is received by the virtual bridge, and determines the initial message data Whether type of message matches with the type of message in the initial flow table;
, will be described first when the type of message of the initial message data is matched with the type of message in the initial flow table Beginning packet data transmission is to the SDN controllers cluster;
The SDN controllers cluster is called to control corresponding module to generate according to the type of message of the initial message data Flow table, and by the flow table issuance to the virtual switch associated with the switch identification in the initial message data.
Further, following steps are realized when the network optimization program is executed by processor:
Message label information is extracted from the initial message data, and according to the message label information and default message Type list determines the type of message of the initial message data;
The type of message is compared with each type of message in the initial flow table, to obtain type of message ratio To information;
Judge whether the type of message comparison information is default comparison information;
If the type of message comparison information is default comparison information, it is determined that the type of message of the initial message data Matched with the type of message in the initial flow table;
If the type of message comparison information is not default comparison information, it is determined that the message class of the initial message data Type is mismatched with the type of message in the initial flow table.
Further, following steps are realized when the network optimization program is executed by processor:
The SDN controllers cluster is called to determine the type of message of the initial message data, and according to the message class Type determines module to be controlled;
Module to be controlled described in the SDN controllers clustered control is called, based on the initial message data generation flow table.
Further, following steps are realized when the network optimization program is executed by processor:
When detecting virtual machine with external network communication, the SDN controllers clustered control hardware switch pair is called The virtual machine is handled.
Further, following steps are realized when the network optimization program is executed by processor:
When performing the call operation of the SDN controllers cluster, the call operation day of the SDN controllers cluster is recorded Will, and the current state of the call operation daily record is registered as wait state;
After the call operation runs succeeded, the current state of the call operation daily record is registered as success status, And after the call operation performs time-out, the current state of the call operation daily record is registered as timeout mode;
By the call operation daily record that current state is success status, and the call operation day that current state is timeout mode Will write operation log database.
Further, following steps are realized when the network optimization program is executed by processor:
Call operation of the current state as success status is read from the operation log database using interval preset time Daily record;
According to current state for success status call operation daily record by Neutron databases in the OpenStack Data are synchronized in the database of the SDN controllers cluster.
In the OpenStack data of Neutron databases be synchronized to the SDN controllers cluster database it Afterwards, the call operation daily record that current state is success status is deleted from the operation log database.
The specific embodiment of computer-readable recording medium of the present invention and the basic phase of each embodiment of above-mentioned network optimized approach Together, therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

  1. A kind of 1. network optimized approach, it is characterised in that the network optimized approach is applied to OpenStack cloud computing platforms, The network optimized approach comprises the following steps:
    When detecting that the calculate node in the OpenStack starts, the SDN controllers being connected with the calculate node are called Cluster issues initial flow table to the virtual bridge inside the calculate node;
    The initial message data of virtual machine transmission is received by the virtual bridge, and determines the message of the initial message data Whether type matches with the type of message in the initial flow table;
    When the type of message of the initial message data is matched with the type of message in the initial flow table, by the initial report Literary data transfer is to the SDN controllers cluster;
    The SDN controllers cluster is called to control corresponding module generation stream according to the type of message of the initial message data Table, and by the flow table issuance to the virtual switch associated with the switch identification in the initial message data.
  2. 2. network optimized approach as claimed in claim 1, it is characterised in that determine the type of message of the initial message data The step of whether being matched with the type of message in the initial flow table includes:
    Message label information is extracted from the initial message data, and according to the message label information and default type of message Table determines the type of message of the initial message data;
    The type of message is compared with each type of message in the initial flow table, letter is compared to obtain type of message Breath;
    Judge whether the type of message comparison information is default comparison information;
    If the type of message comparison information is default comparison information, it is determined that the type of message of the initial message data and institute State the type of message matching in initial flow table;
    If the type of message comparison information is not default comparison information, it is determined that the type of message of the initial message data with Type of message in the initial flow table mismatches.
  3. 3. network optimized approach as claimed in claim 1, it is characterised in that call the SDN controllers cluster according to The type of message of initial message data controls the step of corresponding module generation flow table to include:
    The SDN controllers cluster is called to determine the type of message of the initial message data, and it is true according to the type of message Fixed module to be controlled;
    Module to be controlled described in the SDN controllers clustered control is called, based on the initial message data generation flow table.
  4. 4. network optimized approach as claimed in claim 1, it is characterised in that by the flow table issuance to the initial message After the step of virtual switch that switch identification in data is associated, the network optimized approach further includes:
    When detecting virtual machine with external network communication, the SDN controllers clustered control hardware switch is called to described Virtual machine is handled.
  5. 5. such as the network optimized approach any one of claim 1-4, it is characterised in that the network optimized approach also wraps Include:
    When performing the call operation of the SDN controllers cluster, the call operation daily record of the SDN controllers cluster is recorded, And the current state of the call operation daily record is registered as wait state;
    After the call operation runs succeeded, the current state of the call operation daily record is registered as success status, and After the call operation performs time-out, the current state of the call operation daily record is registered as timeout mode;
    By the call operation daily record that current state is success status, and the call operation log write that current state is timeout mode Enter operation log database.
  6. 6. network optimized approach as claimed in claim 5, it is characterised in that the calling by current state for success status Operation log, and current state for timeout mode call operation daily record write operation log database the step of after, institute Network optimized approach is stated to further include:
    Call operation daily record of the current state as success status is read from the operation log database using interval preset time;
    According to current state for success status call operation daily record by the data of Neutron databases in the OpenStack It is synchronized in the database of the SDN controllers cluster;
    The data of Neutron databases are synchronized to after the database of the SDN controllers cluster in the OpenStack, The call operation daily record that current state is success status is deleted from the operation log database.
  7. A kind of 7. network optimization equipment, applied to OpenStack cloud computing platforms, it is characterised in that the network optimization equipment Including:Memory, processor and it is stored in the network optimization program that can be run on the memory and on the processor, institute State when network optimization program is performed by the processor and realize following steps:
    When detecting that the calculate node in the OpenStack starts, the SDN controllers being connected with the calculate node are called Cluster issues initial flow table to the virtual bridge inside the calculate node;
    The initial message data of virtual machine transmission is received by the virtual bridge, and determines the message of the initial message data Whether type matches with the type of message in the initial flow table;
    When the type of message of the initial message data is matched with the type of message in the initial flow table, by the initial report Literary data transfer is to the SDN controllers cluster;
    The SDN controllers cluster is called to control corresponding module generation stream according to the type of message of the initial message data Table, and by the flow table issuance to the virtual switch associated with the switch identification in the initial message data.
  8. 8. network optimization equipment as claimed in claim 7, it is characterised in that the network optimization program is held by the processor Following steps are realized during row:
    Message label information is extracted from the initial message data, and according to the message label information and default type of message Table determines the type of message of the initial message data;
    The type of message is compared with each type of message in the initial flow table, letter is compared to obtain type of message Breath;
    Judge whether the type of message comparison information is default comparison information;
    If the type of message comparison information is default comparison information, it is determined that the type of message of the initial message data and institute State the type of message matching in initial flow table;
    If the type of message comparison information is not default comparison information, it is determined that the type of message of the initial message data with Type of message in the initial flow table mismatches.
  9. 9. network optimization equipment as claimed in claim 7, it is characterised in that the network optimization program is held by the processor The step of network optimized approach as any one of claim 3 to 6 is realized during row.
  10. 10. a kind of computer-readable recording medium, it is characterised in that it is excellent to be stored with network on the computer-readable recording medium Change program, the network optimization as any one of claim 1 to 6 is realized when the network optimization program is executed by processor The step of method.
CN201711326927.4A 2017-12-12 2017-12-12 Network optimization method, device and computer readable storage medium Active CN108039968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326927.4A CN108039968B (en) 2017-12-12 2017-12-12 Network optimization method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326927.4A CN108039968B (en) 2017-12-12 2017-12-12 Network optimization method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108039968A true CN108039968A (en) 2018-05-15
CN108039968B CN108039968B (en) 2021-02-23

Family

ID=62102423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326927.4A Active CN108039968B (en) 2017-12-12 2017-12-12 Network optimization method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108039968B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636036A (en) * 2018-06-22 2019-12-31 复旦大学 OpenStack cloud host network access control method based on SDN
CN112583643A (en) * 2020-12-14 2021-03-30 浪潮云信息技术股份公司 Cross-device alarm correlation method
CN112839072A (en) * 2020-10-19 2021-05-25 南京中兴新软件有限责任公司 Data processing method, device, system, computer equipment and readable medium
CN115086978A (en) * 2021-03-11 2022-09-20 中国移动通信集团四川有限公司 Network function virtualization SDN network system
CN116260766A (en) * 2022-12-28 2023-06-13 中国银联股份有限公司 DHCP message response method and device based on OpenFlow protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014153758A1 (en) * 2013-03-28 2014-10-02 华为技术有限公司 Message transmission method, switching device and controller
CN105450525A (en) * 2014-05-28 2016-03-30 国际商业机器公司 Method and equipment for using route switching equipment
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access
CN105657081A (en) * 2016-04-07 2016-06-08 华为技术有限公司 DHCP (dynamic host configuration protocol) service providing method, device and system
CN106411785A (en) * 2015-08-03 2017-02-15 上海宽带技术及应用工程研究中心 Openstack network system based on whole OPENFLOW physical switch network and realization method thereof
CN106685835A (en) * 2017-03-06 2017-05-17 无锡华云数据技术服务有限公司 Method for achieving high-speed distributed routing between computational nodes of data center

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014153758A1 (en) * 2013-03-28 2014-10-02 华为技术有限公司 Message transmission method, switching device and controller
CN105450525A (en) * 2014-05-28 2016-03-30 国际商业机器公司 Method and equipment for using route switching equipment
CN106411785A (en) * 2015-08-03 2017-02-15 上海宽带技术及应用工程研究中心 Openstack network system based on whole OPENFLOW physical switch network and realization method thereof
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access
CN105657081A (en) * 2016-04-07 2016-06-08 华为技术有限公司 DHCP (dynamic host configuration protocol) service providing method, device and system
CN106685835A (en) * 2017-03-06 2017-05-17 无锡华云数据技术服务有限公司 Method for achieving high-speed distributed routing between computational nodes of data center

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
詹晗: "基于Openstack的分布式SDN控制器Dragonflow研究", 《计算机与现代化》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636036A (en) * 2018-06-22 2019-12-31 复旦大学 OpenStack cloud host network access control method based on SDN
CN112839072A (en) * 2020-10-19 2021-05-25 南京中兴新软件有限责任公司 Data processing method, device, system, computer equipment and readable medium
CN112583643A (en) * 2020-12-14 2021-03-30 浪潮云信息技术股份公司 Cross-device alarm correlation method
CN115086978A (en) * 2021-03-11 2022-09-20 中国移动通信集团四川有限公司 Network function virtualization SDN network system
CN115086978B (en) * 2021-03-11 2024-05-07 中国移动通信集团四川有限公司 Network function virtualization SDN network system
CN116260766A (en) * 2022-12-28 2023-06-13 中国银联股份有限公司 DHCP message response method and device based on OpenFlow protocol

Also Published As

Publication number Publication date
CN108039968B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN108039968A (en) Network optimized approach, equipment and computer-readable recording medium
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN105122748A (en) A method and system of implementing conversation-sensitive collection for a link aggregation group
CN104348724A (en) Multi-tenant supporting data forwarding method and device
CN108667575B (en) Backup method and device for BRAS transfer control separation
US20060083217A1 (en) Element management method and system in multiple networks
CN103763121A (en) Method and device for quickly issuing network configuration information
CN110768889B (en) VXLAN tunnel construction method and system
CN110912731B (en) NFV-based system and method for realizing service identification and topology analysis by adopting DPI technology
CN105915396A (en) Home network traffic recognition system and method
CN109041086B (en) Configuration method and device of OpenFlow instance
CN103631652A (en) Method and system for achieving virtual machine migration
CN111741508B (en) Method, controller, forwarding device, device and medium for establishing communication connection
CN109412925A (en) Forwarding-table item update method and VTEP based on VTEP
CN103416026B (en) Network system and packet processing method
CN107566143B (en) Longitudinal stacking discovery method and device
CN106878052A (en) A kind of customer shift method and device
CN106850268A (en) A kind of linear protection switching realizes device and method
CN103986660B (en) The device of loading micro code and the method for loading micro code
EP4083795A1 (en) Method for deploying virtual machine, and related apparatus
CN107708142A (en) A kind of access device AP group technology, equipment and system
WO2023155699A1 (en) Method and apparatus for mining security vulnerability of air interface protocol, and mobile terminal
CN110380981B (en) Flow distribution method and equipment
US20210049027A1 (en) Systems and methods for automated monitoring and troubleshooting of unknown dependencies in a virtual infrastructure

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