Network - Networking Fundamentals Flashcards
Computer Network
A computer network is a group of connected devices that can communicate with each other.
๐ Example: The WiFi in your home is a small computer network where devices like laptops and phones are connected.
Network Topology
Network topology is how devices (computers, routers, switches) are connected in a network.
๐น Types of Network Topologies:
1๏ธโฃ Bus โ All devices share one cable (like a public bus route ๐).
2๏ธโฃ Star โ All devices connect to a central hub (like spokes on a wheel ๐).
3๏ธโฃ Ring โ Devices form a circle and pass data around ๐.
4๏ธโฃ Mesh โ Every device connects to multiple devices (like a spider web ๐ธ๏ธ).
5๏ธโฃ Hybrid โ A mix of two or more topologies ๐.
๐น Example:
Home WiFi uses a star topology (all devices connect to the router).
The Internet is mostly a mesh topology (many connections for reliability).
๐น Analogy:
Network topology is like a cityโs road systemโhow streets, highways, and intersections connect everything! ๐๐ฃ๏ธ
The Network Edge
The network edge includes the devices at the ends of a network, like computers, phones, and servers.
๐ Example: A smartphone connected to the internet is a device at the network edge.
Hosts (End Systems)
Hosts are devices connected to a network that send and receive data.
๐ Example: A laptop and a web server are both network hosts.
Access Networks
Access networks connect users to the internet, either wired (Ethernet, DSL) or wireless (WiFi, 4G/5G).
๐ Example: Your home router connects your devices to the internet via an access network.
The Network Core
The network core is the main part of the internet that moves data super fast between different networks.
๐น What does it do?
โ
Sends data quickly between cities & countries.
โ
Uses high-speed cables & routers to keep the internet running.
๐น Example:
When you watch a YouTube video, the data travels through the network core from YouTubeโs servers to your device.
๐น Analogy:
The network core is like a highway for internet traffic ๐๐จโdata moves fast without stopping at every small road.
Packet Switching
Data is broken into small pieces (packets) and sent across the network, where routers decide the best path.
๐ Example: When you send an email, it is split into packets and reassembled at the destination.
Circuit Switching
A dedicated communication path is set up before sending data, and no other data can use that path.
๐ Example: Old telephone networks used circuit switching, where a full connection was set up before a call.
Forwarding vs. Routing
Forwarding moves packets inside a router to the correct output.
Routing finds the best path to send packets to the destination.
๐ Example: A router at home forwards data between devices, while an ISP router finds the best path to another country.
Network Protocols
Protocols are rules that decide how computers communicate in a network.
๐ Example: HTTP is a protocol that defines how web browsers request websites.
OSI Model (7 Layers)
A conceptual model that describes how data moves through a network.
๐ Example: When you send a message on WhatsApp, it goes through multiple layers, including the transport layer (TCP) and network layer (IP).
Layers of OSI Model:
1๏ธโฃ Physical Layer โ Sends raw bits through cables or airwaves.
๐ Example: A WiFi signal or Ethernet cable is part of this layer.
2๏ธโฃ Data Link Layer โ Manages direct connections between devices.
๐ Example: Your network adapter (MAC address) ensures data goes to the right device.
3๏ธโฃ Network Layer โ Finds the best path for data using IP addresses.
๐ Example: Routers use IP addresses to send packets between networks.
4๏ธโฃ Transport Layer โ Ensures data is delivered correctly (TCP/UDP).
๐ Example: TCP resends lost packets, ensuring complete delivery.
5๏ธโฃ Session Layer โ Manages communication sessions between applications.
๐ Example: Video calls stay connected using session management.
6๏ธโฃ Presentation Layer โ Formats data (encryption, compression).
๐ Example: HTTPS encrypts web traffic using TLS.
7๏ธโฃ Application Layer โ User-level interactions (browsers, email).
๐ Example: Web browsers use HTTP/HTTPS to load websites.
The Internet Protocol (IP)
IP assigns addresses to devices and helps route packets.
๐ Example: Your phone gets an IP address when it connects to WiFi.
Transmission Control Protocol (TCP)
TCP ensures data is delivered completely and correctly.
๐ Example: Downloading a file uses TCP, so no part is missing.
User Datagram Protocol (UDP)
UDP sends data faster but does not check for errors.
๐ Example: Live video streaming uses UDP to avoid delays.
Encapsulation
Each network layer adds extra information (headers) to a message before sending it.
๐ Example: When you send an email, multiple layers wrap it in extra data to help it travel through the network.
Bandwidth
Bandwidth is how much data can be sent or received over a network per second. Itโs like the size of a highwayโthe wider it is, the more cars (data) can travel at the same time.
๐น Measured in:
Mbps (Megabits per second)
Gbps (Gigabits per second)
๐น Example:
A high-bandwidth internet (1 Gbps) = Faster downloads & smoother streaming. ๐
A low-bandwidth internet (10 Mbps) = Slow loading & buffering. ๐
Latency (Delay)
๐น What is latency?
Latency is the delay in data travelโhow long it takes for data to go from one place to another and back.
๐น Measured in:
Milliseconds (ms)
๐น Example:
Low latency (10ms) โ Fast response (good for gaming ๐ฎ, video calls ๐น).
Latency is how long it takes for data to travel across a network.
๐ Example: High latency causes lag in online games.
Packet Loss
When a network drops packets due to congestion or errors.
๐ Example: Bad WiFi signals cause video buffering because packets are lost.
Throughput
Throughput is the actual speed of data transfer, which may be lower than bandwidth.
๐ Example: A WiFi router advertises 100 Mbps, but actual throughput might be 50 Mbps due to interference.
Throughput helps us measure how fast data actually moves in a network. We use it to:
๐น Check internet speed โ To see if your connection is fast enough for streaming, gaming, or video calls. ๐ถ๐ฎ๐บ
๐น Optimize networks โ Companies use throughput to improve performance and avoid slow connections. ๐
๐น Troubleshoot problems โ If a network is slow, checking throughput helps find issues like congestion or weak signals. ๐ ๏ธ
๐น Compare network performance โ Helps decide which internet provider or network setup is better. ๐
In short: Throughput helps see how fast data moves and fix slow networks! โก
(IXP)
Internet Exchange Point
A physical location where ISPs connect to exchange traffic.
๐ Example: Google and Facebook use IXPs to serve data faster to users.
Domain Name System (DNS)
DNS translates website names into IP addresses.
๐ Example: When you type โgoogle.comโ, DNS finds its IP address (e.g., 8.8.8.8).
HTTP & HTTPS
HTTP (HyperText Transfer Protocol) loads web pages.
HTTPS (secure version) encrypts traffic.
๐ Example: Online banking uses HTTPS for security.
Ethernet
Ethernet is a wired networking standard that connects devices using cables.
๐ Example: Offices use Ethernet for faster and stable internet connections.
WiFi (802.11)
๐น What is WiFi?
WiFi is a wireless technology that lets devices connect to the internet without cables.
๐น How does it work?
1๏ธโฃ Your WiFi router gets internet from your ISP (via cable or fiber).
2๏ธโฃ The router sends the internet as radio signals ๐ก.
3๏ธโฃ Your phone, laptop, and TV receive the signals and connect to the internet.
๐น Example:
When you use your phone to browse the internet at home, itโs connected to WiFi, not mobile data.
๐น Analogy:
WiFi is like a speaker ๐ขโit sends internet signals through the air, and nearby devices can โhearโ and connect.
โ
Faster than mobile data, but needs to stay close to the router! ๐WiFi is a wireless standard that connects devices to a network.
๐ Example: Your phone connects to WiFi instead of using mobile data.