DCN Notes
DCN Notes
Notes
STUDENT ADVISORY
Dear Students,
Please be informed that the notes provided by the institute
offer a concise presentation of the syllabus. While these notes
are helpful for an overview and quick revision, We would
strongly suggest that you refer to the prescribed textbooks /
Reference book for a comprehensive understanding and
thorough preparation of all exams and writing in the
examination.
Best regards,
LJ Polytechnic.
પ્રિય પ્રિદ્યાર્થીઓ,
એલજે પોક્ષલટેકપ્રનક.
Data Communication & Networking
Data - The word ‘data’ refers that representation of information in an understandable form by the two
parties who are creating and using it. The Webster dictionary defined data as “information in digital
form that can be transmitted or processed”. The data may be in any form such as text, symbols, images,
videos, signals and so on.
the meaning of the communication must be understandable between the two entities. The figure 1.1
shows the model for communication between two people.
Data communications can be summarized as the transmission, reception, and processing of digital
information. For data communications to occur, the communicating devices must be part of a
communication system made up of a combination of hardware (physical equipment) and software
(programs). The effectiveness of a data communications system depends on four fundamental
characteristics: delivery, accuracy, timeliness, and jitter.
1.1.2 Characteristics
1) Resource Sharing: It means that all computers within network share resource. The goal is to make
all programs, data and devices available to anyone on the network without considering the physical
location of the resource and user.
2) High Reliability: Networks provide high reliability by having alternative source of supply. All files
can be replicated on two or more machines so if one of them is unavailable then other copies could
be used.
3) Saving Money: Network consists of two or more computers. Mostly in networking, one computer
works as server and other as client means only server requires connection with resource and all
other clients can easily access it.
4) Scalability: Network is able to increase system performance as the work grows, just by adding
more processor.
5) Time Saving: For e.g., E-mail services require less time compared to postal services.
6) Improve Performance: We can improve the performance of network by adding network hardware
and software.
Data Communication & Networking
1) It lacks independence: People will rely more on computer work, instead of applying own effort
for their tasks. Apart from this, they will be dependent on the main file server, which means that, if
it breaks down, the system would become useless, making users idle.
2) It lacks robustness: If a computer network’s main server breaks down, the entire system would
become useless. Also, if it has a bridging device or a central linking server that fails, the entire
network would also come to a standstill. To deal with these problems, huge networks should have a
powerful computer to serve as file server to make setting up and maintaining the network easier.
3) It allows for more presence of computer viruses and malware: There would be instances that
stored files are corrupt due to computer viruses. Thus, network administrators should conduct
regular check-ups on the system, and the stored files at the same time.
Data Communication & Networking
4) It poses security difficulties: Because there would be a huge number of people who would be
using a computer network to get and share some of their files and resources, a certain user’s
security would be always at risk. There might even be illegal activities that would occur, which
you need to be careful about and aware of.
5) It requires an expensive set-up: The initial set up cost is high depending on the number of
computers to be connected. Expensive devices, such as routers, switches, hubs, etc., can add up to
the cost. It would also need network interface cards (NICs) for Workstations in case they are not
built in.
6) Its light policing usage promotes negative acts: It has been observed that providing users with
internet connectivity has caused various distractions like online gaming. The huge network of
machines could also encourage them to engage in illicit practices, such as instant messaging and
file sharing, instead of working on work-related matters.
1m System Multicomputer
10m Room
1km Campus
Metropolitan Area
10km City Network
100km Country
Wide Area Network
1000km Continent
Advantages of MAN
1) A MAN can cover a wider area than a LAN.
2) Information can be disseminated more widely, rapidly and significantly.
Characteristics of WAN
1) They exist in unlimited geographical area.
2) They are more susceptible to error due to the distance the data can travel.
3) They interconnect multiple LAN.
4) They are more sophisticated and complex than LAN.
5) Their technology is expensive.
Advantages of WAN
1) Setting up a WAN allows you to share sensitive data with all your sites without having to send the
information over the Internet.
2) WAN ensures maximum availability and reliability.
3) A WAN eliminates the need to buy email or file servers for each office.
Data Communication & Networking
Two and only two devices are connected by a dedicated link. Dedicated link means that link carries
traffic between connected devices only and no other devices can use it. In this configuration, entire
capacity of the channel is reserved for transmission between two devices.
E.g., Line configuration between the remote control and television.
There are 3 types of Point to Point networks: Unicast, Multicast and Broadcast.
1. Unicast
Information is sent from only one sender to only one receiver. One-to-one connection between client
and server. E.g., HTTP, SMTP, TELNET.
2. Multicast
One or more senders send information to set of receivers. It saves bandwidth since same information
can be received at same time. E.g., one computer transmits video channel to a specific group of
computers.
BUS Topology
It is also known as linear bus topology. It consists of several computers attached via drop lines
to a long common cable that acts as a backbone to link all the devices in the network. In bus topology,
data on the network is send to all the computers on the network. However, only the computer that has
the address matching the address in the signal accepts the data. The other computers reject the data.
Only one computer at a time can send message. A computer must wait until the bus is free
before it can transmit. The failure of one computer does not affect the performance of the network.
Bus topology is a passive topology in which the computers on the bus only listen to the data being sent
and are not responsible for moving the data.
Data Communication & Networking
Star Topology
In star topology each device has dedicated point to point link only to a central controller usually
called HUB. The devices are not directly linked to each other. A star topology does not allow direct
traffic between devices. The controller acts as an exchange, if any device wants to send a data to
another, it sends the data to the controller, which then relay the data to the other connected devices.
If the central controller fails, the entire network is disabled. However, if one computer or the
cable that connects it to the HUB fails, the rest of the network continues to function normally. Each
computer is connected to central HUB, this topology requires more cable.
Data Communication & Networking
1) It is easy to modify and add new computers to a star topology network without disturbing the rest
of the network.
2) There is a central point, controller or HUB in star network; it is easier to diagnose network
problems.
3) Single computer failure does not bring down the whole network.
Ring Topology
In ring topology computers are connected on single circle of cable shown in fig. There are no
terminating ends. A signal is passed along the ring in one direction from device to device until it
reaches the destination. Each device in ring is connected to a repeater. When a device receives a signal
intended for another device, its repeater regenerates the bits and passes them along. Failure of one
computer in ring affects the entire network.
The network uses token passing method for transferring data. A short message called a token is
passed around the ring until a computer needs to send data to another computer. The receiving
computer returns a message to the originator indicating that message has been received. The sending
computer then creates another token and places it on the network. This allows another station or device
to capture the token and begin transmitting.
Data Communication & Networking
Mesh Topology
In a mesh topology every device has a dedicated point-to-point link to every other device shown
in fig. The term dedicated means that the link carries traffic only between the two devices it connects.
A fully connected mesh network therefore has n(n-1)/2 physical channels to link n devices. To
accommodate that many links, every device on the network must have n-1 input/output ports.
There are two types of mesh topology namely Full mesh and partial mesh topology. In Full
mesh topology, every node has a circuit connected to every other node in the network. So, it is more
expensive. Partial mesh topology is less expensive comparatively.
Tree Topology
A tree topology is variation of star; nodes in a tree are linked to central hub that control traffic
to the network shown in fig. Every device does not plug directly into the central hub. The majority of
devices connect to secondary hub that in turn is connected to the central hub. The majority of devices
connect to secondary hub that in turn is connected to the central hub.
The central hub in the tree is an active hub. The active hub contains a repeater, which is a
hardware device that regenerates the received bit patterns before sending them out. The secondary
hub may be active or passive. A passive hub provides simple physical connection between the attached
devices.
Guided Media
Guided transmission media uses a “cabling” system that guides the data signals along a specific path.
Guided media is also known as “Bounded Media”. Guided media are those that provide medium of data
transmission from one device to another. It includes twisted pair cable, coaxial cable and fiber optic
cable.
Unguided Media
Unguided media transports electromagnetic waves without using a physical conductor. Signals are
normally broadcast through air and thus are available to anyone who has a device capable of receiving
them. Unguided media is also known as “Unbounded Media”. This type of communication is often
referred to as wireless communication.
2.1.1 Definition
Guided transmission media uses a “Cabling” system that guides the data signals along a specific path.
Guided media is also known as “Bounded Media”.
Data Communication & Networking
2.1.2 Classification
Advantages of UTP
1) Low cost
2) Easy to use
3) Flexible
4) Easy to install
Dis-advantages of UTP
1) Limited to only 100 mts.
2) Most affected by interference.
3) Easy to tap into.
UTP Connectors
UTP is most commonly connected to network devices via a type of snap-in plug like that which
is used with telephone jacks. Each wire in a cable is attached to one conductor (or pin) in the connector.
The most frequently used is an RJ45 (Registered Jack). Connector with eight conductors, one for
each wire of four twisted pair as shown in fig.
Data Communication & Networking
Advantages of STP
1) Less affected by interference.
2) Difficult to tap into.
Dis-advantages of STP
1) High cost
2) Difficult to use
3) It is not Flexible
4) Difficult to install
Data Communication & Networking
A core is surrounded by glass cladding with lower refractive index than the core, to keep all the
light in the core. Next comes, a thin plastic jacket to protect the cladding. As shown in fig. fibers are
typically grouped together in bundles protected by an outer sheath. Two types of light sources can be
used for signaling, (LED and diodes) LED and semiconductors lasers.
Data Communication & Networking
Propagation Modes have two modes (multimode and single mode) for propagating light along
optical channels, each requiring fiber with different physical characteristics. Multimode can be
implemented in two forms: step-index or graded-index.
Multimode
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. The density of the core remains constant
from the centre to the edges.
A beam of light moves through this constant density in a straight line until 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.
Single-Mode
It 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
diameter than that of multimode fiber, and with substantially lower density (index of refraction).
The decrease in density results in a critical angle that is close enough to 90° to make the
propagation of beams almost horizontal. In this case, propagation of different beams is almost identical,
and delays are negligible.
Data Communication & Networking
Unguided signals can travel from source to destination in several ways. There is ground
propagation, sky propagation, and line-of sight propagation.
Data Communication & Networking
Ground Propagation
In this propagation, radio waves travel through lowest portion of atmosphere, hugging the earth. These
low-frequency signals emanate in all directions from the transmitting antenna and follow the curvature
of planet. Distance depends on the amount of power, the greater the distance.
Sky Propagation
In this 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 power output.
2.3.2 Microwaves
Electromagnetic waves having frequencies between 1 and 300 GHz are called microwaves.
Micro waves are unidirectional. When an antenna transmits micro waves, they can be narrowly focused.
This means that the sending and receiving antennas need to be aligned without interfering with another
pair of aligned antennas. Microwave’s uses line of sight propagation.
Terrestrial Microwave
Terrestrial Microwave transmission is a technology that transmits the focused beam of a radio
signal from one ground-based microwave transmission antenna to another. Microwaves are
unidirectional as the sending and receiving antenna is to be aligned. It works on the line-of-sight
transmission, i.e., the antennas mounted on the towers are the direct sight of each other.
Terrestrial Microwave
Satellite Microwave
Satellite communication is more reliable nowadays as it offers more flexibility than cable and
fibre optic systems. We can communicate with any point on the globe by using satellite communication.
The satellite accepts the signal that is transmitted from the earth station, and it amplifies the signal. The
amplified signal is retransmitted to another earth station.
Satellite Microwave
Data Communication & Networking
Advantages of Microwaves
1) Micro waves are unidirectional, and sending and receiving antennas need to be aligned, so they are
not interfering with another pair of aligned antennas.
2) The micro wave’s band is relatively wider, compared to the radio wave band. When this band is
divided into sub bands, the sidebands are also wider, leading to higher data rate for digital
communications.
3) Micro waves are relatively inexpensive and simple to install.
Disadvantages of Microwaves
1) The micro waves travel in a straight line, if the towers are too far apart, the earth will get in the way.
Consequently, repeaters are often needed for long distance communication periodically.
2) Very high frequency micro waves cannot able to penetrated walls. Its disadvantage if receivers are
inside the buildings.
Application of Microwaves
1) Cellular phones
2) Satellite networks
3) Wireless LANs
3.1.1 Definition
Network devices are components used to connect computers or other electronic devices together so that
they can share files or resources like printers or fax machines. Devices which are used to form a network
are called Networking devices.
3.1.2 Types
Repeater
Repeater is an electronic device, which operates, only in physical layer of the OSI model. Signal
that carries information within a network can travel a fixed distance before noise can affect integrity of
the data.
A network device used to regenerate or replicate a signal. Repeaters are used in transmission
systems to regenerate analog or digital signals distorted by transmission loss.
Data Communication & Networking Notes
Repeater installed on a link receives the signal before it becomes too weak or corrupted,
regenerates the original bit pattern & puts the new refreshed copy back onto the link. A repeater allows us
to extend only the physical length of a network. A repeater does not change the functionality of the
network.
Hub
A hub is a common connection point for devices in a network. Hubs are commonly used to connect
segments of a LAN. A hub contains multiple ports. When a packet arrives at a port, it is copied to the
other ports so that all segments of the LAN can see all packets.
Hub is used to create connections between stations in a physical star topology. Hub is a central
network device that connects network nodes. It is also referred as concentrators. It enables central network
management. It can have multiple inputs & outputs all active at one time. It permits large number of
computers to be connected on a single or multiple LANs. It enables high speed communication and also
provides connection for several different media types (coaxial, fiber optic, twisted pair).
Data Communication & Networking Notes
Types of Hub
1) Active Hub
2) Passive Hub
3) Intelligent Hub
Active Hub
Most hubs are active in that they regenerate and retransmit the signals the same way a repeater does. In
fact, because hubs usually have eight to twelve ports for computers to connect to, they are often called
multiport repeaters. Active hubs need electrical power to run. It contains a repeater which is h/w device
that regenerates the received bits before sending to the link.
Passive Hub
It provides physical connection between the attached devices. Passive hubs act as connection points and
do not amplify or regenerate the signal; the signal passes through the hub. Passive hubs do not require
electricity to run.
Intelligent Hub
Intelligent hubs are enhanced active hubs. It will accommodate several different types of cables. A hub-
based network can be expanded by connecting more than one hub. It also has functions which can add
intelligence to a hub like hub management.
Limitation of Hub
1) It does not have mechanisms such as collision detection and retransmission of packets.
2) It cannot connect different network architectures.
3) It broadcasts message to all computers and there is no privacy.
Bridge
A network bridge is a computer networking device that creates a single aggregate network from multiple
communication networks or network segments.
Bridges operate in both the physical and data link layer of the OSI model as shown in figure. A bridge
connects two or more LANs. Bridges can divide a large network into smaller segments. Bridges contain
logic (software) that allows them to keep the traffic for each segment separate, in this way they filter
traffic. Bridges transmit frames only to the separate segment. Like this way bridges filter the traffic (handle
traffic). Bridges can also provide security through this partitioning of traffic (Means preventing
unauthorized access).
Data Communication & Networking Notes
Bridges operates at the data link layer, so giving it access to the physical addresses of all stations connected
to it. When a frame enters a bridge, it regenerates the signal and it checks the address of the destination
and forwards the new copy only to the segment to which address belongs. As a bridge found frame, it
reads the address contained in the frame & compares that address with a table of all stations on both
segments. When the bridge finds correct match, it find to which segment the station belongs and send the
frame only to that segment.
Bridge must have a look up table that contains the physical addresses of every station connected to it. The table
also indicates to which segment each station belongs. From figure if packet from A passed to the device D
through the bridge. In this case, both devices are on the same segment (upper segment). So packet is blocked
from crossing into the lower segment. Because no need to pass on lower segment. Suppose packet generated
by device A is send to device G. At this time bridge allows the packet to cross and send packet to the lower
segment. So finally it is received by station G.
Types of Bridges
1) Simple Bridge
2) Multiport Bridge
3) Transparent Bridge
Simple Bridge
A simple bridge is the most primitive and least expensive types of bridge. A simple bridge links two
segments. It contains a table that lists the physical addresses of all stations connected with the bridge. In
this bridge, physical addresses must be entered manually that makes them primitive. Before a simple
bridge can be used, an operator enters the addresses of every station. In this bridge, updating of the devices
is time consuming process. Whenever a new station is added, the table must be modified means new entry
Data Communication & Networking Notes
for new device. If station is removed then also address must be deleted from the table. So, installation and
maintenance of simple bridges are time consuming.
Multiport Bridge
Multiport bridge can be used to connect more than two LANs. In this bridge three tables are created, each
one holding the physical address of stations reachable through the corresponding port. Transparent Bridge.
Transport Bridge builds its table of physical station addresses on its own as it performs its bridge functions.
Table is automatically built by frame movements in the network. When transparent bridge is first installed,
its table is empty. When it receives packet it looks at source & destination address. Destination address is
used for forwarding decision to the particular segments. Source address is used for adding entries to the
table and for updating table. As it reads source address it notes which side the packet came from and the
segment to which it belongs.
It checks destination address to decide where to send packet. If it is not inside table, it sends the packet to
all of the station on both segments except sender (source) station. When the first packet is transmitted by
each station, the bridge makes entries inside the table with corresponding segment. So, at last table
completed with all station addresses and segment. Next packet send by each station refers the table entry.
Transparent Bridge
A transparent bridge is a bridge in which the stations are completely unaware of the bridge's existence. If
a bridge is added or deleted from the system, reconfiguration of the stations is unnecessary.
According to the IEEE 802.1 d specification, a system equipped with transparent bridges must meet three
criteria:
1) Frames must be forwarded from one station to another.
2) The forwarding table is automatically made by learning frame movements in the network.
3) Loops in the system must be prevented.
Data Communication & Networking Notes
Switch
A network switch is a computer networking device which connects devices together on a computer
network by using packet switching to receive, process and forward data to the destination device.
Switches provide bridging functionality with greater efficiency. It acts as multiport bridge to connect
devices or segments in a LAN. Switch has a buffer for each link to which it is connected. Switch operates
in Data Link Layer of the OSI model. When it receives a frame, it stores the frame in buffer of receiving
link & checks address to find outgoing link. If the outgoing link is free the switch sends the frame to that
particular link.
2) 3-Layer switch
2-Layer Switch
Layer 2 switches works at data link layer. It does not provide routing facilities. It is cheap compare to layer 3
switches. It is less efficient. It does not work like a router.
A two-layer switch is a bridge, a bridge with many ports and a design that allows better (faster)
performance. A bridge with a few ports can connect a few LANs together. A bridge with many ports may
be able to allocate a unique port to each station, with each station on its own independent entity.
However, a two-layer switch can be more sophisticated. It can have a buffer to hold the frames for
processing.
3-Layer Switch
Layer 3 switches works at data-link layer as well as network layer. It provides routing facilities. It is costly
compare to layer 2 switches. It is more efficient.
A three-layer switch is a router, but a faster and more sophisticated. The switching fabric in a three-layer
switch allows faster table lookup and forwarding.
Router
Routers operate in the physical, data link and network layers of the OSI model as shown in figure. It is
most active in network layer. Routers are able to access network layer address (logical address) of the
device. It contains software that enables them to determine which of several paths between those addresses
is best for data transmission. A packet sent from a station on one network to a device on a nearby network
goes first to the router which switches packet to the destination network. Router consults with a routing
table when packet is ready to be forwarded. Simplest function of routers is to receive packets from one
connected network and pass them to second connected network.
Types of Routers
Static Router
Routing table’s information’s are entered manually. Means this administrator enters the route for each
destination into the table. It cannot update automatically when there is change (shutdown of routers or breaking
of link or some fault in connection) in the internet. It is more secure. It always uses the same route.
Dynamic Router
Routing table is created automatically. Table is updated using one of the dynamic routing protocols whenever
there is change (shutdown of routers or breaking of link or some fault in connection) in the internet.
switch router
1 It operates at data link layer It operates at network layer
2 It connects different computers within a It connects two or more different networks
network
3 A switch works on the basis of MAC A router works on the principle of IP address
address
4 Switch are comparatively less intelligent Router are comparatively more intelligent
than router than switch
5 A switch does not use any algorithms A router uses routing algorithm to calculate
best path for routing data packets
Data Communication & Networking Notes
Gateways
Gateways operate in all seven layers of OSI model as shown in figure. Gateway is also called as protocol
converter. Gateway is used to connect two different network systems. A Router is used to transfer, accept
and relay packets only across networks using similar protocols. A gateway can accept a packet formatted
for one protocol and converts into a packet formatted for another protocol before forwarding it. Gateway
must adjust data rate, size and format. It converts the protocol from one network to another.
Data Communication and Networking
Layered Architecture
The main aim of the layered architecture is to divide the design into small parts. Each lower
layer adds its services to the higher layer to provide a full set of services to manage communications
and run the applications. It provides modularity and clear interfaces, i.e., provides interaction between
subsystems. It ensures the independence between layers by providing the services from lower to higher
layer without defining how the services are implemented.
Therefore, any modification in a layer will not affect the other layers. The number of layers,
functions, contents of each layer will vary from network to network. However, the purpose of each
layer is to provide the service from lower to a higher layer and hiding the details from the layers of
how the services are implemented. The basic elements of layered architecture are services, protocols,
and interfaces.
Protocol: It defines a set of rules that a layer uses to exchange the information with peer entity. These
rules mainly concern about both the contents and order of the messages used.
Interface: It is a way through which the message is transferred from one layer to another layer.
In a layer n architecture, layer n on one machine will have a communication with the layer n on
another machine and the rules used in a conversation are known as a layer-n protocol.
In case of layered architecture, no data is transferred from layer n of one machine to layer n of another
machine. Instead, each layer passes the data to the layer immediately just below it, until the lowest
layer is reached. Below layer 1 is the physical medium through which the actual communication takes
place. In a layered architecture, unmanageable tasks are divided into several small and manageable
tasks.
The data is passed from the upper layer to lower layer through an interface. A Layered
architecture provides a clean-cut interface so that minimum information is shared among different
layers. It also ensures that the implementation of one layer can be easily replaced by another
implementation. A set of layers and protocols is known as network architecture.
Data Communication and Networking
The OSI model is divided into two layers: upper layers and lower layers. The upper layer of the
OSI model mainly deals with the application related issues, and they are implemented only in the
software. The application layer is closest to the end user. Both the end user and the application layer
interact with the software applications. An upper layer refers to the layer just above another layer.
The lower layer of the OSI model deals with the data transport issues. The data link layer and
the physical layer are implemented in hardware and software. The physical layer is the lowest layer of
the OSI model and is closest to the physical medium. The physical layer is mainly responsible for
placing the information on the physical medium.
The purpose of each layer in the OSI reference model is to provide service to the next layer
above it by hiding the upper layer from the complications of the layer below it. Layer 1, 2 and 3 that is
physical, data link and network layers are the Network Support Layer. Layer 5, 6 and 7 which is session,
presentation and application layers is the User Support Layer. Transport layer links the network support
layers and user support layers. OSI Model serves the purpose of providing general design guidelines
for data communication systems. It is a learning tool that can be used to understand how modern
computer systems communicate.
Functions of the OSI Layers
There are seven OSI layers. Each layer has different functions. A list of seven layers are given
below:
1) Physical Layer
2) Data-Link Layer
3) Network Layer
4) Transport Layer
5) Session Layer
6) Presentation Layer
7) Application Layer
Data Communication and Networking
Physical layer
The physical layer is the bottom layer of OSI model. It is concerned with transmitting raw bits over a
physical medium. It defines the physical structure of network (physical topology). The main functionality
of the physical layer is to transmit the individual bits from one node to another node. It is the lowest layer
of the OSI model. It establishes, maintains and deactivates the physical connection. It specifies the
mechanical, electrical and procedural network interface specifications.
Topology
It defines the way how network devices are arranged.
Signals
It determines the type of the signal used for transmitting the information.
Data-Link Layer
A Data Link layer specifies raw data in which bits are grouped into frames and specific frame
format. This layer is responsible for the error-free transfer of data frames. It defines the format of the
data on the network. It provides a reliable and efficient communication between two or more devices.
It is mainly responsible for the unique identification of each device that resides on a local network.
It contains two sub-layers:
Logical Link Control Layer
1) It is responsible for transferring the packets to the Network layer of the receiver that is receiving.
2) It also provides flow control.
Physical Addressing
The Data link layer adds a header to the frame that contains a destination address. The frame is
transmitted to the destination address mentioned in the header. This header defines the physical address
of the sender as well as the receiver.
Flow Control
Flow control is the main functionality of the Data-link layer. It is the technique through which the
constant data rate is maintained on both the sides so that no data get corrupted. It ensures that the
transmitting station such as a server with higher processing speed does not exceed the receiving station,
with lower processing speed.
Error Control
It is a mechanism to prevent duplication of frames in case a frame is destroyed due to noise or other
reasons. Error control is achieved by adding a calculated value CRC (Cyclic Redundancy Check) that
is placed to the Data link layer's trailer which is added to the message frame before it is sent to the
physical layer. If any error seems to occur, then the receiver sends the acknowledgment for the
retransmission of the corrupted frames.
Network Layer
It manages device addressing, tracks the location of devices on the network. It determines the best path
to move data from source to the destination based on the network conditions, the priority of service,
and other factors. The Network layer is responsible for routing and forwarding the packets. Routers are
the layer 3 devices, they are specified in this layer and used to provide the routing services within an
internetwork. The protocols used to route the network traffic are known as Network layer protocols.
Examples of protocols are IPv4 and IPv6.
Functions of Network Layer
Internetworking
An internetworking is the main responsibility of the network layer. It provides a logical connection
between different devices.
Logical Addressing
A Network layer adds the source and destination address to the header of the frame. Addressing is used
to identify the device on the internet. It is used to distinguish the source and destination system used
when packet passes the network boundary.
Data Communication and Networking
Routing
Routing is the major component of the network layer, and it determines the best path out of the multiple
paths from source to the destination.
Transport Layer
The Transport layer ensures that messages are transmitted in the order in which they are sent
and there is no duplication of data. The main responsibility of the transport layer is to transfer the data
completely. It receives the data from the upper layer and converts them into smaller units known as
segments. This layer can be termed as an end-to-end layer as it provides a point-to-point connection
between source and destination to deliver the data reliably.
Functions of Transport Layer
Segmentation and reassembly
When the transport layer receives the message from the upper layer, it divides the message into multiple
segments, and each segment is assigned with a sequence number that uniquely identifies each segment.
When the message has arrived at the destination, then the transport layer reassembles the message
based on their sequence numbers. It identifies and replaces the lost packets during transmission.
Connection control
Transport layer provides two services Connection-oriented service and connectionless service. A
connectionless service treats each segment as an individual packet, and they all travel in different routes
to reach the destination. A connection-oriented service makes a connection with the transport layer at
the destination machine before delivering the packets. In connection-oriented service, all the packets
travel in the single route.
Flow control
The transport layer also responsible for flow control but it is performed end-to-end rather than across
a single link. It controls the data flow between sender and receiver. It ensures that the transmitting
device does not send more data than the receiving device can handle.
Error control
The transport layer is also responsible for Error control. Error control is performed end-to-end rather
than across the single link. The sender transport layer ensures that message reach at the destination
without any error. It corrects faulty transmission. It acknowledges successful transmission.
Data Communication and Networking
Session Layer
The Session layer is used to establish, maintain and synchronizes the interaction between
communicating devices. It is responsible for synchronizing data exchange between computers,
structuring communication sessions and other issues directly related to conversations between network
computers.
Functions of Session layer
Dialog control
Session layer acts as a dialog controller that creates a dialog between two processes or we can say that
it allows the communication between two processes which can be either half-duplex or full-duplex.
Synchronization
Session layer adds some checkpoints when transmitting the data in a sequence. If some error occurs in
the middle of the transmission of data, then the transmission will take place again from the checkpoint.
This process is known as Synchronization and recovery.
Presentation Layer
A Presentation layer is mainly concerned with the syntax and semantics of the information exchanged
between the two systems. The presentation layer structures data that is passed down from the
application layer into a format suitable for network transmission. It acts as a data translator for a
network. This layer is a part of the operating system that converts the data from one presentation format
to another format. The Presentation layer is also known as the syntax layer.
Compression
Data compression is a process of compressing the data, i.e., it reduces the number of bits to be
transmitted. Data compression is very important in multimedia such as text, audio, video.
Application Layer
An application layer serves as a window for users and application processes to access network service.
It handles issues such as network transparency, resource allocation, etc. An application layer is not an
application, but it performs the application layer functions. This layer provides the network services to
the end-users.
Functions of Application layer
File transfer, access, and management (FTAM)
An application layer allows a user to access the files in a remote computer, to retrieve the files from a
computer and to manage the files in a remote computer.
Mail services
An application layer provides the facility for email forwarding and storage.
Directory services
An application provides the distributed database sources and is used to provide that global information
about various objects.
Data Communication and Networking
Application Layer
Transport Layer
Internet Layer
Host-to-network Layer
The first four layers provide physical standards, network interface, internetworking, and
transport functions that correspond to the first four layers of the OSI model and these four layers are
represented in TCP/IP model by a single layer called the application layer. TCP/IP is a hierarchical
protocol made up of interactive modules, and each of them provides specific functionality. Here,
hierarchical means that each upper-layer protocol is supported by two or more lower-level protocols.
Functions of TCP/IP layers
Host-to-Network Layer
A Host-to-Network layer is the lowest layer of the TCP/IP model. A Host-to-Network layer is the
combination of the Physical layer and Data Link layer defined in the OSI reference model. It defines
how the data should be sent physically through the network. This layer is mainly responsible for the
transmission of the data between two devices on the same network. The functions carried out by this
layer are encapsulating the IP datagram into frames transmitted by the network and mapping of IP
addresses into physical addresses. The protocols used by this layer are Ethernet, token ring, FDDI,
X.25, frame relay.
Data Communication and Networking
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. Following
are the responsibilities of this protocol.
ARP Protocol
ARP stands for Address Resolution Protocol. ARP is a network layer protocol which is used to find
the physical address from the IP address. The two terms mainly associated with the ARP Protocol are:
ARP request: When a sender wants to know the physical address of the device, it broadcasts the ARP
request to the network.
ARP reply: Every device attached to the network will accept the ARP request and process the request,
but only recipient recognize the IP address and sends back its physical address in the form of ARP
reply.
RARP Protocol
RARP stands for Reverse Address Resolution Protocol). RARP is used to find the IP address of the
node when its physical address is known.
ICMP Protocol
ICMP stands for Internet Control Message Protocol. It is a mechanism used by the hosts or routers to
send notifications regarding datagram problems back to the sender. A datagram travels from router-to-
router until it reaches its destination. If a router is unable to route the data because of some unusual
conditions such as disabled links, a device is on fire or network congestion, then the ICMP protocol is
used to inform the sender that the datagram is undeliverable.
IGMP (Internet Group Message Protocol): IGMP has been designed to help a multicast router to
identify the hosts in a LAN that are members of a multicast group.
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 Transmission control protocol
and User Datagram protocol.
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.
Following are the main protocols used in the application layer:
HTTP
HTTP stands for Hypertext transfer protocol. This protocol allows us to access the data over the world
wide web. It transfers the data in the form of plain text, audio, video. It is known as a Hypertext transfer
protocol as it has the efficiency to use in a hypertext environment where there are rapid jumps from
one document to another.
SNMP
SNMP stands for Simple Network Management Protocol. It is a framework used for managing the
devices on the internet by using the TCP/IP protocol suite.
SMTP
SMTP stands for Simple mail transfer protocol. The TCP/IP protocol that supports the e-mail is known
as a Simple mail transfer protocol. This protocol is used to send the data to another e-mail address.
DNS
DNS stands for Domain Name System. An IP address is used to identify the connection of a host to
the internet uniquely. But people prefer to use the names instead of addresses. Therefore, the system
that maps the name to the address is known as Domain Name System.
TELNET
It is an abbreviation for Terminal Network. It establishes the connection between the local computer
and remote computer in such a way that the local terminal appears to be a terminal at the remote system.
FTP
FTP stands for File Transfer Protocol. FTP is a standard internet protocol used for transmitting the files
from one computer to another computer.
TFTP
TFTP stands for Trivial Transfer Protocol. TFTP protocol simply copies the file here they do not need
to solve the problems provided in FTP. Here there are only two operations:
1) Reading - It means copying a file from the server site to the client site.
2) Writing - It means copying a file from the client site to the server site.
Connection-Oriented Service
A connection-oriented service is a network service that was designed and developed after the
telephone system. A connection-oriented service is used to create an end-to-end connection between
the sender and the receiver before transmitting the data over the same or different networks. In
connection-oriented service, packets are transmitted to the receiver in the same order the sender has
sent them. It uses a handshake method that creates a connection between the user and sender for
transmitting the data over the network. Hence it is also known as a reliable network service.
Data Communication and Networking
Suppose, a sender wants to send data to the receiver. Then, first, the sender sends a request
packet to a receiver in the form of an SYN packet. After that, the receiver responds to the sender's
request with an (SYN-ACK) signal/packets. That represents the confirmation is received by the
receiver to start the communication between the sender and the receiver. Now a sender can send the
message or data to the receiver.
Similarly, a receiver can respond or send the data to the sender in the form of packets. After
successfully exchanging or transmitting data, a sender can terminate the connection by sending a signal
to the receiver. In this way, we can say that it is a reliable network service.
TCP (Transmission Control Protocol) is a connection-oriented protocol that allows
communication between two or more computer devices by establishing connections in the same or
different networks. It is the most important protocol that uses internet protocol to transfer the data
from one end to another. Hence, it is sometimes referred to as TCP/IP. It ensures that the connection
is established and maintained until the data packet is transferring between the sender and receiver is
complete.
Connectionless Service
A connection is similar to a postal system, in which each letter takes along different route paths
from the source to the destination address. Connectionless service is used in the network system to
transfer data from one end to another end without creating any connection. So it does not require
establishing a connection before sending the data from the sender to the receiver. It is not a reliable
network service because it does not guarantee the transfer of data packets to the receiver, and data
packets can be received in any order to the receiver. Therefore, we can say that the data packet does
not follow a defined path. In connectionless service, the transmitted data packet is not received by the
receiver due to network congestion, and the data may be lost.
For example, a sender can directly send any data to the receiver without establishing any
connection because it is a connectionless service. Data sent by the sender will be in the packet or data
streams containing the receiver's address. In connectionless service, the data can be travelled and
received in any order. However, it does not guarantee to transfer of the packets to the right destination.
Data Communication and Networking
1 Connection must be established prior to Data is sent without any prior establishment
data transmission. of connection.
2 It requires authentication before It does not require authentication before
transmitting the data packets to the transferring data packets.
receiver.
3 Data transmission speed is low. Data transmission speed is high.
4 It creates a virtual path between the sender It does not create any virtual connection or
and the receiver. path between the sender and the receiver.
5 It is a more reliable connection service It is not a reliable connection service because
because it guarantees data packets transfer it does not guarantee the transfer of data
from one end to the other end with a packets from one end to another for
connection. establishing a connection.
6 It provides acknowledgement. It doesn’t provide acknowledgement.
7 TCP is example of connection-oriented UDP is the example of connectionless
services. services.
Data Communication and Networking
Let's see the differences between the OSI and TCP/IP model in a tabular form:
5.1 IP Protocol
The internet protocol provides for transmitting blocks of data called datagrams from sources to
destinations, where sources and destinations are hosts identified by fixed length addresses. The internet
protocol does not provide a reliable communication facility. There are no acknowledgments, it is either
end-to-end or hop-by-hop.
Definition
The internet protocol is specifically limited in scope to provide the functions necessary to deliver a
package of bits from a source to a destination over an interconnected system of networks.
IP Address
An address that identifies the connection of host to its network is called IP address. An IP address is 32-bit
address. It is unique address. Unique here means two devices on Internet can never have same address at
same time.
IP Datagram
Datagram is a variable length packet consisting of two parts
1) Header
2) Data IP datagram
Header is 20 to 60 bytes in length and contains information required to routing and delivery of
datagram. IPV4 header format shown in fig.
Binary Notation
IP address is 32-bit address. To make address readable, one or more spaces is usually inserted
between each 8 bits.
VER: Version
This field defines the version of IP. Currently version is 4: IPv4 with a binary value 0100. IPv6: IP version
6, with binary value 0110.
HLEN: Header Length
This field defines the length of header in IP diagram. Length is in multiples of 4 bytes. This is 4-bit
information means number between 0 and 15 (0000-1111), which is multiply by 4 bytes.
Service Type
This field defines how the datagram should be handled. It contains bits that specify the type of services the
sender wants, such as reliability, delay and level of throughput.
Total length
This field defines total length of IP datagram. Header length + Data length = Total length. This is 16-bit
field. From this 20-60 bytes are the header and the rest of it is data from upper layer.
Identification
Identification field is used in fragmentation. A datagram when passing through different network may be
divided into fragments to match the network frame size. So, each fragment is identified with sequence
number in this field. All the fragments have same identification number. This identification number helps
the destination in rearrangement process of datagram.
Flags
This is a 3-bit field. 1st bit is reserved for future. 2nd bit is called the do not fragment bit. 3rd bit is the
more fragment bit.
Fragmentation Offset
The fragmentation offset is a pointer that shows position of fragment in the original datagram.
Time to live
This field is used to control the maximum numbers of hops (routers) visited by the datagram. This prevents
the datagram from going back and forth forever between routers.
Protocol
This field defines the higher-level protocol that uses the services of the IP layer. Higher layer protocols
such as TCP, UDP, ICMP, IGMP etc.
Header Checksum
This is 16-bit field used to check the header part, not the rest of packet.
Source IP address
This field specifies 4 bytes (32 bit) Internet address of the source. This field must remain unchanged during
the time datagram travels from one network to another.
Destinations IP addresses
This field defines IP address of destination. This is also 4 byte Internet address. This field must remain
unchanged during the time the datagram travels from one network to another.
Options
Optional part means it is not required for every datagram. They are used for network testing, debugging,
control routing, timing, management etc. Options field gives more functionality to the IP datagram.
Data Communication & Networking
IPv6
IPv6 stands for Internetwork Protocol Version 6. In IPv6, format and length of IP addresses were
changed along with the packet format. IPv6 provide 128 bits addressing. IPv6 has some advantages over
IPv4. Checksum field is eliminated from the header. Internet protocol Security with respect to network security is
mandatory.
IPv6 Header Format
VER (Version)
The four-bit field defines the version number of IP.
TRAFFIC CLASS
The four-bit field to set the priority of the packet with respect to traffic congestion.
FLOW LABEL
The flow label is the field that is designed to provide special handling for a particular flow of data.
PAYLOAD LENGTH
The two-byte payload length field defines the total length of the IP datagram excluding the base header.
NEXT HEADER
The next header is an eight-bit field defining the header the follow the base header in the datagram. The
next header is either one of the optional extension headers used by IP or the header for an Upper layer
protocol like UDP or TCP. Each extension header also contains this field.
HOP LIMIT
The eight-bit hop limit field serves the same purpose as the TTL field in IPv4.
SOURCE ADDRESS
The source address field is a 16-byte internet address that identifies the original source of the datagram.
Data Communication & Networking
DESTINATION ADDRESS
The Destination address field is 16-byte address that identifies the final destination of the datagram.
However, if the source routing is used, this field contains the address of the next router.
Features of IPv6
1) Large Address Space
IPv6 address is 128-bits long. It provides very large address space compare to IPv4.
2) Better Header Format
IPv6 uses a new header format in which option are separated from header and inserted (when required)
between header and data.
4) Allowing Extension
IPv6 is designed to allow the extension of the protocol if required by new technologies.
5) Support for Resource Allocation
In IPv6, the type of service field has been removed, but flow label has been added to enable the source
to request special handling of packet. This is used to support traffic such as real-time audio and video.
6) Support for more Security
IPv6 provides more security compare to IPv4. The encryption and authentication options in IPv6
provide confidentiality to the packet.
Addressing Schemes
Classful Addressing
The address space is divided into five classes: Class A, Class B, Class C, Class D and Class E.
Addresses in classes A, B and C are used for unicast communication i.e. one source to one destination.
Addresses in class D are used for multicast communication i.e. one source to many destination. Addresses
in class E are reserved for future use. IP addresses in class A, B and C is divided into net id and host id.
Net id - Network Identification Number
Host id - Host Address
Data Communication & Networking
Classless Addressing
In classless addressing, when an entity, small or large, needs to be connected to the Internet, it is
granted a block (range) of addresses. The size of the block (the number of addresses) varies based on the
nature and size of the entity.
To overcome address depletion and give more organizations access to the Internet, classless
addressing was designed and implemented. In this scheme, there are no classes, but the addresses are still
granted in blocks.
To simplify the handling of addresses, the Internet authorities impose three restrictions on classless
address blocks:
1) The addresses in a block must be contiguous, one after another.
2) The number of addresses in a block must be a power of 2 (1, 2, 4, 8,...).
3) The first address must be evenly divisible by the number of addresses.
Sometimes these two levels of hierarchy is not suitable to the organization, so at that point network
needs to be divided into several smaller networks.
The further division of a network into smaller networks called sub networks. For example,
University has many departments. The university has one network address, but its departments have
several sub networks addresses. Each sub network is identified by its sub network address. When we
divide a network into several subnets, we have three level of hierarchy.
[Network Sub Network Host]
For Example:
Without Sub Netting
Two level Hierarchy
[Link] Class B address
141.14 • 2.21
Net Id Host Id
141.14 • 2 • 21
Net Id Sub-Net Id Host Id
Masking
Masking is a process that extracts the address of the network from an IP address. When a router
receives a packet with destination address, it needs to route the packet. The routing is based on network
address and sub network address. The router outside the organization (Network) routes the packet based
on the network address. The router inside the organization routes the packet based on sub network address.
A network administrator knows the network address and sub network addresses but router does not. Router
uses masking process.
Router uses masking process. Masking is a process that extracts the address of network from an
IP address. Masking can be done whether we have sub-netting or not. If we have not sub-netted the
network, masking extracts the network address from an IP address. If we have sub-netted, masking extracts
the sub-network address from an IP address.
For Example
IP address - [Link]
Mask - [Link]
Network Address - [Link]
E N/A
DNS
To identify an entity, the internet uses an IP address, which uniquely identifies the connection of
a computer to the internet. But user prefers to use names instead of numeric addresses. Because of
remember numeric addresses are difficult compare to names. Therefore, we need a system that can map a
name to an address or an address to name. The naming scheme used in internet is called the DNS (Domain
Name System). In DNS names must be unique because the addresses are unique.
Domain names are case insensitive. Each domain is partitioned into sub domains and these are
further partitioned and so on. Once an organization has been assigned domain, the suffix is received for
the organization. Means no other organization will be assigned the same name and suffix. Means unique
domain suffix is assigned to each organization. To map a name into an IP address, an application program
calls a library procedure called the resolver, passing it the name as a parameter. The resolver sends a UDP
packet to local DNS server, which then looks up the name and returns the IP address to the resolver, which
then returns it to caller processor.
DNS names are defined in an inverted tree structure with the root at top. Each node in the tree has
a label, which is a string with maximum of 63 characters.
Domain Name
Each node in a tree has a domain name. A full domain name is a sequence of labels separated by dots. Full
path names must not exceed 255 characters. Domain names are always read from the bottom to top. Last
label is the label of the root. The root label is a null string (Empty String). Means a full domain name
always ends in a null label.
Name Server
Information contained in the domain name system must be stored. It is very inefficient and not
reliable to have just one computer store such large information. Because, any failure on that computer
makes data inaccessible. To solve above problem, we have to distribute the information among many
computers called DNS servers. One way to do this is to divide the whole space into many domains based
on first level.
DNS allows domains to be divided future into smaller domains. Each server can be responsible for
a domain. We have a hierarchy of servers. DNS name space is divided into zones. (Non-overlapping area)
Each zone contains some part of a tree and also contain name server. The server makes a database called
a zone file and keeps all the information for every node under that domain. Root server is a server whose
zone consists of a whole tree. It has authority to other servers, keeping references to those servers.
DNS in the Internet
In the internet, domain name space is divided into three different sections-
1) Generic domain.
2) Country domain.
Data Communication & Networking
3) Inverse domain.
Generic Domain
Generic domain defines registered hosts according to their generic behaviour. Each node in a tree
defines a domain. In first level, generic domain uses three-character codes.
1) Com – Commercial organization
2) Edu – Educational Institutions
3) Mil – Military Groups
4) Org – Non-profit organization
5) Int – International organization
6) Gov – Government institutions
7) Net – Network Organizations
Country Domain
It uses a two-character country abbreviation in place of three-character abbreviation at first level.
Data Communication & Networking
Inverse Domain
It is used to map an address to a name. When a server has received a request from a client to do a
task. Whereas server has a file that contains a list of authorized clients, server lists only the IP address of
the client.
Email Protocols
Electronic mail, often abbreviated to e-mail, or simply mail, is a store-and-forward method of
writing, sending, receiving and saving messages over electronic communication systems. The term “e-
Data Communication & Networking
mail” applies to the internet e-mail systems based on simple mail transfer protocol (SMTP), to network
systems based on other protocols and to various mainframe, minicomputer, or intranet systems allowing
users within one organization to send messages to each other in support of workgroup collaboration.
E-mail is most popular network services. It is system for sending message to other computer uses
based on email address. Sending message that include text, audio, video or graphics. Sending single
message to one or more recipients. SMTP is standard protocol use for electronic mail in the internet.
Composing Messages
User Agent provides a template (or form) on the screen to be filled in by user. A user can use their favourite
text editor or word processor to create the message and impart it or cut and paste into the user agent.
Reading Messages
When a user login, first User Agent checks the mail in the incoming mailbox. User Agent show a one-line
summary of each received mail which contain the following details Number field of the message, the size
of the message, the sender’s name, the subject field, flag field, which shows if the mail is new, already
read but not replied, read and replied and so on.
Replying Messages
After reading messages, a user can use the user agent to reply to the message. The reply message contains
the original message and the new message.
Forwarding Messages
Forwarding means to send the message to the third party. A user agent allows the receiver to forward the
message, with or without extra comments to a third party.
Handling Mailboxes
User agent creates two mailboxes
1) Inbox
2) Outbox
Each box is a file with special format that can be handled by user agent. The inbox keeps the entire received
emails unit they are deleted by the user. The Outbox keeps all the sent emails until the user deletes them.
Data Communication & Networking
SMTP
Simple Mail Transfer Protocol, a protocol for sending e-mail messages between servers. Most e-
mail systems that send mail over the internet use SMTP to send messages from one server to another. The
messages can then be retrieved with an e-mail client using either POP (Post Office Protocol) or IMAP
(Internet Message Access Protocol).
SMTP client and SMTP server has two components
1) UA – User Agent
2) MTA – Mail Transfer Agent
User Agent
The UA prepares the message, creates the envelope and puts the message in envelope.
Mail Transfer Agent
MTA transfers the mail across the internet.
POP3
Post Office Protocol, a protocol used to retrieve e-mail server. Most e-mail applications sometimes
called an e-mail client use the POP protocol, although some can use the newer IMAP (Internet Message
Access Protocol). Local e-mail clients uses the Post Office Protocol version 3 (POP3), an application-
layer internet standard protocol, to retrieve e-mail from remote server over TCP/IP connection.
POP3 stands for Post Office Protocol. POP3 is an extremely simple mail access protocol. The
user agent of the client opens a TCP connection to the mail server of the server. After TCP connection
is established, POP3 progresses through 3 phases: authorization, transaction and update. During first
phase, the user agent sends a username and password to authenticate the user. During second phase, the
user agent retrieves messages. During third phase, the client issues the quit command to end the POP3
session.
Data Communication & Networking
IMAP4
Internet Message Access Protocol, a protocol for retrieving e-mail messages. The latest version,
IMAP4 is similar to POP3 but supports some additional features. For example, with IMAP4, you can
search through your e-mail messages for keyboards while the messages are still on mail server. You can
choose which messages to download to your machine. IMAP was developed at Stanford University in
1986. It is more powerful and complex. It provides extra functions such as:
1) User can check the e-mail header before downloading the mail.
2) User can search the contents of the email for a specific string of characters before downloading.
3) User can partially download e-mail.
4) User can create, delete or rename mailbox on mail server.
5) User can create a hierarchy of mailboxes in a folder for email storage.
MIME
Multipurpose Internet Mail Extensions, a specification for formatting non-ASCII messages so they
can be sent over the internet. Many e-mail clients now support MIME, which enables them to send and
receive graphics, audio and video files via the internet mail systems. In addition, MIME supports messages
in character sets other than ASCII. MIME was defined in 1992 by the Internet Engineering Task Force
(IETF).
SMTP can send messages only in 7-bit ASCIT format. SMTP has limitation that it cannot be used
for languages that are not supported by 7-bit ASCII characters. MIME is supplementary protocol that
allows non-ASCII data to be sent through SMTP. MIME is not a mail protocol and cannot replace SMTP
it is only an extension to SMTP. Whenever transmission of non-ASCII data at that time MIME and SMTP
both are required.
FTP
FTP stands for File Transfer Protocol. FTP is a standard mechanism provided by TCP/IP model
for copying a file from one computer to another. Transferring files from one computer to another is one
of the most common tasks expected from a networking or internetworking environment. File Transfer
Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for
transferring web pages from a server to user’s browser and SMTP for transferring electronic mail across
the Internet in that, like these technologies. FTP uses the internet’s TCP/IP protocols to enable data
transfer.
FTP is most commonly used to download a file from server using the internet or to upload a file
to server (e.g. uploading a web page file to a server). Transferring a file from one system to another system
suffers from many problems like two systems may use different OS, two systems may use different file
name conventions, two systems may have different ways to represent text and data, and two systems may
have different directory structures. All of these problems have been solved by FTP.
FTP creates two connections between client and server one connection is used for data transfer
and other for control information (Commands and response). Control connection uses very simple rules
of communication. We need to transfer only one line of command or one line of response at a time. Data
connections, on the other hand needs more complex rules due to variety of data type transferred.
The control connection is made between the control processes. The data connection is made
between the data transfer processes. Control connection is maintained during the entire interactive FTP
session. The data connection is opened and closed for each file transferred. Port 21 used for the control
connection and Port: 20 used for data connection.
Data Communication & Networking
HTTP
HTTP is said to be a connectionless protocol and is used to interconnect web pages. HTTP stands
for Hyper Text Transfer Protocol. WWW is about communication between web clients and servers.
Communication between client computers and web servers is done by sending HTTP Requests and
receiving HTTP Response. HTTP has some built-in request methods as follows:
Method Action
GET Request to read a web page
HEAD Request to read a web page’s header
POST Sends some information from the client to the server
PUT Request to store a web page
DELETE Remove the web page
.
Communication between clients and servers is done by requests and responses:
1) A client (a browser) sends an HTTP request to the web.
2) A web server receives the request.
3) The server runs an application to process the request.
4) The server returns an HTTP response (output) to the browser.
5) The client (the browser) receives the response
The OSI model is divided into seven layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. It is designed as a reference model for data communication systems, focusing on providing guidelines for protocol development and network communications . In contrast, the TCP/IP model consists of four layers: Host-to-Network, Internet, Transport, and Application. The TCP/IP model is more directly based on standard internet protocol and emphasizes simplicity and efficiency over the rigid OSI model structure . The main structural difference is that OSI explicitly defines layers for session and presentation, which are absent in the TCP/IP model. Functionally, the OSI model is designed for teaching and theoretical purposes, whereas TCP/IP is practical and widely used for actual network communications.
Fully connected mesh topology, while providing maximum robustness and fault tolerance, poses significant challenges in terms of scalability. Each node in the network requires \\(n-1\\) input/output ports to connect with every other node, resulting in \\(n(n-1)/2\\) connections, where \\(n\\) is the number of devices . This extensive use of resources drastically increases the cost and complexity of both physical cabling and network management as the size of the network grows . Hence, it is often impractical for large-scale networks due to the exponential increase in resource allocation needed, making it more suitable for smaller, critical networks where reliability is more valued than cost .
Mesh topology provides robustness through its dedicated point-to-point links between devices, which ensures that each connection is independent and ongoing network communication is unaffected by the failure of a single link . This design provides excellent fault tolerance, privacy, and security because data travels on a dedicated line, making it difficult to intercept by unintended nodes . However, the trade-offs include increased cost due to the extensive amount of cabling and hardware required, as well as complexity in installation and reconfiguration, which can limit its implementation to smaller, highly critical networks .
Simplex transmission mode allows communication in only one direction; thus, only one device can send data while the other only receives, like in a one-way street . Half-duplex mode allows data to be transmitted in both directions, but not simultaneously; devices take turns to send and receive data, which can lead to inefficiencies in bandwidth usage . Full-duplex mode supports bidirectional data transmission where both devices can send and receive data simultaneously, maximizing throughput and making efficient use of available bandwidth . These modes influence network architecture decisions by dictating the potential communication flow and efficiency in a network setup.
In ring topology, the token passing protocol manages network traffic by circulating a token sequentially around the ring, which allows the holder to transmit data, providing equal access and reducing collisions . This method ensures efficient usage under high load conditions by allowing only one machine to transmit at a time. On the other hand, the token ring protocol, typically used in local area networks within the IEEE 802.5 standard, employs a similar mechanism but includes advanced features such as priority and reservation bits to allow certain packets to be transmitted ahead of others, introducing a more sophisticated control of traffic and data prioritization .
The OSI model is a critical educational tool because it provides a comprehensive framework for understanding the various functions networking protocols perform, which greatly aids in academic settings and for new learners in the field of telecommunications . The model's layered approach breaks down complex network interactions into manageable components, each responsible for specific aspects of data communication, facilitating a deeper understanding of how modern computer networks operate . Despite its limited application in real-world implementations, as most networks use the TCP/IP model, the conceptual comprehension it provides about protocol design and inter-computer communications remains invaluable for designing and understanding networking technologies .
The physical layer of the OSI model plays a crucial role in data transmission by translating raw data packets into electrical signals that can be transmitted via physical media, defining the hardware specifications which allow communication . It is responsible for establishing, maintaining, and deactivating the physical connections necessary for data exchange . This layer determines line configuration, different transmission modes such as simplex, half-duplex, or full-duplex, and is also involved in specifying bit rate, voltage levels, and media type for network communications .
In a corporate network, star topology offers advantages such as easy modification and expansion of the network, which can be done without disrupting existing connections . It simplifies problem diagnosis, as issues can be isolated to the individual connections to the central hub, allowing the rest of the network to function normally if one node or cable fails . However, it has disadvantages, including dependency on the central hub; if the hub fails, the entire network is disabled. Additionally, it requires more cable compared to bus topology, increasing setup costs and complexity .
Tree topology might be preferable in scenarios where an organization needs to create a hierarchical structure of multiple star networks connected to a central backbone. This can enhance scalability, as many devices can be connected via secondary hubs, extending the network's reach beyond the limitations of a single star topology . Additionally, it allows segregation of departments within a network, enabling specific prioritization and isolation of traffic, advantageous in environments like large corporations or university campuses needing specialized network management and control . The topology also supports cable TV distribution systems, where centralized management and signal amplification are necessary .
Troubleshooting a bus topology network can be difficult due to its linear setup where each device is connected to a single backbone cable. A failure in the main cable can lead to network downtime for all devices, and identifying the specific failure point is challenging because the issue could be anywhere along the length of the cable . Furthermore, with terminators required at both ends to prevent signal reflections, the additional components increase potential points of failure . Additionally, under heavy traffic, the network performance degrades significantly as only one device can transmit at a time, complicating network diagnostics .