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.
Ein Subnetz verwendet die Maske 255.255.255.252. Wie viele nutzbare Hostadressen H hat es?
Ein Host hat die Adresse 172.20.158.143/23. Wie lautet das dritte Oktett x der Broadcastadresse seines Subnetzes?
Welche Metrik nutzt RIP zur Wahl von Routen?
Wie unterscheidet sich bei Sliding-Window-Protokollen Go-Back-N von Selective Repeat, wenn ein Rahmen verloren geht?
Setze die Bits so, dass sie −108 im 8-Bit-Zweierkomplement speichern. Welchen Wert U hat das Muster, wenn man es als vorzeichenlose Zahl liest?
Ein unkomprimiertes Bild hat 800 × 600 Pixel mit 24 Bits pro Pixel. Wie viel Speicher M braucht es in KiB (1 KiB = 1024 Bytes)?
Antwort: H = 2
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: x = 159
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: C · Hop-Anzahl
RIP ist ein Distanzvektorprotokoll, das Hops zählt, wobei 16 „unerreichbar“ bedeutet. Das beschränkt es auf kleine Netzwerke.
Antwort: B · Go-Back-N sendet den verlorenen Rahmen und alle späteren erneut; Selective Repeat nur den verlorenen
Ein Go-Back-N-Empfänger verwirft Rahmen außer der Reihe, daher muss der Sender alles nach dem Verlust wiederholen. Selective Repeat puffert sie und fordert nur den fehlenden an.
Antwort: U = 148
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: M = 1406 KiB
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