Previous page

Next page

Locate page in Contents

Print this page

Setting Up Network Accounting and Shaping

Parallels Infrastructure Manager allows you to track the inbound and outbound network traffic as well as to shape (limit) the outgoing traffic for Containers. In order to provide the ability to distinguish between domestic and international traffic, a concept of network classes is introduced. It is important to fully understand this notion, because network classes IDs are used in essentially all network traffic parameters. A network class is a range of IP addresses for which the Virtuozzo Containers software counts and shapes the traffic.

Virtuozzo Containers 4.0 can have up to 15 different network classes specified. Each class can contain one or more IP address ranges. It is possible to have different bandwidth shaping settings for each class.

Each network class has an ID represented by an integer number and a range of IP addresses presented in the form of ip_address/prefix_length (which conforms to the Classless Inter-Domain Routing scheme).

Class 1 has a special meaning. It is defined by the Virtuozzo Containers software to match any IP address and is always present in the Virtuozzo system. Other classes should be defined after Class 1. They represent exceptions from the "matching-everything" rule of Class 1.

Let us consider one of the possible situations. One of the classes (let it be the default Class 1) corresponds to the domestic traffic, and Class 2 is supposed to account for the foreign traffic. The foreign traffic goes thru the addresses in two ranges: from 10.0.0.0 to 10.255.255.255 and from 11.0.0.0 to 11.255.255.255 with the exception of addresses in the sub-range of 10.10.16.0 to 10.10.16.255, which are treated as domestic traffic, as well as all other IP addresses. Then the classes configuration shall look like the following:

Class Definition

Explanation

1 0.0.0.0/0

Any IP address (all traffic)

2 10.0.0.0/8

Addresses for the "foreign" traffic

2 11.0.0.0/8

More addresses for the "foreign" traffic

1 10.10.16.0/24

Inside the "foreign" network there is a hole belonging to the "local" traffic

As far as the Class 2 addresses in this example are used for foreign routing, the Class 1 addresses are used for local (domestic) routing, by the exclusion method.

In This Section

Managing Network Accounting and Shaping on Hardware Node

Managing Network Shaping for Single Container

Please send us your feedback on this help page