Data packet processing method and device
The invention provides a data packet processing method and device, and the method comprises the steps: a first CPU (Central Processing Unit) reads a data packet from a client in a queue associated with the first CPU in a polling mode, and modifies a source IP (Internet Protocol) address of the data...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a data packet processing method and device, and the method comprises the steps: a first CPU (Central Processing Unit) reads a data packet from a client in a queue associated with the first CPU in a polling mode, and modifies a source IP (Internet Protocol) address of the data packet from an IP address of the client to a local IP address of the first CPU, and sending the modified data packet to a service system to which the client requests to access. Therefore, each CPU manages the session processed by the CPU, and no lock conflict exists between different CPUs, so that the processing efficiency of the data packet can be improved.
本发明提供一种数据包处理方法及装置,该方法包括:第一CPU采用轮询方式读取与自身关联的队列中的来自于客户端的数据包,将所述数据包的源IP地址从所述客户端的IP地址修改为所述第一CPU的本地IP地址,将修改后的数据包发送至所述客户端请求访问的业务系统。因此,每个CPU对各自处理的会话进行管理,不同CPU之间没有锁冲突,可以提高数据包的处理效率。 |
---|