Network Fundamentals
Hosts (End Systems)
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.
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.
عشان نسهل الدنيا! كل طبقة بتعمل وظيفة معينة وبتسلم اللي فوقيها.
- Application: ده اللي إنت بتشوفه (زي المتصفح).
- Transport: ده اللي بيتأكد إن الرسالة وصلت كاملة (TCP).
- Network: ده الـ GPS بتاع الشبكة (بيحدد الطريق بالـ IP).
- Link: ده اللي بيحرك الداتا بين جهازين جنب بعض.
- Physical: دي الكهرباء أو الضوء اللي بيمشي في السلك (0 و 1).