Network: - Connectivity and Communication - Intranet - Extranet - Internet
Network: - Connectivity and Communication - Intranet - Extranet - Internet
• Intranet
• Extranet
• Internet
Use internet to refer to the worldwide collection of networks that use open protocols such as TCP/IP to
communicate with one another.
Use intranet to refer to a communications network based on web technology but that's available only
to certain people, such as the employees of a company.
Use extranet to refer to an extension of an intranet that uses internet protocols to give authorized
outside users limited access to the intranet.
OSI Reference Model
• Application Layer
• Presentation Layer
• Session Layer
• Transport Layer
• Network layer
• Data Link Layer
• Physical Layer
IP Addressing
IP Addresses
• Structure of an IP address
• Subnetting
• CIDR
• IP Version 6 addresses
IP Addresses
32 bits
version header Type of Service/TOS Total Length (in bytes)
(4 bits) length (8 bits) (16 bits)
flags
Identification (16 bits) Fragment Offset (13 bits)
(3 bits)
TTL Time-to-Live Protocol
Header Checksum (16 bits)
(8 bits) (8 bits)
• An IP address:
- is a 32 bit long identifier
- encodes a network number (network prefix)
and a host number
Dotted Decimal Notation
• Example:
10000000 10001111 10001001 10010000
1st Byte 2nd Byte 3rd Byte 4th Byte
= 128 = 143 = 137 = 144
128.143.137.144
Network prefix and Host number
Example: argon.cs.virginia.edu
•IP address is 128.143.137.144
– Is that enough info to route datagram??? -> No, need netmask or
prefix at every IP device (host and router)
•Using Prefix notation IP address is: 128.143.137.144/16
– Network prefix is 16 bits long
128.143 137.144
Subnetting
• Problem: Organizations
have multiple networks
University Network
which are independently
managed Engineering Medical
– Solution 1: Allocate an School School
address for each network
• Difficult to manage
• From the outside of the Library
organization, each
network must be
addressable ie have an
identifiable address.
– Solution 2: Add another
level of hierarchy to the
IP addressing structure Subnetting
Basic Idea of Subnetting
Subnet 128.49.0.12/24
Internet
Subnet 1
34=00100010
Subnet 128.49.1.34/25
Subnet 3
Router
R
Subnet 128.49.1.132/25
Subnet 4 132=10100100
Subnetwork: 128.49.1.0/24
Subnet 2
Subnet 128.49.3.72/24
2 bytes available for subnetting
IP Network: 128.49.0.0/16
Advantages of Subnetting
128.143.0.0/16
Same Network with Subnets
Same network with different subnetmasks
128.143.137.0
Subnet
Subnetting Example
• Solution:
– 10.2.22.0/24 (256 addresses > 200)
– 10.2.23.0/26 (64 addresses >61)
– 10.2.23.64/26 (64 addresses > 55)
– 10.2.23.128/26 (64 addresses > 41)