Chapter 1: Network Essentials
Chapter 1: Network Essentials
Network Essentials
1
Chapter 1
Network Essentials
2
Chapter 1
Network Essentials
What is a Network?
A network is a collection of interconnected devices which can
communicate with each other.
Components of a network:
• Hardware
– Routers
– Switches
– Cables
– Servers
– Personal Computers (PCs)
• Software
– TCP/IP Protocol
– Ethernet
3
Chapter 1
Network Essentials
Types of Networks
Public networks
• Internet, telephone network
Private Networks
• Corporate network, home network
Local Area Network
• Campus, building, room
Wide Area Network
• Across countries/cities
4
Chapter 1
Network Essentials
Purpose of a Network
Communication
• E-mail, chat, messaging
Information
• Web services, search engines
Interconnectivity
• Virtual Private Networks (VPNs) through the Internet
Business
• E-commerce, video conferencing
Entertainment
• Gaming, movies
Education
• E-learning, etc.
5
Chapter 1
Network Essentials
6
Chapter 1
Network Essentials
7
Chapter 1
Network Essentials
8
Chapter 1
Network Essentials
Introduction to TCP/IP
TCP/IP is the de facto standard for internetworking.
Most generic network applications are based on TCP/IP.
TCP stands for Transmission Control Protocol. It resides in the
transport layer (layer 4) of the OSI model.
IP stands for Internet Protocol. It resides in the network layer (layer
3) of the OSI model.
An example of a TCP/IP network is the Internet.
9
Chapter 1
Network Essentials
TCP/IP Overview
TCP/IP provides universal communication services over
heterogeneous physical networks.
The benefit of TCP/IP is that it enables communication between
hosts on different networks or that are geographically dispersed.
10
Chapter 1
Network Essentials
11
Chapter 1
Network Essentials
12
Chapter 1
Network Essentials
13
Chapter 1
Network Essentials
14
Chapter 1
Network Essentials
15
Chapter 1
Network Essentials
Internet Layer
IP provides a datagram (connectionless) transport service across
the network.
IP doesn’t guarantee delivery.
Internet Layer’s focus is on addressing and routing.
Internet Layer includes:
• IP Address
• Classless Interdomain Routing (CIDR)
• ARP (Address Resolution Protocol)
• IP Routing
• Network Address Translation (NAT)
• IPv6
16
Chapter 1
Network Essentials
17
Chapter 1
Network Essentials
Class A: Network
Network Host
Host Host
Host Host
Host
Class B: Network
Network Network
Network Host
Host Host
Host
Class C: Network
Network Network
Network Network
Network Host
Host
Class D: Multicast
Class E: Research
18
Chapter 1
Network Essentials
19
Chapter 1
Network Essentials
IP Address Range
IP Address Range
IP Address Class
(First Octet decimal value)
Number of Network
Class Subnet Mask
Bits
A 255.0.0.0 8
B 255.255.0.0 16
C 255.255.255.0 24
21
Chapter 1
Network Essentials
22
Chapter 1
Network Essentials
Private IP Addresses
C 192.168.0.0/16 to 192.168.255.255/16
23
Chapter 1
Network Essentials
24
Chapter 1
Network Essentials
25
Chapter 1
Network Essentials
26
Chapter 1
Network Essentials
27
Chapter 1
Network Essentials
Public Network 4
Private Network
202.10.14.123
DA : 192.168.1.100
Internet
5
192.168.1.101 3
SA : 203.10.18.102
1 NAT
2
SA : 192.168.1.100
192.168.1.100
NAT Table
Port Port
TCP 192.168.1.100 : 1123 203.10.18.102 : 1123
TCP 192.168.1.101 : 1234 203.10.18.102 : 1234
28
Chapter 1
Network Essentials
1 Secondary IP Addresses :
203.10.18.102
203.10.18.103
DA : 192.168.1.100
202.10.14.123
Internet 3
NAT
192.168.1.100
5
4
SA : 203.10.18.102
SA : 192.168.1.100
192.168.1.101
2
NAT Table
29
Chapter 1
Network Essentials
30
Chapter 1
Network Essentials
31
Chapter 1
Network Essentials
Transport Layer
Provides end-to-end data transfer
Two protocols available:
• Transmission Control Protocol (TCP): connection-oriented
• User Datagram Protocol (UDP): connectionless
32
Chapter 1
Network Essentials
33
Chapter 1
Network Essentials
Application Layer
The Application Layer is provided by the program that uses TCP/IP
for communication.
The Application Layer is concerned with:
• User interaction
• The implementation of software applications, protocols and services
34
Chapter 1
Network Essentials
Calculating Subnets
35
Chapter 1
Network Essentials
Subnetting
Subnet mask specifies which network the host participates in
• E.g. 10.0.0.0/16, means that the network is 10.1.0.0, 10.2.0.0,
10.3.0.0, until 10.255.0.0.
10.3.0.0
10.4.0.0
…...
10.1.0.0 10.2.0.0
10.0.0.0
36
Chapter 1
Network Essentials
0 0 10 1010
1 1 11 1011
2 10 12 1100
3 11 13 1101
4 100 14 1110
5 101 15 1111
6 110 16 10000
7 111 17 10001
8 1000 18 10010
9 1001 19 10011
37
Chapter 1
Network Essentials
Decimal-to-Binary Conversion
Base Exponent
27 26 25 24 23 22 21 20
Example: 0 1 0 1 0 0 0 1
Convert
decimal 81 to
binary
38
Chapter 1
Network Essentials
Binary-to-Decimal Conversion
Base Exponent
27 26 25 24 23 22 21 20
Example: 1 0 1 0 1 0 0 0
Binary
Number
Decimal 128 0 32 0 8 0 0 0
Number: 168
39
Chapter 1
Network Essentials
40
Chapter 1
Network Essentials
41
Chapter 1
Network Essentials
42
Chapter 1
Network Essentials
Subnet Planning
Question:
If a company needs 19 subnets with a minimum of 6 PCs per
subnet, and the given IP Address is 192.168.1.0, what subnet mask
should I use?
Solution:
First, determine the class of the IP address. 192.168.1.0 is Class C.
Second, determine the number of bits needed by subnet and host.
Hence, subnet bits=5 and host bits=3.
So, the new subnet mask will be 255.255.255.248.
43
Chapter 1
Network Essentials
44
Chapter 1
Network Essentials
Summary
This chapter introduces the fundamentals of a network
The use of the OSI reference model, and its relation with the TCP/IP
protocol suite is also mentioned.
There are 5 classes of IP addresses: Class A, B, C, D, and E.
A subnet is a logical division of a network, and the number of
subnets to be obtained is defined by modifying the subnet masks.
45