openVswitch is L2 or L3?

asked 2014-01-19 22:33:31 -0600

RHK gravatar image


I made a openstack grizzly OVS_multinode setup. I have a question on openVswitch.

openVswitch is L2 or L3 functionality (or) it has both L2 & L3 functionality?

Can any one plz give some more information about openVswitch.

Regards, RHK

edit retag flag offensive close merge delete


@RHK Can you send the network topology diagram you asked earlier ? I can look at and suggest you something.

dheeru gravatar imagedheeru ( 2014-01-20 02:43:12 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-01-19 23:54:18 -0600

updated 2014-01-19 23:55:30 -0600

OpenVSwitch can perform both L2 and L3 functionality. An OpenVSwitch (ovs) contains a flow table. The flow table is similar with that of a primitive switch forwarding table, but it has more columns. A flow table has three main columns, which are header fields, counters and actions. Following table describes the header fields column of a flow table,

Ingress| Ether|Ether|Ether| VLAN | VLAN   |IP Src|IP Dst|IP Proto|IP ToS|TCP/UDP |TCP/UDP |
Port   |Source| dst | type| id   |priority|      |      |        | bits |src port|dst port|

The action of a packet is performed based on the details of the incoming packet matched with the above fields. A packet can be matched either with ethernet address or ip addresses or vlan ids or all.

Hence, OVS can perform both L2 and L3 functionality.
Do read the specs of Openflow to get a clearer insight.

edit flag offensive delete link more


Thank you for your response.

RHK gravatar imageRHK ( 2014-01-20 22:33:19 -0600 )edit

answered 2014-01-20 22:35:15 -0600

RHK gravatar image

Here is my understanding on OVS functionality.

OVS can do OpenFlow-based IP forwarding, but cannot build its own forwarding table. We need an OpenFlow controller for that. By Default OVS is simple L2 functionality.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-01-19 22:33:31 -0600

Seen: 849 times

Last updated: Jan 20 '14