Docsity

Digital Netwrks Notes, Schemes and Mind Maps of Computer Networks

Partial preview of the text

Download Digital Netwrks Notes and more Schemes and Mind Maps Computer Networks in PDF only on Docsity!

TEACHING NOTES ARCHITECTING CONNECTIVITY A COMPLETE BLUEPRINT OF COMPUTER NETWORKS | THE HOOK Hard work is good. Smart work is better. But today, your network is your net worth. Relate the human concept of networking to digital networks. aa | THE SCRIPT Welcome to the complete architecture of computer networks. Today, we are going to demystify how a simple click on your screen travels across the globe. We will not look at this as a messy web of cables, but as a highly orchestrated logistics operation, moving step-by-step through 7 distinct layers of rules, packaging, and transmission. | WHITEBOARD MOMENT Point to the 7-layer stack on the slide. Explain: “This is our roadmap today. By the end of this session, you will know exactly what happens inside every single one of these blocks.” & Gemini Notebook TEACHING NOTES THE LOGISTICS OF DATA: ENCAPSULATION & DECAPSULATION © THE HOOK: Think of sendi letter. Y SENDER (TOP-DOWN) RECEIVER (BOTTOM-UP) write the note (Pate), putitin ti an envelope (Header 1), put that Ss in a mailbag (Header 2), and DATA put the mailbag in a truck (Header 3). a = © THE SCRIPT: HEADER 7 | HEADER 6 The OS! model is a 7-layer Wraps data y framework. Data flows with routing Unwraps ; Vj Top-Down for the sender. revucun HEE crete orleia Waes HEADER 6 H n HEADER 5 E (Headers). sequential ly. : We call this Encapsulation. blll At the receiving end, the data x = q flows Bottom-Up. jy |HEADER'S ACTIVE DATA FLOW ACTIVE DATA FLOW 1 HEADERS) | i ; (ENCAPSULATION) (DECAPSULATION) ty The vital rule is peer-to-peer Whi in symmetry: The Network Layer cms am 1 on the receiver side will only read i ¥ and strip the envelope created Ss HEADERS peeks pj) heen by the Network Layer on the Lm dd LLP RE sender side. Itis a perfectly ty a , Vy Wij synchronized dance. RULE: —_ —— 5 of ie MIITECOARD MOMENT; race the path of A layer can only open the VP ir | the U-shape flow | _ header created by its twin. Mim from sender down x / 2.2% x to the physical ae joie cable, across, and back up to the receiver. PHYSICAL LAYER (BIT STREAM) DOC. NO: LOG-DATA-001 REV A ty DATE: 2024-85-20 Z #& Gemini Notebook PHYSICAL LAYER: MEDIA & ENCODING TRANSMISSION MEDIA SOK : en Pe 10BaseT) () : Pe Gerace (CL Coaxial re ¢ Microwave (Unidirectional) ¢ Fiber Optic gS» e Infrared DIGITAL TO DIGITAL ENCODING Oe | 0 0 1 1 Manchester -—— I= High-to-Low transition. 0 = Low-to-High transition. TEACHING NOTES © THE HOOK: Wires don’t understand binary code. They only understand electricity and light. How do we turn a 1 into a voltage? © THE SCRIPT: At the physical layer, we transfer bits over media. To send a bit, we encode it. In Manchester encoding, we don't just use high for 1 and low for 0. We use transitions. A 1 is a drop from high to low. A Qis a jump from low to high. Ditferential Manchester is trickier: a 0 forces a transition at the start of the interval, while a 1 keeps it smooth. This ensures devices stay synchronized. e WHITEBOARD MOMENT: Point to the transition in the middle of the clock cycle on . . the waveform. Emphasize Differential that the change in voltage Manchester | ee is what registers as data. 1 = Continuous (No boundary transition). 0 = Transition at boundary. DOC. NO: LOG-DATA-007 REV A BATE: 2024-85 20 #& Gemini Notebook THE HARDWARE HIERARCHY TEACHING NOTES REPEATER & HUB BRIDGE & SWITCH ROUTER (Physical Layer) (Data Link Layer) (Network Layer) © © eS) iS) >) oO eS Action: Pure Forwarding. Intelligence: Zero filtering. Broadcasts everything to all ports. Action: MAC-based Filtering. Intelligence: Forwards only to the target port. Full-duplex. Action: IP-based Routing. Intelligence: Connects disparate networks. Computes optimal paths. * THE HOOK: A Hub is a loudspeaker. A Switch is a private phone call. A Router is an international post office. . THE SCRIPT: Hardware gets smarter as we move up the OSI model. Hubs operate at Layer 1. They are dumb-they just repeat signals out of every port. This creates massive collision domains. Switches operate at Layer 2. They read MAC addresses and create private, full-duplex paths, reducing collisions to zero. Routers operate at Layer 3. They connect entirely different network: using IP addresses, finding the best route across the globe. wo . WHITEBOARD MOMENT: Circle the Collision Domain: 0 under the Switch. Reinforce that Switches use Full-Duplex links (separate roads for incoming and outgoing data), eliminating crashes, DOC. NO: LOG-DATA-001 REV A DATE: 2024-8520 @® Gemini Notebook TEACHING NOTES DATA LINK LAYER: FLOW CONTROL PROTOCOLS Rule: Don't send more than | can receive. —@—————— Sender Sliding Window ¢ THE HOOK: Pouring water from a bucket into a bottle requires flow control, otherwise it spills. Networks do the exact same Lo | LIL IL STOP & WAIT Window: Sender (1), Receiver (1) Action: Send 1 frame, wait for ACK. Low efficiency. GO-BACK-N Window: Sender (2 - 1), Receiver (1) Action: Send N frames. If 1 fails, discard everything after it and retransmit entire window. SELECTIVE REPEAT Window: Sender (2k-1), Receiver (2k-1)) Action: Retransmit only the specific frame that failed. Highly efficient, complex processing. Frame 1 : Sender Receiver ACK 1 A thing with data buffers. ¢ THE SCRIPT: Flow control prevents a fast sender from drowning a slow receiver. Stop & Wait is safe but painfully slow. Go-Back-N is faster; we send a window of packets. But if packet #2 gets lost, the receiver rejects 3, 4, and 5 too. The sender has to go back and resend the whole window. Selective Repeat is the smartest: if packet #2 drops, the receiver stores 3, 4, and 5, and asks the sender to selectively repeat just packet 2. « WHITEBOARD MOMENT: Emphasize the math. If we have k bits for sequence numbers, SR requires the sender and receiver windows to be exactly half the total sequence space. DOC. NO: LOG-DATA-G@1 REV A DATE: 2624-8520 #& Gemini Notebook DATA LINK LAYER: MULTIPLE ACCESS (CSMA/CD) Carrier Sense Multiple Access with Collision Detection Is Channel Idle? Yes Detect Collision? Yes TEACHING NOTES THE HOOK: Imagine a dark room where everyone wants to speak. If two people talk at once, it is noise. How do you politely share the airwave? THE SCRIPT: CSMA/CD is the polite conversation protocol of wired Ethernet networks. First, Carrier Sense—put your ear to the cable. Is anyone talking? If no, transmit. But here is the trick: Collision Detection means you keep listening while you talk. If a collision happens, data spikes into garbage noise. The device instantly fires a Jam Signal telling everyone to stop, and then waits a random amount of time before trying again. WHITEBOARD MOMENT: Trace the flowchart. Highlight that CSMA/CD is for wired Ethernet. Wireless uses CSMA/CA (Collision Avoidance). DOC. NO: LOG-DATA-002 REV A Al DATE: 2024-8520 ‘ Gemini Notebook Cd 4 NETWORK LAYER: SUBNETTING & CIDR Divide massive networks into smaller, efficient, secure sub-networks. 4] How Subnetting Works - Steal bits from the Host ID to create a Subnet ID. - Example: A Class C network (192.168.1.0) has 8 Host bits. - Borrow 2 bits: Creates 242 = 4 subnets. - Remaining Host bits: 6. - New Hosts per subnet: 26 - 2 = 62 hosts. Borrow Bits _ Bits Stolen from Host ID Class C Network (8 host bits total) - Removes rigid Class boundaries (A, B, C). - Notation: 192.168.1.0/26 - The /26 means 26 bits are locked for Network/Subnet, leaving 6 bits for Hosts. TEACHING NOTES THE HOOK: A Class A network gives you 16 million IP addresses. Giving that to a company with 1,000 employees is like giving them an entire country. Subnetting lets us carve up the map. THE SCRIPT: Subnetting is simply borrowing bits. We push the boundary line to the right, stealing bits from the Host portion to create sub-networks. If we steal 2 bits from a Class C network, we create 4 subnets, but our host space shrinks from 254 to just 62 usable IPs per subnet. Today, we use CIDR. When you see /26, it means “Lock the first 26 bits for the network routing, and let me play with the remaining 6 bits for my devices”. WHITEBOARD MOMENT: Point to the math: 32 bits total. If /26 is network, 32 - 26 = 6 bits left for hosts. 2“6 - 2 = 62. DOC. NO: LOG-DATA-003 REV A DATE: 2024-8520 NETWORK LAYER: ROUTING THE PATH DISTANCE VECTOR ROUTING (DVR) LINK STATE ROUTING (LSR) = | End Ds H t ‘| Node “al Start Node | | (eo a) - Metaphor: Reading local road signs. - Logic: Routers share their routing tables ONLY with direct neighbors. - Algorithm: Bellman-Ford. - Drawback: Count-to-infinity problem; slow to update bad news. - Metaphor: Satellite GPS view. - Logic: Routers flood the ENTIRE network with local link states. Every router builds a complete, global map. - Algorithm: Dijkstra’s Shortest Path. - Advantage: Fast convergence, highly accurate global knowledge. TEACHING NOTES THE HOOK: How does your packet know the fastest way to a server in Japan? It asks the routers. But how do routers know? THE SCRIPT: DVR is like driving by looking at road signs. You only know what the guy next to you tells you. It is simple, but ifa bridge is out miles away, it takes forever for that news to reach you. LSR is like having GPS. Every router shouts its local status to every other router in the world. They all build a complete, independent map of the network and run Dijkstra's algorithm to calculate the absolute shortest path. WHITEBOARD MOMENT: Emphasize the difference: DVR shares EVERYTHING it knows with ONLY its neighbors. LSR shares ONLY its local info with EVERYONE in the network. ™& Gemini Notebook | Se SESSION & PRESENTATION LAYERS: DIALOGUE & FORMATTING eee LL THE HOOK: LAYER 5: SESSION LAYER (DIALOGUE CONTROL) Ever had your computer crash REWIND/RESUME while downloading a 10GB file, but when you restart, it resumes at 8GB? Thank the Session Layer. THE SCRIPT: 7 DATA TRANSFER FLOW These two layers handle the manages the dialogue. It places checkpoints in the data stream CHECKPOINT 1 CHECKPOINT 2 CHECKPOINT 3 so a failure doesn't mean starting (FAILURE POINT) over from zero. Establishes dialogue. Inserts synchronization points in large data streams. If a crash occurs, transmission resumes ; ; FF from the last checkpoint, not from scratch. The Presentation layer is the universal translator. It handles the heavy lifting of encrypting our data LAYER 6: PRESENTATION LAYER (THE TRANSLATOR) into unreadable ciphertext for transit, and compressing it so it moves faster across the network. @»X Or; ==] WHITEBOARD MOMENT: i 0 A fic | g i =| iL Briefly clarify Lossy (sacrificing = uality for extreme size reduction, A cor: ys) there like JPEG/MP4) vs Lossless (perfect data retention, like ZIP files). 2 = - Translation: Converts local - Encryption/Decryption: Secures - Compression: Reduces data size 2 machine syntax to universal data (Plaintext to Ciphertext), (Lossy vs. Lossless). 5 network syntax. a SSS RIGHT30% | @& Gemini Notebook pee APPLICATION LAYER: THE USER GATEWAY DNS (Domain Name System) Top-Level Domain Top-Level Domain - Role: Translates human-readable names to IP Addresses. HTTP (HyperText Transfer Protocol) Request (Port 80) | ( + Response (HTML) - Role: The foundation of the World Wide Web. - Nature: Operates on Port 80. Inherently stateless (requires cookies to remember users). TEACHING NOTES THE HOOK: Imagine memorizing 142.250.190.46 just to search for something. You don't. You type Google.com. DNS is the internet's phonebook. THE SCRIPT: We've reached the top—Layer 7. When you type a URL, DNS translates that into an IP address. It searches hierarchically: asking the Root, then the TLD, and finally the authoritative server that holds the IP. Once the IP is found, HTTP takes over. HTTP fetches web pages. It is a stateless protocol, meaning it has no memory of past requests—which is why web developers invented cookies to keep you logged in. WHITEBOARD MOMENT: Draw the DNS resolution path on the board (Browser -> Resolver -> - Hierarchy: Root Server -> TLD Server -> - Under the hood: Relies on TCP to ensure } Root -> TLD -> Authoritative). 5 Authoritative Server. reliable delivery of web pages. > 2 Fa = DOC:003/APP = (_— RIGHT 30% #& Gemini Notebook