📚 CCNP Quantitative Aptitude – Number System
Designed for Cisco CCNP aspirants who need a quick, clear, and concise refresher on number systems.
1. Simple Explanation
A number system (or numeral system) is a way of representing numbers using a set of symbols (digits) and a base (radix).
| Base | Symbols | Typical Use | Example |
|---|---|---|---|
| 2 | 0,1 | Binary (computer logic) | 1011₂ |
| 8 | 0‑7 | Octal (historical, networking) | 17₈ |
| 10 | 0‑9 | Decimal (human everyday) | 23₁₀ |
| 16 | 0‑9, A‑F | Hexadecimal (memory addresses, colors) | 4F₁₆ |
The subscript denotes the base.
Every integer can be uniquely expressed in any base > 1, and fractional parts can be represented using place‑value systems (e.g., binary fractions).
2. Key Points
| Concept | What to Know | Why It Matters |
|---|---|---|
| Place Value | In base B, the i‑th digit from the right has value digit × Bⁱ. | Forms the mathematical foundation for conversions. |
| Conversion (Decimal ↔ Other Bases) | Use repeated division (decimal → other) or repeated multiplication (other → decimal). | Needed for subnet calculations, IP masks, and hardware addressing. |
| Binary Fraction | Each fractional digit after the point represents digit × 2⁻ⁱ. | Helps in understanding IP subnet masks, floating‑point representation. |
| Hexadecimal & Octal in Networking | IPv4 addresses are often written in dotted‑decimal but can be expressed in hex or octal for quick subnetting. | Quick mental math for subnet calculations. |
| Add/Subtract in Binary | Same as decimal but with base 2 carry/borrow rules. | Essential for error‑detecting codes, checksum calculations. |
| Multiplication/Division in Binary | Use shift operations. | Optimizes router CPU operations. |
| Common Shortcuts | Binary of 2ⁿ = 1 followed by n zeros. | Helps in quick subnet mask evaluation. |
| Representing IP Addresses | 32‑bit binary → dotted‑decimal; subnet mask → prefix length (/24). | Core to CCNP networking exams. |
| CIDR Notation | /n means first n bits are network part. |
Key to understanding scalability, route aggregation. |
| Subnetting Example | Given 192.168.1.0/24, find subnets for 50 hosts. |
Typical CCNP problem. |
3. Worked Example
Problem
Convert the decimal number 156 to binary, octal, and hexadecimal. Then represent the binary as a 16‑bit number (for a hypothetical router’s configuration).
Step‑by‑Step
| Conversion | Method | Result |
|---|---|---|
| Decimal → Binary | Repeated division by 2; record remainders. | 156 ÷ 2 = 78 R078 ÷ 2 = 39 R039 ÷ 2 = 19 R119 ÷ 2 = 9 R19 ÷ 2 = 4 R14 ÷ 2 = 2 R02 ÷ 2 = 1 R01 ÷ 2 = 0 R1Read remainders bottom‑up → 10011100₂ |
| Binary → Octal | Group binary in threes from the right. | 100 111 00 → pad left with zeros → 001 001 110 0 → 001 001 110 0 → 001=1, 001=1, 110=6, 0=0 → 116₈ |
| Binary → Hex | Group binary in fours from the right. | 1001 1100 → 1001=9, 1100=C → 9C₁₆ |
| 16‑bit Representation | Pad left with zeros to 16 bits. | 0000000010011100₂ |
Final Answers
| Base | Representation |
|---|---|
| Decimal | 156₁₀ |
| Binary | 0000 0000 1001 1100₂ |
| Octal | 00116₈ |
| Hex | 009C₁₆ |
4. Quick Revision Summary
| Topic | Take‑away |
|---|---|
| Place Value | Digit × baseⁱ |
| Decimal ↔ Binary | Repeated division/multiplication |
| Decimal ↔ Octal / Hex | Group digits in 3 (octal) or 4 (hex) |
| Binary Fractions | ½, ¼, ⅛, … = 2⁻¹, 2⁻², 2⁻³ |
| Binary Arithmetic | Carry/borrow at 2, shift for mul/div |
| IP Addressing | 32‑bit binary = dotted‑decimal; subnet mask → /prefix |
| Subnetting | Use CIDR, 2ⁿ‑2 hosts per subnet (after anchor/padding) |
| Common Conversions | 2ⁿ → 1 followed by n zeros; 10ⁿ → 1 followed by n zeros in respective base |
| Practice | Convert 255, 1024, 4096; subnet 10.0.0.0/8 into /24 blocks |
Final Thought
Mastering number systems gives you a powerful mental toolkit for routing tables, mask calculations, and efficient error checking—all of which are pivotal in the CC