CSC263 ยท 2079 ยท 5 marks
Write short notes on (any two): a. Protocol and standards b. Switch c. Checksum
Write short notes on (any two): a. Protocol and standards b. Switch c. Checksum [5]
Quick answer
A protocol is a set of rules that governs data communication between devices in a network. Without a protocol, two devices may be connected but cannot communicate meaningfully.
Short Notes (Any Two)
a. Protocol and Standards
Protocol
The three key elements of a protocol are:
| Element | Description |
|---|---|
| Syntax | Refers to the structure and format of the data. It defines how data is arranged (e.g., which bits represent the address, which represent the data). |
| Semantics | Refers to the meaning of each section of bits. It identifies the route to be taken or the final destination of the message. |
| Timing | Refers to two characteristics: when data should be sent and how fast it should be sent. |
Examples of protocols: HTTP, SSH, SMS, FTP, TCP/IP.
Standards
Network standards define the rules for data communications that are needed for interoperability of networking technologies and processes. Standards:
- Help create and maintain open markets
- Allow different vendors to compete on quality while remaining compatible with existing products
- Simplify network design and operation
Example of a standards body: ITU-T (International Telecommunication Union - Telecommunication Standardization Sector), based in Geneva, Switzerland, which coordinates standards for telecommunications globally.
c. Checksum
Checksum is an error detection technique used in data communication to detect errors that may have been introduced during transmission or storage.
How Checksum Works
At the Sender Side:
- The data is divided into equal segments of a fixed number of bits (e.g., 16-bit segments).
- All segments are added together using binary addition.
- If there is a carry in the final sum, it is wrapped around (added back to the result).
- The 1's complement of the final sum is computed. This is the checksum value.
- The checksum is appended to the data and transmitted.
At the Receiver Side:
- The receiver divides the received data (including checksum) into the same fixed-size segments.
- All segments are added together.
- The 1's complement of the total sum is computed.
- If the result is all zeros (0000...0), the data is accepted as error-free.
- If the result is not zero, an error is detected and the data is discarded.
Example
Suppose we have two 8-bit segments to transmit:
Segment 1: 10011001
Segment 2: 11100110
Step 1 - Add the segments:
10011001
+ 11100110
----------
101111111 (9-bit result, carry occurs)
Step 2 - Wrap around the carry:
01111111
+ 1
----------
10000000
Step 3 - Take 1's complement (flip all bits):
Checksum = 01111111
This checksum is sent along with the data. At the receiver, all three values (segment 1 + segment 2 + checksum) are added, and the 1's complement of the result should be 00000000, confirming no error.
Key Points
- Checksum is used in protocols such as TCP, UDP, and IP.
- It is noted in the Data Plane layer (IP header checksum).
- It is more powerful than simple parity checking but less powerful than CRC.
- It can detect burst errors but may miss some error combinations.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.