WB Chapter 2 Data Transmission
WB Chapter 2 Data Transmission
WB Chapter 2 Data Transmission
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
b Data packets contain a header. Name three components that you would expect to find
in a header.
1
.......................................................................................................................................................................
2
.......................................................................................................................................................................
3
.......................................................................................................................................................................
2 Data transmission
c Data packets also have a payload and a trailer. Explain these two terms.
payload: ............................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
trailer: ...............................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
d
Computer B
Computer A
R1
R3
R2 R4
R5 Router B
Router A
R7
R6
R10
R8
R9
i Using the above diagram, explain how packet switching works when sending a
500 KiB file from computer 'A' to computer 'B'.
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
2 Data transmission
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
1
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
2
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
3
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
1
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
2
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
2 Data transmission
3
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
c Data packets can get lost due to 'bouncing' around from router to router and never reaching
their destination.
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
3 a Data transmission depends on data direction and how many bits of data can be sent at a
time. Complete the table below to show what type of data transmission is being
described in each case. Tick (✓) two boxes for each description.
Simplex Half-duplex Full-duplex Serial Parallel
Description of transmission taking place
(✓) (✓) (✓) (✓) (✓)
Data sent one bit at a time down a single wire
in one direction only
Data sent 16 bits at a time down 16 wires in
both directions, but not at the same time
Data sent 16 bits at a time down 16 wires in
both directions simultaneously
Data sent 8 bits at a time down 8 wires in one
direction only
Data sent one bit at a time down a single wire
in both directions simultaneously
Data sent one bit at a time down a single wire
in both directions, but not at the same time
b Five statements about serial and parallel data transmission are made in the table below.
By placing a tick (✓) in the appropriate column, select which statements refer to serial
transmission and which statements refer to parallel transmission.
2 Data transmission
4 a Explain what happens when a device is plugged into a computer using one of the USB ports.
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
b Seven statements about USB connections are made in the table below. By ticking (✓) the
appropriate box, indicate which statements are true and which statements are FALSE.
Statements True (✓) False (✓)
USB uses a protocol that allows for error-free data transmission between device
and computer
USB can support any cable length between device and computer
USB uses serial data transfer
USB connections can transfer data using half-duplex or full-duplex
It is difficult to add more USB ports to a computer using USB hubs
USB data transfer rates are much faster than, for example, Ethernet connections
There is no need for devices to have a power source because USB cable supplies 5V
of power
5 a A system uses even parity. Indicate whether the following bytes would fail or pass an
even parity check:
1 1 0 0 0 0 1 1
.............................................................................................................................................................................
1 0 1 1 0 1 1 0
.............................................................................................................................................................................
0 0 0 1 1 1 1 1
.............................................................................................................................................................................
2 Data transmission
.............................................................................................................................................................................
.............................................................................................................................................................................
c Nine bytes of data were transmitted from one computer to another computer. Even parity was
used by both systems. An additional byte, called the parity byte was also sent at the end of
the transmission.
The following table shows the nine bytes and parity byte following transmission.
Parity bit Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
Byte 1 1 1 1 0 1 1 1 0
Byte 2 1 0 0 0 0 1 0 0
Byte 3 0 1 1 1 0 0 1 0
Byte 4 0 1 1 1 1 0 1 1
Byte 5 1 1 0 0 0 1 1 0
Byte 6 0 1 1 0 1 1 0 1
Byte 7 1 0 0 1 0 0 0 0
Byte 8 0 1 1 1 1 1 0 1
Byte 9 0 0 0 0 1 0 0 1
Parity byte: 0 0 1 1 1 1 0 0
i One of the bits has been transmitted incorrectly. Indicate which bit is incorrect by
giving its bit number and byte number:
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
2 Data transmission
.......................................................................................................................................................................
iv Describe a situation where a parity check wouldn’t identify which bit had been
transmitted incorrectly.
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
v Name and briefly describe another method to check if data has been transmitted correctly.
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
6 a Explain how the checksum system is used to identify any errors during data transmission.
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
2 Data transmission
b Explain how echo checks are used to check data following data transmission.
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
c Explain how automatic repeat requests (ARQs) work during data transmission.
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
1
.......................................................................................................................................................................
.......................................................................................................................................................................
2
.......................................................................................................................................................................
.......................................................................................................................................................................
3
.......................................................................................................................................................................
.......................................................................................................................................................................
4
.......................................................................................................................................................................
.......................................................................................................................................................................
2 Data transmission
i The following algorithm generates a check digit for a 12-digit ISBN book code:
1 add all odd-numbered digits together
2 add all even-numbered digits together and then multiply the result by 3
3 add together the results for steps 1 and 2, and then divide the result by 10
4 take away the remainder of the division from 10, leaving the check digit
Showing your working, calculate the check digit for the following 12-digit ISBN code:
9 781 471 86867
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
2 Data transmission
ii The following algorithm checks that the check digit in a 13-digit code is correct:
2 add all even-numbered digits together and then multiply the result by 3
3 add together the results for steps 1 and 2, and then divide the result by 10
Showing your working, use the above algorithm to check whether or not the check digit in
the following ISBN-13 code is correct:
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
8 For each of the following ten questions, choose which of the five options corresponds to the
correct response.
a What is meant by the term ciphertext when used in encryption? Circle the correct answer.
2 Data transmission
b Which one of the following statements about asymmetric encryption is true? Circle the
correct answer.
c In encryption, which of the following is the term used to describe the message before it is
encrypted? Circle the correct answer.
A simpletext
B plaintext
C notext
D ciphertext
E firsttext
d Which of the following is the biggest disadvantage of using symmetric encryption? Circle the
correct answer.
e Which of the following is the correct name for a form of encryption in which both the sender
and the recipient use the same key to encrypt and decrypt? Circle the correct answer.
2 Data transmission
f Which of the following is the final number in a code, calculated from all the numbers in the
code, whose purpose is to find errors in data entry? Circle the correct answer.
A parity check
B checksum
D parity bit
E check digit
g Which of the following is a form of error detection that makes use of a system of
acknowledgements and timeouts? Circle the correct answer.
B echo check
C check digit
D parity bit
h Which of the following methods uses an extra bit added to a byte to ensure it contains an even
number of 1s or odd number of 1s? Circle the correct answer.
B parity check
C checksum
D check digit
E echo check
i Which of the following uses a calculated value which is sent after a block of data: the receiving
computer also calculates the value from the block of data and compares the values? Circle the
correct answer.
A parity check
B check digit
C packet switching
D checksum
2 Data transmission
j Which of the following describes the check where the receiving computer sends back a copy of
the data to the sending computer to allow it to compare the data? Circle the correct answer.
A echo check
C checksum
D parity check
E check digit
9 Some students sat a computer science exam. A number of their responses were incorrect.
Explain why the following eight responses given by the students are incorrect:
a 'A data packet header contains the MAC address of the sending computer and the receiving
computer.'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
b 'Half-duplex refers to the fact that four bits of data (half a byte) can be sent from "A" to "B"
along four single wires.'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
c 'Because USB connections can be fitted in any way, they have become the industry standard.'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
2 Data transmission
d 'Odd parity means a binary number has an odd value, for example, 01110001 (i.e. 113).'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
f 'Check digits are used to make sure data has been transmitted without errors.'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
g 'A checksum is calculated by adding up all the 1-bits in a byte, and sending this value at
the end of the byte.'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
h 'Asymmetric encryption makes use of the same key to encrypt and decrypt an encoded message.'
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
2 Data transmission
10 Five statements are shown on the left and eight computer terms are shown on the right in the
following diagram.
Cipher text
Data is made unreadable to anyone without
the necessary keys to unlock the encoded data
Echo check
11 Use the following word/phrase list to complete the paragraph below. Each word or phrase
may be used once, more than once or not at all.
» algorithm » decrypt » matching pairs » private
» asymmetric encryption » document » matching private » public
» cipher text » encrypted » mathematically » public key
» confidential » matching document » plain text » symmetric encryption
............................ makes use of a ............................ key and a ............................ key. Suppose Asif and Karl
both work for the same company, and Asif wants to send a confidential ............................ to Karl.
Asif and Karl’s computers both use the same ............................ to generate their own ............................ of
keys; these keys are ............................ linked, but cannot be derived from each other. Karl now sends
his ............................ to Asif. Asif now uses Karl’s ............................ to encrypt the document he wishes to
send to Karl.
Asif then sends his ............................ document back to Karl. Karl uses his ............................ key to unlock
Asif’s ............................ and ............................ it.