CS-iGCSE-CIE-Notes

Packets and packet switching

**2.1 Types and methods of data transmissionComputers communicate and send information to each other through data packets. This is a form of data transmission. When the data is too large to send in one packet, it is broken down into different packets which are reconstructed at their destination. Data packets are small pieces of data (less than 64KiB) from a larger file that have been broken down. These are then transmitted through different routes through the internet. 

Packet structure: Packet header

1) It will go through multiple routers

2) These routers choose the cheapest available path. By cheapest, it is referring to efficiency and convenience. A lot of the networks may also be congested at times. The routers will acknowledge this and send packets through alternative networks. 

3) The data is then reconstructed by the destination computer (not all packets arrive in order)*Not on testTCP (Transmission Control Protocol) checks if all packets have arrived. If they have not, it requests the server to resend those packets. However this takes a lot of time:UDP is a much faster system and is used for time-sensitive transmissions. This is because it does not check for a full connection as opposed to TCP. Benefits:* Can be used for all sizes of data

Serial and parallel

**Serial data transmission is data being sent sequentially one bit at a time on a single wire. Parallel transmission transmits one byte (8 binary bits) of data simultaneously on multiple wires.Parallel communication is much faster in comparison, however its cables are prone to distortion, specifically a type of error called skewing. Skewing is when bits arrive out of order, incorrect timing. The longer the cable, the more likely distortion will occur. Skewing is caused by interference. Parallel cables can only reliably run up to 2-5 metres where serial cables can run hundreds of miles long. Parallel transmission is usually used on computer microarchitecture such as on motherboards and RAM as the distance is very short. **

Direction of transmission

**Simplex One way - only the sender can send a signal* TV broadcasting

Universal Serial Bus

USB - Universal **Serial Bus:A type of connector/cable that deals with half-duplex and full-duplex connections. A USB has four wires. Two of these wires connect to power and ground while the other two are intended for data transmission.Reasons to use USB:- Transmits data and power* Automatically detects hardware

Error detection

2.2 Methods of error detectionDifferent errors can occur when data is transmitted over the internet. This may be due to interference, data loss or gain. Parity Check*** Form of error detection, detects if data has been interfered with

Automatic Repeat Query (ARQ)

2.2.4 Describe ARQRelies on positive or negative acknowledgment.1) Data is transmitted

2) The receiver has some form of error detection

3) If no errors are detected, positive acknowledgement is sent and the data is accepted

4) If there has been an error negative acknowledgement is sent and a request to re-transmit the data is sent

5) Timeout - time allowed to relapse before acknowledgement received. If no acknowledgement has been received, the data is resent automatically until positive acknowledgement is receivedhttp://www.bitsofbytes.co/exam-questions--error-checking.htmlSteps:1. A checksum is calculated from the sum of the bits

  1. It is transmitted alongside the data

  2. The receiver calculates another checksum from the data

  3. The two checksums are compared

  4. If they are not equal, an error has occurred1) A check digit is calculated and added to the end of the code

2) The receiver performs a second calculation

3) If the result is zero (modulo 11 and ISBN-13), then they data is correct

4) Otherwise the data is erroneous


As this is still a work in progress, feel free to view the roadmap here to check for future updates.

If you have any features you would like to suggest, or notice any issues with the website, please submit an issue on Github.

If you like the work, consider supporting us by following Madelyn’s Github or checking out Valentina’s personal website!