From: Justin Pettit Date: Thu, 1 Nov 2012 17:05:25 +0000 (-0700) Subject: FAQ: Add an entry describing the different ways to dump flows. X-Git-Tag: sliver-openvswitch-1.10.90-1~11^2~84 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a70fc0cfe326b9a500c8e5c3b1841c66fe2389a9;hp=7c1c7699e16153d8816edbced79be8481513f3f3;p=sliver-openvswitch.git FAQ: Add an entry describing the different ways to dump flows. Signed-off-by: Justin Pettit --- diff --git a/FAQ b/FAQ index d94c158d2..ce5df270e 100644 --- a/FAQ +++ b/FAQ @@ -320,6 +320,55 @@ A: No. ERSPAN is an undocumented proprietary protocol. As an alternative, Open vSwitch supports mirroring to a GRE tunnel (see above). +Q: Why are there so many different ways to dump flows? + +A: Open vSwitch uses different kinds of flows for different purposes: + + - OpenFlow flows are the most important kind of flow. OpenFlow + controllers use these flows to define a switch's policy. + OpenFlow flows support wildcards, priorities, and multiple + tables. + + When in-band control is in use, Open vSwitch sets up a few + "hidden" flows, with priority higher than a controller or the + user can configure, that are not visible via OpenFlow. (See + the "Controller" section of the FAQ for more information + about hidden flows.) + + - The Open vSwitch software switch implementation uses a second + kind of flow internally. These flows, called "exact-match" + or "datapath" or "kernel" flows, do not support wildcards or + priorities and comprise only a single table, which makes them + suitable for caching. OpenFlow flows and exact-match flows + also support different actions and number ports differently. + + Exact-match flows are an implementation detail that is + subject to change in future versions of Open vSwitch. Even + with the current version of Open vSwitch, hardware switch + implementations do not necessarily use exact-match flows. + + Each of the commands for dumping flows has a different purpose: + + - "ovs-ofctl dump-flows
" dumps OpenFlow flows, excluding + hidden flows. This is the most commonly useful form of flow + dump. (Unlike the other commands, this should work with any + OpenFlow switch, not just Open vSwitch.) + + - "ovs-appctl bridge/dump-flows
" dumps OpenFlow flows, + including hidden flows. This is occasionally useful for + troubleshooting suspected issues with in-band control. + + - "ovs-dpctl dump-flows [dp]" dumps the exact-match flow table + entries for a Linux kernel-based datapath. In Open vSwitch + 1.10 and later, ovs-vswitchd later merges multiple switches + into a single datapath, so it will show all the flows on all + your kernel-based switches. This command can occasionally be + useful for debugging. + + - "ovs-appctl dpif/dump-flows
", new in Open vSwitch 1.10, + dumps exact-match flows for only the specified bridge, + regardless of the type. + Configuration Problems ----------------------