Computer Networks
Definition: A computer network is a set of computers connected together for the purpose of sharing resources (data, printers, internet connection).
1. Types of Networks
- PAN (Personal Area Network): Smallest network. Connects devices within an individual's workspace (Bluetooth, USB). Range: ~10 meters.
- LAN (Local Area Network): Covers a small geographic area like a home, office, or building. High speed. (Ethernet, Wi-Fi).
- MAN (Metropolitan Area Network): Covers a larger area like a city. Connects multiple LANs. (Cable TV Network).
- WAN (Wide Area Network): Spans a large physical distance, such as a country or continent. (The Internet is the largest WAN).
- CAN (Campus Area Network): Interconnection of LANs within a limited geographical area like a university campus.
2. Network Topologies
The physical or logical arrangement of devices in a network.
- Bus Topology: All devices connected to a single central cable (Backbone). If the cable fails, the whole network fails.
- Star Topology: All devices connected to a central device (Hub/Switch). Most common. If hub fails, network fails. If one node fails, others are unaffected.
- Ring Topology: Each device is connected to two other devices, forming a ring. Data travels in one direction.
- Mesh Topology: Each device is connected to every other device. High redundancy and reliability. Expensive due to cabling.
- Tree Topology: Variation of Star. Hierarchical structure. Root node connected to other nodes.
- Hybrid Topology: Combination of two or more topologies (e.g., Star + Bus).
3. Network Devices
- Repeater: Regenerates the signal to extend transmission distance. Operates on Physical Layer.
- Hub: Connects multiple devices in a LAN. Broadcasts data to all ports. Physical Layer.
- Switch: Intelligent device. Sends data only to the destination MAC address. Data Link Layer.
- Bridge: Connects two similar LAN segments. Filters traffic based on MAC address. Data Link Layer.
- Router: Connects two different networks (e.g., LAN to WAN). Uses IP addresses to route packets. Network Layer.
- Gateway: Connects two networks with different protocols. Works at all layers.
- Modem: Modulator-Demodulator. Converts Digital signals to Analog (for transmission) and vice versa.
4. Transmission Media
Guided (Wired)
- Twisted Pair Cable: Used in LANs (RJ-45). Cheap.
- Coaxial Cable: Used in Cable TV.
- Fiber Optic Cable: Uses light to transmit data. Fastest, expensive.
Unguided (Wireless)
- Radio Waves: Wi-Fi, Bluetooth.
- Microwaves: Satellite communication.
- Infrared: TV Remotes (Short range, line of sight).