TheHingineer

  • Computer Networks


  • CN Part-1

  • CN Part-2

  • CN Part-3

  • CN Part-4

  • CN Part-5

  •  Application Layer Architecture and Principles in Computer Networks

     Application Layer kya hai? (What is Application Layer?)

    • Application Layer OSI Model ki sabse top layer (Layer 7) hoti hai. Yeh akeli aisi layer hai jo directly human users aur software applications (jaise web browsers, email clients, file sharing tools) ke saath interact karti hai.

    • Niche ki 6 layers (Physical se lekar Transport tak) ka saara kaam sirf ek hi maqsad ke liye hota hai: Application Layer ke data ko safely aur reliably transmit karna.

    • Application Layer define karti hai ki do computers par chal rahe network applications aapas mein kis language, messages, aur syntax ke zariye baat karenge.

     Network Application Architectures

    Network applications ko design karne ke do primary architectures hote hain:

    1. Client-Server Architecture                  2. Peer-to-Peer (P2P) Architecture
    
               [ Central Server ]                         [ Peer A ] <-----> [ Peer B ]
                 /     |      \                              \                  /
                /      |       \                              \                /
           [Client1] [Client2] [Client3]                       [ Peer C ] <--> [ Peer D ]

    1. Client-Server Architecture

    • Ek Server hota hai jo hamesha on (Always-on host) rehta hai aur jiska ek fixed, permanent IP address hota hai.

    • Multiple Clients (jaise aapka smartphone ya laptop) server ko request bhejte hain aur server reply karta hai.

    • Clients aapas mein directly communicate nahi karte (sirf server se baat karte hain).

    • Examples: Web browsing (Web Server & Chrome Client), Email (Gmail Server & App), Database servers.

    2. Peer-to-Peer (P2P) Architecture

    • Isme koi central dedicated server nahi hota. Sabhi connected computers (Peers) equal status rakhte hain.

    • Har peer simultaneously Client bhi hota hai aur Server bhi (data download bhi karta hai aur baakiyo ko upload karke serve bhi karta hai).

    • Self-Scalability: Naye peers aane se network par load nahi badhta, balki file sharing capacity aur bandwidth badhti hai!

    • Examples: BitTorrent, Blockchain networks (Bitcoin, Ethereum), Skype (initial versions).

     Client-Server vs Peer-to-Peer (P2P) Comparison

    Feature Client-Server Architecture Peer-to-Peer (P2P) Architecture
    Central Coordinator Dedicated Central Server mandatory hai. No central server (Distributed system).
    Single Point of Failure High (Agar central server crash hua, poora network down). Zero (Agar 5 peers offline bhi ho jayein, network chalta rehta hai).
    Scalability Limited (Users badhne par server overload ho jaata hai). High (Har naya user apni bandwidth contribute karta hai).
    Security & Management Easy to manage, secure, central backup possible. Difficult to manage, security aur copyright concerns.

     Summary Table: Application Layer Protocols

    Application Application Protocol Underlying Transport Default Port
    Web Browsing HTTP / HTTPS TCP Port 80 / 443
    Domain Name Resolution DNS UDP (queries), TCP (zone) Port 53
    Email Delivery SMTP TCP Port 25
    File Transfer FTP TCP Port 20, 21
    Remote Command Line SSH / Telnet TCP Port 22 / 23
    Scroll to Top