CN105490827A - Method and device for obtaining network state - Google Patents

Method and device for obtaining network state Download PDF

Info

Publication number
CN105490827A
CN105490827A CN201410474867.0A CN201410474867A CN105490827A CN 105490827 A CN105490827 A CN 105490827A CN 201410474867 A CN201410474867 A CN 201410474867A CN 105490827 A CN105490827 A CN 105490827A
Authority
CN
China
Prior art keywords
packet
ofs
triggering
network state
item
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
CN201410474867.0A
Other languages
Chinese (zh)
Other versions
CN105490827B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410474867.0A priority Critical patent/CN105490827B/en
Priority to PCT/CN2015/076075 priority patent/WO2016041341A1/en
Publication of CN105490827A publication Critical patent/CN105490827A/en
Application granted granted Critical
Publication of CN105490827B publication Critical patent/CN105490827B/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

Landscapes

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

Abstract

An embodiment of the invention discloses a method and device for obtaining a network state. The method includes the steps of: an OpenFlow switch (OFS) matches a data packet that is acquired with a multilevel flow table containing operation instructions and a triggering table; according to the matching result, the OFS determines an operation instruction corresponding to the data packet; when the operation instruction corresponding to the data packet points to the triggering table, the OFS performs report condition judgment on the data packet according to triggering comparison items in the triggering table; and when an acquired judgment result satisfies preset triggering report conditions, the OFS generates network state information according to the judgment result, and sends the network state information to an OpenFlow controller (OFC), so that the OFC can obtain current network state information in real time and perform real-time monitoring on a network, thereby improving sensitivity to the network state and response speed of the OFC and network management quality.

Description

A kind of method and device obtaining network state
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of method and the device that obtain network state.
Background technology
SDN (software-definednetwork) network is the new network framework that a kind of control is separated with management, its core technology OpenFlow is by being separated the data retransmission layer of switching equipment with key-course, realize forwarding data on OpenFlow switch, the forwarding of control data on the controller, thus better net control, based on the SDN of OpenFlow, achieve the separation of software and hardware and the virtual of bottom hardware, and the upgrading of procotol and exchanging policy only needs to change key-course, for the innovation of core network and application provides good development platform, in addition, can by changing the path of data flow and refusing the fail safe that some data flow strengthens corporate intranet at the junction application OpenFlow switch of internal network and outer net.SDN disposes higher layer policy by task equipment, and the network equipment carries out data retransmission under higher layer policy instructs, and reduces network equipment carrying, improves the flexibility of network design planning and management.
In prior art, the controller in SDN by issuing the information such as packet inquiry stream table, port, thus obtains network state.
From the above, the method that prior art provides can not meet the needs of controller Real-time Obtaining network state.
Summary of the invention
Embodiments provide a kind of method and the device that obtain network state, cannot the problem of Real-time Obtaining network state for solving open flows controller in prior art.
First aspect present invention provides a kind of method obtaining network state, and described method comprises:
The packet got mates with multilevel flow table by open flows switch OFS, and obtain the result of coupling, described multilevel flow table comprises operational order and trigger table, and described trigger table comprises triggering and compares item;
Described OFS, according to the result of described coupling, determines the operational order that described packet is corresponding;
When the operational order that described packet is corresponding points to described trigger table, described OFS compares item according to the triggering in described trigger table and carries out report condition judgement to described packet, obtains the result judged;
When the result of described judgement meets preset triggering report condition, described OFS according to the result generating network state information of described judgement, and sends described network state information to open flows controller OFC.
In conjunction with first aspect present invention, in the first implementation of first aspect present invention, described open flows switch OFS also comprises before being mated with multilevel flow table by the packet got:
Described OFS receives the stream table edit messages Flow-Mod that described OFC sends, and described Flow-Mod comprises stream table content and item is compared in described triggering;
Described OFS is multilevel flow table according to described stream table composition of content;
Described OFS compares item according to described triggering and constructs described trigger table;
Described OFS adds described trigger table to described multilevel flow table end, and sets up the corresponding relation of described multilevel flow table and described trigger table.
In conjunction with the first implementation of first aspect present invention and first aspect, in the second implementation of first aspect present invention, described OFS comprises according to described stream table composition of content multilevel flow table:
Described stream table content divides according to the matching field preset, to obtain at least two subflow tables by described OFS;
Described subflow table pack is become described multilevel flow table according to preset order by described OFS.
In conjunction with the first to the second implementation of first aspect present invention, first aspect, in the third implementation of first aspect present invention, describedly send described network state information to open flows controller OFC and specifically comprise:
Described OFS constructs Packet-in packet, and described network state information is added to the extended field of described Packet-in packet;
Described OFS sends the Packet-in packet adding described network state information to described OFC.
In conjunction with the third implementation of first aspect present invention and first aspect, in the 4th kind of implementation of first aspect present invention, the result of described coupling is described data packet matched to the stream list item of in described multilevel flow table;
Also comprise before described structure Packet-in packet:
Described OFS, according to the operational order in the stream list item matched with described packet, judges whether to construct Packet-in packet;
Described structure Packet-in packet, and the extended field described network state information being added to described Packet-in packet specifically comprises:
When not constructing described Packet-in packet, then described OFS constructs Packet-in packet, and adds described network state information to described Packet-in packet;
When constructing described Packet-in packet, then described OFS constructs the Packet-in packet that reanson field is warning, and described network state information is added to the Packet-in packet that reanson field is warning.
In conjunction with first to fourth kind of implementation of first aspect present invention, first aspect, in the 5th kind of implementation of first aspect present invention, described method also comprises:
When the operational order that described packet is corresponding points to described trigger table, described OFS upgrades current network state and the counter corresponding with the stream list item in described data packet matched multilevel flow table.
Second aspect present invention provides a kind of method obtaining network state, and described method comprises:
Open flows controller OFC builds stream table edit messages Flow-Mod, and described Flow-Mod comprises stream table content and item is compared in triggering, and described triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
Described OFC sends described Flow-Mod to open flows switch OFS, compares item build multilevel flow table to make described OFS according to described stream table content and described triggering, and according to described multilevel flow table report network state information;
Described OFC receives the network status messages that described OFS sends.
In conjunction with second aspect present invention, in the first implementation of second aspect present invention, described OFC also comprises after receiving the network status messages of described OFS transmission:
Described OFC upgrades triggering according to described network status messages and compares item;
The triggering of renewal is compared item and is added described Flow-Mod to by described OFC, to obtain the Flow-Mod of renewal;
Described OFC sends the Flow-Mod of described renewal to described OFS, upgrades multilevel flow table to make described OFS according to the Flow-Mod of described renewal.
Third aspect present invention provides a kind of open flows switch OFS, and described OFS comprises:
First performance element, for being mated with multilevel flow table by the packet got, obtain the result of coupling, described multilevel flow table comprises operational order and trigger table, and described trigger table comprises triggering and compares item;
First determining unit, for the result of the coupling according to described first performance element acquisition, determines the operational order that described packet is corresponding;
First judging unit, when pointing to described trigger table for the operational order corresponding when described packet, described OFS compares item according to the triggering in described trigger table and carries out report condition judgement to described packet, obtains the result judged;
Second performance element, during for meeting preset triggering report condition when the result of described judgement, described OFS is according to the result generating network state information of described judgement;
First transmitting element, for sending described network state information to open flows controller OFC.
In conjunction with third aspect present invention, in the first implementation of third aspect present invention, it is characterized in that, described OFS also comprises:
First receiving element, for receiving the stream table edit messages Flow-Mod that described OFC sends, described Flow-Mod comprises stream table content and item is compared in described triggering;
First dispensing unit, for showing composition of content multilevel flow table according to described stream;
Second dispensing unit, constructs described trigger table for comparing item according to described triggering;
3rd performance element, for adding described trigger table to described multilevel flow table end, and sets up the corresponding relation of described multilevel flow table and described trigger table.
In conjunction with the first implementation of third aspect present invention and the third aspect, in the second implementation of third aspect present invention, described first dispensing unit specifically comprises:
First configuration module, for dividing described stream table content according to the matching field preset, to obtain at least two subflow tables;
Second configuration module, for becoming described multilevel flow table according to preset order by described subflow table pack.
In conjunction with the first to the second implementation of third aspect present invention and the third aspect, in the third implementation of third aspect present invention, second performance element, during specifically for meeting preset triggering report condition when the result of described judgement, structure Packet-in packet, and described network state information is added to the extended field of described Packet-in packet;
First transmitting element, specifically for sending the Packet-in packet adding described network state information to described OFC.
In conjunction with third aspect present invention and the third aspect first to the third implementation, in the 4th kind of implementation of third aspect present invention, the result of described coupling is described data packet matched to the stream list item of in described multilevel flow table; Described OFS also comprises:
Second judging unit, for the operational order in the stream list item that basis and described packet match, judges whether to construct Packet-in packet;
Described second performance element also comprises further:
3rd configuration module, for when not constructing described Packet-in packet, structure Packet-in packet, and add described network state information to described Packet-in packet;
4th configuration module, for when constructing described Packet-in packet, then described OFS constructs the Packet-in packet that reanson field is warning, and described network state information is added to the Packet-in packet that reanson field is warning.
In conjunction with first to fourth kind of implementation of third aspect present invention and the third aspect, in the 5th kind of implementation of third aspect present invention, described OFS also comprises:
Updating block, when pointing to described trigger table for the operational order corresponding when described packet, upgrades current network state and the counter corresponding with the stream list item in described data packet matched multilevel flow table.
Fourth aspect present invention provides a kind of open flows controller OFC, and described OFC comprises:
First dispensing unit, for building stream table edit messages Flow-Mod, described Flow-Mod comprises stream table content and item is compared in triggering, and described triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
First transmitting element, for sending described Flow-Mod to open flows switch OFS, comparing item to make described OFS according to described stream table content and described triggering and building multilevel flow table, and according to described multilevel flow table report network state information;
Receiving element, for receiving the network state information that described OFS sends.
In conjunction with fourth aspect present invention, in the first implementation of fourth aspect present invention, described OFC also comprises:
Updating block, compares item for upgrading triggering according to described network status messages;
Second dispensing unit, adds described Flow-Mod to for item is compared in the triggering of renewal, to obtain the Flow-Mod of renewal;
Second transmitting element, for sending the Flow-Mod of described renewal to described OFS, upgrades multilevel flow table to make described OFS according to the Flow-Mod of described renewal.
According to the description of the embodiment of the present invention of first aspect and the third aspect, when the packet got is mated with multilevel flow table, determine the operational order that described packet is corresponding, when the operational order that described packet is corresponding points to described trigger table, described OFS compares item according to the triggering in described trigger table and carries out report condition judgement to described packet, when the result judged is when meeting preset triggering report condition, according to the result generating network state information of described judgement, and send described network state information to open flows controller OFC, with make OFC can Real-time Obtaining to current network state information, effective raising OFC is to the susceptibility of network state and reaction speed, improve quality of network management.
According to the description of the embodiment of the present invention of second aspect and fourth aspect, by comparing item in the end interpolation triggering of Flow-Mod, Flow-Mod is expanded, make while issuing stream table, also issued preset triggering report condition, make OFS can construct new multithread list structure according to Flow-Mod, execution triggers the judgement flow process comparing item and obtains current network state information, then timely network state information is reported, achieve the real-time monitoring to network, improve fail safe and the stability of network.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in the embodiment of the present invention below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 2 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 3 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 4 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 5 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 6 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 7 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 8 is a kind of another embodiment schematic diagram obtaining the method for network state in the present embodiment;
Fig. 9 is an embodiment schematic diagram of a kind of open flows switch OFS in the present embodiment;
Figure 10 is another embodiment schematic diagram of a kind of open flows switch OFS in the present embodiment;
Figure 11 is another embodiment schematic diagram of a kind of open flows switch OFS in the present embodiment;
Figure 12 is another embodiment schematic diagram of a kind of open flows switch OFS in the present embodiment;
Figure 13 is an embodiment schematic diagram of a kind of open flows controller OFC in the present embodiment;
Figure 14 is another embodiment schematic diagram of a kind of open flows controller OFC in the present embodiment;
Figure 15 is the Flow-Mod structural representation of a kind of expansion in the present embodiment;
Figure 16 is the entity apparatus schematic diagram of a kind of open flows switch OFS in the present embodiment;
Figure 17 is the entity apparatus schematic diagram of a kind of open flows controller OFC in the present embodiment.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " 4th " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.The embodiments described herein should be appreciated that the data used like this can be exchanged in the appropriate case, so that can be implemented with the order except the content except here diagram or description.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiments provide a kind of method and the device that obtain network state, cannot the problem of Real-time Obtaining network state for solving Control Server in prior art.Below be described in detail.
The embodiment of the present invention is applied to Openflow network, Openflow network comprises open flows controller (Openflowcontroller, OFC), open flows switch (Openflowswitch, OFS), it should be noted that, operate herein to comprise and jump to certain follow-up first-class table continuation process, Update Table bag and the set of actions etc. that execution packet is corresponding immediately, network state information comprises stream list item matching status, packet performs port load condition, lose/forward/receive the analogue such as total quantity or packet TTR inefficacy of packet, as long as any network state that may occur in network is all included, all be not construed as limiting herein.
Please refer to Fig. 1, in the embodiment of the present invention, a kind of method embodiment obtaining network state comprises:
101, the packet got mates with multilevel flow table by open flows switch OFS;
OFS obtains the packet in network, and resolves this packet, and mates with multilevel flow table, and obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item;
Wherein, after packet enters switch, will mate successively from stream table 0, in subsequent treatment, stream table can be bypassed the immediate leadership redirect in order from small to large, but can not jump to forward the less stream table of numbering from certain first-class table.Stream list item mates with the order of priority height with packet, when after packet successful match to a stream list item, first can upgrade the statistics (data packet number of successful match and total bytes etc. such as occur) of counter records corresponding to this stream list item, then carry out corresponding operating (such as jumping to certain follow-up first-class table to continue process, revise or perform set of actions etc. corresponding to this packet immediately) according to the instruction in stream list item.When packet has been in last stream table, the everything instruction in the set of actions (ActionSet) of its correspondence will be performed (being such as forwarded to certain Single port, Update Table Bao one field, packet discard etc.).
102, OFS is according to the result of coupling, determines the operational order that packet is corresponding;
103, when the operational order that packet is corresponding points to trigger table, OFS compares item according to the triggering in trigger table and carries out report condition judgement to packet;
Perform all triggerings in trigger table and compare the judgement flow process of item, complete after all triggerings compare the judgement of item, obtain the result judged;
104, when determining that the result judged is when meeting preset triggering report condition, OFS generates current network state information according to the result judged.
105, OFS sends network state information to open flows controller OFC.
In the embodiment of the present invention, the packet of acquisition is mated with the multilevel flow table comprising trigger table, when the operational order that packet is corresponding points to trigger table, the judgement flow process of item is compared in the triggering performed in trigger table, when the result judged is, when meeting preset triggering report condition, generate current network state information; Network state information is sent to OFC, with make OFC can Real-time Obtaining to current network state information with monitor in real time network, improve OFC to the susceptibility of network state, reaction speed and quality of network management.
Please refer to Fig. 2, in the embodiment of the present invention, a kind of method embodiment obtaining network state comprises:
201, OFS receives the stream table edit messages Flow-Mod that OFC sends;
Flow-Mod comprises stream table content and item is compared in triggering;
OFS according to stream table composition of content multilevel flow table, and compares item structure trigger table according to triggering;
Wherein, concrete structure multilevel flow table implementation is as follows:
Stream is shown content according to the matching field preset and is divided, to obtain at least two subflow tables by OFS;
Subflow table pack is become multilevel flow table according to preset order by OFS.
202, OFS adds trigger table to multilevel flow table end, and sets up the corresponding relation of multilevel flow table and trigger table;
Flow-Mod, for storing alarm information, is stored in multilevel flow table by the trigger table of multilevel flow table end;
Herein, this corresponding relation is:
Be point to the triggering index in trigger table by last operation setting of multilevel flow table, specific implementation is as follows:
Corresponding operation is performed according to the operation in stream list item, last subflow table is forwarded when completing, and the arbitrary operation determining to flow in last subflow table list item is pointed to when triggering index TriggerID in trigger table, performs all operations in the stream list item in last subflow table;
By described Packet Generation to trigger table, item is compared in the triggering of the corresponding same operation type of each TriggerID, it should be noted that, the implementation of the multilevel flow table occurred herein and the corresponding relation of trigger table and identical herein, all repeats no more.
203, the packet of acquisition mates with multilevel flow table by OFS;
OFS obtains the packet in network, and resolves this packet, and mates with multilevel flow table, and obtain the result of coupling, this multilevel flow table comprises operational order and trigger table, and this trigger table comprises triggering and compares item.
204, OFS is according to the result of coupling, determines the operational order that packet is corresponding.
205, when the operational order that packet is corresponding points to trigger table, OFS compares item according to the triggering in trigger table and carries out report condition judgement to packet;
Perform all triggerings in trigger table and compare the judgement flow process of item, complete after all triggerings compare the judgement of item, obtain the result judged.
206, when determining that the result judged is when meeting preset triggering report condition, OFS generates current network state information according to the result judged;
Wherein, stream list item comprises counter and overtime timer, and triggering is compared item and specifically comprised:
When exceeding default value according to the counting of counter to matched data bag, determine to meet preset triggering report condition;
When the maximum idle time that overtime timer exists exceed preset time threshold or maximum residual time lower than preset time threshold at least one time, determine to meet preset triggering report condition, it should be noted that, it can be 16 Hard_timeout that item is compared in the default triggering occurred herein, Flowtablestatus64 position PacketMatches, Groupstatus32 position PacketCount, Flowentrystatus32 position Duration (seconds), Portstatus64 position TransmittedPackets, the check item that Portstatus64 position ReceiveOverrunErrors etc. is similar, to this, all be not construed as limiting herein.
207, OFS sends network state information to open flows controller OFC;
Network state information is sent to OFC specifically comprise: structure Packet-in packet, and network state information is added to the extended field of Packet-in packet, and send the Packet-in packet adding network state information to OFC.
In the embodiment of the present invention, the end that acquisition OFC issues presets the Flow-Mod message triggering and compare item, and use the end constructed in advance to be provided with the multithread list structure of trigger table, make after matching corresponding stream list item, when determining to trigger index in the operation sensing trigger table in stream list item, packet is jumped to trigger table; Execution reports judgement flow process, when making network state meet preset triggering report condition, current network state information is sent to OFC, make OFC can make process timely and effectively and in real time monitoring to current network state, improve OFC to the susceptibility of network state, reaction speed and quality of network management.
Please refer to Fig. 3, in the embodiment of the present invention, a kind of method embodiment obtaining network state comprises:
301, the packet got mates with multilevel flow table by OFS;
OFS obtains the packet in network, and resolves this packet, and is mated with multilevel flow table by the packet after resolving, obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item, triggers and compares item correspondence triggering index.
It should be noted that, generally trigger table is arranged on multilevel flow table end, but any one that also can be arranged in multilevel flow table in multiple subflow table is local, as long as concrete setting position can realize, herein to the expanded function of multilevel flow table, being all not construed as limiting herein.
302, after completing multilevel flow table forwarding, data packet matched to the stream list item of in multilevel flow table, when OFS determines that trigger table is pointed in last operation of flowing in list item, packet is jumped to trigger table by OFS.
303, OFS performs and judges whether the network parameter relevant to packet exceeds the flow process triggering and compare the preset value of item;
Complete trigger compare the judgement flow process of item after, determine that the result judged is when meeting preset triggering report condition, the result exceeding all judgements triggering the preset value compared in item is set to current network state information, wherein, preset value be 0 triggering compare item and do not perform deterministic process, and generate the result of a total judgement;
304, OFS is according to the operational order in the stream list item matched with subdata bag, judges whether to construct Packet-in packet, if so, then performs step 305, if not, then performs step 306;
305, OFS constructs the Packet-in packet that reanson field is warning;
Alarm type is added in the Reason territory of Packet-in packet;
Item is compared in the triggering of satisfied triggering report condition to be added in Reason territory;
Every bar comprises the trigger action item in all corresponding trigger table of operation in the stream list item of alarm type;
Network state information being added to reanson field is in the Packet-in packet of warning.
306, OFS constructs a Packet-in packet;
After constructing a Packet-in packet, network state information is added to Packet-in packet.
307, OFS will add the Packet-in Packet Generation of network state information to OFC;
Perform and trigger trigger action item corresponding with this operation in index, by Packet-in Packet Generation to OFC.
In the embodiment of the present invention, in the embodiment of the present invention, the packet of acquisition is mated with the multilevel flow table comprising trigger table, when the operational order that packet is corresponding points to trigger table, the judgement flow process of item is compared in the triggering performed in trigger table, when the result judged is when meeting preset triggering report condition, generate current network state information, and network state information is added in Packet-in packet, and send to OFC, with make OFC can Real-time Obtaining to current network state information with monitor in real time network, improve the susceptibility of OFC to network state, reaction speed and quality of network management.
Please refer to Fig. 4, in the embodiment of the present invention, a kind of method embodiment obtaining network state comprises:
401, OFS receives the stream table edit messages Flow-Mod that OFC sends;
Flow-Mod comprises stream table content and item is compared in triggering;
OFS according to stream table composition of content multilevel flow table, and compares item structure trigger table according to triggering;
Wherein, concrete structure multilevel flow table implementation is as follows:
Stream is shown content according to the matching field preset and is divided, to obtain at least two subflow tables by OFS;
Subflow table pack is become multilevel flow table according to preset order by OFS.
402, OFS adds trigger table to multilevel flow table end, and sets up the corresponding relation of multilevel flow table and trigger table;
It should be noted that, generally trigger table is arranged on multilevel flow table end, but any one that also can be arranged in multilevel flow table in multiple subflow table is local, as long as concrete setting position can realize, herein to the expanded function of multilevel flow table, being all not construed as limiting herein.
Flow-Mod, for storing alarm information, is stored in multilevel flow table by the trigger table of multilevel flow table end;
Flow-Mod is stored in multilevel flow table and specifically comprises:
Multilevel flow table is split as at least two subflow tables according to matching field feature, and Flow-Mod is carried out splitting at least two sub-blocks, be stored in corresponding subflow table respectively to make at least two sub-blocks;
Herein, this corresponding relation is: be point to the triggering index in trigger table by last operation setting of multilevel flow table, specific implementation is as follows:
Corresponding operation is performed according to the operation in described stream list item, last subflow table is forwarded when completing, and the arbitrary operation determining to flow in last subflow table list item is pointed to when triggering index TriggerID in trigger table, performs all operations in the stream list item in last subflow table;
By described Packet Generation to trigger table, item is compared in the triggering of the corresponding same operation type of each TriggerID, it should be noted that, the implementation of the multilevel flow table occurred herein and the corresponding relation of trigger table and identical herein, all repeats no more;
The packet of acquisition mates with multilevel flow table by multilevel flow table 403, OFS;
OFS obtains the packet in network, and resolves this packet, and mates with multilevel flow table, and obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item.
Wherein, after packet enters switch, will mate successively from stream table 0, in subsequent treatment, stream table can be bypassed the immediate leadership redirect in order from small to large, but can not jump to forward the less stream table of numbering from certain first-class table.Stream list item mates with the order of priority height with packet, when after packet successful match to a stream list item, first can upgrade the statistics (data packet number of successful match and total bytes etc. such as occur) of counter records corresponding to this stream list item, then carry out corresponding operating (such as jumping to certain follow-up first-class table to continue process, revise or perform set of actions etc. corresponding to this packet immediately) according to the instruction in stream list item.When packet has been in last stream table, the everything instruction in the set of actions (ActionSet) of its correspondence will be performed (being such as forwarded to certain Single port, Update Table Bao one field, packet discard etc.).
404, when completing after multilevel flow table forwards, data packet matched in multilevel flow table stream list item, when trigger table is pointed in last operation determining in this stream list item, OFS by this Packet Generation to trigger table.
405, OFS performs and judges whether the network parameter relevant to packet exceeds the flow process triggering and compare the preset value of item;
Complete trigger compare the judgement flow process of item after, determine that the result judged is when meeting preset triggering report condition, be set to current network state information by exceeding the result triggering all judgements of comparing preset value in item, wherein, preset value be 0 triggering compare item and do not perform deterministic process.
406, whether OFS has constructed Packet-in packet according to the operation judges in the stream list item matched with subdata bag, if so, then performs step 407, if not, then performs step 408;
407, OFS constructs the Packet-in packet that a reason field is warning;
Alarm type is added in the Reason territory of Packet-in packet;
Item is compared in the triggering of satisfied triggering report condition to be added in Reason territory;
Every bar comprises the trigger action item in all corresponding trigger table of operation in the stream list item of alarm type;
Network state information being added to reanson field is in the Packet-in packet of warning.
408, OFS constructs a Packet-in packet;
After constructing a Packet-in packet, network state information is added to described Packet-in packet.
409, OFS will add the Packet-in Packet Generation of network state information to OFC;
Perform at least one triggering index and operate corresponding trigger action item with at least one, by Packet-in Packet Generation to OFC.
In the embodiment of the present invention, in the embodiment of the present invention, the end that acquisition OFC issues presets the Flow-Mod message triggering and compare item, and use the end constructed in advance to be provided with the multithread list structure of trigger table, make after matching corresponding stream list item, when determining to trigger index in the operation sensing trigger table in stream list item, packet is jumped to trigger table; Execution reports judgement flow process, when making network state meet preset triggering report condition, current network state information is sent to OFC, make OFC can make process and real-time monitoring timely and effectively to current network state, improve OFC to the susceptibility of network state, reaction speed and quality of network management.
Please refer to Fig. 5, in the embodiment of the present invention, a kind of method embodiment obtaining network state comprises:
501, OFS receives the stream table edit messages Flow-Mod that OFC sends;
Flow-Mod comprises stream table content and item is compared in triggering;
OFS according to stream table composition of content multilevel flow table, and compares item structure trigger table according to triggering;
Wherein, concrete structure multilevel flow table implementation is as follows:
Stream is shown content according to the matching field preset and is divided, to obtain at least two subflow tables by OFS;
Subflow table pack is become multilevel flow table according to preset order by OFS.
502, OFS adds trigger table to multilevel flow table end, and sets up the corresponding relation of multilevel flow table and trigger table;
Herein, this corresponding relation is: be point to the triggering index in trigger table by last operation setting of multilevel flow table, specific implementation is as follows:
Corresponding operation is performed according to the operation in described stream list item, last subflow table is forwarded when completing, and the arbitrary operation determining to flow in last subflow table list item is pointed to when triggering index TriggerID in trigger table, performs all operations in the stream list item in last subflow table;
By described Packet Generation to trigger table, item is compared in the triggering of the corresponding same operation type of each TriggerID, it should be noted that, the implementation of the multilevel flow table occurred herein and the corresponding relation of trigger table and identical herein, all repeats no more;
It should be noted that, generally trigger table is arranged on multilevel flow table end, but any one that also can be arranged in multilevel flow table in multiple subflow table is local, as long as concrete setting position can realize, herein to the expanded function of multilevel flow table, being all not construed as limiting herein.
Flow-Mod, for storing alarm information, is stored in multilevel flow table by the trigger table of multilevel flow table end;
Flow-Mod is stored in multilevel flow table and specifically comprises:
Multilevel flow table is split as at least two subflow tables according to matching field feature, is carried out splitting at least two sub-blocks by Flow-Mod, at least two sub-blocks are stored in corresponding subflow table respectively;
Be point to the triggering index in trigger table by last operation setting of multilevel flow table.
503, the packet of acquisition mates with multilevel flow table by OFS;
OFS obtains the packet in network, and resolves this packet, and mates with multilevel flow table, and obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item.
Wherein, after packet enters switch, will mate successively from stream table 0, in subsequent treatment, stream table can be bypassed the immediate leadership redirect in order from small to large, but can not jump to forward the less stream table of numbering from certain first-class table.Stream list item mates with the order of priority height with packet, when after packet successful match to a stream list item, first can upgrade the statistics of counter records corresponding to this stream list item.
504, after completing multilevel flow table forwarding, data packet matched to the stream list item of in multilevel flow table, when OFS determines that trigger table is pointed in last operation of flowing in list item, packet is jumped to trigger table by OFS;
Successively packet is mated with the stream list item in subflow table;
When this data packet matched to one stream list item time, upgrade the statistics of the counter records corresponding with stream list item, such as counter information, this is all not construed as limiting herein, wherein, at least two sub-packets mate with stream list item from high to low according to the stream list item priority of the stream list item matched;
Operate according to the operation in stream list item, last subflow table is forwarded when completing, and last operation determining to flow in last subflow table list item is pointed to when triggering index TriggerID in trigger table, performs all operations in the stream list item in last subflow table;
Packet is jumped to trigger table, and item is compared in the triggering of the corresponding same operation type of each TriggerID.
505, whether OFS exceeds according to the network parameter relevant to packet and triggers the result comparing the judgement of the preset value of item and judge whether to meet preset triggering report condition, if so, then performs step 506, if not, then terminates;
The judgement flow process of item is compared in the triggering that in execution trigger table, all triggering indexes are corresponding;
Complete after all triggerings compare the judgement of item, obtain the result judged.
506, the result exceeding all judgements triggering the preset value compared in item is set to network state information by OFS;
Wherein, stream list item comprises counter and overtime timer, and triggering is compared item and specifically comprised:
When exceeding default value according to the counting of counter to matched data bag, determine to meet preset triggering report condition;
When the maximum idle time that overtime timer exists exceed preset time threshold or maximum residual time lower than preset time threshold at least one time, determine to meet preset triggering report condition, it should be noted that, it can be 16 Hard_timeout that item is compared in the default triggering occurred herein, Flowtablestatus64 position PacketMatches, Groupstatus32 position PacketCount, Flowentrystatus32 position Duration (seconds), Portstatus64 position TransmittedPackets, the check item that Portstatus64 position ReceiveOverrunErrors etc. is similar, to this, all be not construed as limiting herein.
Perform and judge whether the network parameter relevant to packet exceeds the flow process triggering and compare the preset value of item;
Complete trigger compare the judgement flow process of item after, determine that the result judged is when meeting preset triggering report condition, be set to current network state information by exceeding the result triggering all judgements of comparing preset value in item, wherein, preset value be 0 triggering compare item and do not perform deterministic process.
507, network state information is sent to OFC by OFS;
Perform and trigger trigger action item corresponding with this operation in index, and by Packet-in Packet Generation to OFC.
In the embodiment of the present invention, the end that acquisition OFC issues presets the Flow-Mod message triggering and compare item, and use the end constructed in advance to be provided with the multithread list structure of trigger table, make after matching corresponding stream list item, when determining to trigger index in the operation sensing trigger table in stream list item, by Packet Generation to trigger table; Execution reports judgement flow process, when making network state meet preset triggering report condition, current network state information is sent to OFC, make OFC can make process timely and effectively and in real time monitoring to current network state, improve OFC to the susceptibility of network state, reaction speed and quality of network management.
For ease of understanding, be described in detail to the embodiment of the present invention with an embody rule scene below, refer to Fig. 6, a kind of another embodiment of method obtaining network state of the embodiment of the present invention comprises:
601, OFS receives the stream table edit messages Flow-Mod that OFC sends;
Flow-Mod comprises stream table content and item is compared in triggering;
OFS according to stream table composition of content multilevel flow table, and compares item structure trigger table according to triggering;
Wherein, concrete structure multilevel flow table implementation is as follows:
Stream is shown content according to the matching field preset and is divided, to obtain n subflow table by OFS;
Subflow table pack is become n level stream table according to preset order by OFS.
Trigger-extension part in n level stream table compares item, as shown in the Figure 15 in Figure of description for namely triggering the expansion of Flow-Mod in the embodiment of the present invention:
602, OFS adds trigger table at n level stream table end;
Trigger table is added to n level stream table end by OFS, and set up the corresponding relation of n level stream table and trigger table, the expansion of this n level stream table is identical with the Trigger-extension described in step 601, repeat no more herein, Flow-Mod, for storing alarm information, is stored in multilevel flow table by the trigger table of n level stream table end;
This corresponding relation is:
Be point to the triggering index TriggerID in trigger table by last operation setting of multilevel flow table, specific implementation is as follows:
Corresponding operation is performed according to the operation in stream list item, last subflow table is forwarded when completing, and the arbitrary operation determining to flow in last subflow table list item is pointed to when triggering index TriggerID in trigger table, performs all operations in the stream list item in last subflow table;
Flow-Mod is stored in multilevel flow table and specifically comprises:
N level stream table is split as at least two subflow tables according to the matching field feature preset, and is carried out splitting at least two sub-blocks by Flow-Mod, at least two sub-blocks are stored in corresponding subflow table respectively;
Be point to the triggering index in trigger table by last operation setting of multilevel flow table.
603, the packet of acquisition mates with n level stream table by OFS;
Wherein, after packet enters switch, will mate successively from stream table 0, in subsequent treatment, stream table can be bypassed the immediate leadership redirect in order from small to large, but can not jump to forward the less stream table of numbering from certain first-class table.Stream list item mates with the order of priority height with packet, when after packet successful match to a stream list item, first can upgrade the statistics of counter records corresponding to this stream list item.
When this data packet matched to one stream list item time, upgrade the statistics of the counter records corresponding with stream list item, such as counter information, this is all not construed as limiting herein, wherein, at least two sub-packets mate with stream list item from high to low according to the stream list item priority of the stream list item matched;
Wherein, the matching domain especially by stream list item mates with packet.
604, when data packet matched to the stream list item in n level stream table, OFS determine in Flowentry1 last operation action point to TriggerID2 time, OFS by Packet Generation to TriggerTable;
Operate according to the operation in stream list item, last stream table n is forwarded when completing, and when determining to flow the triggering index TriggerID at least one operation sensing trigger table of list item in stream table n, perform all operations in the stream list item in last subflow table;
By Packet Generation to trigger table, item is compared in the triggering of the corresponding same operation type of each TriggerID.
Flowtable1, Flowtable2 is executed at this packet ... after Flowtablen, last operation setting of Flowtablen is the TriggerID turned in trigger table by the Trigger-extension in resolution data bag, shown in table specific as follows:
605, OFS performs and judges whether the network parameter relevant to packet exceeds the flow process triggering and compare the preset value of item;
Complete trigger compare in the judgement flow process of item, Portstatus64 position TransmittedPackets identifies the data traffic that this port receives and exceedes preset value, then determine that the result judged is meet preset triggering report condition, therefore the result this triggering being compared the judgement of item is set to current network state information.
606, OFS judges whether to construct Packet-in packet according to the stream list item matched with subdata bag, if so, then carry out step 607, if not, then carry out step 608;
607, OFS constructs the Packet-in packet that a reason field is warning;
Alarm type is added in the Reason territory of Packet-in packet;
Satisfied triggering being compared item adds in Reason territory;
Determine to trigger compare in item at least exist value that a triggering compares item exceed predetermined threshold value time, Packet territory is added to Packet-in packet end;
Every bar comprises the trigger action item in all corresponding trigger table of operation in the stream list item of alarm type.
608, OFS adds trigger table at Packet-in packet end;
When being included in the judgement flow process performing and trigger report condition in this trigger table, the numerical value of item is compared in the triggering exceeding predetermined threshold value.
609, network state information adds in Packet-in packet by OFS;
610, OFS will add the Packet-in Packet Generation of network state information to OFC;
Perform at least one triggering index and operate corresponding trigger action item with at least one, by Packet-in Packet Generation to OFC.
In the embodiment of the present invention, in the embodiment of the present invention, the end that acquisition OFC issues presets the Flow-Mod message triggering and compare item, and use the end constructed in advance to be provided with the multithread list structure of trigger table, make after matching corresponding stream list item, when determining to trigger index in the operation sensing trigger table in stream list item, packet is jumped to trigger table; Execution reports judgement flow process, when making network state meet preset triggering report condition, current network state information is sent to OFC, make OFC can make process timely and effectively and in real time monitoring to current network state, improve OFC to the susceptibility of network state, reaction speed and quality of network management.
With the angle of open flows switch OFS, the method obtaining network state a kind of in the embodiment of the present invention is described above, with the angle of open flows controller OFC, the embodiment of the present invention is described in detail below, refer to Fig. 7, wherein, trigger table is kept in OFC, trigger table is for storing the information triggering and compare the stream list item of all stream tables in item and open flows switch OFS, and in the embodiment of the present invention, a kind of another embodiment obtaining the method for network state comprises:
701, open flows controller OFC builds stream table edit messages Flow-Mod;
Flow-Mod comprises stream table content and item is compared in triggering, and triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
By comparing item in the end interpolation triggering of Flow-Mod, Flow-Mod being expanded, making while issuing stream table, also issued preset triggering report condition;
Wherein, this triggering compares item for the multilevel flow table that the packet got and end are provided with described trigger table being mated as OFS, and this is data packet matched to the last item stream list item in this multilevel flow table, when determining that described trigger table is pointed in last operation of flowing in list item, by described Packet Generation to described trigger table, perform each self-corresponding triggering of all triggering indexes in described trigger table to make described OFS and compare the judgement flow process of item, when the result judged is when meeting preset triggering report condition, result according to judging generates current network state information.
702, OFC sends Flow-Mod to open flows switch OFS;
This Flow-Mod is sent to OFS, compare item to make OFS according to the stream table content in this Flow-Mod and triggering and build multilevel flow table, and add this trigger table at multilevel flow table end, the triggering of Flow-Mod end is compared item and be stored in trigger table in multilevel flow table, and be point to the triggering index in described trigger table by last operation setting of multilevel flow table, when the packet of acquisition being mated with this multilevel flow table to make OFS, packet is jumped to trigger table, thus perform the judgement of the triggering report condition preset, to obtain network state information, and report,
703, OFC receives the network state information that OFS sends.
After receiving the network state information that OFS sends, OFC can according to the network state information of current acquisition to the monitoring of network implementation, can carry out effectively or timely processing, such as revise fire compartment wall etc.
In the embodiment of the present invention, by comparing item in the end interpolation triggering of Flow-Mod, Flow-Mod is expanded, make while issuing stream table, also issued preset triggering report condition, make OFS can construct new multithread list structure according to Flow-Mod, execution triggers the judgement flow process comparing item and obtains current network state information, then timely network state information is reported, achieve the real-time monitoring to network, improve fail safe and the stability of network.
Refer to Fig. 8, in the embodiment of the present invention, a kind of another embodiment obtaining the method for network state comprises:
801, open flows controller OFC builds stream table edit messages Flow-Mod;
Flow-Mod comprises stream table content and item is compared in triggering, and triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
By comparing item in the end interpolation triggering of Flow-Mod, Flow-Mod being expanded, making while issuing stream table, also issued preset triggering report condition;
Wherein, this triggering compares item for the multilevel flow table that the packet got and end are provided with described trigger table being mated as OFS, and this is data packet matched to the last item stream list item in this multilevel flow table, when determining that described trigger table is pointed in last operation of flowing in list item, by described Packet Generation to described trigger table, perform each self-corresponding triggering of all triggering indexes in described trigger table to make described OFS and compare the judgement flow process of item, when the result judged is when meeting preset triggering report condition, result according to judging generates current network state information.
802, OFC sends Flow-Mod to open flows switch OFS;
This Flow-Mod is sent to OFS, compare item to make OFS according to the stream table content in this Flow-Mod and triggering and build multilevel flow table, and add this trigger table at multilevel flow table end, the triggering of Flow-Mod end is compared item and be stored in trigger table in multilevel flow table, and be point to the triggering index in described trigger table by last operation setting of multilevel flow table, when the packet of acquisition being mated with this multilevel flow table to make OFS, packet is jumped to trigger table, thus perform the judgement of the triggering report condition preset, to obtain network state information, and report,
803, OFC receives the network state information that OFS sends.
After receiving the network state information that OFS sends, OFC can according to the network state information of current acquisition to the monitoring of network implementation, can carry out effectively or timely processing, such as revise fire compartment wall etc.
804, the set of network state activation threshold value is issued to OFS by OFC;
The set of network state activation threshold value is issued to described OFS, to make OFS upgrade the statistics of stream list item Counter record according to comparative result, and this network state activation threshold value set is compared;
805, OFC upgrades Flow-Mod according to network state information;
OFC upgrades triggering according to described network status messages and compares item, and item is compared in the triggering of renewal adds Flow-Mod to, to obtain the Flow-Mod of renewal;
OFC sends the Flow-Mod upgraded to OFS, upgrade multilevel flow table to make OFS according to the Flow-Mod upgraded.
Wherein, OFC upgrades triggering according to described network status messages to compare a specific implementation as follows:
According to the information of current network state and equipment and the stream list item after upgrading, from trigger table, select the triggering needed to compare item, and all the other are triggered compare item and set to 0;
The end that item adds described Flow-Mod to is compared in the triggering of selection, upgrades to make Flow-Mod.
In the embodiment of the present invention, by comparing item in the end interpolation triggering of Flow-Mod, Flow-Mod is expanded, make while issuing stream table, also issued preset triggering report condition, make OFS can construct new multithread list structure according to Flow-Mod, execution triggers the judgement flow process comparing item and obtains current network state information, then timely network state information is reported, and upgrade trigger table according to the network state information received, to make to upgrade the Flow-Mod issued as required, achieve the real-time monitoring to network, improve fail safe and the stability of network.
Above the method that a kind of network state of the embodiment of the present invention obtains is illustrated, with design factors, open flows switch OFS a kind of in the embodiment of the present invention is described below, refer to Fig. 9, in the embodiment of the present invention, an a kind of embodiment of open flows switch comprises:
First performance element 901, for being mated with multilevel flow table by the packet got, obtain the result of coupling, described multilevel flow table comprises operational order and trigger table, and described trigger table comprises triggering and compares item;
First determining unit 902, for the result of described coupling, determines the operational order that described packet is corresponding;
First judging unit 903, when pointing to described trigger table for the operational order corresponding when described packet, described OFS compares item according to the triggering in described trigger table and carries out report condition judgement to described packet, obtains the result judged;
Second performance element 904, for meeting preset triggering report condition when the result of described judgement time, described OFS is according to the result generating network state information of described judgement;
First transmitting element 905, for sending described network state information to open flows controller OFC.
In the embodiment of the present invention, packet mates with the multilevel flow table comprising trigger table by the first performance element 901, when the operational order that packet is corresponding points to trigger table, the judgement flow process of item is compared in first judging unit 903 triggering performed in trigger table, when the result judged is, when meeting preset triggering report condition, generate current network state information; Network state information is sent to OFC by the first transmitting element 904, with make OFC can Real-time Obtaining to current network state information with monitor in real time network, improve OFC to the susceptibility of network state and reaction speed, improve quality of network management.
Refer to Figure 10, in the embodiment of the present invention, a kind of another embodiment of open flows switch comprises:
First performance element 1001, for being mated with multilevel flow table by the packet got, obtain the result of coupling, this multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item;
First determining unit 1002, for the result according to coupling, determines the operational order that packet is corresponding;
First judging unit 1003, when pointing to described trigger table for the operational order corresponding when packet, the triggering in trigger table is compared item and is carried out report condition judgement to packet, obtains the result judged;
Second performance element 1004, for when judge result meet preset triggering report condition time, according to judge result generating network state information;
First transmitting element 1005, for sending network state information to open flows controller OFC.
Optionally, this OFS also comprises:
First receiving element 1006, for receiving the stream table edit messages Flow-Mod that OFC sends, this Flow-Mod comprises stream table content and item is compared in triggering;
First dispensing unit 1007, for showing composition of content multilevel flow table according to stream;
Second dispensing unit 1008, for comparing item structure trigger table according to triggering;
3rd performance element 1009, for adding trigger table to multilevel flow table end, and sets up the corresponding relation of multilevel flow table and trigger table.
Wherein, the first dispensing unit 1007 specifically comprises:
First configuration module 10071, for dividing described stream table content according to the matching field preset, to obtain at least two subflow tables;
Second configuration module 10072, for becoming multilevel flow table according to preset order by described subflow table pack.
In the embodiment of the present invention, packet mates with the multilevel flow table comprising trigger table by the first performance element 1001, when the operational order that packet is corresponding points to trigger table, the judgement flow process of item is compared in first judging unit 1003 triggering performed in trigger table, and the result of the judgement meeting preset triggering report condition is generated current network state information by the second performance element 1004; Network state information is sent to OFC by the first transmitting element 1005, with make OFC can Real-time Obtaining to current network state information with monitor in real time network, improve OFC to the susceptibility of network state and reaction speed, improve quality of network management.
Refer to Figure 11, in the embodiment of the present invention, a kind of another embodiment of open flows switch comprises:
First performance element 1101, for being mated with multilevel flow table by the packet got, obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item;
First determining unit 1102, for the result according to coupling, determines the operational order that packet is corresponding;
First judging unit 1103, when pointing to trigger table for the operational order corresponding when packet, compares item according to the triggering in trigger table and carries out report condition judgement to packet, obtain the result judged;
Second performance element 1104, for when judge result meet preset triggering report condition time, according to judge result generating network state information;
First transmitting element 1105, for sending network state information to open flows controller OFC.
Optionally, this OFS also comprises:
First receiving element 1106, for receiving the stream table edit messages Flow-Mod that OFC sends, this Flow-Mod comprises stream table content and item is compared in triggering;
First dispensing unit 1107, for showing composition of content multilevel flow table according to stream;
Second dispensing unit 1108, for comparing item structure trigger table according to triggering;
3rd performance element 1109, for adding trigger table to multilevel flow table end, and sets up the corresponding relation of multilevel flow table and trigger table.
Optionally, the result of coupling is data packet matched to the stream list item of in this multilevel flow table;
This OFS also comprises:
Second judging unit 1110, for the operational order in the stream list item that basis and described packet match, judges whether to construct Packet-in packet;
Further, the second performance element 1104 also comprises:
3rd configuration module 11041, for when not constructing described Packet-in packet, structure Packet-in packet, and add described network state information to described Packet-in packet;
4th configuration module 11042, for when constructing described Packet-in packet, then described OFS constructs the Packet-in packet that reanson field is warning, and described network state information is added to the Packet-in packet that reanson field is warning.
In the embodiment of the present invention, packet mates with the multilevel flow table comprising trigger table by the first performance element 1101, 3rd performance element 1109 receives Flow-Mod according to the first receiving element 1106 and constructs multilevel flow table and set up the corresponding relation of multilevel flow table and trigger table, make the first judging unit 1103 when the operational order that packet is corresponding points to trigger table, the judgement flow process of item is compared in the triggering performed in trigger table, 4th configuration module 11042 constructs the Packet-in packet that reanson field is warning, and described network state information is added to the Packet-in packet that reanson field is warning, ensure also can complete reporting of network state under packet abnormal conditions, first transmitting element 1105 will comprise the Packet-in Packet Generation of network state information to OFC, with make OFC can Real-time Obtaining to current network state information with monitor in real time network, improve OFC to the susceptibility of network state and reaction speed, improve quality of network management.
Refer to Figure 12, in the embodiment of the present invention, a kind of another embodiment of open flows switch comprises:
First performance element 1201, for being mated with multilevel flow table by the packet got, obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item;
First determining unit 1202, for the result according to coupling, determines the operational order that packet is corresponding;
First judging unit 1203, when pointing to trigger table for the operational order corresponding when packet, compares item according to the triggering in trigger table and carries out report condition judgement to packet, obtain the result judged;
Second performance element 1204, for when judge result meet preset triggering report condition time, according to judge result generating network state information;
First transmitting element 1205, for sending network state information to open flows controller OFC.
Wherein, the second performance element 1204, during specifically for meeting preset triggering report condition when the result of described judgement, structure Packet-in packet, and described network state information is added to the extended field of described Packet-in packet;
First transmitting element 1205, specifically for sending the Packet-in packet adding described network state information to described OFC.
Optionally, this OFS also comprises:
First receiving element 1206, for receiving the stream table edit messages Flow-Mod that OFC sends, this Flow-Mod comprises stream table content and item is compared in triggering;
First dispensing unit 1207, for showing composition of content multilevel flow table according to stream;
Second dispensing unit 1208, for comparing item structure trigger table according to triggering;
3rd performance element 1209, for adding trigger table to multilevel flow table end, and sets up the corresponding relation of multilevel flow table and trigger table.
Optionally, this OFS also comprises:
Updating block 1210, when pointing to described trigger table for the operational order corresponding when packet, upgrades current network state and the counter corresponding with the stream list item in data packet matched multilevel flow table.
In the embodiment of the present invention, packet mates with the multilevel flow table comprising trigger table by the first performance element 1201, 3rd performance element 1209 receives Flow-Mod according to the first receiving element 1206 and constructs multilevel flow table and set up the corresponding relation of multilevel flow table and trigger table, make the first judging unit 1203 when the operational order that packet is corresponding points to trigger table, updating block 1210 upgrades current network state and the counter corresponding with the stream list item in data packet matched multilevel flow table, and the judgement flow process of item is compared in the triggering performed in trigger table, and the result of the judgement meeting preset triggering report condition is generated current network state information, first transmitting element 1204 will comprise network state information Packet-in Packet Generation to OFC, with make OFC can Real-time Obtaining to current network state information with monitor in real time network, improve OFC to the susceptibility of network state and reaction speed, improve quality of network management.
Refer to Figure 13, in the embodiment of the present invention, an embodiment of a kind of open flows controller OFC comprises:
First dispensing unit 1301, for building stream table edit messages Flow-Mod, Flow-Mod comprises stream table content and item is compared in triggering, and this triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
First transmitting element 1302, for sending Flow-Mod to open flows switch OFS, comparing item to make OFS according to stream table content and triggering and building multilevel flow table, and according to multilevel flow table report network state information;
Receiving element 1303, for receiving the network state information that OFS sends.
In the embodiment of the present invention, first dispensing unit 1301 builds and comprises stream table content and trigger the Flow-Mod comparing item, OFS is handed down to by the first transmitting element 1302, packet is being mated with the multilevel flow table comprising trigger table by OFS, and during the operational order of correspondence sensing trigger table, compare item to triggering to judge, and will the result generating network state information of the judgement of preset triggering report condition be met, receiving element 1303 receives the network state information that OFS sends, thus according to getting current network state information and monitoring in real time network, improve the susceptibility of OFC to network state, reaction speed and quality of network management.
Refer to Figure 14, in the embodiment of the present invention, an embodiment of a kind of open flows controller OFC comprises:
First dispensing unit 1401, for building stream table edit messages Flow-Mod, Flow-Mod comprises stream table content and item is compared in triggering, and this triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
First transmitting element 1402, for sending Flow-Mod to open flows switch OFS, comparing item to make OFS according to stream table content and triggering and building multilevel flow table, and according to multilevel flow table report network state information;
Receiving element 1403, for receiving the network state information that OFS sends.
Optionally, in the embodiment of the present invention, OFC also comprises:
Updating block 1404, compares item for upgrading triggering according to network status messages;
Second dispensing unit 1405, adds Flow-Mod to for item is compared in the triggering of renewal, to obtain the Flow-Mod of renewal;
Second transmitting element 1406, for sending the Flow-Mod upgraded to OFS, upgrades multilevel flow table to make OFS according to the Flow-Mod upgraded.
In the embodiment of the present invention, first dispensing unit 1401 builds and comprises stream table content and trigger the Flow-Mod comparing item, OFS is handed down to by the first transmitting element 1402, packet is being mated with the multilevel flow table comprising trigger table by OFS, and during the operational order of correspondence sensing trigger table, compare item to triggering to judge, and will the result generating network state information of the judgement of preset triggering report condition be met, receiving element 1403 receives the network state information that OFS sends, thus according to getting current network state information and monitoring in real time network, improve the susceptibility of OFC to network state, reaction speed and quality of network management, in addition, updating block 1404 upgrades triggering according to network status messages and compares item, to make the second transmitting element 1406, the Flow-Mod that second dispensing unit 1405 upgrades is sent to OFS, multilevel flow table is upgraded according to the Flow-Mod upgraded to make OFS, make the monitoring of network state and equipment more flexible and accurate.
Supplementary notes, as shown in figure 15, in the embodiment of the present invention, the Field Options expanded packet and multilevel flow table is occurred default triggering herein and compares item, and during concrete operations, Field Options of these expansions are optional as follows:
8 flag: if this stream list item of mark is matched, then uploaded state information.
16 Hard_timeout: marking matched to remaining time during this stream list item, if be less than preset value, then uploaded state message; For full 0 does not then detect this.
Flowtablestatus64 position PacketMatches: the marking matched packet to this stream table exceedes preset value, then uploaded state message; For full 0 does not then detect this.
Flowentrystatus64 position ReceivedPackets: the marking matched packet to this stream list item exceedes preset value, then uploaded state information; For full 0 does not then detect this.
Portstatus64 position ReceivedPackets: identify the data traffic that this port receives and exceed preset value, then uploaded state message; For full 0 does not then detect this.
Portstatus64 position TransmittedPackets: the data traffic identifying this port transmission exceedes preset value, then uploaded state message; For full 0 does not then detect this.
Portstatus64 position ReceiveDrops: identify the data traffic that this port abandons and exceed preset value, then uploaded state message; For full 0 does not then detect this.
Queuestatus64 position TransmitPackets: identify the data traffic that this queue receives and exceed preset value, then uploaded state message; For full 0 does not then detect this.
Groupstatus32 position PacketCount: identify the data traffic that this group table receives and exceed preset value, then uploaded state message; For full 0 does not then detect this.
Therefore the above-mentioned every Field Options enumerated is only a part for optional condition, and complete optional condition comprises as follows:
Flowtablestatus64 position PacketLookups: represent the data packet number finding current stream table, exceed preset value then uploaded state message, preset value is full 0 is detect this.
Flowtablestatus64 position PacketMatches: represent the data packet number matching current stream table, exceed preset value then uploaded state message, preset value is full 0 is detect this.
Flowentrystatus64 position ReceivedPackets: represent the data packet number that current stream list item receives, exceedes preset value then uploaded state message, and preset value is full 0 is detect this.
Flowentrystatus64 position ReceivedBytes: represent the packet amount of bits that current stream list item receives, exceedes preset value then uploaded state message, and preset value is full 0 is detect this.
Flowentrystatus32 position Duration (seconds): the duration (second) representing current stream list item, exceedes preset value then uploaded state message, and preset value is full 0 is detect this.
Flowentrystatus32 position Duration (nanoseconds): the duration (nanosecond) representing current stream list item, exceedes preset value then uploaded state message, and preset value is full 0 is detect this.
Portstatus8 position portnumber: represent the port number that this stream table relates to, selects identical number of parameters according to port number from following 11 kinds of Field Options.
1, Portstatus64 position ReceivedPackets: represent and exceed the data packet number that port receives preset value then uploaded state message, do not check this time preset value is 0.
2, Portstatus64 position TransmittedPackets: represent and exceed the data packet number that port transmission is crossed preset value then uploaded state message, do not check this time preset value is 0.
3, Portstatus64 position ReceivedBytes: represent and exceed the packet amount of bits that port receives preset value then uploaded state message, do not check this time preset value is 0.
4, Portstatus64 position TransmittedBytes: represent port transmission cross packet amount of bits, exceed preset value then uploaded state message, time preset value is 0, do not check this.
5, Portstatus64 position ReceiveDrops: represent that port receives the data packet number abandoned, exceed preset value then uploaded state message, do not check this time preset value is 0.
6, Portstatus64 position TransmittedDrops: the packet discard amount of bits representing port transmission, exceedes preset value then uploaded state message, do not check this time preset value is 0.
7, Portstatus64 position ReceiveErrors: represent and exceed the number of errors that port receives preset value then uploaded state message, do not check this time preset value is 0.
8, Portstatus64 position TransmittedErrors: the number of errors representing port transmission, exceedes preset value then uploaded state message, do not check this time preset value is 0.
9, Portstatus64 position ReceiveFrameAlignmentErrors: represent port frame Wrong localization quantity, exceed preset value then uploaded state message, do not check this time preset value is 0.
10, Portstatus64 position ReceiveOverrunErrors: represent port hypervelocity number of errors, exceed preset value then uploaded state message, do not check this time preset value is 0.
11, Portstatus64 position ReceiveCRCErrors: represent port crc error quantity, exceed preset value then uploaded state message, do not check this time preset value is 0.
12, Portstatus64 position Collisions: represent port collision quantity, exceed preset value then uploaded state message, do not check this time preset value is 0.
13, Portstatus32 position Duration (seconds): represent the port time, exceed preset value then uploaded state message, do not check this time preset value is 0.
14, Portstatus32 position Duration (nanoseconds): represent the port time (nanosecond), exceed preset value then uploaded state message, do not check this time preset value is 0.
Queuestatus8 position queuenumber: represent the number of queues that this stream table relates to, selects identical number of parameters according to port number from following 5 kinds of Field Options.
1, queuestatus64 position TransmitPackets: identify the data packet number that this queue receives and exceed preset value, then uploaded state message; For full 0 does not then detect this.
2, queuestatus64 position TransmitBytes: identify the number of data bits that this queue receives and exceed preset value, then uploaded state message; For full 0 does not then detect this.
3, queuestatus64 position TransmitOverrunErrors: identify this queue hypervelocity transmission quantity and exceed preset value, then uploaded state message; For full 0 does not then detect this.
4, queuestatus32 position Duration (seconds): represent Queue time, exceed preset value then uploaded state message, do not check this time preset value is 0.
5, queuestatus32 position Duration (nanoseconds): represent Queue time (nanosecond), exceed preset value then uploaded state message, do not check this time preset value is 0.
Groupstatus32 position ReferenceCount (flowentries): represent current group of stream list item quantity of being correlated with, exceed preset value then uploaded state message, do not check this time preset value is 0.
Groupstatus64 position PacketCount: represent current group of data packet number, exceedes preset value then uploaded state message, does not check this time preset value is 0.
Groupstatus64 position ByteCount: represent current group of amount of bits, exceedes preset value then uploaded state message, does not check this time preset value is 0.
Groupstatus32 position Duration (seconds): represent current group of time, exceedes preset value then uploaded state message, does not check this time preset value is 0.
Groupstatus32 position Duration (nanoseconds): represent current group of time (nanosecond), exceedes preset value then uploaded state message, does not check this time preset value is 0.
GroupBucketstatus64 position PacketCount, represents current bucket data packet number, exceedes preset value then uploaded state message, does not check this time preset value is 0.
GroupBucketstatus64 position ByteCount, represents current bucket amount of bits, exceedes preset value then uploaded state message, does not check this time preset value is 0.
Please refer to Figure 16, another structural representation of open flows switch OFS that Figure 16 provides for the embodiment of the present invention, wherein, at least one processor 1601 (such as CPU can be comprised, CentralProcessingUnit), at least one network interface or other communication interface, memory 1602, receiving system 1603, dispensing device 1604 and at least one communication bus, for realizing the connection communication between these devices.The executable module of described processor 1601 for storing in execute store, such as computer program.Described memory 1602 may comprise high-speed random access memory (RAM, RandomAccessMemory), still may comprise non-labile memory (non-volatilememory), such as at least one magnetic disc store.Realize the communication connection between this system gateway and at least one other network element by least one network interface (can be wired or wireless), can the Internet be used, wide area network, local network, metropolitan area network etc.
As shown in figure 16, in some embodiments, store program command in memory 1602, program command can be performed by processor 1601, and processor 1601 specifically performs following steps:
Mated with multilevel flow table by the packet got, obtain the result of coupling, multilevel flow table comprises operational order and trigger table, and trigger table comprises triggering and compares item;
According to the result of coupling, determine the operational order that packet is corresponding;
When the operational order that packet is corresponding points to this trigger table, compare item according to the triggering in trigger table and report condition judgement is carried out to packet, obtain the result judged;
When the result judged meets preset triggering report condition, according to the result generating network state information judged, and send network state information to open flows controller OFC.
In some embodiments, processor 1601 can also perform following steps:
Receive the stream table edit messages Flow-Mod that OFC sends, Flow-Mod comprises stream table content and item is compared in triggering;
According to stream table composition of content multilevel flow table;
Item structure trigger table is compared according to triggering;
Trigger table is added to multilevel flow table end, and set up the corresponding relation of multilevel flow table and trigger table.
In some embodiments, processor 1601 can also perform following steps:
According to the matching field preset, stream is shown content to divide, to obtain at least two subflow tables;
According to preset order, subflow table pack is become multilevel flow table.
In some embodiments, processor 1601 can also perform following steps:
Structure Packet-in packet, and network state information is added to the extended field of Packet-in packet;
The Packet-in packet adding network state information is sent to OFC.
In some embodiments, processor 1601 can also perform following steps:
According to the operational order in the stream list item matched with packet, judge whether to construct Packet-in packet;
When not constructing Packet-in packet, then construct Packet-in packet, and add network state information to Packet-in packet;
When constructing Packet-in packet, then construct the Packet-in packet that reanson field is warning, and network state information is added to the Packet-in packet that reanson field is warning.
In some embodiments, processor 1601 can also perform following steps:
When the operational order that packet is corresponding points to trigger table, upgrade current network state and the counter corresponding with the stream list item in data packet matched multilevel flow table.
Please refer to Figure 17, another structural representation of open flows controller OFC that Figure 17 provides for the embodiment of the present invention, wherein, at least one processor 1701 (such as CPU can be comprised, CentralProcessingUnit), at least one network interface or other communication interface, memory 1702, receiving system 1703, dispensing device 1704, with at least one communication bus, for realizing the connection communication between these devices.The executable module of described processor 1701 for storing in execute store, such as computer program.Described memory 1702 may comprise high-speed random access memory (RAM, RandomAccessMemory), still may comprise non-labile memory (non-volatilememory), such as at least one magnetic disc store.Realize the communication connection between this system gateway and at least one other network element by least one network interface (can be wired or wireless), can the Internet be used, wide area network, local network, metropolitan area network etc.
As shown in figure 17, in some embodiments, store program command in memory 1702, program command can be performed by processor 1701, and processor 1701 specifically performs following steps:
Structure stream table edit messages Flow-Mod, Flow-Mod comprise stream table content and item is compared in triggering, and triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
Send Flow-Mod to open flows switch OFS, compare item to make OFS according to stream table content and triggering and build multilevel flow table, and according to multilevel flow table report network state information;
Receive the network status messages that OFS sends.
In some embodiments, described processor 1701 can also perform following steps:
Upgrade triggering according to network status messages and compare item;
Item is compared in the triggering of renewal and adds Flow-Mod to, to obtain the Flow-Mod of renewal;
Send the Flow-Mod upgraded to OFS, upgrade multilevel flow table to make OFS according to the Flow-Mod upgraded.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as at least two unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed at least two network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Above the method for a kind of moving object detection provided by the present invention and device are described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. obtain a method for network state, it is characterized in that, described method comprises:
The packet got mates with multilevel flow table by open flows switch OFS, and obtain the result of coupling, described multilevel flow table comprises operational order and trigger table, and described trigger table comprises triggering and compares item;
Described OFS, according to the result of described coupling, determines the operational order that described packet is corresponding;
When the operational order that described packet is corresponding points to described trigger table, described OFS compares item according to the triggering in described trigger table and carries out report condition judgement to described packet, obtains the result judged;
When the result of described judgement meets preset triggering report condition, described OFS according to the result generating network state information of described judgement, and sends described network state information to open flows controller OFC.
2. method according to claim 1, is characterized in that, described open flows switch OFS also comprises before being mated with multilevel flow table by the packet got:
Described OFS receives the stream table edit messages Flow-Mod that described OFC sends, and described Flow-Mod comprises stream table content and item is compared in described triggering;
Described OFS is multilevel flow table according to described stream table composition of content;
Described OFS compares item according to described triggering and constructs described trigger table;
Described OFS adds described trigger table to described multilevel flow table end, and sets up the corresponding relation of described multilevel flow table and described trigger table.
3. method according to claim 2, is characterized in that, described OFS comprises according to described stream table composition of content multilevel flow table:
Described stream table content divides according to the matching field preset, to obtain at least two subflow tables by described OFS;
Described subflow table pack is become described multilevel flow table according to preset order by described OFS.
4. according to the arbitrary described method of claims 1 to 3, it is characterized in that, describedly send described network state information to open flows controller OFC and specifically comprise:
Described OFS constructs Packet-in packet, and described network state information is added to the extended field of described Packet-in packet;
Described OFS sends the Packet-in packet adding described network state information to described OFC.
5. method according to claim 4, is characterized in that, the result of described coupling is described data packet matched to the stream list item of in described multilevel flow table;
Also comprise before described structure Packet-in packet:
Described OFS, according to the operational order in the stream list item matched with described packet, judges whether to construct Packet-in packet;
Described structure Packet-in packet, and the extended field described network state information being added to described Packet-in packet specifically comprises:
When not constructing described Packet-in packet, then described OFS constructs Packet-in packet, and adds described network state information to described Packet-in packet;
When constructing described Packet-in packet, then described OFS constructs the Packet-in packet that reanson field is warning, and described network state information is added to the Packet-in packet that reanson field is warning.
6., according to the arbitrary described method of claim 1 to 5, it is characterized in that, described method also comprises:
When the operational order that described packet is corresponding points to described trigger table, described OFS upgrades current network state and the counter corresponding with the stream list item in described data packet matched multilevel flow table.
7. obtain a method for network state, it is characterized in that, described method comprises:
Open flows controller OFC builds stream table edit messages Flow-Mod, and described Flow-Mod comprises stream table content and item is compared in triggering, and described triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
Described OFC sends described Flow-Mod to open flows switch OFS, compares item build multilevel flow table to make described OFS according to described stream table content and described triggering, and according to described multilevel flow table report network state information;
Described OFC receives the network status messages that described OFS sends.
8. method as claimed in claim 7, is characterized in that, described OFC also comprises after receiving the network status messages of described OFS transmission:
Described OFC upgrades triggering according to described network status messages and compares item;
The triggering of renewal is compared item and is added described Flow-Mod to by described OFC, to obtain the Flow-Mod of renewal;
Described OFC sends the Flow-Mod of described renewal to described OFS, upgrades multilevel flow table to make described OFS according to the Flow-Mod of described renewal.
9. an open flows switch OFS, is characterized in that, described OFS comprises:
First performance element, for being mated with multilevel flow table by the packet got, obtain the result of coupling, described multilevel flow table comprises operational order and trigger table, and described trigger table comprises triggering and compares item;
First determining unit, for the result of the coupling according to described first performance element acquisition, determines the operational order that described packet is corresponding;
First judging unit, when pointing to described trigger table for the operational order corresponding when described packet, described OFS compares item according to the triggering in described trigger table and carries out report condition judgement to described packet, obtains the result judged;
Second performance element, during for meeting preset triggering report condition when the result of described judgement, described OFS is according to the result generating network state information of described judgement;
First transmitting element, for sending described network state information to open flows controller OFC.
10. OFS according to claim 9, is characterized in that, described OFS also comprises:
First receiving element, for receiving the stream table edit messages Flow-Mod that described OFC sends, described Flow-Mod comprises stream table content and item is compared in described triggering;
First dispensing unit, for multilevel flow table according to described stream table composition of content;
Second dispensing unit, constructs described trigger table for comparing item according to described triggering;
3rd performance element, for adding described trigger table to described multilevel flow table end, and sets up the corresponding relation of described multilevel flow table and described trigger table.
11. OFS according to claim 10, is characterized in that, described first dispensing unit specifically comprises:
First configuration module, for dividing described stream table content according to the matching field preset, to obtain at least two subflow tables;
Second configuration module, for becoming described multilevel flow table according to preset order by described subflow table pack.
12., according to the arbitrary described OFS of claim 9 to 11, is characterized in that,
Described second performance element, during specifically for meeting preset triggering report condition when the result of described judgement, structure Packet-in packet, and described network state information is added to the extended field of described Packet-in packet;
Described first transmitting element, specifically for sending the Packet-in packet adding described network state information to described OFC.
13. OFS according to claim 12, is characterized in that, the result of described coupling is described data packet matched to the stream list item of in described multilevel flow table;
Described OFS also comprises:
Second judging unit, for the operational order in the stream list item that basis and described packet match, judges whether to construct Packet-in packet;
Described second performance element also comprises further:
3rd configuration module, for when not constructing described Packet-in packet, structure Packet-in packet, and add described network state information to described Packet-in packet;
4th configuration module, for when constructing described Packet-in packet, then described OFS constructs the Packet-in packet that reanson field is warning, and described network state information is added to the Packet-in packet that reanson field is warning.
14. OFS according to claim 13, is characterized in that, described OFS also comprises:
Updating block, when pointing to described trigger table for the operational order corresponding when described packet, upgrades current network state and the counter corresponding with the stream list item in described data packet matched multilevel flow table.
15. 1 kinds of open flows controller OFC, is characterized in that, comprising:
First dispensing unit, for building stream table edit messages Flow-Mod, described Flow-Mod comprises stream table content and item is compared in triggering, and described triggering is compared item and referred to the set of network state activation threshold value, needs report network state for judging whether;
First transmitting element, for sending described Flow-Mod to open flows switch OFS, comparing item to make described OFS according to described stream table content and described triggering and building multilevel flow table, and according to described multilevel flow table report network state information;
Receiving element, for receiving the network state information that described OFS sends.
16. OFC according to claim 15, is characterized in that, described OFC also comprises:
Updating block, compares item for upgrading triggering according to described network status messages;
Second dispensing unit, adds described Flow-Mod to for item is compared in the triggering of renewal, to obtain the Flow-Mod of renewal;
Second transmitting element, for sending the Flow-Mod of described renewal to described OFS, upgrades multilevel flow table to make described OFS according to the Flow-Mod of described renewal.
CN201410474867.0A 2014-09-17 2014-09-17 A kind of method and device obtaining network state Active CN105490827B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410474867.0A CN105490827B (en) 2014-09-17 2014-09-17 A kind of method and device obtaining network state
PCT/CN2015/076075 WO2016041341A1 (en) 2014-09-17 2015-04-08 Method and device for acquiring network state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410474867.0A CN105490827B (en) 2014-09-17 2014-09-17 A kind of method and device obtaining network state

Publications (2)

Publication Number Publication Date
CN105490827A true CN105490827A (en) 2016-04-13
CN105490827B CN105490827B (en) 2018-12-04

Family

ID=55532508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410474867.0A Active CN105490827B (en) 2014-09-17 2014-09-17 A kind of method and device obtaining network state

Country Status (2)

Country Link
CN (1) CN105490827B (en)
WO (1) WO2016041341A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156078A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 A kind of flow table construction method and system
CN113645137A (en) * 2021-08-02 2021-11-12 清华大学 Software defined network multi-level flow table compression method and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833293B (en) * 2018-06-20 2021-01-26 北京邮电大学 Data center congestion control method and device based on Software Defined Network (SDN)
CN109525495B (en) * 2018-12-24 2022-03-11 广东浪潮大数据研究有限公司 Data processing device and method and FPGA board card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957603A (en) * 2012-11-09 2013-03-06 盛科网络(苏州)有限公司 Multilevel flow table-based Openflow message forwarding method and system
CN103401783A (en) * 2013-07-26 2013-11-20 盛科网络(苏州)有限公司 Method and device for realizing Openflow multistage flow table
CN103747026A (en) * 2013-10-29 2014-04-23 盛科网络(苏州)有限公司 Alarm method and alarm device of openflow flow table
WO2014067055A1 (en) * 2012-10-29 2014-05-08 华为技术有限公司 Method and device for refreshing flow table

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856417B (en) * 2012-11-30 2018-01-23 中兴通讯股份有限公司 software defined network message forwarding method and system
CN104022910B (en) * 2014-06-25 2018-01-09 新华三技术有限公司 A kind of parameter consultation method and its device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014067055A1 (en) * 2012-10-29 2014-05-08 华为技术有限公司 Method and device for refreshing flow table
CN102957603A (en) * 2012-11-09 2013-03-06 盛科网络(苏州)有限公司 Multilevel flow table-based Openflow message forwarding method and system
CN103401783A (en) * 2013-07-26 2013-11-20 盛科网络(苏州)有限公司 Method and device for realizing Openflow multistage flow table
CN103747026A (en) * 2013-10-29 2014-04-23 盛科网络(苏州)有限公司 Alarm method and alarm device of openflow flow table

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156078A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 A kind of flow table construction method and system
CN108156078B (en) * 2016-12-02 2021-05-07 中国移动通信有限公司研究院 Flow table construction method and system
CN113645137A (en) * 2021-08-02 2021-11-12 清华大学 Software defined network multi-level flow table compression method and system
CN113645137B (en) * 2021-08-02 2022-05-31 清华大学 Software defined network multi-level flow table compression method and system

Also Published As

Publication number Publication date
CN105490827B (en) 2018-12-04
WO2016041341A1 (en) 2016-03-24

Similar Documents

Publication Publication Date Title
JP6755325B2 (en) State control method and equipment
CN105490827A (en) Method and device for obtaining network state
US9608900B2 (en) Techniques for flooding optimization for link state protocols in a network topology
US11265336B2 (en) Detecting anomalies in networks
US9716641B2 (en) Adaptive industrial ethernet
US7912934B1 (en) Methods and apparatus for scheduling network probes
CN106230650A (en) SDN Overlay network fault positioning system and method
KR101859302B1 (en) Method and system for virtual network mapping protection and computer storage medium
CN107317695A (en) Mthods, systems and devices for debugging network node Intranet failure
CN102045192A (en) Apparatus and system for estimating network configuration
CN103220173A (en) Alarm monitoring method and alarm monitoring system
EP3101842B1 (en) Method, system and computer readable medium for network management automation
CN104601394A (en) Business chain connectivity detection method, device and system
CN110311812A (en) A kind of network analysis method, device and storage medium
EP3474493A1 (en) Network performance measurement method and detection device
CN109074280A (en) Network function virtualization
CN109660624A (en) Planing method, server and the storage medium of content distributing network resource
CN102136965A (en) Method for detecting tunnel faults and traffic engineering (TE) node
CN104572329A (en) Fault determination method and device
CN103001819B (en) Method and system for processing OAM (operation, administration and maintenance) detecting results in MPLS-TP (multiple protocol label switching-transmission parameter) network
CN109361658A (en) Abnormal flow information storage means, device and electronic equipment based on industry control industry
CN102523160B (en) Chip implementing method and system for quick switching in linear protection of Ethernet
US7613107B2 (en) Protection switch logging methods and systems
CN113873560A (en) Network fault processing method and device
CN103763170B (en) Looped network protecting method and device

Legal Events

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