unit 2 Flashcards
(28 cards)
What does a packet of data in a unit contain?
- packet header
- payload
- trailer
What does the packet header include?
- destination address
- packet number
- originator’s address
Process of packet switching:
- Data is broken down into packets
- Each packet could take a diff route
- A router controls the route a packet takes
- Packets may arrive out of order
- Once last packet arrives packets are reordered.
Different methods of data transmission:
- serial
- parallel
- simplex
- half-duplex
- full-duplex
Serial data transmission
A transmission method where data is sent one bit at a time down a single wire.
what is packet switching?
A method of transmitting data packets across a network.
Advantages & disadvantages of serial
Ad
- sent one bit at a time, arrives in order of sequence, less chance of data getting mixed up.
- sent along single wire so less chance of interference(error in data)
-only one wire is needed for a serial tansmission cable, so cheap to buy
Dis
-data sent one bit at a time so data transmission is slower.
- additional data may need to be sent to indicate to the recievinf device when transmission has started(start and stop bit).
Parallel
a transmission method where data is sent multiple bits at a time down multiple wires.
Advantages & disadvantages of parallel
Ad
- data sent multiple bits at a time, transmission is quicker.
- no need to convert to serial transmission to transmit data across a network.
Dis
- as data sent multiple bits at time, bits not arrived in order, increases risk of skewed data.
-multiple wires means more chance of interference, more errors in data.
- multiple wires, expensive
simplex
transmission method where data is transmitted in a single direction only.
half-duplex
transmission method where data is transmitted in both directions, but in one direction at a time.
full duplex
transmission method where data is transmitted in both directons at the same time.
what is the USB interface and how is it used to transmit data?
advantages & disadvantages of USB interface
Ad
- simple interface. USB cable to devixe can only fit into USB one way. Less errors in connecting devices are made.
- Speed of USB connection is high, data can be transferred quickly.
- A USB connection can be used to charge a device.
Dis
- length of a USB cable is limited
- Transmission speed high but not as high as other types of connection.
Types of error detection methods that check data after transmission
-parity check
-checksum
-echo check
Why do we need to check for errors?
in process of data transmission errors can occur due to interference. E.g data loss, data gain
parity check
error detection method that adds an additional bit to each byte to create an odd or even sum. If even amount of 1´s, even parity.
checksum
error detection method that performs a calculation on the data to create a checksum value.Checksum values are compared after transmission to see if they match.
error check
error detection method that send a copy of the transmitted data back to the sender to be compared with the original data sent.
ARQ(automatic repeated request)
error detection method that uses acknowldgement and timeout to see if data has arrived correctly after transmission.
negative acknowldegement
- sending device transmits the first data packet.
- recieving device recieves the data packet and checks it for errors.
- If recieving device detects no errors, no further action is taken.
- if recieving device does detect errors it will send a negatiev acknowledgement back to sender.
- If sender recieves - ack then means data sent incorrectly so can resend data packet.
- timeout set by sending device, if doesnt recieve - ack before time out, it doesnt wait to send next data packet.
positive acknowledgement
-sending device transmits the first data packet.
- receiving device receives the data packet and checks it for errors.
- once receiving device knows has been sent data error free, sends + ack.
- if sending device no receive + ack within set timeframe, timeout occurs.
- when timeout occurs, the sending device resends data packet. Keep doimg this when timeout occurs unil gets a + ack.
encryption
A method of securing data for storage of transmission that scrambles it and makes it meaningless.
encryption key
type of algorith used to encrypt data