월간 인기 게시물

게시물 160건
   
tracert & traceroute 차이
글쓴이 : 최고관리자 날짜 : 2010-05-06 (목) 17:22 조회 : 11712
글주소 :
                          

traceroute가사용하는 원리는 동일하지만 구현방법은 시스템에 따라 차이점이 있으며, 일반적인 Unix 계열및 cisco 계열 라우터의 경우 목적지 시스템의 33434~38000 포트로 TTL 값을 1씩 늘려가면서 udp 패킷을 발송하여 TTL 값의만기(expiration)로 인하여 돌아오는 "ICMP time exceed" 메시지를 이용합니다.
반면 Windows 계열의 tracert 는 목적지 시스템에 TTL값을 1씩 늘려가면서 ICMP echo request 패킷을 발송하여 역시 TTL 값의 만기로 돌아오는 "ICMP time exceed" 메시지를 이용합니다


※ traceroute 옵션

OPTIONS
       The only required parameter is the name or IP address of the destination host. This paremeter can be followed by the size of the probing packet  sent  to  that  host  (40  by
       default).  Varying the size of the packet in conjunction with the -F parameter can be used to obtain information about the MTU of individual network hops. (The size parameter
       is useless for TCP probes).

       Additional options are:
       --help Print help info and exit.

       -4, -6 Explicitly force IPv4 or IPv6 traceouting. By default, the program will try to resolve the name given, and choose the appropriate protocol automatically. If  resolving a host name returns both IPv4 and IPv6 addresses, traceroute will use IPv4.

       -I     Use ICMP ECHO for probes
       -T    Use TCP SYN for probes
       -U    Use UDP datagrams for probes (it is default). Only UDP method is allowed for unprivileged users.

       -d     Enable socket level debugging (when the Linux kernel supports it)
       -F     Set the "Don’t Fragment" bit. This tells intermediate routers not to fragment the packet when they find it’s too big for a network hop’s MTU.
       -f first_ttl
              Specifies with what TTL to start. Defaults to 1.
       -g gateway
              Tells  traceroute to add an IP source routing option to the outgoing packet that tells the network to route the packet through the specified gateway.  Not very useful,
              because most routers have disabled source routing for security reasons.
       -i interface
              Specifies the interface through which traceroute should send packets. By default, the interface is selected according to the routing table.
       -m max_ttl
              Specifies the maximum number of hops (max time-to-live value) traceroute will probe. The default is 30.
       -N squeries
              Specifies the number of probe packets sent out simultaneously.  Sending several probes concurrently can speed up traceroute considerably. The default value is 16.
              Note that some routers and hosts can use ICMP rate throttling. In such a situation specifying too large number can lead to loss of some responses.
       -n     Do not try to map IP addresses to host names when displaying them.
       -p port
              For UDP tracing, specifies the destination port base traceroute will use (the destination port number will be incremented by each probe).
              For ICMP tracing, specifies the initial icmp sequence value (incremented by each probe too).
              For TCP specifies just the (constant) destination port to connect.
       -t tos For IPv4, set the Type of Service (TOS) and Precedence value. Useful values are 16 (low delay) and 8 (high throughput). Note that in order to use some TOS  precendence
              values, you have to be super user.
              For IPv6, set the Traffic Control value.
       -w waittime
              Set the time (in seconds) to wait for a response to a probe (default 5.0 sec).
       -q nqueries
              Sets the number of probe packets per hop. The default is 3.
       -r     Bypass  the  normal  routing tables and send directly to a host on an attached network.  If the host is not on a directly-attached network, an error is returned.  This
              option can be used to ping a local host through an interface that has no route through it.
       -s source_addr
              Chooses an alternative source address. Note that you must select the address of one of the interfaces.  By default, the address of the outgoing interface is used.

       -z sendwait
              Minimal time interval between probes (default 0).  If the value is more than 10, then it specifies a number in milliseconds, else it is  a  number  of  seconds  (float
              point values allowed too).  Useful when some routers use rate-limit for icmp messages.

       -A     Perform AS path lookups in routing registries and print results directly after the corresponding addresses
       -V     Print the version and exit.


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.