Chapter 4
Internetworking
December 24, 2019
By Lake.F
Outlines
2
● Introduction
● Internetworking with TCP/IP
● Intranet, Extranet and Internet
● IP Addressing
● Subnetting
● Network Applications – Web, Mail, DNS, DHCP
By Lake.F
Introduction
3
● Inter-networking implies networking of networks.
● It is routing of data based on decisions and
agreements reached by the administrations of the
networks involved.
Why networking?
● To meet the critical user needs like sharing data.
● To connect the relevant networks together that can
be shared data among users.
By Lake.F
Cont’
4
Ethernet
It is the most widely-installed local area network ( LAN)
technology.
Specified in a standard, IEEE 802.3.
An Ethernet LAN typically uses coaxial cable or special grades of
twisted pairs wires.
Ethernet is also used in wireless LANs.
By Lake.F
Cont’
5
Intranet
An intranet is a computer network that uses Internet
Protocol(IP) technology to share information within an
organization.
Sometimes, the term refers only to the organization's
internal website, but may be a more extensive part of the
organization's information technology infrastructure.
Composed of multiple local area networks.
By Lake.F
Cont’
6
Extranet
It is a private network that uses Internet technology and the
public telecommunication system.
This is to securely share part of a business's information or
operations with suppliers, vendors, partners, customers, or
other businesses.
An extranet can be viewed as part of a company's
intranet that is extended to users outside the company.
By Lake.F
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,
public, academic, business, and government networks.
A network between organizations.
By Lake.F
Cont’
By Lake.F 8
How to use the Internet ?
9
There are ways to use Internet:
E-mail
Research
Shopping
News
Games
… etc.
By Lake.F
Internet Terms? 10
WWW- The World Wide Web
Mail
Browser
Search Engine
URL
Domain
html
By Lake.F
Cont’
11
Web
The World Wide Web (WWW), commonly known as the
Web, is an information system where documents and
other web resources are identified by URL(Uniform
Resource Locators ).
By Lake.F
Cont’
12
Mail
Electronic mail, e-mail or email is an information stored
on a computer that is exchanged between two users over
telecommunications.
It is a message that may contain text, files, images, or other
attachments sent through a network to a specified party.
By Lake.F
Cont’
13
Browser
Software program that allows a person to view WWW
documents.
Example
By Lake.F
Search Engine
14
A web site that will help you search the Internet for key
words, subjects, etc.
Example
By Lake.F
URL
15
URL : stands for Uniform Resource Locator.
The unique address of any web page.
It tells your computer where the information is stored so it
can be viewed.
Example:
[Link] [Learn-the-Net -330002341216]/
Sub domain
Protocol Domain
path/directory
By Lake.F
Domain
16
A way to indicate what type of site you may be viewing.
Some common domains are:
.com: commercial,
.org: non-profit and research organizations
.gov: government agency
.edu: education.
By Lake.F
html
17
The Language used to create Web Pages.
By Lake.F
Internet Protocol (IP)
18
The Internet Protocol (IP) is a protocol used for
communicating data.
IP is the primary protocol in the Internet Layer of the
Internet Protocol Suite and has the task of delivering
packets from the source host to the destination host
based on their addresses.
By Lake.F
Cont’
19
The first major version of addressing structure, now referred to
as Internet Protocol Version 4 (IPv4).
It is still the dominant protocol of the Internet.
The packet transmitted by the sending computer may pass
through several LANs or WANs before reaching the destination
computer.
By Lake.F
IP Addressing
20
Usually, computers communicate through the Internet.
For this level of communication, we need a global addressing
scheme.
We use the term IP address to mean a logical address in the
network layer of the TCP/IP protocol suite.
By Lake.F
IPv4 Addresses
21
An IPv4 address is a 32-bit address that universally defines
the connection of a device to the Internet.
IPv4 addresses are unique and universal.
They are unique in the sense that each address defines one
and only one connection to the Internet.
Two devices on the Internet can never have the same address
at the same time.
By Lake.F
Address Space 22
A protocol such as IPv4 that defines addresses has an address
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
is 2N because each bit can have two different values (0 or 1) and
N bits can have 2N values.
By Lake.F
Cont’ 23
IPv4 uses 32-bit addresses, which means that the address space
is 232 or 4,294,967,296 (more than 4 billion).
This means that, theoretically, if there were no restrictions,
more than 4 billion devices could be connected to the Internet.
By Lake.F
Notations
24
There are two IPv4 address notations :
Binary Notation
In binary notation, the IPv4 address is displayed as 32 bits.
Each octet is often referred to as a byte.
Each octet have a value between 0 and 255
So it is common to hear an IPv4 address referred to as a 32-bit
address or a 4-byte address.
Example: 01110101 10010101 00011101 00000010
By Lake.F
Cont’
25
Dotted-Decimal Notation
To make the IPv4 address more compact and easier to read,
Internet addresses are usually written in decimal form with
a decimal point (dot) separating the bytes.
The following is the dotted-decimal notation of the above
address:
[Link]
By Lake.F
Cont’
26
Example
Dotted-decimal notation and binary notation for an IPv4
address.
By Lake.F
Classful Addressing 27
IPv4 addressing is used the concept of classes.
This architecture is called classful addressing.
In classful addressing, the address space is divided into five
classes:
Class A: addresses are used for larger networks
Class B: for medium networks
Class C: for small networks
Other classes – D and E, are used for multicasting and
research purposes.
By Lake.F
Network ID and Host ID
28
An IP address in class A, B, or C is divided into network ID and
host ID.
These parts are varying lengths, depending on the class of the
address.
In class A, one byte defines the network ID and three bytes
define the host ID.
In class B, two bytes define the network ID and two bytes
define the host ID.
In class C, three bytes define the network ID and one byte
defines the host ID.
By Lake.F
Cont’
29
The first bit of a Class A address is always 0.
With that first bit 0, the lowest number that can be
represented is 00000000, decimal 0.
The highest number that can be represented is 01111111,
decimal 127.
The numbers 0 and 127 are reserved and cannot be used as
network addresses.
By Lake.F
Cont’
30
Any address that starts with a value between 1 and 126 in the
first octet is a Class A address.
Example: [Link]
By Lake.F
Cont’
31
The first two bits of a Class B address are always 10.
The lowest number that can be represented is 10000000,
decimal 128.
The highest number that can be represented is 10111111,
decimal 191.
Any address that starts with a value between 128 and 191 in
the first octet is a Class B address.
Example: [Link]
By Lake.F
Cont’
32
The first three bits of a Class C address are always 110.
The lowest number that can be represented is 11000000,
decimal 192.
The highest number that can be represented is 11011111,
decimal 223.
Any address that starts with a value between 192 and 223 in
the first octet is a Class C address.
Example: [Link]
By Lake.F
Network Addresses
33
• When an organization is given a block of addresses, the
organization is free to allocate the addresses to the devices
that need to be connected to the Internet.
• The first address is called the network address and defines
the organization network.
• It defines the organization itself to the rest of the world.
• The first address is the one that is used by routers to direct
the message sent to the organization from the outside.
By Lake.F
Cont’
34
IP addresses, like other addresses or identifiers we
encounter these days, have levels of hierarchy.
For example, a telephone network in Ethiopia has three
levels of hierarchy.
The leftmost three digits (+251) define the country code,
the next three digits (058, for example) define the area,
the last seven digits (2212541, for example) define the
subscriber number.
By Lake.F
IP addressing: Summary
35
in binary notation In decimal notation
By Lake.F
Reserved IP addresses
36
Certain IP addresses are reserved and cannot be used to
serve as an address to a host. These are:
i. Network address:
Used to identify the network itself.
Assume a class C network which starts with 200.150.56.
Hosts can be assigned addresses from
[Link] to [Link]
The address [Link] is called the network address.
By Lake.F
How many networks are there?
37
By Lake.F
Cont’
38
ii. Broadcast address
Used for broadcasting packets to all the devices on a network.
Hosts use broadcast addresses to send data to all hosts in a
network.
Assume a class C network with a network address [Link]
The broadcast address for this network is [Link]
Note:
• Network addresses have all zeros for the host portion.
• Broadcast addresses have all ones for the host portion.
By Lake.F
Subnetting
39
To efficiently manage IP addresses, all classes can be
subdivided into smaller subnetworks or subnets.
This process is known as subnetting.
Advantages:
Reduced network traffic
Optimized network performance
Simplify management
By Lake.F
The subnetting process
40
To create the subnetwork structure, host bits must be
reassigned as network bits which is often referred to as
borrowing bits.
The starting point for this process is always the leftmost
host bit.
Subnet addresses include:
The Class A, Class B, and Class C network portion,
a subnet field and a host field.
By Lake.F
Cont’
41
The subnet field and the host field are created from the
original host portion of the major IP address.
This is done by assigning bits from the host portion to the
original network portion of the address.
Subnets have subnetwork ID (subnet ID) just as networks
have network IDs.
Subnet IDs - put all 0’s in the remaining host field.
By Lake.F
How many bits should we borrow?
42
To determine the number of bits to be used, the network
designer needs to calculate:
How many hosts the largest subnetwork requires and
The number of subnetworks needed.
A large number of subnets means fewer hosts
Total number of subnets is 2^bits borrowed.
Total number of hosts is 2^remaining host bits.
By Lake.F
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)
By Lake.F
Usable subnets
44
Among the available subnets, it’s not advised to use the
following two subnets:
The subnet with all 0’s in the subnet field
The subnet with all 1’s in the subnet field WHY?
If the first subnet (all 0’s in the subnet field) is used, then
network and subnet have the same address.
If the last subnet (all 1’s in the subnet field) is used, the network
broadcast address and a subnet have the same address.
By Lake.F
Cont’ 45
Hence usable subnets will be 2^bits borrowed – 2
Example:
If we borrow three bits from a class C address, total number
of usable subnets is 6 (2^3 - 2)
By Lake.F
Usable hosts
46
All 0’s in the host field is reserved for subnet address
All 1’s in the host field is reserved for broadcast address
Hence the number of usable host addresses is:
2^remaining host bits – 2
Example:
for 3 bits borrowed, total number of hosts are 30 (2^5 - 2).
By Lake.F
Mask
47
• Although the length of the network ID and host ID (in
bits) is predetermined in classful addressing, we can also
use a mask (also called the default mask).
• A 32-bit number made of contiguous 1s followed by
contiguous 0s.
• The mask can help us to find the network ID and the host
ID.
By Lake.F
Subnet masks
48
For the subnet address scheme to work, every machine on
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
By Lake.F
Subnet masks
49
A subnet mask is a 32-bit value that allows the receiver of IP
packets to distinguish:
The network portion of the IP address from the host
portion of the IP address.
By Lake.F
Subnet masks
50
A subnet mask is composed of 1s and 0s where:
The 1s in the subnet mask- refer to the network or
subnet addresses.
The 0s in the subnet mask- refer to the host address.
By Lake.F
Default subnet masks
51
Not all networks need subnets, meaning they use the
default subnet mask
Class A - [Link] Subnet mask: [Link]
Class B - [Link] Subnet mask:
[Link]
Class C - [Link] Subnet mask:
[Link]
These default subnet masks show the minimum number of
1’s you can have in a subnet mask for each class.
By Lake.F
Specifying subnets
52
Example if we borrow three bits from a class C address, the subnet
mask is [Link]
Subnets may also be represented, in a slash format.
For example, /24 indicates that the total bits that were used for the
network and subnetwork portion is 24
The subnet mask [Link] in slash format is /27
By Lake.F
Subnetting Class C addresses - Example 1
53
Let us subnet the network address [Link] with a subnet
mask [Link] or in slash format /26
i. How many subnets do we have?
Since 192 is 2 bits on (11000000), the answer would be 2^2 – 2 = 2
ii. How many hosts per subnet do we have?
We have 6 host bits off (11000000), so the answer would be
2^6 – 2 = 62 hosts
By Lake.F
Cont’
54
iii. What are the subnet IDs?
We vary the borrowed bits (00, 01, 10, 11).
So the subnets are [Link], [Link], [Link],
[Link]
iv. What are the valid or usable subnets?
The ones which do not have all 0’s or all 1’s in the subnet field,
namely [Link] and [Link]
By Lake.F
Cont’
55
v. What’s the broadcast address for the valid
subnets?
The valid subnets start with 01 and 10.
The broadcast address for these two addresses will have
01111111 and 10111111. Which are 127 and 191.
So the broadcast addresses will be
[Link] and [Link].
By Lake.F
Cont’
56
vi. What are the valid hosts?
These are the numbers between the subnet ID and
broadcast address. The hosts for the first valid subnet are
[Link], [Link], …, [Link]
The hosts for the second valid subnet are [Link],
[Link], …, [Link]
By Lake.F
Calculating class A and B networks
57
The Class A and B subnetting procedure is identical to the
process for Class C, except there may be significantly more
bits involved
The available bits for assignment to the subnet field:
in a Class A address is 22 bits.
Class B address has 14 bits.
By Lake.F
Subnetting Class B addresses – Example 1
58
[Link] = Network address
[Link] = Subnet mask
i. How many Subnets?
Ans: 2^2 – 2 = 2.
ii. How many Hosts per subnet?
Ans: 2^14 – 2 = 16,382. (6 bits in the third octet, and 8 in the
fourth)
iii. Subnet IDs of valid subnets?
Ans: [Link] and [Link]
By Lake.F
Cont’
59
iv. Broadcast address for each subnet and valid hosts?
Ans: Below is the two subnets available and the address of each:
Subnet [Link] [Link]
First host [Link] [Link]
Last host [Link] [Link]
Broadcast [Link] [Link]
By Lake.F
Subnetting Class A addresses – Example 1
60
[Link] = Network address
[Link] (/16) = Subnet mask
i. Subnets?
Ans: 2^8 – 2 = 254
ii. Hosts?
Ans: 2^16 – 2 = 65,534
iii. Valid subnets?
Ans: [Link], [Link], [Link], …, [Link]
By Lake.F
Subnetting Class A addresses – Example 1
61
iv. Broadcast address for each subnet and valid hosts?
Subnet [Link] … [Link]
First host [Link] … [Link]
Last host [Link] … [Link]
Broadcast [Link] … [Link]
By Lake.F
Network Address Translation (NAT)
62
• More hosts to be connected to the internet & IP addresses are in
depletion.
Solution: NAT (used in router).
• Preserve the limited amount of IPV4 public IP addresses.
• NAT translates a set of IP addresses in to another set of IP
addresses.
Translate from private IP address to public IP address.
Compare and contrast Private and Public IP address!?
By Lake.F
IPv6 ADDRESSES
63
Despite all short-term solutions, address depletion is
still a long-term problem for the Internet.
This and other problems in the IP protocol itself have
been the motivation for IPv6.
An IPv6 address is 128 bits or 32 hexadecimal digits
long.
By Lake.F
...’’’
64
Note:
Computers understand numbers and can be identified by IP
address.
Names are easy to memorized by users instead of numbers.
How to mediate them?
When an IP address is assigned manually, IP conflict!
How to solve this problem?
By Lake.F
DNS server (domain name system)
65
DNS is an Internet service that translates domain names into IP
addresses.
Because domain names are alphabetic, they're easier to
remember.
The Internet however, is really based on IP addresses.
Every time you use a domain name, therefore, a DNS service
must translate the name into the corresponding IP address.
By Lake.F
Cont
66
Humans are identified with names
Computers are communicated each other not by names
rather they used numbers(IP address).
To solve the gap between humans and computers, DNS is
developed.
It resolves names to numbers(domain names to IP
addresses).
By Lake.F
Cont
67
Example: the domain name www. [Link] might
translate to [Link]
A computer knows IP address [Link] is for [Link]
if some one want to use [Link], it is difficult to
memorize this IP address.
So, the domain name ([Link]) is used and the DNS
server resolves it as a number.
This is done by searching the equivalent IP address of the
domain name from cache memory.
By Lake.F
Dynamic Host Configuration Protocol (DHCP)
68
DHCP is a protocol for assigning dynamic IP addresses to
devices on a network.
With dynamic addressing, a device can have a different IP
address every time it connects to the network.
In some systems, the device's IP address can even change while
it is still connected.
DHCP also supports a mix of static and dynamic IP addresses.
By Lake.F
Cont’
69
Every computer on a network must have IP address.
Two ways of assigning an IP address:
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
By Lake.F
Cont’
70
Dynamic IP addressing is where a computer gets an
IP address from a DHCP server.
A DHCP server automatically assigns a computer:
IP address
Subnet mask
Default gateway
DNS server
By Lake.F
Cont’
71
Lease
DHCP server assigns IP address as a lease.
Lease is amount of time an IP address is assigned to the
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
renew the IP address lease
By Lake.F
By Lake.F