Oracle® VM Server for SPARC 3.3 Administration Guide

Exit Print View

Updated: October 2015
 
 

Virtual Network Device

A virtual network device is a virtual device that is defined in a domain connected to a virtual switch. A virtual network device is managed by the virtual network driver, and it is connected to a virtual network through the hypervisor using logical domain channels (LDCs).

A virtual network device can be used as a network interface with the name vnetn, which can be used like any regular network interface and configured with the Oracle Solaris 10 ifconfig command or the Oracle Solaris 11 ipadm command.


Note - For Oracle Solaris 11, the devices are assigned generic names, so vnetn would use a generic name, such as net0.

You can add a virtual network device to a domain, set options for an existing virtual network device, and remove a virtual network device by using the ldm add-vnet, ldm set-vnet, and ldm rm-vnet commands, respectively. See the ldm(1M) man page.

See the information about Oracle VM Server for SPARC networking for Oracle Solaris 10 and Oracle Solaris 11 in Figure 11 and Figure 10, respectively.

Inter-Vnet LDC Channels

    By default, the Logical Domains Manager would assign LDC channels in the following manner:

  • An LDC channel would be assigned between the virtual network devices and the virtual switch device.

  • An LDC channel would be assigned between each pair of virtual network devices that are connected to the same virtual switch device (inter-vnet).

The inter-vnet LDC channels are configured so that virtual network devices can communicate directly to achieve high guest-to-guest communications performance. However, as the number of virtual network devices in a virtual switch device increases, the number of required LDC channels for inter-vnet communications increases quadratically.

You can choose to enable or disable inter-vnet LDC channel allocation for all virtual network devices attached to a given virtual switch device. By disabling this allocation, you can reduce the consumption of LDC channels, which are limited in number.

    Disabling this allocation is useful in the following situations:

  • When guest-to-guest communications performance is not of primary importance

  • When a large number of virtual network devices are required in a virtual switch device

By not assigning inter-vnet channels, more LDC channels are available for use to add more virtual I/O devices to a guest domain.


Note - If guest-to-guest performance is of higher importance than increasing the number of virtual network devices in the system, do not disable inter-vnet LDC channel allocation.

You can use the ldm add-vsw and the ldm set-vsw commands to specify a value of on or off for the inter-vnet-link property.

The following figure shows a typical virtual switch that has three virtual network devices. The inter-vnet-link property is set to on, which means that inter-vnet LDC channels are allocated. The guest-to-guest communications between vnet1 and vnet2 is performed directly without going through the virtual switch.

Figure 12  Virtual Switch Configuration That Uses Inter-Vnet Channels

image:Diagram shows a virtual switch configuration that uses inter-vnet channels.

The following figure shows the same virtual switch configuration with the inter-vnet-link property set to off. The inter-vnet LDC channels are not allocated. Fewer LDC channels are used than when the inter-vnet-link property is set to on. In this configuration, guest-to-guest communications between vnet1 and vnet2 must go through vsw1.


Note - Disabling the assignment of inter-vnet LDC channels does not prevent guest-to-guest communications. Instead, all guest-to-guest communications traffic goes through the virtual switch rather than directly from one guest domain to another guest domain.

Figure 13  Virtual Switch Configuration That Does Not Use Inter-Vnet Channels

image:Diagram shows a virtual switch configuration that does not use inter-vnet channels.