原创 RYU REST API-應用實踐

1.啓動Mininet創建並啓動任意拓撲 2.運行ryu程序,並加載ryu的restapi 如: ryu-manager --verbose simple_switch_13.py ofctl_rest.py rest_topo

原创 RYU控制規則

本文所述的是規劃轉發路徑最重要的部分:控制規則。實現方式將通過一個例子來說明。首先,說明一下這個例子需求: Switch 中的主機可以在學習後,互相溝通主機脫離時,刪除有關此主機的規則 環境 設備 Switch:1 臺Host:3

原创 RYU REST API-基本概念

1. Rest API簡介 REST即表述性狀態傳遞(RepreSentational State Transfer),是一種針對網絡應用的設計和開發方式,可以降低開發的複雜性,提高系統的可伸縮性。 表述性狀態轉移是一組構架約束條

原创 RYU REST API-編程示範

import urllib2 import json def get_all_switches(): url = "http://127.0.0.1:8080/v1.0/topology/switches"

原创 Open vSwitch使用命令

Open vSwitch簡介 Open vSwitch是一款由Nicira Networks主導開發的虛擬交換機,可以在虛擬化平臺上運行。並且,Open vSwitch採用與平臺無關的C語言開發,充分考慮了不同平臺之間的移植性。 Op

原创 104. Maximum Depth of Binary Tree

Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from t

原创 637 Average of Levels in Binary Tree

Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Exampl

原创 669. Trim a Binary Search Tree

Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements

原创 119. Pascal's Triangle II待續。。。

Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Cou

原创 SDN測試工具-iperf、Cbench、sFlow(缺圖)

1 iperf 簡介 iperf是一款測試網絡性能的工具,基於服務器和客戶端模式,可以測試兩個虛擬機之間的TCP和UDP帶寬質量,提供網絡延時抖動、數據包丟失等信息。 安裝步驟 分別在兩個虛擬機中安裝iperf: sudo a

原创 111. Minimum Depth of Binary Tree

Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from t

原创 OpenFlow好文集錦-OpenFlow1.0協議解析

 OpenFlow1.0協議解析 控制器通過Openflow管理、控制交換機,分析wireshark抓到的OpenFlow包就可以大體推測控制器與交換機通信的流程。雖然沒有進行任何操作,但是一旦交換機連接控制器,wireshark就能

原创 448. Find All Numbers Disappeared in an Array(java)

Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.

原创 Springboot實現多線程注入bean的工具類

場景: 使用springboot多線程,線程類無法自動注入需要的bean 解決方法: 通過工具類獲取需要的bean 工具類代碼: import org.springframework.beans.BeansException; imp

原创 CSDN-Markdown編輯器使用方法

這裏寫自定義目錄標題歡迎使用Markdown編輯器新的改變功能快捷鍵合理的創建標題,有助於目錄的生成如何改變文本的樣式插入鏈接與圖片如何插入一段漂亮的代碼片生成一個適合你的列表創建一個表格設定內容居中、居左、居右SmartyPants