IPv4-Subnetting
- Hosts pro Subnetz
- 2(32 − prefix) − 2 (/31: 2, /32: 1)
- Blockgröße
- 256 − (mask octet)
- Netzadresse
- IP AND Maske
- Broadcast-Adresse
- IP OR (NOT Maske): alle Host-Bits auf 1
- Subnetze aus n geliehenen Bits
- 2n
Formelsammlungen, die wichtigsten Lösungsschritte zu jedem Thema und 6 Übungsaufgaben, mit vollständigen Lösungen am Ende.
Das Netz 10.123.55.0/24 wird in gleich große Subnetze mit dem Präfix /28 aufgeteilt. Wie viele Subnetze N gibt es?
Ein Host hat die Adresse 172.20.5.118/20. Wie lautet das dritte Oktett x der Broadcastadresse seines Subnetzes?
Welches Protokoll verwendet der Befehl „ping“?
Wie groß ist die Maximum Transmission Unit (MTU) der Nutzlast bei Standard-Ethernet?
Setze die Bits so, dass sie −110 im 8-Bit-Zweierkomplement speichern. Welchen Wert U hat das Muster, wenn man es als vorzeichenlose Zahl liest?
Was ist die größte vorzeichenlose ganze Zahl N, die in 20 Bits passt?
Antwort: N = 16
IPv4 subnetting: an address has 32 bits. The prefix /p says how many leading bits identify the network; the remaining 32 − p bits number the hosts. A subnet has 2³²⁻ᵖ addresses, but the first (network address) and last (broadcast address) cannot be given to hosts, so 2³²⁻ᵖ − 2 hosts fit. Exceptions: a /31 (point-to-point link, RFC 3021) uses both of its 2 addresses for hosts, and a /32 is one single address (a single host or a loopback).
Jedes /28-Subnetz hat 24 − 2 = 14 nutzbare Hosts.
Antwort: x = 15
IPv4 subnetting: an address has 32 bits. The prefix /p says how many leading bits identify the network; the remaining 32 − p bits number the hosts. A subnet has 2³²⁻ᵖ addresses, but the first (network address) and last (broadcast address) cannot be given to hosts, so 2³²⁻ᵖ − 2 hosts fit. Exceptions: a /31 (point-to-point link, RFC 3021) uses both of its 2 addresses for hosts, and a /32 is one single address (a single host or a loopback).
Antwort: D · ICMP
Ping sendet ICMP-Echo-Requests und misst die Zeit, bis die Echo-Replies zurückkommen.
Antwort: A · 1500 Bytes
Standard-Ethernet überträgt bis zu 1500 Bytes Nutzlast; größere IP-Pakete müssen fragmentiert werden oder Path MTU Discovery verwenden.
Antwort: U = 146
Bits setzen: Jedes Bit hat den Wert einer Zweierpotenz (128, 64, …, 1). Eine Hexadezimalziffer entspricht genau vier Bits, und im 8-Bit-Zweierkomplement hat das linke Bit den Wert −128. Bitweise Operationen wirken auf jede Bitposition einzeln.
Antwort: N = 1,049 × 10⁶
Stellenwertsysteme: Jede Ziffer ist ihren Wert mal eine Potenz der Basis wert. Im Binärsystem sind die Stellen 1, 2, 4, 8, 16, … wert, im Hexadezimalsystem 1, 16, 256, …, wobei A–F für 10–15 stehen. Im 8-Bit-Zweierkomplement ist das linke Bit −128 statt +128 wert; so werden negative Zahlen gespeichert.
ExamProblems · examproblems.com/courses/computer-networks