{"id":696,"date":"2018-07-08T00:08:24","date_gmt":"2018-07-07T17:08:24","guid":{"rendered":"https:\/\/lagonet.vn\/?p=696"},"modified":"2018-07-08T00:08:24","modified_gmt":"2018-07-07T17:08:24","slug":"goi-y-ve-core-router","status":"publish","type":"post","link":"https:\/\/kb.lagonet.vn\/?p=696","title":{"rendered":"G\u1ee2I \u00dd V\u1ec0 CORE ROUTER"},"content":{"rendered":"<h2 id=\"Corerouters\">Core routers<a id=\"section_1\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=1\"><\/a><\/h2>\n<p>We are using 2 hosts for routing purposes:\u00a0<span class=\"icon\">\u200b<\/span>rc1v.itim.vn\u00a0and\u00a0<span class=\"icon\">\u200b<\/span>rc2v.itim.vn<\/p>\n<h2 id=\"NetworkInterfaces\">Network Interfaces<a id=\"section_2\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=2\"><\/a><\/h2>\n<p>Both hosts has 2 integrated 1G ports and 4x1G ports from installed\u00a0<a class=\"ext-link\" href=\"http:\/\/ark.intel.com\/products\/49187\/Intel-Gigabit-ET2-Quad-Port-Server-Adapter\"><span class=\"icon\">\u200b<\/span>Intel ET2 Quad port NIC<\/a><\/p>\n<p>All 6 ports aggregated into LACP etherchannel (bond0 inteface on server):<\/p>\n<pre class=\"wiki\">auto bond0\niface bond0 inet manual\n    bond-slaves eth0 eth1 eth2 eth3 eth4 eth5\n    bond-mode 4\n    bond-miimon 100\n    bond-downdelay 200\n    bond-updelay 200\n    bond_lacp_rate fast\n    bond_xmit_hash_policy layer3+4\n<\/pre>\n<h3 id=\"SMPAffinity\">SMP Affinity<a id=\"section_3\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=3\"><\/a><\/h3>\n<p>IRQs for\u00a0TxRx?\u00a0splitted per CPU core by script in itim-irq deb package.<\/p>\n<h3 id=\"RXTXQueuetuning\">RX\/TX Queue tuning<a id=\"section_4\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=4\"><\/a><\/h3>\n<h3 id=\"NICoffloads\">NIC offloads<a id=\"section_5\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=5\"><\/a><\/h3>\n<hr \/>\n<h2 id=\"Failover\">Failover<a id=\"section_6\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=6\"><\/a><\/h2>\n<ul>\n<li>rc1v is working as primary (VRRP vmac-based) default gateway for:\n<ul>\n<li>vlan 100 &#8211; Production search and services hosts (management, main updates)<\/li>\n<li>vlan 101 &#8211; Vlan for crawlers and indexers (on 18.06.2013 &#8211; all crawlers and indexers still in dev vlan)<\/li>\n<li>vlan 700 &#8211; Networking devices<\/li>\n<li>vlan 778 &#8211; IPMI and infrastructure<\/li>\n<li>vlan 1050 &#8211; Development hosts<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>If rc1v is\u00a0<strong>down<\/strong>, keepalived on rc2v must change state to\u00a0<strong>MASTER<\/strong>. What does mean\u00a0<strong>down<\/strong>\u00a0state:\n<ul>\n<li>vrrp_sync_group RC_VDC is in Fault state<\/li>\n<li>Any one instance of vrrp_sync_group RC_VDC in fault state<\/li>\n<li>Any interface from list below is down in any instance:\n<pre class=\"wiki\">    bond0\n    bond0.100\n    bond0.101\n    bond0.777\n    bond0.778\n    bond0.998\n    bond0.1000\n    bond0.1050\n<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>What does mean\u00a0<strong>MASTER<\/strong>\u00a0&#8211; all interfaces from the list below is up:\n<pre class=\"wiki\">vrrp.10.100 10.10.0.1\/23\nvrrp.11.101 10.10.64.1\/23\nvrrp.12.777 10.100.0.1\/24\nvrrp.13.778 10.101.0.1\/22\nvrrp.14.1050 10.3.0.1\/22\n<\/pre>\n<\/li>\n<\/ul>\n<p><strong>keepalived<\/strong>\u00a0version: 1.2.7<\/p>\n<h3 id=\"KeepalivedScripts\">Keepalived Scripts<a id=\"section_7\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=7\"><\/a><\/h3>\n<hr \/>\n<h2 id=\"Routing\">Routing<a id=\"section_8\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/net-structure\/Core-Routers?action=edit&amp;section=8\"><\/a><\/h2>\n<p>We are using quagga package ( 0.99.17-2+squeeze3 BGP\/OSPF\/RIP routing daemon ) from Debian Squeeze repo for OSPF.<\/p>\n<p>OSPF and VRRP &#8211; based failover schema:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"Sysctl\">Sysctl<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Core routers We are using 2 hosts for routing purposes:\u00a0\u200brc1v.itim.vn\u00a0and\u00a0\u200brc2v.itim.vn Network Interfaces Both hosts has 2 integrated 1G ports and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6],"tags":[],"class_list":["post-696","post","type-post","status-publish","format-standard","hentry","category-networking"],"_links":{"self":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=696"}],"version-history":[{"count":0,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/696\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}