| 268 번 글의 답장글: Re: 게으른 linux 초보가........OP |
| 글쓴이: 산이
[홈페이지]
|
글쓴날: 2000년 10월 13일 00:41:08 금(새벽) |
조회: 1570 |
[미운오리]님이
남기신 글:
>맨날 님의 지식만 빼앗 먹는 게으린 linux 가 돠어서 좌송
합니다
>
>
>--------------------------
>ping 에 관한 여
>
>ping 를 치면
> ip : icmp_seq=0 tt1=21 time=50.2 ms
>이런씩 으로 나오는데요
>
>
>여기서 나오는 숫자 들 이 정확하게 어떤 의미 가 있는 지
> 궁금 하군요
>
>
>죄송합니다 게으른 linux 가 되어서요 ....................
========================================
답변이 또 늦었군요..
빠른 답변을 기대하지 마세요..
요즘 정신이 없거든요...
각설하고..
그냥 간단하게
$ man ping
해보면 알 수 있습니다.
물론 영어이지만 하나하나씩 해석해 봐야하지요..
우선
[icmp_seq=0]
ping 맨페이지에는 나오지 않았지만
대충 ICMP ECHO 메지지를 보내는 순번임을 알 수 있습니다.
기본 크기는 56bytes인데 여기에 헤더 파일인 8bytes를 합해서
기본 64bytes가 됩니다.
[tt1=21]
TTL DETAILS
The TTL value of an IP packet represents the maximum number of IP routers
that the packet can go through before being thrown away. In current
practice you can expect each router in the Internet to decrement the TTL
field by exactly one.
The TCP/IP specification states that the TTL field for TCP packets should
be set to 60, but many systems use smaller values (4.3 BSD uses 30, 4.2
used 15).
The maximum possible value of this field is 255, and most Unix systems
set the TTL field of ICMP ECHO_REQUEST packets to 255. This is why you
will find you can ``ping'' some hosts, but not reach them with
telnet(1)
or ftp(1).
In normal operation ping prints the ttl value from the packet it re
ceives. When a remote system receives a ping packet, it can do one of
three things with the TTL field in its response:
Not change it; this is what Berkeley Unix systems did before the
4.3BSD-Tahoe release. In this case the TTL value in the received
packet will be 255 minus the number of routers in the round-trip
path.
Set it to 255; this is what current Berkeley Unix systems do. In
this case the TTL value in the received packet will be 255 minus the
number of routers in the path from the remote system to the pinging
host.
Set it to some other value. Some machines use the same value for
ICMP packets that they use for TCP packets, for example either 30 or
60. Others may use completely wild values.
중요한 부분은
The maximum possible value of this field is 255, and most Unix systems
set the TTL field of ICMP ECHO_REQUEST packets to 255. This is why you
will find you can ``ping'' some hosts, but not reach them with telnet(1)
or ftp(1).
TTL은 네임서버에서도
설정합니다.
즉 time to live(?) 의 약자인듯..
제가 아는 바로는
라우터를 하나 통과할 때 마다 1씩 감소하는걸로 압니다.
라우터를 통과하지 않은 가까운 호스트에 ping 테스트를 해
보세요..
아마 리눅스에서는 255가 나올것입니다.
(OS 마다 다름)
멀리 외국에 있는 호스트일 경우 이 숫자보다 더 작겠지요..
여기에서 www.apache.org 까지는 230이 나오네요
그 다음
[time=50.2 ms]
ICMP ECHO 메시지가 응답받은 시간을 1/1000 초로 나타낸
수치입니다.
위의 예는 64bytes를 응답답는데 0.05 초가 걸린다는 의미입니다.
이 숫자가 적을수록 네트워크 장애가 덜하다은 의미입니다.
그럼
|
이전글 : 게으른 linux 초보가........
다음글 : [급질문]유동ip로 컴2대 공유,,
|
from 210.123.55.248
JS(Redhands)Board 0.4 +@
|
|