Computer Networks and Operating Systems: Lecture No. 5 by Luminiţa SCRIPCARIU
Computer Networks and Operating Systems: Lecture No. 5 by Luminiţa SCRIPCARIU
OPERATING SYSTEMS
Lecture no. 5
by Luminiţa SCRIPCARIU
TO REMEMBER
...................................................
11111111. 11111111.11111100.00000000
255.255.252.0
CS = 0x.51.AF
3/25/2021 Luminiţa Scripcariu 17
The Usage Grade of the IPv4
Addresses
https://ipv4.potaroo.net/plotend.png
https://www.iana.org/assignments/ipv4-recovered-address-space/ipv4-recovered-address-space.xhtml
12FE:A3B0:4567:CD00:89CD:1031:1B2F:1120
Interface ID
Registry
ISP prefix
Site prefix
Subnet prefix
3/25/2021 Luminiţa Scripcariu 28
https://www.tutorialspoint.com/ipv6/ipv6_address_types.htm
00-16-CF - 42-9A-E4
0216:CFFF:FE42:9AE4
The NETWORK ADDRESS
• In the network address, all the host bits
are ‘0’.
• The length of the network or subnet ID is
denoted as
::/number of network or subnet bits
Mixt mapping:
2002:AC10:600E::
• IPv4 Address:
192.168.12.100
• IPv6 address mapped as ‘6-to-4’ is:
0:0:0:0:0:FFFF:.........................
• By mixt mapping method:
2002:.......................................
EXERCISE
Write the address and the mask of the subnet
no. 120, defined in the IPv6 2002:C0A8::/32
network.
Deduce the IPv6 Host ID for an interface card
with the following MAC address:
AE:2D:03:95:A7:FB.
Write the IPv6 address of this interface as a
part of the above defined subnet.
3/25/2021 Luminiţa Scripcariu 40
NA 2002:C0A8::
NM /32
S#120
120 = 0111 1000 = 0x.78
S#120 2002:C0A8:0000:_____::/___ SM
MAC address AE:2D:03:95:A7:FB
AE = 1010 1110 -> 1010 1100 = A __
HID A__2D:03FF:FE95:A7FB
NIC IPv6 address:
2002:C0A8::_____:
3/25/2021
A__2D:03FF:FE95:A7FB/___
Luminiţa Scripcariu 41
REMARK:
2002:C0A8::7800:AC2D:3FF:FE95:A7FB/56
2 = 0010
DHCPv6
ICMPv6
FTP 21
SSH 22
TELNET 23
SMTP 25
DNS 53
BOOTP SERVER 67
BOOTP CLIENT 68
TFTP 69
FINGER 79
HTTP* 80
POP3 110
NTP 123
SNMP 161
3/25/2021 Luminiţa Scripcariu 53
PORT NUMBERS
• Protocol (Logical, Application) ports usually have unique
numbers in the Internet being supervised by IANA.
• The same port numbers are used by any transport
protocol (TCP, UDP, SCTP).
• Public applications and Internet-suite protocols have
reserved port numbers less than 255.
• Port numbers between 256 and 1023 are reserved for
applications developed by companies.
• Some port numbers (>1024) are unofficially reserved for
different producers.
• Port numbers greater than 49152 can be allocated
dynamically, for ephemeral ports.
3/25/2021 Luminiţa Scripcariu 54
3/25/2021 Luminiţa Scripcariu 55
Control Flags
• URG (Urgent) - indicates the existence of some
urgent data in the segment.
• ACK (Acknowledge) - confirms the correct delivery of
a sequence.
• PSH (Push) – forces the receiver to send data
immediately.
• RST (Reset) – resets the connection.
• SYN (Synchronize) – requests the opening of a
connection and demands the receiver to synchronize it
with the sender.
• FIN (Final) – requests the closer of the connection and
ends the transmission.
3/25/2021 Luminiţa Scripcariu 56
Three-Way Handshake Open
Connection
SCTP Packet
en.wikipedia.org.