0% found this document useful (0 votes)
5 views4 pages

Data Communication Chapter 3

The document provides an overview of data communication, focusing on the concepts of packets and frames. It explains the necessity of dividing data into packets to facilitate error detection and fair sharing of network resources. Additionally, it discusses the differences between packets and frames, their formats, and practical challenges associated with framing in data transmission.

Uploaded by

com tech
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Data Communication Chapter 3

The document provides an overview of data communication, focusing on the concepts of packets and frames. It explains the necessity of dividing data into packets to facilitate error detection and fair sharing of network resources. Additionally, it discusses the differences between packets and frames, their formats, and practical challenges associated with framing in data transmission.

Uploaded by

com tech
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

COMPUTER NETWORKS (CS610) VU

Lecture No. 3

Overview of Data Communication

NOTE: -

Chapter 4, 5, 6 deals with the course of DATA COMMUNICATION, which has


been studied as a separate, course earlier. So these chapters are just overviewed and can
be seen in the third lecture video.

It should also be noted that these chapters will contain no assignment, or quizzes
and these chapters will also be out of the examination.

13
© Copyright Virtual University of Pakistan
COMPUTER NETWORKS (CS610) VU

Lecture No. 4

PACKETS, FRAMES AND ERROR DETECTION

INTRODUCTION:
The previous chapters of data communication described how bits are transmitted
across a physical network using a transmission medium.
This chapter introduces the concept of packets of data rather than bits for
communication.

CONCEPT OF ‘PACKET’:
Network systems divide data in small blocks or junks called packets, which they
send individually. Why we need packets rather than bits? The answer to this question is
because a sender and receiver need to coordinate to detect transmission errors. Also the
individual connection between each pair of computers is not possible. That’s why to
solve these problems shard network connections are made among many workstations.

PROBLEMS WITH SHARING:


The demand of sharing is very high because many computers need to use the shared
networks. In addition to this some applications have large data transfer. In this way they
hold the network for long time. But on the other hand some applications cannot wait so
long. So we need a mechanism for fairness.

SOLUTION FOR FAIRNESS:


To the fairness, the solution is to divide the data into small block or chunks called
‘PACKETS’. Computers take turns to send one packet at a time over the shared
connection.
Because each packet is small so no computer experiences a long delay.

14
© Copyright Virtual University of Pakistan
COMPUTER NETWORKS (CS610) VU

Example:
In the figure one reason for using the packets is illustrated. We see that in a shared
resource when one pair of computer communicates, the other must wait. To understand
the use of packet here, let’s suppose a transmission with packets in the figure.

WITHOUT PACKETS:
A 5MB file transferred across network with 56Kpbs capacity will require 12 minutes.
This means that all that computers will be forced to wait for 12 minutes before initiating
other transfers.
5x106 bytes * 8 bits / byte
= 11.9 minutes
60 secs / minute * 56x103 bits / second
WITH PACKETS:
Now if the file is broken into packets, other computers must only wait until packet (not
entire file) has been sent.
Suppose file is broken into 1000 byte packets.
Now each packet takes less than 0.2 seconds to transmit. Here other computers must only
1000 bytes * 8 bits / byte
=.143 seconds
56x103 bits / second
wait for 0.14 sec before beginning to transmit.
Note: - if both files are 5MB long, each now takes 24 minutes to transmit. But if the
second file is 10MB long it sill be transmitted in only 2.8 seconds while 5MB file still
takes roughly 12 minutes.

PACKETS AND TDM:


Dividing data into small packets allow time division multiplexing. In TDM each packet
leaves the source and is switched on the shared communication channel through a
multiplexer. At the destination the packet is switched through a demultiplexer to the
destination.
In the figure this process is illustrated with a multiplexing circuit shown.

15
© Copyright Virtual University of Pakistan
COMPUTER NETWORKS (CS610) VU

Figure 4.2 illustration of TDM

PACKETS AND FRAMES:


PACKETS:
Packet is a generic term that refers to small block of data. Packet have different
format. Each hardware uses different packet format.

FRAME:
A frame or hardware frame denotes a packet of a specific format on a specific
hardware technology.

FRAME FORMAT:
We need to define a standard format for data to indicate the beginning and end of
the frame. Header and tail are used to frame the data as shown in the figure below.

Figure 4.3 illustration of a Frame

We see that in the figure soh and eot are used to denote the start of header and end of tail.

FRAMING IN PRACTICE:
In practice there is a disadvantage of overhead. To avoid the no delay between
two frames each frame sends an extra character between block of data.
The framing in practice also has some transmission problems just like:
• Missing eot indicates sending computer crashed.
• Missing soh indicates receiving computer missed beginning of message.
• Bad frame is discarded.

16
© Copyright Virtual University of Pakistan

You might also like