Network Fundamentals

Hosts (End Systems)

Laptop (Host)
Phone (Host)
INTERNET
Hosts sit at the "Edge" of the network

Hosts (also known as End Systems) are devices connected to the network that run user applications like Web Browsers or Games. They are located at the "edge" of the internet.

Hosts are divided into two roles: Clients (requesting data) and Servers (serving data and storage).

طب إيه هي دي؟ أو اسمها End system ليه؟ هقولك.. دي الأجهزة اللي الـ User بيتعامل معاها مباشرة زي الـ Laptop والـ Phone.

البيانات بتبدأ عندها، أو بتنتهي عندها، عشان كده بنقول إنها موجودة على "أطراف" الإنترنت.

الـ Hosts ممكن تكون Client (زي موبايلك لما يطلب صفحة ويب) أو Server (زي خوادم فيسبوك اللي بتبعتلك الداتا).

Packet Switching

Application data is broken into smaller chunks called Packets. These packets travel through routers using a method called Store-and-Forward.

Host A Router Host B Pkt Buffer/Queue

Packets move hop-by-hop. The router must receive the whole packet before forwarding it (Store-and-Forward).

Store-and-Forward

The switch must receive the entire packet before it can begin to transmit the first bit of the packet onto the outbound link.

Queuing & Loss

If the link is busy, packets wait in a buffer. If the buffer is full, Packet Loss occurs.

الداتا مابتمشيش حتة واحدة، هي بتتقسم لقطع صغيرة اسمها Packets.

الراوتر بيشتغل بنظام Store-and-Forward: يعني لازم يستلم الباكت "كاملة" الأول، يتأكد إنها سليمة، وبعدين يبعتها للطريق اللي بعده.

لو الراوتر مشغول بيبعت باكت تانية، الباكت الجديدة بتستنى في طابور (Queue).. ولو الطابور ده اتملى؟ الباكت بتضيع وده اللي بنسميه Packet Loss.

The 5-Layer Model (Protocol Stack)

To simplify network design, tasks are divided into 5 distinct layers. Each layer provides a service to the one above it.

5. Application HTTP, DNS, SMTP 4. Transport TCP, UDP 3. Network IP, Routing 2. Link Ethernet, WiFi 1. Physical Bits on Wire Data Flow
Application: Supports network apps (Browsers, Mail).
Transport: Process-to-process data transfer (Reliability).
Network: Routing packets from source to destination (IP).
Link: Data transfer between neighboring network elements.
Physical: Carrying individual bits "on the wire".

عشان نسهل الدنيا! كل طبقة بتعمل وظيفة معينة وبتسلم اللي فوقيها.

  • Application: ده اللي إنت بتشوفه (زي المتصفح).
  • Transport: ده اللي بيتأكد إن الرسالة وصلت كاملة (TCP).
  • Network: ده الـ GPS بتاع الشبكة (بيحدد الطريق بالـ IP).
  • Link: ده اللي بيحرك الداتا بين جهازين جنب بعض.
  • Physical: دي الكهرباء أو الضوء اللي بيمشي في السلك (0 و 1).

Practice Arena 🎯

1. How many layers are in the standard OSI model?
2. Which device is primarily used in Packet Switching to route data across the internet?