Networking
Networking
Program
Networking 1 is one of the program requirements for a BSIT student in
School of Engineering and Technology.
Course Description
Networking 1 covers the basic concepts of data communication, protocols,
standards, networking types, errors and corrections, and how is data is
encoded and transmitted.
Prerequisite Course(s)
Networking 1 requires a satisfactory completion of Platform Technologies.
Module Description
This module is used for instructional purposes only for second year
student of the BSIT program under the School of Engineering and
Technology of J.H. Cerilles State College.
2
Data communications
Data
Are information presented in whatever form is agreed upon by the parties
creating and using it. It is also known as information.
Communication
Process by which information is exchanged between individuals through a
common system of symbols, signs or behavior
Data communications
Is sharing of information. The sharing can be done face-to-face or takes
over a distance. Communication at a distance is also known as
telecommunication which includes telephony, telegraphy and television.
Are the exchanged of data between two devices via some form of
transmission medium such as wire cable
How does data communications occur?
Communication devices must be a part of a communication system made
up of: hardware (physical equipment) and software (applications)
Effectiveness of Data Communications System
The success of a data communication system depends on the following
fundamental characteristics:
a. Delivery. The delivery of data to the intended device or user
and only to that device or user.
b. Accuracy. Accurate data are delivered to the intended
device or user.
c. Timeliness. Data are delivered to the intended device or
user accurately and on-time.
d. Jitter. Even variation of packet that arrive at the intended
device or user.
3
Data Representation
1. Text. Represented as a bit pattern, a sequence of bits (0s or 1s).
Different sets of bit patterns have been designed to represent text
symbols. Each set is called code and the process of representing
symbols is called coding. The prevalent coding system is called
Unicode, which uses 32-bits to represent a symbol or character.
The American Standard Code for Information Interchange (ASCII)
constitutes the first 127 characters in Unicode and is also
referred to as Basic Latin.
2. Numbers. Are also represented by bit patterns but is not
represented by ASCII. Numbers are directly converted to a binary
number to simplify mathematical operations.
3. Images. Are also represented by bit pattern. In its simplest form,
it is composed of a matrix of dots or pixels (picture elements). The
size of the pixel depends on the resolution.
4. Audio. Refers to the recording or broadcasting of sound or music.
Audio is by nature different from text, numbers, or images. It is
4
Data Flow
This refers to flow of data in the network.
a. Simplex. Flow of data is unidirectional (one-way). Only one of the
devices on the link can send and the other can receive. Examples:
keyboards, traditional monitors, radio broadcasting
b. Half-duplex. Flow of data is bi-directional (two-way) but not at the
same time. Both devices on the link can send and receive data but
not at the same time. This means that one device is the sender while
the other device will receive. Once the transmission is done, the
receiver can send data, making it the sender and the sender can
receive data making it the receiver. This flow of data cannot happen
at the same time. Examples: walkie-talkies, browsing the internet.
c. Full-duplex. Also known as duplex. Flow of data is bi-directional and
simultaneous. Devices on the link can either be a sender and
receiver at the same time. Examples: cellphones, telephones,
audio/video calls, live chats.
Networks
The interconnection of a set devices capable of communication. The set of
devices are connected using wired or wireless transmission media such as cable
or air.
A device can be a host (also known as end system) such as large computer,
desktop, laptop, workstation, cellular phone or security system.
A device can also be a connecting device such as router, switch, modem,
and so on.
Network Criteria
Below are the criteria that a network must met:
a. Performance. Measured in many ways, including transit
time and response time. Transit time is the amount of time
required for a message to travel from one device to another.
Response time is the elapsed time between an inquiry and
6
Point-to-Point
Provides a dedicated link between two devices. The entire capacity
of the link is reserved for transmission between those two devices. Most
point-to-point connections use an actual length of wire or cable to connect
the two ends, but other options, such as microwave or satellite links, are
also possible, see figure 3.a. Example: remote control for TVs
Multipoint
one in which more than two specific devices share a single link. In a
multipoint environment, the capacity of the channel is shared, either
spatially or temporally, see figure 3.b.
Spatially shared. Several devices can use the link
simultaneously connection.
Timeshared. Users must take turns.
7
Disadvantages Explanation
(Cons)
because every device must be
Difficult to connected to every
configure
other device
wiring can be greater than the
Bulky available space (in walls, ceilings, or
floors) can accommodate
Hardware required to connect each
Expensive link (I/O ports and cable) depends on
the number of nodes to connect
Easy to install and reconfigure each device needs only one link and one I/O
port to connect it to any number of others.
Figure 11: internetwork made of two LANS and one point-to-point WAN
c. Switching
d. The Internet
Standards
Internet Standards
A thoroughly tested specification that is useful to and adhered to by those
who work with the Internet. It is a formalized regulation that must be
followed. There is a strict procedure by which a specification attains
Internet standard status. A specification begins as an Internet draft.
Internet Draft
a working document (a work in progress) with no official status and
a six-month lifetime. Upon recommendation from the Internet authorities,
a draft may be published as a Request for Comment (RFC). Each RFC is
edited, assigned a number, and made available to all interested parties.
RFCs go through maturity levels and are categorized according to their
requirement level.
15
Maturity levels
An RFC, during its lifetime, falls into one of six maturity levels, see
Figure 14.
Requirement Levels
a. Required. If it must be implemented by all Internet systems
to achieve minimum conformance.
16
Network Models
Protocol Layering
Protocol
defines the rules that both the sender and receiver and all
intermediate devices need to follow to be able to communicate effectively.
Layering
Task are divided into a hierarchy of smaller and more manageable
layers, each performs a specific function
Protocol layering
Task are divided into different layers where a protocol is needed at
each layer
Scenario 1:
communication is so simple that it can occur in only one layer.
Assume Marvin and Maribel are neighbors with a lot of common ideas.
Communication between Maria and Ann takes place in one layer, face to
face, in the same language, see figure 15.
business when they both retire. They decide to continue their conversation
using regular mail through the post office. However, they do not want their
ideas to be revealed by other people if the letters are intercepted. They
agree on an encryption/decryption technique. The sender of the letter
encrypts it to make it unreadable by an intruder; the receiver of the letter
decrypts it to get the original letter.
Layered Architecture
To show how the layers in the TCP/IP protocol suite are involved in
communication between two hosts, assume that we want to use the suite
in a small internet made up of three LANs (links), each with a link-layer
switch. Also assume that the links are connected by one router.
wired WAN, or a wireless WAN. Responsible for moving the packet through
the link.
Protocol Examples: PPP, IEEE, 802.3
Network layer
Responsible for creating a connection between the source computer
and the destination computer. The communication at the network layer is
host-to-host. However, since there can be several routers from the source
to the destination, the routers in the path are responsible for choosing the
best route for each packet. Responsible for host-to-host communication
and routing the packet through possible routes.
Protocol Examples: IP, ARP, ICMP
Transport layer
The logical connection at the transport layer is also end-to-end. The
transport layer at the source host gets the message from the application
layer, encapsulates it in a transport layer packet (called a segment or a
user datagram in different protocols) and sends it, through the logical
(imaginary) connection, to the transport layer at the destination host. In
other words, the transport layer is responsible for giving services to the
application layer: to get a message from an application program running
on the source host and deliver it to the corresponding application program
on the destination host.
Protocol examples: TCP, UDP
Application layer
Communication at the application layer is between two processes
(two programs running at this layer). To communicate, a process sends a
request to the other process and receives a response. Process-to-process
communication is the duty of the application layer. The application layer
in the Internet includes many predefined protocols, but a user can also
create a pair of processes to be run at the two hosts
Recommended Readings
Khan, R. Z., & Shiranzaei, A. (2015). A Comparative Study on IPv4 and IPv6.
International Journal of Advanced Information Science and Technology
(IJAIST), 33(33), 9-16. Retrieved January 11, 2024, from
[Link]
Study_on_IPv4_and_IPv6
20
Paul, H. C., & Bakon, K. A. (2016). A STUDY ON IPv4 and IPv6: THE
IMPORTANCE OF THEIR CO-EXISTENCE. International Journal of
Information System and Engineering, 4(2), 97-106.
doi:10.24924/ijise/2016.11/v4.iss2/97.106
21
Exercises
1. What is the maximum number of characters or symbols that can be
represented by Unicode?
2. A color image uses 16 bits to represent a pixel. What is the maximum
number of different colors that can be represented?
3. Assume six devices are arranged in a mesh topology. How many cables are
needed? How many ports are needed for each device?
4. For each of the following four networks, discuss the consequences if a
connection fails.
a. Five devices arranged in a mesh topology
b. Five devices arranged in a star topology (not counting the hub)
c. Five devices arranged in a bus topology
d. Five devices arranged in a ring topology
5. We have two computers connected by an Ethernet hub at home. Is this a
LAN or a WAN? Explain the reason.
6. In the ring topology in Figure 7, what happens if one of the stations is
unplugged?
7. In the bus topology in Figure 6, what happens if one of the stations is
unplugged?
8. Performance is inversely related to delay. When we use the Internet, which
of the following applications are more sensitive to delay?
a. Sending an e-mail
b. Copying a file
c. Surfing the Internet
9. When a party makes a local telephone call to another party, is this a point-
to-point or multipoint connection? Explain the answer.
10. Compare the telephone network and the Internet. What are the
similarities? What are the differences?
22
23
Introduction
Transmission media are actually located below the physical layer and are
directly controlled by the physical layer. Figure 19 shows the position of the
transmission media in relation to the physical layer.
A transmission medium can be broadly defined as anything that can carry
information from a source to a destination. For example, the transmission
medium for two people having a dinner conversation is the air. The air can also
be used to convey the message in a smoke signal or semaphore. For a written
message, the transmission medium might be a mail carrier, a truck, or an
airplane.
In data communications the definition of the information and the
transmission medium is more specific. The transmission medium is usually free
space, metallic cable, or fiber-optic cable. The information is usually a signal
that is the result of a conversion of data from another form.
Brief History
During the 19th century, the use of long-distance communication using
electric signals started with the invention of the telegraph by Morse.
Communication by telegraph was slow and dependent on a metallic medium.
Extending the range of the human voice became possible when the telephone
was invented in 1869. Telephone communication at that time also needed a
metallic medium to carry the electric signals that were the result of a conversion
from the human voice. The communication was, however, unreliable due to the
24
poor quality of the wires. The lines were often noisy and the technology was
unsophisticated. Wireless communication started in 1895 when Hertz was able
to send high frequency signals. Later, Marconi devised a method to send
telegraph-type messages over the Atlantic Ocean.
means that the receiver, which calculates the difference between the two,
receives no unwanted signals. The unwanted signals are mostly canceled
out. From the above discussion, it is clear that the number of twists per
unit of length (e.g., inch) has some effect on the quality of the cable.
Connector
The most common UTP connector is RJ45 (RJ stands for registered
jack), the RJ45 is a keyed connector, meaning the connector can be
inserted in only one way.
T568B has surpassed 568A and is seen as the default wiring scheme for
twisted pair structured cabling. If you are unsure of which to use, choose
568B.
Figure 24: T568a and T568B Color Scheme Standard
Straight Through Cable
A straight through cable is a type of twisted pair cable that is used
in local area networks to connect a computer to a network hub such as a
router. This type of cable is also sometimes called a patch cable and is an
alternative to wireless connections where one or more computers access a
router through a wireless signal. On a straight through cable, the wired
pins match. Straight through cable use one wiring standard: both ends
use T568A wiring standard or both ends use T568B wiring standard. The
following figure shows a straight through cable of which both ends are
wired as the T568B standard.
28
✓ Hub to PC or server
Performance
One way to measure the performance of twisted-pair cable is to
compare attenuation versus frequency and distance. A twisted-pair cable
can pass a wide range of frequencies. However, with increasing frequency,
the attenuation, measured in decibels per kilometer (dB/km), sharply
increases with frequencies above 100 kHz as shown in Figure 24. Note that
gauge is a measure of the thickness of the wire.
Applications
Twisted-pair cables are used in telephone lines to provide voice and
data channels. The local loop—the line that connects subscribers to the
central telephone office— commonly consists of unshielded twisted-pair
cables.
The DSL lines that are used by the telephone companies to provide
high-data-rate connections also use the high-bandwidth capability of
unshielded twisted-pair cables.
Coaxial Cable
Coaxial cable (or coax) carries signals of higher frequency ranges
than those in twisted-pair cable, in part because the two media are
constructed quite differently. Instead of having two wires, coax has a
central core conductor of solid or stranded wire (usually copper) enclosed
in an insulating sheath, which is, in turn, encased in an outer conductor
of metal foil, braid, or a combination of the two. The outer metallic
wrapping serves both as a shield against noise and as the second
conductor, which completes the circuit. This outer conductor is also
enclosed in an insulating sheath, and the whole cable is protected by a
plastic cover.
Fiber-Optic Cable
A fiber-optic cable is made of glass or plastic and transmits signals
in the form of light. To understand optical fiber, we first need to explore
several aspects of the nature of light. Light travels in a straight line as long
as it is moving through a single uniform substance. If a ray of light
traveling through one substance suddenly enters another substance (of a
different density), the ray changes direction. Figure 28 shows how a ray of
light changes direction when going from a denser to a less dense
substance. As the figure shows, if the angle of incidence I (the angle the ray
makes with the line perpendicular to the interface between the two
substances) is less than the critical angle, the ray refracts and moves closer
to the surface. If the angle of incidence is equal to the critical angle, the
light bends along the interface. If the angle is greater than the critical
angle, the ray reflects (makes a turn) and travels again in the denser
substance. Note that the critical angle is a property of the substance, and
its value differs from one substance to another. Optical fibers use reflection
to guide light through a channel. A glass or plastic core is surrounded by
a cladding of less dense glass or plastic. The difference in density of the two
materials must be such that a beam of light moving through the core is
reflected off the cladding instead of being refracted into it.
33
Multimode
Multimode is so named because multiple beams from a light source
move through the core in different paths. How these beams move within
the cable depends on the structure of the core. In multimode step-index fiber,
the density of the core remains constant from the center to the edges. A
beam of light moves through this constant density in a straight line until
34
it reaches the interface of the core and the cladding. At the interface, there
is an
abrupt change due to a lower density; this alters the angle of the
beam’s motion. The term step-index refers to the suddenness of this change,
which contributes to the distortion of the signal as it passes through the
fiber. A second type of fiber, called multimode graded-index fiber, decreases
this distortion of the signal through the cable. The word index here refers
to the index of refraction. As we saw above, the index of refraction is related
to density. A graded-index fiber, therefore, is one with varying densities.
Density is highest at the center of the core and decreases gradually to its
lowest at the edge. Figure 31 shows the impact of this variable density on
the propagation of light beams.
Single-Mode
Single-mode uses step-index fiber and a highly focused source of
light that limits beams to a small range of angles, all close to the
horizontal. The single-mode fiber itself is manufactured with a much smaller
35
Cable Composition
The outer jacket is made of either PVC or Teflon. Inside the jacket
are Kevlar strands to strengthen the cable. Kevlar is a strong material used
in the fabrication of bulletproof vests. Below the Kevlar is another plastic
coating to cushion the fiber. The fiber is at the center of the cable, and it
consists of cladding and core.
Figure
33: Fiber-Optic Cable Connector
Performance
The plot of attenuation versus wavelength in Figure 34 shows a very
interesting phenomenon in fiber-optic cable. Attenuation is flatter than in
the case of twisted-pair cable and coaxial cable. The performance is such
that we need fewer (actually one tenth as many) repeaters when we use
fiber-optic cable.
Applications
Fiber-optic cable is often found in backbone networks because its
wide bandwidth is cost-effective. Today, with wavelength-division
multiplexing (WDM), we can transfer data at a rate of 1600 Gbps. The
SONET network that we discuss in Chapter 14 provides such a backbone.
Some cable TV companies use a combination of optical fiber and coaxial
cable, thus creating a hybrid network. Optical fiber provides the backbone
structure while coaxial cable provides the connection to the user premises.
This is a cost-effective configuration since the narrow bandwidth
requirement at the user end does not justify the use of optical fiber.
37
Unguided Media
Unguided medium transport electromagnetic waves without using a physical
conductor. This type of communication is often referred to as wireless
communication. Signals are normally broadcast through free space and thus
are available to anyone who has a device capable of receiving them.
Figure 35 shows the part of the electromagnetic spectrum, ranging from 3
kHz to 900 THz, used for wireless communication. Figure 36 shows,
unguided signals can travel from the source to the destination in several
ways: ground propagation, sky propagation, and line-of-sight propagation.
In ground propagation, radio waves travel through the lowest portion of
the atmosphere, hugging the earth. These low-frequency signals emanate
in all directions from the transmitting antenna and follow the curvature of
the planet. Distance depends on the amount of power in the signal: The
greater the power, the greater the distance. In sky propagation, higher-
frequency radio waves radiate upward into the ionosphere (the layer of
atmosphere where particles exist as ions) where they are reflected back to
earth. This type of transmission allows for greater distances with lower
output power. In line-of-sight propagation, very high-frequency signals
are transmitted in straight lines directly from antenna to antenna.
Antennas must be directional, facing each other, and either tall enough or
close enough together not to be affected by the curvature of the earth. Line-
of-sight propagation is tricky because radio transmissions cannot be
completely focused. The section of the electromagnetic spectrum defined
as radio waves and microwaves is divided into eight ranges, called bands,
each regulated by government authorities. These bands are rated from
very low frequency (VLF) to extremely high frequency (EHF). Table 7 lists
these bands, their ranges, propagation methods, and some applications.
39
Radio Waves
Although there is no clear-cut demarcation between radio waves and
microwaves, electromagnetic waves ranging in frequencies between 3 kHz
and 1 GHz are normally called radio waves; waves ranging in frequencies
between 1 and 300 GHz are called microwaves. However, the behavior of the
waves, rather than the frequencies, is a better criterion for classification.
Radio waves, for the most part, are omnidirectional. When an antenna
transmits radio waves, they are propagated in all directions. This means
that the sending and receiving antennas do not have to be aligned. A
sending antenna sends waves that can be received by any receiving
antenna. The omnidirectional property has a disadvantage, too. The radio
waves transmitted by one antenna are susceptible to interference by
another antenna that may send signals using the same frequency or band.
Radio waves, particularly those waves that propagate in the sky mode, can
travel long distances. This makes radio waves a good candidate for long-
distance broadcasting such as AM radio. Radio waves, particularly those
of low and medium frequencies, can penetrate walls. This characteristic
can be both an advantage and a disadvantage. It is an advantage because,
for example, an AM radio can receive signals inside a building. It is a
disadvantage because we cannot isolate a communication to just inside or
outside a building. The radio wave band is relatively narrow, just under 1
GHz, compared to the microwave band. When this band is divided into
subbands, the subbands are also narrow, leading to a low data rate for
digital communications. Almost the entire band is regulated by authorities
(e.g., the FCC in the United States). Using any part of the band requires
permission from the authorities.
Omnidirectional Antenna
Radio waves use omnidirectional antennas that send out signals in all
directions. Based on the wavelength, strength, and the purpose of
transmission, we can have several types of antennas.
41
Applications
The omnidirectional characteristics of radio waves make them
useful for multicasting, in which there is one sender but many receivers.
AM and FM radio, television, maritime radio, cordless phones, and paging
are examples of multicasting.
Unidirectional Antenna
Microwaves need unidirectional antennas that send out signals in one
direction. Two types of antennas are used for microwave communications:
the parabolic dish and the horn.
A parabolic dish antenna is based on the geometry of a parabola: Every
line parallel to the line of symmetry (line of sight) reflects off the curve at
angles such that all the lines intersect in a common point called the focus.
The parabolic dish works as a funnel, catching a wide range of waves and
directing them to a common point. In this way, more of the signal is
recovered than would be possible with a single-point receiver. Outgoing
transmissions are broadcast through a horn aimed at the dish. The
microwaves hit the dish and are deflected outward in a reversal of the
receipt path. A horn antenna looks like a gigantic scoop. Outgoing
transmissions are broadcast up a stem (resembling a handle) and
deflected outward in a series of narrow parallel beams by the curved head.
Received transmissions are collected by the scooped shape of the horn, in
a manner similar to the parabolic dish, and are deflected down into the
stem.
Recommended Reading
Khan, R. Z., & Shiranzaei, A. (2015). A Comparative Study on IPv4 and IPv6.
International Journal of Advanced Information Science and Technology
(IJAIST), 33(33), 9-16. Retrieved January 11, 2024, from
[Link]
Study_on_IPv4_and_IPv6
Paul, H. C., & Bakon, K. A. (2016). A STUDY ON IPv4 and IPv6: THE
IMPORTANCE OF THEIR CO-EXISTENCE. International Journal of
Information System and Engineering, 4(2), 97-106.
doi:10.24924/ijise/2016.11/v4.iss2/97.106
44
Written Exercises
1. What is the difference between a refraction and a reflection? Discuss
briefly.
2. What is the purpose of cladding in an optical fiber?
3. how does line-of-sight differ from sky propagation?
4. what is the difference of an omnidirectional and unidirectional waves?
5. What is T568A and T568B used for?
6. What is the standard color scheme for T568A and T568B?
7. What is the standard color scheme for straight through cable?
8. What is the standard color scheme for crossover cable?
9. is it possible to interchange the standard color scheme for straight through
and crossover cable? Explain briefly.
10. T568A and T568B are standard color schemes for what
transmission media?
45
1. What type of network cable did you use for this activity?
_______________________________________________________________________
2. What command is used to display some IP configuration in a device?
_______________________________________________________________________
3. What command is used to display all IP configuration in a device?
_______________________________________________________________________
4. What command is used to verify the connectivity between two or more
computers in a network?
_______________________________________________________________________
5. What is the output when the command from number 4 is used and the
connection is successful?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
6. What is the output when the command from number 4 is used and the
connection is not successful?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
7. What is the output when the command from number 4 is used and the
connection is not reachable?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
47
48
Introduction
The network layer in the TCP/IP protocol suite is responsible for the host-
to-host delivery of datagrams. It provides services to the transport layer and
receives services from the data-link layer.
Let us briefly discuss the network-layer services that, in general, are
expected from a network-layer protocol. Let us take the scenario of a
communication between Alice and Bob at the network layer, as shown in figure
39. The figure shows that the Internet is made of many networks (or links)
connected through the connecting devices. In other words, the Internet is an
internetwork, a combination of LANs and WANs.
49
allowed to change the content of the payload unless it is too large for
delivery and needs to be fragmented.
The destination host receives the network-layer packet from its data-link
layer, decapsulates the packet, and delivers the payload to the
corresponding upper-layer protocol. If the packet is fragmented at the
source or at routers along the path, the network layer is responsible for
waiting until all fragments arrive, reassembling them, and delivering them
to the upper-layer protocol.
The routers in the path are not allowed to decapsulate the packets they
received unless the packets need to be fragmented. The routers are not
allowed to change source and destination addresses either. They just
inspect the addresses for the purpose of forwarding the packet to the next
network on the path. However, if a packet is fragmented, the header needs
to be copied to all fragments and some changes are needed, as we discuss
in detail later.
Routing and Forwarding
Routing
The network layer is responsible for routing the packet from its
source to the destination. A physical network is a combination of networks
(LANs and WANs) and routers that connect them. This means that there
is more than one route from the source to the destination. The network
layer is responsible for finding the best one among these possible routes.
The network layer needs to have some specific strategies for defining the
best route. In the Internet today, this is done by running some routing
protocols to help the routers coordinate their knowledge about the
neighborhood and to come up with consistent tables to be used when a
packet arrives. The routing protocols, which we discuss in Chapters 20
and 21, should be run before any communication occurs.
Forwarding
If routing is applying strategies and running some routing protocols
to create the decision-making tables for each router, forwarding can be
defined as the action applied by each router when a packet arrives at one
of its interfaces. The decision-making table a router normally uses for
applying this action is sometimes called the forwarding table and sometimes
the routing table. When a router receives a packet from one of its attached
networks, it needs to forward the packet to another attached network (in
unicast routing) or to some attached networks (in multicast routing). To
make this decision, the router uses a piece of information in the packet
header, which can be the destination address or a label, to find the
51
The network layer in the Internet, however, does not directly provide
any flow control. The datagrams are sent by the sender when they are
ready, without any attention to the readiness of the receiver.
A few reasons for the lack of flow control in the design of the network
layer can be mentioned. First, since there is no error control in this layer,
the job of the network layer at the receiver is so simple that it may rarely
be overwhelmed. Second, the upper layers that use the service of the
network layer can implement buffers to receive data from the network layer
as they are ready and do not have to consume the data as fast as it is
received. Third, flow control is provided for most of the upper-layer
protocols that use the services of the network layer, so another level of flow
control makes the network layer more complicated and the whole system
less efficient.
Congestion Control
Another issue in a network-layer protocol is congestion control.
Congestion in the network layer is a situation in which too many
datagrams are present in an area of the Internet. Congestion may occur if
the number of datagrams sent by source computers is beyond the capacity
of the network or routers. In this situation, some routers may drop some
of the datagrams. However, as more datagrams are dropped, the situation
may become worse because, due to the error control mechanism at the
upper layers, the sender may send duplicates of the lost packets. If the
congestion continues, sometimes a situation may reach a point where the
system collapses and no datagrams are delivered.
Quality of Service
As the Internet has allowed new applications such as multimedia
communication (in particular real-time communication of audio and
video), the quality of service (QoS) of the communication has become more
and more important. The Internet has thrived by providing better quality
of service to support these applications. However, to keep the network
layer untouched, these provisions are mostly implemented in the upper
layer.
Security
Another issue related to communication at the network layer is
security. Security was not a concern when the Internet was originally
designed because it was used by a small number of users at universities
for research activities; other people had no access to the Internet. The
network layer was designed with no security provision. Today, however,
security is a big concern. To provide security for a connectionless network
layer, we need to have another virtual level that changes the
53
Internet Protocol
IPv4, or Internet Protocol version 4, is a widely used protocol for identifying
and locating devices on a network, particularly on the Internet. It serves as a
fundamental communication protocol that enables data to be sent and received
between devices over a network.
IPv4 addresses are numerical labels assigned to each device connected to
a network that uses the Internet Protocol for communication. These addresses
are 32-bit numerical values, typically expressed as four sets of decimal digits
separated by periods (for example, [Link]). The 32-bit address space allows
for approximately 4.3 billion unique addresses, which were thought to be
sufficient when IPv4 was developed.
Internet Protocol (IP) has currently two versions that is use by the industry
nowadays: version 4 and 6. Internet Protocol version 4 (IPv4), is responsible for
packetizing, forwarding, and delivery of a packet at the network layer. The
Internet Control Message Protocol version 4 (ICMPv4) helps IPv4 to handle some
errors that may occur in the network-layer delivery. The Internet Group
Management Protocol (IGMP) is used to help IPv4 in multicasting. The Address
Resolution Protocol (ARP) is used to glue the network and data-link layers in
mapping network-layer addresses to link-layer addresses. Figure 41 shows the
positions of these four protocols in the TCP/IP protocol suite.
Figure 41: Position of IP and other network layer protocols in TCP/IP protocol
suite
Unique and Universal
IPv4 addresses are unique because each address defines one, and only
one, connection to the internet."
In the context of computer networking, IPv4 (Internet Protocol version 4)
addresses serve as unique identifiers for devices connected to the Internet.
Each device, whether it's a computer, smartphone, or any other networked
54
Octet
An octet refers to a group of eight bits. IPv4 addresses are 32-bit
numerical values, divided into four octets for ease of representation and
readability. Each octet is typically expressed as a decimal number, ranging
from 0 to 255, as there is 2^8 (256) possible combinations of eight bits.
In the dotted-decimal notation used for IPv4 addresses, the 32 bits
are separated into four groups, and each group is represented as a decimal
number. These decimal numbers are the values of the four octets.
For example, in the IPv4 address [Link]:
192 represents the first octet (8 bits).
168 represents the second octet (8 bits).
0 represents the third octet (8 bits).
1 represents the fourth octet (8 bits).
Dotted-Binary Notation
IPv4 addresses can be written as four sets with 8-bit binary numbers
separated by periods (dots). These types of notations are frequently
employed in instructional materials to facilitate the teaching of route
summarization. They serve as essential tools for illustrating to students
the separation between the network and host portions within an IPv4
address. Note that there can be no less than or more than 32 numbers of
either 0s and 1s in one address.
Example: The IPv4 address [Link] can be written in binary as
11000000.10101000.00000000.00000001.
Dotted-Decimal Notation
IPv4 addresses are commonly written as four sets of decimal
numbers separated by periods (dots). Each decimal number represents 8
bits of the 32-bit IPv4 address.
It's important to keep in mind a few rules when working with IPv4
addresses. First, ensure there are no leading zeros in each octet. Second,
there should be no more than four groups of numbers separated by dots
in the address. Third, every number in an octet must be less than or equal
to 255. Lastly, avoid mixing binary and decimal numbers within the same
address. Following these guidelines ensures proper formatting and
adherence to the conventions of IPv4 addressing.
Example: The IPv4 address [Link] is written in dotted-decimal
notation, where 192 represents the first 8 bits, 168 represents the next 8
bits, 0 represents the next 8 bits, and 1 represents the last 8 bits.
56
CIDR
Is used to represent IP addresses along with their associated routing
prefixes in a more concise manner. It involves writing the IP address
followed by a forward slash ("/") and a number, indicating the length of
the network prefix in bits.
Example: [Link]/24 represents an IPv4 address range where
the first 24 bits are used for the network, and the remaining 8 bits are
available for host addresses.
Classful Addressing
Classful addressing refers to the original addressing scheme used in
IPv4 networks, which was based on fixed address classes. In this system,
IP addresses were divided into three main classes: Class A, Class B, and
Class C. Each class had a predefined range of network and host addresses,
and the division was based on the leading bits of the IP address.
Here is a brief overview of the three classes:
✓ Class A:
Network ID is [Link]
first address of the network is [Link]
last address of the network is [Link]
Subnet mask is [Link]
Another example, what is the network ID of [Link]. Since the
leading bits of the given IP is 10, then this means that the subnet mask is
[Link] since the given IP is a Class B. Thus,
1 0 0 0 0 0 0 1 . 0 0 1 1 1 0 1 1 . 1 0 1 0 1 0 0 1 . 0 0 0 0 1 0 0 1
A N D
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 1 . 0 0 1 1 1 0 1 1 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
Network ID is [Link]
58
Recommended Reading
Khan, R. Z., & Shiranzaei, A. (2015). A Comparative Study on IPv4 and IPv6.
International Journal of Advanced Information Science and Technology
(IJAIST), 33(33), 9-16. Retrieved January 11, 2024, from
[Link]
Study_on_IPv4_and_IPv6
Paul, H. C., & Bakon, K. A. (2016). A STUDY ON IPv4 and IPv6: THE
IMPORTANCE OF THEIR CO-EXISTENCE. International Journal of
Information System and Engineering, 4(2), 97-106.
doi:10.24924/ijise/2016.11/v4.iss2/97.106
61
Instruction:
✓ Answer the following questions
✓ Submit this activity 1 week after the submission of Online Activity
2.
✓ Upload your answers at the appropriate Google Drive Folder
provided to you.
✓ file name must be in the format of: FamilyName
Exercise 1:
Write ic if the following IP address is incorrect. Write c if the following IP
addresses is correct
1. [Link]
2. [Link]
3. 192.168.10101000.10
4. [Link]
5. [Link]
6. [Link]
7. [Link].0
8. [Link]
9. [Link]
10. [Link]
Exercise 2:
Write the class and the subnet mask of the following addresses. Write N/A if the
class does not have a subnet mask.
1. [Link]
2. [Link]
3. [Link]
4. [Link]
5. [Link]
6. [Link]
7. [Link]
8. [Link]
9. [Link]
10. [Link]
62
Exercise 3:
Using the IPv4 address given below determine the network ID, subnet mask, first
address, last address, and how many IP addresses are there in the network.
1. [Link]
2. [Link]
3. [Link]
4. [Link]
5. [Link]
63
64
Introduction
Packet Tracer is a cross-platform visual simulation tool designed by Cisco
Systems that allows users to create network topologies and imitate modern
computer networks. The software allows users to simulate the configuration of
Cisco routers and switches using a simulated command line interface. Packet
Tracer makes use of a drag and drop user interface, allowing users to add and
remove simulated network devices as they see fit. The software is mainly focused
towards Cisco Networking Academy students as an educational tool for helping
them learn fundamental CCNA concepts. Previously students enrolled in a CCNA
Academy program could freely download and use the tool free of charge for
educational use.
Packet Tracer can be run on Linux, Microsoft Windows, and macOS.
Similar Android and iOS apps are also available. Packet Tracer allows users to
create simulated network topologies by dragging and dropping routers, switches
and various other types of network devices. A physical connection between
devices is represented by a 'cable' item. Packet Tracer supports an array of
simulated Application Layer protocols, as well as basic routing with RIP, OSPF,
EIGRP, BGP, to the extents required by the current CCNA curriculum. As of
version 5.3, Packet Tracer also supports the Border Gateway Protocol.
Download and Install Cisco Packet Tracer
To obtain and install a copy of Cisco Packet Tracer, follow the instructions
from the link below:
[Link]
The Packet Tracer User Interface
Packet Tracer is a tool that allows you to simulate real networks. It
provides three main menus that you can use for the following:
✓ Add devices and connect them via cables or wireless
✓ Select, delete, inspect, label, and group components within your
network
✓ Manage your network
o Inspect
o Add Simple PDU
o Add Complex PDU
4. Workspace Type Bar
o You can toggle between the Physical Workspace and the Logical
Workspace with the tabs on this bar
5. Workspace
o This area is where you will create your network, watch simulations,
and view many kinds of information and statistics
6. Realtime or Simulation Bar
o You can toggle between Realtime Mode and Simulation Mode with
the tabs on this bar
7. Network Component Box
o This box is where you choose devices and connections to put onto
the workspace
o It contains the Device-Type Selection Box and the Device-Specific
Selection Box
8. Device Type Selection Box
o This box contains the type of devices and connections available in
Packet Tracer 5.3.0
o The Device-Specific Selection Box will change depending on which
type of devices you clicked
9. Device Selection Box
o This box is where you choose specifically which devices you want to
put in your network and which connections to make
10. Created Packet Window
o This window manages the packets you put in the network during
simulation scenarios
helps you to learn the CLI commands and the Cisco Internetwork
Operating System (IOS) while you are using the Config tab.
For example, in the figure, the user has configured SampleRouter as
the name of the device. The Equivalent IOS Commands window shows the
IOS command that achieves the same results in the CLI.
In addition, device configuration files can be saved, loaded, erased,
and exported here.
Recommended Readings
Ed, K., & Kumar, A. (2022). Study on Network Simulation using Cisco Packet
Tracer. International Research Journal of Engineering and Technology
(IRJET), 7(Special), 666-671. Retrieved January 11, 2024, from
[Link]
rk_Simulation_using_Cisco_Packet_Tracer
Rashid, N. A., Othman, M. Z., & Johan, R. (2019). Cisco Packet Tracer
Simulation as Effective Pedagogy in Computer Networking Course.
International Journal of Interactive Mobile Technologies (iJIM), 13(10), 4-18.
Retrieved January 11, 2024, from
[Link]
acer_Simulation_as_Effective_Pedagogy_in_Computer_Networking_Course
72
Table 1
Switch
Device Name IP Address Subnet Mask
Interface
Rubrics:
Hand-on 50 40 30 15 0 pnts
The connectivity of the devices is
The student was able to The student was not able to
Accuracy successful. The topology was fully
partially converged the configure correctly the
(40%) converged and end-to-end
network (50% to 85%) topology.
connectivity is achieved
73
Total
74
Table 1
Device Name IP Address Subnet Mask Default Gateway
75
Rubrics:
Hand-on 50 40 30 15 0 pnts
The connectivity of the devices is
The student was able to The student was not able to
Accuracy successful. The topology was fully
partially converged the configure correctly the
(40%) converged and end-to-end
network (50% to 85%) topology.
connectivity is achieved
Students was able to assigned
Students was able to assign the Students was not able to
Addressing IP addresses in every interface
correct IP address for every assigned correct IP
(20%) but was using an incorrect IP
interface addresses in every interface
address
Students was only able to Students was only able to
Configuration Student was able to assign all the
assigned 50% to 85% of the configure 50% and below of
(15%) necessary configuration
necessary configuration the necessary configuration
Student follow the correct Student did not follow the
Topology
communication channels or - correct communication
(10%)
devices channels or devices
Answers
- - -
(15%)
Total
76
77
Router as a Computer
Computers that specialize in sending packets over the data network. These
are responsible for interconnecting networks by selecting the best path for a
packet to travel and forwarding packets to their destination. Routers generally
have two connections: WAN connection (Connection to ISP), and LAN connection.
Routers forward packets from the original source to the final destination.
Router’s responsibilities lie primarily in determining the best path to send
packets and to forward the packets out the correct interface. It examines a
packet’s destination IP address and determine the best path by enlisting the aid
of a routing table.
– No route determined
Table 1
Device Interface Network ID Subnet Mask Default
Gateway
Fa0/0 1. 8.
R1 Fa1/0 2. 9.
Fa2/0 3. 10.
Rubrics:
Hand-on 50 40 30 15 0 pnts
The connectivity of the devices is
The student was able to The student was not able to
Accuracy successful. The topology was fully
partially converged the configure correctly the
(40%) converged and end-to-end
network (50% to 85%) topology.
connectivity is achieved
Students was able to assigned
Students was able to assign the Students was not able to
Addressing IP addresses in every interface
correct IP address for every assigned correct IP
(20%) but was using an incorrect IP
interface addresses in every interface
address
Students was only able to Students was only able to
Configuration Student was able to assign all the
assigned 50% to 85% of the configure 50% and below of
(15%) necessary configuration
necessary configuration the necessary configuration
Student follow the correct Student did not follow the
Topology
communication channels or - correct communication
(10%)
devices channels or devices
Answers
- - -
(15%)
Total