国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
traceroute命令詳解

traceroute命令詳解

默認(rèn)分類 2010-04-06 16:50:33 閱讀921 評(píng)論0   字號(hào): 訂閱

定義:

互聯(lián)網(wǎng)中,信息的傳送是通過網(wǎng)中許多段的傳輸介質(zhì)和設(shè)備(路由器,交換機(jī),服務(wù)器,網(wǎng)關(guān)等等)從一端到達(dá)另一端。每一個(gè)連接在Internet上的設(shè)備,如主機(jī)、路由器、接入服務(wù)器等一般情況下都會(huì)有一個(gè)獨(dú)立的IP地址。通過Traceroute我們可以知道信息從你的計(jì)算機(jī)到互聯(lián)網(wǎng)另一端的主機(jī)是走的什么路徑。當(dāng)然每次數(shù)據(jù)包由某一同樣的出發(fā)點(diǎn)(source)到達(dá)某一同樣的目的地(destination)走的路徑可能會(huì)不一樣,但基本上來說大部分時(shí)候所走的路由是相同的。UNIX系統(tǒng)中,我們稱之為Traceroute,MS Windows中為Tracert。 Traceroute通過發(fā)送小的數(shù)據(jù)包到目的設(shè)備直到其返回,來測(cè)量其需要多長(zhǎng)時(shí)間。一條路徑上的每個(gè)設(shè)備Traceroute要測(cè)3次。輸出結(jié)果中包括每次測(cè)試的時(shí)間(ms)和設(shè)備的名稱(如有的話)及其IP地址。

在大多數(shù)情況下,作為網(wǎng)絡(luò)工程技術(shù)人員或者系統(tǒng)管理員會(huì)在UNIX主機(jī)系統(tǒng)下,直接執(zhí)行命令行:

  Traceroute hostname

  而在Windows系統(tǒng)下是執(zhí)行Tracert的命令:

  Tracert hostname

  比如在北京地區(qū)使用windows NT 主機(jī)(已經(jīng)與北京163建立了點(diǎn)對(duì)點(diǎn)的連接后)

  使用NT系統(tǒng)中的Tracert命令:(用戶可用:開始->運(yùn)行,輸入"command" 調(diào)出command窗口使用此命令)traceroute [-46dFITUnrAV] [-f first_ttl] [-g gate,...]
        [-i device] [-m max_ttl] [-p port] [-s src_addr]
        [-q nqueries] [-N squeries] [-t tos]
        [-l flow_label] [-w waittime] [-z sendwait]
        host [packetlen]
traceroute6  [options]
tracert  [options]
tcptraceroute  [options]

說明:
       traceroute  tracks  the route packets take across an IP network on their way to a given host. It utilizes
       the IP protocol’s time to live (TTL) field and attempts to elicit an  ICMP  TIME_EXCEEDED  response  from
       each gateway along the path to the host.

       traceroute6 = traceroute -6
       tracert = traceroute -I
       tcptraceroute = traceroute -T -p 80

選項(xiàng)說明:

      唯一所必須的參數(shù)host是目的主機(jī)的名字或 IP 地址。在這個(gè)參數(shù)之后可以選擇跟上探測(cè)包的大小[packetlen](默認(rèn)是40)。改變包的大小并使用 -F 參數(shù) 可以用于獲得個(gè)別網(wǎng)絡(luò)跳的 MTU 信息。(探測(cè)包大小的參數(shù)對(duì)于TCP探測(cè)來說無(wú)用)。

其余的選項(xiàng) :

       --help 打印幫助信息,并退出。

       -4, -6 顯示地指定使用IPv4或IPv6 traceroute。默認(rèn)情況下,traceroute會(huì)解析給定的主機(jī)名,并自動(dòng)選擇合適的協(xié)議。如果解析主機(jī)名既得到了IPv4的地址,又得到了IPv6的地址,traceroute會(huì)使用IPv4。

       -I     使用ICMP ECHO進(jìn)行探測(cè)。

       -T    使用TCP SYN進(jìn)行探測(cè)。

       -U     使用UDP報(bào)文進(jìn)行探測(cè)(默認(rèn)情況)。對(duì)于無(wú)特權(quán)用戶來說,只允許使用UDP報(bào)文進(jìn)行探測(cè)。

       -d     允許進(jìn)行socket級(jí)別的調(diào)試(當(dāng)Linux kernel支持它的時(shí)候)Enable socket level debugging (when the Linux kernel supports it)

       -F     將“不要分段Don't Fragment”位置位。這將告訴中間路由器不要將該包分段(當(dāng)路由器發(fā)現(xiàn)該探測(cè)包對(duì)于網(wǎng)絡(luò)中MTU來說太大的時(shí)候)

       -f <first_ttl>   
               設(shè)置第一個(gè)檢測(cè)數(shù)據(jù)包的存活數(shù)值TTL的大小。默認(rèn)是1 。

       -g <gateway>   
               告訴traceroute為發(fā)出的packet增加IP源路由選項(xiàng),以此告訴網(wǎng)絡(luò)在路由該packet時(shí)需要通過指定的網(wǎng)關(guān)。不是十分有用,大多數(shù)的路由器因?yàn)榘踩矫娴目紤]將源路由設(shè)置為失效。

       -i <interface>
               指定traceroute發(fā)送包時(shí)經(jīng)過的端口。默認(rèn)的端口是依照路由表選定的。

       -m <max_ttl>
               指定traceroute將要探測(cè)的最大跳數(shù)(最大的生存時(shí)間)。默認(rèn)值為30。

       -N <squeries>
               指定同時(shí)發(fā)送的探測(cè)包數(shù)目。同時(shí)發(fā)送幾個(gè)探測(cè)包可以適當(dāng)?shù)丶涌靦raceroute的速度。默認(rèn)值為15。注意:有些路由器和主機(jī)會(huì)使用ICMP速率限制,在這種情況下,指定同時(shí)發(fā)送大量的探測(cè)包會(huì)導(dǎo)致一些響應(yīng)丟失。

       -n     顯示的時(shí)候無(wú)需將IP地址和主機(jī)名相對(duì)應(yīng)。直接使用IP地址而非主機(jī)名稱。

       -p <port>
               使用UDP的跟蹤,基礎(chǔ)的traceroute會(huì)使用指定的目的端口(每個(gè)探測(cè)包的目的端口號(hào)會(huì)遞增)。
               使用ICMP跟蹤,指定初始的icmp序列號(hào)(每個(gè)探測(cè)包遞增)。
               使用TCP跟蹤,指定要連接的端口號(hào)(常數(shù))

       -t <tos>
               對(duì)于IPv4,設(shè)置服務(wù)類型(Type of Service,TOS)及優(yōu)先值。有用的數(shù)值有16(低延遲)和8(高吞吐量)。注意在使用某些TOS優(yōu)先值時(shí),你必須是超級(jí)用戶。
              對(duì)于IPv6,設(shè)置流量控制值。

       -w <waittime>
               設(shè)置對(duì)探測(cè)包響應(yīng)的等待時(shí)間(秒),默認(rèn)值是5秒。

       -q <nqueries>
               設(shè)置每一跳的探測(cè)包數(shù)量。默認(rèn)是3 。

       -r     忽略普通的路由表,直接發(fā)送到所在網(wǎng)絡(luò)(attacked network)的遠(yuǎn)端主機(jī)上。如果該主機(jī)不是直接附在網(wǎng)絡(luò)(directly-attached network)中,會(huì)返回一個(gè)錯(cuò)誤。該選項(xiàng)可用于ping一個(gè)本地主機(jī),而該主機(jī)所經(jīng)過的端口沒有路由。

-s <source_addr>
       設(shè)置本地主機(jī)發(fā)出數(shù)據(jù)包的地址。注意你必須選擇某一端口的地址,這個(gè)地址就是發(fā)出數(shù)據(jù)包的端口所使用的。

-z <sendwait>
       探測(cè)包之間最小的時(shí)間間隔(默認(rèn)值為0)。如果該值大于10,則它指定的為毫秒,否則,它指定的為秒(允許使用浮點(diǎn)數(shù))。當(dāng)某些路由器對(duì)ICMP報(bào)文實(shí)行速率限制時(shí)有用。

-A     在路由注冊(cè)中查找AS path,并將結(jié)果直接打印在相應(yīng)的地址后面

-V     打印出版本并退出。

       This program attempts to trace the route an IP packet would follow to some internet host by  launching  a
       probe  packets  with  a  small ttl (time to live) then listening for an ICMP "time exceeded" reply from a
       gateway.  We start our probes with a ttl of one and increase by one until we get an ICMP  "port  unreach-
       able"  (or  TCP reset), which means we got to "host", or hit a max (which defaults to 30 hops). Three (by
       default) probes are sent at each ttl setting and a line is printed showing the ttl, address of the  gate-
       way and round trip time of each probe.  If the probe answers come from different gateways, the address of
       each responding system will be printed.  If there is no response within a 5.0 (default) seconds, a "*" is
       printed for that probe.

       We  don’t want the destination host to process the UDP probe packets so the destination port is set to an
       unlikely value (you can change it with the -p flag). There is no such problem for ICMP or TCP  tracerout-
       ing (for TCP we close sessions immediately after connect).

       After  the  time  some  additional  annotation  can  be printed: !H, !N, or !P (host, network or protocol
       unreachable), !S (source route failed), !F (fragmentation  needed),  !X  (communication  administratively
       prohibited),  !V  (host precedence violation), !C (precedence cutoff in effect), or !<num> (ICMP unreach-
       able code <num>).  If almost all the probes result in some kind of unreachable, traceroute will  give  up
       and exit.

SEE ALSO
       ping(8), ping6(8), tracepath(8), netstat(8).

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
每天一個(gè)linux命令(55):traceroute命令
traceroute命令的用法實(shí)例分享
網(wǎng)絡(luò)中經(jīng)常接觸的Ping 一次性教你弄懂如何檢測(cè)三層網(wǎng)絡(luò)
協(xié)議森林06 瑞士軍刀 (ICMP協(xié)議)
Tracert命令詳解
試試這個(gè)命令,比ping還好用
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服