Skip to content

EJLin190/P4_Program

Repository files navigation

Multi_Queue

情境:

  • 於mininet自行架設的拓譜環境後,頂定 switch 來源位址的 priority 設置

目的:

  • 進行更有效的 QoS 配置處理

步驟解析:

  1. 開啟 ip_forward.p4
  • 設定 metadata 用於之後 priority 條件用
  • 於 control egress 定義 register 存取 qdepth
  • 於 contorl ingress 定義 priority 優先等於順序
  1. 開啟 monitor.sh 執行檔
  • 寫下需存取指定 switch 指令,並將訊息寫成新檔案
  1. 執行 p4 程式
  • ffplay 開啟路線流量
  • 開啟另一邊終端傳送,在與上述影片會經過同 switch 的條件下,進行 burst traffic 動作
  • 查看影片是否維持一樣品質,若品質維持一樣則代表成功。
  1. 將 sh 寫出的檔案進行資料篩選動作
cat <text_name> | tr "Be_replaced_words" "Replace_word" | awk '{print $<wanted_elements_column>, $<wanted_elements_column2>, ...}' > <NewTextName>
  1. 使用 gnuplot 將蒐集到的數據會出來
gnuplot
gnuplot> plot "NewTextName" w lp, "NewTextName2" w lp

Reference

Chih-Heng Ke柯志亨老師網站所提供:

Youtube Source:

Channel: Chih-Heng Ke柯志亨

mininet-p4 4:

mininet-p4 8:

mininet-p4 18:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published