Communication & Internet Technologies (14)

Protocols

  • Protocol is a set of rules that define how computer communicates over the network.

  • Ensures that data are received, sent and understood.

  • without protocols, data would be misrouted, corrupted or loss.


They are essential because:

  • It allows reliable data transfer

  • Consistent formatting and addressing.

  • Error checking and correction

  • Security during transfer.


Protocol Stacks:

The organisation of protocols into layers where each layer performs a specific task.

  • Handles it own task independently

  • Communicates with the layers above or below.

  • A simple structure for designing and troubleshooting.

  • Makes communication modular and efficient.

  • Allows different technologies to work together.

  • TCP/ IP is an example of protocol stack.


TCP/IP (Transmission Control Protocol/ Internet Protocol)

A suite of communication protocols that interconnect network devices on the internet.

  • Application

    • This is where communication takes place.

    • It interacts directly with the software applications

    • Prepares data for transmission over the network by converting it into a format to be sent and received.

  • Transport

    • Received data from the application layer

    • Responsible for end-to-end communication between the source and receiver.

    • Breaks data received into units called packets.

    • each packet is assigned a port number to be reassembled when received.

    • Each packet contains a header.

  • Internet

    • Received the packets from the Transport layer

    • Gives each packet a header that contains that IP address of the sender and receiver.

    • Responsible for the routing of the packets on the network.

  • Link

    • Received packets from the internet layer.

    • Prepares the packet for transmission over the internet.

    • Translates the digital packet into, electrical impulse, optical or wireless signal that can be sent over the internet.

    • Once it reaches the recipient, it translates the signal back into digital packets.


Standard Protocols

HTTP/HTTPS

  • Allows communication between clients and servers. Allows data to be transfer in both direction

  • HTTPS adds a layer of security. Data is encrypted when transmitted over the internet.

FTP (File Transfer Protocol)

  • Allows sending and receiving files between computers.

  • Downloading and uploading files from a server is often completed by FTP.

  • FTP is more efficient and handles transmission of large files.

POP (Post Office Protocol)

  • Downloading an email to a device from an email server.

  • Once downloaded, the email is removed from the server.

IMAP (Internet Message Access Protocol)

  • Same as POP, except that the email has a copy of itself in the email server.

SMTP (Simple Mail Transfer Protocol)

  • Allows communication between email sender and email server and between different email servers.

  • When an email is sent to a server, SMTP sends email to provider servers and SMTP is used to transfer the email to the recipients email server.

BitTorrent:

  • It is a peer to peer file sharing protocol use to distribute large amounts of data efficiently across the internet.

  • Instead of downloading something from a server, BitTorrent allows users to download pieces of the file from multiple servers as long as they have that piece.

  • It is faster as they are downloaded from multiple places at once.

  • More efficient reduces the load on each server.

  • Allows the sharing of large files.

  • Decentralised distribution which avoids the need for central hosting.


Circuit Switching & Packet Switching -

Packet Switching:

  • It is where data is broken into packets.

  • each packet is transmitted over a shared network.

  • Each packet may take a different route towards the same destination


Benefits:

  • Efficient, use the network bandwidth

  • If packet is lost or corrupted, only these packets are resent.

  • Lower cost, network resources are shared.

Drawback:

  • Not ideal for real time application

  • packets are not sent in order and must be reassembled

  • Packets may be delayed or loss.


Circuit switching:

  • Similar to packet switching except that it uses a dedicated path between the sender and receiver.


Benefits:

  • Real time communication

  • No delays or loss.

  • Arrives in order.


Drawbacks:

  • Higher cost

  • Less efficient, resources remain reserved even when not used.

  • Less scalable and efficient for large network.