C.W.K.
Stream
Lesson 02 of 13 · published

traceroute & mtr

~15 min · traceroute, mtr, hops, path-tracing

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

Path 따라가기, hop by hop

traceroute 가 너랑 도착지 사이 모든 라우터 (hop) 를 hop 별 왕복 시간과 함께 출력. 의도적으로 낮은 TTL 패킷 보내서 동작 — TTL=1 이 첫 라우터에서 만료, 라우터가 ICMP "time exceeded" 보냄. TTL=2 가 두 번째에서 만료, 등등. 각 "time exceeded" 가 그 hop 누구인지 알려줌.

Hop 의 별표 (* * *) 는 그 라우터가 probe 답 안 했다는 뜻. 보통 ICMP probe 조용히 drop 또는 rate-limit 설정 — 문제 X. 진짜 패킷 손실은 여러 연속 hop 에서 답 빠짐으로 나타남.

mtr — 피드백 있는 traceroute

mtr 이 진짜 원하는 거. ping 과 traceroute 를 라이브 업데이트 표시로 결합 — 모든 hop, 지속 업데이트되는 손실 % 와 평균 latency. "이 도착지 느낌이 느려" 진단의 유일한 유용 도구 — 어느 hop 이 latency 나 손실 도입하는지 정확히 봄.

Code

traceroute 와 mtr·bash
# Plain traceroute
traceroute github.com

# Use ICMP instead of UDP probes (more friendly through some firewalls)
sudo traceroute -I github.com

# mtr — live, accumulating stats
brew install mtr   # macOS
mtr github.com

# Non-interactive snapshot — what you paste into bug reports
mtr --report -c 100 github.com

# Same with explicit columns
mtr --report --report-cycles 100 --no-dns github.com

External links

Exercise

mtr 설치 (brew install mtr). mtr github.com 돌리고 ~30 사이클 누적되게. Hop 1 (네 gateway), 첫 ISP hop, 도착지 식별. 의미 있는 손실 hop 메모. 그다음 mtr --report -c 100 github.com 정적 스냅샷 — 지원 티켓 첨부할 그것.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.