[ovs-discuss] Correct me where am i doing wrong
Vikas Kumar
vikassanmacs at gmail.com
Mon Dec 3 13:24:20 UTC 2018
hello everyone,
i am creating a topology using mininet, using below command
#mn --topo=linear,2,3 --controller=none
now, i am creating three vlan access port using below command
#ovs-vsctl set port $dev1 tag=$tag1
#ovs-vsctl set port $dev2 tag=$tag2
#ovs-vsctl set port $dev3 tag=$tag3
now i am configuring trunk port, using below command
sudo ovs-vsctl set port $dev1 trunks=$trunk1,$trunk2,$trunk3
sudo ovs-vsctl set port $dev2 trunks=$trunk1,$trunk2,$trunk3
i am also configuring 4 queues on trunk ports with below command
# Root HTB for $if
tc qdisc add dev $if root handle 1: htb r2q 1 default 1
# Root class to borrow from
tc class add dev $if parent 1: classid 1:1 htb quantum 1000000 rate
500mbit ceil 500mbit burst 64k prio 2
tc qdisc add dev $if parent 1:1 handle 101 sfq perturb 10
# class for vlan1
tc class add dev $if parent 1:1 classid 1:106 htb quantum 1000000 rate
1.00mbit ceil 1.00mbit burst 6k
tc qdisc add dev $if parent 1:106 handle 106 sfq perturb 10
tc filter add dev $if protocol all parent 1: prio 500 basic match
"meta(vlan mask 0xfff eq 20)" flowid 1:106
# class for vlan2
tc class add dev $if parent 1:1 classid 1:108 htb quantum 1000000 rate
1.00mbit ceil 10.00mbit burst 6k
tc qdisc add dev $if parent 1:108 handle 108 sfq perturb 10
tc filter add dev $if protocol all parent 1: prio 500 basic match
"meta(vlan mask 0xfff eq 10)" flowid 1:108
#class for vlan3
tc class add dev $if parent 1:1 classid 1:110 htb quantum 1000000 rate
1.00mbit ceil 10.00mbit burst 6k
tc qdisc add dev $if parent 1:110 handle 110 sfq perturb 10
tc filter add dev $if protocol all parent 1: prio 500 basic match
"meta(vlan mask 0xfff eq 30)" flowid 1:110
i am entering the flow in the table using below command:
# ovs-ofctl add-flow s1 action=normal
#ovs-ofctl add-flow s2 action=normal
After this, when i am pinging, using below command
mininet>pingall
it is able to ping the corresponding vlan hosts,
but my concern is that i want to change the pcp value based on vlan id, so
i am putting the following flow entry in the table,
#ovs-ofctl add-flow s1 priority=500, dl_vlan=10,actions=mod_vlan_pcp:5 -O
OpenFlow13
#ovs-ofctl add-flow s2 priority=500, dl_vlan=10,actions=mod_vlan_pcp:5 -O
OpenFlow13
but i am not able to see the pcp value changed in the wireshark.
anyone please help on this, it will be great help.
thanks in advance
vikash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181203/94338b6a/attachment.html>
More information about the discuss
mailing list