module 4
module 4
module 4
1. Computers Communicate,
2. IP address (Static vs. DHCP) ,
3. Computer MAC Address LAN, MAN and WAN,
4. Protocols and Ports
5. Types of Network Devices (Hub, Switch,
Modem, Router, Access point),
6. Internet and Intranet Working
Computers Communication
• Data Communication: Transferring data over a
transmission medium between two or more
devices, systems, or places is known as data
communication.
OSI:OPEN SYSTEM INTERCONECTION
• The OSI model is broken up into seven layers. Each layer fulfills an important
role within the networking stack and communicates with other layers by
exchanging protocol data units
1. The Physical Layer
The physical layer is where the raw bit stream is physically transmitted over a
physical medium. The Layer 1 PDU is the “symbol”. This includes translating bits to
electricity, light, or radio signals and controlling the rates at which they are sent
over the chosen medium.
2. The Data Link Layer
The data link layer breaks data to be transmitted into frames for transmission at
the physical layer. It also manages connections between two different nodes,
including setting up the connection, identifying and correcting any bit errors that
occur at the physical layer, and terminating the connection once the session is
complete.
3. The Network Layer
At the network layer, the focus expands from a point-to-point link to include many
interconnected nodes within a network. Network-layer devices operate on packets
and are responsible for routing traffic to its destination based on IP addresses.
4. The Transport Layer
The transport layer is the first of four “host” layers with the rest referred to as
“media” layers. The transport layer PDU is the “segment” or “datagram”. This
layer manages the transmission of data between nodes, including ensuring that
data arrives in the correct sequence and that any errors are corrected. The
Transmission Control Protocol (TCP) operates at Layer 4
5.The Session Layer
The session layer manages sessions between nodes and
acts on the “data” PDU. Session management includes
setup, authentication, termination, and reconnections.
6. The Presentation Layer
The presentation layer is primarily responsible for
translating data from network data to the formats
expected by an application. For example, data
encodings and encryption are managed at Layer 6.
7. The Application Layer
The application layer includes protocols designed for
end-users. For example, HTTP is a Layer 7 protocol
designed to transmit data between a web server and a
client.
Components of Data Communication
• A communication system is made up of the following components:
5. Set of rules (Protocol): When someone sends the data (The sender), it should
be understandable to the receiver also otherwise it is meaningless.
Therefore, there are some set of rules (protocols) that is followed by every computer
connected to the internet and they are:
• TCP(Transmission Control Protocol): It is responsible for dividing messages into
packets on the source computer and reassembling the received packet at the
destination or recipient computer. It also makes sure that the packets have the
information about the source of the message data, the destination of the message
data, the sequence in which the message data should be re-assembled, and checks if
the message has been sent correctly to the specific destination.
• IP(Internet Protocol): IP is responsible for handling the address of the destination
computer so that each packet is sent to its proper destination.
Type of data communication
1. Simplex Communication: It is one-way communication or we
can say that unidirectional communication in which one
device only receives and another device only sends data and
devices uses their entire capacity in transmission. For
example, IoT, entering data using a keyboard, listing music
using a speaker, etc.
2. Half Duplex communication: It is a two-way communication,
or we can say that it is a bidirectional communication in which
both the devices can send and receive data but not at the
same time. When one device is sending data then another
device is only receiving and vice-versa. For example,
walkie-talkie.
3. Full-duplex communication: It is a two-way communication or
we can say that it is a bidirectional communication in which
both the devices can send and receive data at the same time.
For example, mobile phones, landlines, etc.
Communication Channels
• Communication channels are the medium that
connects two or more workstations.
• Workstations can be connected by either wired
media or wireless media. It is also known as a
transmission medium.
• The transmission medium or channel is a link that
carries messages between two or more devices.
• We can group the communication media into two
categories:
– Guided media transmission
– Unguided media transmission
• Guided Media: In this transmission medium, the
physical link is created using wires or cables
between two or more computers or devices, and
then the data is transmitted using these cables in
terms of signals.
– Twisted pair cable: It is the most common form of wire
used in communication. In a twisted-pair cable, two
identical wires are wrapped together in a double helix.
The twisting of the wire reduces the crosstalk. It is
known as the leaking of a signal from one wire to
another due to which signal can corrupt and can cause
network errors.
• Types of Twisted Pair Cable :
– Unshielded Twisted Pair (UTP): It is used in computers and
telephones widely. there is no external shielding so it does not
protects from external interference. It is cheaper than STP.
– Shielded Twisted Pair (STP): It offers greater protection from
crosstalk due to shield. Due to shielding, it protects from external
interference. It is heavier and costlier as compare to UTP.
• Coaxial Cable: It consists of a solid wire core that is
surrounded by one or more foil or wire shields. The
inner core of the coaxial cable carries the signal and
the outer shield provides the ground.
• Optical fibers: Optical fiber is an important
technology. It transmits large amounts of data at
very high speeds due to which it is widely used in
internet cables. It carries data as a light that travels
inside a thin glass fiber. The fiber optic cable is made
up of three pieces:
1. Core: Core is the piece through which light travels. It is
generally created using glass or plastic.
2. Cladding: It is the covering of the core and reflects the
light back to the core.
3. Sheath: It is the protective covering that protects fiber
cable from the environment.
• Unguided Media: The unguided transmission media is a transmission
mode in which the signals are propagated from one device to another
device wirelessly. Signals can wave through the air, water, or vacuum.
The device designed by static IP address can be But the device designed by dynamic IP address
traced. can’t be traced.
Static IP address is more stable than dynamic IP While dynamic IP address is less stable than static
address. IP address.
The cost to maintain the static IP address is higher While the maintaining cost of dynamic IP address
than dynamic ip address. is less than static IP address.
It is used where computational data is less While it is used where data is more confidential
confidential. and needs more security.
Simplifies the troubleshooting as the IP is always While dynamic IP increases the complexity of
the same. diagnosing the network issues.
IPv4 Address Format
2. point-to-point WAN is one which consists of a two end nodes connected by a leased
line
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
• Network devices are physical devices that allow
hardware on a computer network to communicate
and interact with each other.
• Network devices like hubs, repeaters, bridges,
switches, routers, gateways, they help to manage and
direct data flow in a network.
• They ensure efficient communication between
connected devices by controlling data transfer,
boosting signals, and linking different networks.
• Each device serves a specific role, from simple data
forwarding to complex routing between networks.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Hub
• Hub in networking plays a vital role in data transmission and broadcasting.
• A hub is a hardware device used at the physical layer to connect multiple
devices in the network.
• Hubs are widely used to connect LANs. A hub has multiple ports. Unlike a
switch, a hub cannot filter the data, i.e. it cannot identify the destination of
the packet, So it broadcasts or sends the message to each port.
• A hub is a multi-port repeater. A hub connects multiple wires coming from
different branches, for example, the connector in star topology which
connects different stations. Hubs cannot filter data, so data packets are sent
to all connected devices.
• In other words, the collision domain of all hosts connected through Hub
remains one. Also, they do not have the intelligence to find out the best
path for data packets which leads to inefficiencies and wastage.
.
Types of Network Hubs
Networks hubs are classified into three types:
1. Active Hub: They have a power supply for regenerating, and
amplifying the signals. When a port sends weak signaled data, the
hub regenerates the signal and strengthens it, then send it further
to all other ports. Active hubs are expensive in costs as compared
to passive hubs.
2. Passive Hub: Passive hubs are simply used to connect signals from
different network cables as they do not have any computerized
element. They simply connect the wires of different devices in
the star topology. Passive hubs do not do any processing or signal
regeneration and that’s why do not require electricity the most
they can do is they can copy or repeat the signal. It can’t clean the
message, and it can’t amplify or strengthen the signal.
3. Intelligent Hub: Intelligent hubs as the name suggests are smarter
than active and passive hubs. The intelligent hub comprises a
special monitoring unit named a Management Information Base
(MIB). This is software that helps in analysing and troubleshooting
network problems. Intelligent hubs work similarly to active hubs
but with some management features. Like it can monitor the
traffic of the network and the configuration of a port.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Switch
• Switches in computer networks are devices that connect
multiple devices (like computers, and printers) within a
network.
• They manage data traffic efficiently by directing data only to
the devices that need it, enhancing network performance.
• Unlike hubs, switches operate at the data link layer (Layer 2) of
the OSI model, making decisions based on MAC addresses.
• They are crucial for creating reliable and fast local area
networks (LANs).
• Switches are the connectivity points of an Ethernet network.
These are small devices that can receive data from multiple
input ports and send it to the specific output port that takes
data to its intended destination in the network.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Characteristics of a Switch
• In a switch, two important things to know are its “poles” and “throws.”
A pole is where an electrical contact is made, and a throw is how many
different contacts each pole can connect to. The number of poles and
throws tells you how the switch works and what it can connect to in a
circuit.
• In switches, you often find two standard types: Single, which has one
contact point or one connection, and Double, which has two contact
points or two connections. These terms describe how switches are built
and what they can do in electronic devices.
• If a switch has more than two poles or throws, we usually just state the
number directly. For example, a switch with three poles and six throws
is called a “3P6T” switch.
• Momentary switches, like push buttons, make contact only while they
are pressed. They’re used for brief actions or as long as you hold the
button.
• Latched switches, on the other hand, maintain their contact position
until they are switched to the other position.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
• Types of Switch
1. Unmanaged Switches: These switches have a simple plug-and-play
design and do not offer advanced configuration options. They are
suitable for small networks or for use as an expansion to a larger
network.
2. Managed Switches: These switches offer advanced configuration
options such as VLANs, QoS, and link aggregation. They are suitable
for larger, more complex networks and allow for centralized
management.
3. Smart Switches: These switches have features similar to managed
switches but are typically easier to set up and manage. They are
suitable for small- to medium-sized networks.
4. Layer 2 Switches: These switches operate at the Data Link layer of
the OSI model and are responsible for forwarding data between
devices on the same network segment.
5. Layer 3 switches: These switches operate at the Network layer of the
OSI model and can route data between different network segments.
They are more advanced than Layer 2 switches and are often used in
larger, more complex networks.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
6. PoE Switches: These switches have Power
over Ethernet capabilities, which allows them to supply
power to network devices over the same cable that
carries data.
7. Gigabit switches: These switches support Gigabit
Ethernet speeds, which are faster than traditional
Ethernet speeds.
8. Rack-Mounted Switches: These switches are designed to
be mounted in a server rack and are suitable for use in
data centers or other large networks.
9. Desktop Switches: These switches are designed for use
on a desktop or in a small office environment and are
typically smaller in size than rack-mounted switches.
10. Modular Switches: These switches have modular design,
which allows for easy expansion or customization. They
are suitable for large networks and data centers.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Modem
• Modem stands for Modulator/Demodulator. The modem is
defined as a networking device that is used to connect devices
connected in the network to the internet.
• The main function of a modem is to convert the analog
signals that come from telephone wire into a digital form. In
digital form, these converted signals are stored in the form of 0s
and 1s.
• The modem can perform both the task of modulation and
demodulation simultaneously.
• Modems are majorly used to transfer digital data in personal
systems.
• The modem is also known as a signal translator as it translates
one signal into another signal by modulating the digital
signal into an analog signal for transmission and then
demodulates receiving analog signals into digital signals.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Working of Modem
• The two main components of a modem are modulation and demodulation. Where the
modem can perform both tasks simultaneously. The step-by-step working of the modem
is given below:
Types of Modems
There are four main types of modems:
1. DSL Modem: Uses regular phone lines to connect to the internet but it is
slower compared to other types.
2. Cable Modem: Sends data through TV cables, providing faster internet
than DSL.
3. Wireless Modem: Connects devices to the internet using Wi-Fi relying on
nearby Wi-Fi signals.
4. Cellular Modem: Connects to the internet using mobile data from a
cellular network not Wi-Fi or fixed cables.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Router
• A Router is a networking device that forwards
data packets between computer networks. One or
more packet-switched networks or sub networks
can be connected using a router.
• By sending data packets to their intended IP
addresses, it manages traffic between different
networks and permits several devices to share
an Internet connection.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
• How Does Router Work?
• A router determines a packet’s future path by examining the
destination IP address of the header and comparing it to the
routing database.
• The list of routing tables outlines how to send the data to a
specific network location.
• They use a set of rules to determine the most effective way to
transmit the data to the specified IP address.
• To enable communication between other devices and the
internet, routers utilize a modem, such as a cable, fiber, or DSL
modem.
• Most routers include many ports that can connect a variety of
devices to the internet simultaneously.
• In order to decide where to deliver data and where
traffic is coming from, it needs routing tables.
• A routing table primarily specifies the router’s
default path. As a result, it might not determine the
optimum path to forward the data for a particular
packet.
• For instance, the office router directs all networks to
its internet service provider through a single default
channel.
• Static and dynamic tables come in two varieties in
the router.
• The dynamic routing tables are automatically
updated by dynamic routers based on network
activity, whereas the static routing tables are
configured manually.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Types of Router
There are several types of routers. Some of them are mentioned below:
1. Broadband Routers: These are one of the important kinds of routers. It is used to do
different types of things. it is used to connect computers or it is also used to connect
to the internet.
2. Wireless routers: These routers are used to create a wireless signal in your office or
home.
3. Wired Routers: Wired Router is used to connects multiple wired devices using a
Ethernet cable, It takes the transmission data from the modem and distribute it to a
further network, it is widely used in schools and small offices.
4. Edge Routers: As the name indicates, these are located at the edges usually
connected to an Internet Service Provider, and distribute packets across multiple
packets.
5. Core Routers: Core routers distribute packets within the same network. The main
task is to carry heavy data transfers.
6. Virtual Router: They are implemented using a software on the virtual machine , and
they are more flexible and scalable.
7. Portable Routers: They are used to create private Wi-Fi and hence designed for easy
portability.
Types of Network Devices (Hub,
Switch, Modem, Router, Access point)
Access Point
• An access point in networking is a device that
allows wireless devices, like smartphones and
laptops, to connect to a wired network.
• It creates a Wi-Fi network that lets wireless
devices communicate with the internet or other
devices on the network.
• Access points are used to extend the range of a
network or provide Wi-Fi in areas that do not have
it.
• They are commonly found in homes, offices, and
public places to provide wireless internet access.
• Bridge and Repeater are two important connectivity devices in
computer network. Both devices ensure seamless communication
between the segments of a network. These devices are a type of
network extender, but they operate at different layers in the OSI
and serve different purposes.
• Bridge is a network device, which operates at the second layer
i.e. data link layer of the ISO-OSI model. It connects the two
networks together that uses the same protocol. Bridges are
relatively easy to configure and focuses on MAC addresses.
1. Ports 20 and 21: File Transfer Protocol (FTP). FTP is for transferring
files between a client and a server.
2. Port 22: Secure Shell (SSH). SSH is one of many tunneling protocols
that create secure network connections.
3. Port 25: Simple Mail Transfer Protocol (SMTP). SMTP is used
for email.
4. Port 53: Domain Name System (DNS). DNS is an essential process
for the modern Internet; it matches human-readable domain
names to machine-readable IP addresses, enabling users to load
websites and applications without memorizing a long list of IP
addresses.
5. Port 80: Hypertext Transfer Protocol (HTTP). HTTP is the protocol
that makes the World Wide Web possible.
6. Port 123: Network Time Protocol (NTP). NTP allows computer
clocks to sync with each other, a process that is essential
for encryption.
7. Port 179: Border Gateway Protocol (BGP). BGP is essential
for establishing efficient routes between the large networks
that make up the Internet (these large networks are
called autonomous systems). Autonomous systems use BGP
to broadcast which IP addresses they control.
8. Port 443: HTTP Secure (HTTPS). HTTPS is the secure and
encrypted version of HTTP. All HTTPS web traffic goes to port
443. Network services that use HTTPS for encryption, such
as DNS over HTTPS, also connect at this port.
9. Port 500: Internet Security Association and Key
Management Protocol (ISAKMP), which is part of the process
of setting up secure IPsec connections.
10. Port 587: Modern, secure SMTP that uses encryption.
11. Port 3389: Remote Desktop Protocol (RDP). RDP enables
users to remotely connect to their desktop computers from
another device.
The Internet Assigned Numbers Authority (IANA) maintains
the full list of port numbers and protocols assigned to them.
Internet and Intranet Working