QB 3,4,5
QB 3,4,5
complement.
A:
Step 1: Add the binary numbers:
diff
CopyEdit
10011001
diff
CopyEdit
+ 1 = 01100110
diff
CopyEdit
01100110
Add carry:
diff
CopyEdit
+ 1 = 01010111
scss
CopyEdit
A:
If sender transmits data blocks and a checksum (1’s complement of sum), the receiver adds all
received blocks including the checksum.
If there is no error, the final result will be all 1s (i.e., 11111111).
If the result contains any 0, it means the data is corrupted.
Example:
Data: 01010101, 10101010
Checksum: 11111111
Sum: 01010101 + 10101010 + 11111111 = 111111110 (carry dropped) → 11111111 → No Error
Final Answer: Checksum ensures the final sum is all 1s; any deviation indicates an error.
3. Q: A sender transmits the following 8-bit words: 11001100, 10101010, 11110000. Find the
checksum.
A:
Add first two:
diff
CopyEdit
11001100
diff
CopyEdit
01110111
1’s complement:
CopyEdit
01010000 → 10101111
1. Q: Identify which layer of the OSI model is responsible for establishing a reliable connection and
ensuring error-free delivery of data. Give one real-world example.
A:
Layer: Transport Layer
Example: TCP (Transmission Control Protocol) ensures reliable file transfer in applications like email
(SMTP) or file downloads (FTP).
2. Q: A user is accessing a website using a browser. Explain how the layers of the TCP/IP model
come into play during this process.
A:
Network Access Layer: Frames are transmitted over the physical network
3. Q: If a file transfer is interrupted due to a network issue, which layer of the OSI model handles
retransmission? Explain briefly.
A:
Layer: Transport Layer
Explanation: It detects lost packets and triggers retransmission to ensure complete and correct
delivery (e.g., via TCP).
4. Q: You are designing a messaging app. Which OSI layers will be most directly involved in
delivering text messages reliably? Justify briefly.
A:
Justification: These layers ensure the message is correctly formed, reliably delivered, and displayed.
5. Q: Compare the OSI and TCP/IP models by mapping the layers where encryption and routing
take place.
A:
Encryption:
Routing:
Example: If Frame 1 is sent and lost ACK, sender waits → timeout → resends Frame 1.
Suitable for low-speed, reliable links but inefficient for long-delay networks.
Design an IP addressing plan for a company with 4 departments (HR, IT, Sales, Finance) using
subnetting.
A:
o HR: 192.168.1.0/26
o IT: 192.168.1.64/26
o Sales: 192.168.1.128/26
o Finance: 192.168.1.192/26
Q5: Compare TCP and UDP with examples of real-time and reliable applications.
A:
Reliable (ACK,
Reliability Unreliable
retransmission)
Q6: Explain how DNS resolves a domain name to an IP address with a step-by-step process.
A:
4. If not found, DNS server queries root DNS → TLD server → Authoritative DNS
Let me know if you'd like these in a PDF format, more practice questions, or expanded answers for
8-mark questions!
4o
You said:
for error detection and correction techniques, topologies and networking devices and osi model and
tcp/ip protocol
ChatGPT said:
Here are 4-mark application-level questions with answers for the following DCN topics:
2. Network Topologies
3. Networking Devices
4. OSI Model
Q1: A message “1101011011” is to be transmitted using CRC with the generator polynomial G(x) = x³
+ x + 1. Show how CRC is calculated.
A:
Generator = 1011
Message = 1101011011 (append 000) → 1101011011000
Divide using binary division:
python-repl
CopyEdit
🔹 2. Network Topologies
Q3: Compare bus, star, and ring topologies in terms of cost, reliability, and performance. Suggest a
use-case for each.
A:
Bus Low Low (single point) Degrades with load Small office setup
🔹 3. Networking Devices
Q4: A company network includes computers in different departments. Choose suitable networking
devices and explain their role.
A:
Diagram (optional): Shows switch in each dept, router at center, firewall at entry point.
🔹 4. OSI Model
Q5: Map the OSI model layers to real-world applications and devices with suitable examples.
A:
Q6: Explain how data is transmitted from a source to destination using TCP/IP protocol suite with an
example.
A:
A user uploads a file to a cloud drive. Explain the role of each OSI layer in this process.
Answer:
2. Presentation Layer – Data formatting and encryption (e.g., file compression or TLS).
4. Transport Layer – Breaks file into segments; TCP ensures reliable transfer.
6. Data Link Layer – Frames the packet and adds MAC addresses.
Q2. Compare OSI and TCP/IP models using a file transfer scenario.
Answer:
Layer Mapping App (7,6,5), Trans (4), Net (3) App, Transport, Internet, Link
Q3. In a secure banking transaction, identify which OSI layers are involved in encryption, error
control, and data formatting.
Answer:
Error Control – Data Link Layer (frame-level) & Transport Layer (TCP acknowledgments).
Data Formatting – Presentation Layer (e.g., converting integers or strings into binary
formats).
Used together, these layers ensure confidentiality, accuracy, and proper data structure for secure
online transactions.
Q4. A mobile app fails to send messages, but the internet is working. At which OSI layer might the
issue exist? Justify.
Answer:
Justification:
o Internet access proves that lower layers (Network, Transport) are functioning.
o If only one app is failing, the fault is in app-level logic, service API issues, or port
blocking.
Q5. How does the OSI model help in troubleshooting network issues? Give a practical example.
Answer:
Q6. During a video conference, explain how the TCP/IP stack ensures real-time communication.
Answer:
Network Access Layer – Converts to frames and transmits over physical network.
UDP is preferred for low latency even if some packets are lost.
Q7. Trace how data flows through the TCP/IP layers when accessing a website.
Answer:
4. Network Access Layer – Frame is created with MAC address, sent via Ethernet or Wi-Fi.
Answer:
Use Cases Email, FTP, Web Browsing Video calls, Online Gaming
Conclusion:
Answer:
Transport Layer – DNS uses UDP port 53 (or TCP for large data).
Q10. Design a TCP/IP-based solution for an IoT application needing lightweight, fast communication.
Answer:
Example: Smart home system where sensors send temperature data to a central controller.