0% found this document useful (0 votes)
4 views7 pages

Data Comm&ComputerNW Assignment

Data communication involves the exchange of data between devices through a transmission medium, requiring components such as a message, sender, receiver, transmission medium, and protocol. The OSI and TCP/IP models provide frameworks for understanding network interactions, with OSI having seven layers and TCP/IP having four. Network topologies, switching techniques, IP addressing, and security concepts are essential for effective network design and management.

Uploaded by

Harsh Behl
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views7 pages

Data Comm&ComputerNW Assignment

Data communication involves the exchange of data between devices through a transmission medium, requiring components such as a message, sender, receiver, transmission medium, and protocol. The OSI and TCP/IP models provide frameworks for understanding network interactions, with OSI having seven layers and TCP/IP having four. Network topologies, switching techniques, IP addressing, and security concepts are essential for effective network design and management.

Uploaded by

Harsh Behl
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Q1. Explain the basic concepts and components of data communication.

Data Communication is the exchange of data between two devices via some form of transmission medium (such as a
wire or radio wave). For communication to occur, the devices must be part of a communication system made up of a
combination of hardware (physical equipment) and software (programs).
The Five Fundamental Components:
1. Message: The information (data) to be communicated. This can be in the form of text, numbers, pictures, audio,
or video.
2. Sender: The device that initiates the message (e.g., computer, workstation, phone, video camera).
3. Receiver: The device that receives the message.
4. Transmission Medium: The physical path by which the message travels from sender to receiver (e.g., twisted-
pair wire, coaxial cable, fiber-optic cable, radio waves).
5. Protocol: A set of rules that govern data communications. It represents an agreement between the
communicating devices. Without a protocol, two devices may be connected but not communicating (e.g.,
TCP/IP, HTTP, FTP).
Key Characteristics:
• Delivery: The system must deliver data to the correct destination.
• Accuracy: The system must deliver the data accurately. Data altered in transit is unusable.
• Timeliness: The system must deliver data in a timely manner. Real-time transmission (audio/video) requires
data to be delivered as they are produced, in the same order.

Q2. Discuss guided and unguided transmission media with their advantages and disadvantages.
Transmission media lies below the physical layer and acts as the conduit for signals.
1. Guided Media (Wired)
Signals are guided along a solid physical path.
• Twisted-Pair Cable:
o Description: Two insulated copper wires twisted together to reduce interference (crosstalk).
o Types: Unshielded (UTP) and Shielded (STP).
o Advantages: Inexpensive, easy to install, widely used (Ethernet).
o Disadvantages: Susceptible to noise/interference, limited distance, lower bandwidth compared to fiber.
• Coaxial Cable:
o Description: Inner copper conductor insulated by a dielectric, surrounded by a braided metal shield and
outer plastic cover.
o Advantages: Better shielding than twisted pair, higher bandwidth, used in cable TV.
o Disadvantages: Bulky, more expensive than twisted pair, harder to install.
• Fiber-Optic Cable:
o Description: Transmits data as pulses of light through glass or plastic fibers.
o Advantages: Extremely high bandwidth, very low attenuation, immune to electromagnetic interference
(EMI), secure (hard to tap).
o Disadvantages: Expensive, fragile, requires specialized installation equipment, unidirectional (usually
requires two fibers).
2. Unguided Media (Wireless)
Signals are transmitted without a physical conductor, usually through the air or vacuum.
• Radio Waves:
o Description: Omnidirectional (travel in all directions). Frequencies 3 kHz - 1 GHz.
o Use: Multicast communication (radio, TV, Wi-Fi).
o Pros: Penetrates buildings well. Cons: Susceptible to interference.
• Microwaves:
o Description: Unidirectional (line-of-sight). Frequencies 1 GHz - 300 GHz.
o Use: Unicast communication (cellular phones, satellite, point-to-point links).
o Pros: High bandwidth. Cons: Requires line-of-sight, affected by rain/attenuation.
• Infrared:
o Description: Frequencies 300 GHz - 400 THz.
o Use: Short-range communication (remote controls, wireless keyboards).
o Pros: Cannot pass through walls (secure). Cons: Short range, requires line-of-sight, interference from
sunlight.
Q3. Explain the OSI Reference Model and the functions of its seven layers.
The Open Systems Interconnection (OSI) model is a conceptual framework used to understand network interactions. It
divides network communication into seven layers.

Layer Name Primary Function Key Devices/PDUs

Interface between the network and the application


7 Application Gateway, PDU: Data
software (e.g., HTTP, FTP, SMTP).

Data translation, encryption/decryption,


6 Presentation compression/decompression. Ensures data is Gateway, PDU: Data
readable.

Establishes, manages, and terminates connections


5 Session Gateway, PDU: Data
(sessions) between applications.

End-to-end delivery, error recovery, flow control, Firewall, PDU:


4 Transport
segmentation (TCP/UDP). Segment/Datagram

Logical addressing (IP), routing, path determination.


3 Network Router, PDU: Packet
Moves packets across networks.

Physical addressing (MAC), error detection, framing, Switch, Bridge, PDU:


2 Data Link
access control. Frame

Transmission of raw bit streams over physical media. Hub, Repeater, Cable,
1 Physical
Voltage levels, connectors. PDU: Bits

Key Concepts:
• Encapsulation: As data moves down the layers, headers (and trailers at Layer 2) are added.
• Peer-to-Peer: Communication occurs logically between the same layers on different devices.

Q4. Describe the TCP/IP model and compare it with the OSI model.
The TCP/IP (Transmission Control Protocol/Internet Protocol) model is the standard architecture for the modern
Internet. It was developed before the OSI model and is more practical.
The Four Layers of TCP/IP:
1. Application Layer: Combines the functions of OSI Layers 5, 6, and 7. Handles high-level protocols like DNS, HTTP,
SMTP, and Telnet.
2. Transport Layer: Same as OSI Layer 4. Provides process-to-process communication (TCP for reliable, UDP for
fast).
3. Internet Layer: Same as OSI Layer 3. Handles logical addressing and routing (IP, ICMP, ARP).
4. Network Access (Link) Layer: Combines OSI Layers 1 and 2. Handles hardware addressing and physical
transmission.
Comparison: OSI vs. TCP/IP

Feature OSI Model TCP/IP Model

Full Form Open Systems Interconnection Transmission Control Protocol/Internet Protocol

Layers 7 Layers 4 Layers

Theoretical/Conceptual (Standard first, protocol Practical/Implementation-based (Protocol first, model


Approach
later). later).

Flexibility Rigid; hard to replace protocols. Flexible; easy to swap protocols.

Used for educational purposes and


Usage Used in real-world networking (Internet).
troubleshooting.

Network layer is connectionless; Transport is Network layer (IP) is connectionless; Transport (TCP) is
Reliability
connection-oriented. connection-oriented.

Protocols Protocols are hidden/abstract. Protocols are explicit (TCP, IP, UDP, HTTP).

Q5. Explain different network topologies and their applications.


Network topology refers to the layout (physical or logical) of the network.
1. Bus Topology:
o Description: All devices connected to a single central cable (backbone).
o Pros: Easy to connect, less cabling, cheap.
o Cons: Single point of failure (if backbone breaks, network dies), difficult to troubleshoot, heavy traffic
slows it down.
o Application: Small, temporary networks.
2. Star Topology:
o Description: All devices connected to a central device (Hub/Switch).
o Pros: Easy to install/manage, robust (failure of one node doesn't affect others), easy to detect faults.
o Cons: Single point of failure (central device), requires more cabling.
o Application: Most common in modern LANs (Ethernet).
3. Ring Topology:
o Description: Devices connected in a closed loop; data travels in one direction (Token Passing).
o Pros: Orderly network, no collisions, equal access.
o Cons: Failure of one node breaks the loop, slow (data passes through every node), difficult to
troubleshoot.
o Application: Token Ring networks, FDDI (Fiber Distributed Data Interface).
4. Mesh Topology:
o Description: Devices interconnected.
▪ Fully Meshed: Every device connected to every other.
▪ Partially Meshed: Some devices connected to all, others to a few.
o Pros: Highly reliable (redundant paths), secure, no traffic issues.
o Cons: Expensive, complex installation, heavy cabling.
o Application: WANs, critical infrastructure, the Internet backbone.
5. Tree Topology:
o Description: Hierarchical structure (Star buses combined). Root node connects to secondary nodes,
which connect to others.
o Pros: Scalable, easy to manage.
o Cons: Heavy reliance on root node, complex wiring.
o Application: Large corporate networks, Cable TV networks.

Q6. Discuss switching techniques: circuit switching, packet switching, and message switching.
Switching determines how data moves from source to destination.
1. Circuit Switching:
o Mechanism: Establishes a dedicated physical path between sender and receiver before data transfer.
o Phases: Connection Establishment $\rightarrow$ Data Transfer $\rightarrow$ Connection Termination.
o Characteristics: Guaranteed bandwidth, constant delay. No queuing delay once connected.
o Drawback: Inefficient use of bandwidth (idle time is wasted), slow setup.
o Example: Traditional Telephone Network (PSTN).
2. Message Switching:
o Mechanism: "Store-and-Forward." The entire message is received at an intermediate node, stored, and
then forwarded to the next node.
o Characteristics: No dedicated path. High priority messages can interrupt lower ones.
o Drawback: High latency (storage delay), requires large buffer memory at nodes.
o Example: Email systems (historically), Telegraph.
3. Packet Switching:
o Mechanism: Message is broken into small fixed-size blocks called packets. Packets travel independently
and are reassembled at the destination.
o Types:
▪ Datagram (Connectionless): Each packet treated independently (e.g., IP).
▪ Virtual Circuit (Connection-oriented): A logical path is set up (e.g., Frame Relay, ATM).
o Characteristics: Efficient bandwidth usage (statistical multiplexing), robust (can route around failures).
o Drawback: Variable delay (jitter), overhead for headers.
o Example: The Internet (TCP/IP).
Q7. Explain IP addressing, subnetting, and the role of DNS in computer networks.
1. IP Addressing An IP address is a logical, unique identifier assigned to a device on a network.
• IPv4: 32-bit address (e.g., [Link]). Divided into Classes (A, B, C, D, E).
o Format: Network ID . Host ID.
• IPv6: 128-bit address (e.g., 2001:0db8::1) designed to solve IPv4 exhaustion.
2. Subnetting Subnetting is the process of dividing a large network into smaller, manageable sub-networks (subnets).
• Purpose:
o Reduces network congestion (broadcast domains).
o Improves security (segmentation).
o Conserves IP addresses.
• Mechanism: Uses a Subnet Mask to distinguish the network portion from the host portion.
o Example: Splitting [Link]/24 into two /25 subnets.
3. Domain Name System (DNS) DNS is the "phonebook" of the Internet. Humans access websites via domain names
(e.g., [Link]), but computers communicate via IP addresses.
• Role: Translates human-readable domain names into IP addresses.
• Process: When you type a URL, the OS queries a DNS Resolver, which queries Root $\rightarrow$
TLD .com $\rightarrow$ Authoritative Server to get the IP.
• Types: Recursive (client side) vs. Iterative (server side) queries.

Q8. Describe routing algorithms and distinguish between static and dynamic routing.
Routing is the process of selecting a path for traffic in a network or between or across multiple networks.
Routing Algorithms:
1. Distance Vector (e.g., RIP):
o Routers know only the direction (vector) and distance (metric/cost) to neighbors.
o Updates are sent periodically to neighbors.
o Issue: Slow convergence, prone to "count-to-infinity" problem.
2. Link State (e.g., OSPF):
o Routers learn the full topology of the network.
o Each router builds a map (graph) and uses Dijkstra’s algorithm to calculate the shortest path.
o Pros: Fast convergence, scalable.
3. Path Vector (e.g., BGP):
o Used for inter-domain routing (Internet). Focuses on policy and path attributes rather than just speed.
Static vs. Dynamic Routing:

Feature Static Routing Dynamic Routing

Automatically updated by routing


Configuration Manually configured by administrator.
protocols.

Overhead Low CPU/Memory usage. High CPU/Memory usage (calculations).

Scalability Not scalable for large networks. Highly scalable.


Feature Static Routing Dynamic Routing

Fault
Low (no automatic failover). High (reroutes automatically on failure).
Tolerance

Security More secure (no routing updates sent). Less secure (updates can be spoofed).

Small networks, stub networks, default


Use Case Large enterprise networks, the Internet.
routes.

Q9. Explain network security concepts including firewalls, encryption, VPNs, and common cyber threats.
Network Security protects the integrity, confidentiality, and availability of computer networks and data.
1. Firewalls:
o A network security device that monitors and controls incoming and outgoing traffic based on
predetermined security rules.
o Types: Packet Filtering, Stateful Inspection, Next-Gen Firewall (NGFW).
o Function: Acts as a barrier between a trusted internal network and an untrusted external network
(Internet).
2. Encryption:
o The process of converting plaintext into ciphertext to prevent unauthorized access.
o Symmetric: Same key for encryption/decryption (fast, e.g., AES).
o Asymmetric: Public key for encryption, private key for decryption (secure, e.g., RSA).
o Protocols: SSL/TLS (HTTPS) uses both to secure web traffic.
3. Virtual Private Network (VPN):
o Creates a secure, encrypted "tunnel" over a public network (Internet).
o Use: Allows remote users to access the corporate network securely; masks IP address/location.
4. Common Cyber Threats:
o Malware: Malicious software (Viruses, Worms, Trojans, Ransomware).
o Phishing: Fraudulent emails attempting to steal credentials.
o Man-in-the-Middle (MitM): Attacker intercepts communication between two parties.
o Denial of Service (DoS/DDoS): Overwhelming a target with traffic to crash it.
o SQL Injection: Inserting malicious code into a server that uses SQL to attack a database.

Q10. Write short notes on LAN, MAN, WAN, network devices (hub, switch, router, gateway), and wireless
communication.
1. Network Classifications by Geography:
• LAN (Local Area Network): Covers a small area (home, office). High speed, low error rate. (e.g., Ethernet, Wi-Fi).
• MAN (Metropolitan Area Network): Covers a city or campus. (e.g., Cable TV network, City Wi-Fi).
• WAN (Wide Area Network): Covers a country or continent. Uses public/leased lines. Slower than LAN. (e.g., The
Internet).
2. Network Devices:
• Hub (Layer 1):
o Basic device. Broadcasts incoming data to all ports.
o Drawback: Causes collisions, low security.
• Switch (Layer 2):
o Intelligent device. Uses MAC addresses to send
Qwen VL 235B

You might also like