IPv4 alt ağları
- Alt ağ başına cihaz
- 2(32 − prefix) − 2 (/31: 2, /32: 1)
- Blok boyutu
- 256 − (mask octet)
- Ağ adresi
- IP AND maske
- Yayın adresi
- IP OR (NOT maske): tüm ana bilgisayar bitleri 1
- Ödünç alınan n bitten alt ağlar
- 2n
Formül kâğıtları, her konunun temel yöntem adımları ve 6 alıştırma sorusu; tam çözümler en sonda.
Bir alt ağ 255.255.255.252 maskesini kullanıyor. Kaç kullanılabilir cihaz adresi H vardır?
Bir cihazın adresi 172.20.248.41/19. Alt ağının yayın adresinin üçüncü okteti x nedir?
Bir anahtar (switch) normalde hangi OSI katmanında çalışır?
Kayan pencere protokollerinde bir çerçeve kaybolduktan sonra Go-Back-N, Selective Repeat'ten nasıl ayrılır?
8 bitlik 1101 0011 dizisi, ikiye tümleyen biçiminde işaretli bir tam sayı saklıyor. Onluk değeri N nedir?
Bitleri 0101 1010 OR 1110 1000 işleminin 8 bitlik sonucuna ayarlayın. Sonucun onluk değeri R nedir?
Cevap: 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).
Cevap: 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).
Cevap: C · Veri bağlantısı (2. katman)
Standart bir anahtar MAC adreslerini öğrenir ve çerçeveleri 2. katmanda iletir. 3. katman anahtarlar ayrıca yönlendirme de yapar.
Cevap: D · Go-Back-N kayıp çerçeveyi ve sonrakilerin hepsini yeniden gönderir; Selective Repeat yalnızca kaybolanı
Go-Back-N alıcısı sırası bozuk çerçeveleri atar; bu yüzden gönderici kayıptan sonraki her şeyi tekrarlamalıdır. Selective Repeat onları arabelleğe alır ve yalnızca eksik olanı ister.
Cevap: N = −45
Konumsal sayı sistemleri: her basamak, değeri çarpı tabanın bir kuvveti kadar değerlidir. İkilik sistemde basamaklar 1, 2, 4, 8, 16, …; onaltılık sistemde 1, 16, 256, … değerindedir ve A–F, 10–15'i gösterir. 8 bitlik ikiye tümleyende en soldaki bit +128 yerine −128 değerindedir; negatif sayılar böyle saklanır.
Diğer bitler normal pozitif değerlerini korur.
Cevap: R = 250
Bitleri ayarlamak: her bit ikinin bir kuvveti değerindedir (128, 64, …, 1). Bir onaltılık basamak tam olarak dört bittir ve 8 bitlik ikiye tümleyende en soldaki bit −128 değerindedir. Bit işlemleri her bit konumunda ayrı ayrı çalışır.
OR en az bir bit 1 olduğunda 1 verir.
ExamProblems · examproblems.com/courses/computer-networks