CN107528715A - The determination method and apparatus of fault type - Google Patents

The determination method and apparatus of fault type Download PDF

Info

Publication number
CN107528715A
CN107528715A CN201610460553.4A CN201610460553A CN107528715A CN 107528715 A CN107528715 A CN 107528715A CN 201610460553 A CN201610460553 A CN 201610460553A CN 107528715 A CN107528715 A CN 107528715A
Authority
CN
China
Prior art keywords
group
data
flow table
mark
flow
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.)
Pending
Application number
CN201610460553.4A
Other languages
Chinese (zh)
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.)
Shenzhen ZTE Technical Service Co.,Ltd.
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610460553.4A priority Critical patent/CN107528715A/en
Priority to PCT/CN2017/089146 priority patent/WO2017219957A1/en
Publication of CN107528715A publication Critical patent/CN107528715A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for ac mains or ac distribution networks
    • 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

Landscapes

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

Abstract

The invention provides a kind of determination method and apparatus of fault type.Wherein, this method includes:Extract the maintenance data recorded on the business board of the control data recorded on the control panel of SDN switch and SDN switch;By comparing control data and safeguarding that data determine the abnormal data in control data;The fault type of SDN switch is determined according to abnormal data.The present invention solves the technical problem that can not determine fault type in SDN in time, and then the effect of the fault type of quick determination SDN switch.

Description

The determination method and apparatus of fault type
Technical field
The present invention relates to internet arena, a kind of determination method in particular to fault type and Device.
Background technology
Software defined network (Software Defined Network, SDN), is Emulex networks one Kind of new network of Emulex network innovation framework, is a kind of implementation of network virtualization, its core technology OpenFlow is by the way that network equipment chain of command is separated with data surface, it is achieved thereby that network flow The flexible control of amount, makes network become more intelligent as pipeline.
Network in traditional IT architecture, after being reached the standard grade according to business demand deployment, sent out in business demand When changing dynamic, remodify in corresponding network equipment (such as router, interchanger, fire wall etc.) Configuration is a very cumbersome thing.In the fast changing service environment in internet or mobile Internet Under, high stable and the high-performance of network are also insufficient for business demand, and flexibility and agility are on the contrary It is more crucial.The thing that SDN is done is to separate the control on the network equipment, by the control concentrated Device management processed, without underlay network device (such as router, interchanger, fire wall) is relied on, shield The difference from underlay network device is covered.And control is wide-open, user can be with self-defined Network route and the transmission rule strategy realized are wanted, so as to more flexible and intelligence.
In recent years, in order to meet the network virtualization requirement of data center, SDN technologies emerge rapidly, SDN is that network design brings great convenience, the network in SDN epoch, be no longer using equipment in The heart, but it is application-centered, application drive network is changed.This just needs the work of many depth customizations Make, system for cloud computing is especially true.
OpenFlow is presently most popular SDN implementations, the SDN based on OpenFlow Interchanger be that the index of multiple flow tables and group table close to the inner portion is cascaded to realize that message forwards.
Relative to the artificial deployment of conventional switch business, the service deployment of SDN is to pass through data Message trigger controller issues automatically.The commonly used of SDN brings revolution to service deployment The benefit of property, but also the positioning to network failure brings inconvenience.When an error occurs, can not be accurate Determine fault type and abort situation, it is impossible to timely and effectively carry out troubleshooting.
Technical problem for that can not determine fault type in SDN in time, is not yet carried at present Go out effective solution.
The content of the invention
The embodiments of the invention provide a kind of determination method and apparatus of fault type, at least to solve The technical problem of fault type can not be determined in SDN in time.
One side according to embodiments of the present invention, there is provided a kind of determination method of fault type, should Method includes:Extract the control data that records and SDN switch on the control panel of SDN switch The maintenance data recorded on business board;By comparing control data and safeguarding that data determine control data In abnormal data;The fault type of SDN switch is determined according to abnormal data.
Further, extract the control data recorded on the control panel of SDN switch and SDN is exchanged The maintenance data recorded on the business board of machine include:First group of table set issuing of extraction control panel and the One flow table set, and/or, with the mark of the associated hardware resource of group table in first group of table set and The mark of the hardware resource associated with the flow table in the first flow table set;Extraction business board receives Second group of table set and the second flow table set, and/or, it is associated with the group table in second group of table set The mark of the mark of hardware resource and the hardware resource associated with the flow table in the second flow table set.
Further, by comparing control data and safeguarding that data determine the abnormal number in control data According to including:Obtain the mark of any group of table in first group of table set;Judge in second group of table set whether In the presence of the group table with any group of table with like-identified;If it is not present and any group in second group of table set Table has the group table of like-identified, it is determined that any group of table is abnormal data.
Further, by comparing control data and safeguarding that data determine the abnormal number in control data According to including:Obtain the mark of any flow table in the first flow table set;Judge in the second flow table set whether In the presence of the flow table with any flow table with like-identified;If it is not present and any stream in the second flow table set Table has the flow table of like-identified, it is determined that any flow table is abnormal data.
Further, the fault type for determining SDN switch according to abnormal data includes:At second group The group table with abnormal data with like-identified is not present in table, or, is not deposited in the second flow table set In the case where there is the flow table of like-identified with abnormal data, the failure classes of SDN switch are determined Type flow between control panel and business board is obstructed.
Further, by comparing control data and safeguarding that data determine the abnormal number in control data According to including:Obtain the mark of any group of table in first group of table set;Judge to be associated with the hard of any group of table Identifying whether for hardware resource of the mark of part resource with being associated with target group table is identical, wherein, target Group table is the group table for having in second group of table set with any group of table like-identified;If it is associated with any group The mark of hardware resource of the mark of the hardware resource of table with being associated with target group table differs, it is determined that Any group of table is abnormal data.
Further, by comparing control data and safeguarding that data determine the abnormal number in control data According to including:Obtain the mark of any flow table in the first flow table set;Judgement is associated with the hard of any flow table Identifying whether for hardware resource of the mark of part resource with being associated with target flow table is identical, wherein, target Flow table is the flow table for having in the second flow table with any flow table like-identified;If it is associated with any flow table The mark of hardware resource of the mark of hardware resource with being associated with target flow table differs, it is determined that any Flow table is abnormal data.
Further, the fault type for determining SDN switch according to abnormal data includes:It is being associated with The mark of the hardware resource of abnormal data is with being associated with target group table or the hardware resource of target flow table Mark differ in the case of, it is determined that the fault type of SDN switch be flow packaging information not Correctly.
Further, after the fault type of SDN switch is determined according to abnormal data, the party Method also includes:Obtain the log recording table of SDN switch;Index is identified as with abnormal data, The fault message of SDN switch is obtained from log recording table.
Further, after the fault type of SDN switch is determined according to abnormal data, the party Method also includes:Show abnormal data and fault message;And/or instruction control panel re-issues corresponding group Table and flow table, to repair the failure of SDN switch.
Other side according to embodiments of the present invention, there is provided a kind of determining device of fault type, The device includes:Extraction unit, the control number recorded on the control panel for extracting SDN switch According to the maintenance data recorded on the business board with SDN switch;First determining unit, for passing through Compare control data and safeguard that data determine the abnormal data in control data;Second determining unit, For determining the fault type of SDN switch according to abnormal data.
Further, extraction unit includes:First extraction module, issued for extracting control panel One group of table set and the first flow table set, and/or, associated with the group table in first group of table set is hard The mark of the mark of part resource and the hardware resource associated with the flow table in the first flow table set;Second Extraction module, the second group of table set and the second flow table set received for extracting business board, and/ Or, with the mark of the associated hardware resource of group table in second group of table set and with the second flow table set In the associated hardware resource of flow table mark.
Further, the device also includes:Display unit, for showing abnormal data and fault message; And/or unit is repaired, for indicating that control panel re-issues corresponding group table and flow table, to repair SDN The failure of interchanger.
According to another embodiment of the invention, there is provided a kind of storage medium, storage medium can be by It is arranged to the program code that storage is used to perform following steps:On the control panel for extracting SDN switch The maintenance data recorded in the control data of record and the business board of SDN switch;Controlled by comparing Data processed and safeguard that data determine the abnormal data in control data;SDN is determined according to abnormal data The fault type of interchanger.
In embodiments of the present invention, the control number recorded on the control panel by extracting SDN switch According to the maintenance data recorded on the business board with SDN switch;By comparing control data and maintenance Data determine the abnormal data in control data;The event of SDN switch is determined according to abnormal data Hinder type.It is real so as to solve the technical problem that can not determine fault type in SDN in time The technique effect of the fault type of fast positioning SDN switch is showed.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the one of the application Part, schematic description and description of the invention are used to explain the present invention, not formed to this hair Bright improper restriction.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of terminal according to embodiments of the present invention;
Fig. 2 is the flow chart of the determination method of fault type according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of system architecture according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of network equipment according to embodiments of the present invention;
Fig. 5 is the flow chart of the determination method of optional fault type according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the determining device of fault type according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that In the case where not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing " first ", " second " etc. be for distinguishing similar object, without for describe specific order or Precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal Performed in (such as SDN switch) or similar arithmetic unit.To run on computer terminals Exemplified by, as shown in figure 1, terminal can include one or more (one is only shown in figure) (processor 101 can include but is not limited to Micro-processor MCV or FPGA to processor 101 The processing unit of device FPGA etc.), the memory 103 for data storage and for communicating The transmitting device 105 of function.It will appreciated by the skilled person that the structure shown in Fig. 1 is only For signal, it does not cause to limit to the structure of above-mentioned electronic installation.
Memory 103 can be used for the software program and module of storage application software, and such as present invention is implemented Programmed instruction/module corresponding to the control method of equipment in example, processor 101 are stored in by operation Software program and module in memory 103, so as to perform various function application and data processing, Realize above-mentioned method.Memory may include high speed random access memory, may also include non-volatile deposit Reservoir, as one or more magnetic storage device, flash memory or other nonvolatile solid states store Device.In some instances, memory can further comprise relative to the remotely located memory of processor, These remote memories can pass through network connection to terminal.The example of above-mentioned network include but It is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device is used to data are received or sent via a network.Above-mentioned network instantiation It may include the wireless network that the communication providerses of terminal provide.In an example, transmission dress Put including a network adapter (Network Interface Controller, NIC), it can pass through base Stand and be connected with other network equipments so as to be communicated with internet.In an example, transmission dress It can be radio frequency (Radio Frequency, RF) module to put, its be used for wirelessly with interconnection Net is communicated.
Technical problems to be solved in this application include:For interchanger in SDN environment due to Distributed resource ID caused by excessively high etc. reason of cpu busy percentage conflicts, service traffics forwarding is obstructed, The fault types such as message encapsulation error, there is provided one kind automatically analyzes fault type and fast quick-recovery business Implementation.Because the service deployment in SDN switch is all directly to be issued by controller greatly The flow table and group table of amount are unfavorable for fault location come what is realized, can by implementing the present processes The time of analysis fault type, quick positioning question are greatly saved, while business can also be realized Fast quick-recovery, reduce because user caused by equipment fault loses.
So-called flow table, the one kind of OpenFlow to the data forwarding function of the network equipment can be deemed to be It is abstract.In legacy network devices, the data forwarding of interchanger and router needs to rely on protects in equipment The two layer MAC address forward table or three layers of IP address routing table deposited, and OpenFlow interchangers The middle flow table used also uses similar mode, is incorporated in its list item at all levels in network Network configuration information, so as to which more rich rule can be used when carrying out data forwarding.
Group is that OpenFlow is that packet specifies the high efficiency method that same operation collection is performed in multiple streams, Its corresponding group of table includes:Group mark symbol, set type, counter and action bucket.Using a group table, often Individual data flow can be divided into corresponding group, and the execution of action command, which can be directed to, belongs to same All packets of group identifier, are suitable for carrying out broadcast or multicast, or regulation only carry out it is some Specific operation set.Wherein, the instruction in whether all action buckets of the type stated of group all can be by Perform.
According to embodiments of the present invention, there is provided the embodiment of the method for a kind of determination method of fault type, It should be noted that it can be can perform the step of the flow of accompanying drawing illustrates in such as one group of computer Performed in the computer system of instruction, although also, show logical order in flow charts, In some cases, can be with the step shown or described by being performed different from order herein.
Fig. 2 is the flow chart of the determination method of fault type according to embodiments of the present invention, such as Fig. 2 institutes Show, this method comprises the following steps:
Step S201, extracts the control data recorded on the control panel of SDN switch and SDN is handed over The maintenance data recorded on the business board changed planes.
Step S202, by comparing control data and safeguarding that data determine the exception in control data Data.
Under normal circumstances, each data in control data can have a correspondence in data are safeguarded Data, and abnormal data refers to data present in control data, can be true by following two situations Determine abnormal data:For any data in control data, it is not present and any number in data are safeguarded According to corresponding data, or, data corresponding with any data in data are safeguarded be present, but should Information described in data and the data that any data is recorded are inconsistent.
Step S203, the fault type of SDN switch is determined according to abnormal data.
By above-described embodiment, extract the control data that is recorded on the control panel of SDN switch and The maintenance data recorded on the business board of SDN switch;By comparing control data and safeguarding that data are true Make the abnormal data in control data;The fault type of SDN switch is determined according to abnormal data, So as to solve the technical problem that can not determine fault type in SDN in time, realize fast Speed determines the technique effect of the fault type of SDN switch.
Alternatively, the executive agent of above-mentioned steps can be the equipment such as SDN switch, but be not limited to This.
In order to determine abnormal data to fault type, it is necessary to flow table and group table content-data and related hard Part resource ID data analysis, that is, the reason for determining failure, and then obtain fault type, to flow table and The data analysis of group table is the control panel and business board by extracting and comparing SDN distribution switch Group table and the content-data and hardware resource ID data records of flow table realize.
Specifically, the control data and SDN switch recorded on the control panel of SDN switch is extracted Business board on the maintenance data that record include:First group of table set and first that extraction control panel issues Flow table set, and/or, with the mark of the associated hardware resource of group table in first group of table set and with The mark for the hardware resource that flow table in first flow table set is associated;Extraction business board receive the Two groups of table set and the second flow table set, and/or, associated with the group table in second group of table set is hard The mark of the mark of part resource and the hardware resource associated with the flow table in the second flow table set.
The process of above-mentioned extraction data is respectively occurring on the control panel and business board of SDN switch, Analyze and compare scene on the control panel of SDN switch.The control panel of extraction records The flow table and group table that SDN controllers are issued by OpenFlow agreements to SDN switch control panel Content information and this flow table and the group table associated hardware resource that distributes and safeguard on control panel ID data (the mark of i.e. above-mentioned group table of (i.e. the hardware resource associated with flow table or group table) Or the mark of flow table);The extraction of exchange service card data is that exchange service plate bottom records Group table and the content-data of flow table and the resource ID data of this business board application, SDN switch industry Friendship is sent to according to flow table and group table id (mark for organizing table) after the completion of the content-data extraction of business plate The control panel changed planes, analyzed by Switch control plate according to flow table and group table id, in addition, stream The table hardware resource ID related to group table is distributed unitedly by the control panel of interchanger, issued, reclaimed, Application and release are triggered by SDN switch business board.
It should be noted that during above-mentioned extraction data, table or the ID of flow table can be organized (i.e. flow table identifies) is used as data corresponding to index search;Can also it be condition the period, extraction should All data in period;Can be with BRIGDE tables (i.e. two layer MAC address forward table) " MAC+VLAN " (i.e. MAC Address and VLAN), or with HOSTIP tables (i.e. Three layers of IP address routing table) in " HOSTIP+VRF " (host ip and VPN route forwarding tables) Searched for index.
In the above-described embodiments, when Switch control plate is analyzed according to flow table and group table id, Can be specific as follows by comparing control data and safeguarding that data determine the abnormal data in control data: Obtain the mark of any group of table in first group of table set;Judge to whether there is with appointing in second group of table set One group of table has the group table of like-identified;If be not present in second group of table set has phase with any group of table With the group table of mark, it is determined that any group of table is abnormal data.
Alternatively, by comparing control data and safeguarding that data determine the abnormal data in control data Including:Obtain the mark of any flow table in the first flow table set;Judge whether deposited in the second flow table set In the flow table with any flow table with like-identified;If it is not present and any flow table in the second flow table set Flow table with like-identified, it is determined that any flow table is abnormal data.
Alternatively, by comparing control data and safeguarding that data determine the abnormal data in control data Including:Obtain the mark of any group of table in first group of table set;Judgement is associated with the hardware of any group of table Identifying whether for hardware resource of the mark of resource with being associated with target group table is identical, wherein, target group Table is the group table for having in second group of table set with any group of table like-identified;If it is associated with any group of table The mark of hardware resource of the mark with being associated with target group table of hardware resource differ, it is determined that times One group of table is abnormal data.
Alternatively, by comparing control data and safeguarding that data determine the abnormal data in control data Including:Obtain the mark of any flow table in the first flow table set;Judgement is associated with the hardware of any flow table Identifying whether for hardware resource of the mark of resource with being associated with target flow table is identical, wherein, target stream Table is the flow table for having in the second flow table with any flow table like-identified;If it is associated with the hard of any flow table The mark of hardware resource of the mark of part resource with being associated with target flow table differs, it is determined that Ren Yiliu Table is abnormal data.
By compare control data and safeguard data determine control data in abnormal data after, SDN switch can be determined according to abnormal data (the reason for abnormal case of abnormal data is failure) Fault type, it is specific as follows:If failure cause is is not present and abnormal data in second group of table Group table with like-identified, or, in the second flow table set be not present have with abnormal data it is identical The flow table of mark, it is determined that the fault type of SDN switch flow between control panel and business board It is obstructed.Reason is exactly that this abnormal data is probably a group table data content because being found that abnormal data Abnormal data content exception of either failing to be sold at auction.
Alternatively, the fault type for determining SDN switch according to abnormal data can also be by as follows Mode is realized:It is being associated with the mark of the hardware resource of abnormal data and is being associated with target group table or target In the case that the mark of the hardware resource of flow table differs, it is determined that the fault type of SDN switch It is incorrect for flow packaging information.Reason is exactly hard in group table abnormal data or flow table abnormal data Part resource ID conflict, i.e., the resource ID on the resource ID and business board safeguarded on master control borad mismatch.
Optionally, after the fault type of SDN switch is determined according to abnormal data, the application Method also include:Obtain the log recording table of SDN switch;Rope is identified as with abnormal data Draw, the fault message of SDN switch is obtained from log recording table.
It should be noted that in log recording table, flow table can be preserved in real time and during group table issues Related data when program malfunctions, including the business module ID of error generation, lines of code, correlation Incoming parameter, return value etc., the record are used as unique index using flow table ID or group table id.
Therefore, the flow table ID or group table id of error can be determined first, be then according to this ID Related data during program error is can determine that, to reach the purpose positioned to mistake.
Alternatively, after the fault type of SDN switch is determined according to abnormal data, the application Method also include:Show abnormal data and fault message;And/or instruction control panel re-issues correspondingly Group table and flow table, to repair the failure of SDN switch.
When the information for occurring showing in flow table, group table is inconsistent with software and hardware data, resource ID conflicts When, based on the record of control panel, related flow table or group that the business board side joint of interchanger is received Table (group table or flow table that exception occurs) is deleted, and is discharged on control panel corresponding to the table Hardware resource ID, then re-issue phase to the business board of interchanger according to the software records of control panel Flow table and group table content-data are closed, by the business board of interchanger according to flow table and the content-data weight of group table The related hardware resource ID of new application.
In the above-described embodiments, when there is the incorrect situation of the obstructed, packaging information of business forwarding, The application give it is a kind of recover the implementation method of business based on service traffics, can be divided based on business For two kinds of " MAC+VLAN " and " VRF+IP " of three layer services based on two layer services.Nothing By being based on " MAC+VLAN " or based on " VRF+IP ", a series of levels can be found out The flow table and group table of the unidirectional reference of connection, then judge whether there is exception record in each flow table and group table, If just recover business according to above-mentioned method.
Embodiments herein is described in detail with reference to Fig. 3 to Fig. 5.
The present processes can apply in system architecture as shown in Figure 3, be sent out by controller is unified The control information such as group table and flow table are sent, to realize that (including the network equipment 1 and network are set to the network equipment Standby control 2), it can be connected by internal network between the network equipment, the network equipment can also be with External network connects, and the network equipment can pass through bus and server (including server 1 and server 2) interact.
The above-mentioned network equipment (such as SDN switch) can be used for performing the present processes, such as Fig. 4 Shown, the network equipment can include:Data configuration unit 401, data record unit 402, number According to display unit 403, data analysis unit 404 and data recovery unit 405.
Data configuration unit 401, there is provided the instruction configuration and parsing configuration of accident analysis, provide data The pattern configurations of recovery.
The pattern of the fault recovery of configuration could be configured as automatic mode or manual mode.
Data record unit 402, it is responsible for wrong LOG (i.e. log recording table), is responsible for record flow table The related data during error of process Program is issued with group table, the data of record are with flow table ID or group Table id is stored in log recording table as index.
The group table or flow table increase LOG records that wrong return value can be directed to (show mistake to be follow-up Reason provides material).The LOG is recorded in internal memory, records the business module ID to make a mistake, is passed Enter a series of prompt messages such as parameter, return value, error code line number.
Data analysis unit 404, the flow table and group of SDN switch control panel and business board are extracted respectively The content-data of table and associated hardware resource ID record, then do on the control panel of interchanger Comparative analysis.The control panel record of extraction is that controller is issued by OpenFlow agreements to control panel Flow table and group table content information and this flow table or organize table application hardware resource ID data; The business board record of extraction is the group table and flow table content-data and this industry of this business board bottom record The hardware resource ID data of business plate application.
Table and flow table content and related are organized on data display unit 403, display control board and business board Resource id information, while call LOG logging modles to show error reason.
Data recovery unit 405, according to the reforestation practices information of configuration, manually or automatically recover wrong List item data by mistake.
In the above-described embodiments, if from manual reforestation practices, for due to cpu busy percentage mistake Height causes the group table of SDN switch control panel and flow table information not to issue SDN switch business board And cause the implementation steps of the obstructed detection of flow and recovery as follows:
Step S11, input forward " IP+VRF " or " MAC+VLAN " of obstructed message, such as Fruit is that two layers of forwarding then input the former, if three layers of forwarding then input the latter.
Step S12, according to " MAC+VLAN " or " IP+VRF " acquisition group table and flow table Chain is quoted, then to quoting each flow table and group table unit execution following step in chain.
Step S13, according to group table id and flow table ID on the control panel and business board of SDN switch The data content of relevant entries is extracted, the data message of extraction is issued control by SDN switch business board Plate.
Step S14, Switch control plate call data analysis unit pair according to flow table ID and group table id The data of extraction are compared analysis.
Step S15, call data display unit to show analysis result, find the group surface low of control panel side Table data are different from business board.
Step S16, data recovery unit is called to carry out group table and the list item of flow table data exception manually The real-time recovery of data.
If from manual reforestation practices, for when cpu busy percentage is too high, SDN switch controls Resource ID caused by the resource ID difference that the hardware resource ID safeguarded on plate safeguards with the application of business board Conflict, so that when flow packaging information is incorrect, the step of performing detection in real time and recover.
Step S21, input converting flow encapsulate incorrect message original " IP+VRF " or " MAC+VLAN ", if two layers of forwarding then input the former, if after three layers of forwarding then input Person.
Step S22, according to " MAC+VLAN " or " IP+VRF " acquisition group table and flow table Chain is quoted, then to quoting each flow table and group table unit execution following step in chain:
Step S23, according to group table id and flow table ID on the control panel and business board of SDN switch The data content (the group table or flow table that make a mistake) of relevant entries is extracted, exchange service plate will The data message of extraction issues Switch control plate.
Step S24, SDN switch control panel call data analysis list according to flow table ID and group table id Member is compared analysis to the data of extraction.
Step S25, call data display unit to show analysis result, find the group surface low of control panel side Table hardware resource id information and the difference of exchange service plate side.
Step S26, data recovery unit is called to carry out group table and the list item of flow table data exception manually The real-time recovery of data.
If selecting automatic reforestation practices, implementation steps are as shown in Figure 5:
Step S501, start the timer of one first, time interval user can configure, Mei Gegu Fix time and carry out trouble shooting and fault recovery.
Step S502, judge whether to open automatic reforestation practices in the handling process of timer, If be not turned on, step S503 is performed;If opening auto restore facility performs step S504.
Step S503, return, can be off performing or after interval time arrives next time Step S502 is performed again.
Step S504, according to group table or flow table ID extracted respectively on control panel and business board flow table, Organize content-data, resource bid data of table etc..
Step S505, call error analysis module, compare business board data and control panel data.
Step S506, judge whether wrong, the return to step S504 if without mistake, it is wrong Then perform step S507.
Step S507, call Failure Recovery Module real-time recovering service.
In SDN environment, when distributed network equipment breaks down, by the above method, The time of analysis failure can be greatly saved, to analyzing and solving resource ID conflict, on business board Residual data, control panel and business board data are inconsistent, business forwarding is obstructed, packaging information is incorrect The problems such as it is largely effective, quick positioning question and can quickly solve, at the same can quick-recovery business soon, So as to avoid long-time flow interrupt from being caused damage to client.
Through the above description of the embodiments, those skilled in the art can be understood that root The mode of required general hardware platform can be added by software according to the method for above-described embodiment to realize, when So can also be by hardware, but the former is more preferably embodiment in many cases.Based on such reason Solution, the part that technical scheme substantially contributes to prior art in other words can be with soft The form of part product embodies, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD) in, including some instructions are make it that a station terminal equipment (can To be mobile phone, computer, server, or network equipment etc.) perform each embodiment institute of the present invention The method stated.
Embodiment 2
A kind of determining device of fault type is additionally provided in the embodiment of the present invention.The device is used to realize Above-described embodiment and preferred embodiment, repeating no more for explanation was carried out.Used as following , term " module " can realize the combination of the software and/or hardware of predetermined function.Although implement below Device described by example is preferably realized with software, but hardware, or the combination of software and hardware Realization and may and be contemplated.
Fig. 6 is the schematic diagram of the determining device of fault type according to embodiments of the present invention.Such as Fig. 6 institutes Show, the device can include:Extraction unit 61, the first determining unit 62 and the second determining unit 63。
Extraction unit 61, the control data recorded on the control panel for extracting SDN switch and The maintenance data recorded on the business board of SDN switch.
First determining unit 62, for by comparing control data and safeguarding that data determine control data In abnormal data.
Second determining unit 63, for determining the fault type of SDN switch according to abnormal data.
By above-described embodiment, extraction unit extracts the control recorded on the control panel of SDN switch The maintenance data recorded on the business board of data and SDN switch;First determining unit passes through comparison Control data and safeguard that data determine the abnormal data in control data;Second determining unit is according to different Regular data determines the fault type of SDN switch, can not be in time in SDN so as to solve The technical problem of fault type is determined, realizes the skill of the quick fault type for determining SDN switch Art effect.
Alternatively, said apparatus can be applied to the equipment such as SDN switch, but not limited to this.
In order to determine abnormal data to fault type, it is necessary to flow table and group table content-data and related hard Part resource ID data analysis, the data analysis to flow table and group table are by extracting and comparing SDN points The control panel and the group table of business board and the content-data and hardware resource ID numbers of flow table of cloth interchanger Realized according to record.
Specifically, extraction unit includes:First extraction module, first issued for extracting control panel Group table set and the first flow table set, and/or, the hardware associated with the group table in first group of table set The mark of the mark of resource and the hardware resource associated with the flow table in the first flow table set;Second carries Modulus block, the second group of table set and the second flow table set received for extracting business board, and/or, With the mark of the associated hardware resource of group table in second group of table set and with the second flow table set The associated hardware resource of flow table mark.
Alternatively, the first determining unit can be used for performing:Obtain in first group of table set any group of table Mark;Judge in second group of table set with the presence or absence of the group table with any group of table with like-identified;If The group table with any group of table with like-identified is not present in second group of table set, it is determined that any group of table For abnormal data.
Alternatively, the first determining unit is additionally operable to perform:Obtain any flow table in the first flow table set Mark;Judge in the second flow table set with the presence or absence of the flow table with any flow table with like-identified;If The flow table with any flow table with like-identified is not present in second flow table set, it is determined that any flow table For abnormal data.
Alternatively, the second determining unit can be used for performing:It is not present in second group of table and abnormal data Group table with like-identified, or, in the second flow table set be not present have with abnormal data it is identical In the case of the flow table of mark, determine the fault type of SDN switch for control panel and business board it Between flow it is obstructed.
Alternatively, the first determining unit is additionally operable to perform:Obtain in first group of table set any group of table Mark;Judge that the mark for being associated with the hardware resource of any group of table provides with being associated with the hardware of target group table Identifying whether for source is identical, wherein, target group table is to have phase with any group of table in second group of table set With the group table of mark;If the mark of the hardware resource of any group of table is associated with being associated with target group table The mark of hardware resource differs, it is determined that any group of table is abnormal data.
Alternatively, the first determining unit is additionally operable to perform:Obtain any flow table in the first flow table set Mark;Judge that the mark for being associated with the hardware resource of any flow table provides with being associated with the hardware of target flow table Identifying whether for source is identical, wherein, target flow table is to have identical mark with any flow table in the second flow table The flow table of knowledge;If the mark for being associated with the hardware resource of any flow table and the hardware for being associated with target flow table The mark of resource differs, it is determined that any flow table is abnormal data.
Alternatively, the second determining unit can also be used to perform:It is being associated with the hardware resource of abnormal data Mark differ with being associated with the mark of target group table or the hardware resource of target flow table in the case of, Then determine that the fault type of SDN switch is incorrect for flow packaging information.
Alternatively, the said apparatus of the application also includes:Display unit, for show abnormal data and Fault message;And/or unit is repaired, for indicating that control panel re-issues corresponding group table and flow table, To repair the failure of SDN switch.
In SDN environment, when distributed network equipment breaks down, by the above method, The time of analysis fault type can be greatly saved, to analyzing and solving resource ID conflict, business board On residual data, control panel and business board data are inconsistent, business forwarding is obstructed, packaging information not The problems such as correct, is largely effective, quick positioning question and can quickly solve, while can fast quick-recovery Business, so as to avoid long-time flow interrupt from being caused damage to client.
It should be noted that above-mentioned modules can be realized by software or hardware, for The latter, it can be accomplished by the following way, but not limited to this:Above-mentioned module is respectively positioned on same processor In;Or the form of above-mentioned modules in any combination is located in different processors respectively.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on State storage medium and can be configured to the program code that storage is used to perform following steps:
S1, extract the industry of the control data recorded on the control panel of SDN switch and SDN switch The maintenance data recorded on business plate;
S2, by comparing control data and safeguarding that data determine the abnormal data in control data;
S3, the fault type of SDN switch is determined according to abnormal data.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S4, extraction the control panel first group of table set and the first flow table set that issue, and/or, with the The mark of the associated hardware resource of group table in one group of table set and with the stream in the first flow table set The mark of the associated hardware resource of table;
S5, the second group of table set and the second flow table set that extraction business board receives, and/or, with The mark of the associated hardware resource of group table in second group of table set and with the second flow table set The mark of the associated hardware resource of flow table.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Alternatively, in the present embodiment, processor is held according to the program code stored in storage medium OK:Extract the business board of the control data recorded on the control panel of SDN switch and SDN switch The maintenance data of upper record;By comparing control data and to safeguard that data are determined different in control data Regular data;The fault type of SDN switch is determined according to abnormal data.
Alternatively, in the present embodiment, processor is held according to the program code stored in storage medium OK:The first group of table set and the first flow table set that extraction control panel issues, and/or, with first group of table The mark of the associated hardware resource of group table in set and related to the flow table in the first flow table set The mark of the hardware resource of connection;The second group of table set and the second flow table set that extraction business board receives, And/or with the mark of the associated hardware resource of group table in second group of table set and with the second flow table collection The mark for the hardware resource that flow table in conjunction is associated.
Alternatively, the specific example in the present embodiment may be referred to above-described embodiment and optional embodiment Described in example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step It can be realized with general computing device, they can be concentrated on single computing device, or It is distributed on the network that multiple computing devices are formed, alternatively, they be able to can be held with computing device Capable program code realizes, it is thus possible to be stored in storage device by computing device Lai Perform, and in some cases, can be shown or described to be performed different from order herein Step, they are either fabricated to each integrated circuit modules respectively or by multiple moulds in them Block or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any spy Fixed hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for For those skilled in the art, the present invention can have various modifications and variations.All essences in the present invention God any modification, equivalent substitution and improvements made etc., should be included in the present invention with principle Protection domain within.

Claims (13)

1. a kind of determination method of fault type, it is characterised in that including:
Extract the control data recorded on the control panel of SDN switch and the SDN switch Business board on the maintenance data that record;
By comparing the control data and described safeguarding that data are determined in the control data Abnormal data;
The fault type of the SDN switch is determined according to the abnormal data.
2. according to the method for claim 1, it is characterised in that extraction SDN is exchanged Recorded in the control data and the business board of the SDN switch recorded on the control panel of machine Safeguard that data include:
First group of table set and the first flow table set that the control panel issues are extracted, and/or, with The mark of the associated hardware resource of group table in first group of table set and with it is described first-class The mark for the hardware resource that flow table in table set is associated;
Second group of table set and the second flow table set that the business board receives are extracted, and/or, With the mark of the associated hardware resource of group table in second group of table set and with described second The mark for the hardware resource that flow table in flow table set is associated.
3. according to the method for claim 2, it is characterised in that by comparing the control Data processed and described safeguard that data determine that the abnormal data in the control data includes:
Obtain the mark of any group of table in first group of table set;
Judge to whether there is in second group of table set and there is like-identified with any group of table Group table;
If the group with any group of table with like-identified is not present in second group of table set Table, it is determined that any group of table is abnormal data.
4. according to the method for claim 2, it is characterised in that by comparing the control Data processed and described safeguard that data determine that the abnormal data in the control data includes:
Obtain the mark of any flow table in the first flow table set;
Judge to whether there is in the second flow table set and there is like-identified with any flow table Flow table;
If the stream with any flow table with like-identified is not present in the second flow table set Table, it is determined that any flow table is abnormal data.
5. the method according to claim 3 or 4, it is characterised in that according to described different Regular data determines that the fault type of the SDN switch includes:
The group table with the abnormal data with like-identified is not present in second group of table, Or, the stream with the abnormal data with like-identified is not present in the second flow table set In the case of table, the fault type for determining the SDN switch is the control panel and the industry Flow is obstructed between business plate.
6. according to the method for claim 2, it is characterised in that by comparing the control Data processed and described safeguard that data determine that the abnormal data in the control data includes:
Obtain the mark of any group of table in first group of table set;
The mark for judging to be associated with the hardware resource of any group of table is with being associated with target group table Identifying whether for hardware resource is identical, wherein, the target group table is second group of table set In there is the group table of like-identified with any group of table;
If it is associated with the mark of the hardware resource of any group of table and is associated with the target group table The mark of hardware resource differ, it is determined that any group of table is abnormal data.
7. according to the method for claim 2, it is characterised in that by comparing the control Data processed and described safeguard that data determine that the abnormal data in the control data includes:
Obtain the mark of any flow table in the first flow table set;
The mark for judging to be associated with the hardware resource of any flow table is with being associated with target flow table Identifying whether for hardware resource is identical, wherein, the target flow table be second flow table in Any flow table has the flow table of like-identified;
If it is associated with the mark of the hardware resource of any flow table and is associated with the target flow table The mark of hardware resource differ, it is determined that any flow table is abnormal data.
8. the method according to claim 6 or 7, it is characterised in that according to described different Regular data determines that the fault type of the SDN switch includes:
It is being associated with the mark of the hardware resource of the abnormal data and is being associated with target group table or mesh In the case that the mark of the hardware resource of mark flow table differs, it is determined that the SDN switch Fault type is that flow packaging information is incorrect.
9. method according to claim 1 or 2, it is characterised in that according to After abnormal data determines the fault type of the SDN switch, methods described also includes:
Obtain the log recording table of the SDN switch;
Index is identified as with the abnormal data, from the log recording table described in acquisition The fault message of SDN switch.
10. according to the method for claim 9, it is characterised in that according to the exception After data determine the fault type of the SDN switch, methods described also includes:
Show the abnormal data and the fault message;And/or
Indicate that the control panel re-issues corresponding group table and flow table, handed over repairing the SDN The failure changed planes.
A kind of 11. determining device of fault type, it is characterised in that including:
Extraction unit, the control data recorded on the control panel for extracting SDN switch and institute State the maintenance data recorded on the business board of SDN switch;
First determining unit, for by compare the control data and it is described safeguard data determine The abnormal data gone out in the control data;
Second determining unit, for determining the event of the SDN switch according to the abnormal data Hinder type.
12. device according to claim 11, it is characterised in that the extraction unit Including:
First extraction module, the first group of table set and first issued for extracting the control panel Flow table set, and/or, the hardware resource associated with the group table in first group of table set The mark of mark and the hardware resource associated with the flow table in the first flow table set;
Second extraction module, the second group of table set and received for extracting the business board Two flow table set, and/or, the hardware resource associated with the group table in second group of table set Mark and the hardware resource associated with the flow table in the second flow table set mark.
13. the device according to claim 11 or 12, it is characterised in that described device Also include:
Display unit, for showing the abnormal data and fault message;And/or
Unit is repaired, for indicating that the control panel re-issues corresponding group table and flow table, with Repair the failure of the SDN switch.
CN201610460553.4A 2016-06-22 2016-06-22 The determination method and apparatus of fault type Pending CN107528715A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610460553.4A CN107528715A (en) 2016-06-22 2016-06-22 The determination method and apparatus of fault type
PCT/CN2017/089146 WO2017219957A1 (en) 2016-06-22 2017-06-20 Fault type determination method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610460553.4A CN107528715A (en) 2016-06-22 2016-06-22 The determination method and apparatus of fault type

Publications (1)

Publication Number Publication Date
CN107528715A true CN107528715A (en) 2017-12-29

Family

ID=60734180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610460553.4A Pending CN107528715A (en) 2016-06-22 2016-06-22 The determination method and apparatus of fault type

Country Status (2)

Country Link
CN (1) CN107528715A (en)
WO (1) WO2017219957A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629865A (en) * 2018-04-28 2018-10-09 百度在线网络技术(北京)有限公司 Generation method, device, equipment and the storage medium of fault log
CN109327344A (en) * 2018-11-29 2019-02-12 郑州云海信息技术有限公司 A kind of whitepack exchange fault diagnostic method and device
CN112910731A (en) * 2021-01-28 2021-06-04 三维通信股份有限公司 Counter determination method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10652084B2 (en) 2018-05-01 2020-05-12 At&T Intellectual Property I, L.P. Service recovery in a software defined network
CN113037539B (en) * 2021-02-05 2022-05-27 新华三信息安全技术有限公司 Fault positioning method and device
CN114221853B (en) * 2021-12-13 2023-07-28 国网浙江省电力有限公司营销服务中心 Operation analysis system of electricity consumption information acquisition equipment and working method thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428031A (en) * 2013-08-05 2013-12-04 浙江大学 Inter-domain link fast failure recovery method based on software defined network
CN103929333A (en) * 2014-05-08 2014-07-16 陈桂芳 Implementation method for SDN controller pool
CN104243205A (en) * 2014-09-03 2014-12-24 杭州华三通信技术有限公司 Message processing method and device used during virtual switch fault
CN104468181A (en) * 2013-09-23 2015-03-25 英特尔公司 Detection and handling of virtual network appliance failures
CN104717098A (en) * 2015-04-09 2015-06-17 北京邮电大学 Data processing method and device
US9246755B2 (en) * 2013-12-18 2016-01-26 International Business Machines Corporation Software-defined networking disaster recovery
CN105406473A (en) * 2015-12-29 2016-03-16 国网辽宁省电力有限公司 Uniform processing method and system of power distribution network faults on the basis of software defined network
CN105634817A (en) * 2016-01-08 2016-06-01 广州西麦科技股份有限公司 Network fault automatic detecting system and method based on SDN
KR20160069415A (en) * 2014-12-08 2016-06-16 주식회사 케이티 Method for saving flow of sdn switch for flow entry backup in software defined network environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067534B (en) * 2012-12-26 2016-09-28 中兴通讯股份有限公司 A kind of NAT realizes system, method and Openflow switch
CN104579810B (en) * 2013-10-23 2019-10-25 中兴通讯股份有限公司 Software defined network traffic sampling method and system
CN105406988B (en) * 2015-10-26 2018-08-21 中国电子科技集团公司第二十八研究所 A kind of software definition is anti-to ruin network establishing method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428031A (en) * 2013-08-05 2013-12-04 浙江大学 Inter-domain link fast failure recovery method based on software defined network
CN104468181A (en) * 2013-09-23 2015-03-25 英特尔公司 Detection and handling of virtual network appliance failures
US9246755B2 (en) * 2013-12-18 2016-01-26 International Business Machines Corporation Software-defined networking disaster recovery
CN103929333A (en) * 2014-05-08 2014-07-16 陈桂芳 Implementation method for SDN controller pool
CN104243205A (en) * 2014-09-03 2014-12-24 杭州华三通信技术有限公司 Message processing method and device used during virtual switch fault
KR20160069415A (en) * 2014-12-08 2016-06-16 주식회사 케이티 Method for saving flow of sdn switch for flow entry backup in software defined network environment
CN104717098A (en) * 2015-04-09 2015-06-17 北京邮电大学 Data processing method and device
CN105406473A (en) * 2015-12-29 2016-03-16 国网辽宁省电力有限公司 Uniform processing method and system of power distribution network faults on the basis of software defined network
CN105634817A (en) * 2016-01-08 2016-06-01 广州西麦科技股份有限公司 Network fault automatic detecting system and method based on SDN

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629865A (en) * 2018-04-28 2018-10-09 百度在线网络技术(北京)有限公司 Generation method, device, equipment and the storage medium of fault log
CN109327344A (en) * 2018-11-29 2019-02-12 郑州云海信息技术有限公司 A kind of whitepack exchange fault diagnostic method and device
CN109327344B (en) * 2018-11-29 2021-10-26 郑州云海信息技术有限公司 Fault diagnosis method and device for white box switch
CN112910731A (en) * 2021-01-28 2021-06-04 三维通信股份有限公司 Counter determination method and device
CN112910731B (en) * 2021-01-28 2022-11-11 三维通信股份有限公司 Counter determination method and device

Also Published As

Publication number Publication date
WO2017219957A1 (en) 2017-12-28

Similar Documents

Publication Publication Date Title
CN107528715A (en) The determination method and apparatus of fault type
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
US10452422B2 (en) Method and apparatus for deploying virtual machine instance, and device
CN105099789B (en) A kind of network element updating method and apparatus
EP3248331B1 (en) Method for controlling switches to capture and monitor network traffic
CN106130850B (en) Intelligent access method for private line user
CN104283738B (en) A kind of chain circuit detecting method and equipment
CN104811400B (en) A kind of distributed network equipment
CN106713487A (en) Data synchronization method and device
CN107135134A (en) Private network cut-in method and system based on virtual switch and SDN technologies
CN105763359A (en) Distributed Bidirectional Forwarding Detection Protocol (d-bfd) For Cluster Of Interconnected Switches
CN106919242A (en) Server system and its management method and computer-readable storage multimedia
CN104518993A (en) Allocation method, device and system for communication paths of cloud network
CN107809367A (en) The equipment loading method and SDN controllers, the network equipment of a kind of SDN
CN107276798B (en) Method and device for realizing virtualized network service function chain
US20170288998A1 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
CN110213121A (en) Test platform, test method and the test device of virtual communication product
CN107211036A (en) A kind of method and data center network of data center network networking
CN105337789A (en) Method and device for monitoring flow of virtual network
CN107547317A (en) Virtualize control method, device and the communication system of BAS Broadband Access Server
CN104518969B (en) Data message processing method, device and interchanger
CN106059793A (en) Router information processing method and apparatus based on graceful restart
CN105847185A (en) Message processing method and apparatus for distributed device and distributed device
CN105429946A (en) System and method of preventing forging IP address based on SDN virtual switch
CN107204866A (en) The implementation method of multi-tenant service chaining transmission is solved based on VXLAN technologies

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200619

Address after: 518057 Zhongxing building, A3-01, A3-02, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Applicant after: Shenzhen ZTE Technical Service Co.,Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Corp.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171229