Question #44
DRAG DROP -
Drag and drop the application protocols from the left onto the transport protocols that it uses on the right.
English
This question tests your knowledge of common application layer protocols and the transport layer protocols (TCP or UDP) they utilize. Understanding why an application chooses TCP or UDP is fundamental in networking.
Let's break down each application protocol:
### Technical Terms Explained
* **Application Protocol:** These are rules (protocols) that applications use to exchange data with each other. Examples include HTTP for web browsing, FTP for file transfer, SMTP for email, etc. They operate at the Application Layer of the TCP/IP model.
* **Transport Protocol:** These protocols are responsible for end-to-end communication between processes (applications) on different hosts. They manage how data segments are transmitted and received. The two main transport protocols in the TCP/IP suite are TCP and UDP.
* **TCP (Transmission Control Protocol):**
* **Connection-oriented:** Establishes a connection (a "handshake") before sending data and tears it down afterward.
* **Reliable:** Guarantees delivery of data. It retransmits lost packets and acknowledges received ones.
* **Ordered:** Ensures data segments arrive in the correct order.
* **Error-checked:** Detects and handles errors in transmission.
* **Flow control:** Manages the rate of data transmission to prevent overwhelming the receiver.
* **Congestion control:** Manages the rate of data transmission to avoid network congestion.
* **Overhead:** Has more overhead due to its reliability features.
* **Use Cases:** Applications where data integrity, order, and reliability are paramount (e.g., file transfer, email, web browsing, secure remote access).
* **UDP (User Datagram Protocol):**
* **Connectionless:** Sends data without establishing a connection first.
* **Unreliable:** Does not guarantee delivery, order, or error-checking at the transport layer. It's "best-effort" delivery.
* **Lower overhead:** Faster due to fewer features and less processing.
* **Use Cases:** Applications where speed and low latency are more important than absolute reliability, or where reliability is handled at the application layer (e.g., streaming audio/video, DNS queries, VoIP, some network management).
* **Port Numbers:** These are logical addresses used by applications to uniquely identify different services running on a single host. When a transport protocol delivers data, it uses the port number to send it to the correct application.
---
### Detailed Analysis of Each Protocol
1. **DHCP (Dynamic Host Configuration Protocol)**
* **Purpose:** Automatically assigns IP addresses, subnet masks, default gateways, and other network configuration parameters to devices on a network.
* **Why UDP?** DHCP needs to work quickly and often involves broadcast messages (when a client first joins a network and doesn't have an IP address yet). The discovery process doesn't require the strict reliability and connection setup of TCP. If a DHCP offer is lost, the client can simply re-request. Speed and efficiency are prioritized.
* **Common Ports:** UDP ports 67 (server) and 68 (client).
* **Mapping:** `DHCP` -> `UDP`
2. **FTP (File Transfer Protocol)**
* **Purpose:** Transfers files between a client and a server.
* **Why TCP?** When transferring files, it's absolutely critical that the file arrives completely, correctly, and in the right order. Losing even a single byte or having it out of order could corrupt the entire file. TCP's reliability, error-checking, and flow control mechanisms are essential for this task. FTP uses two TCP connections: one for control (commands) and one for data (the actual file transfer).
* **Common Ports:** TCP ports 20 (data) and 21 (control).
* **Mapping:** `FTP` -> `TCP`
3. **SMTP (Simple Mail Transfer Protocol)**
* **Purpose:** Sends and receives email messages between mail servers, and sends email from a client to a server.
* **Why TCP?** Just like file transfer, email delivery needs to be reliable. Messages must arrive intact, complete, and in the correct order. Losing an email or having it corrupted would be unacceptable. TCP provides the necessary reliability for this critical communication.
* **Common Port:** TCP port 25.
* **Mapping:** `SMTP` -> `TCP`
4. **SSH (Secure Shell)**
* **Purpose:** Provides a secure way to access a computer remotely, execute commands, and transfer files securely over an unsecured network.
* **Why TCP?** SSH establishes an interactive, secure, and reliable connection between a client and a server. When you type commands, you expect them to be sent, executed, and the output to be displayed accurately and in order. File transfers via SSH (like SCP or SFTP) also require high reliability. TCP is perfectly suited for this, ensuring data integrity and session continuity.
* **Common Port:** TCP port 22.
* **Mapping:** `SSH` -> `TCP`
5. **SNMP (Simple Network Management Protocol)**
* **Purpose:** Used for monitoring and managing network devices (routers, switches, servers, etc.). A network management station can query device agents to retrieve information or receive alerts (traps) from them.
* **Why UDP?** SNMP typically prioritizes efficiency and low overhead, especially when constantly polling many devices or sending frequent traps. While some critical traps might benefit from reliability, the protocol often relies on UDP. The management system can re-poll for data if a response is lost, or the application layer can implement its own limited reliability. For SNMP operations, the occasional loss of a query or a non-critical response is acceptable for the benefit of speed and reduced overhead on potentially busy devices.
* **Common Ports:** UDP ports 161 (manager to agent) and 162 (agent to manager - traps).
* **Mapping:** `SNMP` -> `UDP`
6. **TFTP (Trivial File Transfer Protocol)**
* **Purpose:** A very simple, connectionless file transfer protocol. Often used for booting diskless workstations, transferring configuration files to network devices (like routers and switches), or firmware upgrades.
* **Why UDP?** As its name implies ("Trivial"), TFTP is designed to be lightweight and simple, lacking the authentication, directory browsing, and robustness of FTP. It uses UDP because it's typically used in situations where the network is relatively stable and reliable, or where the application itself can handle simple retransmissions (which TFTP does at its own layer). The overhead of TCP's connection setup and reliability features would be counterproductive to TFTP's goal of simplicity and speed for small, quick transfers.
* **Common Port:** UDP port 69.
* **Mapping:** `TFTP` -> `UDP`
### Correct Mapping Summary
Here's how the protocols should be dragged and dropped:
* **DHCP** -> **UDP**
* **FTP** -> **TCP**
* **SMTP** -> **TCP**
* **SSH** -> **TCP**
* **SNMP** -> **UDP**
* **TFTP** -> **UDP**
This question is a common and important one in networking exams, as it tests your understanding of the fundamental differences between TCP and UDP and how these differences influence application protocol design.
日本語
CCNA試験において、アプリケーション層プロトコルがどのトランスポート層プロトコル(TCPまたはUDP)を使用するかを理解することは、非常に重要かつ基礎的な知識です。
以下に、ドラッグ&ドロップ問題で想定される主要なプロトコルの分類と、ネットワークエンジニアの視点による詳細な解析をまとめます。
---
### 1. 回答対応表
| アプリケーションプロトコル | トランスポート層プロトコル | ポート番号 | 特徴 |
| :--- | :--- | :--- | :--- |
| **HTTP / HTTPS** | **TCP** | 80 / 443 | データの確実な到達が必要(Web閲覧) |
| **FTP** | **TCP** | 20, 21 | ファイル転送の信頼性を確保 |
| **SSH / Telnet** | **TCP** | 22 / 23 | リモート管理における正確なコマンド送信 |
| **SMTP** | **TCP** | 25 | メールの不達を防ぐための信頼性重視 |
| **TFTP** | **UDP** | 69 | シンプルで高速な転送(オーバーヘッド小) |
| **SNMP** | **UDP** | 161, 162 | ネットワーク監視のリアルタイム性重視 |
| **DHCP** | **UDP** | 67, 68 | IPアドレス配布時の低遅延・シンプルさ |
| **DNS** | **Both (TCP/UDP)** | 53 | 通常のクエリはUDP、ゾーン転送等はTCP |
---
### 2. 詳細解析:なぜそのプロトコルを選ぶのか?
ネットワークエンジニアとして、単なる暗記ではなく「なぜそのトランスポートプロトコルが選ばれているのか」という設計思想を理解することが合格への近道です。
#### A. TCP (Transmission Control Protocol) を使用するグループ
**キーワード:信頼性、順序制御、再送制御**
* **HTTP/HTTPS, FTP, SMTP:** これらのプロトコルは、データの一部でも欠けるとWebページが正しく表示されなかったり、ファイルやメールが破損したりします。そのため、スリーウェイ・ハンドシェイクによって接続を確立し、エラー訂正を行うTCPが必須となります。
* **SSH/Telnet:** 管理者がルータに設定を投入する際、コマンドの文字が欠落することは許されません。確実な対話型通信のためにTCPが使用されます。
#### B. UDP (User Datagram Protocol) を使用するグループ
**キーワード:高速性、低オーバーヘッド、リアルタイム性**
* **TFTP:** FTPと異なり、確認応答やウィンドウ制御を省略して「とにかくシンプルに送る」ことを目的としています。ルータのOS(IOS)イメージのバックアップなどで使われます。
* **SNMP:** 多数の機器を監視する場合、TCPのようなコネクション確立の負荷を避ける必要があります。また、ネットワークが混雑している際でも、パケットを投げっぱなしにできるUDPの方が効率的です。
* **DHCP:** クライアントがIPアドレスを持っていない段階で通信を開始するため、複雑なコネクションを必要としないUDPが適しています。
#### C. 特殊なケース:DNS
* **DNS (Domain Name System):**
* **UDP:** 通常の名前解決(クライアントからの問い合わせ)は、速度重視でUDP 53番を使用します。
* **TCP:** ゾーン転送(サーバー間での大規模なデータ同期)や、応答サイズが512バイトを超える場合は、信頼性を担保するためにTCP 53番を使用します。
* *試験対策:* 基本的に「Both」または「UDP」として分類されることが多いですが、両方の性質を持つことを覚えておきましょう。
---
### 3. 試験攻略のポイント
1. **「信頼性が必要か?」を考える:**
データが1ビットも間違えてはいけないもの(Web、メール、ファイル、遠隔操作)は **TCP** です。
2. **「スピードや軽さが優先か?」を考える:**
少量のデータを素早く送りたい、またはリアルタイム性が重要なもの(音声、映像、簡易転送、監視)は **UDP** です。
3. **ポート番号とセットで覚える:**
CCNAでは「プロトコル名 - ポート番号 - TCP/UDP」の3点セットが頻出です。
この分類をマスターすることで、ACL(アクセス制御リスト)の設定問題やトラブルシューティング問題にも対応できるようになります。頑張ってください!
繁體中文
這是一題 CCNA(Cisco Certified Network Associate)認證考試中非常經典的 **Drag and Drop(拖放題)**,主要考核考生對於 **OSI 模型第四層(傳輸層)與第七層(應用層)** 之間對應關係的掌握程度。
身為網路工程師,理解這些協議的工作原理是排錯與網路設計的基礎。以下是針對此考題的專業解析:
---
### 📋 考題核心知識點:TCP vs. UDP
在傳輸層中,主要的兩個協議是 **TCP (Transmission Control Protocol)** 與 **UDP (User Datagram Protocol)**。
* **TCP (連線導向)**:提供可靠傳輸、錯誤檢查、流量控制與數據排序。適用於不容許資料遺失的應用。
* **UDP (非連線導向)**:提供低延遲、快速傳輸,但不保證資料到達。適用於即時性強或小數據交換的應用。
---
### 🛠 協議分類對應表
根據常見的 CCNA 考題內容,以下是應用層協議與傳輸層的標準對應關係:
| 應用層協議 (Application) | 傳輸層協議 (Transport) | 預設通訊埠 (Port) | 說明 |
| :--- | :--- | :--- | :--- |
| **HTTP** | **TCP** | 80 | 網頁瀏覽,需確保資料完整。 |
| **HTTPS** | **TCP** | 443 | 加密網頁瀏覽,需可靠連線。 |
| **FTP** | **TCP** | 20, 21 | 檔案傳輸,絕不能有位元錯誤。 |
| **SSH** | **TCP** | 22 | 遠端安全管理,需穩定指令傳輸。 |
| **Telnet** | **TCP** | 23 | 遠端管理(明碼)。 |
| **SMTP** | **TCP** | 25 | 郵件傳送,需確保郵件內容完整。 |
| **TFTP** | **UDP** | 69 | 簡單檔案傳輸,無視窗機制,追求極簡。 |
| **SNMP** | **UDP** | 161, 162 | 網路管理,小封包輪詢,減少網路負擔。 |
| **DNS** | **Both (TCP/UDP)** | 53 | **查詢**使用 UDP,**區域轉送**使用 TCP。 |
| **DHCP** | **UDP** | 67, 68 | 動態主機配置,廣播機制。 |
| **VoIP (SIP/RTP)** | **UDP** | 5060 / 變動 | 語音通訊,強調即時性,容許少量丟包。 |
---
### 🔍 深度解析:為什麼這樣選?
#### 1. 為什麼 SSH/HTTP/FTP 使用 TCP?
這些應用程式都有一個共同點:**資料完整性高於一切**。
* 如果你在下載一個軟體(FTP)或查看網頁(HTTP),遺失任何一個封包都會導致檔案損毀或網頁亂碼。
* TCP 的「三向交握」(Three-way Handshake)確保了連線的建立,且具備重傳機制(Retransmission)。
#### 2. 為什麼 TFTP/SNMP/DHCP 使用 UDP?
這些應用程式追求的是 **低開銷(Low Overhead)與速度**。
* **TFTP**:通常用於區域網路內傳送設備韌體,設計極其簡單,不需複雜的 TCP 狀態機。
* **SNMP**:網管系統會頻繁詢問數百台設備的狀態,若使用 TCP 會造成設備 CPU 負擔過重及網路壅塞。
* **DHCP**:用戶端在還沒有 IP 位址時,必須透過廣播來尋找伺服器,UDP 的特性非常適合這種「投遞後即忘」的行為。
#### 3. DNS 的特殊性(考試陷阱)
在 CCNA 考題中,如果選項中 DNS 只能選一個,通常優先選 **UDP**(因為一般的網域名稱查詢都是 UDP 53)。但專業工程師必須知道,當回應資料超過 512 Bytes 或進行 Zone Transfer(區域轉送)時,DNS 會切換到 **TCP**。
---
### 💡 考試解題技巧
在拖放題中,請記住以下口訣:
1. **「要穩定的、長連線的、不能錯的」** $\rightarrow$ 拖到 **TCP**。
2. **「要快的、即時的、小封包的、廣播的」** $\rightarrow$ 拖到 **UDP**。
3. **常考易混淆點**:
* **TFTP** 是 **UDP** (不要跟 FTP 搞混)。
* **SNMP** 是 **UDP** (監控流量不能佔用太多頻寬)。
* **SSH/Telnet** 是 **TCP** (遠端操作必須精確)。
這類題目是 CCNA 的送分題,只要記住 Port 號與協議特性,就能輕鬆拿分。
简体中文
你好,我是你的 Cisco 网络技术专家。针对这道 CCNA 经典的 **拖放题(Drag and Drop)**,其核心考点是 OSI 模型中**应用层协议(Application Layer)**与**传输层协议(Transport Layer)**的映射关系。
在 CCNA 考试中,正确区分哪些协议使用 **TCP(传输控制协议)**,哪些使用 **UDP(用户数据报协议)** 是基础且必考的内容。
以下是针对该考题的专业深度解析:
---
### 📋 考题分类快速对照表
通常此类题目左侧会给出以下协议,右侧为 TCP 和 UDP 两个分类。以下是标准归类:
| 应用层协议 | 传输层协议 (Transport) | 默认端口号 | 主要特点 |
| :--- | :--- | :--- | :--- |
| **HTTP / HTTPS** | **TCP** | 80 / 443 | 网页浏览,需要可靠传输 |
| **FTP** | **TCP** | 20 / 21 | 文件传输,要求数据完整性 |
| **SSH / Telnet** | **TCP** | 22 / 23 | 远程管理,需建立稳定会话 |
| **SMTP / POP3 / IMAP** | **TCP** | 25 / 110 / 143 | 电子邮件,不允许邮件内容丢失 |
| **DNS** | **UDP (主要) / TCP** | 53 | 查询使用 UDP,区域传输使用 TCP |
| **TFTP** | **UDP** | 69 | 简单文件传输,无确认机制,速度快 |
| **DHCP** | **UDP** | 67 / 68 | 动态主机配置,低延迟广播通信 |
| **SNMP** | **UDP** | 161 / 162 | 网络管理,减少对带宽的占用 |
| **VoIP (RTP)** | **UDP** | 16384-32767 | 实时语音/视频,对延迟敏感 |
---
### 🔍 深度解析:为什么这样选?
作为网络工程师,我们不仅要死记硬背,更要理解其背后的**设计逻辑**:
#### 1. 为什么这些协议选择 TCP?
* **核心关键词:可靠性(Reliability)。**
* **TCP 特性:** 三次握手、序列号确认、重传机制、流量控制。
* **应用场景:** 当应用层要求数据必须“一个位都不能错”且“按顺序到达”时,必须使用 TCP。
* 例如:**HTTP/HTTPS** 如果丢失数据包,网页会显示乱码;**FTP** 如果丢失数据包,文件会损坏无法解压。
#### 2. 为什么这些协议选择 UDP?
* **核心关键词:效率与实时性(Efficiency & Real-time)。**
* **UDP 特性:** 无连接、头部开销小(仅 8 字节)、不保证送达。
* **应用场景:**
* **低开销:** **DNS** 查询通常非常小,如果用 TCP 握手会产生巨大的额外开销。
* **容错性:** **VoIP (RTP)** 语音通话中,丢掉一两个采样包只会导致轻微杂音,但如果用 TCP 重传,会导致通话严重滞后(延迟),这在实时通信中是不可接受的。
* **简单化:** **TFTP** 常用于设备启动时加载固件,其代码实现非常简单,适合嵌入式系统。
#### 3. 特殊案例:DNS
* **面试/考试陷阱:** DNS 实际上**同时使用 TCP 和 UDP**。
* **UDP 53:** 用于客户端的域名解析查询(速度快)。
* **TCP 53:** 用于 DNS 服务器之间的区域传输(Zone Transfer),因为数据量大且需要保证完整性。
* *在 CCNA 基础拖放题中,若只能选一个,通常将 DNS 归类为 **UDP**。*
---
### 💡 CCNA 考试避坑指南
1. **分清 FTP 与 TFTP:** 名字很像,但 FTP 是 TCP(可靠),TFTP 是 UDP(简单)。
2. **网管协议:** SNMP 监控成百上千台设备,为了不给网络增加负担,它使用 UDP。
3. **记住端口号:** 拖放题有时会混入端口号考察。建议背诵:20/21(FTP), 22(SSH), 23(Telnet), 25(SMTP), 53(DNS), 67/68(DHCP), 69(TFTP), 80(HTTP), 110(POP3), 161(SNMP), 443(HTTPS)。
---
**总结建议:**
在进行拖放操作时,先确定 **TFTP、SNMP、DHCP、DNS** 属于 **UDP**,其余常见的办公/网页/远程登录协议几乎全部属于 **TCP**。
希望这份解析能帮助你彻底掌握这个考点!如果对特定协议有疑问,欢迎继续提问。