Computer Networks: Types, Models, and Devices
Computer Networks
Computer networks enable the sharing of resources, facilitate communication, and support various applications such as:
- Email: Instant messaging and communication.
- Web Services: Access to websites and online services.
- File Sharing: Collaborative work and data storage.
- Streaming Services: Multimedia distribution.
Based on Topologies:
- Bus: Single central cable; simple and cost-effective.
- Star: Central hub; easy to manage and expand.
- Ring: Each device connected to two others; data travels in one direction.
- Mesh: Each device connected to multiple others; highly resilient.
Based on Geographical Distribution:
- LAN (Local Area Network): Covers a small geographical area, like a home or office.
- WAN (Wide Area Network): Spans large geographical areas, often using leased telecommunication lines.
- MAN (Metropolitan Area Network): Covers a city or a large campus.
Based on Communication Techniques:
- Circuit Switching: Dedicated communication path (e.g., traditional telephone networks).
- Packet Switching: Data is sent in packets over shared networks.
OSI Model
The OSI (Open Systems Interconnection) model consists of seven layers:
- Physical: Hardware transmission of raw bit streams.
- Data Link: Node-to-node data transfer and error detection.
- Network: Routing of data packets between devices.
- Transport: End-to-end communication and reliability.
- Session: Managing sessions and connections.
- Presentation: Data formatting and encryption.
- Application: User interface and application services.
TCP/IP Model
The TCP/IP model simplifies the OSI model into four layers:
- Link: Combines the OSI’s physical and data link layers.
- Internet: Corresponds to the OSI’s network layer.
- Transport: Similar to the OSI transport layer.
- Application: Combines the session, presentation, and application layers.
Connecting Devices
- Hub: A basic device that connects multiple Ethernet devices; broadcasts data.
- Repeater: Amplifies signals to extend transmission distance.
- Switch: Directs data packets to specific devices on the network, improving efficiency.
- Bridge: Connects two network segments, filtering traffic.
- Router: Routes data between different networks, using IP addresses.
- Gateway: Connects different networks and translates protocols.
Transmission Media
Wired Media
- Twisted Pair: Common in LANs; susceptible to interference.
- Coaxial Cable: Used for cable television; better shielding than twisted pair.
- Fiber Optic: Uses light for transmission; high bandwidth and immunity to interference.
Wireless Media
- Radio Waves: Common for Wi-Fi and mobile communications.
- Microwaves: Used for satellite communications and point-to-point links.
- Infrared: Short-range communication, e.g., remote controls.
Multiplexing Techniques
- FDM (Frequency Division Multiplexing): Multiple signals transmitted over different frequency channels.
- TDM (Time Division Multiplexing): Time slots are allocated to different signals over the same channel.
Unit 2: Data Link Layer
Functions
- Framing: Encapsulating packets into frames for transmission.
- Error Control: Detecting and correcting errors during data transmission.
Error Control Techniques
- Error Detection Codes:
- Parity Bit: Adds a bit to ensure an even or odd count of ones.
- CRC (Cyclic Redundancy Check): Uses polynomial division for error checking.
- Error Correction Codes:
- Hamming Code: Adds redundancy bits to detect and correct single-bit errors.
Flow Control
- Stop and Wait Protocol: Sender transmits a frame and waits for an acknowledgment.
- Sliding Window Protocol: Allows multiple frames to be sent before needing an acknowledgment. Variants include:
- Go-Back-N: Resends all frames from an error point.
- Selective Repeat (ARQ): Resends only the erroneous frames.
MAC Sub-layer Protocols
- ALOHA: Simple random access protocol; can cause collisions.
- CSMA (Carrier Sense Multiple Access): Listens before transmitting to avoid collisions.
- CSMA/CD (Collision Detection): Detects collisions and retries transmission.
- IEEE Standards:
- 802.3: Ethernet standard.
- 802.4: Token Bus.
- 802.5: Token Ring.