{"id":3679,"date":"2019-09-17T16:38:59","date_gmt":"2019-09-17T19:38:59","guid":{"rendered":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/"},"modified":"2019-09-17T16:38:59","modified_gmt":"2019-09-17T19:38:59","slug":"bgp-attributes-saiba-o-que-e-um-atributo-bgp","status":"publish","type":"post","link":"https:\/\/matrixgo.ai\/en\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/","title":{"rendered":"BGP ATTRIBUTES: Learn what a BGP attribute is"},"content":{"rendered":"<p>In general, they help determine paths within a network. A BGP attribute can also be used to determine the best route for a prefix when multiple paths are available.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>What are the types of BGP attributes?<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>There are four in total, each with its own functionality. Let&#039;s take a look at them:<\/p>\n<p><strong>1- Well known mandatory attributes:\u00a0<\/strong>mandatory attributes, must be known on all equipment using BGP, and must be included in all update messages.<\/p>\n<p>For example: Local_Pref \u2013 Local Preference<\/p>\n<p><strong>3- Optional transitive attributes:\u00a0<\/strong>Transitive attributes that can be recognized by devices that &quot;speak&quot; BGP, but not necessarily by all. They are forwarded to neighboring routers, whether they are recognized or not.<\/p>\n<p>For example: Community \u2013 Community string<\/p>\n<p><strong>4- Optional non-transitive attributes:<\/strong> Non-transitive attributes can be recognized by devices that &quot;speak&quot; BGP, but not by all. They are not forwarded to neighboring routers, maintaining their applicability within their local network.<\/p>\n<p>For example: MED \u2013 Multi-Exit Discriminator<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>BGP attribute priority order<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Weight:\u00a0<\/strong>the higher the value, the better the route.<\/li>\n<li><strong>Local_Pref:\u00a0<\/strong>the higher the value, the better the route.<\/li>\n<li><strong>Originate:\u00a0<\/strong>prefers locally generated routes.<\/li>\n<li><strong> AS_Path Length:\u00a0<\/strong>the lower the AS_PATH number, the better the route.<\/li>\n<li><strong>Origin Code:\u00a0<\/strong>prefers the route with the smallest Origin IGP code. It is smaller than EGP, which in turn is smaller than INCOMPLETE.<\/li>\n<li><strong>MED:\u00a0<\/strong>the lower the MED value, the better the route.<\/li>\n<li><strong>eBGP path over iBGP path:\u00a0<\/strong>preference of eBGP routes over iBGP routes.<\/li>\n<li><strong>Shortest IGP patch to BGP next hop:\u00a0<\/strong>prefers the route through the nearest IGP neighbor.<\/li>\n<li><strong>Oldest path:\u00a0<\/strong>the older eBGP route is preferred.<\/li>\n<li><strong>Router ID:\u00a0<\/strong>prefers the route with the lowest neighbor Router ID.<\/li>\n<li><strong>Neighbor IP address:\u00a0<\/strong>the neighbor with the lowest IP address will have the preferred route.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>Explaining a BGP attribute<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>We chose some attributes to give a brief explanation of usability, and today we will explain a little about the WEIGHT attribute.<\/p>\n<p>This is a CISCO-specific attribute used to identify the best path to a destination prefix when there are more entries available in the routing table. In other words, when the routing table contains two identical prefixes with distinct paths, the Weight attribute selects the best path, leaving the others as a backup. The higher the weight value, the better the path for the manipulated prefixes.<\/p>\n<p>The weight value ranges from 0 to 65535 and the default for a received route is always 0 (zero).<\/p>\n<p>The weight is not propagated to other neighboring routers in BGP, with the manipulation remaining only \u201cactive\u201d in the AS in which it was applied.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-2304 alignnone\" src=\"https:\/\/matrixbrasil.wpengine.com\/wp-content\/uploads\/2019\/09\/1-300x285.png\" alt=\"\" width=\"455\" height=\"432\" \/><\/p>\n<p>According to the image above, the AS 5 network is receiving a prefix (30.30.30.0\/24) through two upstreams (AS 10 and AS 20). The AS 5 network administrator has decided that his preferred best path for this prefix is through the upstream AS 20, applying a weight value of 200, making the upstream AS 10 a backup.<\/p>\n<p>* Lucas Moreira \u2013 NIS Specialist<\/p>","protected":false},"excerpt":{"rendered":"<p>In general, they help in determining the paths to a network. A BGP attribute can also be used to determine the best route for a prefix when multiple paths are available. What are the types of BGP attributes? In total, there are four, each with its own functionality. Let&#039;s look at them: 1- Well known [\u2026]<\/p>","protected":false},"author":1,"featured_media":3680,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","_joinchat":[],"footnotes":""},"categories":[42],"tags":[],"class_list":["post-3679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bgp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP - Matrix Go<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/matrixgo.ai\/en\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP - Matrix Go\" \/>\n<meta property=\"og:description\" content=\"De maneira geral, eles ajudam na determina\u00e7\u00e3o dos caminhos para uma rede. Um atributo BGP tamb\u00e9m pode ser usado para determinar a melhor rota para um prefixo quando h\u00e1 v\u00e1rios caminhos dispon\u00edveis. &nbsp; Quais os tipos de atributos BGP? &nbsp; Ao todo, s\u00e3o quatro, cada um com sua funcionalidade. Vamos a eles: 1- Well known [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/matrixgo.ai\/en\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\" \/>\n<meta property=\"og:site_name\" content=\"Matrix Go\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-17T19:38:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"386\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"vimedigital\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vimedigital\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\"},\"author\":{\"name\":\"vimedigital\",\"@id\":\"https:\/\/matrixgo.ai\/en\/#\/schema\/person\/83d09a848afd00ba71bcb7bdb0350dff\"},\"headline\":\"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP\",\"datePublished\":\"2019-09-17T19:38:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\"},\"wordCount\":526,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/matrixgo.ai\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png\",\"articleSection\":[\"BGP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\",\"url\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\",\"name\":\"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP - Matrix Go\",\"isPartOf\":{\"@id\":\"https:\/\/matrixgo.ai\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png\",\"datePublished\":\"2019-09-17T19:38:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage\",\"url\":\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png\",\"contentUrl\":\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png\",\"width\":1000,\"height\":386},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/matrixgo.ai\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/matrixgo.ai\/en\/#website\",\"url\":\"https:\/\/matrixgo.ai\/en\/\",\"name\":\"Matrix Go\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/matrixgo.ai\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/matrixgo.ai\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/matrixgo.ai\/en\/#organization\",\"name\":\"Matrix Go\",\"url\":\"https:\/\/matrixgo.ai\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/matrixgo.ai\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2023\/05\/LOGO-MATRIX-APROVADA-1-1.png\",\"contentUrl\":\"https:\/\/matrixgo.ai\/wp-content\/uploads\/2023\/05\/LOGO-MATRIX-APROVADA-1-1.png\",\"width\":236,\"height\":96,\"caption\":\"Matrix Go\"},\"image\":{\"@id\":\"https:\/\/matrixgo.ai\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/matrixgo.ai\/en\/#\/schema\/person\/83d09a848afd00ba71bcb7bdb0350dff\",\"name\":\"vimedigital\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/matrixgo.ai\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/817a9169bdce1fca793979636300e2c991570f5aa7f0903c597276548be10857?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/817a9169bdce1fca793979636300e2c991570f5aa7f0903c597276548be10857?s=96&d=mm&r=g\",\"caption\":\"vimedigital\"},\"sameAs\":[\"https:\/\/matrixgo.ai\"],\"url\":\"https:\/\/matrixgo.ai\/en\/author\/vimedigital\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP - Matrix Go","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/matrixgo.ai\/en\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/","og_locale":"en_US","og_type":"article","og_title":"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP - Matrix Go","og_description":"De maneira geral, eles ajudam na determina\u00e7\u00e3o dos caminhos para uma rede. Um atributo BGP tamb\u00e9m pode ser usado para determinar a melhor rota para um prefixo quando h\u00e1 v\u00e1rios caminhos dispon\u00edveis. &nbsp; Quais os tipos de atributos BGP? &nbsp; Ao todo, s\u00e3o quatro, cada um com sua funcionalidade. Vamos a eles: 1- Well known [&hellip;]","og_url":"https:\/\/matrixgo.ai\/en\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/","og_site_name":"Matrix Go","article_published_time":"2019-09-17T19:38:59+00:00","og_image":[{"width":1000,"height":386,"url":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png","type":"image\/png"}],"author":"vimedigital","twitter_card":"summary_large_image","twitter_misc":{"Written by":"vimedigital","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#article","isPartOf":{"@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/"},"author":{"name":"vimedigital","@id":"https:\/\/matrixgo.ai\/en\/#\/schema\/person\/83d09a848afd00ba71bcb7bdb0350dff"},"headline":"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP","datePublished":"2019-09-17T19:38:59+00:00","mainEntityOfPage":{"@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/"},"wordCount":526,"commentCount":1,"publisher":{"@id":"https:\/\/matrixgo.ai\/en\/#organization"},"image":{"@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage"},"thumbnailUrl":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png","articleSection":["BGP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/","url":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/","name":"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP - Matrix Go","isPartOf":{"@id":"https:\/\/matrixgo.ai\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage"},"image":{"@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage"},"thumbnailUrl":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png","datePublished":"2019-09-17T19:38:59+00:00","breadcrumb":{"@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#primaryimage","url":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png","contentUrl":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2019\/09\/BGP.png","width":1000,"height":386},{"@type":"BreadcrumbList","@id":"https:\/\/matrixgo.ai\/bgp-attributes-saiba-o-que-e-um-atributo-bgp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/matrixgo.ai\/"},{"@type":"ListItem","position":2,"name":"BGP ATTRIBUTES: Saiba o que \u00e9 um atributo BGP"}]},{"@type":"WebSite","@id":"https:\/\/matrixgo.ai\/en\/#website","url":"https:\/\/matrixgo.ai\/en\/","name":"Matrix Go","description":"","publisher":{"@id":"https:\/\/matrixgo.ai\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/matrixgo.ai\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/matrixgo.ai\/en\/#organization","name":"Matrix Go","url":"https:\/\/matrixgo.ai\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/matrixgo.ai\/en\/#\/schema\/logo\/image\/","url":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2023\/05\/LOGO-MATRIX-APROVADA-1-1.png","contentUrl":"https:\/\/matrixgo.ai\/wp-content\/uploads\/2023\/05\/LOGO-MATRIX-APROVADA-1-1.png","width":236,"height":96,"caption":"Matrix Go"},"image":{"@id":"https:\/\/matrixgo.ai\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/matrixgo.ai\/en\/#\/schema\/person\/83d09a848afd00ba71bcb7bdb0350dff","name":"vimedigital","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/matrixgo.ai\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/817a9169bdce1fca793979636300e2c991570f5aa7f0903c597276548be10857?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/817a9169bdce1fca793979636300e2c991570f5aa7f0903c597276548be10857?s=96&d=mm&r=g","caption":"vimedigital"},"sameAs":["https:\/\/matrixgo.ai"],"url":"https:\/\/matrixgo.ai\/en\/author\/vimedigital\/"}]}},"_links":{"self":[{"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/posts\/3679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/comments?post=3679"}],"version-history":[{"count":0,"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/posts\/3679\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/media\/3680"}],"wp:attachment":[{"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/media?parent=3679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/categories?post=3679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matrixgo.ai\/en\/wp-json\/wp\/v2\/tags?post=3679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}