Chapter 4
Chapter 4
Chapter 4
Internetworking
08/22/2022 1
Outlines
2
● Introduction
● Internetworking with TCP/IP
● Intranet, Extranet and Internet
● IP Addressing
● Subnetting
● Network Applications – Web, Mail, DNS, DHCP
08/22/2022 2
Introduction
3
08/22/2022 3
Cont’
4
Ethernet
⚫ It is the most widely-installed local area network ( LAN)
technology.
⚫ Specified in a standard, IEEE 802.3.
08/22/2022 4
Cont’
5
Intranet
⚫ An intranet is a computer network that uses Internet
08/22/2022 5
Cont’
6
Extranet
⚫ It is a private network that uses Internet technology and the
08/22/2022 6
Cont’
7
Internet
⚫ Internet is a global system of interconnected
computer networks that use the standard internet
protocol
suit (TCP/IP) to serve several billion users worldwide.
⚫ It is a network of networks that consists of millions of private,
08/22/2022 7
Cont’
08/22/2022 8 8
How to use the Internet ?
9
⚫ Research
⚫ Shopping
⚫ News
⚫ Games
… etc.
08/22/2022 9
Internet Terms? 10
⚫ Browser
⚫ Search Engine
⚫ URL
⚫ Domain
⚫ html
08/22/2022 10
Cont’
11
Web
⚫ The World Wide Web (WWW), commonly known as the
08/22/2022 11
Cont’
12
Mail
⚫ Electronic mail, e-mail or email is an information stored
08/22/2022 12
Cont’
13
Browser
⚫ Software program that allows a person to view WWW
documents.
Example
08/22/2022 13
Search Engine
14
⚫ A web site that will help you search the Internet for key
words, subjects, etc.
Example
08/22/2022 14
URL
15
Sub domain
Protocol Domain
path/directory
08/22/2022 15
Domain
16
.com: commercial,
.org: non-profit and research organizations
.gov: government agency
.edu: education.
08/22/2022 16
html
17
08/22/2022 17
Internet Protocol (IP)
18
communicating data.
08/22/2022 18
Cont’
19
08/22/2022 19
IP Addressing
20
scheme.
⚫ We use the term IP address to mean a logical address in
the network layer of the TCP/IP protocol suite.
08/22/2022 20
IPv4 Addresses
21
⚫ They are unique in the sense that each address defines one
08/22/2022 21
Address Space 22
space.
⚫ An address space is the total number of addresses used by the
protocol.
⚫ If a protocol uses N bits to define an address, the address space
08/22/2022 22
Cont’ 23
⚫ IPv4 uses 32-bit addresses, which means that the address space
08/22/2022 23
Notations
24
⚫ Dotted-Decimal Notation
08/22/2022 25
Cont’
26
Example
⚫ Dotted-decimal notation and binary notation for an IPv4
address.
08/22/2022 26
08/22/2022 27
Example 1
Change the following IPv4 addresses from binary
notation to dotted-decimal notation.
Solution
We replace each group of 8 bits with its equivalent decimal number
and add dots for separation.
08/22/2022 28
Example 2
Change the following IPv4 addresses from dotted-
decimal notation to binary notation.
Solution
We replace each decimal number with its binary equivalent
08/22/2022 29
08/22/2022 30
Example 3
Find the error, if any, in the following IPv4 addresses.
Solution
a. There must be no leading zero (045).
b. There can be no more than four numbers.
c. Each number needs to be less than or equal to 255.
d. A mixture of binary notation and dotted-decimal
notation is not allowed.
08/22/2022 31
Classful Addressing 27
08/22/2022 32
Network ID and Host ID
28
decimal 127.
⚫ Any address that starts with a value between 1 and 126 in the
⚫ Example: 98.56.82.30
08/22/2022 35
Cont’
31
decimal 128.
decimal 191.
⚫ Any address that starts with a value between 128 and 191 in
⚫ Example: 167.3.27.30
08/22/2022 36
Cont’
32
decimal 192.
decimal 223.
⚫ Any address that starts with a value between 192 and 223 in
⚫ Example: 192.168.0.1
08/22/2022 37
Example 4
Find the class of each address.
a. 00000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 14.23.120.8
d. 252.5.15.111
Solution
a. The first bit is 0. This is a class A address.
b. The first 2 bits are 1; the third bit is 0. This is a class C
address.
c. The first byte is 14; the class is A.
d. The first byte is 252; the class is E.
08/22/2022 38
Network Addresses
33
08/22/2022 40
IP addressing: Summary
35
200.150.56.1 to 200.150.56.254
⚫ The address 200.150.56.0 is called
the network address.
08/22/2022 42
How many networks are there?
37
08/22/2022 43
Cont’
38
network.
Note:
• Network addresses have all zeros for the host portion.
• Broadcast addresses have all ones for the host portion.
08/22/2022 44
Subnetting
39
Advantages:
Reduced network traffic
Optimized network performance
Simplify management
08/22/2022 45
The subnetting process
40
⚫ The subnet field and the host field are created from the
08/22/2022 47
How many bits should we borrow?
42
08/22/2022 48
Cont’
43
Example:
⚫ if we borrow three bits from a class C address, total
number of subnets is 8 (2^3) and total number of hosts is
32 (2^5)
08/22/2022 49
Usable subnets
44
⚫ If the first subnet (all 0’s in the subnet field) is used, then
⚫ If the last subnet (all 1’s in the subnet field) is used, the network
Example:
08/22/2022 51
Usable hosts
46
Example:
08/22/2022 52
Mask
47
contiguous 0s.
• The mask can help us to find the network ID and the host
ID.
08/22/2022 53
Subnet masks
48
the network must know which part of the host address will
be used as the subnet address.
⚫ This is accomplished by assigning a subnet mask to each
machine
08/22/2022 54
Subnet masks
49
packets to distinguish:
The network portion of the IP address from the
host portion of the IP address.
08/22/2022 55
Subnet masks
50
08/22/2022 56
Default subnet masks
51
⚫ Not all networks need subnets, meaning they use the
default subnet mask
mask is 255.255.255.224
⚫ Subnets may also be represented, in a slash format.
⚫ For example, /24 indicates that the total bits that were used for the
08/22/2022 58
Subnetting Class C addresses - Example 1
53
2^6 = 64 hosts
08/22/2022 59
Cont’
54
192.168.10.192
⚫ The ones which do not have all 0’s or all 1’s in the subnet field,
08/22/2022 60
Cont’
55
08/22/2022 61
Cont’
56
broadcast address. The hosts for the first valid subnet are
192.168.10.65, 192.168.10.66, …, 192.168.10.126
⚫ The hosts for the second valid subnet are 192.168.10.129,
192.168.10.130, …, 192.168.10.190
08/22/2022 62
Calculating class A and B networks
57
08/22/2022 63
Subnetting Class B addresses – Example 1
58
08/22/2022 65
Subnetting Class A addresses – Example 1
60
08/22/2022 67
Network Address Translation (NAT)
62
depletion.
addresses.
Translate from private IP address to public IP address.
08/22/2022 68
IPv6
ADDRESSES 63
long.
08/22/2022 69
...’’’
64
Note:
Computers understand numbers and can be identified by IP
address.
Names are easy to memorized by users instead of numbers.
08/22/2022 70
DNS server (domain name system)
65
remember.
⚫ The Internet however, is really based on IP addresses.
08/22/2022 71
Cont
66
developed.
⚫ It resolves names to numbers(domain names to IP
addresses).
08/22/2022 72
Cont
67
devices on a network.
⚫ With dynamic addressing, a device can have a different IP
08/22/2022 74
Cont’
69
Static IP
⚫ A user assigns an IP address
manually
IP address is unique for each device
If manual, IP conflict will happen
Solution: Dynamic IP
08/22/2022 75
Cont’
70
IP address
Subnet mask
Default gateway
DNS server
08/22/2022 76
Cont’
71
Lease
⚫ DHCP server assigns IP address as a lease.
computer.
⚫ It help to make sure the DHCP server does no run out of IP
address.
⚫ When the lease is expired, the computer send a signal to