Computer Network Notes Unit-2
Computer Network Notes Unit-2
Computer Network Notes Unit-2
System
Data Communication is defined as exchange of data between two devices via
some form of transmission media such as a cable, wire or it can be air or
vacuum also. For a data communication communication system made up of a
combination of hardware or software devices and programs.
1. Message :
This is most useful asset of a data communication system. The message
simply refers to data or piece of information which is to be communicated. A
message could be in any form, it may be in form of a text file, an audio file, a
video file, etc.
2. Sender :
To transfer message from source to destination, someone must be there
who will play role of a source. Sender plays part of a source in data
communication system. It is simple a device that sends data message.
The device could be in form of a computer, mobile, telephone, laptop,
video camera, or a workstation, etc.
3. Receiver :
It is destination where finally message sent by source has arrived. It is a
device that receives message. Same as sender, receiver can also be in
form of a computer, telephone mobile, workstation, etc.
4. Transmission Medium :
In entire process of data communication, there must be something which
could act as a bridge between sender and receiver, Transmission
medium plays that part. It is physical path by which data or message
travels from sender to receiver. Transmission medium could be guided
(with wires) or unguided (without wires), for example, twisted pair cable,
fiber optic cable, radio waves, microwaves, etc.
2. 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 directions 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 directions.
1. In a half Duplex, moe data cannot be transmitted in both side in the same
time
2. When one device sending data, the device on the other hand only receive
data.
3. It is slow in data transmission.
4. Delay in data transmission.
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 another direction, this sharing can occur in two ways:
Either the link must contain two physically separate transmission paths, one
for sending and the other for receiving.
Or the capacity is divided between signals traveling in both directions.
1. performance of full-duplex mode is much batter than half and simplex mode.
2. The speed of full-duplex mode is high than simplex and half-duplex mode.
3. Data can be sent and receive on both sides, which increases the performance
of the network.
4. No delay in communication, because both devices send and receive data at
the same time.
1. No proper bandwidth utilization as the same line is used for sending and
receiving data at the same time.
2. It is more complex than a simplex and half-duplex mode
The sender can be sent and The sender can send and
Send / Receive The sender only send data
receive but not at the same time receive data at the same time
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
Applications:
Used in telephone connections and LAN networks
Shielded Twisted Pair (STP):
This type of cable consists of a special jacket (a copper braid covering or a
foil shield) to block external interference. It is used in fast-data-rate Ethernet
and in voice and data channels of telephone lines.
Advantages:
⇢ Better performance at a higher data rate in comparison to UTP
⇢ Eliminates crosstalk
⇢ Comparatively faster
Disadvantages:
⇢ Comparatively difficult to install and manufacture
⇢ More expensive
⇢ Bulky
Applications:
The shielded twisted pair type of cable is most frequently used in extremely cold
climates, where the additional layer of outer covering makes it perfect for
withstanding such temperatures or for shielding the interior components.
(ii) Coaxial Cable –
It has an outer plastic covering containing an insulation layer made of PVC or
Teflon and 2 parallel conductors each having a separate insulated protection
cover. The coaxial cable transmits information in two modes: Baseband
mode(dedicated cable bandwidth) and Broadband mode(cable bandwidth is
split into separate ranges). Cable TVs and analog television networks widely
use Coaxial cables.
Advantages:
High Bandwidth
Better noise Immunity
Easy to install and expand
Inexpensive
Disadvantages:
Single cable failure can disrupt the entire network
Applications:
Radio frequency signals are sent over coaxial wire. It can be used for cable
television signal distribution, digital audio (S/PDIF), computer network
connections (like Ethernet), and feedlines that connect radio transmitters and
receivers to their antennas.
(iii) Optical Fiber Cable –
It uses the concept of refraction of light through a core made up of glass or
plastic. The core is surrounded by a less dense glass or plastic covering called
the cladding. It is used for the transmission of large volumes of data.
Advantages:
Increased capacity and bandwidth
Lightweight
Less signal attenuation
Immunity to electromagnetic interference
Resistance to corrosive materials
Disadvantages:
Difficult to install and maintain
High cost
Fragile
Applications:
Radio frequency signals are sent over coaxial wire. It can be used for cable
television signal distribution, digital audio (S/PDIF), computer network
connections (like Ethernet), and feedlines that connect radio transmitters and
receivers to their antennas.
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:
The signal is broadcasted through air
Less Secure
Used for larger distances
There are 3 types of Signals transmitted through unguided media:
(i) Radio waves –
These are easy to generate and can penetrate through buildings. The sending
and receiving antennas need not be aligned. Frequency Range:3KHz – 1GHz.
AM and FM radios and cordless phones use Radio waves for transmission.
Applications-
1. AM and FM radio
2. TV
3. Cordless phones
4. Paging
5. Walky-talky sets
(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.
Characteristics of microwaves-
Applications of microwaves-
1. Cellular phones.
2. Satellite phones.
3. Wireless LAN.
4. One –to-one communication.
Advantages-
Dis-advantages-
1. Very costly
2. Electromagnetic waves cannot bend or pass through obstacles like
mountains etc.
3. Require repeaters for long distance transmission.
4. It also an insecure and easy to tap communication
5.
5. This communication offers limited bandwidth.
(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.
Applications-
Advantages-
1. High speed
2. Large bandwidth
3. Very cheap
4. Easy to generate
5. Provide wireless connection between two devices
6. No license is required to use.
Dis-advantages-
The switching nodes are not concerned with the content of the data;rather.their purpose is to
provide a switching facility that will move the data from node to node until they reach the
destination. switches are hardware and/or software devices.
Data entering the network from a station are routed to the destination by being switched from
node to node.there are three techniques which are used in a wide-area switching networks-
1. Circuit switching
2. Message switching.
3. Packet switching.
Communication via circuit switching takes place over three phases of operation an
follows-
1. Circuit establishment.
2. Data transfer.
3. Circuit disconnect
CIRCUIT ESTABLISHMENT-
For example-if the communication is to be between A and D, then the path form A and D to
node 4 to node 5 to node 3 and D has to be establishment first.
DATA TRANSFER-
Once a circuit is established between the two stations, it is exclusively used by the two
parties. the information can now be transferred from A to D through the network.the data can
be analog or digital depending on the nature of network.
CIRCUIT DISCONNECT –
After the transfer of complete data, connection is terminated either by the sender or the
receiver.
ADVANTAGE-
DIS-ADVANTAGES-
1. Time required to establish a physical link between the two stations is very large.
2. The network resources are not property utilized because the physical link is a
dedicated one.
3. Uneconomical method.
Message switching-
In message switching, sending device appends the destination address to the message
and passes it to the network; the message is then passed through the network from one
node to another till it reaches the intended destination. each switching node receives a
message , stores it briefly and then transmit it to the next node.
Examlple of a message are electronic mail, computer files, telegram and transaction
queries and responses. A complete exchange may consist of several messages.
ADVANTAGE-
1. No physical connection is required between the source and the destination node.
2. This mode uses the communication channels very effectively because channels are
used only when messages are transmitted.
DIS-ADVANTAGES-
1. As the message length is unlimited ,each node must have sufficient storage to
store messages.
2. The method is very slow for interactive real time application.
3. Processing and contro; procedures are complex.
4. A message is delayed at each node.
PACKET SWITCHING-
Datagram approach-
It is more flexible as all the packets travel are treated as an independent entity.
Congestion can occur when the node is busy, and it does not allow other packets to pass
through
ADVANTAGES-
1. Data packets are able to find the destination without the use of a dedicated channel.
2. Reduces lost data packets because packet switching allows for resending of packets.
3. More cost-effective since there is no need for a dedicated channel for voice or data traffic.
1.Not ideal for applications that are in constant use, such as high volume
voice calls
MULTIPLEXING-
Multiplexing is a technique of transmitting signals from several sources over a single
communication channel for maximum utilisation and to save the cost of channels. The
electronic device that performs this task is called a multiplexer.
Example - Multiplexer that takes 3 input lines and diverts them to single output line.
The data of 3 computers joined by these links is combined and then transmitted on the single
channel to high bandwidth at sender end. At receiver end , a demultiplexer divides the data
stream into 3 subchannels and passing data to 3 receivers.
Advantages:
o Time division multiplexing systems are more flexible than frequency division multiplexing.
o Time division multiplexing circuitry is not complex.
o Problem of cross talk is not severe.
o Full available channel bandwidth can be utilized for each channel.
Disadvantage:
o Synchronization is required in time division multiplexing.
o Complex to implement.
o Due to slow narrowband fading, all the TDM channels may get wiped out.
TYPES OF MULTIPLEXING-
Synchronous TDM :
Synchronous TDM is a type of Time Division Multiplexing where the input
frame already has a slot in the output frame. Time slots are grouped into
frames. One frame consists of one cycle of time slots.
Synchronous TDM is not efficient because if the input frame has no data
to send, a slot remains empty in the output frame.
In synchronous TDM, we need to mention the synchronous bit at the
beginning of each frame.
ASYNCHRONOUS TDM :
Statistical TDM is a type of Time Division Multiplexing where the output frame
collects data from the input frame till it is full, not leaving an empty slot like in
Synchronous TDM.
In statistical TDM, we need to include the address of each particular data in the
slot that is being sent to the output frame.
Asynchronous TDM is a more efficient type of time-division multiplexing as the
channel capacity is fully utilized and improves the bandwidth efficiency.