ch2 Cs
ch2 Cs
CHAPTER 2: DATA
CHAPTER 2.1
Types and
modes of Data
Transmission
IGCSE COMPUTER SCIENCE
Do you like Computer
Science ?
YES (actually
no) :D
HOW IS DATA (TEXT, IMAGE, AND SOUND)
TRANSMITTED?
YES
!
Computer
Science
is Easy
LESSON
OBJECTIVE
Secret
Message P2
P3
Each packet can be sent along a different
route Any Route
P
1
Secret
Message P2 Destination
P3
One disadvantage : Data needs to be reassembled
when it reaches the destination.
P
1 Secret
Message Destination
P2
P3
Packet
Structure
P1
• Serial
• Parallel
Types of data transmission - Serial
• Serial data transmission occurs when data is sent ONE
BIT AT A TIME over a single wire/channel.
• Bits are sent one after the other as a single stream.
101110
Sender Receiver
01
Transmission Mode
• Simplex
• Half-duplex
• Full-duplex
Transmission mode - Simplex
"OVER OVER"
WALKIE
TALKIE "YES?"
Transmission mode - Full-duplex
• Full-duplex mode occurs when data can be sent in BOTH
DIRECTIONS AT THE SAME TIME (for example, data can be
sent from ‘A’ to ‘B’ and from ‘B’ to ‘A’ along the same
transmission line simultaneously).
BROADBAND
INTERNET
CONNECTION
ACTIVITY TIME!!!
x
Half- • Enable two-way transmission • Delay in the
using full bandwidth communication
Duplex
Serial Simplex
Parallel Half-duplex
Full-duplex
QUIZ
Which types of data transmission are being
TIME!!
described:
!!
data is being sent 8 bits at a time in one
direction only
Types of data transmission Transmission Mode
Serial Simplex
Parallel Half-duplex
Full-duplex
QUIZ
Which types of data transmission are being described:
TIME!!
data is being sent 16 bits at a time in both directions
!
simultaneously
Serial Simplex
Parallel Half-duplex
Full-duplex
Which types of data transmission are being described:
QUIZ data is sent one bit at a time in both directions
TIME!! simultaneously
!
Types of data Transmission Mode
transmission
Serial Simplex
Parallel Half-duplex
Full-duplex
H.W ACTIVITY 2.2
Complete Activity 2.2
PA S T Y E A R Q U E S T I O N S
PA S T Y E A R Q U E S T I O N S
PA S T Y E A R Q U E S T I O N S
PA S T Y E A R Q U E S T I O N S
Chapter 2.2
Universal Serial
Bus (USB)
YEAR 10
Universal Serial Bus (USB)
• Universal serial bus is a form of SERIAL data transmission.
Methods of
error detection
Year 10
HELP!
Computers are dumb, they will detect if a message makes
sense.
Sounds good
The need to check for errors.
Automatic
Checksum Repeat
Request
Parity Checks
• Parity checking is one method used to check whether data has been
changed or corrupted following data transmission. This method is
based on the number of 1-bits in a byte of data.
• The parity can be either called EVEN (that is, an even number of 1-bits
in the byte) or ODD (that is, an odd number of 1-bits in the byte).
• One of the bits in the byte (usually the most significant bit or left-most
bit) is reserved for a parity bit.
SETTING UP THE PARITY BIT - EVEN PARITY
The parity bit is set according to whether the parity being used is even or odd. For
example, consider the byte:
1 1 0 1 1 0 0
What should I put here if I want an EVEN number of 1s?
0 1 1 0 1 1 0 0
0, awesome!
SETTING UP THE PARITY BIT - ODD PARITY
The parity bit is set according to whether the parity being used is even or odd. For
example, consider the byte:
1 1 0 1 1 0 0
What should I put here if I want an ODD number of
1s?
1 1 1 0 1 1 0 0
1, Awesome!
Steps to set up a parity bit:
1 1 0 1 1 0 0
• Count the number of 1s
• Ask a question:
• Even parity: What digit should I put in the empty box if I
want an EVEN number of 1s?
• Odd parity: What digit should I put in the empty box if I want
an ODD number of 1s?
• Decide yourself based on the question!
The parity bit is set according to whether the parity being used is even
or odd. For example, consider the byte:
0 1 0 1 1 0 0
What should I put here if I want an EVEN number of
1s?
1 1 1 0 1 1 0 0
The parity bit is set according to whether the parity being used is even
or odd. For example, consider the byte:
0 1 1 1 1 0 0
What should I put here if I want an ODD number
of 1s?
1 1 1 0 1 1 0 0
Do it yourself!
1
1 1 1 1 1 0 0
)
The byte uses EVEN PARITY, what should be the parity bit?
2
1 1 0 1 0 0 0
)
The byte uses ODD PARITY, what should be the parity bit?
How is parity being used?
Message
0 1 1 0 1 1 0 0
0 1 1 0 0 1 0 0
the byte. The error is detected by the recipient’s computer contain even
number of 1
re-calculating the parity of the byte sent.
Do it yourself - does any error occur?
1 1 1 0 1 1 0 1
)
Message (odd parity is used)
2
1 1 1 1 1 1 1 1
)
Opps, there is a problem with parity
check ... Message
0 1 0 1 1 1 0 0
Even parity
is used
Parity check will not work if two bits are corrupted!
Message
0 1 1 1 1 1 0 1
Even parity
is used
In all these cases, the byte has clearly been corrupted, but the bytes have
retained even parity. Therefore, no error would be flagged in spite of the
obvious errors in transmission.
Remember: When two bits are corrupted, parity check fails.
Along with your peer complete
activity 2.4,2.5 of your book , come
up with answers!!
ACTIVITY 2.6 (BOOK)
EXAMPLES – CHECKSUM IN ACTION
Echo Check
• Upon receiving a message, the receiver will immediately
send a copy back to the sender.
• The receiving device receives an error detection code as part of the data transmission. This is
used to detect whether the received data contains any transmission error.
• If an error is detected, the receiving device now sends a negative acknowledgement to the
sending device and requests re-transmission of the data.
• If no acknowledgement of any type has been received by the sending device within the time
limit (timeout), it automatically re-sends the data until a positive acknowledgement is
received.
EXAMPLES – ARQ IN ACTION
Check Digits
• The error detection systems described above help to spot
errors during the transmission of data between two
different devices. Sometimes, data discrepancies can occur
due to human input errors.
• an incorrect digit entered, for example 5327
entered instead of 5307
• Transposition errors where two numbers have
changed order, for example 5037 instead of 5307
• Omitted or extra digits, for example 537 instead of
5307 or 53107 instead of 5307
• Phonetic errors, for example 13 (thirteen), instead
International Standard Book Numbers