版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Linux無(wú)線(xiàn)網(wǎng)絡(luò)系統(tǒng)分析孟寧電話(huà)訊微博:@mengning997新浪微博:@孟寧V5E-mail:mengning@主頁(yè):/~mengning地址:蘇州工業(yè)園區(qū)獨(dú)墅湖高等教育區(qū)仁愛(ài)路188號(hào)思賢樓504室2013年6月內(nèi)容組織的邏輯一是硬件上,有哪些東西,他們是如何放置的。硬件:網(wǎng)絡(luò)+有線(xiàn)網(wǎng)絡(luò)?無(wú)線(xiàn)網(wǎng)絡(luò)?80211無(wú)線(xiàn)網(wǎng)絡(luò)二是軟件上,通信協(xié)議上,是如何實(shí)現(xiàn)通信的。軟件:Linux網(wǎng)絡(luò)架構(gòu)?Linux下的80211無(wú)線(xiàn)網(wǎng)絡(luò)架構(gòu)802.11和OSI模型80211WirelessLANBSSstandsforBasicServiceSet.ThecoverageofanaccesspointiscalledaBSS.STAindicatesawirelessdeviceactinginBSSasaregularSTAtion.IBSSstandsforIndependentBasicServiceSet.ItsbasicallyAd-Hocmode.SSIDstandsforServiceSetIDentifier.TheSSIDisacodeattachedtoallpacketsonawirelessnetworktoidentifyeachpacketaspartofthatnetwork.Thecodeconsistsofastringof1-32octets(usuallyrepresentedascasesensitivealphanumericcharacters).無(wú)線(xiàn)信號(hào)傳輸方式窄帶無(wú)線(xiàn)電通信(Narrow-BandRadio)這種技術(shù)類(lèi)似于無(wú)線(xiàn)電臺(tái)的廣播,必須把發(fā)送器和接收器都調(diào)撥到同一頻帶。無(wú)線(xiàn)電信號(hào)可以穿越墻物,在一個(gè)很廣的域內(nèi)傳播,所以不必把它調(diào)聚成束。然而,窄帶射頻發(fā)送有無(wú)線(xiàn)電波反射的問(wèn)題,并受聯(lián)邦通信委員會(huì)管制,它們必須準(zhǔn)確地進(jìn)行調(diào)諧,以防其它頻率的干擾。擴(kuò)展頻譜通信(SpreadSpectrumCommunication)簡(jiǎn)稱(chēng)擴(kuò)頻通信,是一種信息傳輸方式,其信號(hào)所占有的頻帶寬度遠(yuǎn)大于所傳信息必需的最小帶寬。頻帶的擴(kuò)展是通過(guò)一個(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ú)線(xiàn)電通信中遇到的問(wèn)題。用一種編碼來(lái)傳播信號(hào),接收站用同一編碼來(lái)恢復(fù)信號(hào)。用這種方法,擴(kuò)頻無(wú)線(xiàn)電信號(hào)能工作在其它信號(hào)所占據(jù)的頻率范圍內(nèi)。擴(kuò)頻無(wú)線(xiàn)電信號(hào)不會(huì)干涉常規(guī)的無(wú)線(xiàn)電廣播,這是因?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ú)線(xiàn)網(wǎng)絡(luò)架構(gòu)wext/WE是WirelessExtensions的縮寫(xiě)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ú)線(xiàn)網(wǎng)卡設(shè)置為混雜模式的時(shí)候,底層接受到數(shù)據(jù)幀之后,不處理,而是直接傳送給上層處理,一般用于分析無(wú)線(xiàn)網(wǎng)絡(luò)數(shù)據(jù)傳輸?shù)臅r(shí)候,分析網(wǎng)絡(luò)問(wèn)題到底出現(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)益歸上傳用戶(hù)所有。
- 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ì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 2104-2025鋼絲繩包裝、標(biāo)志及質(zhì)量證明書(shū)的一般規(guī)定
- 中山大學(xué)附屬第三醫(yī)院2026年合同人員招聘?jìng)淇碱}庫(kù)及完整答案詳解一套
- 廣西工藝美術(shù)研究院有限公司所屬企業(yè)絹麻所2025年12月招聘?jìng)淇碱}庫(kù)及一套答案詳解
- 2025年浙江大學(xué)中國(guó)農(nóng)村發(fā)展研究院招聘?jìng)淇碱}庫(kù)及答案詳解一套
- 中電科發(fā)展規(guī)劃研究院有限公司2026屆校園招聘?jìng)淇碱}庫(kù)有答案詳解
- 中山大學(xué)附屬第三醫(yī)院粵東醫(yī)院2026年合同人員招聘?jìng)淇碱}庫(kù)及答案詳解一套
- 2025年中建二局商務(wù)管理部招聘?jìng)淇碱}庫(kù)及1套完整答案詳解
- 中國(guó)科學(xué)院空間應(yīng)用工程與技術(shù)中心2026屆校園招聘?jìng)淇碱}庫(kù)及完整答案詳解1套
- 2025年福建省體育局直屬事業(yè)單位面向退役運(yùn)動(dòng)員公開(kāi)招聘工作人員13人備考題庫(kù)有答案詳解
- 中聯(lián)新能源科技開(kāi)發(fā)公司招聘考試真題2024
- 垃圾焚燒發(fā)電廠(chǎng)安全事故
- 2024年城銀清算服務(wù)有限責(zé)任公司招聘考試真題
- 云南中煙工業(yè)公司招聘考試真題2025
- TSG31-2025工業(yè)管道安全技術(shù)規(guī)程解讀
- 內(nèi)蒙古呼和浩特市2024-2025學(xué)年九年級(jí)上學(xué)期1月期末物理試題
- 華能邯峰電廠(chǎng)2025年下半年度應(yīng)屆高校畢業(yè)生招聘易考易錯(cuò)模擬試題(共500題)試卷后附參考答案
- 礦山企業(yè)年終總結(jié)與反思
- 學(xué)業(yè)水平考務(wù)培訓(xùn)
- 2025年新護(hù)士各層級(jí)的崗位職責(zé)試題(附答案)
- 2026年黑龍江農(nóng)墾職業(yè)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試必刷測(cè)試卷新版
- 2026江蘇春季高考語(yǔ)文學(xué)業(yè)考試總復(fù)習(xí):專(zhuān)題07 語(yǔ)言表達(dá)得體(原卷版)
評(píng)論
0/150
提交評(píng)論