/ Foundations / Core Concepts / ICMP Echo Requests.md
ICMP Echo Requests.md
 1  ## ICMP (Internet Control Message Protocol)
 2  
 3  **What it does:**
 4  ICMP is a network protocol used by devices to send error messages and operational information about network conditions. Think of it as the "network troubleshooting" protocol.
 5  
 6  **Why it's needed:**
 7  - IP (Internet Protocol) doesn't have its own mechanism for error reporting.
 8  - ICMP fills this gap, providing feedback on network connectivity and issues.
 9  
10  **How it works:**
11  - ICMP messages are encapsulated within IP datagrams.
12  - Common ICMP message types include:
13      - **Echo request/reply (ping):** Used to test connectivity between devices.
14      - **Destination unreachable:** Indicates that a destination host or network is unreachable.
15      - **Time exceeded:** Sent when a datagram's time-to-live ([[TTL]]) expires.
16  
17  **Key points:**
18  - Operates at Layer 3 (Network Layer) of the [[OSI]] model.
19  - Essential for network diagnostics and troubleshooting.
20  - Can be used for malicious purposes, such as ICMP flood attacks (ping floods).