Skip to content

History and Basics

image.png

Early Communication Devices

  • 1920s
  • An electromechanical device for sending and receiving typed messages.
  • Used various communication channels.
  • Supported both point-to-point and point-to-multipoint configurations
  • Miniprint 425 TDD
    • Included an acoustic coupler for telephone handsets.
    • Printed conversations.
  • Concept:
    • Data is split into smaller units called packets. Each packet can travel independently across the network.
    • Packets are reassembled at the destination.
    • Ensures efficient and reliable data transfer
    • 19

ARPANET…

  • first network tested…
  • USEnet:
    • One of the earliest distributed discussion systems, allowing users to post and read messages (similar to forums).
  • FIDOnet:
    • A worldwide computer network that was used for communication between bulletin board systems (BBS).
  • Internet:
    • The global system of interconnected computer networks that use the Internet protocol suite (TCP/IP) to link devices worldwide.
  • Definition:
    • A form of Internet access using the public switched telephone network (PSTN).
    • Connects to an Internet Service Provider (ISP) by dialing a phone number.
    • Uses modems to convert audio signals to data and vice versa [10] [11].
  • How it Works:
    • Modem dials ISP.
    • Audio signals are encoded/decoded for data transfer.
    • Data is sent to/from computers or routers.

  • Steps:
    1. Message is divided into packets based on the Maximum Transmission Unit (MTU).
    2. Packets are sent to the sender’s ISP.
    3. Packets are routed through various networks using routing tables.
    4. Recipient’s computer reassembles the message from packets and confirms receipt using a hash.
    5. If a packet is missing or corrupted, it is retransmitted [12].
TopicKey Points
Teleprinter/TTYEarly device for typed message exchange, point-to-point/multipoint
Packet Data TransferData split into packets, reassembled at destination
USEnetEarly distributed discussion system
FIDOnetNetwork for BBS communication
InternetGlobal network using TCP/IP
Dial-Up ConnectionInternet via telephone lines, uses modems
Packet TransmissionMTU, routing, reassembly, retransmission if needed
  • PAN - 10mtrs max, simple individual network that includes bluetooth mouse, earphones, remotes etc..
  • LAN
    • DEPT, BUILDING, A COMPANY, ETC…
    • 2 to 16M hosts, supports routing, local servers, works on private ips
    • eg: ethernet - start topology
  • MAN - towns and cities…
    • uses high speed fiber optics etc..
  • WAN - multiple cities and countries
    • provided internet to LANs etc..
    • uses high power network equipment
  • W-LAN - uses wireless connections unlike LAN that uses cables
    • uses WAP devices
    • uses radio signals..
    • uses wireless routers as central devices to communicate.. eg: WIFI
    • low speed compared to LAN
    • some security issues..
  • VPN
    • estb. a secure connection virtually through internet

      image.png

  • physical topo.. - actual cables and physical network.. helps in cable mangement etc..
  • Logical. - diagram of a network and helps to get a high level idea to estimate stuff.. also understanding the data transmission flows etc..

image.png

  • POINT TO POINT - two endpoints connected with a link, endpoint maybe a terminal, computer

  • BUS - single cable connects many devices..

    • uses T-connectors
    • ADV - simple ans easy to setup, less cable
    • DIS - limited cable length, dependency on central link, low performance, security
  • START - all devices are connected to central node..(switch or router or hub)

    • ADV - easy, faster than BUS, Problem in one node does’t shut entire network
    • DIS - central dependency, size = no.of ports, more cables, n/w speed = central device speed
  • RING - closed loop config, each device connected with its two neighbors

    • ADV - orderly, quick transfer
    • DIS - all devices must be up to run n/w, slower than ethernet, one device damage = n/w damage
  • DUAL RING - increased n/w performance by adding one more additial link which used in link failure…

    image.png

  • MESH - all devices are connected to each other directly, fault tolerant, best for fast and reliable transfer..

    • ADV - reliable and best
    • DIS - lots of cables, hard to trubleshoot, expensive

    Eg: Internet

image.png

image.png

  • NIC - allows to communicate with internet, used in Data Link and Physical Layers..

  • PHYSICAL LAYER

    What it does:

    • Sends electrical signals (Ethernet)
    • Or radio waves (Wi-Fi)
    • Converts 1s and 0s ↔ physical signals

    Examples:

    • Voltage changes on an Ethernet cable
    • Wi-Fi RF signals through the air

    🔹 NIC responsibility here:

    • Signal timing
    • Encoding (NRZ, PAM-5, OFDM for Wi-Fi)
    • Speed (1 Gbps, 10 Gbps, etc.)
  • at DATA LINK LAYER

    • Has a MAC address (unique hardware identifier)
    • Builds and parses Ethernet or Wi-Fi frames
    • Performs:
      • Frame encapsulation
      • Error detection (CRC)
      • Frame filtering (only accepts frames for its MAC)

    image.png

  • Connectors

    • AUI(attachment unit interface) - interface for 10BASE5 Ethernet.. later replaced by 10BASE-T
    • BNC - uses coaxial
    • RJ45 -
    • Fiber Cables - to build backbone networks.. some networks goes upto 40km at speed of 100Gbits/s
  • Repeater

    • to retransmit the signal.. to cover long distance..
  • Hub

    • multiport repeater - send one port input to all other ports as output - so traffic is high

    • unlike repeater, hub also analyzes the network collisions..

    • no memory or buffer, so it fails when multiple inputs given at same time it basically ignores all other than one..

      image.png

  • half duplex - only send or receive not both

  • simple and easy

Bridges

  • connected two different networks..
  • has buffer and stores frames to send slowly… no loss of data so…
  • acts as bridge between LAN Segments
  • datalink layer
  • Transparent - n/w of same type and protocols
  • Translating - n/w of differnet types eg: Ethernet to Token Ring
  • Encapsulating..
  • store & forward, maintains a MAC table used for filtering i.e only sends to hosts mentioned in MAC Table.. mapping b/w MAC & PORT
  • also it can able to Flood if MAC not found in its table
  • ADV - collision domain restriction, delay frames,
  • DIS - bridge increases network latency by 10-30% - due to additional time to decide during transmission… - i.e for deciding wether to send to drop a corrupted frame…

🔁 Scenario: Network A ↔ Bridge ↔ Network B

Section titled “🔁 Scenario: Network A ↔ Bridge ↔ Network B”
  • PC-A (left side) → PC-B (right side)
  1. PC-A sends frame to PC-B
  2. Bridge receives frame
  3. Bridge checks:
    • Source MAC → learns “PC-A is on left”
    • Destination MAC → sees “PC-B is on right”
  4. Bridge forwards frame only to right side
  5. Other left-side devices never see it

Switch

  • multiport bridge uses MACs to forward data..
  • unlike repeater hub, it only forwards messages to correct destinations
  • stores and forward
  • cut-through - no error checking, so fast
  • fragment-free -
  • collision domain for each port so less collisons
  • increases n/w performance..
  • bit more expensive than bridge..
  1. PC-A sends Ethernet frame
  2. Switch receives frame
  3. Switch:
    • Reads source MAC → learns location
    • Reads destination MAC
  4. Switch forwards frame only to PC-B’s port
  5. No one else sees the traffic

If switch doesn’t know destination MAC:

  • It floods once
  • Learns when response comes back

  • Broadcast frames (ARP, DHCP) go to all ports
  • That’s why switches are still one broadcast domain
AspectBridgeSwitch
PortsUsually 2Many (8, 24, 48+)
ImplementationSoftware-basedHardware (ASICs)
SpeedSlowVery fast
ForwardingStore-and-forward (CPU)ASIC-based parallel
Cost (historical)Expensive per portCheap per port

Distribution Layer

  • Router..

    • to forward data packets b/w networks..

    image.png

    to reach B from A router 1 first talk to router 2..

    • Gateway
      • A gateway is a device (or address) that lets traffic leave one network and go to another network.

        image.png

  • Modem

    • converts data frames into a format to tranfer to wires or to other devices..
    • can transmit analog signals, radio etc..
    • eg: convert digital data → eletrical signals for transmission over telephone lines…
    • later that signal is de-modulated..
  • solves compatibility problem by defining a standard protocols..

  • its a reference model

  • complexity with networks

    • type data formats
  • Protocol - defines common rules for interaction

    image.png

    image.png

image.png

image.png

IPV6

image.png

IPV6

image.png

  • secure, no NAT, large space, anycast and multicast…

image.png

TCP

image.png

  • in the above flow, when ACK is not reached to client, it trigger re-transmission..
  • here the problem is that if 10 subsequent packets get tranfered to server it send 10 ACK back its waste of bandwidth so bulk the data packets… and receive single response i.e ACK
    • following are methods to do it..

      • Sliding Window..

        image.png

      1. Cumulative

        image.png

  1. Selective

    image.png

UDP

  • connection less, simple, no realiability, fast
  • no handshaking
  • Checksum in IPv4 is Optional but in IPV6 it is mandatory and done using pseudo header..

image.png

image.png

ICMP

  • used to send error report packets etc.. back to source

  • used by ping and tracroute

    image.png

    image.png

Ports

image.png

image.png

image.png

  • at L2 by Switch

  • its a logical subnet that groups a collection of devices from different Physical LANs

  • inter VLAN communication is not allowed - to do that we have to connect extra Router to TRUNK Port of Switch

    image.png

    image.png

image.png

image.png

image.png

Core Javascript Fundamentals - YouTu