20210426 Group Table

課堂資料

Group 的種類(Type)主要有AllSelectIndirect以及Fast Failover等四種,以下分別加以介紹:

  • All:執行所有 Action Buckets 中的動作

  • Select:執行一個 Action Bucket 中的動作

  • Indirect:執行既有定義的某個 Action Bucket 中的動作

  • Fast Failover:執行第一個 Live Action Bucket 中的動作

Group Table

  1. Load Balance ( Select )

    1. hash function

    2. round-robin

  2. Fault Tolerance ( Fast-Failover )

    1. watch-port-2 group 2

    2. watch-port-3 group 3

  3. Mix 1 and 2

課堂練習

Group - Select

There are two paths from H1 to H2.

One is via s1-s2-s4 and the other is via s1-s3-s4.

In this test, I will show how to use the select group entry.

The path 1 or 2 will be chosen.

cd ovs-test
cd lab3
python group-select.py
xterm h1 h2
exit

Group - Failover

There are two paths from H1 to H2.

One is via s1-s2-s4 and the other is via s1-s3-s4.

In this test, I will show how to use the fast-failover group entry.

The path will switch to path 2 (s1-s3-s4) as soon as the port of s1 to s2 is down.

cd ..
cd lab4
python group-failover.py
xterm h1 h2

設完規則以後

link s1 s2 down
link s1 s2 up
exit

Group - Chaining

Inspired by Efficient fast recovery mechanism in Software-Defined Networks: Multipath routing approach,the following lab to show the Group Chaining feature in openvswitch version 2.5.4.

cd ..
cd lab5
python group-chaining.py
xterm h1 h2 h1 h2
exit

SDN / NFV

SDN:Change the Routing Path

NFV:Network Function Virtualization 網路功能虛擬化

cd ..
mkdir nfv
cd nfv
gedit nfv.py
cd nfv
python nfv.py
xterm h2 h2
h1 ping h2 -c 5
h1 curl 10.0.0.2:8080
h1 curl 10.0.0.2:80

Last updated

Was this helpful?