- Asked 3/29
- 2069 Bhadra (old course) · 12 marks
- 2065 Magh (old course) · 1+11 marks
- 2064 Poush (old course) · 2+10 marks
Communication protocol and its need
Short answer
A communication protocol is a set of rules governing data format, transmission, and interpretation between devices. It is required because without common rules, devices cannot understand each other. Protocols provide essential functions such as encapsulation, error and flow control, addressing, and synchronization, ensuring reliable data exchange.
What is a communication protocol and why is it required in data communication? Explain.
A communication protocol is a set of agreed rules and conventions that govern how data are formatted, transmitted, received and interpreted by two or more communicating entities. Without a common protocol, devices can send bits to each other but cannot understand them, just as two people need a common language to talk.
Key elements of a protocol
- Syntax: the format and structure of data, e.g. first 8 bits are the address, next 8 bits the control field, then data.
- Semantics: the meaning of each field and the action to take, e.g. what a "NAK" means.
- Timing: when data should be sent and how fast; sequencing and speed matching.
Example: HDLC frame
| Flag | Address | Control | Data | FCS | Flag |
8b 8b 8b var 16b 8b
Why a protocol is required (functions)
- Encapsulation: adds headers (address, control, error-check bits) to user data.
- Segmentation and reassembly: breaks long messages into blocks of suitable size and rebuilds them at the receiver.
- Connection control: sets up, maintains and releases logical connections (e.g. TCP three-way handshake).
- Ordered delivery: sequence numbers allow the receiver to put data back in the correct order.
- Flow control: prevents a fast sender from overrunning a slow receiver (stop-and-wait, sliding window).
- Error control: detects errors (CRC, checksum) and recovers by retransmission (ARQ) or correction.
- Addressing: identifies source, destination, ports and connections.
- Multiplexing: many connections share one link or one lower-layer connection.
- Synchronisation: both ends agree on timing, state and frame boundaries.
- Transmission services: priority, QoS, security (encryption, authentication).
- Interoperability: equipment from different vendors and countries can work together.
Layered protocol architecture
Because communication is complex, protocols are arranged in layers; each layer uses the services of the layer below and serves the layer above. Peer layers talk using their protocol.
Host A Host B
Application <-- HTTP --> Application
Transport <-- TCP --> Transport
Network <-- IP --> Network
Data link <-- Eth --> Data link
Physical ============ Physical
| OSI layer | Function | Example protocol |
|---|---|---|
| Application | user services | HTTP, SMTP, FTP |
| Presentation | format, encryption | TLS, JPEG |
| Session | dialogue control | RPC |
| Transport | end-to-end reliability | TCP, UDP |
| Network | routing, addressing | IP |
| Data link | framing, error control | HDLC, Ethernet |
| Physical | bit transmission | RS-232, V.24 |
Types of protocols
- Direct or indirect: data passed directly between two stations, or through switches/routers.
- Monolithic or structured (layered).
- Symmetric (peer-to-peer) or asymmetric (client/server, master/slave).
- Standard (ISO, ITU-T, IETF) or non-standard (vendor specific).
Example
When a browser loads a web page, HTTP defines the request and reply format; TCP divides data into segments, numbers them, and retransmits lost ones; IP routes each packet; Ethernet frames carry packets on the LAN with a CRC. If any of these rules were missing, data would be lost, mixed up or not understood.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Communication protocol and OSI architecture · Telecommunications, chapter 8
- Switching techniques in data communication · Telecommunications, chapter 8 · asked 3×
- Short note: Routing algorithm in data communication · Telecommunications, chapter 8 · asked 2×
- Flow control mechanisms in data communication · Telecommunications, chapter 8
- Flow control in data communication network · Telecommunications, chapter 8
- Routing and need of routing protocol · Computer Networks and Security, chapter 4 · asked 2×
- Estimating, purpose and data required · Estimating and Costing, chapter 1 · asked 6×
- Estimated cost never actual; data required · Estimating and Costing, chapter 1
- Data required for detailed estimate · Estimating and Costing, chapter 1