study

TNAPI – Multithreaded-NAPI

TNAPI – Multithreaded-NAPI.

Interrupt 방식이 아닌 polling 방식을 사용하고, kernel의 TCP/IP 스택을 거치지 않도록 해서 user application이 패킷을 보다 빨리 수신할 수 있도록 함.

단 Kernel의 TCP/IP stack을 거치지 않으므로 일반 application으로 쓰기에는 제한이 있음 – ARP resolution, IP routing, TCP connection 관리 등을 직접하거나 커널의 서비스를 일일이 이용해야 함.

결과적으로 일반적인 application의 용도보다는 packet monitoring의 목적이 강함.

http://silicom-usa.com/Article.aspx?Item=754&Section=745&ln=en

Thanks to efficient memory usage and optimization for reducing packet latency, TNAPI allows to network monitoring application increase up to 30% packet capture speed with respect to PF_RING-aware drivers. TNAPI drivers are designed uniquely for improving packet capture performance and not for general purpose networking; they can be exploited only by PF_RING-based applications.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s