Basic Concepts of Networking-1
Basic Concepts of Networking-1
Basic Concepts of Networking-1
Course Objectives
The objectives of the course Students should understand
the OSI model, network medium, architectures, devices,
services, protocols, topologies, and network security.
Course Outcomes
• At the end of the course,
• Students should be able to design a simple network
application, implement functionalities on different network
layers, compare network protocols, use network monitoring
tools, and diagnose network malfunctions.
Syllabus Contents
Syllabus Contents
Syllabus Contents
Syllabus Contents
Syllabus Contents
Fundamentals of Computer Network and Overview
of TCP/IP Architecture
Fundamentals of Computer Network: Recall
Year Event
1961 proposed the earliest computer networks, which was the idea of ARPANET.
1965 In 1965, the term "packet" to describe how to send data between computers on a network.
1969 Although In 1966, the development of ARPANET began, officially started ARPANET in 1969. It
was considered one of the first computer networks in which first two nodes, UCLA and SRI
(Stanford Research Institute) were connected, and to use packet switching.
To provide and define information about network protocols, procedures, and computer
communications, the first RFC surfaced as a document in April 1969.
1969 On 29 August 1969, the first IMP and network switch were sent to UCLA. On ARPANET, the first
data transmission was sent by using it.
1974 In this year, the use of first router was began, but they were not considered true IP routers.
1976 Originally called a gateway, Ginny Strazisar develop the first true IP router.
History of Computer Network: Recall
1978 In 1978, the TCP/IP protocol was developed and invented by Bob Kahn for
networks; it was developed with help from Vint Cerf.
1981 In the United States, between IBM mainframe systems, BITNET was created
in 1981 as a network. The U.S. National Science Foundation developed the
CSNET (Computer Science Network) in the same year 1981.
1983 For using TCP/IP, ARPANET finished the transition. The first DNS implement
by Jon Postel and Paul Mockapetris in 1983.
1983 For using TCP/IP, ARPANET finished the transition. The first DNS implement by Jon
Postel and Paul Mockapetris in 1983.
1986 This is the year in which a backbone for ARPANET, the National Science Foundation
Network was came online, which finally took the place of ARPANET in 1990s. In the
same year, with the original BITNET, BITNET II was introduced to deal with bandwidth
issues.
1988 In 1988, the first T1 backbone was included with ARPANET. AT&T, Lucent, and NCR
introduced the WaveLAN network technology in 1988.
In 1988, for the first time, the explanation of network firewall technology was published.
The first firewall, known as a packet filter firewall.
1990 The first network switch was developed and introduced by a U.S. network hardware
company named Kalpana in 1990.
History of Computer Network: Recall
1996 In 1996, an IPv6 was introduced as an improvement over IPv4, as well as
embedded encryption, improved routing.
1997 In June 1997, the 802.11 standards, containing transmission speeds up to
2 Mbps, for Wi-Fi were introduced.
1999 The 802.11a standard, containing transmission speeds up to 25 Mbps to
use the 5 GHz band, was officially made in 1999. Another standard
802.11b was available to use for the public in mid-1999, which offered
transmission speeds up to 11 Mbps. In September 1999, for use with
802.11b, the WEP encryption protocol was released.
2003 802.11g devices, contained transmission speeds up to 20 Mbps, were
available to the public in January 2003. In the same year, for use with
802.11g, the Wi-Fi Protected Access (WPA) encryption protocol is
released.
2004 In 2004, as a replacement for WPA, the WPA2 encryption protocol was
introduced. By 2006, WPA2 certification was compulsory for all Wi-Fi
devices.
2009 The 802.11n standard can operate on the 2.4 GHz and 5 GHz bandwidths
and offers higher transfer speeds over 802.11a and 802.11g. Officially, it
was made in 2009.
2018 In January 2018, WPA3 encryption was released by the Wi-Fi Alliance,
which comprises security enhancements over WPA2.
Basic Terminologies of Computer Network
Basic Terminologies of Computer Network
1. Network
A group of interconnected devices that can communicate with each other to
share resources and information.
2. Node
Any device connected to a network, such as a computer, printer, or router.
3. Protocol
A set of rules and conventions for communication between network devices.
Common protocols include TCP/IP, HTTP, and FTP.
4. IP Address (Internet Protocol Address)
A unique identifier assigned to each device on a network. It allows devices to
locate and communicate with each other.
5. MAC Address (Media Access Control Address)
A hardware address assigned to network interfaces for communications on the
physical network segment.
6. Router
A device that forwards data packets between computer networks, creating an
overlay internetwork. It directs traffic on the Internet.
Basic Terminologies of Computer Network
7. Switch
A network device that connects devices within a single network, using
MAC addresses to forward data to the correct destination.
8. Hub
A basic networking device that connects multiple Ethernet devices, making
them act as a single network segment. Hubs broadcast data to all devices.
9. Firewall
A network security system that monitors and controls incoming and
outgoing network traffic based on predetermined security rules.
10. LAN (Local Area Network)
A network that spans a relatively small area, typically a single building or
campus, allowing devices to communicate within that area.
11. WAN (Wide Area Network)
A network that covers a broad area, such as multiple buildings, cities, or
even countries. The Internet is the largest WAN.
Basic Terminologies of Computer Network
12. Bandwidth
The maximum rate of data transfer across a network path. It is usually
measured in bits per second (bps).
13. Latency
The time it takes for data to travel from the source to the destination
across a network. Lower latency means less delay.
14. Packet
A small unit of data transmitted over a network. Networks break down
large data streams into packets for more efficient transmission.
15. Subnet
A subdivision of an IP network that divides a large network into
smaller, manageable sections.
16. DNS (Domain Name System)
A system that translates human-readable domain names (like
www.example.com) into IP addresses that computers use to identify each other
on the network.
Basic Terminologies of Computer Network
22. Ethernet
A widely used technology for local area networks (LANs), defined by
the IEEE 802.3 standard.
23. TCP/IP (Transmission Control Protocol/Internet Protocol)
The foundational protocol suite for the Internet and most modern
networks, providing end-to-end data communication.
24. IEEE
The Institute of Electrical and Electronics Engineers (IEEE) has
established networking standards since the 1980s to ensure interoperable
networking technology and global connectivity.
25. RFC
A Request for Comments (RFC) is a formal document from the Internet
Engineering Task Force (IETF) that contains specifications and organizational
notes about topics related to the internet and computer networking, such as
routing, addressing and transport technologies.
https://www.ietf.org/rfc/rfc793.txt ( TCP –Protocol)
https://www.rfc-editor.org/info/rfc9293#:~:text=TCP%20is%20an%20important
%20transport,documented%20in%20a%20piecemeal%20fashion
.
Medium of Communication
Medium of Communication
•Structure:
It consists of two separate wires/conductors which are normally made of copper and
twisted with each other and makes single one.
Here, each conductor has its own plastic insulation typically 1 mm thick.
These cables are twisted together. The wires are twisted in a helical form, similar to a
DNA molecule.
Twisting of wire is done to reduce crosstalk and noise generated by adjacent pairs
during data transmission.
Medium of Communication - Guided Transmission Medium
Types:
• Twisted pair cabling comes in several varieties, two of which are very important:
Category 3 and Category 5. Category 5 has more twists per centimeter resulting
in less crosstalk and a better quality signal.
• There are two types of TPC –
(i) Unshielded Twisted Pair[UTP] Cable
(ii) Shielded Twisted Pair[STP] Cable.
Medium of Communication - Guided Transmission Medium
It is specialized type of tpc i.e. shielded twisted pair is a special kind of copper
Advantages:
• It operates over a wider range of frequencies i.e. using frequency-division
multiplexing, a coaxial cable can carry over
10,000 voice channels simultaneously.
• Coaxial cable can be used over longer distances and supports more stations on a
shared line than twisted pair.
• Coaxial cable is perhaps the most versatile transmission medium and has
widespread use in a wide variety of applications.
• Using digital signaling, coaxial cable can be used to provide high-speed I/O
channels on computer systems.
Use:
The most important use of this cable is-
Disadvantages:
i) In Television/Cable TV distribution.
• They are bulky.
ii) Long-distance telephone transmission with
• It is expensive to install for longer
quality.
distances because of its thickness and
iii) Short-run computer system links.
stiffness.
iv) In Local Area Networks
v) short-range connections between devices.
Medium of Communication - Guided Transmission Medium
Optical Fiber Cable (OFC):
OFC stands for Optical Fibre Cable. Optical fibre cables are made up of thin
strands, or optical fibres, of either glass or plastic.
Why
Fibre cable has many benefits, including higher bandwidth and greater
reach.
OFC or optical fibre cables are more popular than old copper telecom
cables because they offer high-speed broadband service.
Copper wires lose 94% of their signal, while optical fibre loses only 3%.
Copper wire is easy to tap, but optical fibres are much more difficult
Optic fibre has lower latency (the time it takes to transmit data) than
copper wires.
Medium of Communication - Guided Transmission Medium
Optical Fiber Cable (OFC):
The optical fibre cable is classified based on three factors – the refractive index, the
materials used, and the mode of propagation of light.
Disadvantages:
More vulnerable to damage. If we bend fiber optic cables beyond a limit,
it will break.
High manufacturing cost.
Setup/installation cost is high i.e. It needs costly splicing/joining tools or
machines. The cables and interfaces used are relatively expensive.
Fiber optic cables are difficult to splice/join.
Maintenance cost is also high.
Working mechanism is comparatively complex.
Installation or maintenance – it needs trained specialists to install fiber
optic cables which is not available everywhere.
Unidirectional – Propagation of light is unidirectional and we need two
fibers for bidirectional communication.
Medium of Communication
Use:
Unguided radio signals can travel from the source to destination in several
ways. There is ground propagation, sky propagation, and line-of-sight
propagation.
Ground Propagation :
In ground propagation, radio waves travel through the lowest portion of
the atmosphere, hugging the earth.
The distance depends on the power of the signal.
Sky Propagation
In Sky propagation, higher-frequency radio waves radiate upward into the
ionosphere where they are reflected back to earth.
This type of transmission allows for greater distances with lower power
output.
Line-of-Sight Propagation
In Line-of-Sight Propagation, very high frequency signals are transmitted
in straight lines directly from source antenna to destination 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.
Medium of Communication
Advantages:
• These can be used for short range communication.
• Infrared systems represent a cheap alternative to most other methods, because
there is no cabling involved and the necessary equipment is relatively cheap.
Disadvantages:
• Infrared signals can be used for short-range communication.
• They cannot penetrate walls because they are weak signals.
• It cannot be used outside the building as sun rays contain infrared which leads to
interference in communication.
Use:
• Infrared signals can be used for communication between keyboards, mouse
and printers.
• One recent use of infra-red has been for interfacing hand-held and portable
computing devices to Local Area Networks.
Medium of Communication
• Structure:
• An important form of microwave system is a satellite system, which is
essentially a microwave system plus a large repeater as satellite in the sky. The
signals transmitted by earth stations are received, amplified, and retransmitted
to other earth stations by the satellite which acts as a repeater.
Medium of Communication
Advantages:
• Microwaves are widely used for point-to-point communications because their
small wavelength allows conveniently-sized antennas to direct them in narrow
beams, which can be pointed directly at the receiving antenna.
• Higher data rates are transmitted/achieved as the bandwidth is more.
• Low power consumption as the signals are of higher frequencies.
• Unidirectional property of microwave helps in avoiding interference by a pair
of aligned antenna to another.
Disadvantages:
• The propagation of microwave is line-of-sight. The problem with this propagation is
that towers that are far apart from each other need to be very tall.
• Line-of-sight will be disrupted if any obstacle, such as new buildings, are in the way.
• Microwaves suffer from attenuation due to atmospheric conditions.
• Signals are absorbed by the atmosphere.
• For long distance communication, repeaters are often needed.
• Even high frequency microwaves cannot penetrate walls.
• Towers are expensive to build.
• High frequency micro waves cannot be received inside the building.
Medium of Communication
Use:
• Microwave transmission is commonly used in point-to-
point communication systems on the surface of the Earth, in
satellite communications, and in deep space radio communications.
• They are also used for radars, radio navigation systems, sensor systems, and
radio astronomy.
• Microwaves are also used in unicast communication such as cellular
telephones, satellite networks, and wireless LANs.
• Telecommunication carriers and TV stations are the primary users of
microwave transmission.
Medium of Communication
Advantages:
• Radio waves are easy to generate and can travel long distances and can
penetrate buildings easily, therefore widely used for communication.
• Radio signals have been used for a long time to transmit analog
information.
• They are particularly preferred for long distance communication over
difficult terrain or across the oceans.
• Because of the ability to pass through the ionosphere (top) layer of
atmosphere, radio wave is suitable for satellite to earth transmission.
• Radio waves are suitable for long-distance wireless data transmission.
• Radio waves/signal can be received both inside and outside of the
building.
Medium of Communication
Use:
• It helps in transferring data between a mobile phone and a computer
provided both have Bluetooth technology.
• Radio waves are used for multicast communications such as radio
(AM and FM radio), maritime radio, television, cordless phones and
paging systems.
• Radio waves are very useful in multicasting and hence used in AM and
FM radios, cordless phones and paging.
• They are used in standard broadcast radio and television, shortwave
radio, navigation and air-traffic control, cellular telephony, and even
remote-controlled toys.
Medium of Communication
Connectors(Cables)
The connectors are tools or interface that is used to connect different types
of data communication cables(such as twisted pair cable, coaxial cable, fiber
optic cable etc.) at one end with the computer or other network devices
(such as hub, switch, router etc.)at other end in a network environment for
data communication.
Connectors may be used in LAN,MAN and WAN.
There are different types of connectors used uniquely to connect different
cables.
In LAN, common used connector are –
•This is also called LAN topology because of these are mostly and mainly
implemented in a LAN network.
Features
•Topology determines the strategy for physically expanding the network, in future.
•Topology gives the shape of the network.
•Topologies can be either physical or logical.
• Physical Topology means the physical design/arrangement of a network with
its required devices, location and cable installation.
• Logical Topology is how data actually transfers/flows in a network as
opposed to its design.
Medium of Communication
Types
•There are different types of topology in a computer network. These are – [A] Cable/Wired Network
Topology and [B] Wireless Topology.
• When one device/node on the bus network wants to send a broadcast message to
another device on the network, it first makes sure no one else on the bus cable is
transmitting, and then it sends information out on the media/cable. All other
devices attached on the network see it, but only the intended/genuine recipient
accepts and processes it. This is accomplished by using data frames which
contain source and destination addresses.
• Each node of bus topology is connected to others nodes via a bus cable.
• The network operating system keeps track of a unique address of each node and
manages the flow of data between machines.
Advantages
• It is simple, reliable, and easy to be used in a small sized local area network.
• It requires least amount of cable to make/connect computers together and is therefore
less expensive than other cabling arrangements.
• It is easy to implement and extend using connectors when required.
• If one computer/node on the bus topology fails, it does not affect the rest of the
traffic on the bus, when removed affected one.
• A new node can be added easily in this topology without affecting other one
connected on the network.
Medium of Communication
Disadvantages
• In this topology, no two/more computers can transmit data at the same time.
• It does not operate well with heavy load which can slow down a bus considerably.
• Performance degrades as more additional computers are added.
• Terminators are required at both ends of the cable.
Advantages
• It is more reliable i.e. if one connection/node fails, it does not affect others during
its removal. A new node can also be added easily without affecting others. In
another words, It is easy to replace, install or remove hosts or other devices,
problem can be easily detected-It is easier to modify or add a new computer
without disturbing the rest of the network by simply running a new line from the
computer to the central location and plugging it to the hub.
• Hub detects the fault and isolates the faulty computer/node from the network.
• Use of multiple cables types in a same network with a hub.
• It has good performance
Disadvantages
• It is expensive to install as it requires more cable, it costs more to cable a star
network because all network cables must be pulled to one central point, requiring
more cable length than other networking topologies.
• Central hub dependency i.e. if central hub fails, the whole network fails to operate
suddenly.
• Many star networks require a device/hub/switch at the central point to re-broadcast
or switch the network traffic.
Medium of Communication
Advantages
• It is an orderly network where every device has access to the token (control signal)
and the opportunity to transmit – because every computer is given equal access to
the token, no computer can monopolize the network.
• It performs better operation than a star topology under heavy network load
situation.
• We can create much larger network using this topology token ring concept.
• It does not require network server/central point to manage the connectivity
between the computers/nodes.
Disadvantages
• Network adapter cards and Multi Access Units used in this topology are much
more expensive than Ethernet cards and hubs used in bus topology.
• It is much slower than an Ethernet network under normal load.
• The problem finding is difficult to troubleshoot.
• One malfunctioning node or bad port or adding new node or removal of node from
this topology/Multi Access Units can create problems for the entire network.
Medium of Communication
Advantages
• It supports point-to-point connection for nodes.
• It is highly flexible i.e. the other nodes in this network are not affected by
others when one of their nodes get damaged or not working.
• Tree topology has an easy maintenance and easy fault identification
procedure.
Disadvantages
• It is difficult to configure.
• It contains a single point of failure.
Use
• Tree topologies allow for the expansion of an existing network.
Medium of Communication
Advantages
•Here, the central hubs maintains a point-to-point link with devices, hence trouble
shooting is easy when occurs.
•Central hub-to-hub fault tracking is more complicated, but allows simple fault
isolation.
Disadvantages
•When a central hub fails in a wireless network then all devices, serviced by this hub
lose/affect its services.
Standard and Protocol
Standard and Protocol
Standards are essential in creating and maintaining an open and creative market for the
equipment manufacturers and they also guarantee the national and international
interoperability of the data, telecommunication technology, and process.
Standard Organizations
Standards are mainly developed through the cooperation of Standard
creation committees, government regulatory agencies, and forums.
Some Standard Creation committees are :
• International Organization of Standardization(ISO)
• American National Standards Institute(ANSI)
• Electronic Industries Association(EIA)
• Institute of Electrical and Electronics Engineers(IEEE)
Protocols
Standard and Protocol
Protocols
A protocol is basically a synonym for the rule. In Computer
Networks, basically, communication occurs between entities in
different systems. An entity is anything that is capable of sending or
receiving information. Any two entities cannot simply send
bitstreams to each other and expect to be understood.
•Semantics
This term mainly refers to the meaning of each section of bits.
How does a particular pattern to be interpreted, and On the basis
of interpretation what action is to be taken? For example, does an
address identify the route to be taken or the final destination of the
message?
•Timing
This term mainly refers to two characteristics: At what time the
data should be sent and how fast data can be sent. For example,
if a sender produces data at 100 Mbps but the receiver can
process data at only 1 Mbps, the transmission will overload the
receiver and there will be some data loss.
Architecture for Communication
Fundamental Architectures of Computer Network
The OSI model is a layered framework for the design of network systems that
allows communication between all types of computer systems.
Physical topology. The physical topology defines how devices are connected
to make a network. Devices can be connected by using a mesh topology (every
device is connected to every other device), a star topology (devices are
connected through a central device), a ring topology (each device is connected
to the next, forming a ring), a bus topology (every device is on a common
link), or a hybrid topology (this is a combination of two or more topologies).
Network Layer
The network layer is responsible for the source-to-destination delivery of a packet, possibly
across multiple networks (links).
Flow control. Like the data link layer, the transport layer is responsible for flow control.
However, flow control at this layer is performed end to end rather than across a single
link.
Error control. Like the data link layer, the transport layer is responsible for error control.
However, error control at this layer is performed process-to-process rather than across a
single link.
Fundamental Architectures of Computer Network
Session Layer
The services provided by the first three layers (physical, data link, and network) are not
sufficient for some processes. The session layer is the network dialog controller. It
establishes, maintains, and synchronizes the interaction among communicating systems.
Dialog control: The session layer allows two systems to enter into a dialog. It allows the
communication between two processes to take place in either halfduplex (one way at a time)
or full-duplex (two ways at a time) mode.
Presentation Layer
The presentation layer is concerned with the syntax and semantics of the information
exchanged between two systems.
Translation: The processes (running programs) in two systems are usually
exchanging information in the form of character strings, numbers, and so on.
The information must be changed to bit streams before being transmitted.
Application Layer
The application layer enables the user, whether human or software, to access the
network. It provides user interfaces and support for services such as electronic mail, remote
file access and transfer, shared database management, and other types of distributed
information services.
Specific services provided by the application layer include the following:
File transfer, access, and management. This application allows a user to access
files in a remote host (to make changes or read data), to retrieve files from a
remote computer for use in the local computer, and to manage or control files in
a remote computer locally.
Mail services. This application provides the basis for e-mail forwarding and
storage.
Directory services. This application provides distributed database sources and
access for global information about various objects and services.
Fundamental Architectures of Computer Network
Advantages:
Disadvantages:
•It is purely a theoretical model that does not consider the availability of
appropriate technology. This restricts its practical implementation.
•The launching timing of this model was inappropriate. When OSI appeared,
the TCP/IP protocols were already implemented. So, the companies were
initially reluctant to use it.
•The OSI model is very complex. The initial implementation was
cumbersome, slow and costly.
•Though there are many layers, some of the layers like the session layer and
presentation layer have very little functionality when practically deployed.
•There is a duplication of services in various layers. Services like addressing,
flow control and error control are offered by multiple layers.
•The standards of OSI model are theoretical and do not offer adequate
solutions for practical network implementation.
•After being launched, the OSI model did not meet the practical needs as well
as the TCP/IP model. So it was labeled as inferior quality.
Fundamental Architectures of Computer Network
TCP/IP Reference Model
Internet Layer
•An internet layer is the second layer of the TCP/IP model.
•An internet layer is also known as the network layer.
•The main responsibility of the internet layer is to send the packets from
any network, and they arrive at the destination irrespective of the route they
take.
Following are the protocols used in this layer are:
IP Protocol: IP protocol is used in this layer, and it is the most significant
part of the entire TCP/IP suite.
Fundamental Architectures of Computer Network
TCP/IP Reference Model
Transport Layer
The transport layer is responsible for the reliability, flow control, and correction of data
which is being sent over the network.
The two protocols used in the transport layer are User Datagram protocol and
Transmission control protocol.
•User Datagram Protocol (UDP)
• It provides connectionless service and end-to-end delivery of transmission.
• It is an unreliable protocol as it discovers the errors but not specify the error.
• User Datagram Protocol discovers the error, and ICMP protocol reports the error
to the sender that user datagram has been damaged.
Application Layer
•An application layer is the topmost layer in the TCP/IP model.
•It is responsible for handling high-level protocols, issues of representation.
•This layer allows the user to interact with the application.
•When one application layer protocol wants to communicate with another application
layer, it forwards its data to the transport layer.
•There is an ambiguity occurs in the application layer. Every application cannot be
placed inside the application layer except those who interact with the communication
system. For example: text editor cannot be considered in application layer while web
browser using HTTP protocol to interact with the network where HTTP protocol is
an application layer protocol.
Fundamental Architectures of Computer Network
TCP/IP Reference Model
The resulting information unit (a header and the data) is passed to the
presentation layer, which pretends its own header containing control
information intended for the presentation layer in System B.
The information unit grows in size as each layer prepends its own header
(and in some cases a trailer) that contains control information to be used
by its peer layer in System B. At the physical layer, the entire information
unit is placed onto the network medium.
Fundamental Architectures of Computer Network
Information Exchange Process