处理报文的方法和计算机设备技术

技术编号:18625004 阅读:49 留言:0更新日期:2018-08-08 02:03
本发明专利技术公开了一种处理报文的方法和计算机设备。该方法包括:获取服务绑定的第一处理器核标识;根据该第一处理器核标识,以及配置的映射关系信息,确定该服务对应的第一本地端口号,其中,该映射关系信息包括处理器核标识和端口号的映射关系;将该第一本地端口号写入该服务的待发送报文的源端口号字段;将该待发送报文发送到网卡发送队列。本发明专利技术实施例的处理报文的方法和计算机设备,能够提高报文的转发效率。

The method of processing the message and the computer equipment

The invention discloses a method for processing packets and a computer device. The method includes obtaining the first processor core identification of the service binding; determining the first local port number corresponding to the service according to the first processor core identification and the configured mapping relation information, in which the mapping relation information includes the mapping relationship between the processor kernel identity and the port number, and the first local port number is used. The source port number field of the message to be sent to the service; and the sent message to the network card sending queue. The processing method and computer equipment of the embodiment of the invention can improve the forwarding efficiency of the message.

【技术实现步骤摘要】
【国外来华专利技术】PCT国内申请,说明书已公开。

【技术保护点】
PCT国内申请,权利要求书已公开。

【技术特征摘要】
【国外来华专利技术】PCT国内申请,...

【专利技术属性】
技术研发人员:张丰伟徐君戴芬王元钢
申请(专利权)人:华为技术有限公司
类型:发明
国别省市:广东,44

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1