Documente Academic
Documente Profesional
Documente Cultură
Some of the graphics used in this lecture are courtesy of Wendell Odom
There are separate rules in place for performing these tasks (in the form of
network protocols).
These set of rules change when either the access network, the backbone
network or the form of application data changes.
So do we have to change everything altogether to accommodate an
update/change?
10
HTTP
HTML, SQL scripts, PHP
TCP connection
IP address from domain name (DNS)
Routing from source to destination
12
13
14
Data link Layer: serves for controlling, monitoring the exchange of data
(frames) over a medium. Error detection, framing (dividing into right sized
chunks) and medium access regulation are some of the key functions
assigned to protocols that reside at this layer.
Physical Layer: defines the characteristics that a transmitter and receiver
should have to communicate on a physical/wireless medium. Modulation
schemes, connectors, multiplexing etc, are dealt at this layer.
15
As we will see that TCP/IP gives a separate name to data according to the
level (layer) for instance it is called segment, packet and frame at
Transport, Network and Data link layers respectively.
OSI naming is different, rather more generic; called protocol data unit
(PDU).
A layer x PDU consists of encapsulated data, header and trailer attached
at layer x.
For instance, an MSDU received at MAC sublayer of IEEE 802.11, becomes
a MAC PDU (MPDU) after MAC headers are attached and later on
becomes a PHY PDU (PPDU) at the PHY.
16
17
Segment
Packet
Frame
The protocols in the TCP/IP suite are defined in documents called Requests
for Comments (RFCs).
By implementing a protocol x defined in a certain RFC, a network-station
can confidently communicate with a peer on a network without considering
interoperability issues.
Dr. Shahbaz Khan, N.W.F.P. U.E.T, 2009.
18
19
20
21
Classes of IP-addresses
IP Address
Network ID
Host ID
a.b.c.d
b.c.d
a.b.c.d
a.b
c.d
a.b.c.d
a.b.c
Class-A address has a large number of hosts, assigned to large networks: 126
Networks, with approximately 17 million hosts per network.
Class-B address is assigned to medium to large size networks. Class B allows for
16,384 networks, and 65,000 hosts per network.
Class-C address is assigned to small sized networks. This class has approx. 2
million networks, with 254 hosts per network.
Classes D and E are not allocated to hosts.
Class D addresses are used for multicasting
Shahbaz Khan,for
N.W.F.P.
U.E.T, 2009.
22
Class E addresses areDr.reserved
future
purposes.
Classes of IP-addresses
23
IP Network Masks
IP address masks are used to distinguish the Network and
Host part of an IP address
Network masks are usually written in dotted decimal format
The first part of a network mask contains binary 1s to
represent the Network part
The second part contains binary 0s to represent the Host
part, in case of no subnetting, or it represents Network and
host part, in case of subnetting
24
Private IP addresses
Every station connected to the internet should have a unique
address.
With expansion of internet, IP address scarcity became a
problem.
A logical solution to tackle such a problem is not to assign a
unique address to stations which are not connected to the
internet.
Such addresses which are not routable over the internet* are
called private IP address.
IP addresses from each of the three classes are reserved as
private IP addresses.
* Organizations are not allowed to advertise these addresses using routing
Dr. Shahbaz Khan, N.W.F.P. U.E.T, 2009.
protocols over the internet
25
26
27
DHCP
28
29
30
31
32
33
IP subnetting
The organization (for instance the UET) is assigned a class C address: 216.21.5.0
The aim is address the whole network using this allocated address
5 Subnets are required
Determine the subnet masks
Determine the address range of each of the 5 subnets
Dr. Shahbaz Khan, N.W.F.P. U.E.T, 2009.
34
Subnetting examples courtesy of Jeremy Cioara
Objective:
Class C IP: 216.21.5.0
Default subnet mask: 255.255.255.0
Networks= 5
35
216.21.5.0
to
216.21.5.31
Second subnet:
216.21.5.32
to
216.21.5.63
Third subnet:
216.21.5.64
to
216.21.5.95
Fourth subnet:
216.21.5.96
to
216.21.5.127
Fifth subnet:
216.21.5.128
to
216.21.5.159
36
Objective:
Class C IP: 195.5.20.0
Default subnet mask: 255.255.255.0
Networks= 50
37
195.5.20.0
to
195.5.20.3
Second subnet:
195.5.20.4
to
195.5.20.7
Third subnet:
195.5.20.8
to
195.5.20.11
Fourth subnet:
195.5.20.12
to
195.5.20.15
Fifth subnet:
..
195.5.20.16
to
195.5.20.19
50th subnet:
195.5.20.200
to
195.5.20.203
38
39
Objective:
Class B IP: 150.5.0.0
Default subnet mask: 255.255.0.0
Networks= 100
40
150.5.0.0
to
150.5.1.255
Second subnet:
150.5.2.0
to
150.5.3.255
Third subnet:
150.5.4.0
to
150.5.5.255
Fourth subnet:
150.5.6.0
to
150.5.7.255
Fifth subnet:
..
150.5.8.0
to
150.5.9.255
100th subnet:
150.5.200.0
to
195.5.201.255
41
Objective:
Class A IP: 10.0.0.0
Default subnet mask: 255.0.0.0
Networks= 500
42
10.0.0.0
to
10.0.127.255
Second subnet:
10.0.128.0
to
10.0.255.255
Third subnet:
10.1.0.0
to
10.1.127.255
Fourth subnet:
10.1.128.0
to
10.1.255.255
Fifth subnet:
..
10.2.0.0
to
10.2.127.255
500th subnet:
10.250.0.0
to
10.250.127.255
43
44
216.21.5.0
to
216.21.5.31
Second subnet:
216.21.5.32
to
216.21.5.63
Third subnet:
216.21.5.64
to
216.21.5.95
Fourth subnet:
216.21.5.96
to
216.21.5.127
Fifth subnet:
..
216.21.5.128
to
216.21.5.153
Last subnet:
216.21.5.224
to
216.21.5.255
45
192.168.1.0
to
192.168.1.31
Second subnet:
.
4th subnet:
192.168.1.32
to
192.168.1.95
192.168.1.96
to
192.168.1.127
5th subnet:
192.168.1.128
to
192.168.1.159
Broadcast
address
46
172.16.68.0
to
172.16.68.15
Second subnet:
.
4th subnet:
172.16.68.16
to
172.16.68.31
172.16.68.48
to
172.16.68.63
5th subnet:
172.16.68.64
to
172.16.68.79
GW address
is in 4th
subnet
172.16.68.65
is the first
valid address
in this subnet
47
48
20 users
20 users
60 users
49
50
192.168.1.64-95/27
192.168.1.96-127/27
20 users
20 users
192.168.1.0-63/26
60 users
What about
these p-to-p
interfaces?
51
IPv6
Address scarcity is an issue with IPv4
Address depletion How long have we got?*
Different estimates, 2019, 2021, 2026.
IPv6 addressing
IPv6 is a 128 bit address
A huge address space of 2128
The format to write an IPv6 address is to write it in 8 groups of
4 Hexadecimal numbers in each group
For instance: 3203:A39C:0000:0000:0000:0000:03A1:AA14
Simplifying the long addresses:
Groups of consecutive zeros can be eliminated, for instance:
3203:A39C::03A1:AA14
Leading zeros can be eliminated, for instance:
3203:A39C::3A1:AA14
53
54