شرح ال OSI Model وال 7 مراحل شرح مبسط بالعربي في 20 دقيقة فقط
Introduction to OSI Model
Overview of the OSI Model
- The video introduces the concept of a unified standard for networking established by ISO, allowing different devices to communicate without issues. This is based on the principle of providing clear guidelines for all companies to follow.
- The OSI model consists of seven layers that data must pass through when sent from one device to another, ensuring effective communication between diverse systems.
Detailed Explanation of Layers
Layer 1: Protocol Definition
- The first layer defines the protocol being used; for example, HTTP is used when accessing websites like Google, while FTP is utilized for downloads and SMTP for emails. Each application has its specific protocols.
Layer 2: Data Transformation and Compression
- This layer transforms incoming data from applications into machine-readable formats and compresses files to facilitate quicker transmission, as seen when uploading images or videos on platforms like Facebook or WhatsApp.
Layer 3: Encryption and Session Management
- It performs encryption before sending data and manages sessions by storing temporary data (like posts on Facebook) so users can access it even offline during their next session. This ensures continuity in user experience across sessions.
Understanding Transport Layer Functions
Layer 4: Data Segmentation
- The transport layer segments data into smaller pieces for easier transmission, maintaining order and integrity during transfer, which is crucial if interruptions occur during downloads or uploads. Each segment has identifiers to ensure proper reassembly at the receiver's end.
Control Over Data Flow
- It regulates the amount of data transmitted based on device capabilities; if a computer sends more than a mobile can handle, it adjusts accordingly to prevent loss or corruption of information during transfer processes.
Protocol Types in Transport Layer
TCP vs UDP
- Two main protocols are discussed:
- TCP (Transmission Control Protocol): Ensures accurate delivery by confirming receipt of each segment before sending the next one; ideal for applications requiring precision like email communications.
- UDP (User Datagram Protocol): Faster but less reliable; suitable for real-time applications where speed is prioritized over accuracy, such as video calls or gaming sessions where minor errors can be tolerated.
Addressing Mechanisms in Networking
Unique IP Addresses
- Every device in a network has a unique IP address that allows it to be identified and communicated with effectively—similar to knowing an address when sending mail. This facilitates targeted communication within networks.
Routing Decisions
Understanding Data Transmission Layers
Overview of MAC Address and Data Link Layer
- The device sending data reads the MAC address upon receiving a frame, which is essential for communication.
- A MAC address consists of 12 digits in hexadecimal format, representing a unique identifier assigned by the manufacturer. Each MAC address is 48 bits long.
Frame Construction and Media Types
- When a desktop sends a message to a laptop, the data link layer adds information to the header and trailer, including the MAC address, to form a frame suitable for transmission.
- The data link layer can modify headers or trailers based on the media type used for transmission. This ensures proper framing before sending data through various layers until it reaches the application layer.
Error Detection Techniques
- The data link layer must ensure that transmitted data remains intact despite external factors like magnetic fields that could cause errors during transmission. If an error occurs, specific techniques are employed to detect and request retransmission of corrupted frames.
Techniques for Error Detection
- Parity Bit Technique: Counts the number of ones in the data; if even, it returns zero; if odd, it returns one. This helps identify single-bit errors but may fail with multiple bit losses.
- Checksum Method: Sums up all bits in the frame; if all bits sum to zero after processing at both sender and receiver ends, no error occurred; otherwise, an error is flagged requiring retransmission.
- Cyclic Redundancy Check (CRC): Applies mathematical operations on packet data and includes this value in the trailer for verification at reception; discrepancies indicate errors needing correction or retransmission.
Physical Layer Functionality
- The physical layer converts bits into signals according to media types (e.g., electrical signals for copper cables or optical signals for fiber optics) ensuring compatibility with different transmission mediums before reaching its destination application layer through reverse processing of layers used during sending.
Example Scenario: Sending a Message on Facebook
- In an example where Samir wants to send a message via Facebook:
- He initiates by entering "facebook.com," leading to HTTP protocol engagement at the application layer.