2. Data transmission Flashcards
Define a data packet
a small part of a message/data that is transmitted over a network
Define packet header
the part of the data packet that contains the IP addresses of the sender and receiver, and includes the packet number which allows reassembly of the data packets
Define packet trailer
The part of a data packet test indicates the end of the data packet and CRC.
Define CRC
An error checking method in which all the 1-bits I’m the data packet payload are added and the total is stored in the packet trailer.
Define payload
The actual data being carried on a data packet
Define node
Stages in a network that can receive and transmit data packets
Define packet switching
A method of transmission in which a message is broken into many data packets which can be sent along pathways independently to each other
Define router
A device that enables data packets to be moved between different networks
Define real time streaming
the transmission of data over a network for live events where the data is sent as soon as it is received or generated
Define hop/hopping number
a number in a data packet header used to stop data packets that never reach their destination from ‘clogging up’ the data paths/routes
Define simplex
data that can be sent on one direction only
Define half-duplex
data that can be sent in both directions but not at the same time
Define full duplex
data that can be sent in both directions at the same time (simultaneously)
Define serial data transmission
sending data down one channel/wire one bit at a time
Define parallel data transmission
sending data down several channels/wires several bits at a time (usually 1 byte)
Define skewed data
data that arrives at the destination with the bits no longer synchronised
Define USB
a type of serial data transmission which has become the
industry standard for connecting computers to devices via a USB port
Define parity check
a method used to check if data has been transferred correctly; it makes use of even parity (an even number of 1-bits) or odd parity (an odd number of 1-bits)
Define parity bit
a bit (either 0 or 1) added to a byte of data in the most significant bit position; this ensures that the byte follows the correct even parity or odd parity protocol
Define parity block
a horizontal and vertical parity check on a block of data being transmitted
Define parity byte
an extra byte of data sent at the end of a parity block; it is composed of the
parity bits generated from a vertical parity check of the data block
Define checksum
a verification method used to check if data transferred has been altered or corrupted; calculated from the block of data of data being sent; the checksum value is sent after each data block
Define ARQ
a method of checking transmitted data for errors; it makes use of acknowledgement and timeout to automatically request re-sending of data if the time interval before positive acknowledgement is too long
Define acknowledgment
a message sent to the receiver indicating that data has been received correctly (used in the ARQ error detection method)
Define timeout
the time interval allowed to elapse before an acknowledgement is received (in the ARQ error detection method)
Define echo check
a method used to check if data has been transferred correctly; data is sent to a receiver and then immediately sent back to the sender; the sender then checks if the received data matches the sent data
Define check digit
an additional digit appended to a number to check if the entered number is error-free; check digit is a data entry check and not a data transmission check
Define eavesdropper
another name for a hacker who intercepts data being transmitted on a wired or wireless network
Define encryption
the process of making data meaningless using encryption keys; without the correct decryption key the data cannot be decoded (unscrambled)
Define plaintext
the original text/message before it is put through an encryption algorithm
Define cipher text
encrypted data that is the result of putting a plaintext message through an
encryption algorithm
Define encryption algorithm
a complex piece of software that takes plaintext and generates a ciphertext
Define symmetric encryption
a type of encryption in which the same encryption key is used both to encrypt and decrypt a message
Define asymmetric encryption
a type of encryption that uses public keys and private keys to ensure data is secure
Define public key
a type of encryption key that is known to all users
Define private key
a type of encryption key which is known only to the single computer/user
Define quantum computer
a computer that can perform very fast calculations; it can perform calculations that are based on probability rather than simple 0 or 1 values; this gives
a quantum computer the potential to process considerably more data than existing computers
What does a packet header consist of
» the IP address of the sending device
» the IP address of the receiving device
» the sequence number of the packet (this is to ensure that all the packets can
be reassembled into the correct order once they reach the destination)
» packet size (this is to ensure the receiving station can check if all of the
packets have arrived intact).
What does packet trailer consist of
» some way of identifying the end of the packet; this is essential to allow each packet to be separated from each other as they travel from sending to receiving station
» an error checking method; cyclic redundancy checks
How does CRC error checking method work
– this involves the sending computer adding up all the 1-bits in the payload
and storing this as a hex value in the trailer before it is sent
– once the packet arrives, the receiving computer recalculates the number of
1-bits in the payload
– the computer then checks this value against the one sent in the trailer
– if the two values match, then no transmission errors have occurred;
otherwise the packet needs to be re-sent.
Describe packet switching
» each packet will follow its own path (route)
» routers will determine the route of each packet
» routing selection depends on the number of packets 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 parts of the route may
be too busy or not suitable
» packets can reach the destination in a different order to that in
which they were sent.
State the benefits of packet switching
» there is no need to tie up a single communication line
» it is possible to overcome failed, busy or faulty lines by simply re-routing
packets
» it is relatively easy to expand package usage
» a high data transmission rate is possible.
State the drawbacks of packet switching
» packets can be lost and need to be re-sent
» the method is more prone to errors with real-time streaming (for example, a
live sporting event being transmitted over the internet)
» there is a delay at the destination whilst the packets are being re-ordered.
How are packets lost
they keep ‘bouncing’ around from router to router and never actually reach their destination.
How does hopping work
Each packet has a maximum op 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
a request to re-send these packets will be made.
What are the factors needed to be considered when transmitting data
» the direction of data transmission (for example, can data transmit in one direction only, or in both directions)
» the method of transmission (for example, how many bits can be sent at the same time)
» how will data be synchronised (that is, how to make sure the received data is in the correct order).
What happens When a device is plugged into a computer using one of the USB ports
» the computer automatically detects that a device is present (this is due to a small change in the voltage on the data signal wires in the USB cable)
» the device is automatically recognised, and the appropriate device driver software is loaded up so that the computer and device can communicate effectively
» if a new device is detected, the computer will look for the device driver that matches the device; if this is not available, the user is prompted to download the appropriate driver software (some systems do this automatically and the user will see a notice asking for permission to connect to the device website).
State errors that can occur during data transmission
» interference (all types of cable can suffer from electrical interference, which can cause data to be corrupted or even lost)
» problems during packet switching (this can lead to data loss – or it is even possible to gain data!)
» skewing of data (this occurs during parallel data transmission and can cause data corruption if the bits arrive out of synchronisation).
Describe the checksum process
» when a block of data is about to be transmitted, the checksum is calculated from the block of data
» the calculation is done using an agreed algorithm (this algorithm has been agreed by sender and receiver)
» the checksum is then transmitted with the block of data
» at the receiving end, the checksum is recalculated by the computer using the
block of data (the agreed algorithm is used to find the checksum)
» the re-calculated checksum is then compared to the checksum sent with the
data block
» if the two checksums are the same, then no transmission errors have occurred;
otherwise a request is made to re-send the block of data.
Describe echo check
» a copy of the data is sent back to the sender
» the returned data is compared with the original data by the sender’s computer
» if there are no differences, then the data was sent without error
» if the two sets of data are different, then an error occurred at some stage
during the data transmission.
What kind of errors can be detected by check digit
» 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 of 30 (thirty).
Describe ISBN-13 method
1) add all the odd numbered digits together
2) add all the even numbered digits together and multiply the result by 3
3) add the results from 1 and 2 together and divide by 10
4) take the remainder, if it is zero then use this value, otherwise subtract the remainder from 10 to find the check digit.
Recalculating ISBN-13 method
1) add all the odd numbered digits together, including the check digit
2) add all the even number of digits together and multiply the result by 3
3) add the results from 1 and 2 together and divide by 10
4) the number is correct if the remainder is zero.
Define modulo-11
1 each digit in the number is given a weighting of 8, 7, 6, 5, 4, 3 or 2 starting from the
left (weightings start from 8 since the number will become eight-digit when the
check digit is added)
2 the digit is multiplied by its weighting and then each value is added to make a total
3 the total is divided by 11
4 the remainder is then subtracted from 11 to find the check digit (note if the
remainder is 10 then the check digit ‘X’ is used).
Recalculateing modulo-11
1 each digit in the number is given a weighting of 8, 7, 6, 5, 4, 3, 2 or 1 starting from
the left
2 the digit is multiplied by its weighting and then each value is added to make a total
3 the total is divided by 11
4 the number is correct if the remainder is zero
Describe ARQ
» ARQ uses positive and negative acknowledgements and timeout
» the receiving device receives an error detection code as part of the data transmission (this is typically a Cyclic Redundancy Check ; this is used to detect whether the received data contains any transmission errors
» if no error is detected, a positive acknowledgement is sent back to the sending device
» if an error is detected, the receiving device now sends a negative acknowledgement to the sending device and requests re-transmission of the data
» a time-out is used by the sending device by waiting a pre-determined amount of time ….
» if no acknowledgement of any type has been received by the sending device within this time limit, it automatically re-sends the data until a positive acknowledgement is received ….
» or until a pre-determined number of re-transmissions has taken place
» ARQ is often used by mobile phone networks to guarantee data integrity.
How do DOS attacks work?
Large number of requests sent to server at once
Useless traffic floods the server
Server will come to a stop trying to deal with the traffic
Prevents users gaining access to the web server
What do cookies do?
Saves log-in information
Provides customized page for user
Enables target advertisements
One-click purchasing
3 functions of browsers
− Allows user to view web pages
− Renders HTML
− Allows user to bookmark/favourite web pages
− Provides navigation features
− Allows (multiple) tabs
− Stores cookies
− Records history of pages visited
− Has a homepage
− Runs active script
− Allows files to be downloaded from website/internet
− Sends a request to the IP address/web server (to obtain the contents of a web page)
− Sends URL to DNS
− Manages HTTP/HTTPS protocol
Location of a device on a network
IP address
Number that uniquely identifies device
MAC address
What are data packets+ 2 other names
Packets, datagrams
A small part of a message/data that is sent over a network which after transmission reassemble to form the original message/data
Why are data packets used
They are usually 64KiB, †hey are much easier to control and splitting them up means that they can be sent along different routes
When would data packets be beneficial
When a particular transmission route is out of action or blocked
What is a drawback of packets
The packets all need to be reassembled at the destination
What are packets split up into
Packet header
Payload
Trailer
What do packet headers consist of
IP address of the sender
IP adress of the reciever
Sequence number of packet
Packet size
What does a payload consist of
The actual data in the packet
Usually 64 KiB
What does a packet trailer contain
A method of identifying end of packet- allows them to separate from eachother
A method of error checking
What are CRC’s
Cyclic redundancy checks
Sending: adds all the one bits in payload and stores as hex value in the trailer
Recieve: recalculates no of bits in payload
Compares to trailer
Asks to resend
What does a router do
Receives data packet and based on info in header decides where to send it next
Describe the stages of packet switching
The message is split up into smaller data packets.
These packets are then independently sent over the network
Along the transmission route are nodes containing router which use the header/ IP address to determine where to send the packet
The shortest possible route is chosen
Packets reach destination in the wrong order
What are the benefits of packet switching
No need to tie up single communication line
Possible to overcome faulty lines by rerouting
Relatively easy to expand package usage
High data transmission rate is possible
What are the benefits of packet switching
No need to tie up single communication line
Possible to overcome faulty lines by rerouting
Relatively easy to expand package usage
High data transmission rate is possible
What are the drawbacks of packet switching
Packets can be lost and need to be resent
Delay while packets are being reordered
More prone to errors with real-time streaming
What is hopping
Hopping is the use of a hop number that decreases by one each time a packet leaves a router
What 3 factors need to be considered when transmitting data
By what are they considered
Direction of data(1 or 2 directions)
Method of transmission(how many bits at a time)
How will data be synchronised (to end up in the right order)
Communication protocols
When does simplex data transmission occur
When data can only be sent in One direction
Eg. Computer toPrinter
When does Half Duplex data transmission occur
When data is sent in Both directions but not at the same time
Eg. Walkie talkie
When does Full-duplex data transmission occur
When data can be sent in both directions at the Same time
Eg. Broadband network connection
When does Full-duplex data transmission occur
When data can be sent in both directions at the Same time
Eg. Broadband network connection
What is serial data transmission
Benefit
Drawback
Eg
When data is sent over a single wire one bit at a time in a single stream(can be simplex etc.)
Data arrives in order
Can be slower than parallel
Computer->USB->printer
What is parallel data transmission
Benefit
Drawback
Eg
When several bits of data are sent over multiple Chanel’s/wires at the same time
Good over short, faster than serial
Can become skewed 20m+
Internal circuits in computer
What is skewed data
Data that is out of order
What is a USB
a type of serial data transmission which has become the industry standard for connecting computers to devices via a USB port
What kind of data transmission is used by USB
Half and full duplex
What does a USB cable consist of
A 4-wire shielded cable with a red and black cable for power and green and white for data transmission
Red-5V
Black-ground
White+
Green- -
What happens when a device is plugged into a computer using a USB port
Computer detects there is a device-voltage change in data signalers
Device is recognized- appropriate software is loaded to communicate effectively
Device is not recognized-user is prompted to download appropriate software
What are the benefits of USB systems(8)
Devices are automatically detected and software is loaded
Only fits in one way -prevents incorrect connection
Support available
Can support different data transmission rates
No need for external power source
Error-free data transmission(is resent)
Easy to add more USB ports with USB hubs
Backward compatible(old versions supported)
Drawbacks of USB
Max cable length(5)-USB hub needed
Very early versions not compatible with new computers
Slower transfer rate than Ethernet connections
What is the maximum transfer rate of USB
480 Mbps
Methods of transmission
Copper cables using electrical pulses
Radio frequency (wireless)
optical fibre (light)
infrared
Use of fibre optic cables
Carry almost 100% of worldwide internet and phone traffic
Bandwidth
Amount of data that can be carried at one time