<!DOCTYPE html>
    <html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
    <head>
<title>Switch Layer 2, Layer 3 là gì? So sánh Switch Layer 2 và Layer 3</title>
<meta name="description" content="Switch Layer 2, Layer 3 là gì? So sánh Switch Layer 2 và Layer 3 - Savefile - Tin tức -...">
<meta name="author" content="Công ty Cổ Phần VasOne">
<meta name="copyright" content="Công ty Cổ Phần VasOne [thanh.pham@vasone.vn]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="language" content="vietnamese">
<meta name="generator" content="NukeViet v4.3">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="vi">
<meta property="og:title" content="Switch Layer 2, Layer 3 là gì? So sánh Switch Layer 2 và Layer 3">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin tức - https&#x3A;&#x002F;&#x002F;vasone.vn&#x002F;vi&#x002F;tin-tuc&#x002F;savefile&#x002F;bang-tin-cong-nghe&#x002F;switch-layer-2-layer-3-la-gi-so-sanh-switch-layer-2-va-layer-3-45.html">
<meta property="og:site_name" content="Công ty Cổ Phần VasOne">
<meta property="og:url" content="https://vasone.vnhttps://vasone.vn/vi/tin-tuc/bang-tin-cong-nghe/switch-layer-2-layer-3-la-gi-so-sanh-switch-layer-2-va-layer-3-45.html">
<link rel="shortcut icon" href="https://vasone.vn/uploads/picwish.png">
<link rel="canonical" href="https://vasone.vnhttps://vasone.vn/vi/tin-tuc/bang-tin-cong-nghe/switch-layer-2-layer-3-la-gi-so-sanh-switch-layer-2-va-layer-3-45.html">
<link rel="alternate" href="https://vasone.vn/vi/tin-tuc/rss/" title="Tin tức" type="application/rss+xml">
<link rel="alternate" href="https://vasone.vn/vi/tin-tuc/rss/ban-tin/" title="Tin tức - Bảng Tin Nội Bộ" type="application/rss+xml">
<link rel="alternate" href="https://vasone.vn/vi/tin-tuc/rss/bang-tin-cong-nghe/" title="Tin tức - Bảng Tin Công Nghệ" type="application/rss+xml">
<link rel="alternate" href="https://vasone.vn/vi/tin-tuc/rss/the-gioi-quanh-ta/" title="Tin tức - Thế Giới Quanh Ta" type="application/rss+xml">
<link rel="alternate" href="https://vasone.vn/vi/tin-tuc/rss/tuyen-dung/" title="Tin tức - Tuyển Dụng" type="application/rss+xml">
<link rel="preload" as="script" href="https://vasone.vn/assets/js/jquery/jquery.min.js">
<link rel="preload" as="script" href="https://vasone.vn/assets/js/language/vi.js">
<link rel="preload" as="script" href="https://vasone.vn/assets/js/global.js">
<link rel="preload" as="script" href="https://vasone.vn/themes/default/js/news.js">
<link rel="preload" as="script" href="https://vasone.vn/themes/vinaquipsv2/js/main.js">
<link rel="preload" as="script" href="https://vasone.vn/themes/vinaquipsv2/js/custom.js">
<link rel="preload" as="script" href="https://vasone.vn/themes/vinaquipsv2/js/bootstrap.min.js">
<link rel="stylesheet" href="https://vasone.vn/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://vasone.vn/themes/vinaquipsv2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://vasone.vn/themes/vinaquipsv2/css/style.css">
<link rel="stylesheet" href="https://vasone.vn/themes/vinaquipsv2/css/style.responsive.css">
<link rel="stylesheet" href="https://vasone.vn/themes/vinaquipsv2/css/animate.css">
<link rel="stylesheet" href="https://vasone.vn/themes/vinaquipsv2/fonts/Roboto/stylesheet.css">
<link rel="StyleSheet" href="https://vasone.vn/themes/default/css/news.css">
<link rel="stylesheet" href="https://vasone.vn/themes/vinaquipsv2/css/custom.css">
<style>
	body{background: #fff;}
</style>
<script data-show="inline">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46664394-1', '.vasone.vn');
ga('send', 'pageview');
</script>
</head>
    <body class="m-tin-tuc f-news">
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Công ty Cổ Phần VasOne</h2>
		<p class="pull-right"><a title="Công ty Cổ Phần VasOne" href="https://vasone.vn/">https://vasone.vn</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Switch Layer 2, Layer 3 là gì? So sánh Switch Layer 2 và Layer 3</h1>
		<ul class="list-inline">
			<li>Thứ ba - 21/10/2025 04:53</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
			Switch Layer 2, Layer 3 là gì?<br />Switch Layer 2 và Switch Layer 3 là các khái niệm được sử dụng dựa trên mô hình OSI để mô tả và giải thích chức năng của từng switch khi tham gia vào hệ thống mạng. Trong mô hình OSI, Switch Layer 2 tương ứng với lớp Data Link và Switch Layer 3 tương ứng lớp Network.
		</div>
				<div class="imghome">
			<img alt="Switch Layer 2, Layer 3 là gì? So sánh Switch Layer 2 và Layer 3" src="https://cnttshop.vn/storage/images/tin-tuc/tin-tuc/Layer-2-Layer-3-in-OSI-model.jpg" width="460" class="img-thumbnail" />
		</div>
		<div class="clear"></div>
		<div id="bodytext" class="clearfix">
			<p><strong>Switch Layer 2</strong>&nbsp;là các thiết bị chuyển mạch thường được sử dụng để kết nối xuống các thiết bị đầu cuối, cung cấp kết nối mạng tới các thiết bị nhưng PC, Laptop, máy in, camera, server ... Switch Layer 2 được thiết kế tuân thủ theo các quy chuẩn của lớp Data Link.</p>

<p><strong>Switch Layer 3</strong>&nbsp;là các thiết bị chuyển mạch thường được sử dụng cho các hệ thống Core hoặc Distribution để kết nối các switch access (switch layer 2) hoặc kết nối sang các mạng khác. Switch Layer 3 được thiết kế tuân thủ theo các quy chuẩn của lớp Network trong mô hình OSI.</p>

<p>&nbsp;</p>

<h2>So sánh Switch Layer 2 và Layer 3</h2>

<p>Switch Layer 2 và switch layer 3 khác nhau chủ yếu ở chức năng định tuyến. Switch Layer 2 chỉ hoạt động với địa chỉ MAC và không quan tâm đến địa chỉ IP hoặc bất kỳ mục nào của các lớp cao hơn. Switch Layer 3, hoặc các thiết bị switch multi layer, có thể thực hiện tất cả chức năng của bộ chuyển mạch lớp 2, cộng thêm các tính năng định tuyến và các tính năng layer 3 khác. Điều đó có nghĩa là, bộ chuyển mạch Lớp 3 có cả bảng địa chỉ MAC và bảng định tuyến IP, đồng thời xử lý giao tiếp nội bộ VLAN và định tuyến gói tin giữa các VLAN khác nhau. Ngoài ra còn có Switch Layer 2+ (lớp 3 Lite) được tích hợp thêm tính năng định tuyến tĩnh.</p>

<p><img alt="so sánh switch layer 2 và switch layer 3" src="https://cnttshop.vn/storage/images/tin-tuc/tin-tuc/Layer-2-Layer-3-in-OSI-model.jpg" /></p>

<p>&nbsp;</p>

<h2>Các thông số chính cần xem xét khi mua Switch Layer 2 hoặc Layer 3</h2>

<p>Nếu bạn đang cần mua Switch Layer 2 hoặc switch layer 3, có một số thông số chính mà bạn nên kiểm tra, bao gồm tốc độ chuyển tiếp, băng thông, số lượng VLAN, số lượng bảng MAC, độ trễ, v.v.</p>

<p>Tốc độ chuyển tiếp (forwarding rate hoặc throughput rate) là khả năng chuyển tiếp gói tin của thiết bị. Khi khả năng chuyển tiếp lớn hơn tổng tốc độ của tất cả các cổng trên thiết bị, switch được gọi là non-blocking. Tốc độ chuyển tiếp được biểu thị bằng gói trên giây (pps). Công thức sau cung cấp cách tính tốc độ chuyển tiếp của một công tắc:</p>

<p><strong>Forwarding Rate (pps)</strong>&nbsp;= number of 10Gbit/s ports * 14,880,950 pps + number of 1 Gbit/s ports * 1,488,095 pps + number of 100Mbit/s ports * 148,809 pps</p>

<p>Ví dụ:</p>

<p>Một thiết bị switch có 32 cổng 10 Gbit/s và 2 cổng tốc độ 40 Gbit/s, áp dụng công thức trên chúng ta sẽ có Forwarding Rate là:</p>

<p>Forwarding Rate = 32 * 14,880,950 pps + 2 * 4 * 14,880,950 pps = 595,238,000 pps ≈ 596 Mpps</p>

<p>Thông số tiếp theo là băng thông chuyển mạch (switching bandwidth) hoặc dung lượng chuyển mạch (switching capacity) là tổng tốc độ của tất cả các cổng trên thiết bị theo cả 2 chiều Tx và Rx. Công thức tính:</p>

<p><strong>Bandwidth (bps)</strong>&nbsp;= port number * port data rate * 2</p>

<p>Ngoài ra chúng ta cũng cần xem các thông số như: số lượng VLAN có thể cấu hình, số lượng địa chỉ MAC mà switch có thể lưu và độ trễ. Số lượng VLAN tùy thuộc vào quy mô của công ty mà chúng ta có thể đưa ra các yêu cầu cụ thể. Số lượng MAC entry ảnh hưởng đến số lượng thiết bị tối đa kết nối vào, càng nhiều thiết bị sử dụng thì chúng ta cần thiết bị hỗ trợ bảng MAC càng lớn. Độ trễ ảnh hưởng trực tiếp đến quá trình truyền dữ liệu, switch hỗ trợ độ trễ càng thấp thì quá trình truyền dữ liệu càng nhanh.</p>

<p>&nbsp;</p>

<h2>Kết luận</h2>

<p>Switch layer 2 và switch layer 3 được lựa chọn tùy thuộc vào nhu cầu sử dụng. Không phải lúc nào switch layer 3 cũng tốt hơn. Chúng ta cần xác định nhu cầu sử dụng cụ thể để có thể lựa chọn được thiết bị phù hợp.</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://vasone.vnhttps://vasone.vn/vi/tin-tuc/bang-tin-cong-nghe/switch-layer-2-layer-3-la-gi-so-sanh-switch-layer-2-va-layer-3-45.html" title="Switch Layer 2, Layer 3 là gì? So sánh Switch Layer 2 và Layer 3">https://vasone.vnhttps://vasone.vn/vi/tin-tuc/bang-tin-cong-nghe/switch-layer-2-layer-3-la-gi-so-sanh-switch-layer-2-va-layer-3-45.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Công ty Cổ Phần VasOne
		</div>
		<div id="contact">
			<a href="mailto:thanh.pham@vasone.vn">thanh.pham@vasone.vn</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://vasone.vn/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<script src="https://vasone.vn/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="tin-tuc",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="vinaquips_Jfv8d",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=1,nv_is_recaptcha=0;</script>
<script src="https://vasone.vn/assets/js/language/vi.js"></script>
<script src="https://vasone.vn/assets/js/global.js"></script>
<script src="https://vasone.vn/themes/default/js/news.js"></script>
<script src="https://vasone.vn/themes/vinaquipsv2/js/main.js"></script>
<script src="https://vasone.vn/themes/vinaquipsv2/js/custom.js"></script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://vasone.vn",
            "logo": "https://vasone.vn/uploads/logo-20210715091204_1-1.png"
        }
        </script>
<script src="https://vasone.vn/themes/vinaquipsv2/js/bootstrap.min.js"></script>
</body>
</html>