首页> 外国专利> Method and apparatus for classifying a network protocol and aligning a network protocol header relative to cache line boundary

Method and apparatus for classifying a network protocol and aligning a network protocol header relative to cache line boundary

机译:用于对网络协议进行分类并相对于缓存行边界对齐网络协议头的方法和装置

摘要

Techniques for routing a payload of a first network protocol, which includes header information for a second network protocol, include communicating a packet. In a circuit block, a first type for the first network protocol and a second type for the second network protocol are determined. The circuit block stores a classification that indicates a unique combination of the first type and the second type. A general purpose processor routes the packet based on the classification. Processor clock cycles are saved that would be consumed in determining the types. Furthermore, based on the classification, the processor can store an offset value for aligning the header relative to a cache line. The circuit block can store the packet shifted by the offset value. The processor can then retrieve from memory a single cache line to receive the header, thereby saving excess loading and ejecting of cache.
机译:用于路由包括第二网络协议的报头信息的第一网络协议的有效载荷的技术包括传送分组。在电路块中,确定用于第一网络协议的第一类型和用于第二网络协议的第二类型。电路块存储指示第一类型和第二类型的唯一组合的分类。通用处理器基于分类来路由分组。保存处理器时钟周期,这些时钟周期将在确定类型时消耗。此外,基于分类,处理器可以存储用于使报头相对于高速缓存行对准的偏移值。电路块可以存储偏移了偏移值的分组。然后,处理器可以从内存中检索单个高速缓存行以接收标头,从而节省了过多的高速缓存加载和弹出。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号