外文翻譯--網(wǎng)絡(luò)性能的測量.doc_第1頁
外文翻譯--網(wǎng)絡(luò)性能的測量.doc_第2頁
外文翻譯--網(wǎng)絡(luò)性能的測量.doc_第3頁
外文翻譯--網(wǎng)絡(luò)性能的測量.doc_第4頁
外文翻譯--網(wǎng)絡(luò)性能的測量.doc_第5頁
已閱讀5頁,還剩1頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

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ò)性能的測量當(dāng)一個網(wǎng)絡(luò)的運行效果很差的時候,它的用戶通常會向網(wǎng)絡(luò)運行商抱怨并要求提高網(wǎng)絡(luò)的質(zhì)量。為了改善網(wǎng)絡(luò)的性能,網(wǎng)絡(luò)操作人員首先必須確定發(fā)生了什么問題。為了找出真正的問題所在,操作人員必須進行測量工作。在這一小節(jié)中,我們來看一看網(wǎng)絡(luò)性能的測量問題。下面的討論以Mogul(1993)的工作為基礎(chǔ)。用來改善網(wǎng)絡(luò)性能的基本循環(huán)過程包括以下步驟:(1)測量有關(guān)的網(wǎng)絡(luò)參數(shù)和性能。(2)試圖理解當(dāng)前的網(wǎng)絡(luò)狀況。(3)改變一個參數(shù)。這些步驟不斷重復(fù),直到網(wǎng)絡(luò)的性能已經(jīng)足夠好,或者改善性能的全部空間都已經(jīng)被發(fā)掘出來了。測量工作可以有許多做法,也可以在許多地點或場所進行(既指物理位置,也指協(xié)議棧中的位置)。最基本的一種測量手段是:在開始某一個動作的時候啟動一個定時器,然后確定該需要多長時間。例如,知道一個TPDU需要多長時間才被確認是一個很關(guān)鍵的測量指標。其他有一些測量指標可以通過計數(shù)器來完成,即記錄某種事件發(fā)生的次數(shù),比如丟失的TPDU的數(shù)量。最后,人們通常對于某些事物的數(shù)量比較感興趣,比如在特定的時間間隔內(nèi)所處理的字節(jié)數(shù)。測量網(wǎng)絡(luò)的性能和參數(shù)有許多潛在的陷阱。以下我們列出其中一部分。任何一種系統(tǒng)化的網(wǎng)絡(luò)性能測量

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論