Flow Table
Flow Table
Flow Table" plays a crucial role in the data plane of network devices,
particularly in switches.
The Flow Table is where rules for packet forwarding are stored and
processed.
Functionality:
The Flow Table is a fundamental component of SDN switches. It's parallel
to a database where rules, known as flow entries, are stored.
Each flow entry consists of match fields and corresponding actions
Match Fields:
These fields define the characteristics of packets that the switch will
examine to determine whether they match a particular flow entry.
Common match fields include source and destination addresses, ports,
VLAN tags, and packet header information (e.g., IP protocol, TCP/UDP
ports
Actions:
Once a packet matches a flow entry, the switch executes specific actions associated with that
entry.
Actions can include forwarding the packet out a particular port, dropping the packet,
modifying packet headers, or sending the packet to the controller for further processing.
Priority and Wildcard Entries:
Flow entries in the table have priorities assigned to them. When a packet matches multiple
flow entries, the entry with the highest priority is selected.
Additionally, wildcard entries can match multiple packets based on common criteria,
simplifying rule management.
Flow Table Lookup:
When a packet arrives at the switch, it is compared against the flow entries in the table using
the match fields.
This process is known as a flow table lookup. If a match is found, the corresponding actions
are executed.
If no match is found (a table miss), the packet is often forwarded to the controller for further
handling
Flow Table Management:
The SDN controller is responsible for managing the flow table entries.
It can dynamically add, modify, or remove entries based on network
conditions, policies, or events.
This dynamic control allows for flexible and programmable packet
forwarding behavior.