1/13
Looks like no tags are added yet.
Packet Structure
Packet Header
IP Address of Sender and Reciever
Sequence Number
Size of Packet
Payload
Actual Data contained in the packet
Trailer
Error Detection method
Method to find end of the packet
Packet Switching
Date is broken into different packets
Packets are sent via routers, routers choose the best method of transmisson so data might not be sent in order
Once data reaches sender, the packets are reordered
Different types of transmission
Serial Data Transmission
- Data wont be skewed
- Cheaper
- More reliable over long distances
Parallel Date Transmission
-Shorter Distances
- More expensive
- Risk of being skewed
- Faster
USB
Standard interface used to connect peripheral device to a computer
Backwards Compatible
Industry standard so Suffiicent help available
Can connect only one way so no errors
Automatically detected and loaded
May not connect with very old versions
Slower Transmission
Shorter
Error Checking
When data is sent theres a chance that it might
Skewed
Corrupted
Problems occured during packet switching
Error checking method is used to check no errors have occured during data transmission
Parity Check
Parity Bit - When a single bit is added to transmission to ensure data doesnt get skewed during transmission
Parity Byte - When a byte is added to a block of data to ensure no errors occurs when data is sent
Checksum
A block of data is sent along with its checksum calculated using an agreed algorithm
The reciever recalculates the checksum with the data
If data isnt sent correctly it is sent back to sender
Echocheck
Data is sent to reciever
Reciever sends this data back to sender to check if any error has occured during transmission
If error has occured sender resends the data
Check Digit
Final digit in a code calculated from the entire code used to check errors
ARQ (Automatic Repeat Query)
Data is sent along with a error checking method
The reciever checks the data
If data is sent correctly a positive acknowledgement is sent or if its not a negative acknowledgement is sent
If data takes too long its a timeout
Data is resent until positive acknowledgement
CRCs
Adding up all the bits stored in the hex values in the payload
Encryption
Its main purpose is protecting data during transmission and making sure it doesnt get intercepted. It converts plaintext into ciphertext
Symmetric Encryption
Before data is sent a private key is exchanged
Data is sent as cipher text and reciever uses the private key to change into plain text
Asymmetric Encryption
Reciever generates a public and private key which is linked to each other but cannot be traced
Reciever sends the public key to sender to encrypt the data
The sender encrypyts the data and sends it back
Data can only be unlocked with private key