Data packets and compression Flashcards

1
Q

why would you split up the data into different smaller packets

A

each data can be sent on a different route to its destination - good if a particular route was very busy / out of action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a drawback of splitting up data into different packets

A

have to reassemble the data back when it reaches its destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3 sections that a packet is typically split into

A

packet header
payload
trailer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does the packet header consist of

A

IP address of sending / receiving device
sequence number of packets (so that they can be reassembled in the correct order)
packet size (ensure that the receiving station can check if all of the packets have arrived)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does the payload consist of

A

actual data being sent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does the trailer consist of

A

a way of identifying the end of the packet - to allow each packet to be separated from eachother as they travel
an error checking method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is cyclic redundancy check (how does it work)

A

when the sending computer adds up all the 1 bits in the payload and then stores this as a hex value in the trailer before it is sent
the receiving computer recalculates the number of bits in the payload
computer checks this value against the value in the trailer
if the two values match, no transmission errors have occurred - if it doesn’t match, data needs to be resent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is packet switching

A

method of data transmission in which a message is broken up into number of packets
each packet can be sent independently from start to end point
at the destination, the packet needs to be reassembled

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what happens at each stage of transmission in packet switching

A

there are nodes that contain a router
each router determines which route the packet needs to take to reach its destination using destination IP address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

benefits of packet switching

A

possible to overcome failed / busy lines by re-routing packets
high data transmission rate
no need to tie up a single communication line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

drawbacks of packet switching

A

packets can be lost and need to be resent
more prone to errors than real-time streaming
delay at the destination as the packets need to be reordered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

why would you compress a file?

A

to save storage space on devices such as a hard disk drive / solid state drive
reduce time taken to stream a music / video file
reduce time taken to upload / download / transfer files across a network
can reduce costs by reducing file size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is lossless compression

A

all the data bits from the original file are reconstructed when the file is uncompressed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

why might lossless compression be important

A

important for files where data loss is disastrous - eg. spreadsheet file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

features of lossless compression

A

code must be exact same as the original file or else it won’t work
a compression algorithm is used
no data is removed in the process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what happens to text files in lossless compression

A

in a text file, repeated words are identified and replaced by an index
the number of times a word appears is stored

17
Q

what is lossy compression

A

file compression algorithm eliminates any unnecessary bits of data
impossible to get the original file back once compressed

18
Q

features of lossy compression

A

used for video files (MPEG)
makes the file smaller than lossless
quality can be reduced but the file will still run
redundant data is removed

19
Q

what are MIDI files

A

communications protocol that allows electronic musical instruments to interact with eachother

20
Q

what do MIDI files consist of

A

list of commands that instructs a device how to produce a particular sound or musical note

21
Q

how does MP3 convert music and sounds into MP3 format

A

using audio compression that reduces size of normal music file by 90%

22
Q

what compression does MP3 use

A

lossy format as part of their original file is lost due to a compression algorithm

23
Q

what is perceptual music shaping

A

removes sounds a human ear cannot detect
when two sounds are played simultaneously, the softer sound is removed

24
Q

differences between MP3 and MIDI

A

mp3 is a digital recording of a sound whilst midi is an instruction of how to make a sound
mp3 is made by recording software whilst midi is made by digital musical instruments

25
Q

what are MP4s

A

stores multimedia

26
Q

what is a file format used to reduce photographic file sizes

A

JPEG - lossy file compression (original file cannot be reconstructed)

27
Q

how is a file of an image reduced without showing much difference

A

it separates pixel color from brightness and images can be split into 8 x 8 pixel blocks which allows certain information to be discarded from the image