-
公开(公告)号:US08250148B2
公开(公告)日:2012-08-21
申请号:US12185101
申请日:2008-08-03
申请人: Claude Basso , Philippe Damon , Laurent Frelechoux , Brahmanand K. Gorti , Bernard Metzler , Bay V. Nguygen
发明人: Claude Basso , Philippe Damon , Laurent Frelechoux , Brahmanand K. Gorti , Bernard Metzler , Bay V. Nguygen
IPC分类号: G06F15/16
CPC分类号: H04L69/16 , H04L69/163
摘要: A method, computer program product and system for processing TCP/IP packets. A TCP protocol stack may store a payload of a received TCP/IP packet in a data fragment list. The TCP protocol stack may further read the header of the received packet to extract a value used to index into a table storing a list of transport control blocks (TCBs). The TCP protocol stack may further perform a lock and a read operation on the TCB indexed in the table. The TCP protocol stack may further transmit the payload to the TCP application without requiring the application to perform a lock, read, write or unlock operation on the indexed TCB since the TCP protocol stack and the TCP application are operating on the same thread. By the TCP application foregoing the lock, read, write and unlock operations on the TCB, there is a reduction in the number of memory accesses.
摘要翻译: 一种用于处理TCP / IP数据包的方法,计算机程序产品和系统。 TCP协议栈可以将接收到的TCP / IP分组的有效载荷存储在数据片段列表中。 TCP协议栈可以进一步读取接收到的分组的报头,以将用于索引的值提取到存储传输控制块(TCB)列表的表中。 TCP协议栈还可以对表中索引的TCB进行锁定和读取操作。 TCP协议栈可以进一步将有效负载传输到TCP应用,而不需要应用程序对索引的TCB执行锁定,读取,写入或解锁操作,因为TCP协议栈和TCP应用程序在相同的线程上运行。 通过TCP应用程序对TCB进行锁定,读取,写入和解锁操作,存储器访问次数减少。