SlideShare a Scribd company logo
Introduction to Data communication
Topic : Data Types
Lecture #2
Dr Rajiv Srivastava
Director
Sagar Institute of Research & Technology (SIRT)
Sagar Group of Institutions, Bhopal
http://www.sirtbhopal.ac.in
Unit 1
Lecture 2
• Data representation
Text
 ASCII
 EBCDIC
 Extended ASCII
 Unicode
 ISO
Numbers
 Binary Numbers
Images
Audio
Video
 Parity bit
 MSB and LSB
Contents
• In order to understand data transmission , we need to first
understand data types
• Data can be represented using different forms as shown in
figure
How data is represented in computer?
Figure: Data Representation
Data
Text
ASCII Unicode EBCDIC ISO
Numbers
Binary
numbers
Image Audio Video
Still
Pictures
Continuous
Video
1. Text
• A binary digit or bit can represent only two
s bols as it has o l two states a d .
• For communication between two computers we
need many more symbols for communication.
These additional symbols are :
1. 26 alphabets with capital and small letters.
2. Numbers from 0 to 9.
3. Punctuation marks and other symbols.
• Therefore instead of using only single binary bits,
a group of bits is used as a code to represent a
symbol.
• The numbers of bits used per code word will be dependent
on the total number of symbols to be represented e.g. if 5-
bits used per code word then 25 = 32 combination would
be possible.
• If the word length is increased to 8 then the number of
combination would be 28 = 256, hence an 8-bit code can
represent 256 symbols.
Different Text codes used for representation are as follows :
1. ASCII
2. EBCDIC
3. Baudot code
4. Extended ASCII
5. Unicode
6. ISO
ASCII – ( American standard code for information
interchange) (7 bit Code)
• It is defined by American national standards
institute (ANSI).
• It is a 7 bit code with 27 i.e. 128 possible
combinations and all of them have defined
meanings.
• The ASCII code set consists of 94 printable
characters, SPACE and DEL etc. characters, and 32
control symbols.
Bit 7
Numbers 6
5
4321
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
0 1 2 3 4 5 6 7
0000 0 NUL DLE SPACE 0 @ P p
0001 1 SOH DC1 ! 1 A Q a q
0010 2 STX DC2 2 B R b r
0011 3 ETX DC3 # 3 C S c s
0100 4 EOT DC4 $ 4 D T d t
0101 5 ENO NAK % 5 E U e u
0110 6 ACK SYN & 6 F V f v
0111 7 BEL ETB ‘ 7 G W g w
1000 8 BS CAN ( 8 H X h x
1001 9 HT EM ) 9 I Y i y
1010 A LF SUB * : J Z j z
1011 B VT ESC + ; K [ k {
1100 C FF FS , < L  l |
1101 D CR GS - = M ] m }
1110 E SO RS > N ^ n ~
1111 F SI US / ? O __ o DEL
Figure: ASCII Table
ACK Acknowledgement FF Form Feed
BEL Bell FS File Separator
BS Backspace GS Group Separator
CAN Cancel HT Horizontal Tabulation
CR Carriage return LF Line Feed
DC1 Device control 1 NAK Negative Acknowledgement
DC2 Device control 2 NUL Null
DC3 Device control 3 RS Record Separator
DC4 Device control 4 SI Shift-In
DEL Delete SO Shift-Out
DLE Data line Escape SOH Start of Heading
EM End of Medium STX Start of Text
ENQ Enquiry SUB Substitute Character
EOT End of transmission SYN Synchronous Idle
ESC Escape US Unit Separator
ETB End of Transmission Block VT Vertical Tabulation
ETX End of Test
Table : Control Symbols used in ASCII code set
EBCDIC – Extended binary coded decimal interchange
code (8bit Code) :
• This is an 8-bit code. So the total no of
combinations are 28 = 256. However, all the possible
combination are not used.
• There is no parity bit used to check error in the
basic code set.
• The EBCDIC code set is shown in table.
• Extended ACSII (8 bit code):
• In order to make the size of each code word 1 byte (8
bits) the ASCII patterns are augmented by an extra 0
at the left (MSB position).
• Unicode (16 Bit Code) :
• It is a 16 bit code which can represent upto 216
(65,536) symbols.
• It allows the representation of English language in the
coded form directly.
• ISO (32 bit Code) :
• ISO is the long form of international organization of
Standardization. It has designed code of 32 bits.
2 Numbers
• The numbers are represented using bit patterns.
• The most popular code ASCII is used to represent numbers.
• The code EBCDIC is also used for this purpose.
• This will simplify the mathematical operations on numbers
to a great extent.
3 Images
• Image is another form of data. They also are represented
by bit patterns but with a different mechanism.
• The basic principle is as follow. An image is divided into a
matrix of pixels (pixel means picture element).
• Each pixel is in the form of a small dot. We can use a large
number of pixels for better resolution.
• Higher resolution ensures better quality of picture.
• After dividing the image into pixels, each pixel is represented
by a unique bit pattern.
• For black and white image one 1 bit per pattern is sufficient to
represent a pixel.
• 1 will represent white and 0 will represent black.
• If the gray shades are to be included then we can use 2 bit
pattern to represent each pixel.
• 00 is black,
• 01 is dark gray,
• 0 is light gray and
• 11 represent white.
• If a colored image is to be represented, then
each colored pixel is decomposed into three
primary colors namely Red, Green, Blue (RGB)
as shown in figure.
• Example of some images format are JPEG,JIFF,
JPEG 2000, TIFF, RIF, GIF, PNG.
4. Audio
• Audio can be understood same as sound. It is
continuous with respect to time and not discrete like
the text or numbers.
• Microphone is used to convert sound into an equivalent
electrical signal. The audio should be converted into a
digital single before transmitting it over the medium.
• Example of audio data format include WAV, WMA,
Mp3, MIDI, 3gp,raw.
Microphone Sound Waves
5. Video
• The video can be either a combination of images or it
can be a continuous entity (by a TV camera).
• We have to change video signal into a digital signal
for transmitting it via data communication system.
• Example : .avi, .mov, .wmv, .mp4, .m4p, .mpeg, .mpg,
.3gp.
Sagar Institute of Research & Technology
(SIRT) Sagar Group of Institutions, Bhopal
http://www.sirtbhopal.ac.in
• Despite ASCII code is a 7 bit code but we also
use the eighth bit quite often. This bit is called
as parity bit and it is added in the original set of
7 bits for data communication.
• The parity bit is generally added in the most
significant bit (MSB) position.
What is Parity bit? Why it is used in ACSII code?
P 7-bit ACSII Code word
8-bits
MSB parity
bit
• This table shows the code for each character in the message
to be represented.
• The 8th bit is selected in such a way that the number of 1s in
each code is even.
E a ple: Represe t the essage JSK. i ASCII
code. Use the even parity for the 8th bit in MSB
7 6 5 4 3 2 1
J 1 1 0 0 1 0 1 0
S 0 1 0 1 0 0 1 1
K 0 1 0 0 1 0 1 1
. 0 0 1 0 1 1 1 0
3 0 0 1 1 0 0 1 1
4 1 0 1 1 0 1 0 0
Character in
the message
Parity bit
8
ASCII
b0 b1 b2 b3 b4 b5 b6 b7
What do you understand by MSB and LSB?
MSB LSB
MSB – Most significant Bit
LSB – Least significant Bit
Thank You
Dr Rajiv Srivastava
Director
Sagar Institute of Research & Technology (SIRT)
Sagar Group of Institutions, Bhopal
http://www.sirtbhopal.ac.in

More Related Content

What's hot

Coding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding schemeCoding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding scheme
skysunilyadav
 
Source coding
Source coding Source coding
Source coding
Shankar Gangaju
 
Source coding systems
Source coding systemsSource coding systems
Source coding systems
RAMYASREEKUPPALA
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
Avijeet Negel
 
Digital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesDigital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling Techniques
Biplap Bhattarai
 
04 digital transmission
04 digital transmission04 digital transmission
04 digital transmission
Meenakshi Paul
 
UNIT-3 : CHANNEL CODING
UNIT-3 : CHANNEL CODINGUNIT-3 : CHANNEL CODING
UNIT-3 : CHANNEL CODING
abhishek reddy
 
Error detection and correction, flow and error control and trasmission media
Error detection and correction, flow and error control and  trasmission mediaError detection and correction, flow and error control and  trasmission media
Error detection and correction, flow and error control and trasmission media
PANKAJ333
 
Chapter4 digital transmission
Chapter4 digital transmissionChapter4 digital transmission
Chapter4 digital transmission
pitchuangay
 
Data Compression - Text Compression - Run Length Encoding
Data Compression - Text Compression - Run Length EncodingData Compression - Text Compression - Run Length Encoding
Data Compression - Text Compression - Run Length Encoding
MANISH T I
 
Data Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar codingData Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar coding
Dr Rajiv Srivastava
 
Chap4
Chap4Chap4
Source coding
Source codingSource coding
Source coding
MOHIT KUMAR
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmissionanuragyadav94
 
Arithmetic coding
Arithmetic codingArithmetic coding
Arithmetic coding
09lavee
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
Dr. Sanjay M. Gulhane
 
Dccn - Digital Transmission
Dccn - Digital TransmissionDccn - Digital Transmission
Dccn - Digital Transmission
Taimoor Muzaffar Gondal
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N CorrectionAnkan Adhikari
 
Data communications 4 1
Data communications 4 1Data communications 4 1
Data communications 4 1Raymond Pidor
 

What's hot (20)

Coding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding schemeCoding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding scheme
 
Source coding
Source coding Source coding
Source coding
 
Source coding systems
Source coding systemsSource coding systems
Source coding systems
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
 
Digital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesDigital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling Techniques
 
04 digital transmission
04 digital transmission04 digital transmission
04 digital transmission
 
UNIT-3 : CHANNEL CODING
UNIT-3 : CHANNEL CODINGUNIT-3 : CHANNEL CODING
UNIT-3 : CHANNEL CODING
 
Error detection and correction, flow and error control and trasmission media
Error detection and correction, flow and error control and  trasmission mediaError detection and correction, flow and error control and  trasmission media
Error detection and correction, flow and error control and trasmission media
 
Chapter4 digital transmission
Chapter4 digital transmissionChapter4 digital transmission
Chapter4 digital transmission
 
Data Compression - Text Compression - Run Length Encoding
Data Compression - Text Compression - Run Length EncodingData Compression - Text Compression - Run Length Encoding
Data Compression - Text Compression - Run Length Encoding
 
Data Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar codingData Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar coding
 
Chap4
Chap4Chap4
Chap4
 
Source coding
Source codingSource coding
Source coding
 
Unit 4
Unit 4Unit 4
Unit 4
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmission
 
Arithmetic coding
Arithmetic codingArithmetic coding
Arithmetic coding
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
 
Dccn - Digital Transmission
Dccn - Digital TransmissionDccn - Digital Transmission
Dccn - Digital Transmission
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N Correction
 
Data communications 4 1
Data communications 4 1Data communications 4 1
Data communications 4 1
 

Similar to Data Communication & Computer Networks : Data Types

Topic 2.3 (1)
Topic 2.3 (1)Topic 2.3 (1)
Topic 2.3 (1)
nabilbesttravel
 
Computer-codes.pptx
Computer-codes.pptxComputer-codes.pptx
Computer-codes.pptx
PraveenThabbannavar
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
MaheShiva
 
. computer codes
. computer codes. computer codes
. computer codes
asadsiddique12
 
Lecture 2
Lecture 2Lecture 2
Lecture 2Muuluu
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representationekul
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
Kyle
 
What character is that
What character is thatWhat character is that
What character is that
Anders Karlsson
 
Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.ppt
MarlonMagtibay2
 
Binary codes
Binary codesBinary codes
Binary codes
GargiKhanna1
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
Sajib
 
Number system
Number system Number system
Number system
Anirban Saha Anik
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Pptekul
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems PptNaruin
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems PptKyle
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
drs
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systems
mrsmackenzie
 
6_2018_11_23!09_24_56_PM (1).pptx
6_2018_11_23!09_24_56_PM (1).pptx6_2018_11_23!09_24_56_PM (1).pptx
6_2018_11_23!09_24_56_PM (1).pptx
HebaEng
 

Similar to Data Communication & Computer Networks : Data Types (20)

Topic 2.3 (1)
Topic 2.3 (1)Topic 2.3 (1)
Topic 2.3 (1)
 
Computer-codes.pptx
Computer-codes.pptxComputer-codes.pptx
Computer-codes.pptx
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
 
. computer codes
. computer codes. computer codes
. computer codes
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Coa presentation1
Coa presentation1Coa presentation1
Coa presentation1
 
Class2
Class2Class2
Class2
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
What character is that
What character is thatWhat character is that
What character is that
 
Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.ppt
 
Binary codes
Binary codesBinary codes
Binary codes
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
 
Number system
Number system Number system
Number system
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems Ppt
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systems
 
6_2018_11_23!09_24_56_PM (1).pptx
6_2018_11_23!09_24_56_PM (1).pptx6_2018_11_23!09_24_56_PM (1).pptx
6_2018_11_23!09_24_56_PM (1).pptx
 

More from Dr Rajiv Srivastava

Trends of it
Trends of itTrends of it
Trends of it
Dr Rajiv Srivastava
 
Placement at sagar group Bhopal | SIRT College Bhopal
Placement at sagar group Bhopal  | SIRT College Bhopal Placement at sagar group Bhopal  | SIRT College Bhopal
Placement at sagar group Bhopal | SIRT College Bhopal
Dr Rajiv Srivastava
 
How to Prepare for Group Discussion
How to Prepare for Group DiscussionHow to Prepare for Group Discussion
How to Prepare for Group Discussion
Dr Rajiv Srivastava
 
Unix ppt
Unix pptUnix ppt
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
Dr Rajiv Srivastava
 
lecture on data compression
lecture on data compressionlecture on data compression
lecture on data compression
Dr Rajiv Srivastava
 
Topic : X.25, Frame relay and ATM
Topic :  X.25, Frame relay and ATMTopic :  X.25, Frame relay and ATM
Topic : X.25, Frame relay and ATM
Dr Rajiv Srivastava
 
Topic : B ISDN
Topic : B ISDNTopic : B ISDN
Topic : B ISDN
Dr Rajiv Srivastava
 
Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2
Dr Rajiv Srivastava
 
Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)
Dr Rajiv Srivastava
 
Topic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingTopic: Virtual circuit & message switching
Topic: Virtual circuit & message switching
Dr Rajiv Srivastava
 
Topic Packet switching
Topic Packet switchingTopic Packet switching
Topic Packet switching
Dr Rajiv Srivastava
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
Topic:Terminal handling & polling
Topic:Terminal handling & pollingTopic:Terminal handling & polling
Topic:Terminal handling & polling
Dr Rajiv Srivastava
 
Topic: Spread Spectrum
Topic: Spread SpectrumTopic: Spread Spectrum
Topic: Spread Spectrum
Dr Rajiv Srivastava
 
Applications of Time Division multiplexing : statistical TDM
Applications of  Time Division multiplexing : statistical TDMApplications of  Time Division multiplexing : statistical TDM
Applications of Time Division multiplexing : statistical TDM
Dr Rajiv Srivastava
 
Multiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingMultiplexing : Wave Division Multiplexing
Multiplexing : Wave Division Multiplexing
Dr Rajiv Srivastava
 
Multiplexing : FDM
Multiplexing : FDMMultiplexing : FDM
Multiplexing : FDM
Dr Rajiv Srivastava
 
Data Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano codingData Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano coding
Dr Rajiv Srivastava
 
Data Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression methodData Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression method
Dr Rajiv Srivastava
 

More from Dr Rajiv Srivastava (20)

Trends of it
Trends of itTrends of it
Trends of it
 
Placement at sagar group Bhopal | SIRT College Bhopal
Placement at sagar group Bhopal  | SIRT College Bhopal Placement at sagar group Bhopal  | SIRT College Bhopal
Placement at sagar group Bhopal | SIRT College Bhopal
 
How to Prepare for Group Discussion
How to Prepare for Group DiscussionHow to Prepare for Group Discussion
How to Prepare for Group Discussion
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
 
lecture on data compression
lecture on data compressionlecture on data compression
lecture on data compression
 
Topic : X.25, Frame relay and ATM
Topic :  X.25, Frame relay and ATMTopic :  X.25, Frame relay and ATM
Topic : X.25, Frame relay and ATM
 
Topic : B ISDN
Topic : B ISDNTopic : B ISDN
Topic : B ISDN
 
Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2
 
Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)
 
Topic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingTopic: Virtual circuit & message switching
Topic: Virtual circuit & message switching
 
Topic Packet switching
Topic Packet switchingTopic Packet switching
Topic Packet switching
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
 
Topic:Terminal handling & polling
Topic:Terminal handling & pollingTopic:Terminal handling & polling
Topic:Terminal handling & polling
 
Topic: Spread Spectrum
Topic: Spread SpectrumTopic: Spread Spectrum
Topic: Spread Spectrum
 
Applications of Time Division multiplexing : statistical TDM
Applications of  Time Division multiplexing : statistical TDMApplications of  Time Division multiplexing : statistical TDM
Applications of Time Division multiplexing : statistical TDM
 
Multiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingMultiplexing : Wave Division Multiplexing
Multiplexing : Wave Division Multiplexing
 
Multiplexing : FDM
Multiplexing : FDMMultiplexing : FDM
Multiplexing : FDM
 
Data Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano codingData Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano coding
 
Data Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression methodData Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression method
 

Recently uploaded

The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
SriSurya50
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 

Recently uploaded (20)

The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 

Data Communication & Computer Networks : Data Types

  • 1. Introduction to Data communication Topic : Data Types Lecture #2 Dr Rajiv Srivastava Director Sagar Institute of Research & Technology (SIRT) Sagar Group of Institutions, Bhopal http://www.sirtbhopal.ac.in
  • 3. • Data representation Text  ASCII  EBCDIC  Extended ASCII  Unicode  ISO Numbers  Binary Numbers Images Audio Video  Parity bit  MSB and LSB Contents
  • 4. • In order to understand data transmission , we need to first understand data types • Data can be represented using different forms as shown in figure How data is represented in computer? Figure: Data Representation Data Text ASCII Unicode EBCDIC ISO Numbers Binary numbers Image Audio Video Still Pictures Continuous Video
  • 5. 1. Text • A binary digit or bit can represent only two s bols as it has o l two states a d . • For communication between two computers we need many more symbols for communication. These additional symbols are : 1. 26 alphabets with capital and small letters. 2. Numbers from 0 to 9. 3. Punctuation marks and other symbols. • Therefore instead of using only single binary bits, a group of bits is used as a code to represent a symbol.
  • 6. • The numbers of bits used per code word will be dependent on the total number of symbols to be represented e.g. if 5- bits used per code word then 25 = 32 combination would be possible. • If the word length is increased to 8 then the number of combination would be 28 = 256, hence an 8-bit code can represent 256 symbols. Different Text codes used for representation are as follows : 1. ASCII 2. EBCDIC 3. Baudot code 4. Extended ASCII 5. Unicode 6. ISO
  • 7. ASCII – ( American standard code for information interchange) (7 bit Code) • It is defined by American national standards institute (ANSI). • It is a 7 bit code with 27 i.e. 128 possible combinations and all of them have defined meanings. • The ASCII code set consists of 94 printable characters, SPACE and DEL etc. characters, and 32 control symbols.
  • 8. Bit 7 Numbers 6 5 4321 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 0000 0 NUL DLE SPACE 0 @ P p 0001 1 SOH DC1 ! 1 A Q a q 0010 2 STX DC2 2 B R b r 0011 3 ETX DC3 # 3 C S c s 0100 4 EOT DC4 $ 4 D T d t 0101 5 ENO NAK % 5 E U e u 0110 6 ACK SYN & 6 F V f v 0111 7 BEL ETB ‘ 7 G W g w 1000 8 BS CAN ( 8 H X h x 1001 9 HT EM ) 9 I Y i y 1010 A LF SUB * : J Z j z 1011 B VT ESC + ; K [ k { 1100 C FF FS , < L l | 1101 D CR GS - = M ] m } 1110 E SO RS > N ^ n ~ 1111 F SI US / ? O __ o DEL Figure: ASCII Table
  • 9. ACK Acknowledgement FF Form Feed BEL Bell FS File Separator BS Backspace GS Group Separator CAN Cancel HT Horizontal Tabulation CR Carriage return LF Line Feed DC1 Device control 1 NAK Negative Acknowledgement DC2 Device control 2 NUL Null DC3 Device control 3 RS Record Separator DC4 Device control 4 SI Shift-In DEL Delete SO Shift-Out DLE Data line Escape SOH Start of Heading EM End of Medium STX Start of Text ENQ Enquiry SUB Substitute Character EOT End of transmission SYN Synchronous Idle ESC Escape US Unit Separator ETB End of Transmission Block VT Vertical Tabulation ETX End of Test Table : Control Symbols used in ASCII code set
  • 10. EBCDIC – Extended binary coded decimal interchange code (8bit Code) : • This is an 8-bit code. So the total no of combinations are 28 = 256. However, all the possible combination are not used. • There is no parity bit used to check error in the basic code set. • The EBCDIC code set is shown in table.
  • 11.
  • 12. • Extended ACSII (8 bit code): • In order to make the size of each code word 1 byte (8 bits) the ASCII patterns are augmented by an extra 0 at the left (MSB position). • Unicode (16 Bit Code) : • It is a 16 bit code which can represent upto 216 (65,536) symbols. • It allows the representation of English language in the coded form directly. • ISO (32 bit Code) : • ISO is the long form of international organization of Standardization. It has designed code of 32 bits.
  • 13. 2 Numbers • The numbers are represented using bit patterns. • The most popular code ASCII is used to represent numbers. • The code EBCDIC is also used for this purpose. • This will simplify the mathematical operations on numbers to a great extent. 3 Images • Image is another form of data. They also are represented by bit patterns but with a different mechanism. • The basic principle is as follow. An image is divided into a matrix of pixels (pixel means picture element).
  • 14. • Each pixel is in the form of a small dot. We can use a large number of pixels for better resolution. • Higher resolution ensures better quality of picture. • After dividing the image into pixels, each pixel is represented by a unique bit pattern. • For black and white image one 1 bit per pattern is sufficient to represent a pixel. • 1 will represent white and 0 will represent black. • If the gray shades are to be included then we can use 2 bit pattern to represent each pixel. • 00 is black, • 01 is dark gray, • 0 is light gray and • 11 represent white.
  • 15. • If a colored image is to be represented, then each colored pixel is decomposed into three primary colors namely Red, Green, Blue (RGB) as shown in figure. • Example of some images format are JPEG,JIFF, JPEG 2000, TIFF, RIF, GIF, PNG.
  • 16. 4. Audio • Audio can be understood same as sound. It is continuous with respect to time and not discrete like the text or numbers. • Microphone is used to convert sound into an equivalent electrical signal. The audio should be converted into a digital single before transmitting it over the medium. • Example of audio data format include WAV, WMA, Mp3, MIDI, 3gp,raw. Microphone Sound Waves
  • 17. 5. Video • The video can be either a combination of images or it can be a continuous entity (by a TV camera). • We have to change video signal into a digital signal for transmitting it via data communication system. • Example : .avi, .mov, .wmv, .mp4, .m4p, .mpeg, .mpg, .3gp. Sagar Institute of Research & Technology (SIRT) Sagar Group of Institutions, Bhopal http://www.sirtbhopal.ac.in
  • 18. • Despite ASCII code is a 7 bit code but we also use the eighth bit quite often. This bit is called as parity bit and it is added in the original set of 7 bits for data communication. • The parity bit is generally added in the most significant bit (MSB) position. What is Parity bit? Why it is used in ACSII code? P 7-bit ACSII Code word 8-bits MSB parity bit
  • 19. • This table shows the code for each character in the message to be represented. • The 8th bit is selected in such a way that the number of 1s in each code is even. E a ple: Represe t the essage JSK. i ASCII code. Use the even parity for the 8th bit in MSB 7 6 5 4 3 2 1 J 1 1 0 0 1 0 1 0 S 0 1 0 1 0 0 1 1 K 0 1 0 0 1 0 1 1 . 0 0 1 0 1 1 1 0 3 0 0 1 1 0 0 1 1 4 1 0 1 1 0 1 0 0 Character in the message Parity bit 8 ASCII
  • 20. b0 b1 b2 b3 b4 b5 b6 b7 What do you understand by MSB and LSB? MSB LSB MSB – Most significant Bit LSB – Least significant Bit
  • 21. Thank You Dr Rajiv Srivastava Director Sagar Institute of Research & Technology (SIRT) Sagar Group of Institutions, Bhopal http://www.sirtbhopal.ac.in