




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Linux無(wú)線網(wǎng)絡(luò)系統(tǒng)分析孟寧電話訊微博:@mengning997新浪微博:@孟寧V5E-mail:mengning@主頁(yè):/~mengning地址:蘇州工業(yè)園區(qū)獨(dú)墅湖高等教育區(qū)仁愛路188號(hào)思賢樓504室2013年6月內(nèi)容組織的邏輯一是硬件上,有哪些東西,他們是如何放置的。硬件:網(wǎng)絡(luò)+有線網(wǎng)絡(luò)?無(wú)線網(wǎng)絡(luò)?80211無(wú)線網(wǎng)絡(luò)二是軟件上,通信協(xié)議上,是如何實(shí)現(xiàn)通信的。軟件:Linux網(wǎng)絡(luò)架構(gòu)?Linux下的80211無(wú)線網(wǎng)絡(luò)架構(gòu)802.11和OSI模型80211WirelessLANBSSstandsforBasicServiceSet.ThecoverageofanaccesspointiscalledaBSS.STAindicatesawirelessdeviceactinginBSSasaregularSTAtion.IBSSstandsforIndependentBasicServiceSet.ItsbasicallyAd-Hocmode.SSIDstandsforServiceSetIDentifier.TheSSIDisacodeattachedtoallpacketsonawirelessnetworktoidentifyeachpacketaspartofthatnetwork.Thecodeconsistsofastringof1-32octets(usuallyrepresentedascasesensitivealphanumericcharacters).無(wú)線信號(hào)傳輸方式窄帶無(wú)線電通信(Narrow-BandRadio)這種技術(shù)類似于無(wú)線電臺(tái)的廣播,必須把發(fā)送器和接收器都調(diào)撥到同一頻帶。無(wú)線電信號(hào)可以穿越墻物,在一個(gè)很廣的域內(nèi)傳播,所以不必把它調(diào)聚成束。然而,窄帶射頻發(fā)送有無(wú)線電波反射的問題,并受聯(lián)邦通信委員會(huì)管制,它們必須準(zhǔn)確地進(jìn)行調(diào)諧,以防其它頻率的干擾。擴(kuò)展頻譜通信(SpreadSpectrumCommunication)簡(jiǎn)稱擴(kuò)頻通信,是一種信息傳輸方式,其信號(hào)所占有的頻帶寬度遠(yuǎn)大于所傳信息必需的最小帶寬。頻帶的擴(kuò)展是通過一個(gè)獨(dú)立的碼序列(一般是偽隨機(jī)碼)來(lái)完成,用編碼及調(diào)制的方法來(lái)實(shí)現(xiàn)的,與所傳信息數(shù)據(jù)無(wú)關(guān)在接收端則用同樣的碼進(jìn)行相關(guān)同步接收、解擴(kuò)及恢復(fù)所傳信息數(shù)據(jù)。這種技術(shù)是在一個(gè)很寬的頻率范圍內(nèi)廣播信號(hào),避免在窄帶無(wú)線電通信中遇到的問題。用一種編碼來(lái)傳播信號(hào),接收站用同一編碼來(lái)恢復(fù)信號(hào)。用這種方法,擴(kuò)頻無(wú)線電信號(hào)能工作在其它信號(hào)所占據(jù)的頻率范圍內(nèi)。擴(kuò)頻無(wú)線電信號(hào)不會(huì)干涉常規(guī)的無(wú)線電廣播,這是因?yàn)樗哪芰渴治⑷酢?0211FrameTypeManagementFramesAuthenticationframe,DeauthenticationframeAssociationrequestframe,Associationresponseframe,DisassociationframeReassociationrequestframe,ReassociationresponseframeBeaconFrame:Authenticationframe,DeauthenticationframeProberequestframe,ProberesponseframeControlFramesRequesttoSend(RTS)frameCleartoSend(CTS)frame(UseRTS/CTStoavoidhiddenstationproblem)Acknowledgement(ACK)frameDataFramesCSMA/CACSMA/CA(CarrierSenseMultipleAccesswithCollisionAvoidance)Astationwishingtotransmitsensestheair,and,ifnoactivityisdetected,thestationwaitsanadditional,randomlyselectedperiodoftimeandthentransmitsifthemediumisstillfree.Ifthepacketisreceivedintact,thereceivingstationissuesanACKframethat,oncesuccessfullyreceivedbythesender,completestheprocess.IftheACKframeisnotdetectedbythesendingstation,eitherbecausetheoriginaldatapacketwasnotreceivedintactortheACKwasnotreceivedintact,acollisionisassumedtohaveoccurredandthedatapacketistransmittedagainafterwaitinganotherrandomamountoftime.MLMEMLMEStandsforMediaAccessControl(MAC)SublayerManagementEntity.MLMEisthemanagemententitywherethePhysicallayer(PHY)MACstatemachinesreside.Linux無(wú)線網(wǎng)絡(luò)架構(gòu)wext/WE是WirelessExtensions的縮寫Linux網(wǎng)絡(luò)設(shè)備工作原理FullMACandSoftMACFullMACisatermusedtodescribeatypeofwirelesscardwheretheMLMEismanagedinhardware.Youwouldnotusemac80211towriteaFullMACwirelessdriver.SoftMACisatermusedtodescribeatypeofwirelesscardwheretheMLMEisexpectedtobemanagedinsoftware.mac80211isadriverAPIforSoftMACwirelesscards,forexample.Radiotap
Radiotap是一個(gè)標(biāo)準(zhǔn),用于802.11的幀接收(framereception)和幀注入(frameinjection)所謂的幀接收,就是硬件(網(wǎng)卡)用中斷通知CPU,一個(gè)數(shù)據(jù)幀到了,要CPU去接收。一般是在將無(wú)線網(wǎng)卡設(shè)置為混雜模式的時(shí)候,底層接受到數(shù)據(jù)幀之后,不處理,而是直接傳送給上層處理,一般用于分析無(wú)線網(wǎng)絡(luò)數(shù)據(jù)傳輸?shù)臅r(shí)候,分析網(wǎng)絡(luò)問題到底出現(xiàn)在哪。CodestructureMostimportantfordriverauthors:include/net/mac80211.hThisfiledefinestheAPItomac80211frombelow.CodestructureAllfilesexcepttheheaderfileareinnet/mac80211/.Kconfig,Makefilebuildsystemieee80211i.hmostinternaldatastructuresmain.cmainmoduleentrypointsmainentrypointsfordrivercalls(reg/dereg)iface.cvirtualinterfacehandlingkey.c,key.hkeymanagementstainfo.c,stainfo.hStation(peer)managementpm.cpowermanagement(suspend/hibernate)rate.c,rate.hinternalratecontrolfunctionsrc80211*ratecontrolalgorithmsrx.cframereceivepathtx.cframetransmitpathscan.csoftwarescanningcodeCodestructureht.c,agg-rx.c,agg-tx.cHT/aggregationcodemesh{,hwmp,plink,pathtbl}.{c,h}802.11smeshmlme.cStation/managedmodeMLMEibss.cIBSSMLMEcfg.c,cfg.h,wext.cconfigurationentrypointsevent.ceventstouserspacespectmgmt.cspectrummanagementcodeaes*,tkip.*,wep.*,michael.*,wpa.*WPA/RSN/WEPcodewme.c,wme.hsomeQoScodeutil.cutilityfunctionsled.c,led.hLEDhandlingdebugfs*debugfscodeDatastructuresieee80211_local/ieee80211_hwsta_info/ieee80211_staieee80211_confieee80211_bss_confieee80211_key/ieee80211_key_confieee80211_tx_infoieee80211_rx_statusieee80211_sub_if_data/ieee80211_vifieee80211_local/ieee80211_hweachinstanceofthese(hwisembeddedintolocal)represents
awirelessdeviceieee80211_hwisthepartofiieee80211_localthatisvisibleto
driverscontainsalloperatinginformationaboutawirelessdevicesta_info/ieee80211_starepresentsanystation(peer)couldbemeshpeer,IBSSpeer,AP,WDSpeerwouldalsobeusedforDLSpeerieee80211_staisdriver-visiblepartieee80211_find_stafordriverslifetimemanagedmostlywithRCUieee80211_confhardwareconfigurationmostimportantly-currentchannelintention:hardwarespecificparametersieee80211_bss_confBSSconfigurationforallkindsofBSSes(IBSS/AP/managed)containse.g.basicratebitmapintention:perBSSparametersincasehardwaresupports
creating/associatingwithmultipleBSSesieee80211_key/ieee80211_key_confrepresentsanencryption/decryptionkeyieee80211_key_confgiventodriverforhardwareaccelerationieee80211_keycontainsinternalbook-keepingandsoftware
encryptionstateieee80211_tx_infomostcomplicateddatastructurelivesinsideskb’scontrolbuffer(cb)goesthroughthreestages(substructureforeach)initialisationbymac80211(control)usebydriver(driver_data/rate_driver_data)useforTXstatusreporting(status)ieee80211_rx_statuscontainsstatusaboutareceivedframepassedbydrivertomac80211withareceivedframeieee80211_sub_if_data/ieee80211_vifcontainsinformationabouteachvirtualinterfaceieee80211_vifispassedtodriverforthosevirtualinterfaces
thedriverknowsabout(notmonitor,VLAN)containssub-structuresdependingonmodeieee80211_if_apieee80211_if_wdsieee80211_if_vlanieee80211_if_managedieee80211_if_ibssieee80211_if_meshMainflowsconfigurationreceivepathtransmitpathmanagement/MLMEMainflows–configurationallinitiatedfromuserspace(wextornl80211)formanagedandIBSSmodes:triggersstatemachine(on
workqueue)someoperationspassedthroughtodrivermoreorlessdirectly
(e.g.channelsetting)Mainflows–receivepathpacketreceivedbydriverpassedtomac80211’srxfunction(ieee80211_rx)with
rx_statusinfoforeachinterfacethatthepacketmightbelongtoRXhandlersareinvokeddata:convertedto802.3,deliveredtonetworkingstackmanagement:deliveredtoMLMEMainflows–transmitpathpackethandedtovirtualinterface’sieee80211_subif_start_xmitconvertedto802.11formatsenttomasterinterfacepackethandedtoieee80211_master_start_xmittransmithandlersrun,controlinformationcreatedpacketgiventodrivertransmithandlersieee80211_tx_h_check_associeee80211_tx_h_ps_bufieee80211_tx_h_select_keyieee80211_tx_h_michael_mic_addieee80211_tx_h_rate_ctrlieee80211_tx_h_miscieee80211_tx_h_seq
溫馨提示
- 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ù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 紙漿篩選與凈化設(shè)備的運(yùn)行與維護(hù)考核試卷
- 海洋油氣開采中的海洋生物多樣性保護(hù)考核試卷
- 紙板容器生命周期分析考核試卷
- 終端設(shè)備在水下通信技術(shù)考核試卷
- 林業(yè)與地方特色農(nóng)產(chǎn)品的區(qū)域品牌營(yíng)銷考核試卷
- 纖維素纖維在聲學(xué)材料中的應(yīng)用考核試卷
- 種子種苗在氣候變化適應(yīng)中的作用考核試卷
- 玻璃纖維增強(qiáng)型塑料水處理設(shè)備的制備考核試卷
- 畜禽智能養(yǎng)殖環(huán)境監(jiān)測(cè)與調(diào)控系統(tǒng)考核試卷
- 南京旅游職業(yè)學(xué)院《交通運(yùn)輸工程前沿講座》2023-2024學(xué)年第二學(xué)期期末試卷
- 胸腔穿刺術(shù)課件
- 簡(jiǎn)易呼吸器操作流程及考核評(píng)分表
- 人行天橋施工組織設(shè)計(jì)方案
- 工程設(shè)計(jì)管理規(guī)定
- 學(xué)習(xí)解讀2023年《堤防運(yùn)行管理辦法》《水閘運(yùn)行管理辦法》課件
- 新課標(biāo)背景下課堂教學(xué)中的跨學(xué)科教學(xué)探究 論文
- 安徽筑格橋梁構(gòu)件有限公司高端工程金屬橡膠產(chǎn)品(公路橋梁伸縮裝置、板式橡膠支座、盆式橡膠支座、QZ球形支座、橡膠止水帶等)項(xiàng)目 環(huán)境影響報(bào)告書
- 危險(xiǎn)廢物填埋場(chǎng)
- 視線設(shè)計(jì)、座位排布分析
- YY 0780-2018電針治療儀
- RB/T 039-2020檢測(cè)實(shí)驗(yàn)室儀器設(shè)備計(jì)量溯源結(jié)果確認(rèn)指南
評(píng)論
0/150
提交評(píng)論