




已閱讀5頁(yè),還剩1頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1英文翻譯:本文出自ComputerNetwork第四版AndrewS.Tanenbaum著NetworkPerformanceMeasurementWhenanetworkperformspoorly,itsusersoftencomplaintothefolksrunningit,demandingimprovements.Toimprovetheperformance,theoperatorsmustfirstdetermineexactlywhatisgoingon.Tofindoutwhatisreallyhappening,theoperatorsmustmakemeasurements.Inthissectionwewilllookatnetworkperformancemeasurements.ThediscussionbelowisbasedontheworkofMogul(1993).Thebasicloopusedtoimprovenetworkperformancecontainsthefollowingsteps:1.Measuretherelevantnetworkparametersandperformance.2.Trytounderstandwhatisgoingon.3.Changeoneparameter.Thesestepsarerepeateduntiltheperformanceisgoodenoughoritisclearthatthelastdropofimprovementhasbeensqueezedout.Measurementscanbemadeinmanywaysandatmanylocations(bothphysicallyandintheprotocolstack).Themostbasickindofmeasurementistostartatimerwhenbeginningsomeactivityandseehowlongthatactivitytakes.Forexample,knowinghowlongittakesforaTPDUtobeacknowledgedisakeymeasurement.Othermeasurementsaremadewithcountersthatrecordhowoftensomeeventhashappened(e.g.,numberoflostTPDUS).Finally,oneisofteninterestedinknowingtheamountofsomething,suchasthenumberofbytesprocessedinacertaintimeinterval.Measuringnetworkperformanceandparametershasmanypotentialpitfalls.Belowwelistafewofthem.Anysystematicattempttomeasurenetworkperformanceshouldbecarefultoavoidthese.MakeSureThattheSampleSizeIsLargeEnoughDonotmeasurethetimetosendoneTPDU,butrepeatthemeasurement,say,onemilliontimesandtaketheaverage.Havingalargesamplewillreducetheuncertaintyinthemeasuredmeanandstandarddeviation.Thisuncertaintycanbecomputedusingstandardstatisticalformulas.MakeSureThattheSamplesAreRepresentative2Ideally,thewholesequenceofonemillionmeasurementsshouldberepeatedatdifferenttimesofthedayandtheweektoseetheeffectofdifferentsystemloadsonthemeasuredquantity.Measurementsofcongestion,forexample,areoflittleuseiftheyaremadeatamomentwhenthereisnocongestion.Sometimestheresultsmaybecounterintuitiveatfirst,suchasheavycongestionat10,11,1,and2oclock,butnocongestionatnoon(whenalltheusersareawayatlunch).BeCarefulWhenUsingaCoarse-GrainedClockComputerclocksworkbyincrementingsomecounteratregularintervals.Forexample,amillisecondtimeradds1toacounterevery1msec.Usingsuchatimertomeasureaneventthattakeslessthan1msecispossible,butrequiressomecare.(Somecomputershavemoreaccurateclocks,ofcourse.)TomeasurethetimetosendaTPDU,forexample,thesystemclock(say,inmilliseconds)shouldbereadoutwhenthetransportlayercodeisenteredandagainwhenitisexited.IfthetrueTPDUsendtimeis300sec,thedifferencebetweenthetworeadingswillbeeither0or1,bothwrong.However,ifthemeasurementisrepeatedonemilliontimesandthetotalofallmeasurementsaddedupanddividedbyonemillion,themeantimewillbeaccuratetobetterthan1sec.BeSureThatNothingUnexpectedIsGoingOnduringYourTestsMakingmeasurementsonauniversitysystemthedaysomemajorlabprojecthastobeturnedinmaygivedifferentresultsthanifmadethenextday.Likewise,ifsomeresearcherhasdecidedtorunavideoconferenceoveryournetworkduringyourtests,youmaygetabiasedresult.Itisbesttoruntestsonanidlesystemandcreatetheentireworkloadyourself.Eventhisapproachhaspitfallsthough.Whileyoumightthinknobodywillbeusingthenetworkat3A.M.,thatmightbepreciselywhentheautomaticbackupprogrambeginscopyingallthediskstotape.Furthermore,theremightbeheavytrafficforyourwonderfulWorldWideWebpagesfromdistanttimezones.CachingCanWreakHavocwithMeasurementsTheobviouswaytomeasurefiletransfertimesistoopenalargefile,readthewholething,closeit,andseehowlongittakes.Thenrepeatthemeasurementmanymoretimestogetagoodaverage.Thetroubleis,thesystemmaycachethefile,soonlythefirstmeasurementactuallyinvolvesnetworktraffic.Therestarejustreadsfromthe3localcache.Theresultsfromsuchameasurementareessentiallyworthless(unlessyouwanttomeasurecacheperformance).Oftenyoucangetaroundcachingbysimplyoverflowingthecache.Forexample,ifthecacheis10MB,thetestloopcouldopen,read,andclosetwo10-MBfilesoneachpass,inanattempttoforcethecachehitrateto0.Still,cautionisadvisedunlessyouareabsolutelysureyouunderstandthecachingalgorithm.Bufferingcanhaveasimilareffect.OnepopularTCP/IPperformanceutilityprogramhasbeenknowntoreportthatUDPcanachieveaperformancesubstantiallyhigherthanthephysicallineallows.Howdoesthisoccur?AcalltoUDPnormallyreturnscontrolassoonasthemessagehasbeenacceptedbythekernelandaddedtothetransmissionqueue.Ifthereissufficientbufferspace,timing1000UDPcallsdoesnotmeanthatallthedatahavebeensent.Mostofthemmaystillbeinthekernel,buttheperformanceutilitythinkstheyhaveallbeentransmitted.UnderstandWhatYouAreMeasuringWhenyoumeasurethetimetoreadaremotefile,yourmeasurementsdependonthenetwork,theoperatingsystemsonboththeclientandserver,theparticularhardwareinterfaceboardsused,theirdrivers,andotherfactors.Ifthemeasurementsaredonecarefully,youwillultimatelydiscoverthefiletransfertimefortheconfigurationyouareusing.Ifyourgoalistotunethisparticularconfiguration,thesemeasurementsarefine.However,ifyouaremakingsimilarmeasurementsonthreedifferentsystemsinordertochoosewhichnetworkinterfaceboardtobuy,yourresultscouldbethrownoffcompletelybythefactthatoneofthenetworkdriversistrulyawfulandisonlygetting10percentoftheperformanceoftheboard.4網(wǎng)絡(luò)性能的測(cè)量當(dāng)一個(gè)網(wǎng)絡(luò)的運(yùn)行效果很差的時(shí)候,它的用戶通常會(huì)向網(wǎng)絡(luò)運(yùn)行商抱怨并要求提高網(wǎng)絡(luò)的質(zhì)量。為了改善網(wǎng)絡(luò)的性能,網(wǎng)絡(luò)操作人員首先必須確定發(fā)生了什么問(wèn)題。為了找出真正的問(wèn)題所在,操作人員必須進(jìn)行測(cè)量工作。在這一小節(jié)中,我們來(lái)看一看網(wǎng)絡(luò)性能的測(cè)量問(wèn)題。下面的討論以Mogul(1993)的工作為基礎(chǔ)。用來(lái)改善網(wǎng)絡(luò)性能的基本循環(huán)過(guò)程包括以下步驟:(1)測(cè)量有關(guān)的網(wǎng)絡(luò)參數(shù)和性能。(2)試圖理解當(dāng)前的網(wǎng)絡(luò)狀況。(3)改變一個(gè)參數(shù)。這些步驟不斷重復(fù),直到網(wǎng)絡(luò)的性能已經(jīng)足夠好,或者改善性能的全部空間都已經(jīng)被發(fā)掘出來(lái)了。測(cè)量工作可以有許多做法,也可以在許多地點(diǎn)或場(chǎng)所進(jìn)行(既指物理位置,也指協(xié)議棧中的位置)。最基本的一種測(cè)量手段是:在開(kāi)始某一個(gè)動(dòng)作的時(shí)候啟動(dòng)一個(gè)定時(shí)器,然后確定該需要多長(zhǎng)時(shí)間。例如,知道一個(gè)TPDU需要多長(zhǎng)時(shí)間才被確認(rèn)是一個(gè)很關(guān)鍵的測(cè)量指標(biāo)。其他有一些測(cè)量指標(biāo)可以通過(guò)計(jì)數(shù)器來(lái)完成,即記錄某種事件發(fā)生的次數(shù),比如丟失的TPDU的數(shù)量。最后,人們通常對(duì)于某些事物的數(shù)量比較感興趣,比如在特定的時(shí)間間隔內(nèi)所處理的字節(jié)數(shù)。測(cè)量網(wǎng)絡(luò)的性能和參數(shù)有許多潛在的陷阱。以下我們列出其中一部分。任何一種系統(tǒng)化的網(wǎng)絡(luò)性能測(cè)量
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 衣物捐贈(zèng)及轉(zhuǎn)讓協(xié)議
- 紡織品的智能生產(chǎn)調(diào)度優(yōu)化考核試卷
- 購(gòu)房定金的法律咨詢服務(wù)協(xié)議
- 電影敘事技巧與劇情發(fā)展考核試卷
- 中班禮儀:尊敬長(zhǎng)輩
- 腫瘤內(nèi)科常見(jiàn)急癥及護(hù)理
- 石棉制品生產(chǎn)過(guò)程中的節(jié)能減排考核試卷
- 服裝零售企業(yè)危機(jī)應(yīng)對(duì)與輿情管理考核試卷
- 電視機(jī)制造業(yè)的數(shù)字化供應(yīng)鏈管理考核試卷
- 畜牧業(yè)信息技術(shù)在養(yǎng)殖中的應(yīng)用考核試卷
- 青銅器科普宣傳
- 《大學(xué)生創(chuàng)新創(chuàng)業(yè)基礎(chǔ)教程》第六章創(chuàng)業(yè)資源與融資
- 山水林田湖草生態(tài)環(huán)境調(diào)查技術(shù)規(guī)范DB41-T 1992-2020
- 大眾旅游服務(wù)質(zhì)量控制手冊(cè)
- GB/T 44421-2024矯形器配置服務(wù)規(guī)范
- 大型活動(dòng)策劃與管理第八章 大型活動(dòng)風(fēng)險(xiǎn)管理
- Q∕GDW 12165-2021 高海拔地區(qū)運(yùn)維檢修裝備配置規(guī)范
- JGJ107-2016鋼筋機(jī)械連接技術(shù)規(guī)程
- 婦科醫(yī)生進(jìn)修匯報(bào)課件
- 動(dòng)態(tài)分析與設(shè)計(jì)實(shí)驗(yàn)報(bào)告總結(jié)
- 2024年江蘇省泰州市海陵區(qū)中考一模數(shù)學(xué)試卷
評(píng)論
0/150
提交評(píng)論