← Computer Science notes

Unit 7 · Computer Networks & Cyber Security

Chapters 1, 2 · Network Fundamentals: OSI, TCP/IP, Topologies & Media

pdcampus.in
pdcampus.in • DSSSB TGT CS
Beginner Topper
Computer Networks - OSI, TCP/IP, Topologies & Media Unit 6 • Ch 1 • 7 Layers Mnemonic All People Seem To Need Data Processing • TCP vs UDP • Topologies • Guided vs Unguided
Beginner Story Mode Unit 6 Start

Imagine you want to send a letter to your friend in another city. First you write letter (Application), you put in envelope with formatting (Presentation), you note session "Page 1 of 2" (Session), you go to post office transport counter (Transport) where they add tracking number TCP, then Network layer adds pincode IP address, Data Link adds street address MAC, Physical is actual truck carrying bits on wire. OSI 7 Layers = Post Office Journey!

Mnemonic to remember: All People Seem To Need Data Processing → Application, Presentation, Session, Transport, Network, Data Link, Physical. Top to bottom 7→1 bottom to top Physical→Application.

TCP/IP is practical model used in Internet 4 layers only - it combines OSI 5-7 into Application, and 1-2 into Network Access. So OSI is theory (reference model) TCP/IP is practical (implementation).

TCP vs UDP: TCP = Phone call - reliable, connection-oriented, 3-way handshake SYN→SYN/ACK→ACK, ACK retransmission, flow control, congestion control. Used for web, email, file transfer where reliability needed. UDP = Live broadcast - fast, connectionless, unreliable, no handshake, no retransmission, low overhead. Used for DNS queries, video streaming, VoIP, online gaming where speed matters more than reliability.

Topologies = How computers are connected physically:
- Bus = Single backbone cable like main road, all houses connected to same road, cheap but if road breaks all fails collision can occur terminators at ends prevent bounce.
- Star = Central hub/switch like central park all houses connect to park, most common in offices/LAN, easy fault isolation one node fails others OK but if hub fails entire network down.
- Ring = Circular loop like round table each node connected to 2 neighbors token passing to avoid collisions no collision orderly data flow but if one node fails ring breaks.
- Mesh = Every node connected to every other node highly reliable multiple paths if link fails expensive cable formula n(n-1)/2 cables best for critical systems.
- Hybrid = Combination of two or more topologies flexible scalable common in large modern networks.

Transmission Media = Road on which data travels:
- Guided Wired: Twisted Pair UTP STP CAT5 CAT6 100m 1Gbps cheap easy crosstalk EMI, Coaxial thick central copper BNC 500m 10Mbps TV cable, Fiber Optic glass light total internal reflection very high speed Gbps long distance no EMI expensive.
- Unguided Wireless: Radio Waves omnidirectional FM radio 3kHz-1GHz walls penetrate, Microwaves unidirectional line of sight 1-300GHz tower to tower need alignment, Infrared short distance remote TV line of sight, Satellite geosynchronous 36000km high latency 270ms.

Let's learn with handwritten diagrams - Unit 6 begins!

1. OSI Model - 7 Layers - The Reference Model
OSI Model 7 Layers handwritten
Fig 1: OSI 7 Layers Stack Top to Bottom 7 Application HTTP FTP SMTP DNS user interface, 6 Presentation encryption compression translation format, 5 Session session management dialog control, 4 Transport TCP UDP segmentation port numbers flow control, 3 Network IP routing logical addressing path selection, 2 Data Link MAC framing error detection switch, 1 Physical bits cables signals voltage | Mnemonic All People Seem To Need Data Processing 7→1 Application→Physical Bottom to top Physical→Data Link→Network→Transport→Session→Presentation→Application | PDU names APDU at Application PPDU at Presentation SPDU at Session Segment at Transport Packet at Network Frame at Data Link Bits at Physical | Each layer adds header encapsulation as data goes down layers decapsulation as data goes up

OSI = Open Systems Interconnection 7 Layers Theoretical Reference Model ISO standard:
- Layer 7 Application: User interface HTTP FTP SMTP DNS POP3 SNMP Telnet. Provides network services to user applications web browser email file transfer. PDU = APDU. Example HTTP request GET /index.html.
- Layer 6 Presentation: Translation encryption compression format conversion. Converts data formats ASCII→EBCDIC encryption SSL/TLS compression JPEG MPEG. Ensures data readable. PDU = PPDU. Example encrypt password before sending.
- Layer 5 Session: Session management dialog control synchronization. Establishes maintains terminates sessions checkpoints. Example login session maintained. PDU = SPDU. Example RPC Session Initiation Protocol.
- Layer 4 Transport: End-to-end delivery segmentation port numbers flow control error control. TCP UDP. Breaks data into segments adds port number source/destination ensures reliable delivery. PDU = Segment (TCP) / Datagram (UDP). Example TCP port 80 HTTP port 443 HTTPS port 25 SMTP.
- Layer 3 Network: Logical addressing routing path selection IP. IP IPv4 IPv6 ICMP IGMP ARP OSPF BGP. Adds IP address source/destination logical address routing. PDU = Packet. Example IP 192.168.1.1 routing table selects path.
- Layer 2 Data Link: Physical addressing MAC framing error detection switch. MAC address 48-bit framing LLC MAC sublayers error detection CRC. PDU = Frame. Example MAC AA:BB:CC:DD:EE:FF Ethernet frame.
- Layer 1 Physical: Bits cables signals voltage. Physical medium twisted pair coaxial fiber radio converts bits to electrical/optical/radio signals. PDU = Bits. Example voltage levels 0=0V 1=5V RJ45 connector.

Mnemonic Trick:
- Top to Bottom 7→1: All People Seem To Need Data Processing Application Presentation Session Transport Network Data Link Physical.
- Bottom to Top 1→7: Please Do Not Throw Sausage Pizza Away Physical Data Link Network Transport Session Presentation Application.
- DSSSB asks which layer does what must remember mnemonic.

Encapsulation: As data goes down layers each layer adds its own header (and sometimes trailer) Data→Segment adds TCP header→Packet adds IP header→Frame adds MAC header/trailer→Bits on wire. Decapsulation reverse at receiver each layer removes its header.
Devices per layer: Physical: Hub repeater cable, Data Link: Switch bridge NIC, Network: Router L3 switch, Transport and above: Gateway firewall.

OSI 7 Layers Top to Bottom 7 Application HTTP FTP SMTP DNS POP3 user interface PDU APDU, 6 Presentation encryption compression translation format conversion ASCII→EBCDIC SSL/TLS JPEG MPEG PDU PPDU, 5 Session session management dialog control synchronization checkpoints RPC SIP PDU SPDU, 4 Transport end-to-end segmentation port numbers flow control error control TCP UDP port 80 HTTP 443 HTTPS PDU Segment Datagram, 3 Network logical addressing routing path selection IP IPv4 IPv6 ICMP ARP OSPF BGP PDU Packet IP 192.168.1.1, 2 Data Link physical addressing MAC framing error detection switch MAC 48-bit AA:BB:CC:DD:EE:FF CRC LLC MAC PDU Frame, 1 Physical bits cables signals voltage 0=0V 1=5V RJ45 PDU Bits | Mnemonic All People Seem To Need Data Processing 7→1 Application→Physical Reverse Please Do Not Throw Sausage Pizza Away 1→7 Physical→Application | Encapsulation Data→Segment add TCP header→Packet add IP header→Frame add MAC header/trailer→Bits Decapsulation reverse removes header | Devices Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport+ Gateway firewall
2. TCP/IP Model - 4 Layers - Practical Internet Model
TCP/IP Model 4 Layers vs OSI handwritten
Fig 2: TCP/IP 4-Layer Model 4 Application OSI 5-7 combined Protocols HTTP FTP DNS Examples web browser email file transfer Session+Presentation+Application features, 3 Transport Protocols TCP UDP Handles end-to-end comms & port numbers, 2 Internet Protocol IP IPv4/IPv6 Routing IP addresses routing ICMP Function address & route packets, 1 Network Access Protocols Ethernet Wi-Fi PPP Combines Physical+Data Link Frames MAC addresses physical hardware | Comparison Table OSI 7 vs TCP/IP 4: OSI 7 Application → TCP/IP 4 Application User apps HTTP FTP DNS, OSI 6 Presentation → combined into 4 Application Data formatting encryption compression, OSI 5 Session → combined into 4 Application Session establishment management, OSI 4 Transport → 3 Transport Reliable delivery flow control TCP/UDP, OSI 3 Network → 2 Internet Routing logical addressing IP, OSI 2 Data Link → 1 Network Access Framing MAC address error detection, OSI 1 Physical → combined into 1 Network Access Physical hardware signals cabling | TCP vs UDP Key Differences TCP connection-oriented reliable 3-way handshake SYN→SYN/ACK→ACK ACK retransmission on packet loss flow control congestion control 2 Data Link 1 Physical vs UDP connectionless unreliable no acknowledgment fast low-latency low overhead no handshake no retransmission used for DNS queries video streaming VoIP online gaming | Protocols by TCP/IP Layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL | Summary TCP/IP is practical 4-layer model used on Internet today OSI is theoretical 7-layer reference model Remember TCP=reliable like phone call UDP=fast like live broadcast

TCP/IP = Transmission Control Protocol / Internet Protocol 4 Layers Practical Model used on Internet today:
- Developed by DoD Department of Defense ARPANET.
- Layer 4 Application (OSI 5-7 combined): Combines Application Presentation Session of OSI. Protocols HTTP HTTPS FTP SMTP POP3 DNS DHCP Telnet SNMP. Examples web browser email file transfer. Session + Presentation + Application layer features in one. User interacts here.
- Layer 3 Transport: Same as OSI Transport. Protocols TCP UDP. Handles end-to-end comms & port numbers segmentation flow control. Port numbers 0-1023 well-known 1024-49151 registered 49152-65535 dynamic. Example HTTP port 80.
- Layer 2 Internet: Same as OSI Network. Protocol IP IPv4/IPv6 Routing IP addresses routing ICMP ARP OSPF BGP. Function address & route packets logical addressing. Packet called IP datagram.
- Layer 1 Network Access (Physical + Data Link combined): Combines Physical + Data Link of OSI. Protocols Ethernet Wi-Fi PPP. Frames MAC addresses physical hardware. Handles physical transmission and framing.

Comparison OSI 7 vs TCP/IP 4 Mapping:
- OSI 7 Application → TCP/IP 4 Application User apps HTTP FTP DNS
- OSI 6 Presentation → combined into 4 Application Data formatting encryption compression
- OSI 5 Session → combined into 4 Application Session establishment management
- OSI 4 Transport → TCP/IP 3 Transport Reliable delivery flow control TCP/UDP
- OSI 3 Network → TCP/IP 2 Internet Routing logical addressing IP
- OSI 2 Data Link → TCP/IP 1 Network Access Framing MAC address error detection
- OSI 1 Physical → combined into 1 Network Access Physical hardware signals cabling

TCP vs UDP - Most Asked in DSSSB:
- TCP Transmission Control Protocol: Connection-oriented must establish connection before data transfer, Reliable guaranteed delivery ACK retransmission on packet loss, 3-way handshake SYN→SYN/ACK→ACK to establish connection, Flow control & congestion control prevents sender overwhelming receiver and network, Slower due to overhead but reliable, Used for HTTP HTTPS FTP SMTP email file transfer web where reliability needed, Like phone call you dial connect talk confirm.
- UDP User Datagram Protocol: Connectionless no connection establishment, Unreliable no acknowledgment no retransmission packets may be lost, Fast low-latency low overhead no handshake no flow control, No handshake no retransmission, Used for DNS queries video streaming VoIP online gaming where speed matters low latency, Like live broadcast you broadcast no confirmation who received.

Protocols by TCP/IP Layer:
- 4 Application: HTTP HTTPS FTP SMTP DNS DHCP
- 3 Transport: TCP UDP TCP=reliable UDP=fast unreliable
- 2 Internet: IP ICMP ARP OSPF
- 1 Network Access: Ethernet Wi-Fi MAC DSL

Summary: TCP/IP is practical 4-layer model used on Internet today OSI is theoretical 7-layer reference model. Internet uses TCP/IP not OSI. OSI used for teaching and reference.
Remember: TCP=reliable like phone call UDP=fast like live broadcast.

TCP/IP 4 Layers 4 Application OSI 5-7 combined Protocols HTTP FTP DNS Examples web browser email file transfer Session+Presentation+Application features, 3 Transport Protocols TCP UDP Handles end-to-end comms & port numbers Port 80 HTTP 443 HTTPS 25 SMTP, 2 Internet Protocol IP IPv4/IPv6 Routing IP addresses routing ICMP Function address & route packets, 1 Network Access Protocols Ethernet Wi-Fi PPP Combines Physical+Data Link Frames MAC addresses physical hardware | Comparison OSI 7→TCP/IP 4: 7 Application→4 Application User apps HTTP FTP DNS, 6 Presentation→combined into 4 Application Data formatting encryption compression, 5 Session→combined into 4 Application Session establishment management, 4 Transport→3 Transport Reliable delivery flow control TCP/UDP, 3 Network→2 Internet Routing logical addressing IP, 2 Data Link→1 Network Access Framing MAC error detection, 1 Physical→combined into 1 Network Access Physical hardware signals | TCP vs UDP TCP connection-oriented reliable 3-way handshake SYN→SYN/ACK→ACK ACK retransmission on packet loss flow control congestion control slower reliable HTTP HTTPS FTP SMTP email file transfer web like phone call vs UDP connectionless unreliable no acknowledgment fast low-latency low overhead no handshake no retransmission DNS queries video streaming VoIP online gaming like live broadcast | Protocols by Layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL | Summary TCP/IP practical 4-layer used on Internet today OSI theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching
3. Network Topologies - Bus Star Ring Mesh Hybrid
Network Topologies handwritten
Fig 3: Five common network topologies overview advantages disadvantages | Bus single backbone cable terminators at both ends prevent signal bounce Node1 Node2 Node3 Node4 connected to backbone Advantage cheap simple to set up Disadvantage collision can occur on backbone if backbone fails all nodes lose connection | Star all nodes connect to central hub/switch Node A B C D E connected to HUB/SWITCH Advantage easy fault isolation one node failure doesn't affect others Disadvantage if hub fails entire network is down Most common for offices/LAN | Ring nodes arranged in circular loop each linked to two neighbors uses token passing to avoid collisions Advantage no collisions orderly data flow Disadvantage if one node fails ring is broken network fails Token passing | Mesh full mesh every node connected to every other node Node1-5 all connected Advantage highly reliable multiple paths if link fails Disadvantage expensive complex cabling cable formula n(n-1)/2 cables | Hybrid combination of two or more topologies e.g., Star+Bus+Ring Advantage flexible scalable can best fit needs Disadvantage more complex design maintenance cost varies Switch connects different topologies | Comparison Table Topology Advantage Disadvantage Key Point Bus Cheap & simple Backbone fail=network fails Low cost risk if backbone down Star Easy fault isolation Hub fail=network fails Most common for offices/LAN Ring No collision token passing Single node fail=ring breaks Consistent performance Mesh Highly reliable redundant Expensive many cables Best for critical systems Hybrid Flexible scalable Complex cost depends on design Combines benefits of others | Summary Choose based on cost reliability and scale Hybrid is common in large modern networks

Topology = Physical arrangement of how computers nodes are connected:

1) Bus Topology:
- Single backbone cable single main cable all nodes tap into backbone.
- Terminators at both ends prevent signal bounce signal reflects if no terminator.
- Nodes: Node1 Node2 Node3 Node4 connected to backbone.
- Advantage: cheap simple to set up less cable.
- Disadvantage: collision can occur on backbone CSMA/CD needed if backbone fails → all nodes lose connection single point of failure.
- Example old 10BASE2 coaxial bus network.

2) Star Topology:
- All nodes connect to central hub/switch HUB/SWITCH at center Node A B C D E connected to hub.
- Advantage: easy fault isolation one node failure doesn't affect others easy to detect faulty node remove it.
- Disadvantage: if hub fails → entire network is down central point of failure hub is single point.
- Most common for offices/LAN modern Ethernet uses star with switch.
- Example office LAN with switch at center all PCs connect to switch.

3) Ring Topology:
- Nodes arranged in circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular.
- Uses token passing to avoid collisions only node holding token can transmit token circulates.
- Advantage: no collisions orderly data flow consistent performance token ensures fairness.
- Disadvantage: if one node fails → ring is broken network fails difficult to add/remove node breaks ring.
- Example Token Ring IBM FDDI Fiber Distributed Data Interface dual ring for fault tolerance.

4) Mesh Topology:
- Full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all connections.
- Advantage: highly reliable multiple paths if one link fails data can take other path no single point of failure.
- Disadvantage: expensive complex cabling many cables needed high cost.
- Cable formula: n(n-1)/2 cables for full mesh where n=number of nodes Example 5 nodes need 5*4/2=10 cables.
- Types: Full mesh all connected Partial mesh some connected.
- Best for critical systems military backbone WAN critical infrastructure.

5) Hybrid Topology:
- Combination of two or more topologies e.g., Star+Bus+Ring Switch connects different topologies.
- Advantage: flexible scalable can best fit needs combine benefits of others.
- Disadvantage: more complex design & maintenance cost varies depending on design.
- Example large enterprise network building has star topology buildings connected via bus backbone star-bus hybrid.
- Common in large modern networks internet itself is hybrid.

Comparison Summary: Choose based on cost reliability scale. Bus cheapest but risky, Star most common offices/LAN, Ring consistent performance token passing, Mesh highly reliable redundant best for critical systems, Hybrid flexible scalable combines benefits common in large modern networks.

Topology Physical arrangement how nodes connected | Bus single backbone cable terminators at both ends prevent signal bounce Node1 Node2 Node3 Node4 connected to backbone Advantage cheap simple to set up less cable Disadvantage collision can occur on backbone CSMA/CD needed if backbone fails all nodes lose connection single point of failure Example 10BASE2 coaxial | Star all nodes connect to central hub/switch HUB/SWITCH center Node A B C D E connected to hub Advantage easy fault isolation one node failure doesn't affect others easy detect faulty node Disadvantage if hub fails entire network down central point single point failure Most common for offices/LAN modern Ethernet star with switch Example office LAN switch center | Ring nodes arranged circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular Uses token passing to avoid collisions only node holding token can transmit token circulates Advantage no collisions orderly data flow consistent performance token ensures fairness Disadvantage if one node fails ring broken network fails difficult add/remove Example Token Ring IBM FDDI dual ring fault tolerance | Mesh full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all Advantage highly reliable multiple paths if one link fails no single point failure Disadvantage expensive complex cabling many cables high cost Cable formula n(n-1)/2 cables for full mesh Example 5 nodes need 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN | Hybrid combination of two or more topologies Star+Bus+Ring Switch connects different topologies Advantage flexible scalable can best fit needs combine benefits Disadvantage more complex design maintenance cost varies depending on design Example large enterprise building star buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself hybrid | Summary Choose based on cost reliability scale Bus cheapest risky Star most common offices/LAN Ring consistent token passing Mesh highly reliable redundant best critical Hybrid flexible scalable combines benefits common large modern networks
4. Transmission Media - Guided vs Unguided
Transmission Media Guided vs Unguided handwritten
Fig 4: Transmission Media Guided vs Unguided | Guided Wired media - Twisted Pair UTP STP CAT5 CAT6 100m 1Gbps cheap easy crosstalk EMI, Coaxial Cable thick central copper BNC 500m 10Mbps TV cable thicker shielded, Fiber Optic glass light total internal reflection very high speed Gbps long distance no EMI expensive glass core cladding light source LED laser | Unguided Wireless - Radio Waves omnidirectional FM radio 3kHz-1GHz walls penetrate, Microwaves unidirectional line of sight 1-300GHz tower to tower need alignment parabolic antenna, Infrared short distance remote TV line of sight 1m-10m cannot penetrate walls, Satellite geosynchronous 36000km high latency 270ms one way up-down 540ms | Comparison table Bandwidth Cost Installation EMI Resistance Distance: Twisted Pair Low 1Gbps Cheap Easy Low resistance 100m, Coaxial Medium 10Mbps Medium Medium Medium resistance 500m, Fiber Very High Gbps Expensive Difficult Very High no EMI Long km, Radio Low-Medium Cheap Easy Low but penetrate walls, Microwave High Expensive Difficult alignment High but line of sight 50km, Satellite High Very Expensive Difficult High latency Long global | Twisted Pair UTP Unshielded STP Shielded CAT categories CAT5 100Mbps CAT6 1Gbps CAT6a 10Gbps | Fiber Types Single-mode long distance laser Multi-mode short distance LED

Transmission Media = Physical path on which data travels from sender to receiver:
- Two categories: Guided Wired physical cable guides signal, Unguided Wireless signal travels through air no cable.

Guided Wired Media:
- 1) Twisted Pair: Two insulated copper wires twisted together twisting reduces crosstalk interference.
- UTP Unshielded Twisted Pair no shield cheap common, STP Shielded Twisted Pair has shield better EMI resistance expensive.
- CAT categories CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps.
- Distance 100m max after that signal degrades needs repeater.
- Speed 1Gbps typical up to 10Gbps with CAT6a.
- Advantage cheap easy to install flexible.
- Disadvantage crosstalk EMI electromagnetic interference low bandwidth compared to fiber.
- Use LAN telephone.
- 2) Coaxial Cable: Thick central copper conductor inner insulation outer shield outer insulation BNC connector.
- Thicker shielded than twisted pair better EMI resistance.
- Distance 500m for thick coax 200m for thin coax.
- Speed 10Mbps traditional Ethernet 10BASE2 10BASE5.
- Use TV cable old Ethernet backbone.
- 3) Fiber Optic: Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss.
- Very high speed Gbps to Tbps long distance kilometers no EMI electromagnetic interference immune no crosstalk secure difficult to tap.
- Expensive glass core cladding expensive installation splicing difficult needs skilled technician.
- Types: Single-mode long distance laser narrow core 9 microns long distance km, Multi-mode short distance LED wider core 50/62.5 microns short distance 550m cheaper.
- Advantage very high bandwidth no EMI secure long distance.
- Disadvantage expensive difficult installation fragile.
- Use backbone WAN long distance high speed internet backbone.

Unguided Wireless Media:
- 1) Radio Waves: Omnidirectional radiates in all directions FM radio 3kHz-1GHz penetrates walls.
- Frequency 3kHz-1GHz AM FM radio TV.
- Advantage omnidirectional no alignment needed penetrates walls.
- Disadvantage low frequency low bandwidth interference.
- Use FM radio TV remote.
- 2) Microwaves: Unidirectional line of sight narrow beam need alignment parabolic antenna dish 1-300GHz tower to tower.
- Frequency 1-300GHz.
- Distance 50km per hop need line of sight towers aligned.
- Advantage high bandwidth high frequency high speed.
- Disadvantage need alignment line of sight weather affects.
- Use cellular towers microwave links.
- 3) Infrared: Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz.
- Distance 1m-10m short range.
- Advantage cheap no license needed secure cannot penetrate walls no interference to other rooms.
- Disadvantage short distance line of sight cannot penetrate walls.
- Use TV remote IR communication.
- 4) Satellite: Geosynchronous orbit 36000km above earth high latency 270ms one way up-down 540ms round trip.
- Frequency 1-50GHz microwave uplink downlink.
- Distance global coverage.
- Advantage global coverage large area.
- Disadvantage very expensive high latency propagation delay costly.
- Use TV broadcast GPS weather.

Comparison Table Bandwidth Cost Installation EMI Resistance Distance:
- Twisted Pair Low 1Gbps Cheap Easy Low resistance but cheap 100m
- Coaxial Medium 10Mbps Medium Medium Medium resistance 500m
- Fiber Very High Gbps Expensive Difficult Very High no EMI Long km backbone
- Radio Low-Medium Cheap Easy Low but penetrate walls broadcast
- Microwave High Expensive Difficult alignment High but line of sight 50km tower to tower
- Satellite High Very Expensive Difficult High latency Long global coverage

Twisted Pair Details: UTP Unshielded STP Shielded CAT5 100Mbps CAT6 1Gbps CAT6a 10Gbps RJ45 connector 8 wires 4 pairs.
Fiber Types: Single-mode long distance laser narrow core long distance Multi-mode short distance LED wider core short distance.

Transmission Media Physical path sender to receiver Guided Wired physical cable guides signal Unguided Wireless signal through air no cable | Guided Wired 1) Twisted Pair Two insulated copper wires twisted together twisting reduces crosstalk UTP Unshielded no shield cheap common STP Shielded has shield better EMI expensive CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max Speed 1Gbps typical up to 10Gbps Advantage cheap easy flexible Disadvantage crosstalk EMI low bandwidth vs fiber Use LAN telephone | 2) Coaxial Thick central copper inner insulation outer shield outer insulation BNC connector Thicker shielded better EMI Distance 500m thick 200m thin Speed 10Mbps 10BASE2 10BASE5 Use TV cable old Ethernet backbone | 3) Fiber Optic Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance km no EMI immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult needs skilled Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper Advantage very high bandwidth no EMI secure long distance Disadvantage expensive difficult fragile Use backbone WAN long distance high speed internet backbone | Unguided Wireless 1) Radio Waves Omnidirectional all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM TV Advantage omnidirectional no alignment penetrates walls Disadvantage low frequency low bandwidth interference Use FM radio TV remote | 2) Microwaves Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers aligned Advantage high bandwidth high frequency high speed Disadvantage need alignment line of sight weather affects Use cellular towers microwave links | 3) Infrared Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short range Advantage cheap no license secure cannot penetrate walls no interference to other rooms Disadvantage short distance line of sight cannot penetrate walls Use TV remote IR | 4) Satellite Geosynchronous 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverage Advantage global coverage large area Disadvantage very expensive high latency propagation delay costly Use TV broadcast GPS weather | Comparison Bandwidth Cost Installation EMI Resistance Distance Twisted Pair Low 1Gbps Cheap Easy Low resistance 100m Coaxial Medium 10Mbps Medium Medium Medium resistance 500m Fiber Very High Gbps Expensive Difficult Very High no EMI Long km Radio Low-Medium Cheap Easy Low but penetrate walls Microwave High Expensive Difficult alignment High but line of sight 50km Satellite High Very Expensive Difficult High latency Long global | Twisted Pair UTP Unshielded STP Shielded CAT categories CAT5 100Mbps CAT6 1Gbps CAT6a 10Gbps RJ45 8 wires 4 pairs | Fiber Types Single-mode long distance laser narrow core long distance Multi-mode short distance LED wider core short distance
5. DSSSB Traps & PYQ Practice - Unit 6 Ch1
  • Q: OSI full form? → Open Systems Interconnection 7 Layers Theoretical Reference Model ISO
  • Q: OSI 7 layers top to bottom? → 7 Application 6 Presentation 5 Session 4 Transport 3 Network 2 Data Link 1 Physical Mnemonic All People Seem To Need Data Processing 7→1 Application→Physical
  • Q: OSI bottom to top? → Please Do Not Throw Sausage Pizza Away Physical Data Link Network Transport Session Presentation Application 1→7
  • Q: Application layer protocols? → HTTP FTP SMTP DNS POP3 SNMP Telnet PDU APDU User interface web browser email file transfer Example HTTP GET /index.html
  • Q: Presentation layer? → Translation encryption compression format conversion ASCII→EBCDIC SSL/TLS JPEG MPEG Ensures readable PDU PPDU Example encrypt password
  • Q: Session layer? → Session management dialog control synchronization Establishes maintains terminates sessions checkpoints RPC SIP PDU SPDU Example login session
  • Q: Transport layer? → End-to-end delivery segmentation port numbers flow control error control TCP UDP Breaks into segments adds port number reliable delivery PDU Segment Datagram Port 80 HTTP 443 HTTPS 25 SMTP
  • Q: Network layer? → Logical addressing routing path selection IP IPv4 IPv6 ICMP IGMP ARP OSPF BGP Adds IP address routing PDU Packet IP 192.168.1.1 routing table selects path
  • Q: Data Link layer? → Physical addressing MAC framing error detection switch MAC 48-bit framing LLC MAC sublayers CRC PDU Frame MAC AA:BB:CC:DD:EE:FF Ethernet frame
  • Q: Physical layer? → Bits cables signals voltage Physical medium twisted pair coaxial fiber radio converts bits to electrical/optical/radio PDU Bits voltage 0=0V 1=5V RJ45
  • Q: PDU names? → Application APDU Presentation PPDU Session SPDU Transport Segment Datagram Network Packet Data Link Frame Physical Bits
  • Q: Encapsulation? → Data goes down each layer adds header Data→Segment add TCP header→Packet add IP header→Frame add MAC header/trailer→Bits Decapsulation reverse removes header
  • Q: Devices per layer? → Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport+ Gateway firewall
  • Q: TCP/IP full form? → Transmission Control Protocol / Internet Protocol 4 Layers Practical Model used on Internet today DoD ARPANET
  • Q: TCP/IP 4 layers? → 4 Application OSI 5-7 combined HTTP FTP DNS web browser email file transfer Session+Presentation+Application features, 3 Transport TCP UDP end-to-end comms port numbers, 2 Internet IP IPv4/IPv6 IP addresses routing ICMP address & route packets, 1 Network Access Ethernet Wi-Fi PPP Physical+Data Link Frames MAC addresses physical hardware
  • Q: OSI vs TCP/IP mapping? → OSI 7 Application→TCP/IP 4 Application User apps HTTP FTP DNS, OSI 6 Presentation→combined into 4 Application Data formatting encryption compression, OSI 5 Session→combined into 4 Application Session establishment management, OSI 4 Transport→3 Transport Reliable delivery flow control TCP/UDP, OSI 3 Network→2 Internet Routing logical addressing IP, OSI 2 Data Link→1 Network Access Framing MAC error detection, OSI 1 Physical→combined into 1 Network Access Physical hardware signals cabling
  • Q: TCP vs UDP? → TCP connection-oriented reliable 3-way handshake SYN→SYN/ACK→ACK ACK retransmission on packet loss flow control congestion control slower reliable HTTP HTTPS FTP SMTP email file transfer web like phone call dial connect talk confirm vs UDP connectionless unreliable no acknowledgment fast low-latency low overhead no handshake no retransmission DNS queries video streaming VoIP online gaming like live broadcast
  • Q: TCP 3-way handshake? → SYN→SYN/ACK→ACK to establish connection SYN sender to receiver SYN/ACK receiver to sender ACK sender to receiver connection established
  • Q: UDP uses? → DNS queries video streaming VoIP online gaming fast low-latency where speed matters more than reliability
  • Q: TCP uses? → HTTP HTTPS FTP SMTP email file transfer web where reliability needed
  • Q: Protocols by layer? → 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL
  • Q: OSI vs TCP/IP summary? → TCP/IP practical 4-layer used on Internet today OSI theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching reference Remember TCP=reliable like phone call UDP=fast like live broadcast
  • Q: Topology? → Physical arrangement how nodes connected
  • Q: Bus? → Single backbone cable terminators at both ends prevent signal bounce Node1 Node2 Node3 Node4 connected to backbone Advantage cheap simple less cable Disadvantage collision can occur CSMA/CD needed if backbone fails all nodes lose connection single point failure Example 10BASE2 coaxial old bus
  • Q: Star? → All nodes connect to central hub/switch HUB/SWITCH center Node A B C D E connected to hub Advantage easy fault isolation one node failure doesn't affect others easy detect faulty node Disadvantage if hub fails entire network down central point single point failure Most common for offices/LAN modern Ethernet star with switch Example office LAN switch center all PCs connect to switch
  • Q: Ring? → Nodes arranged circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular Uses token passing to avoid collisions only node holding token can transmit token circulates Advantage no collisions orderly data flow consistent performance token ensures fairness Disadvantage if one node fails ring broken network fails difficult add/remove Example Token Ring IBM FDDI dual ring fault tolerance dual ring
  • Q: Mesh? → Full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all Advantage highly reliable multiple paths if one link fails no single point failure Disadvantage expensive complex cabling many cables high cost Cable formula n(n-1)/2 cables for full mesh Example 5 nodes need 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN critical infrastructure
  • Q: Hybrid? → Combination of two or more topologies Star+Bus+Ring Switch connects different topologies Advantage flexible scalable can best fit needs combine benefits Disadvantage more complex design maintenance cost varies depending on design Example large enterprise building star buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself hybrid
  • Q: Cable formula mesh? → n(n-1)/2 cables for full mesh where n=number of nodes Example 5 nodes 10 cables
  • Q: Most common topology? → Star most common for offices/LAN modern Ethernet uses star with switch
  • Q: Which topology no collision? → Ring token passing no collisions orderly data flow
  • Q: Transmission Media? → Physical path sender to receiver Guided Wired physical cable guides signal Unguided Wireless signal through air no cable
  • Q: Twisted Pair? → Two insulated copper wires twisted together twisting reduces crosstalk UTP Unshielded no shield cheap common STP Shielded has shield better EMI expensive CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max Speed 1Gbps typical up to 10Gbps Advantage cheap easy flexible Disadvantage crosstalk EMI low bandwidth vs fiber Use LAN telephone RJ45 8 wires 4 pairs
  • Q: Coaxial? → Thick central copper inner insulation outer shield outer insulation BNC connector Thicker shielded better EMI Distance 500m thick 200m thin Speed 10Mbps 10BASE2 10BASE5 Use TV cable old Ethernet backbone
  • Q: Fiber Optic? → Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance km no EMI immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult needs skilled Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper Advantage very high bandwidth no EMI secure long distance Disadvantage expensive difficult fragile Use backbone WAN long distance high speed internet backbone
  • Q: Single-mode vs Multi-mode? → Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper
  • Q: Radio Waves? → Omnidirectional all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM TV Advantage omnidirectional no alignment penetrates walls Disadvantage low frequency low bandwidth interference Use FM radio TV remote
  • Q: Microwaves? → Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers aligned Advantage high bandwidth high frequency high speed Disadvantage need alignment line of sight weather affects Use cellular towers microwave links
  • Q: Infrared? → Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short range Advantage cheap no license secure cannot penetrate walls no interference to other rooms Disadvantage short distance line of sight cannot penetrate walls Use TV remote IR
  • Q: Satellite? → Geosynchronous 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverage Advantage global coverage large area Disadvantage very expensive high latency propagation delay costly Use TV broadcast GPS weather
  • Q: Comparison bandwidth? → Twisted Pair Low 1Gbps Cheap Easy Low resistance 100m Coaxial Medium 10Mbps Medium Medium Medium resistance 500m Fiber Very High Gbps Expensive Difficult Very High no EMI Long km Radio Low-Medium Cheap Easy Low but penetrate walls Microwave High Expensive Difficult alignment High but line of sight 50km Satellite High Very Expensive Difficult High latency Long global
  • Q: Total internal reflection? → Fiber optic light bounces inside core no loss due to total internal reflection
OSI full form Open Systems Interconnection 7 Layers Theoretical Reference Model ISO | OSI 7 layers top to bottom 7 Application 6 Presentation 5 Session 4 Transport 3 Network 2 Data Link 1 Physical Mnemonic All People Seem To Need Data Processing 7→1 Application→Physical Reverse Please Do Not Throw Sausage Pizza Away 1→7 Physical→Application | Application HTTP FTP SMTP DNS POP3 SNMP Telnet PDU APDU User interface web browser email file transfer Example HTTP GET /index.html | Presentation Translation encryption compression format conversion ASCII→EBCDIC SSL/TLS JPEG MPEG Ensures readable PDU PPDU Example encrypt password | Session Session management dialog control synchronization Establishes maintains terminates sessions checkpoints RPC SIP PDU SPDU Example login session | Transport End-to-end segmentation port numbers flow control error control TCP UDP Breaks into segments adds port number reliable delivery PDU Segment Datagram Port 80 HTTP 443 HTTPS 25 SMTP | Network Logical addressing routing path selection IP IPv4 IPv6 ICMP IGMP ARP OSPF BGP Adds IP address routing PDU Packet IP 192.168.1.1 routing table selects path | Data Link Physical addressing MAC framing error detection switch MAC 48-bit framing LLC MAC sublayers CRC PDU Frame MAC AA:BB:CC:DD:EE:FF Ethernet frame | Physical Bits cables signals voltage Physical medium twisted pair coaxial fiber radio converts bits to electrical/optical/radio PDU Bits voltage 0=0V 1=5V RJ45 | PDU Application APDU Presentation PPDU Session SPDU Transport Segment Datagram Network Packet Data Link Frame Physical Bits | Encapsulation Data goes down each layer adds header Data→Segment add TCP header→Packet add IP header→Frame add MAC header/trailer→Bits Decapsulation reverse removes header | Devices Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport+ Gateway firewall | TCP/IP full form Transmission Control Protocol / Internet Protocol 4 Layers Practical Model used on Internet today DoD ARPANET | TCP/IP 4 layers 4 Application OSI 5-7 combined HTTP FTP DNS web browser email file transfer Session+Presentation+Application features, 3 Transport TCP UDP end-to-end comms port numbers, 2 Internet IP IPv4/IPv6 IP addresses routing ICMP address & route packets, 1 Network Access Ethernet Wi-Fi PPP Physical+Data Link Frames MAC addresses physical hardware | OSI vs TCP/IP mapping OSI 7 Application→TCP/IP 4 Application User apps HTTP FTP DNS, OSI 6 Presentation→combined into 4 Application Data formatting encryption compression, OSI 5 Session→combined into 4 Application Session establishment management, OSI 4 Transport→3 Transport Reliable delivery flow control TCP/UDP, OSI 3 Network→2 Internet Routing logical addressing IP, OSI 2 Data Link→1 Network Access Framing MAC error detection, OSI 1 Physical→combined into 1 Network Access Physical hardware signals cabling | TCP vs UDP TCP connection-oriented reliable 3-way handshake SYN→SYN/ACK→ACK ACK retransmission on packet loss flow control congestion control slower reliable HTTP HTTPS FTP SMTP email file transfer web like phone call dial connect talk confirm vs UDP connectionless unreliable no acknowledgment fast low-latency low overhead no handshake no retransmission DNS queries video streaming VoIP online gaming like live broadcast | TCP 3-way handshake SYN→SYN/ACK→ACK to establish connection SYN sender to receiver SYN/ACK receiver to sender ACK sender to receiver connection established | UDP uses DNS queries video streaming VoIP online gaming fast low-latency where speed matters more than reliability | TCP uses HTTP HTTPS FTP SMTP email file transfer web where reliability needed | Protocols by layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL | OSI vs TCP/IP summary TCP/IP practical 4-layer used on Internet today OSI theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching reference Remember TCP=reliable like phone call UDP=fast like live broadcast | Topology Physical arrangement how nodes connected | Bus Single backbone cable terminators at both ends prevent signal bounce Node1 Node2 Node3 Node4 connected to backbone Advantage cheap simple less cable Disadvantage collision can occur CSMA/CD needed if backbone fails all nodes lose connection single point failure Example 10BASE2 coaxial old bus | Star All nodes connect to central hub/switch HUB/SWITCH center Node A B C D E connected to hub Advantage easy fault isolation one node failure doesn't affect others easy detect faulty node Disadvantage if hub fails entire network down central point single point failure Most common for offices/LAN modern Ethernet star with switch Example office LAN switch center all PCs connect to switch | Ring Nodes arranged circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular Uses token passing to avoid collisions only node holding token can transmit token circulates Advantage no collisions orderly data flow consistent performance token ensures fairness Disadvantage if one node fails ring broken network fails difficult add/remove Example Token Ring IBM FDDI dual ring fault tolerance dual ring | Mesh Full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all Advantage highly reliable multiple paths if one link fails no single point failure Disadvantage expensive complex cabling many cables high cost Cable formula n(n-1)/2 cables for full mesh Example 5 nodes need 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN critical infrastructure | Hybrid Combination of two or more topologies Star+Bus+Ring Switch connects different topologies Advantage flexible scalable can best fit needs combine benefits Disadvantage more complex design maintenance cost varies depending on design Example large enterprise building star buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself hybrid | Cable formula mesh n(n-1)/2 cables for full mesh where n=number of nodes Example 5 nodes 10 cables | Most common topology Star most common for offices/LAN modern Ethernet uses star with switch | Which topology no collision? Ring token passing no collisions orderly data flow | Transmission Media Physical path sender to receiver Guided Wired physical cable guides signal Unguided Wireless signal through air no cable | Twisted Pair Two insulated copper wires twisted together twisting reduces crosstalk UTP Unshielded no shield cheap common STP Shielded has shield better EMI expensive CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max Speed 1Gbps typical up to 10Gbps Advantage cheap easy flexible Disadvantage crosstalk EMI low bandwidth vs fiber Use LAN telephone RJ45 8 wires 4 pairs | Coaxial Thick central copper inner insulation outer shield outer insulation BNC connector Thicker shielded better EMI Distance 500m thick 200m thin Speed 10Mbps 10BASE2 10BASE5 Use TV cable old Ethernet backbone | Fiber Optic Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance km no EMI immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult needs skilled Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper Advantage very high bandwidth no EMI secure long distance Disadvantage expensive difficult fragile Use backbone WAN long distance high speed internet backbone | Single-mode vs Multi-mode Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper | Radio Waves Omnidirectional all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM TV Advantage omnidirectional no alignment penetrates walls Disadvantage low frequency low bandwidth interference Use FM radio TV remote | Microwaves Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers aligned Advantage high bandwidth high frequency high speed Disadvantage need alignment line of sight weather affects Use cellular towers microwave links | Infrared Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short range Advantage cheap no license secure cannot penetrate walls no interference to other rooms Disadvantage short distance line of sight cannot penetrate walls Use TV remote IR | Satellite Geosynchronous 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverage Advantage global coverage large area Disadvantage very expensive high latency propagation delay costly Use TV broadcast GPS weather | Comparison bandwidth Twisted Pair Low 1Gbps Cheap Easy Low resistance 100m Coaxial Medium 10Mbps Medium Medium Medium resistance 500m Fiber Very High Gbps Expensive Difficult Very High no EMI Long km Radio Low-Medium Cheap Easy Low but penetrate walls Microwave High Expensive Difficult alignment High but line of sight 50km Satellite High Very Expensive Difficult High latency Long global | Total internal reflection Fiber optic light bounces inside core no loss due to total internal reflection

Final Recap - Unit 6 Ch1 Complete: Imagine letter to friend in another city First write letter Application put in envelope formatting Presentation note session Page 1 of 2 Session go to post office transport counter Transport where they add tracking number TCP then Network adds pincode IP address Data Link adds street address MAC Physical actual truck carrying bits on wire OSI 7 Layers Post Office Journey Mnemonic All People Seem To Need Data Processing Application Presentation Session Transport Network Data Link Physical Top to bottom 7→1 bottom to top Physical→Application Bottom to top Please Do Not Throw Sausage Pizza Away Physical Data Link Network Transport Session Presentation Application OSI Open Systems Interconnection 7 Layers Theoretical Reference Model ISO standard Layer 7 Application User interface HTTP FTP SMTP DNS POP3 SNMP Telnet Provides network services to user applications web browser email file transfer PDU APDU Example HTTP request GET /index.html Layer 6 Presentation Translation encryption compression format conversion Converts data formats ASCII→EBCDIC encryption SSL/TLS compression JPEG MPEG Ensures data readable PDU PPDU Example encrypt password before sending Layer 5 Session Session management dialog control synchronization Establishes maintains terminates sessions checkpoints Example login session maintained PDU SPDU Example RPC Session Initiation Protocol Layer 4 Transport End-to-end delivery segmentation port numbers flow control error control TCP UDP Breaks data into segments adds port number source/destination ensures reliable delivery PDU Segment TCP Datagram UDP Example TCP port 80 HTTP port 443 HTTPS port 25 SMTP Layer 3 Network Logical addressing routing path selection IP IP IPv4 IPv6 ICMP IGMP ARP OSPF BGP Adds IP address source/destination logical address routing PDU Packet Example IP 192.168.1.1 routing table selects path Layer 2 Data Link Physical addressing MAC framing error detection switch MAC address 48-bit framing LLC MAC sublayers error detection CRC PDU Frame Example MAC AA:BB:CC:DD:EE:FF Ethernet frame Layer 1 Physical Bits cables signals voltage Physical medium twisted pair coaxial fiber radio converts bits to electrical/optical/radio signals PDU Bits Example voltage levels 0=0V 1=5V RJ45 connector Encapsulation As data goes down layers each layer adds its own header and sometimes trailer Data→Segment adds TCP header→Packet adds IP header→Frame adds MAC header/trailer→Bits on wire Decapsulation reverse at receiver each layer removes its header Devices per layer Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport and above Gateway firewall TCP/IP Transmission Control Protocol / Internet Protocol 4 Layers Practical Model used on Internet today Developed DoD Department of Defense ARPANET Layer 4 Application OSI 5-7 combined Protocols HTTP HTTPS FTP SMTP POP3 DNS DHCP Telnet SNMP Examples web browser email file transfer Session+Presentation+Application layer features in one User interacts here Layer 3 Transport Same as OSI Transport Protocols TCP UDP Handles end-to-end comms & port numbers segmentation flow control Port numbers 0-1023 well-known 1024-49151 registered 49152-65535 dynamic Example HTTP port 80 Layer 2 Internet Same as OSI Network Protocol IP IPv4/IPv6 Routing IP addresses routing ICMP ARP OSPF BGP Function address & route packets logical addressing Packet called IP datagram Layer 1 Network Access Physical+Data Link combined Protocols Ethernet Wi-Fi PPP Frames MAC addresses physical hardware Handles physical transmission and framing Comparison OSI 7 vs TCP/IP 4 Mapping OSI 7 Application→TCP/IP 4 Application User apps HTTP FTP DNS OSI 6 Presentation→combined into 4 Application Data formatting encryption compression OSI 5 Session→combined into 4 Application Session establishment management OSI 4 Transport→TCP/IP 3 Transport Reliable delivery flow control TCP/UDP OSI 3 Network→TCP/IP 2 Internet Routing logical addressing IP OSI 2 Data Link→TCP/IP 1 Network Access Framing MAC address error detection OSI 1 Physical→combined into 1 Network Access Physical hardware signals cabling TCP vs UDP Most Asked in DSSSB TCP Transmission Control Protocol Connection-oriented must establish connection before data transfer Reliable guaranteed delivery ACK retransmission on packet loss 3-way handshake SYN→SYN/ACK→ACK to establish connection Flow control & congestion control prevents sender overwhelming receiver and network Slower due to overhead but reliable Used for HTTP HTTPS FTP SMTP email file transfer web where reliability needed Like phone call you dial connect talk confirm UDP User Datagram Protocol Connectionless no connection establishment Unreliable no acknowledgment no retransmission packets may be lost Fast low-latency low overhead no handshake no flow control No handshake no retransmission Used for DNS queries video streaming VoIP online gaming where speed matters low latency Like live broadcast you broadcast no confirmation who received Protocols by TCP/IP Layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL Summary TCP/IP is practical 4-layer model used on Internet today OSI is theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching and reference Remember TCP=reliable like phone call UDP=fast like live broadcast Topology Physical arrangement of how computers nodes are connected 1 Bus Topology Single backbone cable single main cable all nodes tap into backbone Terminators at both ends prevent signal bounce signal reflects if no terminator Nodes Node1 Node2 Node3 Node4 connected to backbone Advantage cheap simple to set up less cable Disadvantage collision can occur on backbone CSMA/CD needed if backbone fails→all nodes lose connection single point of failure Example old 10BASE2 coaxial bus network 2 Star Topology All nodes connect to central hub/switch HUB/SWITCH at center Node A B C D E connected to hub Advantage easy fault isolation one node failure doesn't affect others easy to detect faulty node remove it Disadvantage if hub fails→entire network is down central point of failure hub is single point Most common for offices/LAN modern Ethernet uses star with switch Example office LAN with switch at center all PCs connect to switch 3 Ring Topology Nodes arranged in circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular Uses token passing to avoid collisions only node holding token can transmit token circulates Advantage no collisions orderly data flow consistent performance token ensures fairness Disadvantage if one node fails→ring is broken network fails difficult to add/remove node breaks ring Example Token Ring IBM FDDI Fiber Distributed Data Interface dual ring for fault tolerance 4 Mesh Topology Full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all connections Advantage highly reliable multiple paths if one link fails data can take other path no single point of failure Disadvantage expensive complex cabling many cables needed high cost Cable formula n(n-1)/2 cables for full mesh where n=number of nodes Example 5 nodes need 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN critical infrastructure 5 Hybrid Topology Combination of two or more topologies e.g., Star+Bus+Ring Switch connects different topologies Advantage flexible scalable can best fit needs combine benefits of others Disadvantage more complex design & maintenance cost varies depending on design Example large enterprise network building has star topology buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself is hybrid Comparison Summary Choose based on cost reliability scale Bus cheapest but risky Star most common offices/LAN Ring consistent performance token passing Mesh highly reliable redundant best for critical systems Hybrid flexible scalable combines benefits common in large modern networks Transmission Media Physical path on which data travels from sender to receiver Two categories Guided Wired physical cable guides signal Unguided Wireless signal travels through air no cable Guided Wired Media 1 Twisted Pair Two insulated copper wires twisted together twisting reduces crosstalk interference UTP Unshielded Twisted Pair no shield cheap common STP Shielded Twisted Pair has shield better EMI resistance expensive CAT categories CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max after that signal degrades needs repeater Speed 1Gbps typical up to 10Gbps with CAT6a Advantage cheap easy to install flexible Disadvantage crosstalk EMI electromagnetic interference low bandwidth compared to fiber Use LAN telephone 2 Coaxial Cable Thick central copper conductor inner insulation outer shield outer insulation BNC connector Thicker shielded than twisted pair better EMI resistance Distance 500m for thick coax 200m for thin coax Speed 10Mbps traditional Ethernet 10BASE2 10BASE5 Use TV cable old Ethernet backbone 3 Fiber Optic Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance kilometers no EMI electromagnetic interference immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult needs skilled technician Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short distance 550m cheaper Advantage very high bandwidth no EMI secure long distance Disadvantage expensive difficult installation fragile Use backbone WAN long distance high speed internet backbone Unguided Wireless Media 1 Radio Waves Omnidirectional radiates in all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM radio TV Advantage omnidirectional no alignment needed penetrates walls Disadvantage low frequency low bandwidth interference Use FM radio TV remote 2 Microwaves Unidirectional line of sight narrow beam need alignment parabolic antenna dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers aligned Advantage high bandwidth high frequency high speed Disadvantage need alignment line of sight weather affects Use cellular towers microwave links 3 Infrared Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short range Advantage cheap no license needed secure cannot penetrate walls no interference to other rooms Disadvantage short distance line of sight cannot penetrate walls Use TV remote IR communication 4 Satellite Geosynchronous orbit 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverage Advantage global coverage large area Disadvantage very expensive high latency propagation delay costly Use TV broadcast GPS weather Comparison Table Bandwidth Cost Installation EMI Resistance Distance Twisted Pair Low 1Gbps Cheap Easy Low resistance but cheap 100m Coaxial Medium 10Mbps Medium Medium Medium resistance 500m Fiber Very High Gbps Expensive Difficult Very High no EMI Long km backbone Radio Low-Medium Cheap Easy Low but penetrate walls broadcast Microwave High Expensive Difficult alignment High but line of sight 50km tower to tower Satellite High Very Expensive Difficult High latency Long global coverage Twisted Pair Details UTP Unshielded STP Shielded CAT5 100Mbps CAT6 1Gbps CAT6a 10Gbps RJ45 connector 8 wires 4 pairs Fiber Types Single-mode long distance laser narrow core long distance Multi-mode short distance LED wider core short distance If you remember OSI 7 Layers Mnemonic All People Seem To Need Data Processing Application Presentation Session Transport Network Data Link Physical Top to bottom 7→1 Bottom to top Please Do Not Throw Sausage Pizza Away Physical Data Link Network Transport Session Presentation Application Application HTTP FTP SMTP DNS POP3 user interface PDU APDU Presentation encryption compression translation format conversion ASCII→EBCDIC SSL/TLS JPEG MPEG PDU PPDU Session session management dialog control synchronization checkpoints RPC SIP PDU SPDU Transport end-to-end segmentation port numbers flow control TCP UDP port 80 HTTP 443 HTTPS PDU Segment Network logical addressing routing IP IPv4 IPv6 ICMP ARP OSPF BGP PDU Packet Data Link physical addressing MAC framing error detection switch MAC 48-bit AA:BB:CC:DD:EE:FF CRC PDU Frame Physical bits cables signals voltage PDU Bits Devices Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport+ Gateway firewall and TCP/IP 4 Layers 4 Application OSI 5-7 combined HTTP FTP DNS web browser email file transfer Session+Presentation+Application features 3 Transport TCP UDP end-to-end comms port numbers 2 Internet IP IPv4/IPv6 IP addresses routing ICMP address & route packets 1 Network Access Ethernet Wi-Fi PPP Physical+Data Link Frames MAC addresses physical hardware Comparison OSI 7→TCP/IP 4 7 Application→4 Application 6 Presentation→combined into 4 Application 5 Session→combined into 4 Application 4 Transport→3 Transport 3 Network→2 Internet 2 Data Link→1 Network Access 1 Physical→combined into 1 Network Access TCP vs UDP TCP connection-oriented reliable 3-way handshake SYN→SYN/ACK→ACK ACK retransmission flow control congestion control slower reliable HTTP HTTPS FTP SMTP email file transfer web like phone call vs UDP connectionless unreliable no acknowledgment fast low-latency low overhead no handshake no retransmission DNS queries video streaming VoIP online gaming like live broadcast Protocols by layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL Summary TCP/IP practical 4-layer used on Internet today OSI theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching and TCP vs UDP remember TCP=reliable like phone call UDP=fast like live broadcast and Bus single backbone cable terminators both ends prevent bounce Node1 Node2 Node3 Node4 backbone cheap simple less cable collision can occur CSMA/CD needed if backbone fails all lose single point failure 10BASE2 coaxial and Star all nodes connect to central hub/switch HUB/SWITCH center Node A B C D E connected to hub easy fault isolation one node failure doesn't affect others easy detect faulty node if hub fails entire network down central point single point failure Most common for offices/LAN modern Ethernet star with switch office LAN switch center and Ring circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular token passing avoid collisions only node holding token can transmit token circulates no collisions orderly data flow consistent performance token ensures fairness if one node fails ring broken network fails difficult add/remove Token Ring IBM FDDI dual ring fault tolerance and Mesh full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all highly reliable multiple paths if one link fails no single point failure expensive complex cabling many cables high cost Cable formula n(n-1)/2 cables for full mesh Example 5 nodes 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN and Hybrid combination two or more topologies Star+Bus+Ring Switch connects different topologies flexible scalable best fit needs combine benefits more complex design maintenance cost varies large enterprise building star buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself hybrid and Twisted Pair Two insulated copper wires twisted together twisting reduces crosstalk UTP Unshielded no shield cheap common STP Shielded has shield better EMI expensive CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max Speed 1Gbps typical up to 10Gbps cheap easy flexible crosstalk EMI low bandwidth vs fiber LAN telephone RJ45 8 wires 4 pairs and Coaxial Thick central copper inner insulation outer shield outer insulation BNC connector Thicker shielded better EMI Distance 500m thick 200m thin Speed 10Mbps 10BASE2 10BASE5 TV cable old Ethernet backbone and Fiber Optic Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance km no EMI immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult skilled Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper very high bandwidth no EMI secure long distance expensive difficult fragile backbone WAN long distance high speed internet backbone and Radio Waves Omnidirectional all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM TV omnidirectional no alignment penetrates walls low frequency low bandwidth interference FM radio TV remote and Microwaves Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers aligned high bandwidth high frequency high speed need alignment line of sight weather affects cellular towers microwave links and Infrared Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short range cheap no license secure cannot penetrate walls no interference to other rooms short distance line of sight cannot penetrate walls TV remote IR and Satellite Geosynchronous 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverage global coverage large area very expensive high latency propagation delay costly TV broadcast GPS weather Comparison Bandwidth Cost Installation EMI Resistance Distance Twisted Pair Low 1Gbps Cheap Easy Low resistance 100m Coaxial Medium 10Mbps Medium Medium Medium resistance 500m Fiber Very High Gbps Expensive Difficult Very High no EMI Long km Radio Low-Medium Cheap Easy Low but penetrate walls Microwave High Expensive Difficult alignment High but line of sight 50km Satellite High Very Expensive Difficult High latency Long global DSSSB 8 marks fixed! Unit 6 Ch1 Complete!

Topper Revision 1 Page = Full Chapter

OSI Model 7 Layers

LayerNameProtocols/FunctionPDU
7ApplicationHTTP FTP SMTP DNS POP3 SNMP Telnet User interface web browser email file transfer Example HTTP GET /index.htmlAPDU
6PresentationTranslation encryption compression format conversion ASCII→EBCDIC SSL/TLS JPEG MPEG Ensures readable Example encrypt passwordPPDU
5SessionSession management dialog control synchronization Establishes maintains terminates sessions checkpoints RPC SIP Example login sessionSPDU
4TransportEnd-to-end segmentation port numbers flow control error control TCP UDP Breaks into segments adds port number reliable delivery Port 80 HTTP 443 HTTPS 25 SMTPSegment / Datagram
3NetworkLogical addressing routing path selection IP IPv4 IPv6 ICMP IGMP ARP OSPF BGP Adds IP address routing IP 192.168.1.1 routing table selects pathPacket
2Data LinkPhysical addressing MAC framing error detection switch MAC 48-bit framing LLC MAC sublayers CRC MAC AA:BB:CC:DD:EE:FF Ethernet frameFrame
1PhysicalBits cables signals voltage Physical medium twisted pair coaxial fiber radio converts bits to electrical/optical/radio voltage 0=0V 1=5V RJ45Bits
  • Mnemonic Top to Bottom 7→1 All People Seem To Need Data Processing Application Presentation Session Transport Network Data Link Physical
  • Mnemonic Bottom to Top 1→7 Please Do Not Throw Sausage Pizza Away Physical Data Link Network Transport Session Presentation Application
  • Encapsulation Data goes down each layer adds header Data→Segment add TCP header→Packet add IP header→Frame add MAC header/trailer→Bits Decapsulation reverse removes header
  • Devices Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport+ Gateway firewall

TCP/IP Model 4 Layers

TCP/IP LayerOSI MappingProtocolsFunction
4 ApplicationOSI 5-7 combined Application Presentation SessionHTTP FTP DNS Examples web browser email file transfer Session+Presentation+Application featuresUser apps HTTP FTP DNS Data formatting encryption compression Session establishment management
3 TransportOSI 4 TransportTCP UDP Handles end-to-end comms & port numbers Port 80 HTTP 443 HTTPS 25 SMTPReliable delivery flow control TCP/UDP end-to-end comms port numbers
2 InternetOSI 3 NetworkIP IPv4/IPv6 IP addresses routing ICMP ARP OSPF BGP Function address & route packetsRouting logical addressing IP address & route packets
1 Network AccessOSI 1+2 Physical+Data LinkEthernet Wi-Fi PPP Combines Physical+Data Link Frames MAC addresses physical hardwareFraming MAC address error detection Physical hardware signals cabling
FeatureTCPUDP
TypeConnection-oriented must establish connection before data transferConnectionless no connection establishment
ReliabilityReliable guaranteed delivery ACK retransmission on packet lossUnreliable no acknowledgment no retransmission packets may be lost
Handshake3-way handshake SYN→SYN/ACK→ACK to establish connectionNo handshake
Flow/CongestionFlow control & congestion control prevents sender overwhelming receiver and networkNo flow control no congestion control
SpeedSlower due to overhead but reliableFast low-latency low overhead
UseHTTP HTTPS FTP SMTP email file transfer web where reliability needed Like phone call dial connect talk confirmDNS queries video streaming VoIP online gaming where speed matters low latency Like live broadcast broadcast no confirmation
  • Protocols by Layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL
  • Summary TCP/IP practical 4-layer used on Internet today OSI theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching reference Remember TCP=reliable like phone call UDP=fast like live broadcast

Topologies

TopologyStructureAdvantageDisadvantageUse
BusSingle backbone cable terminators at both ends prevent signal bounce Node1 Node2 Node3 Node4 connected to backboneCheap simple to set up less cableCollision can occur CSMA/CD needed if backbone fails all nodes lose connection single point failure Example 10BASE2 coaxial old busOld 10BASE2 coaxial bus network
StarAll nodes connect to central hub/switch HUB/SWITCH center Node A B C D E connected to hubEasy fault isolation one node failure doesn't affect others easy detect faulty nodeIf hub fails entire network down central point single point failure Most common for offices/LAN modern Ethernet star with switch Example office LAN switch center all PCs connect to switchMost common for offices/LAN modern Ethernet star with switch Office LAN
RingNodes arranged circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular Uses token passing to avoid collisions only node holding token can transmit token circulatesNo collisions orderly data flow consistent performance token ensures fairnessIf one node fails ring broken network fails difficult add/remove Example Token Ring IBM FDDI dual ring fault tolerance dual ringToken Ring IBM FDDI dual ring fault tolerance
MeshFull mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all Advantage highly reliable multiple paths if one link fails no single point failureHighly reliable multiple paths if one link fails no single point failureExpensive complex cabling many cables high cost Cable formula n(n-1)/2 cables for full mesh Example 5 nodes need 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN critical infrastructureBest for critical systems military backbone WAN critical infrastructure n(n-1)/2 cables Example 5 nodes 10 cables
HybridCombination of two or more topologies Star+Bus+Ring Switch connects different topologiesFlexible scalable can best fit needs combine benefits of othersMore complex design maintenance cost varies depending on design Example large enterprise building star buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself hybridCommon in large modern networks internet itself hybrid Flexible scalable combines benefits

Transmission Media

MediaTypeSpeed/DistanceAdvantageDisadvantageUse
Twisted PairGuided Wired Two insulated copper wires twisted together twisting reduces crosstalk UTP Unshielded no shield cheap common STP Shielded has shield better EMI expensiveCAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max Speed 1Gbps typical up to 10GbpsCheap easy flexibleCrosstalk EMI low bandwidth vs fiberLAN telephone RJ45 8 wires 4 pairs CAT5 100Mbps CAT6 1Gbps CAT6a 10Gbps
CoaxialGuided Wired Thick central copper inner insulation outer shield outer insulation BNC connector Thicker shielded better EMIDistance 500m thick 200m thin Speed 10Mbps 10BASE2 10BASE5Thicker shielded better EMI Medium resistanceMedium cost Medium resistanceTV cable old Ethernet backbone 500m thick 200m thin 10Mbps 10BASE2 10BASE5
Fiber OpticGuided Wired Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance km no EMI immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult needs skilled Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaperVery high speed Gbps to Tbps long distance km no EMI immuneVery high bandwidth no EMI secure long distanceExpensive difficult fragileBackbone WAN long distance high speed internet backbone Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper
Radio WavesUnguided Wireless Omnidirectional all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM TVFrequency 3kHz-1GHz AM FM TV Distance broadcastOmnidirectional no alignment penetrates wallsLow frequency low bandwidth interferenceFM radio TV remote Omnidirectional all directions 3kHz-1GHz penetrates walls
MicrowavesUnguided Wireless Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers alignedFrequency 1-300GHz Distance 50km per hop need line of sight towers alignedHigh bandwidth high frequency high speedNeed alignment line of sight weather affectsCellular towers microwave links Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower 50km per hop need line of sight
InfraredUnguided Wireless Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short rangeDistance 1m-10m short range 300GHz-400THzCheap no license secure cannot penetrate walls no interference to other roomsShort distance line of sight cannot penetrate wallsTV remote IR Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz 1m-10m
SatelliteUnguided Wireless Geosynchronous 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverageDistance global coverage 36000km high latency 270ms one way up-down 540ms round trip Frequency 1-50GHzGlobal coverage large areaVery expensive high latency propagation delay costlyTV broadcast GPS weather Geosynchronous 36000km high latency 270ms one way up-down 540ms

PYQ Traps:
• OSI full form Open Systems Interconnection 7 Layers Theoretical Reference Model ISO
• OSI 7 layers top to bottom 7 Application 6 Presentation 5 Session 4 Transport 3 Network 2 Data Link 1 Physical Mnemonic All People Seem To Need Data Processing 7→1 Application→Physical Reverse Please Do Not Throw Sausage Pizza Away 1→7 Physical→Application
• Application HTTP FTP SMTP DNS POP3 SNMP Telnet PDU APDU User interface web browser email file transfer Example HTTP GET /index.html
• Presentation Translation encryption compression format conversion ASCII→EBCDIC SSL/TLS JPEG MPEG Ensures readable PDU PPDU Example encrypt password
• Session Session management dialog control synchronization Establishes maintains terminates sessions checkpoints RPC SIP PDU SPDU Example login session
• Transport End-to-end segmentation port numbers flow control error control TCP UDP Breaks into segments adds port number reliable delivery PDU Segment Datagram Port 80 HTTP 443 HTTPS 25 SMTP
• Network Logical addressing routing path selection IP IPv4 IPv6 ICMP IGMP ARP OSPF BGP Adds IP address routing PDU Packet IP 192.168.1.1 routing table selects path
• Data Link Physical addressing MAC framing error detection switch MAC 48-bit framing LLC MAC sublayers CRC PDU Frame MAC AA:BB:CC:DD:EE:FF Ethernet frame
• Physical Bits cables signals voltage Physical medium twisted pair coaxial fiber radio converts bits to electrical/optical/radio PDU Bits voltage 0=0V 1=5V RJ45
• PDU Application APDU Presentation PPDU Session SPDU Transport Segment Datagram Network Packet Data Link Frame Physical Bits
• Encapsulation Data goes down each layer adds header Data→Segment add TCP header→Packet add IP header→Frame add MAC header/trailer→Bits Decapsulation reverse removes header
• Devices Physical Hub repeater cable Data Link Switch bridge NIC Network Router L3 switch Transport+ Gateway firewall
• TCP/IP full form Transmission Control Protocol / Internet Protocol 4 Layers Practical Model used on Internet today DoD ARPANET
• TCP/IP 4 layers 4 Application OSI 5-7 combined HTTP FTP DNS web browser email file transfer Session+Presentation+Application features, 3 Transport TCP UDP end-to-end comms port numbers, 2 Internet IP IPv4/IPv6 IP addresses routing ICMP address & route packets, 1 Network Access Ethernet Wi-Fi PPP Physical+Data Link Frames MAC addresses physical hardware
• OSI vs TCP/IP mapping OSI 7 Application→TCP/IP 4 Application User apps HTTP FTP DNS, OSI 6 Presentation→combined into 4 Application Data formatting encryption compression, OSI 5 Session→combined into 4 Application Session establishment management, OSI 4 Transport→3 Transport Reliable delivery flow control TCP/UDP, OSI 3 Network→2 Internet Routing logical addressing IP, OSI 2 Data Link→1 Network Access Framing MAC error detection, OSI 1 Physical→combined into 1 Network Access Physical hardware signals cabling
• TCP vs UDP TCP connection-oriented reliable 3-way handshake SYN→SYN/ACK→ACK ACK retransmission on packet loss flow control congestion control slower reliable HTTP HTTPS FTP SMTP email file transfer web like phone call dial connect talk confirm vs UDP connectionless unreliable no acknowledgment fast low-latency low overhead no handshake no retransmission DNS queries video streaming VoIP online gaming like live broadcast
• TCP 3-way handshake SYN→SYN/ACK→ACK to establish connection SYN sender to receiver SYN/ACK receiver to sender ACK sender to receiver connection established
• UDP uses DNS queries video streaming VoIP online gaming fast low-latency where speed matters more than reliability
• TCP uses HTTP HTTPS FTP SMTP email file transfer web where reliability needed
• Protocols by layer 4 Application HTTP HTTPS FTP SMTP DNS DHCP 3 Transport TCP UDP TCP=reliable UDP=fast unreliable 2 Internet IP ICMP ARP OSPF 1 Network Access Ethernet Wi-Fi MAC DSL
• OSI vs TCP/IP summary TCP/IP practical 4-layer used on Internet today OSI theoretical 7-layer reference model Internet uses TCP/IP not OSI OSI used for teaching reference Remember TCP=reliable like phone call UDP=fast like live broadcast
• Topology Physical arrangement how nodes connected
• Bus Single backbone cable terminators at both ends prevent signal bounce Node1 Node2 Node3 Node4 connected to backbone Advantage cheap simple less cable Disadvantage collision can occur CSMA/CD needed if backbone fails all nodes lose connection single point failure Example 10BASE2 coaxial old bus
• Star All nodes connect to central hub/switch HUB/SWITCH center Node A B C D E connected to hub Advantage easy fault isolation one node failure doesn't affect others easy detect faulty node Disadvantage if hub fails entire network down central point single point failure Most common for offices/LAN modern Ethernet star with switch Example office LAN switch center all PCs connect to switch
• Ring Nodes arranged circular loop each linked to two neighbors Node1→Node2→Node3→Node4→Node5→Node1 circular Uses token passing to avoid collisions only node holding token can transmit token circulates Advantage no collisions orderly data flow consistent performance token ensures fairness Disadvantage if one node fails ring broken network fails difficult add/remove Example Token Ring IBM FDDI dual ring fault tolerance dual ring
• Mesh Full mesh every node connected to every other node Node1 connected to Node2 Node3 Node4 Node5 all Advantage highly reliable multiple paths if one link fails no single point failure Disadvantage expensive complex cabling many cables high cost Cable formula n(n-1)/2 cables for full mesh Example 5 nodes need 5*4/2=10 cables Types Full mesh all connected Partial mesh some connected Best for critical systems military backbone WAN critical infrastructure
• Hybrid Combination of two or more topologies Star+Bus+Ring Switch connects different topologies Advantage flexible scalable can best fit needs combine benefits Disadvantage more complex design maintenance cost varies depending on design Example large enterprise building star buildings connected via bus backbone star-bus hybrid Common in large modern networks internet itself hybrid
• Cable formula mesh n(n-1)/2 cables for full mesh where n=number of nodes Example 5 nodes 10 cables
• Most common topology Star most common for offices/LAN modern Ethernet uses star with switch
• Which topology no collision? Ring token passing no collisions orderly data flow
• Transmission Media Physical path sender to receiver Guided Wired physical cable guides signal Unguided Wireless signal through air no cable
• Twisted Pair Two insulated copper wires twisted together twisting reduces crosstalk UTP Unshielded no shield cheap common STP Shielded has shield better EMI expensive CAT5 100Mbps CAT5e 1Gbps CAT6 1Gbps up to 100m CAT6a 10Gbps Distance 100m max Speed 1Gbps typical up to 10Gbps Advantage cheap easy flexible Disadvantage crosstalk EMI low bandwidth vs fiber Use LAN telephone RJ45 8 wires 4 pairs
• Coaxial Thick central copper inner insulation outer shield outer insulation BNC connector Thicker shielded better EMI Distance 500m thick 200m thin Speed 10Mbps 10BASE2 10BASE5 Use TV cable old Ethernet backbone
• Fiber Optic Glass core cladding glass light source LED laser total internal reflection light bounces inside core no loss Very high speed Gbps to Tbps long distance km no EMI immune no crosstalk secure difficult to tap Expensive glass core cladding expensive installation splicing difficult needs skilled Types Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper Advantage very high bandwidth no EMI secure long distance Disadvantage expensive difficult fragile Use backbone WAN long distance high speed internet backbone
• Single-mode vs Multi-mode Single-mode long distance laser narrow core 9 microns long distance km Multi-mode short distance LED wider core 50/62.5 microns short 550m cheaper
• Radio Waves Omnidirectional all directions FM radio 3kHz-1GHz penetrates walls Frequency 3kHz-1GHz AM FM TV Advantage omnidirectional no alignment penetrates walls Disadvantage low frequency low bandwidth interference Use FM radio TV remote
• Microwaves Unidirectional line of sight narrow beam alignment parabolic dish 1-300GHz tower to tower Frequency 1-300GHz Distance 50km per hop need line of sight towers aligned Advantage high bandwidth high frequency high speed Disadvantage need alignment line of sight weather affects Use cellular towers microwave links
• Infrared Short distance remote TV line of sight cannot penetrate walls 300GHz-400THz Distance 1m-10m short range Advantage cheap no license secure cannot penetrate walls no interference to other rooms Disadvantage short distance line of sight cannot penetrate walls Use TV remote IR
• Satellite Geosynchronous 36000km above earth high latency 270ms one way up-down 540ms round trip Frequency 1-50GHz microwave uplink downlink Distance global coverage Advantage global coverage large area Disadvantage very expensive high latency propagation delay costly Use TV broadcast GPS weather
• Comparison bandwidth Twisted Pair Low 1Gbps Cheap Easy Low resistance 100m Coaxial Medium 10Mbps Medium Medium Medium resistance 500m Fiber Very High Gbps Expensive Difficult Very High no EMI Long km Radio Low-Medium Cheap Easy Low but penetrate walls Microwave High Expensive Difficult alignment High but line of sight 50km Satellite High Very Expensive Difficult High latency Long global
• Total internal reflection Fiber optic light bounces inside core no loss due to total internal reflection

© 2026 pdcampus.in · All rights reserved. · Made with ❤️ for Indian students.