09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

application-wide tags, which are used within an ASN.1 module;<br />

context-specific tags, which are used <strong>to</strong> describe specific structured data<br />

types; and private tags, which are used for special purpose data types. In<br />

addition <strong>to</strong> <strong>the</strong> creation of classed data types, tagged data types also support<br />

<strong>the</strong> use of specific semantics <strong>to</strong> defined specific data value ranges. This is<br />

known as subtyping. To create <strong>the</strong> SMI-defined, SNMP-specific,<br />

application-wide data types, ASN.1 application-class tags are used with<br />

subtyping. These are defined in Table 11.5.<br />

Table 11.5. SMI-Defined Application-Wide Data Types<br />

Data Type Description<br />

IpAddress ::=<br />

[APPLICATION 0]<br />

IMPLICT OCTET<br />

STRING (SIZE(4))<br />

Counter ::=<br />

[APPLICATION 1]<br />

IMPLICT INTEGER<br />

(0..4294967295)<br />

Gauge ::=<br />

[APPLICATION 2]<br />

IMPLICT INTEGER<br />

(0..4294967295)<br />

TimeTicks ::=<br />

[APPLICATION 0]<br />

IMPLICT INTEGER<br />

(0..4294967295)<br />

Opaque::=<br />

[APPLICATION 0]<br />

IMPLICT INTEGER<br />

(0..4294967295)<br />

S<strong>to</strong>res an IP address in four 8-bit octets.<br />

An undefined variable counter that can s<strong>to</strong>re<br />

increments up <strong>to</strong> 429,967,295. After it reaches <strong>the</strong><br />

maximum defined value, it returns <strong>to</strong> zero and<br />

counts up again.<br />

An undefined variable that can be any range between<br />

0 and 429,967,295. The value can increase or<br />

decrease between <strong>the</strong> set ranges. However, after <strong>the</strong><br />

minimum or maximum of <strong>the</strong> range is reached, <strong>the</strong><br />

value will remain at that value until <strong>the</strong> value shifts<br />

<strong>to</strong>ward <strong>the</strong> opposite range. Like a speedometer with<br />

a range between 0 and 80, <strong>the</strong> car can be traveling at<br />

90, but <strong>the</strong> speedometer reads 80.<br />

A counter that increments in hundredths of a second<br />

from a specified event. The counter maximum is 497<br />

days, at which point <strong>the</strong> counter returns <strong>to</strong> 0.<br />

This data type can be used <strong>to</strong> s<strong>to</strong>re data types that<br />

are outside of <strong>the</strong> SMI definition. The data can be any<br />

random information type that can be represented in<br />

<strong>the</strong> integer range between -2,147,483,648 <strong>to</strong><br />

2,147,483,648.<br />

• Structured—ASN.1 structured (or constructed) data types provide <strong>the</strong><br />

capability <strong>to</strong> represent a collection of one or more simple data types. There<br />

are two ASN.1 structured data types used for this function: SEQUENCE and

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!