Reza Farashahi — NZSE
Responsible for two data flow control measures:
00:1A:2B:3C:4D:5E) burned in at the factory
| Layer | Name | PDU | Key Function | Example |
|---|---|---|---|---|
| 7 | Application | Data | User interface & protocols | HTTP, SMTP, SSH |
| 6 | Presentation | Data | Format, encrypt, compress | SSL/TLS, JPEG, ASCII |
| 5 | Session | Data | Manage sessions | APIs, NetBIOS |
| 4 | Transport | Segment | Reliable delivery | TCP, UDP |
| 3 | Network | Packet | Logical addressing & routing | IP, ICMP, OSPF |
| 2 | Data Link | Frame | Physical addressing | Ethernet, MAC |
| 1 | Physical | Bit | Signal transmission | Cables, Hubs |
As data moves down the OSI model, each layer adds its own header (and sometimes trailer):
🤔 Discussion Questions
Data travels down the OSI layers on the sending device, across the physical medium, through intermediary devices (switches at Layer 2, routers at Layer 3), and then up the layers on the receiving device.
↕ Each octet = 8 bits = 1 byte
32 bits = 4 bytes = 4 octets
Breaking down the address 192.168.1.131 into its four octets:
| Octet 1 | Octet 2 | Octet 3 | Octet 4 | |
|---|---|---|---|---|
| Decimal | 192 | 168 | 1 | 131 |
| Binary | 11000000 |
10101000 |
00000001 |
10000011 |
| Bits | 8 bits | 8 bits | 8 bits | 8 bits |
An IP address is broken into two parts:
Network Address + Host Address = IP Address
Each device on a network is assigned:
Remember This:
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
Add the value where there is a "1". Add zero when there is a "0".
| 27 = 128 | 26 = 64 | 25 = 32 | 24 = 16 | 23 = 8 | 22 = 4 | 21 = 2 | 20 = 1 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255 | |||||||
Add the value where there is a "1". Add zero when there is a "0".
| 27 = 128 | 26 = 64 | 25 = 32 | 24 = 16 | 23 = 8 | 22 = 4 | 21 = 2 | 20 = 1 |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
| 128 | 0 | 32 | 0 | 8 | 0 | 2 | 0 |
| 128 + 0 + 32 + 0 + 8 + 0 + 2 + 0 = 170 | |||||||
Add the value where there is a "1". Add zero when there is a "0".
| 27 = 128 | 26 = 64 | 25 = 32 | 24 = 16 | 23 = 8 | 22 = 4 | 21 = 2 | 20 = 1 |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| 128 | 0 | 0 | 0 | 0 | 0 | 2 | 1 |
| 128 + 0 + 0 + 0 + 0 + 0 + 2 + 1 = 131 | |||||||
11001100?01100100?Divide by 2 repeatedly. The remainders (read bottom → top) give the binary number:
| Division | Quotient | Remainder |
| 192 ÷ 2 | 96 | 0 |
| 96 ÷ 2 | 48 | 0 |
| 48 ÷ 2 | 24 | 0 |
| 24 ÷ 2 | 12 | 0 |
| 12 ÷ 2 | 6 | 0 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Read remainders ↑ bottom to top: 11000000
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 128 ✓ | 64 ✓ | – | – | – | – | – | – |
| 128 + 64 = 192 → 11000000 | |||||||
Start adding the values from left to right until you reach the target decimal!
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
| 128 ✓ | 64 ✓ | – | – | 8 ✓ | – | 2 ✓ | – |
| 128 + 64 + 8 + 2 = 202 → 11001010 | |||||||
Start adding the values from left to right until you reach the target decimal!
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 |
| – | – | 32 ✓ | 16 ✓ | – | 4 ✓ | 2 ✓ | – |
| 32 + 16 + 4 + 2 = 54 → 00110110 | |||||||
Whether given an IP in dotted-decimal or binary, convert each octet one by one:
| Octet 1 | Octet 2 | Octet 3 | Octet 4 | |
|---|---|---|---|---|
| Decimal | 192 | 168 | 32 | 4 |
| Binary | 11000000 |
10101000 |
00100000 |
00000100 |
192.168.32.4 = 11000000.10101000.00100000.00000100
Click each bit to toggle it ON (1) or OFF (0):
Binary
00000000
Decimal
0
11000000.10101000.00000001.00000001?