EoY (chapter 2: Data Packets, Data Transmission Methods, Error Checking Methods (Not ISBN or Modulo11) Flashcards

1
Q

Basic info about data packets

A
  • sometimes called datagrams
  • usually 64KiB (quite small data) since it’s easier to control than large amounts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

packet structure?

A
  • packet header
  • payload
  • trailer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is in the packet header?

A
  • IP address of the sending device
  • IP address of the receiving device
  • sequence number of the packet (to make sure the packets can be reassembled)
  • packet size (to check if all the packets have arrived intact)
  • value indicating how many total packets there are in the transmission
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is in the payload?

A
  • the actual data being sent in the packet (usually around 64KiB)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is in the trailer?

A
  • some way of identifying the end of the packet
  • an error checking method (CRCs)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is packet switching?

A

a method of data transmission in which a message is broken up into a number of packets

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

how does packet switching work?

A
  • file is split into packets
  • each packet follows it’s own route
  • routers determine the route of each packet (it always chooses the shortest possible path available)
  • packets reach the destination and are reassembled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

benefits of packet switching

A
  • no need to tie up a single communication line
  • possible to overcome failed or busy lines by re-routing packets
  • relatively easy to expand packet usage
  • high transmission rate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

drawbacks of packet switching

A
  • packets can get lost and need to be re-sent
  • prone to errors with real-time streaming
  • there is a delay while packets are being re-ordered at the destination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

types of data transmission

A
  1. simplex
  2. (full) duplex
  3. half duplex
  4. serial
  5. parallel
  6. asynchronous
  7. synchronous
  8. USB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

simplex?

A

data is transmitted one way only (ex. computer to printer)

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

duplex?

A

data transmitted both was at the same time (ex. online gaming or face chatting)

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

half duplex?

A

data transmitted both ways, but NOT at the same time (ex. walkie-talkie)

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

serial?

A
  • one bit sent at a time over a single wire
  • (ex. computer to printer)
  • sending data externally between devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

parallel?

A
  • multiple bits sent at the same time using multiple wires
  • (ex. computer to modem)
  • sending data internally
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

why is serial used instead of parallel to connect devices to PCs?

A
  • single wire has less chance of corruption
  • single wire is less expensive
  • more reliable over distances
  • bits are still synchronized after transmission
17
Q

asynchronous?

A
  • data transmitted in an agreed bit pattern
  • data bits (1s and 0s) are grouped together and sent with CONTROL BITS
  • retriever of the data knows where the data starts and ends
  • prevents data becoming mixed up
  • control bits make it possible to separate groups of data as they arrive
18
Q

synchronous?

A
  • continuous stream of data
  • data is accompanied by timing signals (generated by an internal clock) to ensure the sender and receiver are synchronized
  • the receiver counts how many bits were sent and then reassembles them into bytes of data
  • it is faster than asynchronous
19
Q

USB?

A
  • USB = universal serial bus
  • it is a data transmission method
  • bits are sent one at a time
  • devices are automatically detected
  • USB only fits one way so it can’t connect incorrectly
  • it’s industry standard
  • backwards compatible
20
Q

what are the error checking methods?

A
  • parity checking
  • automatic repeat request (ARQ)
  • checksum
  • check digits
  • echo checking
21
Q

why do we need to error check?

A
  • there is always a risk that the data has been corrupted or changed after transmission
22
Q

why do errors happen?

A
  • interference
  • problems during packet switching (leads to data loss)
  • skewing of data (causes bits to be out of synchronization)
23
Q

parity check?

A
  • checks a byte of data
  • a parity bit is added
  • counts the number of 1s
  • can be odd or even
  • if parity is incorrect error is detected
24
Q

when will parity check not work?

A
  • if two bits are interchanged (swapped)
  • if there are multiple errors in the same byte
25
Q

ARQ?

A
  • ARQ = automatic repeat request
  • uses acknowledgment ( a message sent but he receiver saying that the data was received)
  • checks performed on receiving data
  • if an error is detected a request is sent to resent data
  • the resend request is repeated until data is sent correctly
  • the acknowledgment that data is received is sent
  • if the acknowledgment is not received in the set time the data is resent
26
Q

checksum?

A
  • value calculated from the data just before transmission
  • it is added and transmitted with the data
  • the value of recalculated after the transmission
  • values are compared to check for any errors
27
Q

echo check?

A
  • when data is sent to another device, the data is sent back until it receives the correct data
  • echo checks has A LOT of problems (it can’t know where the error occurred and is very repetitive and time consuming)
28
Q

check digits?

A
  • check digit = final digit included in a code
  • used to identify errors in data entry caused by mistyping or mis-scanning