Computer Networks Unit-1
Computer Networks Unit-1
Message: It is the data or information which needs to be transferred from one device to another
device over a computer network.
Sender: Sender is the device that has the data and needs to send the data to other device connected to
the network.
Receiver: A receiver is the device which is expecting the data from other device on the network.
Transmission media: In order to transfer data from one device to another device we need a
transmission media such as wires, cables, radio waves etc.
Protocol: A protocol is a set of rules that are agreed by both sender and receiver, without a protocol
two devices can be connected to each other but they cannot communicate. In order to establish a
reliable communication or data sharing between two different devices we need set of rules that are
called protocol. For example, http and https are the two protocols used by web browsers to get and
post the data to internet; similarly SMTP protocol is used by email services connected to the internet.
How Does a Computer Network Work?
Basics building blocks of a Computer network are Nodes and Links. A Network Node can be
illustrated as Equipment for Data Communication like a Modem, Router, etc., or Equipment of a
Data Terminal like connecting two computers or more. Link in Computer Networks can be defined
as wires or cables or free space of wireless networks.
The working of Computer Networks can be simply defined as rules or protocols which help in
sending and receiving data via the links which allow Computer networks to communicate. Each
device has an IP Address that helps in identifying a device.
1. Wired NIC
2. Wireless NIC
Wired NIC: The Wired NIC is present inside the motherboard. Cables and connectors are used with
wired NIC to transfer data.
Wireless NIC: The wireless NIC contains the antenna to obtain the connection over the wireless
network. For example, laptop computer contains the wireless NIC.
Hub:
A Hub is a hardware device that divides the network connection among multiple devices.
devices When
computer requests for some information from a network, it first sends the request to the Hub through
cable. Hub will broadcast this request to the entire network. All the devices will check whether the
request belongs to them or not. If not, the req
request will be dropped.
The process used by the Hub consumes more bandwidth and limits the amount of communication.
Nowadays, the use of hub is obsolete, and it is replaced by more advanced computer network
components such as Switches, Routers.
Switch:
A switch
tch is a hardware device that connects multiple devices on a computer network. A Switch
contains more advanced features than Hub. The Switch contains the updated table that decides where
the data is transmitted or not. Switch delivers the message to the co
correct
rrect destination based on the
physical address present in the incoming message.
A Switch does not broadcast the message to the entire network like the Hub. It determines the device
to whom the message is to be transmitted. Therefore, we can say that swi
switch
tch provides a direct
connection between the source and destination. It increases the speed of the network.
Router:
o A router is a hardware device which is used to connect a LAN with an internet connection. It
is used to receive, analyze and forward the incoming packets to another network.
o A router works in a Layer 3 (Network layer) of the OSI Reference model.
o A router forwards the packet based on the information available in the routing table.
o It determines the best path from the available paths for the transmission of the packet.
Advantages of Router:
o Security: The information which is transmitted to the network will traverse the entire cable,
but the only specified device which has been addressed can read the data.
o Reliability: If the server has stopped functioning, the network goes down, but no other
networks are affected that are served by the router.
o Performance: Router enhances the overall performance of the network. Suppose there are 24
workstations in a network generates a same amount of traffic. This increases the traffic load
on the network. Router splits the single network into two networks of 12 workstations each,
reduces the traffic load by half.
o Network range
Modem:
o A modem is a hardware device that allows the computer to connect to the internet over the
existing telephone line.
o A modem is not integrated with the motherboard rather than it is installed on the PCI slot
found on the motherboard.
o It stands for Modulator/Demodulator. It converts the digital data into an analog signal over the
telephone lines.
Based on the differences in speed and transmission rate, a modem can be classified in the following
categories:
o Standard PC modem or Dial-up modem
o Cellular Modem
o Cable modem
Cables and Connectors:
Cable is a transmission media used for transmitting a signal.
There are three types of cables used in transmission:
o Twisted pair cable
o Coaxial cable
o Fiber-optic cable
Topology:
What is Network Topology?
Topology defines the structure of the network of how all the components are interconnected to each
other. There are two types of topology: physical and logical topology.
Types of Network Topology:
Physical topology is the geometric representation of all the nodes in a network. There are six types of
network topology which are Bus Topology, Ring Topology, Tree Topology,
y, Star Topology, Mesh
Topology and Hybrid Topology.
1) Bus Topology:
o The bus topology is designed in such a way that all the stations are connected through a single
cable known as a backbone cable.
o Each node is either connected to the backbone cable by drop cable or directly connected to the
backbone cable.
o When a node wants to send a message over the network, it puts a message over the network.
All the stations available in the network will receive the message whether it has been
bee
addressed or not.
o The bus topology is mainly used in 802.3 ((Ethernet)) and 802.4 standard networks.
o The configuration of a bus topology is quite simpler as compared to other topologies.
o The backbone cable is considered as a "single lane" through which the message is broadcast to
all the stations.
o The most common access method of the bus topologies is CSMA (Carrier Sense Multiple
Access).
CSMA: It is a media access control used to control the data flow so that data integrity is maintained,
i.e., the packets do not get lost. There are two alternative ways of handling the problems that occur
when two nodes send the messages simultaneously.
o CSMA CD: CSMA CD (Collision detection) is an access method used to detect the collision.
Once the collision is detected, the sender will stop transmitting the data. Therefore, it works
on "recovery after the collision".
o CSMA CA: CSMA CA (Collision Avoidance) is an access method used to avoid the collision
by checking whether the transmission media is busy or not. If busy, then the sender waits until
the media becomes idle. This technique effectively reduces the possibility of the collision. It
does not work on "recovery after the collision".
Advantages of Bus topology:
o Low-cost cable: In bus topology, nodes are directly connected to the cable without passing
through a hub. Therefore, the initial cost of installation is low.
o Moderate data speeds: Coaxial or twisted pair cables are mainly used in bus-based networks
that support upto 10 Mbps.
o Familiar technology: Bus topology is a familiar technology as the installation and
troubleshooting techniques are well known and hardware components are easily available.
o Limited failure: A failure in one node will not have any effect on other nodes.
Disadvantages of Bus topology:
o Extensive cabling: A bus topology is quite simpler, but still it requires a lot of cabling.
o Difficult troubleshooting: It requires specialized test equipment to determine the cable faults.
If any fault occurs in the cable, then it would disrupt the communication for all the nodes.
o Signal interference: If two nodes send the messages simultaneously, then the signals of both
the nodes collide with each other.
o Reconfiguration difficult: Adding new devices to the network would slow down the
network.
o Attenuation: Attenuation is a loss of signal leads to communication issues. Repeaters are
used to regenerate the signal.
2) Ring Topology:
o Tree topology combines the characteristics of bus topology and star topology.
o A tree topology is a type of structure in which all the computers are connected with each other
in hierarchical fashion.
o The top-most
most node in tree topology is known as a root node, and all other nodes are the
descendants of the root node.
o There is only one path exists between two nodes for the data transmission. Thus, it forms a
parent-child hierarchy.
Advantages of Tree topology:
o Support for broadband transmission: Tree topology is mainly used to provide broadband
transmission, i.e., signals are sent over long distances without being attenuated.
o Easily expandable: We can add the new device to the existing network. Therefore, we can
say that tree topology is easily expandable.
o Easily manageable: In tree topology, the whole network is divided into segments known as
star networks which can be easily managed and maintained.
o Error detection: Error detection and error cor
correction
rection are very easy in a tree topology.
o Limited failure: The breakdown in one station does not affect the entire network.
o Point-to-point wiring: It has point
point-to-point
point wiring for individual segments.
Disadvantages of Tree topology
topology:
o Difficult troubleshooting:
ng: If any fault occurs in the node, then it becomes difficult to
troubleshoot the problem.
o High cost: Devices required for broadband transmission are very costly.
o Failure: A tree topology mainly relies on main bus cable and failure in main bus cable will
damage the overall network.
o Reconfiguration difficult: If new devices are added, then it becomes difficult to reconfigure.
5) Mesh topology:
o Full Mesh Topology: In a full mesh topology, each computer is connected to all the
computers available in the network.
o Partial Mesh Topology: In a partial mesh topology, not all but certain computers are
connected to those computers with which they communicate frequently.
Advantages of Mesh topology:
Reliable: Thee mesh topology networks are very reliable as if any link breakdown will not affect the
communication between connected computers.
Fast Communication: Communication is very fast between the nodes.
Easier Reconfiguration: Adding new devices would not disrup
disruptt the communication between other
devices.
Disadvantages of Mesh topology
topology:
o Cost: A mesh topology contains a large number of connected devices such as a router and
more transmission media than other topologies.
o Management: Mesh topology networks are very la
large
rge and very difficult to maintain and
manage. If the network is not monitored carefully, then the communication link failure goes
undetected.
o Efficiency: In this topology, redundant connections are high that reduces the efficiency of the
network.
6) Hybrid Topology:
o The combination of various different topologies is known as Hybrid topology.
o A Hybrid topology is a connection between different links and nodes to transfer the data.
o When two or more different topologies are combined together is termed as Hybrid topology
and if similar topologies are connected with each other will not result in Hybrid topology. For
example, if there exist a ring topology in one branch of ICICI bank and bus topology in
another branch of ICICI bank, connecting these two topologies will result in Hybrid topology.
Advantages of Hybrid Topology:
o Reliable: If a fault occurs in any part of the network will not affect the functioning of the rest
of the network.
o Scalable: Size of the network can be easily expanded by adding new devices without
affecting the functionality of the existing network.
o Flexible: This topology is very flexible as it can be designed according to the requirements of
the organization.
o Effective: Hybrid topology is very effective as it can be designed in such a way that the
strength of the network is maximized and weakness of the network is minimized.
Disadvantages of Hybrid topology:
o Complex design: The major drawback of the Hybrid topology is the design of the Hybrid
network. It is very difficult to design the architecture of the Hybrid network.
o Costly Hub: The Hubs used in the Hybrid topology are very expensive as these hubs are
different from usual Hubs used in other topologies.
o Costly infrastructure: The infrastructure cost is very high as a hybrid network requires a lot
of cabling, network devices, etc.
Features of LAN:
o The network size is small, which consists of only a few kilometres.
o The data transmission rate is high, ranging from 100 Mbps to 1000 Mbps.
o LAN is included in bus, ring, mesh and star topologies.
o Some network devices connected to the LAN will be limited.
o If more devices are added than prescribed network may fail.
Benefits of LAN:
o It offers a higher operating speed than WAN and MAN.
o It is less expensive and easy to install and maintain.
o It perfectly fulfills the requirement of a specific organization, such as an office, school, etc.
o It can be wired or wireless or a combination of both.
o It is more secure than other networks as it is a small set up that can be easily taken care of.
MAN is a high-speed
speed network that spreads over a large geographical area such as a metro city or
town. It is set up by connecting the local area networks using routers and local telephone exchange
lines. It can bee operated by a private company or it may be a service provided by a company such as a
local telephone company.
Examples of MAN:
o Cable TV Network
o Telephone service provides that provide high
high-speed DSL lines
o IEEE 802.16 or WiMAX
o Connected fire stations in a city
o Connected branches of a school in a city
Features of MAN:
o The size of the MAN is in the range of 5km to 50km.
o The MAN ranges from the campus to the entire city.
o The MAN is maintained and managed by either the user group or the Network provider.
o Users can achieve the sharing of regional resources by using MAN.
o The data transmission rates can be medium to high
Advantages of MAN:
o Less Expensive: It is less expensive to set up a MAN and to connect it to a WAN.
o High Speed: The speed of data transfer is more than WAN.
o Local Emails: It can send local emails fast.
o Access to the Internet: It allows you to share your internet connection, and thus multiple
users can have access to high
high-speed internet.
o Easy to set up: You can easily set up a MAN by connecting multiple LANs.
o High Security: It is more secure than WAN.
WAN extends over a large geographical area. It is not confined within an office, school, city or town
and is mainly set up by telephone lines, fiber optic, or satellite links. It is mostly used by big
organizations like banks and multinational companies to communicate with their branches and
customers across the world. Although it is structurally similar to MAN, it is different from MAN in
terms of its range, e.g., MAN covers up to 50 Kms, whereas WAM covers distances larger than 50
Km, e.g., 1000km or more.
A WAN works by using TCP/IP protocol in combination with networking devices such as switches,
switche
routers, firewalls, and modems. It does not connect individual computers; rather, they are designed to
link small networks like LANs and MANs to create a large network. The internet is considered the
largest WAN in the world as it connects various LANs and MANs through ISPs.
The computers are connected to the wide area network through public networks, such as telephone
systems, leased lines or satellites. The users of a WAN do not own the network as it is a large setup
connecting the remote computer systems. However, they are required to subscribe to a service
provided by a telecommunication provider to use this network.
Features of WAN:
o Has a much larger capacity.
o We can share the regional resources by using WAN.
o They have more bit-rate errors.
o The transmission delay is, and hence they need more communication speed.
Advantages of a WAN:
o Large Network Range: It spans a large geographical area of 2000 km or more, e.g., from one
country to another countries.
o Centralized data: It allows your different office branches to use your head office server for
retrieving and sharing data. Thus, you don’t need to buy email servers, files server and back
up servers, etc.
o Get updated files and data: It provides an ideal platform for companies who need a live
server for their employees to exchange updated files within seconds.
o High bandwidth: It offers high bandwidth than a normal broadband connection. Thus, it can
increase the productivity of your company by offering uninterrupted data transfer and
communication.
o Workload Distribution: It helps distribute your workload to other locations. You can hire
employees in different countries and assign them to work from your office.
Examples of WAN:
1. Internet
2. US defense department
3. Stock exchanges network
4. Railway reservation system
5. Big Banks' cash dispensers' network
6. Satellite systems
NETWORK STRUCTURE:
Network structure refers to a general system, network, or pattern of relationships that can be derived
from the observable behavior of animate and inanimate actors or objects in a given population.
Structure is usually understood as the arrangement of parts or elements of some complexity tied
together by relations. The study of these relations is the subject of network theory.
A network consists of nodes and links that form dyads, triads, groups or a system of interconnected
animate (actors) and inanimate objects, based on the specific types of relationships between them. In
a dyad, ties come together, through the type of relation, to create a system of interdependence. Triads
are fundamental network structures.
Network Structure Measures Network structure can be studied and measured with social and dynamic
network analysis, which allows the study of network topology, network behavior, and evolution, as
well as an understanding of why networks are structured the way they are. This analysis reveals the
privileges of some nodes and the advantages of some types of networks over others. The basic
measures at the whole network level are density and centralization.
Density measures the actual number of links between nodes in relation to all links that exist. This
allows the assessment of the degree of networking of the studied system or population.
Centralization refers to the overall integration or coherence of the network. It determines the relative
dominance of a single node over others in the network and then the entire network is characterized by
a centralized structure in which there are many links around one node. Conversely, a network
structure takes a decentralized form. Both the dense and centralized network structures have
inevitable positive and negative consequences.
Network structures and positions in the network; create both opportunities and limitations depending
on the functional value of the relationships studied. The network’s overall efficiency can be assessed
through the prism of possible fragmentation and the redundancy of nodes or relations.
1. Peer-To-Peer network
2. Client/Server network
Peer-To-Peer network:
o Peer-To-Peer
Peer network is a network in which all the computers are linked together with equal
privilege and responsibilities for processing the data.
o Peer-To-Peer network is useful for small environments, usually up to 10 computers.
o Peer-To-Peer
Peer network has no dedicated server.
o Special permissions are assigned to each computer for sharing the resources, but this can lead
to a problem if the computer with the resource is down.
Advantages of Peer-To-Peer
Peer Network:
o It is less costly as it does not contain any dedicated server.
o If one computer stops working but, other computers will not stop working.
o It is easy to set up and maintain as each computer manages itself.
Disadvantages of Peer-To-Peer
Peer Network:
o In the case of Peer-To-Peer
Peer network, it does not contain the centralized system.
system Therefore, it
cannot back up the data as the data is different in different locations.
o It has a security issue as the device is managed itself.
Client/Server Network:
o Client/Server network is a network model designed for the end users called clients, to access
the resources such as songs, video, etc. from a central computer known as Server.
o The central controller is known as a server while all other computers in the network are
called clients.
o A server performs all the major operations such as security and network management.
o A server is responsible for managing all the resources such as files, directories, printer, etc.
o All the clients communicate wi
with
th each other through a server. For example, if client1 wants to
send some data to client 2, then it first sends the request to the server for the permission. The
server sends the response to the client 1 to initiate its communication with the client 2.
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 cl
closest
osest 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
la 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.
7 Layers of OSI Model:
There are the seven OSI layers. Each layer has different functions. Lists 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
1) Physical layer:
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,
chanical, electrical and procedural network interface specifications.
Functions of a Physical layer:
Line Configuration: It defines the way how two or more devices can be connected
physically.
Data Transmission: It defines the transmission mode whether it is simplex, half-duplex
half or
full-duplex
duplex mode between the two devices on the network.
Topology: It defines the way how network devices are arranged.
Signals: It determines the type of the signal used for transmitting the information.
2) Data-Link Layer:
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.
Flow Control: Flow control is the main functionality of the Data
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 processin
processingg speed.
Error Control: 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.
Access Control: When two or more devices are connected to the same communication
channel, then the data link layer protocols are used to determine which device
devic has control over
the link at a given time.
3) Network Layer:
It is a layer 3 that 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,
ions, the priority of service and other factors.
The Data link 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 internetw
internetwork.
The protocols used to route the network traffic are known as Network layer protocols.
Examples of protocols are IP 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.
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.
Routing: Routing is the major component of the network layer, and it determines the best
optimal path out of the multiple paths from source to the destination.
Packetizing: A Network
rk Layer receives the packets from the upper layer and converts them
into packets. This process is known as Packetizing. It is achieved by internet protocol (IP).
4) Transport Layer:
The Transport layer is a Layer 4 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
end-to-end
end layer as it provides a point-to-point
point connection
between source and destination to deliver the data reliably.
The two protocols used in this layer are:
o Transmission Control Protocol:
o It is a standard protocol that allows the systems to communicate over the internet.
o It establishes and maintains a connection between hosts.
o When data is sent over the TCP connection, then the TCP protocol divides the data
into smaller units known as segments. Each segment travels over the internet using
multiple routes and they arrive in different orders at the destination. The transmission
control protocol reorders the packets in the correct order at the receiving end.
o User Datagram Protocol:
o User Datagram Protocol is a transport layer protocol.
o It is an unreliable transport protocol as in this case receiver does not send any
acknowledgment when the packet is received, the sender does not wait for any
acknowledgment. Therefore, this makes a protocol unreliable.
Functions of Transport Layer:
Service-point addressing: Computers run several programs simultaneously due to this
reason, the transmission of data from source to the destination not only from one computer to
another computer but also from one process to another process. The transport layer adds the
header that contains the address known as a service-point address or port address. The
responsibility of the network layer is to transmit the data from one computer to another
computer and the responsibility of the transport layer is to transmit the message to the correct
process.
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.
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.
Error control: The transport
ansport layer is also responsible for Error control. Error control is
performed end-to-end
end rather than across the single link. The sender transport layer ensures
that message reach at the destination without any error.
5) Session Layer:
A Presentation layer is mainly concerned with the syntax and semantics of the information
exchanged between the two systems.
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.
Functions of Presentation layer:
Translation: The processes in two systems exchange the information in the form of character
strings, numbers and so on. Different computers use different encoding methods, the
presentation layer handles the in
interoperability
teroperability between the different encoding methods. It
converts the data from sender
sender-dependent
dependent format into a common format and changes the
common format into receiver
receiver-dependent format at the receiving end.
Encryption: Encryption is needed to maintain pr
privacy.
ivacy. Encryption is a process of converting
the sender-transmitted
transmitted information into another form and sends the resulting message over the
network.
Compression: Data compression is a process of compressing the data, i.e., it reduces the
number of bits to bee transmitted. Data compression is very important in multimedia such as
text, audio, video.
7) Application Layer:
An application layer serves as a window for users and application processes to access network
service.
It handles issues such as network tra
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
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 for
forwarding
warding and storage.
Directory services: An application provides the distributed database sources and is used to
provide that global information about various objects.
TCP/IP Model:
1. The TCP/IP model was developed prior to the OSI model.
2. The TCP/IP model is not exactly similar to the OSI model.
3. The TCP/IP model consists of five layers: the application layer, transport layer, network layer,
data link layer and physical layer.
4. The first four layers provide physical standards, network interface, internetworking,
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.
5. TCP/IP is a hierarchical protocol made up of interactive modules, and each of them provides
specific functionality.
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.
IP Protocol: IP protocol is used in this layer and it is the most significant part of the entire TCP/IP
suite.
IP Addressing: This protocol implements logical host addresses known as IP addresses. The
IP addresses are used by the internet and higher layers to identify the device and to provide
internetwork routing.
Host-to-host communication: It determines the path through which the data is to be
transmitted.
Data Encapsulation and Formatting: An IP protocol accepts the data from the transport
layer protocol. An IP protocol ensures that the data is sent and received securely; it
encapsulates the data into message known as IP datagram.
Fragmentation and Reassembly: The limit imposed on the size of the IP datagram by data
link layer protocol is known as Maximum Transmission unit (MTU). If the size of IP
datagram is greater than the MTU unit, then the IP protocol splits the datagram into smaller
units so that they can travel over the local network. Fragmentation can be done by the sender
or intermediate router. At the receiver side, all the fragments are reassembled to form an
original message.
Routing: When IP datagram is sent over the same local network such as LAN, MAN, WAN,
it is known as direct delivery. When source and destination are on the distant network, then
the IP datagram is sent indirectly. This can be accomplished by routing the IP datagram
through various devices such as routers.
ARP Protocol:
ICMP Protocol:
ICMP Test: ICMP Test is used to test whether the destination is reachable or not.
ICMP Reply: ICMP Reply is used to check whether the destination device is
responding or not.
The core responsibility of the ICMP protocol is to report the problems, not correct them. The
responsibility of the correction lies with the sender.
ICMP can send the messages only to the source, but not to the intermediate routers because
the IP datagram carries the addresses of the source and destination but not of the router that it
is passed to.
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.
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.
Attenuation: Attenuation means the loss of energy, i.e., the strength of the signal decreases
with increasing the distance which causes the loss of energy.
Distortion: Distortion occurs when there is a change in the shape of the signal. This type of
distortion is examined from different signals having different frequencies. Each frequency
component has its own propagation speed, so they reach at a different time which leads to the
delay distortion.
Noise: When data is travelled over a transmission medium, some unwanted signal is added to
it which creates the noise.
Classification of Transmission Media:
1. Guided Transmission
mission Media
2. Unguided Transmission Media
Guided Media:
It is defined as the physical medium through which the signals are transmitted. It is also known as
Bounded media.
Types of Guided media:
Twisted pair:
Twisted pair is a physical media made up of a pair of cables twisted with each other. A twisted pair
cable is cheap as compared to other transmission media. Installation of the twisted pair cable is easy,
and it is a lightweight cable. The frequency range for twisted pair cable is from 0 to 3.5KHz.
A twisted pair consists of two insulated copper wires arranged in a regular spiral pattern.
The degree of reduction in noise interference is determined by the number of turns per foot.
Increasing
sing the number of turns per foot decreases noise interference.
o The 'n' input lines are transmitted through a multiplexer and multiplexer combines the signals
to form a composite signal.
o The composite signal is passed through a Demultiplexer and demultiplexer separates a signal
to component signals and transfers them to their respective destinations.
Advantages of Multiplexing:
o More than one signal can
an be sent over a single medium.
o The bandwidth of a medium can be utilized effectively.
Multiplexing Techniques:
Multiplexing techniques can be classified as:
Frequency-division
division Multiplexing (FDM)
(FDM):
It is an analog technique.
Frequency Division Multiplexing is a technique in which the available bandwidth of a single
transmission medium is subdivided into several channels.
In the above diagram, a single transmission medium is subdivided into several frequency
channels, and each frequency channel is given to different devices. Device 1 has a frequency
channel of range from 1 to 5.
The input signals are translated into frequency bands by using modulation techniques and they
are combined by a multiplexer to form a composite signal.
The main aim of the
he FDM is to subdivide the available bandwidth into different frequency
channels and allocate them to different devices.
Using the modulation technique, the input signals are transmitted into frequency bands and
then combined to form a composite signal.
Thee carriers which are used for modulating the signals are known as sub-carriers.
sub They are
represented as f1, f2… fn
fn.
FDM is mainly used in radio broadcasts and TV networks.
Advantages of FDM:
FDM is used for analog signals.
FDM process is very simple and easy modulation.
A Large number of signals can be sent through an FDM simultaneously.
It does not require any synchronization between sender and receiver.
Disadvantages of FDM:
FDM technique is used only when low
low-speed channels are required.
It suffers the problem of crosstalk.
A Large number of modulators are required.
It requires a high bandwidth channel.
Applications of FDM:
o FDM is commonly used in TV networks.
o It is used in FM and AM broadcasting. Each FM radio station has different frequencies, and
theyy are multiplexed to form a composite signal. The multiplexed signal is transmitted in the
air.
Wavelength Division Multiplexing (WDM)
(WDM):
Wavelength Division Multiplexing is same as FDM except that the optical signals are
transmitted through the fibre opti
optic cable.
WDM is used on fibre optics to increase the capacity of a single fibre.
It is used to utilize the high data rate capability of fibre optic cable.
It is an analog multiplexing technique.
Optical signals from different source are combined to form a wider band of light with the help
of multiplexer.
At the receiving end, demultiplexer separates the signals to transmit them to their respective
destinations.
Multiplexing and Demultiplexing can be achieved by using a prism.
Prism can perform a role of mu
multiplexer
ltiplexer by combining the various optical signals to form a
composite signal, and the composite signal is transmitted through a fibre optical cable.
Prism also performs a reverse operation, i.e., demultiplexing the signal.
The difference between Asynchronous TDM and Synchronous TDM is that many slots
sl in
Synchronous TDM are unutilized, but in Asynchronous TDM, slots are fully utilized. This
leads to the smaller transmission time and efficient utilization of the capacity of the channel.
In Synchronous TDM, if there are n sending devices, then there are
a n time slots. In
Asynchronous TDM, if there are n sending devices, then there are m time slots where m is
less than n (m<n).
The number of slots in a frame depends on the statistical analysis of the number of input lines.
Concept of Asynchronous TDM
TDM:
In the above diagram, there are 4 devices, but only two devices are sending the data, i.e., A and C.
Therefore, the data of A and C are only transmitted through the transmission line.
Frame of above diagram can be represented as: