IPv4-subnetting
- Hosts per subnet
- 2(32 − prefix) − 2 (/31: 2, /32: 1)
- Blokgrootte
- 256 − (mask octet)
- Netwerkadres
- IP AND masker
- Broadcastadres
- IP OR (NOT masker): alle hostbits op 1
- Subnetten uit n geleende bits
- 2n
Formuleoverzichten, de belangrijkste methodestappen voor elk onderwerp en 6 oefenopgaven, met volledige oplossingen achterin.
Het netwerk 10.213.184.0/24 wordt verdeeld in gelijke subnetten met prefix /28. Hoeveel subnetten N zijn er?
Een host heeft het adres 172.20.185.212/21. Wat is het derde octet x van het broadcastadres van zijn subnet?
Welk veld in de IPv4-header voorkomt dat pakketten eeuwig rondgaan in een routeringslus?
Wat is volgens de formule van Nyquist de maximale bitsnelheid van een ruisvrij kanaal van 3 kHz met 4 signaalniveaus?
Schrijf −101 als 8-bits patroon in two's complement. Lees het patroon als binair getal zonder teken: wat is de waarde U in decimaal?
Stel de bits in op het 8-bits resultaat van 1000 1110 AND 1101 0000. Wat is de waarde R van het resultaat in decimaal?
Antwoord: 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).
Elk /28-subnet heeft 24 − 2 = 14 bruikbare hosts.
Antwoord: x = 191
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).
Antwoord: D · Time to live (TTL)
Elke router verlaagt de TTL; bij nul wordt het pakket weggegooid en meestal een ICMP-bericht Time Exceeded verstuurd. IPv6 noemt het hop limit.
Antwoord: A · 12 kbit/s
2 × 3000 × log₂ 4 = 2 × 3000 × 2 = 12,000 bit/s. Meer niveaus verhogen de snelheid, maar ruis beperkt hoeveel ervan te onderscheiden zijn.
Antwoord: U = 155
Positionele talstelsels: elk cijfer is zijn waarde maal een macht van het grondtal waard. Binair zijn de posities 1, 2, 4, 8, 16, … waard, hexadecimaal 1, 16, 256, …, met A–F voor 10–15. In 8-bits two's complement is het meest linkse bit −128 waard in plaats van +128; zo worden negatieve getallen opgeslagen.
Antwoord: R = 128
Bits instellen: elke bit is een macht van twee waard (128, 64, …, 1). Eén hexadecimaal cijfer is precies vier bits, en in 8-bits tweecomplement is de meest linkse bit −128 waard. Bitsgewijze bewerkingen werken op elke bitpositie apart.
AND geeft alleen 1 waar beide bits 1 zijn.
ExamProblems · examproblems.com/courses/computer-networks