Tillförlitlig dataöverföring Flashcards
What are the 3 basic methods for error detection?
- Parity bit (even or odd number of ones) Possibly even checking a different parity maybe with 2 or 4 bits instead.
Can detect single bit errors but otherwise worst. - Checksum (check is sum added with codesum is all ones, used with IP, TCP & UDP)
Divide message in smaller chuncks. Add the chunks together with extra bits being added to the beginning. Generate a codesum. The codesum is also sent to the reciever who checks if the codesum + other sum adds up to all ones. - CRC - cyclic redundacy check (divide, send quotient together with the remainder.)
Divide by generator to get codeword. add rest to end. The reciever gets the generator and can check if it works.
FEC - forward error correction means?
If something goes wrong and the sender does not recieve the whole packet, an FEC code can be used for the sender to correct the mistake by themselves. For example having a parity bit helps to know how many 0/1 that should arrive each chunk.
Why are ACKs needed?
The sender needs to know if the reciever has recieved the message or not.
What are the three different ways the ACK procedure (Automatic repeat requests ARQ) can be done?
- Go-Back-N ARQ
n bits are sent by a sliding window. The reciever discards the frames not expected. If accepted, move window, otherwise resend. - Stop & wait ARQ
Sends one frame, waits for ack. Otherwise resend. - Selective reject (/repeat) ARQ
Send n frames. Resend specifik frames not accepted.
What are the two types of errors?
Single bit error and burst errors.
What is the difference between flow control and error control?
Flow control is to make sure the frames are sent at a speed the reciever can recieve them.
Error control is to handle errors induced by the transmittion system to the message.