Computer Network Unit 1
Computer Network Unit 1
NETWORK
UNIT-1
UNIT 1
INTRODUCTION
Performance
It can be measured in the following ways:
Transit time : It is the time taken to travel a message from one device to another.
Response time : It is defined as the time elapsed between enquiry and response.
Reliability
It decides the frequency at which network failure take place. More the failures are, less is the
network's reliability.
Security
It refers to the protection of data from any unauthorised user or access. While travelling
through network, data passes many layers of network, and data can be traced if attempted.
Hence security is also a very important characteristic for Networks.
Source
Data to be transmitted is generated by this device, example: telephones, personal computers
etc.
Transmitter
The data generated by the source system is not directly transmitted in the form its generated.
The transmitter transforms and encodes the data in such a form to produce electromagnetic
waves or signals.
Transmission System
A transmission system can be a single transmission line or a complex network connecting
source and destination.
Receiver
Receiver accepts the signal from the transmission system and converts it into a form which is
easily managed by the destination device.
Destination
Destination receives the incoming data from the receiver.
Data Communication
The exchange of data between two devices through a transmission medium is called
Data Communication.
The data is exchanged in the form of 0's and 1's. The transmission medium used is wire
cable.
For data communication to occur, the communication device must be a part of a
communication system.
Data Communication has two types - Local and Remote which are discussed below:
Local
Local communication takes place when the communicating devices are in the same
geographical area, same building, or face-to-face etc.
Remote
Remote communication takes place over a distance i.e. the devices are farther. The
effectiveness of a data communication can be measured through the following features :
Delivery: Delivery should be done to the correct destination.
Timeliness: Delivery should be on time.
Accuracy: Data delivered should be accurate.
Components of Data Communication
1. Message: It is the information to be delivered.
2. Sender: Sender is the person who is sending the message.
3. Receiver: Receiver is the person to whom the message is being sent to.
4. Medium: It is the medium through which the message is sent. For example: A Modem.
5. Protocol: These are some set of rules which govern data communication.
Data Flow
Transmission Modes in Computer Networks (Simplex, Half-Duplex and Full-Duplex)
Transmission mode means transferring of data between two devices. It is also known as
communication mode.
Buses and networks are designed to allow communication to occur between individual
devices that are interconnected.
There are three types of transmission mode:-
1. Simplex Mode
2. Half-Duplex Mode
3. Full-Duplex Mode
Simplex Mode
In Simplex mode, the communication is unidirectional, as on a one-way street. Only one
of the two devices on a link can transmit, the other can only receive.
The simplex mode can use the entire capacity of the channel to send data in one
direction.
Example: Keyboard and traditional monitors. The keyboard can only introduce input,
the monitor can only give the output.
Half-Duplex Mode
In half-duplex mode, each station can both transmit and receive, but not at the same
time. When one device is sending, the other can only receive, and vice versa.
The half-duplex mode is used in cases where there is no need for communication in both
direction at the same time.
The entire capacity of the channel can be utilized for each direction.
Example: Walkie- talkie in which message is sent one at a time and messages are sent
in both the directions.
Full-Duplex Mode
In full-duplex mode, both stations can transmit and receive simultaneously.
In full_duplex mode, signals going in one direction share the capacity of the link with
signals going in other direction, this sharing can occur in two ways:
1. Either the link must contain two physically separate transmission paths, one for
sending and other for receiving.
2. Or the capacity is divided between signals travelling in both directions.
Full-duplex mode is used when communication in both direction is required all the time.
The capacity of the channel, however must be divided between the two directions.
Example: Telephone Network in which there is communication between two persons
by a telephone line, through which both can talk and listen at the same time.
LAN stands for Local Area MAN stands for Metropolitan Area WAN stands for Wide area
Network. Network. network.
The transmission speed of LAN is While the transmission speed of Whereas the transmission speed of
high. MAN is average. WAN is low.
The propagation delay is short in There is moderate propagation Whereas there is long propagation
LAN. delay in MAN. delay.
Examples of wired network: LAN (Local Area Network): This network consists of ethernet
cards housed in PCs or laptops. These cards are connected using ethernet cables. The data
flows between these cards. For small wired network router is used to connect few number of
desktop or laptop computers. In order to increase the network coverage for more number of
systems multiple switches and routers are used.
Wireless Network
As we know "Wireless" is the term refers to medium made of electromagnetic waves (i.e. EM
Waves) or infrared waves. All the wireless devices will have antenna or sensors. Typical
wireless devices include cellular mobile, wireless sensors, TV remote, satellite disc receiver,
laptops with WLAN card etc. Wireless network does not use wires for data or voice
communication; it uses radio frequency waves as mentioned above. The other examples are
fiber optic communication link and broadband ADSL etc.
Figure 1: Every device is connected with another via dedicated channels. These channels are
known as links.
Advantages of this topology :
It is robust.
Fault is diagnosed easily. Data is reliable because data is transferred among the devices
through dedicated channels or links.
Provides security and privacy.
b) Star Topology:
In star topology, all the devices are connected to a single hub through a cable. This hub is the
central node and all others nodes are connected to the central node. The hub can be passive in
nature i.e. not intelligent hub such as broadcasting devices, at the same time the hub can be
intelligent known as active hubs. Active hubs have repeaters in them.
Figure 2: A star topology having four systems connected to single point of connection i.e. hub.
c) Bus Topology:
Bus topology is a network type in which every computer and network device is connected to
single cable. It transmits the data from one end to another in single direction. No bi-directional
feature is in bus topology.
Figure 3: A bus topology with shared backbone cable. The nodes are connected to the channel
via drop lines.
d) Ring Topology:
In this topology, it forms a ring connecting a devices with its exactly two neighbouring devices.
To transmit the data, station has to hold the token. After the transmission is done, the token is to
be released for other stations to use.
2. When no station is transmitting the data, then the token will circulate in the ring.
3. There are two types of token release techniques : Early token release releases the token
just after the transmitting the data and Delay token release releases the token after the
acknowledgement is received from the receiver.
Figure 4: A ring topology comprises of 4 stations connected with each forming a ring..
Advantages of this topology :
The possibility of collision is minimum in this type of topology.
Cheap to install and expand.
e) Hybrid Topology:
This topology is a collection of two or more topologies which are described above. This is a
scalable topology which can be expanded easily. It is reliable one but at the same it is a costly
topology.
Figure 5: A hybrid topology which is a combination of ring and star topology.
Network Protocols
Network Protocols are a set of rules governing exchange of information in an easy, reliable
and secure way.
There are various types of protocols that support a major and compassionate role in
communicating with different devices across the network. These are:
1. Transmission Control Protocol (TCP)
2. Internet Protocol (IP)
3. User Datagram Protocol (UDP)
4. Post office Protocol (POP)
5. Simple mail transport Protocol (SMTP)
6. File Transfer Protocol (FTP)
7. Hyper Text Transfer Protocol (HTTP)
8. Hyper Text Transfer Protocol Secure (HTTPS)
9. Telnet
10.Gopher
transferring of data is done in an encrypted format. So it can be said that https thwart
hackers from interpretation or modification of data throughout the transfer of packets.
Telnet: Telnet is a set of rules designed for connecting one system with another. The
connecting process here is termed as remote login. The system which requests for
connection is the local computer, and the system which accepts the connection is the
remote computer.
Gopher: Gopher is a collection of rules implemented for searching, retrieving as well
as displaying documents from isolated sites. Gopher also works on the client/server
principle.
Network Interface
In computing, a network interface is a software or hardware interface between two
pieces of equipment or protocol layers in a computer network.
A network interface will usually have some form of network address. This may consist
of a node identifier and a port number or may be a unique node ID in its own right.
Network interfaces provide standardized functions such as passing messages,
connecting and disconnecting, etc.
Examples
Computer port (hardware), an interface to other computers or peripherals
Network interface controller, the device a computer uses to connect to a computer
network
Network interface device, a demarcation point for a telephone network
Network socket, a software interface to the network
Port (computer networking), a protocol interface to the network
Network Services
In computer networking, a network service is an application running at the network
application layer and above, that provides data storage, manipulation, presentation,
communication or other capability which is often implemented using a client-server or
peer-to-peer architecture based on application layer network protocols.
Each service is usually provided by a server component running on one or more
computers (often a dedicated server computer offering multiple services) and accessed
via a network by client components running on other devices. However, the client and
server components can both be run on the same machine.
Clients and servers will often have a user interface, and sometimes other hardware
associated with it.
Examples are the Domain Name System (DNS) which translates domain names to
Internet protocol (IP) addresses and the Dynamic Host Configuration Protocol (DHCP)
to assign networking configuration information to network hosts.
ISO-OSI reference model
There are n numbers of users who use computer network and are located over the world. So to
ensure, national and worldwide data communication, systems must be developed which are
compatible to communicate with each other ISO has developed a standard. ISO stands for
1. Application Layer
2. Presentation Layer
3. Session Layer
4. Transport Layer
5. Network Layer
6. Datalink Layer
7. Physical Layer
Below we have the complete representation of the OSI model, showcasing all the layers and
how they communicate with each other.
Feature of OSI Model
Big picture of communication over network is understandable through this OSI model.
We see how hardware and software work together.
We can understand new technologies as they are developed.
Transport Layer
Transport Layer decides if data transmission should be on parallel path or single path.
Functions such as Multiplexing, Segmenting or Splitting on the data are done by this
layer
It receives messages from the Session layer above it, convert the message into smaller
units and passes it on to the Network layer.
Transport layer can be very complex, depending upon the network requirements.
Transport layer breaks the message (data) into small units so that they are handled more
efficiently by the network layer.
Application Layer
Application Layer is the topmost layer.
Transferring of files disturbing the results to the user is also done in this layer. Mail
services, directory services, network resource etc are services provided by application
layer.
This layer mainly holds application programs to act upon the received and to be sent
data.
TCP/IP architecture
TCP/IP means Transmission Control Protocol and Internet Protocol. It is the network model
used in the current Internet architecture as well. Protocols are set of rules which govern every
possible communication over a network. These protocols describe the movement of data
between the source and destination or the internet. They also offer simple naming and
addressing schemes.
The features that stood out during the research, which led to making the TCP/IP reference
model were:
Support for a flexible architecture. Adding more machines to a network was easy.
The network was robust, and connections remained intact untill the source and
destination machines were functioning.
The overall idea was to allow one application on one computer to talk to(send data packets)
another application running on different computer.
Below we have discussed the 4 layers that form the TCP/IP reference model:
Layer 1: Host-to-network Layer
1. Lowest layer of the all.
2. Protocol is used to connect to the host, so that the packets can be sent over it.
3. Varies from host to host and network to network.
Demerits of TCP/IP
In this, the transport layer does not guarantee delivery of packets.
The model cannot be used in any other application.
Replacing protocol is not easy.
It has not clearly separated its services, interfaces and protocols.
PHYSICAL LAYER
Analog Signal and Digital Signal
Analog signal –
It is a kind of continuous wave form that changes over time.
An anlaog signal is further classified into simple and composite signals.
A simple analog signal is a sine wave that cannot be decomposed further. On the other
hand, a composite analog signal can be further decomposed into multiple sine waves.
An analog signal is described using amplitude, period or frequency and phase.
Amplitude marks the maximum height of the signal. Frequency marks the rate at which
signal is changing. Phase marks the position of the wave with respect to time zero.
An analog signal is not immune to noise hence, it faces distortion and decrease the
quality of transmission. The range of value in an analog signal is not fixed.
Digital Signal -
Digital signals also carry information like analog signals but is somewhat is different
from analog signals.
A digital signal is more immune to the noise; hence, it hardly faces any distortion.
Digital signals are easier to transmit and are more reliable when compared to analog
signals. Digital signal has a finite range of values. The digital signal consists 0s and 1s.
Basis for
Analog Signal Digital Signal
Comparison
An analog signal is a continuous wave that A digital signal is a discrete wave that
Basic
changes over a time period. carries information in binary form.
An analog signal is represented by a sine A digital signal is represented by square
Representation
wave. waves.
An analog signal is described by the A digital signal is described by bit rate
Description
amplitude, period or frequency, and phase. and bit intervals.
Digital signal has a finite numbers i.e. 0
Range Analog signal has no fixed range.
and 1.
Distortion An analog signal is more prone to distortion. A digital signal is less prone to distortion.
An analog signal transmit data in the form A digital signal carries data in the binary
Transmit
of a wave. form i.e. 0 nad 1.
The human voice is the best example of an Signals used for transmission in a
Example
analog signal. computer are the digital signal.
Bandwidth
Bandwidth is the difference between the upper and lower frequencies in a continuous
band of frequencies.
It is typically measured in hertz, and depending on context, may specifically refer to
passband bandwidth or baseband bandwidth.
Passband bandwidth is the difference between the upper and lower cutoff frequencies
of, for example, a band-pass filter, a communication channel, or a signal spectrum.
Baseband bandwidth applies to a low-pass filter or baseband signal; the bandwidth is
equal to its upper cutoff frequency.
A key characteristic of bandwidth is that any band of a given width can carry the same
amount of information, regardless of where that band is located in the frequency
spectrum. For example, a 3 kHz band can carry a telephone conversation whether that
band is at baseband (as in a POTS telephone line) or modulated to some higher
frequency.
Transmission Impairment
In communication system, analog signals travel through transmission media, which tends to
deteriorate the quality of analog signal. This imperfection causes signal impairment. This
means that received signal is not same as the signal that was send.
Multiplexing
Multiplexing is used in the cases where the signals of lower bandwidth and the transmitting
media is having higher bandwidth. In this case, the possibility of sending a number of signals
is more. In this the signals are combined into one and are sent over a link which has greater
bandwidth of media than the communicating nodes.
Categories of WDM
Based upon the wavelength, WDM can be divided into two categories −
Course WDM (CWDM): CWDM generally operates with 8 channels where the spacing
between the channels is 20 nm (nanometers) apart. It consumes less energy than DWDM and
is less expensive. However, the capacity of the links, as well as the distance supported, is
lesser.
Dense WDM (DWDM): In DWDM, the number of multiplexed channels much larger than
CWDM. It is either 40 at 100GHz spacing or 80 with 50GHz spacing. Due to this, they can
transmit the huge quantity of data through a single fiber link. DWDM is generally applied in
core networks of telecommunications and cable networks. It is also used in cloud data centers
for their IaaS services.
Transmission Media
In data communication terminology, a transmission medium is a physical path between the
transmitter and the receiver i.e it is the channel through which data is sent from one place to
another. Transmission Media is broadly classified into the following types:
1. Guided Media:
It is also referred to as Wired or Bounded transmission media. Signals being transmitted are
directed and confined in a narrow pathway by using physical links.
Features:
High Speed
Secure
Used for comparatively shorter distances
Advantages:
Least expensive
Easy to install
High speed capacity
Disadvantages:
Susceptible to external interference
Lower capacity and performance in comparison to STP
Short distance transmission due to attenuation
Advantages:
Better performance at a higher data rate in comparison to UTP
Eliminates crosstalk
Comparitively faster
Disadvantages:
Comparitively difficult to install and manufacture
More expensive
Bulky
Advantages:
High Bandwidth
Better noise Immunity
Easy to install and expand
Inexpensive
Disadvantages:
Single cable failure can disrupt the entire network
Advantages:
Increased capacity and bandwidth
Light weight
Less signal attenuation
Immunity to electromagnetic interference
Resistance to corrosive materials
Disadvantages:
Difficult to install and maintain
High cost
Fragile
2. Unguided Media:
It is also referred to as Wireless or Unbounded transmission media.No physical medium is
required for the transmission of electromagnetic signals.
Features:
Signal is broadcasted through air
Less Secure
Used for larger distances
(ii) Microwaves –
It is a line of sight transmission i.e. the sending and receiving antennas need to be properly
aligned with each other. The distance covered by the signal is directly proportional to the
height of the antenna. Frequency Range:1GHz – 300GHz. These are majorly used for mobile
phone communication and television distribution.
(iii) Infrared –
Infrared waves are used for very short distance communication. They cannot penetrate through
obstacles. This prevents interference between systems. Frequency Range:300GHz – 400THz.
It is used in TV remotes, wireless mouse, keyboard, printer, etc.
Switching Techniques
Circuit Switching
Circuit switching is a switching technique that establishes a dedicated path between
sender and receiver.
In the Circuit Switching Technique, once the connection is established then the
dedicated path will remain to exist until the connection is terminated.
Circuit switching in a network operates in a similar way as the telephone works.
A complete end-to-end path must exist before the communication takes place.
In case of circuit switching technique, when any user wants to send the data, voice,
video, a request signal is sent to the receiver then the receiver sends back the
acknowledgment to ensure the availability of the dedicated path. After receiving the
acknowledgment, dedicated path transfers the data.
Circuit switching is used in public telephone network. It is used for voice transmission.
Fixed data can be transferred at a time in circuit switching technology.
Advantages:
In the case of Circuit Switching technique, the communication channel is dedicated.
It has fixed bandwidth.
Disadvantages:
Once the dedicated path is established, the only delay occurs in the speed of data
transmission.
It takes a long time to establish a connection approx 10 seconds during which no data
can be transmitted.
It is more expensive than other switching techniques as a dedicated path is required for
each connection.
It is inefficient to use because once the path is established and no data is transferred,
then the capacity of the path is wasted.
In this case, the connection is dedicated therefore no other data can be transferred even
if the channel is free.
Message Switching
Message Switching is a switching technique in which a message is transferred as a
complete unit and routed through intermediate nodes at which it is stored and forwarded.
In Message Switching technique, there is no establishment of a dedicated path between
the sender and receiver.
The destination address is appended to the message. Message Switching provides a
dynamic routing as the message is routed through the intermediate nodes based on the
information available in the message.
Message switches are programmed in such a way so that they can provide the most
efficient routes.
Each and every node stores the entire message and then forward it to the next node. This
type of network is known as store and forward network.
Advantages:
Data channels are shared among the communicating devices that improve the efficiency
of using available bandwidth.
Traffic congestion can be reduced because the message is temporarily stored in the
nodes.
Message priority can be used to manage the network.
The size of the message which is sent over the network can be varied. Therefore, it
supports the data of unlimited size.
Disadvantages:
The message switches must be equipped with sufficient storage to enable them to store
the messages until the message is forwarded.
The Long delay can occur due to the storing and forwarding facility provided by the
message switching technique.
Packet Switching
The packet switching is a switching technique in which the message is sent in one go,
but it is divided into smaller pieces, and they are sent individually.
The message splits into smaller pieces known as packets and packets are given a unique
number to identify their order at the receiving end.
Every packet contains some information in its headers such as source address,
destination address and sequence number.
Packets will travel across the network, taking the shortest path as possible.
All the packets are reassembled at the receiving end in correct order.
If any packet is missing or corrupted, then the message will be sent to resend the
message.
If the correct order of the packets is reached, then the acknowledgment message will be
sent.
Advantages:
Cost-effective: In packet switching technique, switching devices do not require
massive secondary storage to store the packets, so cost is minimized to some
extent. Therefore, we can say that the packet switching technique is a cost-
effective technique.
Reliable: If any node is busy, then the packets can be rerouted. This ensures that
the Packet Switching technique provides reliable communication.
Efficient: Packet Switching is an efficient technique. It does not require any
established path prior to the transmission, and many users can use the same
communication channel simultaneously, hence makes use of available
bandwidth very efficiently.
Disadvantages:
Packet Switching technique cannot be implemented in those applications that
requirelow delay and high-quality services.
The protocols used in a packet switching technique are very complex and
requires highimplementation cost.
If the network is overloaded or corrupted, then it requires retransmission of lost
packets.It can also lead to the loss of critical information if errors are nor
recovered.
ISDN
The Integrated Services of Digital Networking, in short ISDN is a telephone network
based infrastructure that allows the transmission of voice and data simultaneously at a
high speed with greater efficiency. This is a circuit switched telephone network
system, which also provides access to Packet switched networks. Several kinds of
access interfaces are:
Narrowband ISDN
Broadband ISDN
Narrowband ISDN
The Narrowband Integrated Services Digital Network is called the N-ISDN.
This can be understood as a telecommunication that carries voice
information in anarrow band of frequencies.
This is actually an attempt to digitize the analog voice information. This uses
64kbpscircuit switching.
The narrowband ISDN is implemented to carry voice data, which uses lesser
bandwidth,on a limited number of frequencies.
Broadband ISDN
The Broadband Integrated Services Digital Network is called the B-ISDN.
This integrates the digital networking services and provides digital
transmission overordinary telephone wires, as well as over other media.
The broadband ISDN speed is around 2 MBPS to 1 GBPS and the transmission is
relatedto ATM, i.e., Asynchronous Transfer Mode.
The broadband ISDN communication is usually made using the fiber optic
cables.
As the speed is greater than 1.544 Mbps, the communications based on this
are calledBroadband Communications.
2. ATM Layer: This layer is comparable to data link layer of OSI model. It
accepts the 48 byte segments from the upper layer, adds a 5 byte header to each
segment and converts into 53 byte cells. This layer is responsible for routing of
each cell, traffic management, multiplexing and switching.
3. ATM Adaptation Layer (AAL): This layer corresponds to network layer of
OSI model. It provides facilities to the existing packet switched networks to
connect to ATM network and use its services. It accepts the data and converts
them into fixed sized segments. The transmissions can be of fixed or variable
data rate. This layer has two sub layers: Convergence sub layer and
Segmentation and Reassembly sub layer.
4. ATM endpoints: It contains ATM network interface adaptor. Examples of
endpoints are workstations, routers, CODECs, LAN switches, etc.
5. ATM switch: It transmits cells through the ATM networks. It accepts the
incoming cells from ATM endpoints (UNI) or another switch (NNI), updates
cell header and retransmits cell towards destination.