Professional Documents
Culture Documents
Communication
When data is sent from one device to another, it is important to consider
how that data is transmitted.
Data Transmission
three factors need to be considered when transmitting data :
1- the direction of the data transmission
2- the method of transmission ( How many Bits)
3- the method of synchronisation between the two devices
Mr kareem sharaf
Data Transmission
Number one
The direction of the data
transmission
Transmission mode
Mr kareem sharaf
HALF,DUPLEX DATA
TRANSMISSION
data can be sent from 'A' to 'B' or from 'B' to 'A' along the same line, but
not at the same time). Example: a phone conversation between two
people where only one person speaks at a time .
Mr kareem sharaf
FULL-DUPLEX DATA
TRANSMISSION
Data can be sent from 'A' to ' B' and from 'B' to 'A' along the same line,
both at the same time) . Example: broadband connection on a phone line
Mr kareem sharaf
Data Transmission
Number Two
The method of transmission ( How
many Bits)
Data Transmission
Mr kareem sharaf
Data Transmission
Data
Transmission
Serial parallel
Mr kareem sharaf
Data Transmission
Number three
the method of synchronisation between the
two devices
Asynchronous synchronous
Mr kareem sharaf
There will be several possible routes for the pockets, between computer A' (sender) and
computer 'B' (receiver).
Each stage in the route contains a router (or node). A router receives o data
packet and, based on the information in the header, decides where to send it
next.
Suppose our photograph has been split up into three pockets that
have been sent in the following order:
» Each pocket will follow its own path (route)
» Routers will determine the route of each pocket
» Routing selection depends on the number of pockets waiting to be processed at
each node
» The shortest possible path available is always selected - this may not
always be the shortest path that Could be taken, since certain ports of the
route may be too busy or not suitable, unfortunately, packets on reach the
destination in a different order to that in which they were sent.
Advantages of Packet Switching
» There is no need to tie up a single communication line
» During a crisis or disaster, when the public telephone
network might stop working, emails and texts can still be
sent via packet switching by simply re-routing pockets
» It is relatively easy to expand package usage
» A high data transmission rate is possible.
» Devices of different speeds can communicate
Disadvantages of Packet Switching
» Packets can be lost and need to be re-sent
» This method is not so good for some types of data
streams (e.g., real-time video streams can lose frames
due to the way packets arrive out of sequence)
» There is a delay at the destination whilst the pockets
are being re-ordered.
Hopping and Hop Numbers
Sometimes it is possible for packets to get lost because they keep
'Bouncing' around from router to router and never actually reach their destination.
Eventually the network would just grind to a halt as the number of lost packets mount
up, clogging up the system. To overcome this, a method called hopping is used. A hop
number is added to the header of each packet, and this number is reduced by 1 every
time it leaves a router.
Hopping and Hop Numbers
Each packet has a maximum hop number to start with. Once a hop number reaches
zero, and the packet hasn’t reached its destination, then the packet is deleted when it
reaches the next router. The missing packets will then be flagged by the receiving
computer and a request to re- send these pockets will be made
Mr kareem sharaf
Error-checking methods
Checking for errors is important since computers aren't able to check
that text
is correct; they can only recognise whether a word is in their built-in
dictionary or not
The methods covered in this section are :
• parity checking
• automatic repeat request (ARQ)
• checksum
• echo checking.
Mr kareem sharaf
Parity checking
PARITY CHECKING is one method used to check whether
data has been changed or corrupted following transmission
from one device or medium to another device or medium.
Mr kareem sharaf
Past paper
State what is meant by the terms:
Parallel data
transmission .........................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..
Serial data
transmission ...........................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..
Mr kareem sharaf
Past paper
Give one benefit of each type of data transmission.
Parallel data transmission
Benefit ..................................................................................................................
...............................................................................................................................
.........................................
Serial data transmission
Benefit ..................................................................................................................
...............................................................................................................................
.........................................
Mr kareem sharaf
Past paper
Give one application of each type of data transmission. Each application
must be different.
Parallel data transmission
Application .........................................................................................................
...............................................................................................................................
...........................................
Serial data transmission
Application .........................................................................................................
...............................................................................................................................
...........................................
Mr kareem sharaf
Odd Even
Mr kareem sharaf
THE PROTOCOL
rules and instructions that each computer follows. A specific set of
communication rules Before data is transferred, an agreement is made
between sender and receiver regarding which of the two types of parity
are used. If a byte has been transmitted from 'A' to 'B', and even parity is
used,
an error would be flagged if the byte now had an odd number of I-bits
at the receiver's end
Mr kareem sharaf
EXAMPLE 1
three I -bits, which means it now has
In this case, the receiver's byte has
odd parity whilst the byte from the sender had even parity ( four I-bits).
This clearly means an error has occurred during the transmission of the
data. The error is detected by the computer recalculating the parity of the
byte sent. If even parity has been agreed between sender and receiver,
then a change of parity in the received byte indicates that a transmission
error has occurred.
Sender’s byte
0 1 0 1 1 1 0 0
Receiver's byte
0 1 0 0 1 1 0 0
Mr kareem sharaf
EXAMPLE 1
In this example, nine bytes of data have been transmitted. Agreement has been made that even
parity will be used. Another byte, known as the PARITY BITE, has also been sent. This byte
consists entirely of the parity bits produced by the vertical parity check. The parity byte also
indicates the end of the block of data. The following table shows how the data arrived at the
receiving end:
byte 8 (row 8 ) has
incorrect parity
(there are three 1-bits)
• bit 5 (column 5 )
also has incorrect
parity (there are
five 1-bits).
Answer that
The following block of data was received after transmission from a remote computer;
odd parity Being used by both sender and receiver. One of the bits has been changed
during the transmission stage. Locate where this error is and suggest a Corrected byte
value
Mr kareem sharaf
Automatic Repeat Request
(ARQ)
Automatic Repeat Request (ARQ) is another method used to check
whether data has been correctly transmitted.
It uses an ACKNOWLEDGEMENT (a message sent by the receiver
indicating that data has been received correctly) and Timeout (this is the
time allowed to elapse before an acknowledgement is received).
If an acknowledgement isn't sent back to the sender before time out
occurs, then the message is automatically resent.
Mr kareem sharaf
Checksum
CHECKSUM is another way to check if data has been changed or
corrupted following data transmission. 1-Data is sent in blocks and an
additional value, the checksum, is also 2- sent at the end of the block of
data. To 3-explain how this works, we will assume the checksum of a
block of data. is I byte in length. This gives a maximum value of28 - 1
(i.e. 255 ). 111e value 0000 0000 is ignored in this calculation
Mr kareem sharaf
Checksum
Answer way must be save it
1-Divide the sum X add the bytes by 256
2-round the answer down to the nearest whole number Y
3- Z = Y * 256
4- Calculate the difference ( X – Z )
5- The value is the checksum
Mr kareem sharaf
Example 1
If the sum of all the bytes in the transmitted block of data is<= 255, then
the checksum is this value. However, if the Sum of all the bytes in the
data block> 255, then the checksum Suppose the value of X is 1185
Answer:
1- to 1185/256 = 4.629
2- Rounding down nearest whole number gives Y = 4
3- Multiplying by 256 gives Z = Y * 256 = 1024
4- The difference (X - Z) gives the checksum: (ll85 - 1024) = 161
5- This gives the checksum = 161
Mr kareem sharaf
Echo check
With ECHO CHECK, when data is sent to another device, this data is
sent back again to the sender. The sender compares the two sets of data
to check if any errors occurred during the transmission process. As you
will have no doubt worked out, this isn't very reliable. If the two sets of
data are different, it isn't known whether the error occurred when
sending the data in the first place, or if the error occurred when sending
the data back for checking! However, if no errors occurred then it is
another way to check that the data was transmitted correctly.
Mr kareem sharaf
Internet technologies
The internet is a world wide system of computer networks and
computers. All computers attached to the internet can communicate
with each other providing a number of rules and protocols are adhered
to.
Mr kareem sharaf
Web browsers
software which allows a user to display a web page on their computer screen . Web browsers
interpret or translate the HTML code from websites and show the result of the translation
the following features:
• they have a HOME page
• they have the ability to store a user's favorite websites/pages
• they keep a history of the websites visited by the user
• they give the ability to go backward and forward to websites opened .
Mr kareem sharaf
Web browsers
The web browser will break up the URL into three parts:
http://www.hoddereducation.eo.uk/igcsc_comp11ter_science
Past paper
Bytes of data transferred using a
serial cable are checked for errors at the
receiving end using an
even parity check.
Can these bytes of data pass the even parity check?
(a) 01010101
……………………………………………………………………………..
(b) 11001000
…………………………………………………………………………….
(c) How can any errors be corrected?
………………………………………………………………………………………
………..
………………………………………………………………………………………