下载
加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 ping的高级用法(网络检查)(Advanced usage Ping &#40…

ping的高级用法(网络检查)(Advanced usage Ping (network check)).doc

ping的高级用法(网络检查)(Advance…

慢慢懂人已不再
2018-08-05 0人阅读 举报 0 0 暂无简介

简介:本文档为《ping的高级用法(网络检查)(Advanced usage Ping (network check))doc》,可适用于社会民生领域

ping的高级用法(网络检查)(AdvancedusagePing(networkcheck))ping的高级用法(网络检查)(AdvancedusagePing(networkcheck))AdvancedusageofPingFortheWindowsunderthepingcommandIbelievewearefamiliarwith,butthePingcanfunctiontomostpeopleisnotalot,ofcourse,I'mnotsayingthatIcanmakethemostofthePing,IalsojustoftenusePingthistool,alsosummarizessomeexperience,andnowsharewithyouNowI'llrefertothehelpinstructionsforthepingcommandtotellyouaboutthetechniquesI'llusewhenI'musingPingPingisonlyinstalledTheTCPIPprotocolwillbeavailablelater:Pingtancountllengthfittlvtosrcountscountjcomputerlist,kcomputerlistwtimeoutdestinationlistOptions:t,Ping,the,specified,host,stoppedTo,see,statistics,and,continuetype,ControlBreak,To,stoptype,until,ControlCKeepthePinglocalhostupuntilyoupressControlCThereisnospecialtechniqueforthisfunction,butitcanbeusedinconjunctionwithotherparameters,asmentionedbelowa,Resolve,addresses,to,hostnamesResolutioncomputerNetBiosnameExample:C:,>pingaPinging,icebloodyoforcom,,with,,bytes,of,data:Reply,from,:,bytes=,time<ms,TTL=Reply,from,:,bytes=,time<ms,TTL=Reply,from,:,bytes=,time<ms,TTL=Reply,from,:,bytes=,time<ms,TTL=Pingstatisticsfor:Packets:,Sent=,Received=,Lost=(,loss),Approximate,round,trip,times,in,milliseconds:Minimum=ms,Maximum=ms,Average=msFromaboveyoucanseethatIPisandthecomputerNetBiosiscalledicebloodyoforcomn,count,Number,of,echo,requests,to,sendSendcountthespecifiednumberofEchopacketsBydefault,usuallyonlysendfourpacketsthroughthiscommandcansendthenumberoftheirowndefinition,isveryhelpfultomeasurethespeedofthenetwork,forexample,howmuchIwanttotestforsendingpacketsbacktotheaveragetime,howmuchisthefastesttime,theslowesttimeishowmuchyoucangetthroughthefollowing:C:,>pingnPingingwithbytesofdata:Reply,from,:,bytes=,time=ms,TTL=Reply,from,:,bytes=,time=ms,TTL=Reply,from,:,bytes=,time=ms,TTL=RequesttimedoutReply,from,:,bytes=,time=ms,TTL=replyfrom:bytes=time=msttl=pingstatisticsfor:packet:sent=,received=,lost=(loss),approximateroundtriptimesinmillisecondsminimum=ms,maximum=ms,average=ms从以上我就可以知道在给发送个数据包的过程当中,返回了个,其中有两个由于未知原因丢失,这个数据包当中返回速度最快为ms,最慢为ms,平均速度为mslsizesendbuffersize定义echo数据包大小在默认的情况下windows的ping发送的数据包大小为byt,我们也可以自己定义它的大小,但有一个大小的限制,就是最大只能发送byt,也许有人会问为什么要限制到byt,因为windows系列的系统都有一个安全漏洞(也许还包括其他系统)就是当向对方一次发送的数据包大于或等于时,对方就很有可能挡机,所以微软公司为了解决这一安全漏洞于是限制了ping的数据包大小虽然微软公司已经做了此限制,但这个参数配合其他参数以后危害依然非常强大,比如我们就可以通过配合t参数来实现一个带有攻击性的命令:c:,>pingthetpingingwithbytesofdatareplyfrom:bytes=time<msttl=replyfrom:bytes=time<msttl=这样它就会不停的向计算机发送大小为byt的数据包,如果你只有一台计算机也许没有什么效果,但如果有很多计算机那么就可以使对方完全瘫痪,我曾经就做过这样的试验,当我同时使用台以上计算机ping一台winpro系统的计算机时,不到分钟对方的网络就已经完全瘫痪,网络严重堵塞,http和ftp服务完全停止,由此可见威力非同小可fsetdon'tfragmentflaginpacket在数据包中发送"不要分段"标志在一般你所发送的数据包都会通过路由分段再发送给对方,加上此参数以后路由就不会再分段处理ittltimetolive指定ttl值在对方的系统里停留的时间此参数同样是帮助你检查网络运转情况的vhrttypeofservice将"服务类型"字段设置为hrt指定的值rcountrecordrouteforcounthops在"记录路由"字段中记录传出和返回数据包的路由在一般情况下你发送的数据包是通过一个个路由才到达对方的ButwhatroutediditgothroughTheparameterscanbesetthroughtherouteyouwanttodetectanumber,buttherestrictionsin,thatistosayyoucanonlytracktotheroute,ifyouwanttodetectmore,canbeachievedthroughotherorders,IwilllaterinthepapertoexplaintoyouHerearesomeexamples:C:,>pingnr(sendapacket,themostrecordedrouting)Pingingwithbytesofdata:Reply,from,:,bytes=,time=ms,TTL=Route:>>>>>>>>Pingstatisticsfor:Packets:,Sent=,Received=,Lost=(,loss),Approximate,round,trip,times,in,milliseconds:Minimum=ms,Maximum=ms,Average=msFromaboveIcanseethatfrommycomputerto,Ihavepassedthe,,,,routess,count,Timestamp,for,count,hopsSpecifiesthetimestampofthehopcountspecifiedbycountThisparameterissimilartor,exceptthatthisparameterdoesnotrecordtheroutereturnedbythepacket,andrecordsonlyatmostj,hostlist,Loose,source,route,along,hostlistRoutingpacketsusingthecomputerlistspecifiedbycomputerlistAcontinuouscomputercanbeseparatedbyanintermediategateway(routingsparsesources),andthemaximumnumberofIPallowedisk,hostlist,Strict,source,route,along,hostlistRoutingpacketsusingthecomputerlistspecifiedbycomputerlistAcontinuouscomputercannotbeseparatedbyanintermediategateway(routingstrictsources),andthemaximumnumberallowedbyIPisw,timeout,Timeout,in,milliseconds,to,wait,for,reply,eachSpecifiesatimeoutinterval,inmillisecondsTherearenoothertricksforthisparameterOtherskills:pingcommandingeneralcanpingeachotherletthemreturntoyourTTLvaluesystem,determinethetypeofthetargethostisroughlyWindowsseriesorUNIXLinuxseries,TTLreturnsageneralseriesofWindowssysteminvaluebetween,andreturnstheTTLvalueofthesystemofUNIXLinuxseriesofcourse,inbetween,thevalueofTTLontheothersideofthehostcanbemodified,Windowsseriescanmodifytheregistrykeytoachievethefollowing:HKEYLOCALMACHINESYSTEMCurrentControlSetServicesTcpipParameters"DefaultTTL"=dword:ffFFWell,thepingcommandisbasicallymyCOPYcameover,whatdoubtsonthethreadThePINGparameter(reproduced)PingparameteraconvertsthemachineIDofthetargettotheIPaddresstiftheuserisnotinterrupted,thePingwillcontinuetogodownTheccountrequiresthepingcommandtosendpacketscontinuouslyuntilthecountrequestissentandreceiveddopensthedebugstateforthesocketyouusefisaquickwaytopingThespeedofthePingoutputpacketisasfastasthepacketreturnedfromtheremotehost,orfaster,uptotimespersecondInthisway,eachrequestisrepresentedbyadotPrintaspacebarforeachresponseisecondshasacertainnumberofsecondsbetweentwopackettransfersCannotbeusedwithfnusesonlydigitalmodeIngeneral,PingattemptstotranslateIPaddressesintohostnamesThisoptionrequiresPingtoprinttheIPaddressinsteadoflookingforasymbolicnameThisoptionisimportantifyoucannotusethelocalDNSserverforsomereasonppatternsupportallowsyoutoidentifypadbyteswiththisoptionandaddthesebytesintothepacketThisoptionisveryusefulwhendiagnosingerrorsrelatedtodatainthenetworkqenablesPingtoprintonlysummaryinformationatthebeginningandattheendRaddstheICMPRECORDROUTEoptiontotheECHOREQUESTpacketandrequiresthattherouteberecordedinthepacketsothatwhenthedataisreturned,thePingcanprinttheroutinginformationEachpacketcanonlyrecordroutingnodesManyhostsignoreorabandonthisoptionrbypassesthepingcommandbyroutingthenormalroutingtableforsendingpacketsspacketsizeenablesuserstoidentifythenumberofbytestosenddataThedefaultischaracters,plusbytesofICMPdataheader,atotalofICMPdatabytesvmakesPinginverbosemodeItrequiresthepingcommandtoprintallotherreturnedICMPpacketsbesidesprintingECHORESPONSEpacketsRefillPingcommanddetailedhelpVerifytheconnectiontotheremotecomputerorlocalcomputerThiscommandisonlyavailablewhentheTCPIPprotocolisinstalledPingtancountllengthfittlvtosrcountscountjcomputerlist,kcomputerlistwtimeoutdestinationlistParametertVerifythattheconnectiontothecomputerisspecifieduntiltheuserinterruptsaResolvestheaddresstothecomputernamencountSendsaspecifiednumberofECHOmessagesbycount,withadefaultvalueofllengthSendsaECHOmessagecontainingthedatalengthspecifiedbythelengthThedefaultvalueisbytes,withamaximumvalueofbytesfSenda"no"signinthepackageThepacketwillnotbesegmentedbythegatewayontherouteiTTLSetthesurvivaltimefieldtothevaluespecifiedbyttlvTOSSettheservicetypefieldtothevaluespecifiedbytosrcountIntherecordroutingfield,theroutingofmessagesandreturnmessagesisrecordedThespecifiedCountvalueisminimumItcanbe,andthemaximumisscountSpecifiesthetimestampforthenumberofcallsspecifiedbythecountjcomputerlistAroutingmessagethatpassesthroughalistofcomputersspecifiedbycomputerlistTheintermediategatewaymayseparatesuccessivecomputers(loosesourcerouting)ThemaximumnumberofallowedIPaddressesiskcomputerlistAroutingmessagethatpassesthroughalistofcomputersspecifiedbycomputerlistTheintermediategatewaymayseparateacontinuouscomputer(YanGeyuanrouting)ThemaximumnumberofallowedIPaddressesiswtimeoutSpecifiesthetimeoutintervalinmillisecondsDestinationlistSpecifiestheremotecomputertoverifytheconnectionFormoreinformationaboutPingPingattentionThePingcommandcheckstheconnectiontotheremotecomputerorlocalcomputerbysendingtheICMPresponsemessagetothecomputerandlisteningforthereturnoftheresponsemessageForeachsendingmessage,thePingwaitsatmostonesecondandprintsthenumberofmessagessentandreceivedCompareeachreceivemessageandsendamessagetoverifyitsvalidityBydefault,fourresponsemessagesaresent,eachcontainingbytesofdata(periodicuppercaseletters)YoucanusethePingutilitytotestyourcomputernameandIPaddressIfyoucansuccessfullyverifytheIPaddressandfailtoverifythecomputername,thereisaproblemwithnameresolutionInthiscase,youmustensurethatyouareinthelocalHOSTSfileorDNSThereisacomputernametoqueryinthedatabaseThefollowingexampleshowstheoutputofPing(Windows:user:Start>run,type"command"fromthecommandwindowtousethiscommand)C:>pingdsinternicnetPinging,dsinternicnet,,with,,bytes,of,data:Reply,from,:,bytes=,time=ms,TTL=Reply,from,:,bytes=,time=ms,TTL=Reply,from,:,bytes=,time=ms,TTL=Reply,from,:,bytes=,time=ms,TTL=

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/11

ping的高级用法&#40;网络检查&#41;(Advanced usage Ping &#40;network check&#41;)

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利