Unit 2 Computer Networks
Unit 2 Computer Networks
Definition:
A computer network is a system where multiple computing devices are connected to share
resources, data,
Key Topics:
1. Types of Networks
- LAN (Local Area Network): Small geographical area, high-speed (e.g., Office networks).
- WAN (Wide Area Network): Covers large areas, slower than LAN (e.g., Internet).
- MAN (Metropolitan Area Network): Intermediate range, spans a city (e.g., Cable TV network).
2. Network Devices
- Switch: Connects devices in a network and uses MAC addresses to forward data.
- Modem: Converts digital signals to analog for phone lines and vice versa.
3. Network Protocols
5. IP Addressing
6. Cybersecurity
Python in Networking:
Python can be used for scripting, testing, and creating network tools.
```python
host = "localhost"
port = 8080
server.serve_forever()
```
Practice Questions
Theory Questions:
Python-Based Questions:
1. Write a Python script to demonstrate simple client-server communication using the `socket`
module.