iphone 鍵盤相容_如何在iPhone上使用單手鍵盤
阿新 • • 發佈:2020-10-14
實驗 6:OpenDaylight 實驗——OpenDaylight 及 Postman實現流表下發
一、實驗目的
熟悉 Postman 的使用;熟悉如何使用 OpenDaylight 通過 Postman 下發流表。二、實驗任務
流表有軟超時和硬超時的概念,分別對應流表中的 idle_timeout 和 hard_timeout。 idle timeout:如果值為非 0,那麼在對應的時間內如果沒有資料包匹配流表, 時間到該流表將被刪除;值為 0 不設軟超時機制。 hard timeout:如果值為非 0,那麼在對應的時間內不論是否有資料包匹配流表, 時間到流表都會被刪除;值為 0 不設硬超時機制。 推薦閱讀:SDNLAB 文章:OpenFlow 協議超時機制簡介 https://www.sdnlab.com/22563.html三、實驗步驟
1. 實驗環境
安裝了 Ubuntu 18.04.5 Desktop amd64 的虛擬機器2. 實驗過程與結果
(1)Postman 安裝 https://www.postman.com/downloads/ 安裝完成後解壓到目錄即可。 (2)清理舊資料 啟動 OpenDaylight,通過 Postman 的 Delete 動作清空殘留流表(如有) DELETE注:Username應填admin而非作業系統中自己的使用者名稱,否則獲取不了頁面許可權
(5)驗證結果
h1 ping h3 有 10 秒時間是中斷的,結果符合預期。 (6)附錄 Postman中PUT請求的網頁地址如下: http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/flow-node-inventory:table/0/flow/1 JSON 格式的請求程式碼如下:
{ "flow":[ { "id":"1", "match":{ "in-port":"1", "ethernet-match":{ "ethernet-type":{ "type":"0x0800" } }, "ipv4-destination":"10.0.0.3/32" }, "instructions":{ "instruction":[ { "order":"0", "apply-actions":{ "action":[ { "order":"0", "drop-action":{} } ] } } ] }, "flow-name":"flow1", "priority":"65535", "hard-timeout":"10", "cookie":"2", "table_id":"0" } ] }