DEV Community

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

Posted on Edited on

One Commit at a Time ! Series - 34

OSI with TCP-IP

The OSI model is a 7-layer theoretical reference framework, whereas the TCP/IP model is a 4-layer practical architecture that powers the actual modern Internet.


Layer-by-Layer Mapping


Core Structural Differences

  • Upper Layer Consolidation: TCP/IP does not define distinct Session or Presentation layers. Formatting, data compression, encryption (e.g., TLS), and session tracking are handled directly within the application or via transport-level handshakes.
  • Lower Layer Consolidation: The TCP/IP Network Access layer groups physical transmission (cables, radio frequency, signaling) and data link framing (MAC addressing, NIC communication) into one cohesive layer that interfaces with the physical network medium.
  • Design Philosophy:
  • OSI Model: Protocol-independent and conceptual. Designed before protocols were implemented, making it strict in layer separation and ideal for network education and diagnostic isolation.
  • TCP/IP Model: Protocol-oriented and pragmatic. Built around working protocols developed by DARPA, prioritizing end-to-end communication and real-world implementation over clean theoretical boundaries.

SQL

DDL - ALTER (Add)

ALTER TABLE Persons
ADD email VARCHAR(50) NOT NULL,
SELECT * FROM Persons

Use Alter add if you want to append column in a table, to add in middle need to drop and start again)

DROP

ALTER TABLE Persons
DROP COLUMN Phone
SELECT * FROM Persons

DROP TABLE Persons

Top comments (0)