{"id":55847,"date":"2020-01-30T00:00:00","date_gmt":"2020-01-29T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/acl-kommutatorov-v-detalyah"},"modified":"2020-02-18T14:04:00","modified_gmt":"2020-02-18T11:04:00","slug":"acl-kommutatorov-v-detalyah","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sk\/blog\/administrirovanie\/acl-kommutatorov-v-detalyah","title":{"rendered":"Detailing Switch ACLs","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>ACL (Access Control List) on network devices can be implemented both in hardware and software, or more commonly referred to as hardware and software-based ACLs. While software-based ACLs are straightforward\u2014they are rules stored and processed in RAM (i.e., on the Control Plane), with all the inherent limitations\u2014our article will explain how hardware-based ACLs are implemented and function. For illustration, we will use switches from the ExtremeSwitching series by Extreme Networks.<\/p>\n<p><img decoding=\"async\" alt=\"Detailing Switch ACLs\" src=\"\/wp-content\/uploads\/2020\/01\/1be325a0b6ed23e1e64f9a635dd77ce1.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nSince we are focusing on hardware-based ACLs, the internal implementation of the Data Plane and the chipsets (ASICs) used is of utmost importance to us. All switches in the Extreme Networks lineup are built on Broadcom ASICs, and thus most of the information below will also apply to other switches available on the market that utilize similar ASICs.<\/p>\n<p>As can be seen from the diagram above, the operation of the ACL is managed by the 'ContentAware Engine' in the chipset, separately for 'ingress' and 'egress'. Architecturally, they are identical, though 'egress' is less scalable and less functional. Physically, both 'ContentAware Engines' consist of TCAM memory plus associated logic, and each user or system ACL rule is a simple bit mask stored in this memory. That is why the chipset processes traffic on a packet-by-packet basis without performance degradation.<\/p>\n<p>Physically, the same Ingress\/Egress TCAM is logically divided into several segments (depending on the amount of memory and the platform), known as 'ACL slices'. For example, the same situation occurs with a single HDD in your laptop when you create multiple logical disks\u2014C:&gt;, D:&gt;. Each ACL slice consists of memory cells in the form of 'rows' where the 'rules' (rules\/bit masks) are written.<\/p>\n<p><img decoding=\"async\" alt=\"Detailing Switch ACLs\" src=\"\/wp-content\/uploads\/2020\/01\/9cb85f7f1ea86fa53142a9665f98651b.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nThe division of TCAM into ACL slices follows a specific logic. Only compatible 'rules' can be written in each individual ACL slice. If any of the 'rules' is incompatible with the previous one, it will be written to the next ACL slice in order, regardless of how many free rows for 'rules' are left in the previous one. <\/p>\n<p>Odkia\u013e sa teda vz\u00e1jomn\u00e1 kompatibilita alebo nekompatibilita pravidiel ACL? Je to t\u00fdm, \u017ee jedna \u201criadka\u201d TCAM, do ktorej sa zapisuj\u00fa \u201cpravidl\u00e1\u201d, m\u00e1 d\u013a\u017eku 232 bitov a del\u00ed sa na nieko\u013eko pol\u00ed \u2013 Fixed, Field1, Field2, Field3. 232 bitov alebo 29 bajtov TCAM pam\u00e4te je \u00faplne dostato\u010dn\u00e9 na ulo\u017eenie bitovej masky ur\u010ditej MAC alebo IP adresy, ale zna\u010dne menej ako cel\u00fd hlavi\u010dka Ethernet paketov. V ka\u017edom jednotlivom ACL-slice ASIC vykon\u00e1va nez\u00e1visl\u00e9 vyh\u013ead\u00e1vanie na z\u00e1klade nastaven\u00fdch v F1-F3 bitov\u00fdch masiek. Celkovo m\u00f4\u017ee by\u0165 toto vyh\u013ead\u00e1vanie uskuto\u010dnen\u00e9 pod\u013ea prv\u00fdch 128 bajtov hlavi\u010dky Ethernetu. Presne z d\u00f4vodu, \u017ee vyh\u013ead\u00e1vanie m\u00f4\u017ee by\u0165 uskuto\u010dnen\u00e9 pod\u013ea 128 bajtov, a zap\u00edsan\u00e9 m\u00f4\u017ee by\u0165 len 29 bajtov, pre spr\u00e1vne vyh\u013ead\u00e1vanie by mal by\u0165 nastaven\u00fd posun (offset) vo vz\u0165ahu k za\u010diatku paketu. Offset pre ka\u017ed\u00fd ACL-slice sa nastavuje po\u010das z\u00e1pisu prv\u00e9ho pravidla, a ak sa pri z\u00e1pise nasleduj\u00faceho pravidla zist\u00ed potreba in\u00e9ho offsetu, potom je tak\u00e9 pravidlo pova\u017eovan\u00e9 za nekompatibiln\u00e9 s prv\u00fdm a zapisuje sa do nasleduj\u00faceho ACL-slice.<\/p>\n<p>V nasleduj\u00facej tabu\u013eke je uveden\u00fd poriadok kompatibility podmienok definovan\u00fdch v ACL. Ka\u017ed\u00fd jednotliv\u00fd riadok obsahuje medzi sebou kompatibiln\u00e9 a nekompatibiln\u00e9 s in\u00fdmi riadkami formovan\u00e9 bitov\u00e9 masky.<\/p>\n<p><img decoding=\"async\" alt=\"Detailing Switch ACLs\" src=\"\/wp-content\/uploads\/2020\/01\/a8cff880d3f588d17e5f583b638ff03f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nKa\u017ed\u00fd jednotliv\u00fd paket sprac\u00favan\u00fd ASIC sp\u00fa\u0161\u0165a paraleln\u00e9 vyh\u013ead\u00e1vanie v ka\u017edom ACL-slice. Kontrola sa vykon\u00e1va do prv\u00e9ho zhody v ACL-slice, pri\u010dom sa povoluje aj viacn\u00e1sobn\u00e1 zhoda pre ten ist\u00fd paket v r\u00f4znych ACL-slice. Ka\u017ed\u00e9 jednotliv\u00e9 \u201cpravidlo\u201d m\u00e1 zodpovedaj\u00facu akciu, ktor\u00fa treba vykona\u0165 v pr\u00edpade zhody podmienky (bitov\u00e1 maska). Ak sa zhoda vyskytla s\u00fa\u010dasne v nieko\u013ek\u00fdch ACL-slice, tak v bloku \u201cAction Conflict Resolution\u201d je na z\u00e1klade priority ACL-slice prijat\u00e9 rozhodnutie, ktor\u00e1 z akci\u00ed sa vykon\u00e1. Ak je v ACL uveden\u00e1 aj \u201cakcia\u201d (permit\/deny), aj \u201cmodifik\u00e1tor akcie\u201d (count\/QoS\/log\/\u2026), tak pri viacn\u00e1sobn\u00fdch zhod\u00e1ch sa vykon\u00e1 iba primeranej\u0161ia \u201cakcia\u201d, \u201cmodifik\u00e1tory akcie\u201d sa v\u0161ak vykonaj\u00fa v\u0161etky. Na pr\u00edklade ni\u017e\u0161ie je uk\u00e1zan\u00e9, \u017ee sa zv\u00fd\u0161ia oba po\u010d\u00edtadl\u00e1 a vykon\u00e1 sa primeranej\u0161ia \u201cdeny\u201d.<\/p>\n<p><img decoding=\"async\" alt=\"Detailing Switch ACLs\" src=\"\/wp-content\/uploads\/2020\/01\/c6556c6484e2850f7532462cf195e8c0.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/documentation.extremenetworks.com\/PDFs\/EXOS\/ACL_Solutions_Guide.pdf\">\u201cSprievodca rie\u0161eniami ACL\u201d<\/a><\/noindex> s podrobnej\u0161\u00edmi inform\u00e1ciami o fungovan\u00ed ACL vo vo\u013enom pr\u00edstupe na str\u00e1nke <noindex><a rel=\"nofollow\" href=\"http:\/\/extremenetworks.com\">extremenetworks.com<\/a><\/noindex>. Ak\u00e9ko\u013evek vznikaj\u00face alebo zost\u00e1vaj\u00face ot\u00e1zky je mo\u017en\u00e9 v\u017edy polo\u017ei\u0165 zamestnancom na\u0161ej kancel\u00e1rie \u2013 <noindex><a rel=\"nofollow\" href=\"mailto:cis@extremenetworks.com\">cis@extremenetworks.com<\/a><\/noindex>.<br \/>\n<br \/>Zdroj: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/extremenetworks\/blog\/486070\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>ACL (Access Control List) \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e, \u0442\u0430\u043a \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e, \u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0439 \u0433\u043e\u0432\u043e\u0440\u044f hardware \u0438 software-based ACL. \u0418 \u0435\u0441\u043b\u0438 \u0441 software-based ACL \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u2014 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (\u0442.\u0435. \u043d\u0430 Control Plane), \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u044b\u0442\u0435\u043a\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0442\u0441\u044e\u0434\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0442\u043e \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-55847","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5 - aioseo.com -->\n\t<meta name=\"description\" content=\"ACL (Access Control List) \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e, \u0442\u0430\u043a \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e, \u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0439 \u0433\u043e\u0432\u043e\u0440\u044f hardware \u0438 software-based ACL.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sk\/blog\/administrirovanie\/acl-kommutatorov-v-detalyah\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5\" \/>\n\t\t<meta property=\"og:locale\" content=\"sk_SK\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47ACL \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"ACL (Access Control List) \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e, \u0442\u0430\u043a \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e, \u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0439 \u0433\u043e\u0432\u043e\u0440\u044f hardware \u0438 software-based ACL.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sk\/blog\/administrirovanie\/acl-kommutatorov-v-detalyah\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-01-29T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T11:04:00+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Podrobnosti o ACL prep\u00edna\u010dov | ProHoster","description":"ACL (Access Control List) na sie\u0165ov\u00fdch zariadeniach m\u00f4\u017eu by\u0165 implementovan\u00e9 ako hardv\u00e9r aj softv\u00e9r, inak povedan\u00e9 hardv\u00e9rov\u00e9 a softv\u00e9rov\u00e9 ACL.","canonical_url":"https:\/\/prohoster.info\/sk\/blog\/administrirovanie\/acl-kommutatorov-v-detalyah","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sk_SK","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47ACL \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445 | ProHoster","og:description":"ACL (Access Control List) \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e, \u0442\u0430\u043a \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e, \u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0439 \u0433\u043e\u0432\u043e\u0440\u044f hardware \u0438 software-based ACL.","og:url":"https:\/\/prohoster.info\/sk\/blog\/administrirovanie\/acl-kommutatorov-v-detalyah","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-01-29T21:00:00+00:00","article:modified_time":"2020-02-18T11:04:00+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"55847","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 19:35:41","updated":"2022-09-29 07:17:30","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/posts\/55847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/comments?post=55847"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/posts\/55847\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/media?parent=55847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/categories?post=55847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sk\/wp-json\/wp\/v2\/tags?post=55847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}