{"id":188,"date":"2021-05-21T13:27:30","date_gmt":"2021-05-21T13:27:30","guid":{"rendered":"https:\/\/olion.cc\/?p=188"},"modified":"2026-05-11T15:19:56","modified_gmt":"2026-05-11T15:19:56","slug":"sdn-software-define-network","status":"publish","type":"post","link":"https:\/\/olion.cc\/?p=188","title":{"rendered":"SDN &#8211; Software Define Network"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u6982\u5ff5\u67b6\u69cb<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"532\" src=\"https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/20129934cUDeVEGXQe.png\" alt=\"\" class=\"wp-image-193\" srcset=\"https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/20129934cUDeVEGXQe.png 803w, https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/20129934cUDeVEGXQe-300x199.png 300w, https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/20129934cUDeVEGXQe-768x509.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Server\u793a\u610f\u5716<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"351\" src=\"https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/virtual-network-1.png\" alt=\"\" class=\"wp-image-215\" srcset=\"https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/virtual-network-1.png 625w, https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/virtual-network-1-300x168.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e3b\u8981\u6a21\u7d44<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"635\" src=\"https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/OVS_struct-1.png\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/OVS_struct-1.png 900w, https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/OVS_struct-1-300x212.png 300w, https:\/\/olion.cc\/wp-content\/uploads\/2021\/05\/OVS_struct-1-768x542.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>ovs-vswitchd\uff1a\u70ba\u4e3b\u8981\u6a21\u7d44\uff0c\u5be6\u73fe\u4ea4\u63db\u5668\u7684 daemon\uff0c\u5305\u62ec\u4e00\u500b\u652f\u6301\u6d41\u4ea4\u63db\u7684Linux\u5167\u6838\u6a21\u7d44<\/li><li>ovsdb-server\uff1a\u8f15\u91cf\u7d1a\u8cc7\u6599\u5eab\u4f3a\u670d\u5668\uff0c\u63d0\u4f9b ovs-vswitchd \u7372\u53d6\u914d\u7f6e\u8cc7\u8a0a<\/li><li>ovs-dpctl\uff1a\u7528\u4f86\u914d\u7f6e switch \u5167\u6838\u6a21\u7d44<\/li><li>ovs-vsctl\uff1a\u67e5\u8a62\u548c\u66f4\u65b0 ovs-vswitchd \u7684\u914d\u7f6e<\/li><li>ovs-appctl\uff1a\u767c\u9001\u547d\u4ee4\u6d88\u606f\uff0c\u904b\u884c\u76f8\u95dc daemon<\/li><li>ovs-ofctl\uff1a\u67e5\u8a62\u548c\u63a7\u5236 OpenFlow \u4ea4\u63db\u5668\u548c\u63a7\u5236\u5668<\/li><li>ovs-pki\uff1aOpenFlow \u4ea4\u63db\u5668\u5275\u5efa\u548c\u7ba1\u7406\u516c\u958b\u91d1\u9470\u6846\u67b6<\/li><li>ovs-controller\uff1a\u4e00\u500b\u7c21\u55ae\u7684 OpenFlow \u63a7\u5236\u5668<\/li><li>ovs-openflowd\uff1a\u4e00\u500b\u7c21\u55ae\u7684 OpenFlow \u4ea4\u63db\u6a5f<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u57fa\u672c\u6982\u5ff5<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Bridge\uff1a\u4e00\u500b bridge \u4ee3\u8868\u4e00\u500b\u4ea4\u63db\u5668\uff0c\u4e00\u53f0\u4e3b\u6a5f\u4e0a\u53ef\u5be6\u73fe\u591a\u500b bridge<\/li><li>Port\uff1a\u7aef\u53e3\uff0c\u8207\u5be6\u9ad4\u7684\u7aef\u53e3\u6982\u5ff5\u985e\u4f3c\uff0c\u6bcf\u500b\u7aef\u53e3\u90fd\u96b8\u5c6c\u65bc\u4e00\u500b bridge<\/li><li>Interface\uff1a\u9023\u63a5\u5230 port \u7684\u7db2\u8def\u8a2d\u5099\uff0c\u539f\u5247\u4e0a\u662f\u4e00\u5c0d\u4e00\u7684\u95dc\u4fc2\uff0c\u4f46\u5047\u5982 port \u8a2d\u5b9a\u70ba bond port\u8207interface\u624d\u6703\u662f\u4e00\u5c0d\u591a<\/li><li>Controller\uff1aOpenflow \u63a7\u5236\u5668\uff0cOVS \u652f\u63f4\u591a\u500b\u63a7\u5236\u5668<\/li><li>Datapath\uff1aOVS \u7684\u6838\u5fc3\uff0c\u7528\u65bc\u6578\u64da\u4ea4\u63db\uff0c\u4e5f\u5c31\u662f\u6d41\u8868\u5339\u914d\u67e5\u8a62\u4ee5\u53ca\u57f7\u884c\u52d5\u4f5c<\/li><li>Flow table\uff1a\u5132\u5b58 flow \u76f8\u95dc\u8cc7\u8a0a\u7684\u5730\u65b9<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88ddmininet<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone git:\/\/github.com\/mininet\/mininet\nmininet\/util\/install.sh -a<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c3\u8003\u9023\u7d50<\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.kshuang.xyz\/doku.php\/ccis_lab:sdn:mininet:mininet_basic\" target=\"_blank\">Mininet\u57fa\u672c\u6f14\u7df4<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/lytzeng.github.io\/posts\/sdn\/introduction-to-mininet.html#sdn-%E8%88%87-openflow\" target=\"_blank\">OpenFlow 1.5 \u5f9e\u5165\u9580\u5230\u4ea4\u5831\u544a (\u4e00) &#8211; Mininet \u57fa\u672c\u6982\u5ff5<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/lytzeng.github.io\/posts\/sdn\/introduction-to-ryu.html#%E6%88%96%E6%98%AF%EF%BC%8C%E4%BD%BF%E7%94%A8-ryu-container\" target=\"_blank\">OpenFlow 1.5 \u5f9e\u5165\u9580\u5230\u4ea4\u5831\u544a (\u4e8c) &#8211; Ryu<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/sites.google.com\/site\/sdnruantidingyiwanglu\/vmware-xia-zai-yu-an-zhuang\/mininet\" target=\"_blank\">Lab 1-mininet\u4ecb\u7d39\u3001\u5b89\u88dd\u8207\u4f7f\u7528\u65b9\u6cd5<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/sites.google.com\/site\/sdnruantidingyiwanglu\/xing-dong-kuan-pin-jian-duan-ji-shu-tui-guang-ji-hua\/shu-ximininet-yi-ji-jian-dan-de-ce-shi\" target=\"_blank\">\u719f\u6089mininet\u4ee5\u53ca\u7c21\u55ae\u7684\u6e2c\u8a66<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/zhenkunhe.github.io\/Gitbook\/Linux\/md\/2-Mininet\/3-mininet%20%E5%AF%A6%E6%88%B0.html\" target=\"_blank\">mininet\u5be6\u6230<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/ithelp.ithome.com.tw\/articles\/10235434\" target=\"_blank\">SDN\u4ecb\u7d39<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/joechang0113.github.io\/2020\/02\/18\/mininet-ryu-install.html\" target=\"_blank\">\u3010SDN \u7b46\u8a18\u3011 Mininet \u4ecb\u7d39\u8207 RYU \u76f8\u95dc\u5b89\u88dd<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/hazy.today\/1612-%E5%86%8D%E8%A9%A6%20SDN%EF%BC%9A%E5%88%A9%E7%94%A8%20RYU%20%E6%8E%A7%E5%88%B6%20OpenFlow%20%E4%BA%A4%E6%8F%9B%E5%99%A8\/\" target=\"_blank\">\u518d\u8a66 SDN\uff1a\u5229\u7528 RYU \u63a7\u5236 OpenFlow \u4ea4\u63db\u5668<\/a><\/p>\n<div class=\"gsp_post_data\" \r\n\t            data-post_type=\"post\" \r\n\t            data-cat=\"backup\" \r\n\t            data-modified=\"120\"\r\n\t            data-created=\"1621603650\"\r\n\t            data-title=\"SDN &#8211; Software Define Network\" \r\n\t            data-home=\"https:\/\/olion.cc\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u6982\u5ff5\u67b6\u69cb Server\u793a\u610f\u5716 \u4e3b\u8981\u6a21\u7d44 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-backup"],"_links":{"self":[{"href":"https:\/\/olion.cc\/index.php?rest_route=\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olion.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olion.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olion.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/olion.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":13,"href":"https:\/\/olion.cc\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/olion.cc\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/218"}],"wp:attachment":[{"href":"https:\/\/olion.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olion.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olion.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}