{"id":327,"date":"2016-02-01T02:40:55","date_gmt":"2016-01-31T18:40:55","guid":{"rendered":"https:\/\/laszlo.cs.thu.edu.tw\/?p=327"},"modified":"2021-05-04T04:47:21","modified_gmt":"2021-05-04T04:47:21","slug":"onos-sdn-ip","status":"publish","type":"post","link":"https:\/\/blog.laszlo.tw\/?p=327","title":{"rendered":"ONOS SDN-IP"},"content":{"rendered":"<p>\u53d6\u81ea<a href=\"https:\/\/wiki.onosproject.org\/display\/ONOS\/SDN-IP+Tutorial\" target=\"_blank\" rel=\"noopener\">ONOS SDN-IP<\/a> Use Case<\/p>\n<p><!--more--><\/p>\n<h2>Data Plane<\/h2>\n<p><a title=\"\" href=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/dataplane.png\" rel=\"attachment wp-att-367\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-367\" title=\"\" src=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/dataplane.png\" alt=\"dataplane\" width=\"500\" height=\"283\"><\/a><\/p>\n<ul>\n<li>\u8ca0\u8cac\u5728\u5916\u90e8BGP\u8207\u5167\u90e8BGP Speaker\u4ea4\u63db\u8def\u7531<\/li>\n<li>\u4e0d\u540c\u7684AS\u9593\u50b3\u905e\u8cc7\u8a0a<\/li>\n<\/ul>\n<h2>Controller Plane<\/h2>\n<p><a href=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/controlplane.png\" rel=\"attachment wp-att-362\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-362\" src=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/controlplane.png\" alt=\"controlplane\" width=\"500\" height=\"359\"><\/a><\/p>\n<ul>\n<li>SDN-IP \u900f\u904e iBGP\u4f86\u63a5\u6536BGP Speaker\u9001\u904e\u4f86\u7684\u8def\u7531\u8a0a\u606f\u52a0\u5165\u81f3ONOS flowEntry\u4e2d<\/li>\n<li>SDN-IP\u53ea\u8ca0\u8cac\u63a5\u6536BGP\u8a0a\u606f\uff0c\u4e0d\u6703\u767c\u9001\u4e5f\u4e0d\u6703\u8207\u5176\u4ed6\u7684SDN-IP\u76f8\u4e92\u4ea4\u63db<\/li>\n<li>SDN-IP default BGP port number is <span style=\"color: #ff0000;\">2000<\/span><\/li>\n<\/ul>\n<h2>HA\u6a5f\u5236<\/h2>\n<p><a href=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/bgpconf.png\" rel=\"attachment wp-att-413\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-413\" src=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/bgpconf.png\" alt=\"bgpconf\" width=\"500\" height=\"500\"><\/a><\/p>\n<ul>\n<li>\u5167\u90e8iBGP\u53ef\u4ee5\u6709\u8a31\u591a\u62d3\u58a3\u9078\u64c7<\/li>\n<li>\u53ef\u4ee5\u6709\u591a\u500bSDN-IP\u904b\u884c\u4f46\u53ea\u6703\u6709\u4e00\u500bSDN-IP Leader\u8ca0\u8cac\u7d71\u4e00\u63a5\u6536iBGP<\/li>\n<li>\u7576Leader\u767c\u751f\u554f\u984c\uff0c\u5176\u9918\u7684SDN-IP\u4e4b\u4e00\u6703\u63a5\u624b\u4f4d\u7f6e<\/li>\n<\/ul>\n<h2><span style=\"color: #ff6600;\">\u7576\u524d\u9650\u5236<\/span><\/h2>\n<ul>\n<li><span style=\"color: #000000;\">Peering\u65b0\u589e\/\u522a\u9664\u7b49\u4fee\u6539\u53ea\u80fd\u5728ONOS\u672a\u904b\u884c\u72c0\u614b<\/span><\/li>\n<li>SDN-IP default BGP port number is <span style=\"color: #ff0000;\">2000 <\/span>\u975e\u9810\u8a2d\u7684 179\uff0c\u56e0\u70baport\u5c0f\u65bc1023\u9700\u8981root\u6b0a\u9650<\/li>\n<li>SDN-IP \u975e\u63a1\u7528load balance\u65b9\u5f0f\u800c\u662f\u5982\u4e0a\u63d0\u5230\u7684Leader\u5f62\u5f0f\uff0c\u4e00\u6b21\u53ea\u6709\u4e00\u500binstance\u8ca0\u8cac<\/li>\n<li>\u76ee\u524d\u7121\u660e\u78ba\u7684\u8a2d\u5b9a\uff0cSDN-IP\u9810\u8a2d\u5c07\u6703\u63a5\u6536\u6240\u6709BGP\u8a0a\u606f<\/li>\n<li>\u56e0\u6846\u67b6\u9650\u5236\uff0c1.0.0\u7248\u672c\u4e2d\u6700\u591a\u53ef\u4ee5\u8655\u740615000\u500brouters<\/li>\n<\/ul>\n<h2>Toturial<\/h2>\n<p><a href=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/sdnip-labels.png\" rel=\"attachment wp-att-342\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-342\" src=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/sdnip-labels.png\" alt=\"sdnip-labels\" width=\"599\" height=\"377\"><\/a><\/p>\n<p>\u4ee5quagga\u6a21\u64ec\u4e94\u500b\u7aef\u9ede\u7684router<\/p>\n<p>BGP \u70ba\u5167\u90e8\u7684<em>BGP Speaker<\/em> \u8ca0\u8cacpeering R1~R4&nbsp; \u4ee5\u53ca\u8f49\u9001\u8def\u7531\u7d66ONOS<\/p>\n<p>R1~R4 \u70ba\u5916\u90e8\u7db2\u8def\u7684\u908a\u754c\u8def\u7531\u5668<\/p>\n<p>\u5728R1~R4\u4e4b\u5916\u5206\u5225\u5404\u6709\u4e00\u500bmininet\u7684host&nbsp; h1~h4<\/p>\n<p>\u9019\u4e9bhost\u63a5\u5728\u5404Router\u4e4b\u4e0b\uff0cONOS\u6700\u591a\u53ea\u80fd\u770b\u898bOVS\u7684\u4e0b\u4e00\u5c64host \u6545\u5728\u62d3\u58a3\u4e0a\u770b\u4e0d\u898b<\/p>\n<p>h1~h4<\/p>\n<ul>\n<li>IP\u5206\u5225\u70ba192.168.1-4.1\/24<\/li>\n<li>\u5206\u5225\u63a5\u5728R1~4\u53e6\u4e00\u7aef<\/li>\n<\/ul>\n<p>bgp<\/p>\n<ul>\n<li>IP\u5206\u5225\u70ba10.0.1-4.101\/24<\/li>\n<li>\u5176\u53e6\u4e00\u7aef\u9084\u6709\u63a5\u4e00\u500bhost &#8211; root \u7528\u4f86\u63a5\u6536iBGP<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u6a94\u6848\u662f\u7528\u4f86\u8a2d\u5b9asdnip peering\u8cc7\u8a0a<\/p>\n<p>\u653e\u7f6e\u65bconos\/tools\/package\/config\/ \u4e0b<\/p>\n<h3 style=\"text-align: center;\"><span style=\"color: #ff0000;\">Before ONOS 1.2 (address.json and sdnip.json)<br \/>\n<\/span><\/h3>\n<p>address.json&nbsp; (\u5c0dproxyarp\u7684\u8a2d\u5b9a \u82e5\u8a2d\u5b9a\u932f\u8aa4quagga\u6703\u6536\u4e0d\u5230peer\u7684eBGP)<\/p>\n<hr>\n<pre>{\n \"addresses\" : [\n {\n \"dpid\" : \"00:00:00:00:00:00:00:a1\",\n \"port\" : \"1\",\n \"ips\" : [\"10.0.1.101\/24\"],\n \"mac\" : \"00:00:00:00:00:01\"\n },\n {\n \"dpid\" : \"00:00:00:00:00:00:00:a2\",\n \"port\" : \"1\",\n \"ips\" : [\"10.0.2.101\/24\"],\n \"mac\" : \"00:00:00:00:00:01\"\n },\n {\n \"dpid\" : \"00:00:00:00:00:00:00:a5\",\n \"port\" : \"1\",\n \"ips\" : [\"10.0.3.101\/24\"],\n \"mac\" : \"00:00:00:00:00:01\"\n },\n {\n \"dpid\" : \"00:00:00:00:00:00:00:a6\",\n \"port\" : \"1\",\n \"ips\" : [\"10.0.4.101\/24\"],\n \"mac\" : \"00:00:00:00:00:01\"\n }\n ]\n}<\/pre>\n<ul>\n<li>IP MAC \u70baproxy\u76ee\u6a19<\/li>\n<li>dpid port \u70ba\u9700\u8981proxy\u7684\u4f86\u6e90<\/li>\n<\/ul>\n<p>sdnip.json<\/p>\n<hr>\n<pre>{\n&nbsp;&nbsp;&nbsp; \"bgpPeers\" : [\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentDpid\" : \"00:00:00:00:00:00:00:a1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentPort\" : \"1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"ipAddress\" : \"10.0.1.1\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentDpid\" : \"00:00:00:00:00:00:00:a2\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentPort\" : \"1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"ipAddress\" : \"10.0.2.1\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentDpid\" : \"00:00:00:00:00:00:00:a5\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentPort\" : \"1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"ipAddress\" : \"10.0.3.1\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentDpid\" : \"00:00:00:00:00:00:00:a6\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentPort\" : \"1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"ipAddress\" : \"10.0.4.1\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }\n&nbsp;&nbsp;&nbsp; ],\n&nbsp;&nbsp;&nbsp; \"bgpSpeakers\" : [\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"name\" : \"bgp\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentDpid\" : \"00:00:00:00:00:00:00:a3\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"attachmentPort\" : \"1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"macAddress\" : \"00:00:00:00:00:01\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"interfaceAddresses\" : [\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"interfacePort\" : \"1\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"ipAddress\" : \"10.0.4.101\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }\n&nbsp;&nbsp;&nbsp; ]\n}\n\n<\/pre>\n<p>bgppeers<\/p>\n<ul>\n<li>attachmentDpid\u8207port \u662fSDN\u5167\u90e8\u5c0d\u63a5\u7684OF switch (\u540c\u4e0aaddress.json\u90e8\u5206)<\/li>\n<li>ipaddress\u5247\u70ba peer\u65b9\u7684IP<\/li>\n<\/ul>\n<p>bgpSpeakers<\/p>\n<ul>\n<li>\u4e0a\u534a\u90e8\u5b9a\u7fa9\u5167\u90e8BGP Speaker\u7684\u8cc7\u8a0a \u5982 \u5c0d\u63a5\u7684OF Switch dpid and IP (Single-point to single-point intents)<\/li>\n<li>\u4e0b\u534a\u90e8\u5b9a\u7fa9 peering \u6240\u4f7f\u7528\u7684IP \u4ee5\u53ca \u5c0d\u5916\u7684OF SWITCH (Multi-point to single-point intents)<\/li>\n<\/ul>\n<h3 style=\"text-align: center;\"><span style=\"color: #ff0000;\">After ONOS 1.3 (network-cfg.json)<\/span><\/h3>\n<p>network-cfg.json<\/p>\n<hr>\n<pre>{\n    \"ports\" : {\n        \"of:00000000000000a1\/1\" : {\n            \"interfaces\" : [\n                {\n                    \"ips\"  : [ \"10.0.1.101\/24\" ],\n                    \"mac\"  : \"00:0C:29:C3:B1:0C\"\n                }\n            ]\n        },\n        \"of:00000000000000a2\/1\" : {\n            \"interfaces\" : [\n                {\n                    \"ips\"  : [ \"10.0.2.102\/24\" ],\n                    \"mac\"  : \"00:0C:29:48:0F:0C\"\n                }\n            ]\n        }\n    },\n    \"apps\" : {\n        \"org.onosproject.router\" : {\n            \"bgp\" : {\n                \"bgpSpeakers\" : [\n                    {\n                        \"name\" : \"quagga1\",\n                        \"connectPoint\" : \"of:00000000000000a4\/3\",\n                        \"peers\" : [\n                            \"10.0.1.1\"\n                        ]\n                    },\n                    {\n                        \"name\" : \"quagga2\",\n                        \"connectPoint\" : \"of:00000000000000a3\/3\",\n                        \"peers\" : [\n                            \"10.0.2.1\"\n                        ]\n                    }\n                ]\n            }\n        }\n    }\n}<\/pre>\n<p>\u4e0a\u534a\u90e8Ports\u90e8\u5206<\/p>\n<ul>\n<li>DPID\u586b\u5165\u5916\u90e8\u5c0d\u63a5\u7684OF Switch \u659c\u7dda\u5f8c\u70baports<\/li>\n<li>IP\u8207MAC\u586b\u5167\u90e8BGP Speaker<\/li>\n<\/ul>\n<p>\u4e0b\u534a\u90e8apps\u90e8\u5206<\/p>\n<ul>\n<li>connectPoint\u5247\u70ba\u5167\u90e8BGP Speaker\u5c0d\u63a5\u7684OF Switch<\/li>\n<li>peers\u70ba\u5c0d\u65b9peering IP<\/li>\n<\/ul>\n<p>onos apps active(<span style=\"color: #ff0000;\">fwd not need<\/span>)<\/p>\n<pre>onos&gt; app active org.onosproject.proxyarp\nonos&gt; app active org.onosproject.sdnip<\/pre>\n<hr>\n<h2>\u5be6\u9a57\u90e8\u5206<\/h2>\n<p>\u56e0\u8a08\u756b\u8981\u6c42\u6545\u4fee\u6539\u7bc4\u4f8b\u6210\u5982\u4e0b\u62d3\u58a3<\/p>\n<p><a href=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/sdnip.png\" rel=\"attachment wp-att-381\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-381\" src=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2016\/02\/sdnip.png\" alt=\"sdnip\" width=\"515\" height=\"514\"><\/a><\/p>\n<ul>\n<li>Quagga1\u30012\u4e92\u76f8\u5099\u63f4 \u5167\u90e8\u8207ONOS\u4e09\u65b9\u4ea4\u63dbiBGP\n<ul>\n<li style=\"text-align: left;\">Quagga1\u30012\u5404\u6709\u5169\u500binterface \u5206\u5225\u70ba10.10.10.x\u820710.0.1-2.x&nbsp;&nbsp;&nbsp; \u6b64\u8655UI\u770b\u4e0d\u51fa\u4f86<\/li>\n<li style=\"text-align: left;\">\u56e0\u4e09\u8005\u4e4b\u9593\u6709\u653e\u4e00\u500bSW\uff0c\u9810\u8a2dONOS\u7121\u6cd5L2 Forward\u6545\u9700\u8981active ONOS fwd\u529f\u80fd<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align: left;\">Peering\u5169\u500b\u4e0d\u540c\u7684AS<\/li>\n<\/ul>\n<p>\u5728\u6b64\u7bc4\u4f8bVM\u4e2d\u65b0\u589e\/\u522a\u6e1bAS\u9700\u8981\u4fee\u6539\u4e0b\u5217\u6a94\u6848<\/p>\n<ul>\n<li>onos\/tools\/package\/config\/address.json\u8207sdnip.json<\/li>\n<li>\/home\/sdnip\/config\/quagga1-2.conf \u8207quagga-sdn.conf \u4f86\u6307\u5b9aneighbor\u4ea4\u63dbBGP\u8a0a\u606f\n<ul>\n<li>\u6b64\u8655\u82e5\u589e\u52a0\u5099\u63f4quagga\u8a18\u5f97quagga1-2\u4e5f\u8981\u65b0\u589e\u53cd\u5411\u7684peer\u8cc7\u8a0a<\/li>\n<li>BGP\u72c0\u6cc1\u53ef\u4ee5\u900f\u904e\u4ee5\u4e0b\u4f86\u78ba\u8a8d\u6709\u7121\u6210\u529f\u9023\u7d50\n<ol>\n<li>mininet&gt; bgp lxterminal<\/li>\n<li>#telnet localhost 2605<\/li>\n<li>bgp&gt; sh ip bgp summary<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>\/home\/sdnip\/sdnip\/tutorial.py \u4f86\u4fee\u6539mininet\u62d3\u6a38<\/li>\n<\/ul>\n<h3>\u6e2c\u8a66\u7d50\u679c<\/h3>\n<ul>\n<li>\u7576quagga1\u62162\u5176\u4e2d\u4e4b\u4e00link down\u7684\u6642\u5019\u4ecd\u7136\u4fdd\u6301\u8def\u7531<\/li>\n<li>\u82e5\u6a6b\u5411\u9023\u7ddadown \u800c\u7e31\u5411up\u8def\u7531\u6703\u5931\u6548\uff0c\u7121\u6cd5\u900f\u904equagga1-2\u4e4b\u9593\u5411\u4e0a\u8def\u7531(Out of Band)<\/li>\n<li>quagga1-2\u9593\u53ef\u4ee5\u4e92\u76f8peer\u6216\u53ea\u5404\u81ea\u5c0dSDN-IP\u3000\u5169\u8005\u7686\u53ef<\/li>\n<li>\u7576\u8def\u7531\u5efa\u7acb\u5b8c\u6210\uff0ch1 ping h2\u6703\u76f4\u63a5\u900f\u904eOF Switch\u50b3\u9054\u4e26\u4e0d\u6703\u518d\u7d93\u904e BGP Speaker\u8f49\u9001<\/li>\n<li>\u4f7f\u7528ONOS Cluster \u7576leader\u639b\u4e86 h1 to h2\u4ecd\u7136\u7dad\u6301\u9023\u7dda\n<ul>\n<li>onos&gt; leader\u53ef\u4ee5\u89c0\u5bdf\u7576\u524d\u7684leader<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u53d6\u81eaONOS SDN-IP Use Case<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[10],"tags":[80,82,81,77,79,92,78],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-onos","tag-bgp","tag-high-availability","tag-mininet","tag-onos","tag-quagga","tag-sdn","tag-sdn-ip","entry"],"_links":{"self":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=327"}],"version-history":[{"count":114,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":1214,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/1214"}],"wp:attachment":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}