How to choose the correct xNIC type¶
WHAT TO EXPECT
In this article, users will learn how to determine the best xNIC type to be installed.
xNIC Types¶
xNIC comes in different types, but if not specified differently, the default will be xNIC Type 2. This xNIC type is faster and should always be used unless kernel bypass interferes with the function of the application.
When choosing the type, consider:
- High Availability works on every xNIC type: Type 1, Type 2 (Linux and Windows) and Type 3.
- SLP is available on every xNIC type. It is on by default on Type 3, and off by default on Type 1 and Type 2.
Type 1 or Type 3 are ”overlay” modes that use a tunnel interface. It can be:
- TAP (by default) is Layer 2 (Ethernet frame).
- TUN (can be configured) is Layer 3 (IP packet). It is available on Type 1 only, on Linux and Windows; Type 3 always uses TAP.
The interface flavour is chosen at install (--viface_type <tun|tap> on Linux, -viface_type <tun|tap> on Windows) or later from wXcked Eye.
Users will need to produce and consume through a virtual interface called swx0 (that’s the default name, but it can be changed).
For example, if a program requires packet capture, we would recommend using the TAP interfaces since they would expose packets earlier in the network. Another example would be a video multi-viewer, as these applications typically require more information than just the video packets themselves.
When installing Type 1 or 3, the -t 1 or -t 3 argument should be used during installation. For a complete list of available arguments, see Installing xNIC on Linux or Windows.