HTTP vs HTTPS vs TCP vs TLS vs UDP - AWS Certification

Let’s compare - HTTP vs HTTPS vs TCP vs TLS vs UDP.

You will learn

  • Comparison of HTTP vs HTTPS vs TCP vs TLS vs UDP
  • Why do we have multiple layers in the TCP/IP Stack?
  • What is the role of Network Layer vs Transport Layer vs Application Layer?

AWS Certification - 25 PDF Cheat Sheets + Free Course

Each cheat sheet contains:

  • FAQs and Tutorials with 5-20 slides
  • Notes to quickly review and prepare for certification exam
  • Certification Exam Tips
  • Certification and Interview Scenario Questions

Understanding Need for Protocols and Layers

Computers use protocols to communicate. Different layers use different protocols.

Let’s first understand the roles of different layers involved in network communication between two systems:

  • Network Layer - Transfer bits and bytes
  • Transport Layer - Are the bits and bytes transferred properly?
  • Application Layer - Make REST API calls and Send Emails

Important things to note:

  • Each layer makes use of the layers beneath it
  • Most applications talk at application layer. BUT some applications talk at transport layer directly(high performance).

Network Layer vs Transport Layer vs Application Layer

Let’s now compare the three important layers:

  • Network Layer:
    • IP (Internet Protocol): Transfer bytes. Unreliable.
  • Transport Layer:
    • TCP (Transmission Control): Reliability > Performance
    • TLS (Transport Layer Security): Secure TCP
    • UDP (User Datagram Protocol): Performance > Reliability
  • Application Layer:
    • HTTP(Hypertext Transfer Protocol): Stateless Request Response Cycle
    • HTTPS: Secure HTTP
    • SMTP: Email Transfer Protocol
    • and a lot of others…

Most applications typically communicate at application layer

  • Web apps/REST API(HTTP/HTTPS), Email Servers(SMTP), File Transfers(FTP)
  • All these applications use TCP/TLS at network layer(for reliability)

HOWEVER applications needing high performance directly communicate at transport layer:

  • Gaming applications and live video streaming use UDP (sacrifice reliability for performance)


Certification - Recommended Reading

Amazon RDS - Relational Database Service and Amazon Aurora

Multi-AZ vs Multi-Region vs Read replicas - Amazon RDS

Database Primer - Availability vs Durability vs RTO vs RPO vs Consistency

Migrating databases in AWS - Data Pipeline vs DMS vs SCT

Amazon RedShift vs RedShift Spectrum vs Amazon EMR - A comparison

AWS Data Lakes - Simplified Big Data Solutions

Amazon RedShift - Big Data in AWS

Amazon Cognito - User Pools, Identity Pools

Amazon S3 Storage Classes - Standard vs Standard-IA vs One Zone vs Intelligent-Tiering vs Glacier

Amazon S3 Glacier - vs Amazon S3

Free Videos - Get Started with AWS Certification

Complete Course - AWS Certified Solutions Architect Associate

Get our amazing course pursued by thousands of learners

  • 400+ Lectures
  • 28 hours on-demand video
  • 18 articles
  • 2 downloadable resources
  • Full lifetime access