54 lines
1000 B
Plaintext
54 lines
1000 B
Plaintext
1.
|
|
HOST_A SERVERDHCP HOST(192.168.0.5)
|
|
//Konfiguracja DHCP(DHCP korzysta z UDP)
|
|
DHCPDISCOVER
|
|
DHCPOFFER
|
|
DHCPREQUEST
|
|
DHCPACKNOWLEDGE
|
|
//Teraz ARP
|
|
reqMAC->HOST(19...) ansMAC->HOSTA
|
|
SYN+SYN-SENT SYN_RECEIVED SYN+ACK
|
|
ESTABLISHED SYN-ACK ESTABLISHED
|
|
//Przesył pakietów
|
|
P1 ACK
|
|
P2 ACK
|
|
... ...
|
|
P12 ACK
|
|
FIN FIN
|
|
//18 pakietów przesłanych, 18 pakietów odebranych
|
|
|
|
2.
|
|
/15
|
|
11111111.11111110.00000000.00000000
|
|
255.254.0.0
|
|
|
|
/22
|
|
11111111.11111111.11111100.00000000
|
|
255.255.252.0
|
|
|
|
/9
|
|
11111111.10000000.00000000.00000000
|
|
255.128.0.0
|
|
|
|
3.
|
|
a. 255.248.0.0
|
|
11111111.11111000.00000000.00000000
|
|
|
|
00000000.00000111.11111111.11111111
|
|
524286 Hostów do przydzielenia
|
|
|
|
b. 255.255.252.0
|
|
11111111.11111111.11111100.00000000
|
|
|
|
00000000.00000000.00000011.11111111
|
|
0.0.3.255
|
|
1022 Hosty do przydzielenia
|
|
|
|
|
|
c. 255.255.255.254
|
|
11111111.11111111.11111111.11111110
|
|
|
|
00000000.00000000.00000000.00000001
|
|
0.0.0.1
|
|
0 Hostów do przydzielenia
|