Introduction to Packet Switching

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which component of a data packet contains the actual data being transmitted?

  • Payload (correct)
  • Packet Trailer
  • Hop Numbers
  • Packet Header

Packet switching guarantees that all data packets will arrive at the destination in the order they were sent.

False (B)

What is the purpose of hop numbers in a packet header?

To ensure packets don't endlessly loop between routers

A ______ is used to check whether data has been changed or corrupted following data transmission.

<p>parity check</p> Signup and view all the answers

Match the following error detection methods with their descriptions:

<p>Parity Check = Detects if an odd or even number of bits have been flipped during transmission. Checksum = Calculates a value based on the data and compares it at the receiving end. Echo Check = Sends the received data back to the sender for comparison. ARQ (Automatic Repeat Request) = Requests retransmission of data if an error is detected.</p> Signup and view all the answers

Which mode of data transmission allows data to be sent in both directions simultaneously?

<p>Full-Duplex (D)</p> Signup and view all the answers

Which of the following describes serial data transmission?

<p>Data is sent one bit at a time over a single channel. (B)</p> Signup and view all the answers

USB connections use parallel data transmission.

<p>False (B)</p> Signup and view all the answers

What is a primary advantage of using a USB-C connector compared to USB-A?

<p>Faster data transfer rates (A)</p> Signup and view all the answers

Explain how a checksum is used to detect errors in data transmission.

<p>A checksum is calculated from the data before transmission, sent with the data, and recalculated at the receiving end. If the calculated checksums do not match, an error has occurred.</p> Signup and view all the answers

Why is an echo check considered not very effective for error detection?

<p>It is difficult to determine where the error occurred. (B)</p> Signup and view all the answers

Data that is unencrypted is referred to as ______.

<p>plaintext</p> Signup and view all the answers

Symmetric encryption uses two keys: a public key and a private key.

<p>False (B)</p> Signup and view all the answers

In the context of data transmission, what is data skewing and what is it caused by?

<p>Data skewing refers to the situation where data bits arrive at their destination out of synchronization, which is caused by bits being transmitted across different channels with varying delays.</p> Signup and view all the answers

An exceedingly fast transmission is being transferred across the world. The data consists of 1,000,000,000,000,000,000,000,000,000 TB of data. The connection uses 1024-bit encryption. To ensure that no one can decipher it on the way, what is the best choice for ensuring security?

<p>Asymmetric encryption because this uses public and private keys, adding a layer of security. (A)</p> Signup and view all the answers

Flashcards

What are data packets?

Data is divided into smaller units before transmission.

What is a packet header?

Contains the sender's and receiver's IP addresses, packet sequence number, and packet size.

What is the payload?

The actual data being transmitted in a packet.

What is a packet trailer?

Contains error check info (CRC) and a way to mark the end of the packet.

Signup and view all the flashcards

What is packet switching?

A method where individual data packets can take different routes from sender to receiver.

Signup and view all the flashcards

What is simplex data transmission?

Sending data in one direction only.

Signup and view all the flashcards

What is half-duplex data transmission?

Data can be sent in both directions, but not simultaneously.

Signup and view all the flashcards

What is full-duplex data transmission?

Data can be sent in both directions at the same time.

Signup and view all the flashcards

What is serial data transmission?

Data is sent one bit at a time over a single channel.

Signup and view all the flashcards

What is parallel data transmission?

Multiple bits of data are sent simultaneously over multiple channels.

Signup and view all the flashcards

What is a USB?

Automatically detects and recognizes devices connected to a computer.

Signup and view all the flashcards

What are parity checks?

A method to check if data has been changed during transmission using even or odd numbers of 1 bits

Signup and view all the flashcards

What is a checksum?

Calculated value used to check if data is corrupted during transmission.

Signup and view all the flashcards

What is a echo check?

Data is sent back to the sender to verify its integrity after transmission.

Signup and view all the flashcards

What is Automatic Repeat Request (ARQ)?

Uses acknowledgements, timeout signals, and cyclic redundancy checks to detect errors

Signup and view all the flashcards

Study Notes

  • Data is divided into packets before being sent
  • Packets are split into:
    • Packet header: contains the IP address of the sending/receiving station, packet sequence number, packet size
    • Payload: actual data
    • Packet trailer: contains the CRC (error check)

Packet Switching

  • Data packets are sent in manageable chunks via efficient routes using routers (nodes)
  • Each data packet can take a different, independent route.
  • A sequence number in the packet header allows reassembling packets in the correct order at the receiving station.
  • Hop numbers are added to packet headers to prevent packets from endlessly bouncing between routers.

Benefits of Packet Switching

  • Avoids tying up a single communication line.
  • Can overcome failed, busy, or faulty lines by re-routing packets.
  • Relatively easy to expand package usage
  • A high data transmission rate is possible.

Drawbacks of Packet Switching

  • Packets can be lost and need to be re-sent.
  • Not ideal for real-time streaming due to potential delays in reordering packets
  • A delay at the destination may occur while packets are re-ordered

Data Transmission Modes

  • Simplex: data sent in one direction only
    • Sending data to a printer
  • Half-duplex: data sent in both directions, but not simultaneously
    • Walkie-talkies
  • Full-duplex: data sent in both directions simultaneously
    • Broadband internet

Serial Data Transmission

  • Data sent one bit at a time down a single wire/channel
    • Using a USB connection.

Parallel Data Transmission

  • Multiple bits of data are sent simultaneously down several wires/channels
    • Data transmission using internal computer circuits.
  • Serial and parallel transmission can use serial, half-duplex, or full-duplex methods.

Features of Serial Transmission

  • Less susceptible to external interference than parallel transmission.
  • More reliable transmission over longer distances.
  • Transmitted bits have no risk of being skewed
  • Suited for small amounts of data due to slower transmission rate.
  • Used to send data over long distances
  • Less expensive than parallel because it requires fewer parts

Features of Parallel Transmission

  • Faster transmission rate, making it suitable where speed is important
  • Works best over shorter distances
  • Data skew might happen when there are multiple wires/channels being used
  • Easier to program input/output operations
  • Preferred when sending large amounts of data or when data is time-sensitive.
  • Requires more hardware, making it more expensive

Universal Serial Bus (USB)

  • Industry standard serial data transmission.
  • When plugging a USB into a computer, it automatically detects the device, recognizes it, and loads the appropriate device driver.

USB Benefits

  • Automatic device detection and driver loading.
  • Connections fit only one way, preventing incorrect connections.
  • Industry standard
  • Supports different data transmission rates
  • Does not require an external power source
    • Cable provides +5V power
  • Notifies the transmitter to re-transmit data if errors are detected
  • USB ports can be easily added using USB hubs.
  • Compatible with older versions

USB Drawbacks

  • Standard USB supports a maximum cable length of 5 meters
    • USB hubs are needed to extend cable length
  • Very early USB standards may not be supported by the latest computers.
  • The latest USB versions have a slower data transfer rate compared to Ethernet connections.

USB-C

  • Latest USB connector with symmetrical 24-pin connection which fits either way round.
  • Technically USB 3.1, named USB-C to differentiate from USB-A.

Advantages of USB-C

  • Smaller and thinner, suiting trends in thinner devices.
  • Offers 100-watt power connectivity
    • Full-sized devices can be charged
  • Can carry data at 10 Gigabits per second (10 Gbps), supporting 4K video delivery.
  • Backward compatible with USB 2.0 and 3.0 using an adapter.

Need to check for errors

  • There is a risk that the data may be corrupted, lost or even gained
  • Electrical interference
  • Packet switching
  • Skewing of data

Parity Checks

  • A parity check is a method used to check whether data has been changed or corrupted following data transmission
    • Parity can be even or odd
    • The leftmost big is saved for parity bits
  • If two bits have been changed, the parity may stay the same
    • Another error detection method will be needed
  • Parity blocks can be used to determine exactly which bit has been corrupted or changed following data transmission

Checksum

  • Used to check if data has been changed/corrupted following data transmission
  • The checksum is calculated by the sending computer
  • The data is re-calculated by the receiving computer
  • Differences in the chekcsum indicates an error

Echo Check

  • Requires data to be sent back to the sending computer where it is compared with the data originally sent
  • Errors of the data is re-sent

Check Digits

  • Used to identify any errors following data entry
  • Barcodes are used to ensure the barcode is read correctly

Automatic Repeat Requests (ARQ)

_ Commonly used by mobile phone networks

  • ARQ uses positive/negative acknowledgements and signals
  • The receiving device creates a positive acknowledgement
  • A timeout is used by the sending device by waiting a pre-determined amount of time

Encryption

  • When data is transmitted over public networks, there is a risk of it being intercepted
  • Encryption alters the form which is unreadable
  • The original data is called plaintext and the encrypted data is called ciphertext
  • Encryption can't stop data being intercepted, but prevents it from making sense*

Symmetric Encryption

  • Uses a single encryption key
  • The same key is used to encrypt data and to decrypt data
  • Modern encryption keys use 256-bit encryption

Asymmetric Encryption

  • Uses two keys: a public and private key
  • Matching pairs are generated by an encryption algorithm
  • Both types of keys are needed to encrypt and decrypt messages

Computer Architecture

  • The objectives include Computer Architecture, Data Storage, and Network Hardware

Central Processing Unit (CPU)

  • Responsible for executing and processing a computer's data/instructions.
  • Consists of the following:
    • CU (Control Unit)
    • ALU (Arithmetic and Logic Unit)
    • Registers and Buses

Microprocessor

  • An integrated circuit also referred to as a processor or CPU. Contains:
    • ALU
    • Control Unit to enable instruction interpretation and operation. Also contains:
    • System clock
    • Primary Memory.

Von Neumann Architecture

  • The concept of a Central Processing Unit (CPU or Processor)
  • The Processor was able to access the memory directly
  • Computer memories could store programs and data
  • Stored programs were made up of instructions that could be executed in sequential order

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Packet-Switching Basics and Advantages Quiz
5 questions
Introduction to Packet-Switching
10 questions
Packet-Switching Basics and Advantages
10 questions
Use Quizgecko on...
Browser
Browser