Protocols ⇒ In a computer network, machines talk to each other using protocols

Packets ⇒ Are nothing but streams of bits running as electric signals on physicals.

It consists of :

Open System Interconnection(OSI)

consists of seven layers and is used as a reference for the implementation of actual protocols

osi-model.png

Encapsulation

Encapsulation is adding extra protocols along with data to send it from one point to another via a network. Encapsulation always takes place at the sender's side to send data properly.

osi-encap-decap-2.gif

osi-encap-decap-1.gif

osi-encap-decap-2.gif


TCP/IP model

is a real-world implementation of a networking stack and is the protocol stack used on the Internet