Network Layer
ICMP
Internet Control Message
ICMP is used for communicating with hosts and router.
There are two types of usage.
- error report
- query message for dianosing network problems
Error report
- discard packet
- destination is not in routing table
- time exceeded; TTL is equal 1
- source quench
- parameter issue
- redirection
Content
- 8bytes is transport layer header
- IP header following ICMP header is datagram received by router
prior IP packet
- IP header + data(8bytes + rest)
add ICMP header
- ICMP header + IP header + data(8bytes + rest)
and then, add IP header
- IP header + ICMP header + IP header + data(8bytes + rest)
Query message
- echo request and reply; Ex> ping command
- etc..
ICMP type and code table
There are two application, ping and traceroute using ICMP packet.
'컴퓨터과학' 카테고리의 다른 글
[전공 복습] 1-2. 운영체제 (1) | 2024.03.13 |
---|---|
[전공 복습] 1-1. 운영체제 (1) | 2024.03.13 |
[운영체제] 프로세스 동기화 (1) | 2024.03.12 |
파이썬 정리 (2) (1) | 2024.01.07 |
파이썬 정리 (1) (0) | 2024.01.07 |