Question #22
What occurs to frames during the process of frame flooding?
A
Frames are sent to all ports, including those that are assigned to other VLANs.
B
Frames are sent to every port on the switch that has a matching entry in MAC address table.
C
Frames are sent to every port on the switch in the same VLAN except from the originating port.
D
Frames are sent to every port on the switch in the same VLAN.
English
## Detailed Analysis of CCNA Exam Question: Frame Flooding
This question tests your understanding of how switches handle frames, specifically in a situation where they don't know the exact destination. This is a fundamental concept for anyone working with network switches.
---
### Question: What occurs to frames during the process of frame flooding?
**Question Type:** Single Choice
**Correct Answer(s):** Frames are sent to every port on the switch in the same VLAN except from the originating port.
---
### Explanation for Beginners:
Let's break down the question and the concepts involved.
#### Key Concepts:
1. **Frame:** In the world of networking, data is organized into "packets" (at the Network Layer, like IP) and then encapsulated into "frames" (at the Data Link Layer, like Ethernet). A frame contains the actual data being sent, plus source and destination **MAC addresses**.
* **MAC Address (Media Access Control Address):** A unique, physical address assigned to every network interface card (NIC) on a device (e.g., a computer, printer, server). It's like a serial number for your network adapter. Switches use MAC addresses to forward frames.
2. **Switch:** A network device that connects multiple computers or network segments. Its primary job is to learn the MAC addresses of devices connected to its ports and then forward frames only to the specific port where the destination device is located. This makes networks more efficient than hubs, which send data to *all* ports.
3. **MAC Address Table (or CAM Table):** Every switch maintains a table in its memory. This table stores information about which MAC addresses are reachable through which switch port. For example, if your computer (with MAC address `AA:BB:CC:DD:EE:FF`) is connected to Port 5 of a switch, the switch's MAC address table will have an entry like: `AA:BB:CC:DD:EE:FF -> Port 5`.
4. **VLAN (Virtual Local Area Network):** A way to logically segment a single physical switch into multiple virtual switches. Devices in one VLAN cannot directly communicate with devices in another VLAN, even if they are on the same physical switch. This provides security, flexibility, and performance benefits by creating separate broadcast domains.
5. **Originating Port:** The port on the switch where a frame *first arrived*.
#### What is Frame Flooding?
Frame flooding is a specific behavior of a switch when it receives a frame and needs to figure out where to send it. It primarily occurs in two scenarios:
1. **Unknown Unicast:** When a switch receives a frame destined for a MAC address that is *not* currently in its MAC address table. The switch doesn't know which specific port the destination device is on.
2. **Broadcast:** When a frame is sent to a special MAC address (`FF:FF:FF:FF:FF:FF`) that signifies it should be sent to *all* devices within a specific network segment (a broadcast domain).
3. **Multicast:** Similar to broadcast, but for a specific group of devices. If the switch hasn't learned the specific ports for a multicast group, it might flood the frame.
In these situations, because the switch doesn't know the *exact* destination port (or because it's explicitly a broadcast), it resorts to flooding.
---
### Analyzing the Options:
Let's evaluate each option based on our understanding:
* **Frames are sent to all ports, including those that are assigned to other VLANs.**
* **Why it's Incorrect:** This is fundamentally wrong because of how VLANs work. VLANs are designed to create isolated broadcast domains. A frame belonging to VLAN 10 should *never* be forwarded to a port assigned to VLAN 20, even during flooding. If this were true, VLANs would offer no isolation.
* **Frames are sent to every port on the switch that has a matching entry in MAC address table.**
* **Why it's Incorrect:** This describes **unicast forwarding**, not flooding. If a switch has a *matching entry* in its MAC address table for a destination MAC address, it will send the frame *only* to that specific port. Flooding happens precisely when there is *no* matching entry for an unknown unicast destination.
* **Frames are sent to every port on the switch in the same VLAN except from the originating port.**
* **Why it's Correct:**
1. **"Frames are sent to every port on the switch in the same VLAN"**: This is crucial. Flooding is contained within the frame's VLAN. A frame from VLAN A will only be flooded to other ports *also in VLAN A*.
2. **"except from the originating port"**: This is an important detail. The switch doesn't send the frame back out the same port it just received it on. This prevents unnecessary traffic and potential simple loops back to the sender if the sender itself is listening on that port.
* **Frames are sent to every port on the switch in the same VLAN.**
* **Why it's Less Correct:** While this option is very close to the correct answer and captures the essence of VLAN confinement during flooding, it misses the critical detail of "except from the originating port." In a multiple-choice question, you must choose the *most accurate and complete* answer. Sending a frame back out its originating port is inefficient and typically avoided by switches unless specifically configured for mirroring or other special functions.
### Conclusion:
The process of frame flooding is a switch's way of trying to deliver a frame when it doesn't know the exact destination port, or when the frame is a broadcast. The key rules for flooding are:
1. **VLAN Confinement:** Flooding always happens *within* the frame's VLAN.
2. **No Back-Reflection:** The frame is not sent back out the port it originally came from.
Therefore, "Frames are sent to every port on the switch in the same VLAN except from the originating port" is the most accurate description of frame flooding.
日本語
CCNA試験対策として、レイヤ2スイッチングの基本動作である**「フレームフローディング(Frame Flooding)」**について、プロのネットワークエンジニアの視点から詳しく解説します。
---
# CCNA試験対策:フレームフローディング(Frame Flooding)の解析
## 1. 設問の回答
**「フレームフローディングが発生した際、フレームはどうなるか?」** という問いに対し、技術的な正解は以下の通りです。
> **回答:受信したポート(イングレスポート)以外の、同一VLANに属するすべての稼働中のポートからフレームが転送される。**
---
## 2. エンジニアによる詳細解説
レイヤ2スイッチは、MACアドレステーブル(CAMテーブル)を参照してフレームを転送します。フローディングは、スイッチが「どこにそのフレームを送ればよいか分からない」場合に発生する標準的な動作です。
### A. フローディングが発生する3つの条件(BUMトラフィック)
ネットワークエンジニアの間では、フローディングが発生するトラフィックを総称して**BUMトラフィック**と呼びます。
1. **Broadcast(ブロードキャスト)**: 宛先MACアドレスが `FF:FF:FF:FF:FF:FF` の場合。
2. **Unknown Unicast(不明なユニキャスト)**: 宛先MACアドレスがユニキャスト(1対1)だが、スイッチの**MACアドレステーブルに登録されていない**場合。
3. **Multicast(マルチキャスト)**: 特定のグループ宛のフレームで、IGMPスヌーピングなどの制御が行われていない場合。
### B. プロセスの詳細ステップ
スイッチがフレームを受信した際の動作フローは以下の通りです。
1. **学習(Learning)**: 受信したフレームの「送信元MACアドレス」をMACアドレステーブルに登録(または更新)する。
2. **参照(Lookup)**: フレームの「宛先MACアドレス」をMACアドレステーブルで検索する。
3. **判断(Decision)**:
* テーブルに一致するエントリがあれば:該当ポートのみへ転送(フィルタリング/フォワーディング)。
* **一致するエントリがない、またはブロードキャストの場合:フローディングを実行。**
4. **実行(Execution)**: 受信ポート以外のすべてのポートへコピーを送信する。
### C. なぜ「受信ポート以外」なのか?
これは**ループ防止**のための基本的なルールです。受信したポートに送り返すと、ネットワーク内でフレームが永久に回り続け、帯域を圧迫する(ブロードキャストストーム)原因となるため、スイッチのハードウェアロジックで厳格に禁止されています。
---
## 3. 試験で狙われるポイント
CCNA試験において、このトピックに関連して以下の点も整理しておくと確実です。
* **ハブ(Hub)との違い**: ハブは常にすべてのポートに信号を送りますが、スイッチは「必要な時だけ(テーブルにない時だけ)」フローディングを行います。
* **VLANの影響**: フローディングの範囲は、そのポートが属している**VLAN内**に限定されます。別のVLANにフレームが漏れることはありません(VLANによるブロードキャストドメインの分割)。
* **MACアドレステーブルの枯渇攻撃**: 攻撃者が偽装した送信元MACアドレスを大量に送りつけることでテーブルを一杯にし、スイッチを強制的にフローディング状態(ハブと同じ状態)にさせて通信を盗聴する攻撃手法があります。
---
## 4. まとめ
フレームフローディングは、**「宛先が不明な場合に、全ポート(受信ポートを除く)に聞き回る動作」**です。
* **動作内容**: 受信ポート以外の全アクティブポートへ転送。
* **目的**: 宛先デバイスがどこにいるか分からない状況でも、確実に通信を届けるため。
* **重要語句**: Unknown Unicast, MAC Address Table, Broadcast Domain.
この概念を理解することは、スイッチング、VLAN、STP(スパニングツリープロトコル)を理解するための第一歩となります。
繁體中文
這是一題關於 **Layer 2 交換運作原理 (Switching Operations)** 的經典 CCNA 考題。身為網路工程師,理解「框架泛洪 (Frame Flooding)」對於排查廣播風暴、理解交換機轉發邏輯至關重要。
以下是針對此考題的詳細解析:
---
# 考題解析:交換機框架泛洪 (Frame Flooding) 的運作機制
### 1. 核心定義:什麼是框架泛洪 (Frame Flooding)?
在乙太網路交換運作中,當交換機(Switch)收到一個數據幀(Frame),但其 **MAC 位址表(MAC Address Table,又稱 CAM Table)** 中沒有對應的轉發資訊,或者該幀本身就是發送給所有人的,交換機就會執行「泛洪」動作。
**泛洪的動作定義為:**
> 「交換機將該框架從**除了接收端口(Ingress Port)以外**的所有開啟中的端口(Active Ports)發送出去。」
---
### 2. 為什麼會發生泛洪?(觸發場景)
交換機會在以下三種主要情況下進行泛洪:
#### A. 未知單播 (Unknown Unicast)
* **情境:** 交換機收到一個單播幀(目的 MAC 是特定的設備),但在 MAC 位址表中找不到該目的 MAC 位址。
* **目的:** 因為不知道目標設備在哪個端口,交換機必須透過泛洪來「尋找」該設備。一旦目標設備回應,交換機就會學習到該 MAC 與端口的對應關係,下次就不再泛洪。
#### B. 廣播 (Broadcast)
* **情境:** 框架的目的 MAC 位址為全 `F`(`FF:FF:FF:FF:FF:FF`)。
* **目的:** 根據協議需求(如 ARP 請求、DHCP 發現),該框架必須傳送到同一個廣播域(Broadcast Domain / VLAN)內的所有設備。
#### C. 多播 (Multicast)
* **情境:** 框架的目的 MAC 位址為多播範圍(如 `01:00:5E` 開頭)。
* **目的:** 在沒有設定 IGMP Snooping 的情況下,交換機會將多播幀視同廣播進行泛洪處理。
---
### 3. 框架泛洪的詳細運作流程
當一個框架進入交換機時,會經歷以下逻辑判斷:
1. **學習 (Learning):** 交換機查看「來源 MAC 位址」,若不在表中則記錄(來源 MAC + 接收端口)。
2. **查詢 (Lookup):** 交換機查看「目的 MAC 位址」。
3. **決策 (Decision):**
* **已知單播:** 若在表中有對應端口,則進行 **Forwarding(轉發)** 到該特定端口。
* **目的 MAC 與來源端口相同:** 則進行 **Filtering(過濾/丟棄)**。
* **未知單播/廣播/多播:** 執行 **Flooding(泛洪)**。
4. **執行泛洪:** 複製該框架,發送到同一個 VLAN 內的所有端口,**唯獨不發回接收到該框架的原端口**(為了防止 Layer 2 迴圈)。
---
### 4. 關鍵技術重點 (CCNA 考點總結)
* **排除原則:** 泛洪絕對不會將框架發回「原始接收端口」。
* **範圍限制:** 泛洪的範圍被限制在同一個 **VLAN**(廣播域)之內,不會跨越 VLAN 或路由器。
* **效能影響:** 過多的泛洪(如廣播風暴)會消耗大量的網路頻寬與終端設備的 CPU 資源。
* **MAC 表溢出:** 如果攻擊者發動 MAC Flooding Attack,填滿交換機的 MAC 表,交換機會因為找不到對應關係而將所有流量泛洪,此時交換機運作起來就像一個集線器(Hub),這存在安全風險(嗅探攻擊)。
---
### 5. 總結答案
在框架泛洪過程中,發生的事情是:
**「交換機將接收到的框架複製並發送到與該框架所屬 VLAN 相關聯的所有端口,但接收該框架的原始端口除外。」**
希望這份解析能幫助你深入理解交換機的核心運作邏輯!如有其他疑問,歡迎隨時提問。
简体中文
你好,我是 Cisco 网络专家。针对你提出的 CCNA 考题 **“What occurs to frames during the process of frame flooding?”(在帧泛洪过程中,数据帧会发生什么?)**,我为你整理了详细的专业解析。
---
### 考题解析:帧泛洪 (Frame Flooding) 机制
在二层交换网络中,**帧泛洪(Frame Flooding)** 是交换机处理数据帧的一种核心行为。当交换机不知道如何将帧转发到特定的目的地时,就会采取这种机制。
#### 1. 核心答案
在帧泛洪过程中,交换机会将接收到的数据帧从**除了接收该帧的端口(源端口)以外的所有激活端口**转发出去。
#### 2. 深度技术原理
要理解泛洪,必须理解交换机的工作原理——**MAC 地址表(MAC Address Table / CAM Table)**。
* **查表过程:** 当一个数据帧进入交换机端口时,交换机会检查该帧的**目的 MAC 地址 (Destination MAC)**。
* **命中 (Hit):** 如果目的 MAC 在表中,交换机执行“点对点”转发。
* **未命中 (Miss):** 如果目的 MAC 不在表中,或者该帧本身就是为了发送给所有人的,交换机就会启动泛洪。
#### 3. 触发帧泛洪的三种场景
在 CCNA 考试中,你需要识别以下三种会导致泛洪的情况:
1. **未知单播帧 (Unknown Unicast):**
* 这是考试最常考的重点。数据帧的目的地是一个具体的 MAC 地址,但交换机的 MAC 地址表中目前没有该地址的记录。
* **目的:** 为了确保目标主机能收到该帧,并希望目标主机回复,从而让交换机“学习”到该 MAC 地址对应的端口。
2. **广播帧 (Broadcast):**
* 目的 MAC 地址为 `FF:FF:FF:FF:FF:FF`。
* 交换机必须将此类帧发送给同一 VLAN 内的所有成员(例如 ARP 请求、DHCP 发现报文)。
3. **组播帧 (Multicast):**
* 目的 MAC 地址为特定的组播范围(例如 `01:00:5E:xx:xx:xx`)。
* 在没有配置 IGMP Snooping 的情况下,交换机会将组播帧当作广播帧进行泛洪处理。
#### 4. 关键规则:水平分割原则 (Split Horizon)
在泛洪过程中,有一个绝对的物理限制:**交换机永远不会将帧发回到接收它的那个端口。**
* **原因:** 这样做是为了防止二层环路,并节省带宽。既然帧是从那个端口进来的,说明发送者已经在那个方向,不需要再传回去。
---
### 专家总结 (考试要点)
在回答此类 CCNA 题目时,请牢记以下逻辑链条:
* **动作:** 复制帧并发送至所有端口(**除了源端口**)。
* **范围:** 仅限于同一个 **VLAN**(广播域)内。
* **对象:** 未知单播 (Unknown Unicast)、广播 (Broadcast)、组播 (Multicast)。
* **目的:** 确保通信的连通性,并触发 MAC 地址学习过程。
**模拟考题选项辨析:**
* ❌ *Forward the frame to all ports.* (错误:漏掉了“除了源端口以外”这个关键限制)
* ✅ *Forward the frame to all ports except the port on which the frame was received.* (正确)
* ❌ *Drop the frame.* (错误:这是丢弃,不是泛洪)
希望这份解析能帮助你深入理解交换机的工作机制!如果对 MAC 地址表或 VLAN 隔离有进一步疑问,欢迎继续提问。