Ask Your Question
0

quantum plugin openvswitch agent (ovs-vsctl show)

asked 2014-01-22 23:03:42 -0500

RHK gravatar image

Hello All,

I configured OVS with GRE mode with grizzly release. We have 2 OVS bridges on compute and network node as br-int and br-tun.

Open vSwitch on the compute-node:

root@compute:~# ovs-vsctl show b5feffd9-6abc-459f-9650-adda549a3ce1 Manager "ptcp:6640" Bridge br-int Port "qvo705de156-4b" tag: 4095 Interface "qvo705de156-4b" Port "qvo422d1db0-9a" tag: 4095 Interface "qvo422d1db0-9a" Port "qvo7ac36739-15" tag: 2 Interface "qvo7ac36739-15" Port "qvoe091748d-87" tag: 4095 Interface "qvoe091748d-87" Port "qvo52526f73-3c" tag: 2 Interface "qvo52526f73-3c" Port "qvoaf1b5e28-e3" tag: 1 Interface "qvoaf1b5e28-e3" Port "qvocdb47070-a4" tag: 4095 Interface "qvocdb47070-a4" Port "qvoae22ad65-70" tag: 2 Interface "qvoae22ad65-70" Port br-int Interface br-int type: internal Port "qvo173c550c-0e" tag: 4095 Interface "qvo173c550c-0e" Port "qvo32f54b7b-e1" tag: 1 Interface "qvo32f54b7b-e1" Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qvo90fabaed-77" tag: 4095 Interface "qvo90fabaed-77" Bridge br-tun Port br-tun Interface br-tun type: internal Port "gre-1" Interface "gre-1" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.20.20.52"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun} ovs_version: "1.4.0+build0"

Open vSwitch on the network node

root@network:~# ovs-vsctl show 5c110bfa-f07c-4fd6-a3e7-00ca37c8a69a Bridge br-int Port "tap563895be-01" tag: 2 Interface "tap563895be-01" type: internal Port "tap4253aef5-4b" tag: 4095 Interface "tap4253aef5-4b" type: internal Port "qr-c679acf6-08" tag: 4 Interface "qr-c679acf6-08" type: internal Port "tap5f647e07-4c" tag: 4095 Interface "tap5f647e07-4c" type: internal Port "qr-fea80ba9-cd" tag: 2 Interface "qr-fea80ba9-cd" type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "tap7bf24756-c1" tag: 1 Interface "tap7bf24756-c1" type: internal Port "qr-4e2fae5d-41" tag: 4095 Interface "qr-4e2fae5d-41" type: internal Port br-int Interface br-int type: internal Port "qr-3742d086-a6" tag: 3 Interface "qr-3742d086-a6" type: internal Port "qr-af7b1fdf-21" tag: 1 Interface "qr-af7b1fdf-21" type: internal Port "tap16f24a60-2e" tag: 4095 Interface "tap16f24a60-2e" type: internal Bridge br-ex Port "qg-2351b75a-c1" Interface "qg-2351b75a-c1" type: internal Port "eth2" Interface "eth2" Port "qg-26970886-b5" tag: 4 Interface "qg-26970886-b5" type: internal Port br-ex Interface br-ex type: internal Bridge br-tun Port "gre-2" Interface "gre-2" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.20.20.53"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port br-tun Interface br-tun type: internal ovs_version: "1.4.0+build0"

The above out put shows bridge, port, interface, type, tag. Now my question is we have tag1 tag2 ...... quantum-plugin-openvswitch-agent has put Port "tap563895be-01" into (tag 2) on br-int. tag2 means with VLAN2 is it like that? Ex : VLAN1 (tag1), VLAN2 (tag2) is it some thiong like this? Was my understanding is right? If it is right what is the use of OVS in VLAN mode? How it works?

Regards, RHK

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-23 03:12:54 -0500

RomilGupta gravatar image

Hi,

OVS maintains a table in which it maps the global VLAN ID(segmentation id) to local VLAN. But in case of tunneling for every unique segmentation id ( 1 -2^24)it maps it to local vlan Id( 1-4096) on every compute node , but the instance is not aware of the underlay technology.

For better understanding use :

ovs-ofctl dump-flows br-tun

and observe the flows.

edit flag offensive delete link more

Comments

can we add flows on OVS? do we need any flow controllers for that? As my understanding, 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.

RHK gravatar imageRHK ( 2014-01-23 23:34:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-22 23:03:42 -0500

Seen: 393 times

Last updated: Jan 23 '14