版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Unit7WiFiandBluetooth[117]
TextA
HowWiFiWorks?[125]
TextB
Bluetooth[133]参考译文WiFi是如何工作的?
Ifyou'vebeenatanairport,inacoffeeshop,alibraryorahotelrecently,chancesareyou'vebeenrightinthemiddleofawirelessnetwork.Manypeoplealsousewirelessnetworking,alsocalledWiFior802.11networking,toconnecttheircomputersathome,andsomecitiesaretryingtousethetechnologytoprovidefreeorlow-costInternetaccesstoresidents.HowWiFiWorks?Inthenearfuture,wirelessnetworkingmaybecomesowidespreadthatyoucanaccesstheInternetjustaboutanywhereatanytime,withoutusingwires.(SeeFigure7.1)
WirelessnetworksmakeiteasytoconnecttotheInternet.
Figure7.1WiFiworkswithoutusingwires
WiFihasalotofadvantages.Wirelessnetworksareeasytosetupandinexpensive.They'realsounobtrusive—unlessyou'reonthelookoutforaplacetouseyourlaptop,youmaynotevennoticewhenyou'reinahotspot.Inthisarticle,we'lllookatthetechnologythatallowsinformationtotravelovertheair.We'llalsoreviewwhatittakestocreateawirelessnetworkinyourhome.
1.WhatIsWiFi?
Awirelessnetworkusesradiowaves,justlikecellphones,televisionsandradiosdo.Infact,communicationacrossawirelessnetworkisalotliketwo-wayradiocommunication.Here'swhathappens:
·Acomputer'swirelessadaptertranslatesdataintoaradiosignalandtransmitsitusinganantenna.
·
Awirelessrouterreceivesthesignalanddecodesit.TheroutersendstheinformationtotheInternetusingaphysical,wiredEthernetconnection.
Theprocessalsoworksinreverse,withtherouterreceivinginformationfromtheInternet,translatingitintoaradiosignalandsendingittothecomputer'swirelessadapter.
TheradiosusedforWiFicommunicationareverysimilartotheradiosusedforwalkietalkies,cellphonesandotherdevices.Theycantransmitandreceiveradiowaves,andtheycanconvert1sand0sintoradiowavesandconverttheradiowavesbackinto1sand0s.ButWiFiradioshaveafewnotabledifferencesfromotherradios:
·Theytransmitatfrequenciesof2.4GHzor5GHz.Thisfrequencyisconsiderablyhigherthanthefrequenciesusedforcellphones,walkie-talkiesandtelevisions.Thehigherfrequencyallowsthesignaltocarrymoredata.
·
Theyuse802.11networkingstandards,whichcomeinseveralflavors:802.11atransmitsat5GHzandcanmoveupto54megabitsofdatapersecond.ItalsousesOrthogonalFrequency-DivisionMultiplexing(OFDM),amoreefficientcodingtechniquethatsplitsthatradiosignalintoseveralsub-signalsbeforetheyreachareceiver.Thisgreatlyreducesinterference.802.11bistheslowestandleastexpensivestandard.Forawhile,itscostmadeitpopular,butnowit'sbecominglesscommonasfasterstandardsbecomelessexpensive.802.11btransmitsinthe2.4GHzfrequencybandoftheradiospectrum.Itcanhandleupto11megabitsofdatapersecond,anditusesComplementaryCodeKeying(CCK)modulationtoimprovespeeds.802.11gtransmitsat2.4GHzlike802.11b,butit'salotfaster—itcanhandleupto54megabitsofdatapersecond.802.11gisfasterbecauseitusesthesameOFDMcodingas802.11a.802.11nistheneweststandardthatiswidelyavailable.Thisstandardsignificantlyimprovesspeedandrange.Forinstance,although802.11gtheoreticallymoves54megabitsofdatapersecond,itonlyachievesreal-worldspeedsofabout24megabitsofdatapersecondbecauseofnetworkcongestion.802.11n,however,reportedlycanachievespeedsashighas140megabitspersecond.
·
Other802.11standardsfocusonspecificapplicationsofwirelessnetworks,likeWideAreaNetworks(WANs)insidevehiclesortechnologythatletsyoumovefromonewirelessnetworktoanotherseamlessly.
·WiFiradioscantransmitonanyofthreefrequencybands.Or,theycan"frequencyhop"rapidlybetweenthedifferentbands.Frequencyhoppinghelpsreduceinterferenceandletsmultipledevicesusethesamewirelessconnectionsimultaneously.
Aslongastheyallhavewirelessadapters,severaldevicescanuseoneroutertoconnecttotheInternet.Thisconnectionisconvenient,virtuallyinvisibleandfairlyreliable;however,iftherouterfailsoriftoomanypeopletrytousehigh-bandwidthapplicationsatthesametime,userscanexperienceinterferenceorlosetheirconnections.
2.WiFiHotspots
IfyouwanttotakeadvantageofpublicWiFihotspotsorstartawirelessnetworkinyourhome,thefirstthingyou'llneedtodoismakesureyourcomputerhastherightgear.Mostnewlaptopsandmanynewdesktopcomputerscomewithbuilt-inwirelesstransmitters.Ifyourlaptopdoesn't,youcanbuyawirelessadapterthatplugsintothePCcardslotorUSBport(SeeFigure7.2).DesktopcomputerscanuseUSBadapters,oryoucanbuyanadapterthatplugsintothePCIslotinsidethecomputer'scase.Manyoftheseadapterscanusemorethanone802.11standard.
Wirelessadapterscanplugintoa
computer'sPCcardslotorUSBport.
Figure7.2Wirelessadapters
Onceyou'veinstalledyourwirelessadapterandthedriversthatallowittooperate,yourcomputershouldbeabletoautomaticallydiscoverexistingnetworks.ThismeansthatwhenyouturnyourcomputeroninaWiFihotspot,thecomputerwillinformyouthatthenetworkexistsandaskwhetheryouwanttoconnecttoit.Ifyouhaveanoldercomputer,youmayneedtouseasoftwareprogramtodetectandconnecttoawirelessnetwork.
BeingabletoconnecttotheInternetinpublichotspotsisextremelyconvenient.Wirelesshomenetworksareconvenientaswell.Theyallowyoutoeasilyconnectmultiplecomputersandtomovethemfromplacetoplacewithoutdisconnectingandreconnectingwires.
3.BuildingaWirelessNetwork
Ifyoualreadyhaveseveralcomputersnetworkedinyourhome,youcancreateawirelessnetworkwithawirelessaccesspoint.Ifyouhaveseveralcomputersthatarenotnetworked,orifyouwanttoreplaceyourEthernetnetwork,you'llneedawirelessrouter.Thisisasingleunitthatcontains:
·AporttoconnecttoyourcableorDSLmodem;
·Arouter;
·AnEthernethub;
·Afirewall;
·Awirelessaccesspoint.
AwirelessrouterallowsyoutousewirelesssignalsorEthernetcablestoconnectyourcomputerstooneanother,toaprinterandtotheInternet.Mostroutersprovidecoverageforabout100feet(30.5meters)inalldirections,althoughwallsanddoorscanblockthesignal.Ifyourhomeisverylarge,youcanbuyinexpensiverangeextendersorrepeaterstoincreaseyourrouter'srange.
Aswithwirelessadapters,manyrouterscanusemorethanone802.11standard.802.11broutersareslightlylessexpensive,butbecausethestandardisolder,they'reslowerthan802.11a,802.11gand802.11nrouters.Mostpeopleselectthe802.11goptionforitsspeedandreliability.
Onceyoupluginyourrouter,itshouldstartworkingatitsdefaultsettings(SeeFigure7.3).MostroutersletyouuseaWebinterfacetochangeyoursettings.Youcanselect:
·
Thenameofthenetwork,knownasitsServiceSetIDentifier(SSID)—Thedefaultsettingisusuallythemanufacturer'sname.
·Thechannelthattherouteruses—Mostroutersusechannel6bydefault.Ifyouliveinanapartmentandyourneighborsarealsousingchannel6,youmayexperienceinterference.Switchingtoadifferentchannelshouldeliminatetheproblem.
Awirelessrouterusesanantennatosendsignalsto
wirelessdevicesandawiretosendsignalstotheInternet.
Figure7.3Wirelessrouter
·Yourrouter'ssecurityoptions—Manyroutersuseastandard,publiclyavailablesign-on,
soit'sagoodideatosetyourownusernameandpassword.
Securityisanimportantpartofahomewirelessnetwork,aswellaspublicWiFihotspots.Ifyousetyourroutertocreateanopenhotspot,anyonewhohasawirelesscardwillbeabletouseyoursignal.Mostpeoplewouldratherkeepstrangersoutoftheirnetwork,though.Doingsorequiresyoutotakeafewsecurityprecautions.
It'salsoimportanttomakesureyoursecurityprecautionsarecurrent.TheWiredEquivalencyPrivacy(WEP)securitymeasurewasoncethestandardforWANsecurity.TheideabehindWEPwastocreateawirelesssecurityplatformthatwouldmakeanywirelessnetworkassecureasatraditionalwirednetwork.ButhackersdiscoveredvulnerabilitiesintheWEPapproach,andtodayit'seasytofindapplicationsandprogramsthatcancompromiseaWANrunningWEPsecurity.
Tokeepyournetworkprivate,youcanuseoneofthefollowingmethods:
·WiFiProtectedAccess(WPA)isastepupfromWEPandisnowpartofthe802.11iwirelessnetworksecurityprotocol.ItusesTemporalKeyIntegrityProtocol(TKIP)encryption.AswithWEP,WPAsecurityinvolvessigningonwithapassword.MostpublichotspotsareeitheropenoruseWPAor128-bitWEPtechnology,thoughsomestillusethevulnerableWEPapproach.
·MediaAccessControl(MAC)addressfilteringisalittledifferentfromWEPorWPA.It
doesn'tuseapasswordtoauthenticateusers—itusesacomputer'sphysicalhardware.EachcomputerhasitsownuniqueMACaddress.MACaddressfilteringallowsonlymachineswithspecificMACaddressestoaccessthenetwork.Youmustspecifywhichaddressesareallowedwhenyousetupyourrouter.Thismethodisverysecure,butifyoubuyanewcomputerorifvisitorstoyourhomewanttouseyournetwork,you'llneedtoaddthenewmachines'MACaddressestothelistofapprovedaddresses.Thesystemisn'tfoolproof.AcleverhackercanspoofaMACaddress—thatis,copyaknownMACaddresstofoolthenetworkthatthecomputerheorsheisusingbelongsonthenetwork.
Wirelessnetworksareeasyandinexpensivetosetup,andmostrouters'Webinterfacesarevirtuallyself-explanatory.
Bluetoothisaproprietaryopenwirelesstechnologystandardforexchangingdataovershort
distances(usingshortwavelengthradiotransmissionsintheISMbandfrom2400-2480MHz)
fromfixedandmobiledevices,creatingPersonalAreaNetworks(PANs)withhighlevelsofsecurity.CreatedbytelecomsvendorEricssonin1994,itwasoriginallyconceivedasawirelessBluetooth
alternativetoRS-232datacables.Itcanconnectseveraldevices,overcomingproblemsofsynchronization.(Seefigure7.4)
Figure7.4BluetoothLogo
1.Implementation
Bluetoothusesaradiotechnologycalledfrequency-hoppingspreadspectrum,whichchopsupthedatabeingsentandtransmitschunksofitonupto79bands(1MHzeach;centeredfrom2402to2480MHz)intherange2,400-2,483.5MHz(allowingforguardbands).ThisrangeisinthegloballyunlicensedIndustrial,ScientificandMedical(ISM)2.4GHzshort-rangeradiofrequencyband.
OriginallyGaussianFrequency-ShiftKeying(GFSK)modulationwastheonlymodulationschemeavailable;subsequently,sincetheintroductionofBluetooth2.0+EDR,π/4-DQPSKand8DPSKmodulationmayalsobeusedbetweencompatibledevices.DevicesfunctioningwithGFSKaresaidtobeoperatinginBasicRate(BR)modewhereaninstantaneousdatarateof1Mbit/sispossible.ThetermEnhancedDataRate(EDR)isusedtodescribeπ/4-DPSKand8DPSKschemes,eachgiving2and3Mbit/srespectively.Thecombinationofthese(BRandEDR)modesinBluetoothradiotechnologyisclassifiedasa"BR/EDRradio".
Bluetoothisapacket-basedprotocolwithamaster-slavestructure.Onemastermaycommunicatewithupto7slavesinapiconet;alldevicessharethemaster'sclock.Packetexchangeisbasedonthebasicclock,definedbythemaster,whichticksat312.5µsintervals.Twoclockticksmakeupaslotof625µs;twoslotsmakeupaslotpairof1250µs.Inthesimplecaseofsingle-slotpacketsthemastertransmitsinevenslotsandreceivesinoddslots;theslave,conversely,receivesinevenslotsandtransmitsinoddslots.Packetsmaybe1,3or5slotslongbutinallcasesthemastertransmitwillbegininevenslotsandtheslavetransmitinoddslots.
Bluetoothprovidesasecurewaytoconnectandexchangeinformationbetweendevicessuch
asfaxes,mobilephones,telephones,laptops,personalcomputers,printers,GlobalPositioningSystem(GPS)receivers,digitalcameras,andvideogameconsoles.
AmasterBluetoothdevicecancommunicatewithamaximumofsevendevicesinapiconet(anad-hoccomputernetworkusingBluetoothtechnology),thoughnotalldevicessupportthislimit.Thedevicescanswitchroles,byagreement,andtheslavecanbecomethemaster(forexample,aheadsetinitiatingaconnectiontoaphonewillnecessarilybeginasmaster,asinitiatoroftheconnection;butmaysubsequentlyprefertobeslave).
TheBluetoothCoreSpecificationprovidesfortheconnectionoftwoormorepiconetstoformascatternet,inwhichcertaindevicessimultaneouslyplaythemasterroleinonepiconetandtheslaveroleinanother.
Atanygiventime,datacanbetransferredbetweenthemasterandoneotherdevice(exceptforthelittle-usedbroadcastmode).Themasterchooseswhichslavedevicetoaddress;typically,itswitchesrapidlyfromonedevicetoanotherinaround-robinfashion.Sinceitisthemasterthatchooseswhichslavetoaddress,whereasaslaveis(intheory)supposedtolistenineachreceiveslot,beingamasterisalighterburdenthanbeingaslave.Beingamasterofsevenslavesispossible;beingaslaveofmorethanonemasterisdifficult.Thespecificationisvagueastorequiredbehaviourinscatternets.
2.Uses
Bluetoothisastandardwire-replacementcommunicationsprotocolprimarilydesignedforlowpowerconsumption,withashortrange(power-class-dependent,buteffectiverangesvaryinpractice;seetablebelow)basedonlow-costtransceivermicrochipsineachdevice.Becausethedevicesusearadio(broadcast)communicationssystem,theydonothavetobeinvisuallineofsightofeachother,howeveraquasiopticalwirelesspathmustbeviable.
Theeffectiverangevariesduetopropagationconditions,materialcoverage,productionsamplevariations,antennaconfigurationsandbatteryconditions.Inmostcasestheeffectiverangeofclass2devicesisextendediftheyconnecttoaclass1transceiver,comparedtoapureclass2network.ThisisaccomplishedbythehighersensitivityandtransmissionpowerofClass1devices.
WhiletheBluetoothCoreSpecificationdoesmandateminimumsforrange,therangeofthetechnologyisapplicationspecificandisnotlimited.Manufacturersmaytunetheirimplementationstotherangeneededtosupportindividualusecases.
2.1Bluetoothprofiles
TouseBluetoothwirelesstechnology,adevicehastobeabletointerpretcertainBluetoothprofiles,whicharedefinitionsofpossibleapplicationsandspecifygeneralbehaviorsthatBluetoothenableddevicesusetocommunicatewithotherBluetoothdevices.Theseprofilesincludesettingstoparameterizeandtocontrolthecommunicationfromstart.Adherencetoprofilessavesthetimefortransmittingtheparametersanewbeforethebi-directionallinkbecomeseffective.ThereareawiderangeofBluetoothprofilesthatdescribemanydifferenttypesofapplicationsorusecasesfordevices.
2.2Listofapplications
AtypicalBluetoothmobilephoneheadset.
·Wirelesscontrolofandcommunicationbetweenamobilephoneandahandsfreeheadset.Thiswasoneoftheearliestapplicationstobecomepopular.
·WirelesscontrolofandcommunicationbetweenamobilephoneandaBluetoothcompatiblecarstereosystem.
·WirelessBluetoothheadsetandIntercom.
·WirelessnetworkingbetweenPCsinaconfinedspaceandwherelittlebandwidthisrequired.
·WirelesscommunicationwithPCinputandoutputdevices,themostcommonbeingthemouse,keyboardandprinter.
·Transferoffiles,contactdetails,calendarappointments,andremindersbetweendeviceswithOBEX.
·ReplacementofpreviouswiredRS-232serialcommunicationsintestequipment,GPSreceivers,medicalequipment,barcodescanners,andtrafficcontroldevices.
·Forcontrolswhereinfraredwasoftenused.
·ForlowbandwidthapplicationswherehigherUSBbandwidthisnotrequiredandcable-freeconnectiondesired.
·SendingsmalladvertisementsfromBluetooth-enabledadvertisinghoardingstoother,discoverable,Bluetoothdevices.
·WirelessbridgebetweentwoIndustrialEthernetnetworks.
·Threeseventh-generationgameconsoles,Nintendo'sWiiandSony'sPlayStation3and
PSPGo,useBluetoothfortheirrespectivewirelesscontrollers.
·Dial-upinternetaccessonpersonalcomputersorPDAsusingadata-capablemobilephoneasawirelessmodem.
·Shortrangetransmissionofhealthsensordatafrommedicaldevicestomobilephone,set-topboxordedicatedtelehealthdevices.
·AllowingaDECTphonetoringandanswercallsonbehalfofanearbycellphone.
·Real-TimeLocationSystems(RTLS),areusedtotrackandidentifythelocationofobjectsinreal-timeusing"Nodes"or"tags"attachedto,orembeddedintheobjectstracked,and"Readers"thatreceiveandprocessthewirelesssignalsfromthesetagstodeterminetheirlocations.
·Personalsecurityapplicationonmobilephonesforpreventionoftheftorlossofitems.
TheprotecteditemhasaBluetoothmarker(e.g.atag)thatisinconstantcommunicationwiththephone.Iftheconnectionisbroken(themarkerisoutofrangeofthephone)thenanalarmisraised.
2.3Bluetoothvs.WiFi(IEEE802.11)
BluetoothandWiFi(thebrandnameforproductsusingIEEE802.11standards)havesomesimilarapplications:settingupnetworks,printing,ortransferringfiles.WiFiisintendedasareplacementforcablingforgenerallocalareanetworkaccessinworkareas.ThiscategoryofapplicationsissometimescalledWirelessLocalAreaNetworks(WLAN).Bluetoothwasintendedforportableequipmentanditsapplications.ThecategoryofapplicationsisoutlinedastheWirelessPersonalAreaNetwork(WPAN).Bluetoothisareplacementforcablinginavarietyofpersonallycarriedapplicationsinanysettingandcanalsosupportfixedlocationapplicationssuchassmartenergyfunctionalityinthehome(thermostats,etc.).
WiFiisawirelessversionofacommonwiredEthernetnetwork,andrequiresconfigurationtosetupsharedresources,transmitfiles,andtosetupaudiolinks(forexample,headsetsandhands-freedevices).WiFiusesthesameradiofrequenciesasBluetooth,butwithhigherpower,resultinginhigherbitratesandbetterrangefromthebasestation.ThenearestequivalentsinBluetootharetheDUNprofile,whichallowsdevicestoactasmodeminterfaces,andthePANprofile,whichallowsforad-hocnetworking.
2.4Devices
ABluetoothUSBdonglewitha100mrange.TheMacBookPro,shown,alsohasabuiltinBluetoothadaptor.
Bluetoothexistsinmanyproducts,suchastheiPodTouch,LegoMindstormsNXT,PlayStation3,PSPGo,telephones,theNintendoWii,andsomehighdefinitionheadsets,modems,andwatches.Thetechnologyisusefulwhentransferringinformationbetweentwoormoredevicesthatareneareachotherinlow-bandwidthsituations.Bluetoothiscommonlyusedtotransfersounddatawithtelephones(i.e.,withaBluetoothheadset)orbytedatawithhand-heldcomputers(transferringfiles).
Bluetoothprotocolssimplifythediscoveryandsetupofservicesbetweendevices.
如果你已经去过机场、咖啡厅、图书馆或宾馆,你很可能已经身在无线网络之中。许多人在家里使用无线网络(被称为“WiFi或802.11联网”)来连接计算机。一些城市也使用该技术为市民提供免费或低价的因特网访问。在不久的将来,无线网络的应用将会非常广泛,你可以不用网线而随时随地访问因特网。WiFi是如何工作的?
WiFi有许多优点:无线网络容易建立,资费也便宜;它们不引人注意—除非你用笔记本刻意寻找,否则当你在热区使用时也感觉不到它的存在。在本文中,我们将研究这种让信息在空中传输的技术,也会讨论在你家中建立无线网络所需的条件。
1.什么是WiFi?
无线网络使用无线电波传播,就如同手机、电视和收音机一样。实际上,通过无线网络的通信与双向无线电通信很像,过程如下:
计算机的无线适配器把数据转换为无线电信号并用天线发射出去。
无线路由器接收到这个信号并解码,然后路由器把信息发送给使用物理的、有线的以太网连接的因特网。
这个过程也可以反过来,路由器从因特网接收信息,然后转换为无线电信号并发送给计算机的无线适配器。用于WiFi通信的无线电与用于步话机、手机和其他设备的无线电几乎一样,它们可以发射和接收无线电波,并可以把一系列的1和0转换为无线电波,也能把无线电波反过来转换为一系列的1和0。但WiFi无线电通信与其他无线电也有一些明显的不同:
它们以2.4GHz或5GHz的频率传输。这个频率比手机、步话机和电视所用的频率高很多。这种较高的频率允许信号携带更多的数据。
它们使用802.11联网标准,802.11联网标准有以下几个部分:802.11a以5GHz的频率传输并且每秒可以传输高达54兆位的数据;它也使用正交频分复用—一种更高效的编码技术—该技术在无线电信号到达接收器之前把它们分为几个子信号,这极大地减少了冲突。802.11b是最慢和最便宜的标准,一度因为便宜而流行。但是,因为更快的标准现在也变得便宜,它就不那么常用了。802.11b以2.4GHz频率的无线电射频波段传输,每秒可以处理11
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 装裱书画合同书
- 完整版夫妻婚内忠诚协议
- 2024年度服装生产设备购置合同
- 借用他人名义购房协议书
- 家具专卖店装修合同下载
- 2024年度建筑节能改造合同4篇
- 污水运输合同协议书
- 土地测绘合同范本
- 创新精神课件英文
- 应当自用工之日起几日内订立书面劳动合同
- 2024年糖尿病指南解读
- 青少年预防艾滋病班会
- 国家太空安全
- 仓库年终安全培训
- 10.1 爱护身体(大单元教学设计) -2024-2025学年统编版道德与法治七年级上册
- 生物人教版2024版七年级上册2.2.1无脊椎动物课件02
- ARCI阿西工作法-副本
- 创业管理实习报告
- 文创产品定制合同范本
- 贲门缩窄术后的护理
- 沪教牛津版英语2024七年级上册全册知识清单(记忆版)
评论
0/150
提交评论