ping명령어에서 TTL 의미...

   조회 15900   추천 0    

안녕하세요

저번주에 Windows Server 2008교육을 들으면서 잠깐 Ping에대해서 들었는데, 자세히 못들어서 잊어버렸습니다.

그래서 구글링 검색결과 아래와 같이 설명을 했는데요.

The TTL is not something they "set".. When you ping an IP address or domain, ping.exe sends out IP packets that start out with a TTL number of 255. As one packet travels through IP routers throughout the Internet, its TTL decrements 1 for each router, so in your case, there are 255-243=12 IP routers between you and WHT.com. The ping from my box to WHT returns a TTL of 246.

And calling TTL a hop counter could be slightly misleading, since "hops" generally are refered to as a physical group of routers and switches, whereas the Time To Live shows you how many routers specifically the packet has gone through. A tracert on Windows to a remote IP or domain may show 10 hops, but a ping following the same path could return 30 "hops" (a TTL of 225). 

As for the limit, Windows ping sends out IP packets with 255 in order for you to diagnose network problems or similar. If the limit was l

ow the packet could "die" before it reached its destination, which is why its limit is maxed out with ping. Can't off the top of my head remember the different limits for ordinary packets on different platforms, but its probably 60 on Windows and I think even 30 on Solaris. 

But anyway, TTL is not a timer per se, its a life-time-timer if you will of the packet itself.


간략하게 보면은 핑명령어를 때리면 원격 서버에 255를 보내고, 중간에 라우터 수에 따라 하나씩 차감이 되어
돌아온다고 설명이 되어있습니다. 그런데 회사내 저희 라우터에 핑을 때리면 127이 나오네요. 라우터가 하나밖에 없는데 말이죠.

아무래도 TTL= Time To Live 가 말하는 숫자의 의미가 다른 뜻으로 있는것 같은데요.

TTL Code Table같은걸 알수 없을까요? 왜 구글링해도 시원한 답이 없을까요 흑흑

나중에 도움이 될것 같아서요 ^^

그럼 좋은하루 되세요 ^^
짧은글 일수록 신중하게.
전근현 2011-02
아 실수했습니다. 제가 핑 주소를 잘 못 넣었네요. 127이 나오는게 아니라 254가 맞습니다. ^^
혹시나 다른 의미가 있으시면 좀 알려주세요 ^^
이현호K 2011-02
우야노 2011-02
TTL 20세....죄송합니다. 전 아직 TTL세대 입니다.(응?)
손지황 2011-02
windows 기반과 linux 기반의 ttl 초기 값은 다른걸로 알고 있습니다.
이를 기반으로 lan과 같은 네트워크 환경에선 해당 pc가 linux기반인지 windows 기반인지도 추정할 수 있습니다.
마찬가지로 device마다 초기 ttl값이 다를 수 있겠죠. router와 같은 장비도 os가 존재하니깐요.
     
김승훈1 2011-02
맞습니다. 다릅니다. 그리고 조정도 가능합니다.
전근현 2011-02
손지황님 맞습니다!! 핑으로 리눅스인지 윈도우인지 알수 있다고 했어요 강사님께서!!!

아 이제 기억이나네요 흑흑

이현호님 링크 감사합니다. ^^

아 김승훈님 조정도 가능하나요? 명령어 한번 봐야겠네요 도움말 흑흑


QnA
제목Page 4610/5718
2015-12   1739239   백메가
2014-05   5207488   정은준1
2017-03   3880   Super64
2023-11   2463   정의석
2023-12   1967   쿤밍
2011-01   9370   백찬용
2020-10   7100   VSPress
2015-02   7515   김건우
2023-12   1391   inquisitive
2013-09   20973   김진영JK
2013-09   5933   디스토리
2023-12   5580   naan
2016-04   9419   ZSNET5
2020-11   13768   그대
2016-04   5308   김영한
2011-02   8325   예관신규식
2011-02   10384   임덕경
2011-02   15901   전근현
2015-02   4991   뭄바이
2019-08   30508   서울I김동수
2011-03   6197   이영규
2024-01   2011   허밍버드