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.136.8.0/24 wordt verdeeld in gelijke subnetten met prefix /30. Hoeveel subnetten N zijn er?
Een host heeft het adres 172.20.217.56/17. Wat is het derde octet x van het broadcastadres van zijn subnet?
Wat doet ARP?
Waarin verschilt Go-Back-N van Selective Repeat bij sliding-windowprotocollen nadat één frame verloren is gegaan?
Schrijf −23 als 8-bits patroon in two's complement. Lees het patroon als binair getal zonder teken: wat is de waarde U in decimaal?
Een systeem moet elk van 3812 items een eigen binaire code van gelijke lengte geven. Wat is het kleinste aantal bits b dat nodig is?
Antwoord: N = 64
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 /30-subnet heeft 22 − 2 = 2 bruikbare hosts.
Antwoord: x = 255
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: C · Het vindt het MAC-adres dat bij een IP-adres op het lokale netwerk hoort
ARP broadcast "wie heeft dit IP?" en de eigenaar antwoordt met zijn MAC-adres, zodat frames lokaal kunnen worden afgeleverd.
Antwoord: B · Go-Back-N verstuurt het verloren en alle latere frames opnieuw; Selective Repeat alleen het verloren frame
Een Go-Back-N-ontvanger gooit frames buiten volgorde weg, dus de zender moet alles na het verlies herhalen. Selective Repeat buffert ze en vraagt alleen om het ontbrekende frame.
Antwoord: U = 233
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: b = 12 bit
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.
ExamProblems · examproblems.com/courses/computer-networks