Introduction to Computer Networks
1. What is a Computer Network?
A computer network is a group of interconnected devices that can communicate and share
resources. These devices use protocols to exchange data over wired or wireless
connections.
2. OSI and TCP/IP Models
The OSI (Open Systems Interconnection) model has seven layers: Physical, Data Link,
Network, Transport, Session, Presentation, and Application.
The TCP/IP model, which is more widely used, has four layers: Network Interface, Internet,
Transport, and Application.
3. Common Network Devices
- Router: Directs data packets between networks.
- Switch: Connects devices in a LAN and uses MAC addresses to forward data.
- Hub: A basic device that broadcasts data to all devices on a network.
- Modem: Converts digital data to analog signals and vice versa for internet access.
4. Key Protocols
- IP (Internet Protocol): Handles addressing and routing of packets.
- TCP (Transmission Control Protocol): Ensures reliable data transmission.
- UDP (User Datagram Protocol): Provides fast, connectionless communication.
- HTTP/HTTPS: Protocols used for web browsing.
5. LAN vs WAN
LAN (Local Area Network) is limited to a small geographical area, like a home or office.
WAN (Wide Area Network) spans large distances and connects multiple LANs, such as the
Internet.
6. Network Topologies
- Bus: All devices are connected to a single central cable.
- Star: All devices connect to a central hub or switch.
- Ring: Devices are connected in a circular fashion.
- Mesh: Devices are interconnected, providing multiple paths for data.