版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
一、重要性:從網(wǎng)維排查的用戶反應網(wǎng)速慢的故障中,相當一部分是由于交換機和交換機端口、交換機端口和用戶路由器端口、交換機端口和光電轉(zhuǎn)換器端口、交換機端口和用戶網(wǎng)卡匹配不當,產(chǎn)生錯包引起的。該問題雖然比較常見,但只要按交換機開局來配置,通常能降低故障發(fā)生率,即使還存在端口錯包問題,也能通過改端口速度和雙工狀態(tài)來徹底解決。二、交換機端口錯包說明:以華為交換機端口為例進行說明:[NJ-A-GJXC-S3026C-1]disinteth0/1Ethernet0/1currentstate:UPIPSendingFrames'FormatisPKTFMT_ETHNT_2,Hardwareaddressis000f-e21d-bedcDescription:togujiao_33-192.168.86.161TheMaximumTransmitUnitis1500Mediatypeistwistedpair,loopbacknotsetPorthardwaretypeis100_BASE_TX100Mbps-speedmode,full-duplexmodeLinkspeedtypeisforcelink,linkduplextypeisforcelinkFlow-controlisnotenabledPort-flow-constrainhasnotbeenconfiguredcompletelyTheMaximumFrameLengthis1536BroadcastMAX-ratio:100%PVID:10Mditype:autoPortlink-type:hybridTaggedVLANID:,99UntaggedVLANID:,10,458Last300secondsinput:0packets/sec11bytes/secLast300secondsoutput:7packets/sec520bytes/secInput(total):11864483packets,6684922188bytes66707broadcasts,9522multicastsInput(normal):-packets,-bytes-broadcasts,-multicastsInput:0inputerrors,0runts,0giants,-throttles,0CRC0frame,-overruns,0aborts,0ignored,-parityerrorsOutput(total):12008069packets,5178275457bytes3638352broadcasts,288120multicasts,0pausesOutput(normal):-packets,-bytes-broadcasts,-multicasts,-pausesOutput:0outputerrors,-underruns,-bufferfailures0aborts,0deferred,0collisions,0latecollisions0lostcarrier,-nocarrier如上紅字所示:輸入錯誤數(shù),inputerrors等于各種重要錯誤信息的總和。不同的產(chǎn)品可以根據(jù)具體情況增加其它參數(shù),或減少不能實現(xiàn)的參數(shù)。Runts:discardedpacketsthataresmallerthanthemedium'sminimumpacketsize.(ReceiveByteCount<64andNOTCRCErrororReceiveByteCount<64andTagPacketandNOTCRCError,無論是否有vlantag,數(shù)據(jù)段小于64字節(jié),而且沒有CRC校驗錯誤的幀。)Giants:discardedpacketsthatarelargerthanthemedium'smaximumpacketsize.(ReceiveByteCount>1518andNOTCRCErrororReceiveByteCount>1522andTagPacketandNOTCRCError,沒有vlantag,數(shù)據(jù)段大于1518字節(jié),小于最大幀長度,而且沒有CRC校驗錯誤的幀,和有vlantag,數(shù)據(jù)段大于1522字節(jié),小于最大幀長度,而且沒有CRC校驗錯誤的幀。)Throttles:discardedpacketsthatareincompleteframes.(交換機察覺緩存或CPU過載,關(guān)閉接口接收器的情形稱為throttle,是cisco路由器上的一個概念,我們的交換機目前不具備這個功能,一般應該顯示為不支持。)CRC:discardedpacketswithchecksumerror.(ReceivePacketCRCerror,幀長度在正常范圍(不帶tag,長度在64到1518之間,或帶tag,長度在64到1522之間),而且CRC校驗錯,如果支持此項,則不支持奇偶校驗錯誤項。)Frame:discardedpacketswithframepad/sequence/alignmenterror,outofframeetc.(不是整數(shù)字節(jié),而是多1~7bit,因此不對齊,或亂序或空幀,而且CRC校驗錯誤,但是不計入CRC錯誤。)6.Overrun:thereceiverhardwareisunabletohandreceiveddatatoahardwarebufferbecausetheinputrateexceedsthereceiver'sabilitytohandlethedata.(由于接口輸入速率超過接受方處理能力,導致丟包,由于我們的交換機一般是線速轉(zhuǎn)發(fā),這項一般應該為0,只有部分交換機對上傳CPU或三層線速轉(zhuǎn)發(fā)的幀有接口帶寬限制,或是通過ACL實現(xiàn)的帶寬限制,因此被丟棄的幀,計入此項。)7.Aborts:Inputabnormalframesthatarediscarded.(除其他錯誤之外,產(chǎn)品認為有必要統(tǒng)計的錯誤,例如前導碼異常的幀,計入此項。)8.Ignored:packetsthatarediscardedbecausetheinterfacehardwaredoesnothaveenoughinternalbuffers.(Packetignored,由于接口內(nèi)部buffer滿,丟棄的幀,與由于主系統(tǒng)緩存空間缺乏,導致的丟棄幀不同。線速轉(zhuǎn)發(fā)的幀,在多接口滿帶寬輸入,單接口輸出等情況下,由于輸出接口的帶寬不足,數(shù)據(jù)幀將內(nèi)部緩存占滿,導致從接口輸入的幀在進入內(nèi)部緩存之前被丟棄,以及進入內(nèi)部緩存的幀超時無法輸出,計入此項,上傳到CPU的幀,由于CPU處理能力限制,toCPU的緩存滿,導致被丟棄,也計入此項。)9.Parity:Frameswithparityerror.(ReceivePacketparityerror,如果支持此項,則不支持CRC錯誤項。)輸入丟棄數(shù)/輸入錯誤數(shù),outputerrors等于各種重要錯誤信息的總和。不同的產(chǎn)品可以根據(jù)具體情況增加其它參數(shù),或減少不能實現(xiàn)的參數(shù)。Underruns:Therearenodataintheoutputqueue.(Transmitunderrun,與Overrun相反,輸出接口的緩存從輸出隊列中取以太網(wǎng)幀時,沒有幀,是一種非常少見的硬件異常。有的交換機就沒有單獨的接口輸出緩存,與接口輸出隊列是同一塊緩存。)Bufferfailures:Hardwaredoesnothaveenoughinternalbuffers.(內(nèi)部緩存滿,如果輸出隊列滿,輸出的以太網(wǎng)幀將在內(nèi)部緩存中暫時存儲,由于內(nèi)部緩存滿,導致幀丟棄。由于交換機對線速轉(zhuǎn)發(fā)的數(shù)據(jù)幀發(fā)生的這種異常,認為只是到達內(nèi)部緩存而沒有到達出接口,是個輸入幀,因此計入InputIgnoredError,只有從CPU發(fā)出的幀,由于內(nèi)部緩存滿,導致幀丟棄,計入此項。)Aborts:Outputabnormalframesthatarediscarded.(在半雙工模式下,由于沖突檢測,延遲發(fā)送超過15次的幀,被丟棄,計入此項。除其他錯誤之外,產(chǎn)品認為有必要統(tǒng)計的錯誤,例如添加前導碼異常的幀,也計入此項)Deferred:Thepacketscouldnotbesentoutforcollisionunderhalf-duplexmode.(半雙工模式下,由于檢測到載波正在被聲明,當時沒有發(fā)出的包,延時一次計數(shù)加一。)Collisions:Statisticofcollisiondetectionunderhalf-duplexmode.(半雙工模式下,在以太網(wǎng)幀數(shù)據(jù)部分的前64字節(jié)進入線路前,由于檢測到?jīng)_突,當時沒有發(fā)出的包。)Latecollisions:StatisticofcollisionwithGEportsendingpacketslessthan512bytesand10/100Mportlessthan64bytes.(半雙工模式下,在以太網(wǎng)幀數(shù)據(jù)部分的前64字節(jié)進入線路后,由于檢測到?jīng)_突,當時沒有發(fā)出的包。)Lostcarrier:Statisticoflosingthecarrier.(載波丟失,一般適用于串行WAN接口,發(fā)送過程中,每丟失一個載波,此計數(shù)加一,對于交換機,通常是由于線路中斷造成。)Nocarrier:Statisticofnocarrier.(無載波,一般適用于串行WAN接口,當試圖發(fā)送幀時,如果沒有載波出現(xiàn),此計數(shù)加一,對于交換機,通常是由于線路中斷造成。)如果“inputerrors”和“outputerrors”非“0"并且數(shù)字在增長,通常情況下可能存在端口匹配問題,必須進行端口狀態(tài)調(diào)整。其它廠商,cisco和中興的二層交換機錯包類型相似,可以類推。三、錯包問題排查方法下面分別說下中興、華為和CISCO二層交換機排查常用命令。1中興交換機端口排查方法,以Z2826S為例進行說明;交換機端口原來配置,showrunsetport1descriptionTo_702setport1autodisablesetport1speed10setport1pvid541setport1macaddresson1
setport1unit-statisticsenable交換機端口原來數(shù)據(jù)包統(tǒng)計NJ-A-CFDS-Z2826S_2(1#7F)(cfg)#shport1statisticsPortId:1 PortName:ReceivedFramesReceivedBytesCrcErrorInMACRcvErrReceivedFramesReceivedBytesCrcErrorInMACRcvErrFragmentsFrames64Bytes:1232457Frames128_255Bytes:7180773Frames512_1023Bytes:4738336OversizeFrames:0SendUnicastFrames:127249246SendNoneUnicastFrames:1892514SendBroadcastFrames:1035165:128998658ReceivedBroadcastFrames:1815:741746864ReceivedMulticastFrames:0:4934296InPause:0:0Jabber:2:6447228UndersizeFrames:0Frames65_127Bytes:84450478Frames256_511Bytes:2203985Frames1024_UpBytes:29192629SendBytes:4270894316SendFrames:129141760SendMulticastFrames:857349SendSingleCollision:0SendSingleCollision:0SendLateCollision:0SendCollision :0OutPause :0SendMultiCollision:0SendExcessCollision:0SendDefferTrans:0可以看到端口有大量“CrcError”錯包,并且多次查看端口信息,可以看到錯包在增長,該用戶當前的上網(wǎng)速度肯定會慢,需要整改
更改端口匹配模式,改成端口自適應,主動宣告10Msetport1autoenablesetport1speedadvertisespeed10fullDuplex更改后端口配置setport1descriptionTo_702setport1pvid541setport1speedadvertisespeed10FullDuplexsetport1macaddresson1setport1unit-statisticsenable清除原端口1數(shù)據(jù)包統(tǒng)計,NJ-A-CFDS-Z2826S_2(1#7F)(cfg)#clearport1statistics,再多次查看端口狀態(tài)NJ-A-CFDS-Z2826S_2(1#7F)(cfg)#shport1statisticsPortId:1PortName:ReceivedFrames:2377ReceivedBytes:174972ReceivedFrames:2377ReceivedBytes:174972CrcError :0InMACRcvErr :0Fragments :0Frames64Bytes :4Frames128_255Bytes:2Frames512_1023Bytes:0ReceivedBroadcastFrames:0ReceivedMulticastFrames:0InPause :0Jabber :0UndersizeFrames:0Frames65_127Bytes:2371Frames256_511Bytes :0Frames1024_UpBytes :0OversizeFramesSendUnicastFrames:4293SendBytes:6461573SendNoneUnicastFrames:6SendUnicastFrames:4293SendBytes:6461573SendNoneUnicastFrames:6SendFrames:4299SendBroadcastFrames:4SendBroadcastFrames:4SendMulticastFrames:2SendSingleCollision:0SendSingleCollision:0SendMultiCollisionSendLateCollisionSendExcessCollisionSendLateCollisionSendExcessCollisionSendCollisionSendDefferTransSendCollisionSendDefferTransOutPause可以發(fā)現(xiàn)用戶端口“CrcError”一直為“0”,此時用戶上網(wǎng)才是正常的??偨Y(jié),只要2826端口有“CrcError”錯誤,一定要進行排查,直到“CrcError”錯誤為“0”2?華為二層交換機端口錯包排查方法,以S2403H-EI為例進行說明①交換機端口原來配置[S2403EI]discuinteth0/1interfaceEthernet0/1descriptionto_101speed10duplexfullbroadcast-suppression5mac-addressmax-mac-count1portaccessvlan456交換機端口原來數(shù)據(jù)包統(tǒng)計[S2403EI-2]disinteth0/1Ethernet0/1currentstate:UPIPSendingFrames'FormatisPKTFMT_ETHNT_2,Hardwareaddressis000f-e22a-45fcDescription:to_101TheMaximumTransmitUnitis1500Mediatypeistwistedpair,loopbacknotsetPorthardwaretypeis100_BASE_TX10Mbps-speedmode,full-duplexmodeLinkspeedtypeisforcelink,linkduplextypeisautonegotiationFlow-controlisnotenabledPort-flow-constrainhasnotbeenconfiguredcompletelyTheMaximumFrameLengthis1518BroadcastMAX-ratio:5%PVID:456Mditype:normalMAXmac-addresslearningcount:1Portlink-type:accessTaggedVLANID:noneUntaggedVLANID:456Last300secondsinput:29packets/sec5729bytes/secLast300secondsoutput:22packets/sec3705bytes/secInput(total):33659824packets,8999990068bytes16038broadcasts,175multicastsInput(normal):33659823packets,-bytes16038broadcasts,175multicastsInput:1102inputerrors,0runts,0giants,-throttles,112CRC0frame,-overruns,0aborts,2637ignored,-parityerrorsOutput(total):36569492packets,bytes1404710broadcasts,5025215multicasts,0pausesOutput(normal):36569492packets,-bytes1404710broadcasts,5025215multicasts,-pausesOutput:0outputerrors,-underruns,-bufferfailures19947aborts,0deferred,0collisions,0latecollisions-lostcarrier,-nocarrier端口有1102個“inputerrors”,說明端口匹配有問題,需要進行排查。③更改端口匹配模式,改成端口指定10M,duplex自適應duplexauto更改后端口配置interfaceEthernet0/1descriptionto_101speed10broadcast-suppression5mac-addressmax-mac-count1portaccessvlan456④清除原端口1數(shù)據(jù)包統(tǒng)計,再多次查看端口狀態(tài),需要從“#”模式退到“>”模式[S2403EI]quit<S2403EI>resetcountersinteth0/1[S2403EI]disinteth0/1Ethernet0/1currentstate:UPIPSendingFrames'FormatisPKTFMT_ETHNT_2,Hardwareaddressis000f-e22a-45fcDescription:to_101TheMaximumTransmitUnitis1500Mediatypeistwistedpair,loopbacknotsetPorthardwaretypeis100_BASE_TX10Mbps-speedmode,full-duplexmodeLinkspeedtypeisforcelink,linkduplextypeisautonegotiationFlow-controlisnotenabledPort-flow-constrainhasnotbeenconfiguredcompletelyTheMaximumFrameLengthis1518BroadcastMAX-ratio:5%PVID:456Mditype:normalMAXmac-addresslearningcount:1Portlink-type:accessTaggedVLANID:noneUntaggedVLANID:456Last300secondsinput:28packets/sec5804bytes/secLast300secondsoutput:27packets/sec4880bytes/secInput(total):33672483packets,9002467028bytes16038broadcasts,175multicastsInput(normal):33672482packets,-bytes16038broadcasts,175multicastsInput:0inputerrors,0runts,0giants,-throttles,0CRC0frame,-overruns,0aborts,0ignored,-parityerrorsOutput(total):36580860packets,bytes1404792broadcasts,5025466multicasts,0pausesOutput(normal):36580860packets,-bytes1404792broadcasts,5025466multicasts,-pausesOutput:0outputerrors,-underruns,-bufferfailures0aborts,0deferred,0collisions,0latecollisions-lostcarrier,-nocarrier如果再多次查看端口狀態(tài),看到“inputerrors”為“0”,此時用戶上網(wǎng)速度才正常。3.CISCO二層交換機端口錯包排查方法,以C2950為例進行說明①交換機端口原來配置2950#shruintfa0/3interfaceFastEthernet0/3descriptiontestswitchportaccessvlan100noipaddressduplexfullspeed100end②交換機端口原來數(shù)據(jù)包統(tǒng)計,2950#shintfa0/3FastEthernet0/3isup,lineprotocolisup(connected)HardwareisFastEthernet,addressis000d.bd98.1c43(bia000d.bd98.1c43)Description:testMTU1500bytes,BW100000Kbit,DLY1000usec,reliability255/255,txload1/255,rxload1/255EncapsulationARPA,loopbacknotsetKeepaliveset(10sec)Full-duplex,100Mb/sinputflow-controlisoff,outputflow-controlisoffARPtype:ARPA,ARPTimeout04:00:00Lastinputnever,output00:00:01,outputhangneverLastclearingof"showinterface"counters21w6dInputqueue:0/75/0/0(size/max/drops/flushes);Totaloutputdrops:0Queueingstrategy:fifoOutputqueue:0/40(size/max)5minuteinputrate0bits/sec,0packets/sec5minuteouxtputrate0bits/sec,0packets/sec330574221packetsinput,78353246bytes,0nobufferReceived372broadcasts,0runts,0giants,0throttles3540inputerrors,3540CRC,0frame,0overrun,0ignored0watchdog,0multicast,0pauseinput0inputpacketswithdribbleconditiondetected307917156packetsoutput,176359999bytes,0underruns0outputerrors,0collisions,0interfaceresets0babbles,0latecollision,0deferred0lostcarrier,0nocarrier,0PAUSEoutput0outputbufferfailures,0outputbuffersswappedout端口有3540個“inputerrors”,說明端口匹配有問題,需要進行排查。更改端口匹配模式,改成端口雙工狀態(tài)duplex自適應duplexauto更改后端口配置2950#shruintfa0/3interfaceFastEthernet0/3descriptiontestswitchportaccessvlan100noipaddressspeed100end清除原端口1數(shù)據(jù)包統(tǒng)計,再多次查看端口狀態(tài)2950#clearcountersfa0/3Clear"showinterface"countersonthisinterface[confirm][回車確認]sw4-idc#shintfa0/3FastEthernet0/3isup,lineprotocolisup(connected)HardwareisFastEthernet,addressis000d.bd98.1c43(bia000d.bd98.1c43)Description:HeHai-SyslogServer-218.104.84.114_5#B03MTU1500bytes,BW100000Kbit,DLY1000usec,reliability255/255,txload1/255,rxload1/255EncapsulationARPA,loopbacknotsetKeepaliveset(10sec)Full-duplex,100Mb/sinputflow-controlisoff,outputflow-controlisoffARPtype:ARPA,ARPTimeout04:00:00Lastinputnever,output00:00:01,outputhangneverLastclearingof"showinterface"counters00:01:40
Inputqueue:0/75/0/0(size/max/drops/flushes);Totaloutputdrops:0Queueingstrategy:fifoOutputqueue:0/40(size/max)5minuteinputrate0bits/sec,0packets/sec5minuteoutputrate105000bits/sec,1packets/sec4278packetsinput,3722881bytes,0nobuffer
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 辦公室租賃合同模板
- 招標文件范本的標準制作流程
- 軟件采購合同樣式
- 碎石采購協(xié)議書格式
- 創(chuàng)新服務采購協(xié)議
- 租房合同解除協(xié)議書范文
- 工程分包合同中的勞務培訓計劃與實施
- 蔬菜購銷合同的解除注意事項
- 礦機設(shè)備購買合同示范
- 三方協(xié)議服務共贏
- 長春中醫(yī)藥大學模板(經(jīng)典)課件
- 2023-2024學年河南省洛陽市洛龍區(qū)、瀍河區(qū)數(shù)學四年級第一學期期末考試試題含答案
- WY9故障錄波器說明書
- 環(huán)衛(wèi)市場化運營方案PPT
- 危重癥患者的相關(guān)護理與評估
- 教師師德考核表
- 部編版四年級語文下冊課程綱要教學資料
- 未巡先改工作方案
- 菜市場攤販與管理方合作經(jīng)營協(xié)議書
- 管理評審輸入報告-管代
- 2023春國家開放大學-02154數(shù)據(jù)庫應用技術(shù)-期末考試題帶答案
評論
0/150
提交評論