dcsimg

What is CIDR notation and how is it used by Webtrends?

Products

Webtrends Analytics 9.x
Webtrends Analytics 8.x

Issue

What is CIDR notation and how is it used by Webtrends?

Resolution

CIDR, aka CIDR notation, stands for “Classless Inter-Domain Routing” and works much like the current telephone numbering system in the United States. That is to say, in the United States, many people may share the same seven-digit phone number, and this is allowed due to the larger networks defined by area code.

Examples:

(215) 555-1212
(512) 555-1212
(503) 555-1212
(305) 555-1212

This area code hierarchy allows a larger regional network to be divided into many smaller networks, which then allows secondary backbone switches to be relied upon for the local regional traffic, and the primary switches would manage the general larger area traffic.

In prior methods Class A, B, and C addresses were given a standard prefix of 8, 16, or 24-bits. With the new method, CIDR, prefixes range from 13 to 32-bits. Because of this, IP blocks can be assigned in a range of 1 to 524,288 hosts.

Webtrends uses CIDR notation for IP addresses in two ways. The first use is IP address filtering. Often, an enterprise will use IP address filters to exclude traffic from certain users, groups, or machines, such as performance monitors. When excluding multiple ranges, the amount of data for an entry can become overwhelming. CIDR notation can be used to specify a range of specific IP addresses. The second way in which Webtrends uses CIDR Notation is with the configuration of Intranet Management. If certain blocks of IP addresses belong to certain departments the range (using CIDR notation, of course) may be assigned to the individual department.

Examples:

192.168.15.0/27 would assign 192.168.15.0 – 192.168.15.31 to Marketing
192.168.15.32/26 would assign 192.168.15.32 – 192.168.15.95 to IT
192.168.15.96/27 would assign 192.168.15.96 – 192.168.15.127 to Sales

From the example above, 0/27 represents the range from 0 – 31, with the number before the slash specifying the starting address (192.168.15.0) and the number after the slash specifying the number of bits total. Each octet is eight bits, so the value of 27 includes the first three octets (eight bits for each) and three bits of the last octet. These three bits assign the scope of the range from highest value down, so the bit values of 256, 128, and 64 are not used, leaving 32 (the next highest value) as the number of available addresses on the subnet: 192.168.15.0 – 192.168.15.31.

CIDR PrefixDotted Decimal# of Individual# of Classful Length Addresses/Networks
/13255.248.0.0512K8 Bs or 2048 Cs
/14255.252.0.0256K4 Bs or 1024 Cs
/15255.254.0.0128K2 Bs or 512 Cs
/16255.255.0.064K1 B or 256 Cs
/17255.255.128.032K128 Cs
/18255.255.192.016K64 Cs
/19255.255.224.08K32 Cs
/20255.255.240.04K16 Cs
/21255.255.248.02K8 Cs
/22255.255.252.01K4 Cs
/23255.255.254.05122 Cs
/24255.255.255.02561 C
/25255.255.255.1281281/2 C
/26255.255.255.192641/4 C
/27255.255.255.224321/8 C
/28255.255.255.240161/16 C
/29255.255.255.24881/32 C
/30255.255.255.25241/64 C
/31255.255.255.25421/128 C
/32255.255.255.25511/256 C