Networking and Distributed Systems Topic 1
Networking and Distributed Systems Topic 1
Definition of a Network
Network Components
1. Hardware Components:
o Computers, servers, routers, switches, hubs, modems, cables (Ethernet, fiber optic).
2. Software Components:
o Operating systems (Windows, Linux), network protocols (TCP/IP), firewalls, and security
software.
3. Communication Media:
2. Types of Networks
Definition: A network covering a small geographic area (e.g., home, office, school).
Characteristics: High speed, low latency, privately owned.
Example: A Wi-Fi network in an office.
3. Network Topologies
Star Topology
Download
[PC1] [PC2]
\ /
[Hub]
/ \
[PC3] [PC4]
Ring Topology
Mesh Topology
Download
[PC1] ↔ [PC2]
↕ ↕
[PC3] ↔ [PC4]
Bus Topology
Download
Wired Media
Wireless Media
5. Distributed Systems
Definition
A distributed system consists of multiple independent computers that work together as a single
system, appearing as one coherent machine to users.
Applications
1. Client-Server:
1. Architectural Models:
7. Network Security
Definition
Network security involves policies and technologies to protect data from unauthorized access,
misuse, or attacks.
1. Active Attacks:
Wireless Security
Conclusion
Understanding networking and distributed systems is crucial for IT professionals. From basic
topologies to advanced security measures, these concepts form the backbone of modern digital
communication.
🧠 Fundamentals of Networking
✅ Definition of a Network:
A network is a group of interconnected computers and devices that can share data and resources such
as files, internet, and printers.
✅ Network Terminologies:
Node: Any device connected to the network (computer, printer, router).
Host: A device that sends or receives data.
IP Address: A unique address identifying each device on the network.
MAC Address: Hardware address assigned to a network interface.
Bandwidth: Maximum data transfer rate of a network.
Protocol: A set of rules governing communication (e.g., TCP/IP).
Router: Forwards data between networks.
Switch: Connects devices in a LAN and filters traffic.
🌐 Types of Networks
Network Type Description Range
WAN – Wide Area Network Covers large geographical areas (e.g., Internet) 50km+
🌟 Network Topologies
⭐ Star Topology:
🔁 Ring Topology:
🔗 Mesh Topology:
📦 Bus Topology:
🔌 Transmission Media
Wired Media:
Wireless Media:
🔄 Distributed Systems
✅ Definition:
A distributed system is a network of independent computers that appear to users as a single coherent
system.
✅ Applications:
Architectural Models:
o Client-server: Centralized services.
o Peer-to-peer: Decentralized control.
Interaction Models:
o Synchronous: Clients wait for response.
o Asynchronous: Clients do not wait.
Fault Models:
o Design to handle partial failures without full system failure.
1. Type of Network: LAN for small, WAN for large geographic needs.
2. Type of Topology: Choose based on scale, fault tolerance, and cost.
3. Devices Needed: Switches, routers, NICs, modems, access points.
🛡️Network Security
✅ Definition:
Network Access Control (NAC): Limits who can access the network.
Firewall: Filters incoming and outgoing traffic.
Intrusion Prevention System (IPS): Detects and blocks threats in real-time.
Security Information and Event Management (SIEM): Monitors and analyzes security events
and logs.
✅ Wireless Security:
Protocol: A set of rules governing data communication (e.g., TCP/IP, HTTP, FTP).
Switch: A device that connects multiple devices within a LAN and forwards data based on MAC
addresses.
Firewall: A security system that monitors and controls incoming/outgoing network traffic.
Network Components
Hardware: Routers, switches, hubs, modems, cables, NICs (Network Interface Cards).
Resource Sharing: Printers, files, and applications can be shared among users.
Data Centralization: Storing data on servers for easy access and backup.
2. Types of Networks
Local Area Network (LAN)
Definition: A network covering a small geographical area (e.g., home, office, school).
Definition: A small network for personal devices (e.g., Bluetooth, USB connections).
3. Network Topologies
Star Topology
Ring Topology
Mesh Topology
Structure: Every device connects to every other device.
Bus Topology
Disadvantages: Performance degrades with heavy traffic, a single break disrupts the network.
4. Transmission Media
Wired Media
Twisted Pair cables (ethernet cables) are a common type of copper cable used for data
transmission in networking. They consist of pairs of insulated copper wires twisted together,
hence the name "twisted pair."
o Types:
Unshielded (UTP)
These are a pair of two insulated copper wires twisted together without any other
insulation.
They are arranged in pairs so that we can add a new connection whenever required. The
DSL or telephone lines in our houses have one extra pair in them.
When UTP are arranged in pairs, each pair is coded with a different color as defined by
the 25-pair color code.
The Electronic Industries Association divides UTP into 7 categories based on some
standards. Categories are based upon cable quality where 1 is the highest quality and 7 is
the lowest quality. Each cable in a category is put to a different use as needed.
Advantages:
These cables are cost-effective and easy to install owing to their compact size.
They are generally used for short-distance transmission of both voice and data.
Disadvantages:
They are efficient only for a distance up to 100 meters and have to be installed in pieces
of up to 100 meters.
Shielded (STP).
These types of cables have extra insulation or protective covering over the conductors in
the form of a copper braid covering.
This covering provides strength to the overall structure of the cable. It also reduces noise
and signal interference in the cable.
The shielding ensures that the induced signal can be returned to the source via ground
and only circulate around the shield without affecting the main propagating signal. The
STP cables are also color-coded like the UTP cables as different color pairs are required
for analog and digital transmission.
Advantages:
They are generally used for long-distance communication and transmission and are
installed underground.
The protective shield prevents external electromagnetic noise penetration into the cable.
Disadvantages:
Coaxial Cable is a type of guided media made of Plastics, and copper wires which transmit the
signal in electrical form rather than light form. Coaxial cable is also known as coax. The core
copper conductor is used for the transmission of signals and the insulator is used to provide
insulation to the copper conductor the insulator is surrounded by a braided metal conductor
which helps to prevent the interference of electrical signals and prevent cross talk. This entire
setup is again covered with a protective plastic layer to provide extra safety to the cable.
Coaxial cable is typically used by cable operators, telephone companies, and internet providers
to transmit data, video, and voice communications to customers. Its installation and
implementation are easy but it is less efficient than optical fiber also it provides moderately low
bandwidth in comparison to optical fiber.
Television: Coaxial cable used for television would be 75 Ohm and RG-6 coaxial cable.
Internet: Coaxial cables are also used for carrying internet signals, RG-6 cables are used
for this.
CCTV: The coaxial cables are also used in CCTV systems and both RG-59 AND RG-6
cables can be used.
Video: The coaxial cables are also used in video Transmission the RG-6 is used for better
digital signals and RG-59 for lossless transmission of video signals.
HDTV: The HDTV uses RG-11 as it provides more space for signals to transfer.
Coaxial cables have better cut-through resistance so they are more reliable and durable.
There is a chance of breaking the coaxial cable and attaching a "t-joint" by hackers, this
compromises the security of the data.
Hardline coaxial cable: Hardline coaxial cable's center conductor is made of copper,
silver and has a larger diameter when compared to other coaxial cables.
Flexible coaxial cable: The flexible coaxial cables are very flexible and the inner
conductor is surrounded by a flexible polymer.
Semi-rigid coaxial cable: Semi-rigid coaxial cable uses a solid copper outer sheath with
a dielectric of Polytetrafluoroethylene.
Twinaxial cable: It has two central conductors in the core and a single outer core and
dielectric. these cables are best for low-frequency digital and video transmission.
Triaxial cable: It is also known as Triax. It is very much similar to a coaxial cable but
with an additional copper braid added to it, the braid works as a shield and protects from
noise. Triaxial cables offer more bandwidth.
Rigid coaxial cable: Rigid coaxial cable is made up of two copper tubes supported at
cable ends and fixed intervals across the length of the cable using PTFE supports or disk
insulators. The rigid coaxial cable cannot be bent. It is mainly used in TV and FM
broadcasting systems.
Fiber Optic:
Fiber Optics or Optical Fiber is a technology that transmits data as a light pulse along a glass or
plastic fiber. An Optical Fiber is a cylindrical fiber of glass that is hair-thin in size or any
transparent dielectric medium. The fiber which is used for optical communication is waveguides
made of transparent dielectrics. In this article, we will discuss Optical Fiber/Fiber Optics in
detail.
o Use: High-speed, long-distance communication (immune to EMI).
Wireless Media
5. Distributed Systems
Definition
Applications
Hands-on Lab: Deploy a simple web app on AWS EC2 or Google Cloud Run.
Definition: P2P networks distribute tasks/workloads among peers (no central server).
Characteristics:
o Decentralization.
o Resilience (no single point of failure).
o Scalability (more peers improve performance).
Use Cases:
o File Sharing: BitTorrent (distributed file distribution).
o Blockchain: Decentralized ledger (Bitcoin, Ethereum).
Blockchain:
o Consensus mechanisms (Proof of Work vs. Proof of Stake).
Activity:
Key Concepts:
Definition: Databases spread across multiple nodes/locations for scalability & fault
tolerance.
Types:
o NoSQL (MongoDB): Document-based, flexible schema.
o Wide-column (Cassandra): Optimized for high write throughput.
CAP Theorem: Consistency, Availability, Partition Tolerance (pick two).
Sharding & Replication: Horizontal scaling vs. data redundancy.
Activity:
Computing systems involve distributed computing resources working together to perform large-scale
computations.
Example: Grid Computing
A distributed architecture where resources from multiple locations are connected to achieve a
common goal.
Often used in scientific research, simulations, and data-intensive tasks.
Key Features:
Advantages:
Cost-effective.
High performance for intensive tasks.
Improved resource utilization.
Examples:
SETI@home
CERN’s Large Hadron Collider (LHC) Computing Grid
Information systems collect, process, store, and distribute information to support decision-making and
control in an organization.
A database that is spread across different physical locations but appears as a single database to
users.
Key Features:
Examples:
Google Spanner
Apache Cassandra
Pervasive or ubiquitous systems embed computing into everyday objects to enhance functionality and
connectivity.
Devices equipped with sensors and software that collect and exchange data over the Internet.
Key Features:
Advantages:
Examples:
Smart thermostats
Wearable fitness trackers
Connected cars
4. Client-Server Systems (e.g., Web Servers and Browsers)
Definition:
A network architecture where a client requests services and a server provides them.
The browser (client) sends HTTP requests to a web server, which returns web pages.
Key Features:
Advantages:
Centralized maintenance.
Efficient resource management.
Better control over data and access.
Examples:
In P2P systems, each node (peer) acts both as a client and a server.
Users share files directly with each other without a central server.
Key Features:
Advantages:
Examples:
BitTorrent
Gnutella
Blockchain networks
Would you like a printable version of these notes (e.g., in PDF or DOCX format)?
4o
Search
Reason
Deep research
Create image
Defines the structure of a distributed system, including components and their interactions.
Key Components:
o Clients & Servers: Traditional request-response model (e.g., web servers).
o Peer-to-Peer (P2P): Decentralized, nodes act as both clients and servers (e.g., BitTorrent,
blockchain).
o Microservices: Small, independent services communicating via APIs (e.g., Netflix, Uber).
Client-Server vs. P2P: When is each better? (Centralized control vs. scalability).
Microservices: Why do companies like Amazon use them? (Independent scaling, fault
isolation).
Activity:
Case Study: Compare the architecture of Google Search (centralized) vs. Bitcoin (P2P).
Key Aspects:
o Synchronous vs. Asynchronous Communication:
Synchronous: Blocking calls (e.g., HTTP requests with timeouts).
o Eventual Consistency: Data may not be immediately synced but will converge (e.g., DNS
updates).
o Timing Assumptions:
Synchronous Systems: Bounded delays (e.g., real-time systems).
Activity:
Types of Faults:
o Crash Faults: A node stops working (e.g., server crash).
Activity:
Failure Simulation: Use a tool like kill -9 on a Docker container to see system recovery.
2. Project:
o Design a fault-tolerant microservice (e.g., a payment system with retries).
These notes provide a clear, structured breakdown of the three models. Let me know if you'd
like to expand on any section! 🚀
New chat
DeepThink (R1)
Search
6. Network Security
Types of Network Attacks
Wireless Security
Conclusion
This topic provides a foundation for understanding networking and distributed systems, covering
essential concepts, architectures, and security measures. Mastery of these principles is crucial for
designing, implementing, and troubleshooting modern networks.
New chat