DEV Community

Cover image for One Commit at a Time ! Series - 30
Annapoorani Kadhiravan
Annapoorani Kadhiravan

Posted on Edited on

One Commit at a Time ! Series - 30

What are Protocols ( How the data exchange will happen in between different machines )

Network protocol is a collection of rules that governs how data is transmitted, received, and interpreted between devices on a network, regardless of their internal structure or design.

Defines what, how, and when data is communicated.
Enables communication between heterogeneous devices.
Ensures reliable and standardized data exchange.
Prevents data loss, duplication, and misinterpretation.

Working of Network Protocols
Network protocols work by dividing communication tasks into layers, where each layer performs a specific function to ensure successful data transmission.

  1. Communication is based on the OSI model, which consists of 7 layers.
  2. Each OSI layer uses specific protocols to perform its task.
  3. Data moves layer by layer from sender to receiver.
  4. Example: Internet Protocol (IP) operates at the Network Layer and handles routing using source and destination addresses.
  5. Layered communication improves reliability, scalability, and troubleshooting.

SQL

SQL QUERY ORDER
SELECT
DISTINCT
TOP
FROM
WHERE
GROUPBY
HAVING
ORDERBY

CODING ORDER

  1. SELECT DISTINCT TOP 2 col 1, sum(col 2)
  2. FROM Table
  3. WHERE col=10
  4. GROUPBY col 1
  5. HAVING sum(col 2) > 30
  6. ORDER by col1 ASC

References :

https://www.geeksforgeeks.org/computer-networks/types-of-network-protocols-and-their-uses/

Top comments (0)