[英]why we need of MAC address for transfer of Datagram?
我是計算機網絡新手,不清楚以下問題。
為什么我們需要 Mac 地址來進行實際的數據傳輸。 為什么不能通過邏輯地址即IP地址傳輸數據包?
IP 從未打算直接封裝到電線上; 你必須有一個較低層的有線協議。 有許多協議用於在線路上封裝數據包,例如 SONET 上的數據包 (POS)、以太網、T1 等...
這些較低層協議稱為RFC 791: The Internet Protocol 的“本地網絡協議”第 2.1 節
2.1. Relation to Other Protocols
The following diagram illustrates the place of the internet protocol
in the protocol hierarchy:
+------+ +-----+ +-----+ +-----+
|Telnet| | FTP | | TFTP| ... | ... |
+------+ +-----+ +-----+ +-----+
| | | |
+-----+ +-----+ +-----+
| TCP | | UDP | ... | ... |
+-----+ +-----+ +-----+
| | |
+--------------------------+----+
| Internet Protocol & ICMP |
+--------------------------+----+
|
+---------------------------+
| Local Network Protocol | <--- Ethernet
+---------------------------+
Protocol Relationships
Figure 1.
Internet protocol interfaces on one side to the higher level
host-to-host protocols and on the other side to the local network
protocol.
以太網 NIC 有自己的地址(即 mac 地址),它允許它辨別幀是否用於該特定 NIC。 IP 有一個稱為ARP協議的合作伙伴協議,它允許您在 IP 地址和適當的以太網地址之間進行映射。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.