《嵌入式网络协议引擎ETA加速网络应用程序处理》由会员分享,可在线阅读,更多相关《嵌入式网络协议引擎ETA加速网络应用程序处理(18页珍藏版)》请在金锄头文库上搜索。
1、嵌入式网络协议引擎嵌入式网络协议引擎(ETA)加速网络应用程序处理加速网络应用程序处理作者:林明峰日期:2003-12概要今天的网络环境和网络操作系统Linux 的tcp/ip stack 的性能嵌入内核的tcp 加速模块ETA的现实应用今天的网络环境和操作系统10G的以太网络带来什么通用处理器必须每67奈秒处理一个数据包 超过通用处理器处理极限协议占用太多时间NP是唯一的解决方案吗?Intel Ixp1200带来好处网络处理器对软件系统结果带来的问题灵活性和高性能的矛盾系统中断 内存拷贝缓冲区管理系统呼叫Tcp/ip协议应用程序只能占用3%谁占用的cpu的时间.Linux 的tcp/ip协议
2、内核的resource manager (ckrm)控制 diskIO 的资源分配控制网络的IO分配目前还不成熟http:/ System ArchitectureLANStorageIPCETA Host InterfaceIP StorageDriverFileSystemKernelApplicationsUser Socket ApplicationsSocketProxy Network stackNetwork stack Virtualized, Virtualized, asynchronous queuing asynchronous queuing and event ha
3、ndlingand event handling Engine Architecture & Engine Architecture & platform integrationplatform integrationNetwork FabricPacket Processing EngineDirect Transport InterfaceETAPacket Processing EngineNICApplication (Kernel or User)Adaptation LayerDTIEventQueueDTIRxQueueDTITxQueueAnonymousBufferPoolD
4、TIDoorbellShared Host MemoryAppBuffersNICDTI Operation Model DTI operations:Connection requests (Connect, Listen, Bind, Accept, Close, )Data transfer requests (Send, Receive)Misc. operations (Set/Get Options,)EVENT AEVENT BEVENT CEventQTxQOP AOP CRxQOP BOP DDTIDoorbellProcess OperationServiceDoorbel
5、lDe-Queue OperationDescriptorPostCompletionEventPostETA InterruptEvent (if waiting)Host ApplicationAdaptation layerETA PPESoftwareGigabit NICs (5)ETA Host InterfaceKernelTestProgramCPU 0Host2.4 GhzCPU 1PPE2.4 GhzOff-the-shelf Linux ServersHostMemoryClientsClientsClientsClientsTestClientsKernelAbstra
6、ction LayerETA Test Environment2P SMP ProfileProcessing requirements in multiple componentsTCP/IP is the largest single component, but is small compared to totalThe copy overhead is required to support legacy (synchronous) socket semanticsInterrupts and system calls are required in order to time-sha
7、re the CPU resourcesETA Profile (1 host CPU + 1 PPE)Processing times are compressedIdle time represents CPU resource that is usable for applicationsAsynchronous queuing interface avoids copy overheadInterrupts avoided by not time-sharing CPUSystem calls avoided by ETA queuing modelETA2P SMPProfile ComparisonsNormalized CPU UsageETA的应用基于内核级别的ids程序独立于操作系统的包获取接管网卡