RSSServer文档格式.docx
- 文档编号:877449
- 上传时间:2023-04-29
- 格式:DOCX
- 页数:24
- 大小:514.58KB
RSSServer文档格式.docx
《RSSServer文档格式.docx》由会员分享,可在线阅读,更多相关《RSSServer文档格式.docx(24页珍藏版)》请在冰点文库上搜索。
Theinformationinthispaperappliestothefollowingoperatingsystems:
WindowsVistaSP1
WindowsServer2008
Referencesandresourcesdiscussedherearelistedattheendofthispaper.
Forthelatestinformation,see:
Disclaimer:
Thisisapreliminarydocumentandmaybechangedsubstantiallypriortofinalcommercialreleaseofthesoftwaredescribedherein.
TheinformationcontainedinthisdocumentrepresentsthecurrentviewofMicrosoftCorporationontheissuesdiscussedasofthedateofpublication.BecauseMicrosoftmustrespondtochangingmarketconditions,itshouldnotbeinterpretedtobeacommitmentonthepartofMicrosoft,andMicrosoftcannotguaranteetheaccuracyofanyinformationpresentedafterthedateofpublication.
ThisWhitePaperisforinformationalpurposesonly.MICROSOFTMAKESNOWARRANTIES,EXPRESS,IMPLIEDORSTATUTORY,ASTOTHEINFORMATIONINTHISDOCUMENT.
Complyingwithallapplicablecopyrightlawsistheresponsibilityoftheuser.Withoutlimitingtherightsundercopyright,nopartofthisdocumentmaybereproduced,storedinorintroducedintoaretrievalsystem,ortransmittedinanyformorbyanymeans(electronic,mechanical,photocopying,recording,orotherwise),orforanypurpose,withouttheexpresswrittenpermissionofMicrosoftCorporation.
Microsoftmayhavepatents,patentapplications,trademarks,copyrights,orotherintellectualpropertyrightscoveringsubjectmatterinthisdocument.ExceptasexpresslyprovidedinanywrittenlicenseagreementfromMicrosoft,thefurnishingofthisdocumentdoesnotgiveyouanylicensetothesepatents,trademarks,copyrights,orotherintellectualproperty.
Unlessotherwisenoted,theexamplecompanies,organizations,products,domainnames,e-mailaddresses,logos,people,placesandeventsdepictedhereinarefictitious,andnoassociationwithanyrealcompany,organization,product,domainname,emailaddress,logo,person,placeoreventisintendedorshouldbeinferred.
©
2008MicrosoftCorporation.Allrightsreserved.
Microsoft,Windows,WindowsServer,andWindowsVistaareeitherregisteredtrademarksortrademarksofMicrosoftCorporationintheUnitedStatesand/orothercountries.
Thenamesofactualcompaniesandproductsmentionedhereinmaybethetrademarksoftheirrespectiveowners.
DocumentHistory
Date
Change
Firstpublication
Contents
Introduction3
PacketReceive-ProcessingLimitationswithoutRSS3
PacketReceive-ProcessingwithRSS4
RSSAlgorithm4
RSSVersusnon-RSSReceiveProcessing4
RSSSetup6
RSSCapabilitiesAdvertisement6
ConfiguringtheRSSParameters7
SelectionofCPUsEligibleforRSS8
SelectionoftheDefaultRSSHashFunction9
ToeplitzHashFunctionSpecification9
MappingPacketstoProcessors11
PacketReceiveProcessingwithRSS12
RSSImplementation12
RSSandMSI-X13
ExampleRSSNICwithMSI-XCapability13
RSSLoad-BalancingImplementationinWindowsServer200816
RSSConfigurationParameters16
RSSLimitations17
Resources18
Introduction
Today’ssystemshaveanincreasingnumberofCPUs.TheabilityofthenetworkingprotocolstackoftheWindows®
operatingsystemtoscalewellonamulti-CPUsystemisrestricted.ThisrestrictioniscausedbythearchitectureoftheNetworkDriverInterfaceSpecification(NDIS)inWindowsServer®
2003andearlierversions,whichlimitsreceiveprotocolprocessingtoasingleCPUatanyonetime.Receive-sidescaling(RSS)resolvesthisissuebyallowingthenetworkloadfromanetworkadaptertobedistributedacrossmultipleCPUs.
ThispaperisforthetechnicalcommunitythatwantstogaindeeperinsightintohowRSSoperatesinWindowsServer2008.Itprovidesspecificinsightsintoimplementationissuesforindependenthardwarevendors(IHVs),andfororiginalequipmentmanufacturers(OEMs)andsystemadministratorswhowanttounderstandhowthetechnologyworks.
WindowsServer2003SP1andearlierversionsallowsonlyasingledeferredprocedurecall(DPC)foreachnetworkadaptertoexecuteatanyonetime.WindowsServer2003SP2andnewerversionsofWindowsServerthatuseRSSenablemultipleDPCsondifferentCPUsforeachinstanceofanetworkadapterminiportdriver,whiletheypreservein-orderdeliveryofmessagesonaper-streambasis.RSSalsosupportsdynamicloadbalancing,asecurehashingmechanism,parallelinterrupts,andparallelDPCs.
TheinformationinthispaperappliestoWindowsServer2008andWindowsVista®
SP1unlessotherwisenoted.
PacketReceive-ProcessingLimitationswithoutRSS
WindowsServer2003SP1andearlierversionsdonotallowmultipleprocessorstoconcurrentlyprocessreceiveindicationsfromasingle-networkadapter.NDISversion
5.xwasincludedwithWindowsServer2003SP1andearlierversions.Inthisversion,apacketthatisreceivedfromthenetworkonaspecificnetworkadaptermanifestsitselfasaninterrupttothehostprocessorfromthenetworkadapterandeventuallycausesaDPCtobequeuedononeofthesystemprocessors.TheDPCrunstocompletion,typicallyontheprocessorthathostedtheinterrupt,andadditionalinterruptsfromthenetworkadapteraredisableduntiltheDPCcompletesitscycle.
Manyscenarios,suchaslargefiletransmissions,requirethehostprotocolstacktoperformsignificantworkinthecontextofreceiveDPCprocessing(forexample,sendingoutnewdataorperformingmemorycopy).Inthesescenarios,thelackofparallelisminNDISv5.xpacketreceiveprocessingresultsinanoveralllackofscaling.
Inaddition,somecontemporaryCPUsandchipsetsrouteallinterruptsfromasinglenetworkadaptertoonespecificprocessor,whichresultsinasimilarlackofparallelism.Therefore,scalingissuesonlyincreasebecauseoneCPUhandlesalldeviceinterrupts.
PacketReceive-ProcessingwithRSS
Thesingle-CPUprocessingissuesareresolvedbyimplementingRSS.Thistechnologyenablesreceiveprocessingtobebalancedacrossmultipleprocessorsinthesystemwhilein-orderdeliveryofthedataismaintained.RSSenablesparallelDPCs.Inaddition,inWindowsServer2008andlaterversionsifthecomputerandnetworkadaptersupportit,RSSenablesparallelinterrupts.
RSSprovidesthefollowingbenefits:
∙Parallelreceiveprocessing.
ReceivepacketsfromasinglenetworkadaptercanbeindicatedbygeneratinginterruptsandDPCsconcurrentlyonmultipleCPUs.
∙Preservingin-orderpacketdelivery.
ReceivedpacketsforaspecificstreamfromasinglenetworkadapteraredeliveredinordertotheTCP/IPprotocoldriver.
∙Dynamicloadbalancing.
Assystemloadonthehostvaries,RSSrebalancesthenetworkprocessingloadamongtheprocessors.
∙Cachelocality.
Becausepacketsfromasingleconnectionaremappedtoaspecificprocessor,stateforaparticularconnectionstaysresidentinthecacheoftheprocessor.Thiseliminatescachethrashingandalsoimprovesperformance.
∙Send-sidescaling.
TheTCP/IPprotocolpassestheRSShashvaluetotheNICineachpacketontheegresspath,whichallowsthesendcompletionstobeindicatedonthesameCPU.Thisenablesbetterscalingonthesendside.
∙Toeplitzhashing.
ThedefaultgeneratedRSSsignatureisstatisticallysecure.Thismakesitmoredifficultformaliciousremotehoststoforcethesystemintoanunbalancedstate.
RSSAlgorithm
ThissectiondefinestheRSSalgorithmandcontrastsitwiththenon-RSSpacketprocessingalgorithm.Generally,RSSenablespacketsfromasinglenetworkadaptertobeprocessedinparallelonmultipleCPUswhileitpreservesin-orderdeliverytoTCPconnections.
RSSVersusnon-RSSReceiveProcessing
TheNDIS5.1architectureforprocessingincomingpacketsisimplantedinWindowsServer2003andearlierversions.Anetworkadaptervendortypicallyimplementsthisarchitecturebytakingadvantageofareceivedescriptorqueuebetweenthenetworkadapterandtheminiportadaptertopassper-packetinformation.Thepacketsareprocessedinthefollowingsequence:
1.Aspacketsarriveoffthewireatthenetworkadapter,thepacketcontentsaretransferredintohostmemorybyusingdirectmemoryaccess(DMA),andareceivedescriptoristransferredintothereceivedescriptorqueue(againthroughDMA).Aninterruptiseventuallypostedtothehosttoindicatethatnewdataispresent.Exactlywhentheinterruptfiresdependsontheinterruptmoderationscheme.
2.Dependingonthesystem’schipsetandCPUs,eithertheinterruptisdistributedtooneofthehostprocessorsoritisalwaysroutedtothesameprocessor.
3.Ifadditionalpacketsarriveatthenetworkadapter,thendataanddescriptorsaretransferredtohostmemorybyusingDMA.Aninterruptisnotfired.
4.Theinterruptserviceroutine(ISR)runsonthehostprocessortowhichtheinterruptwasrouted,whichdisablesfurtherinterruptsfromthenetworkadapter.TheISRthenschedulestheminiportadapter’sDPCtorunonaspecificprocessor—usuallythes
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- RSSServer
![提示](https://static.bingdoc.com/images/bang_tan.gif)