Lab 4 - Analyzing Digital Transmissions Using Wireshark
Lab 4 - Analyzing Digital Transmissions Using Wireshark
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
Wireshark, a powerful packet analyzer, allows us to observe real network traffic, measure
transmission speeds, and analyze error detection mechanisms. By capturing packets in real
time, we can gain valuable insights into how digital transmission works in practice.
In contrast, serial transmission sends bits one at a time over a single channel. This method is
widely used in networking technologies such as Ethernet, Wi-Fi, and USB, where data must
travel efficiently over long distances. Serial transmission is slower per cycle than parallel
transmission but is more reliable for network communication. In this lab, we will analyze ICMP
(ping) and TCP packet sequences in Wireshark to observe how serial transmission works in real
networks.
Signal Rate (Baud) = Bit Rate (bps) / Bits per symbol (r)
For example, if a system transmits data at 10 Mbps while encoding two bits per signal change,
the baud rate will be 5 Mbaud (note that the transmitted data was in Megabits and thus the
0
CL3001 - Computer Networks Lab
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
final result is Megabaud). Understanding this relationship is crucial for optimizing
bandwidth usage in digital networks. In this lab, we will capture network traffic, extract real-time
timestamps, and compute the data rate versus signal rate to compare theoretical and observed
values.
For example, human voice signals typically have a maximum frequency of 4 kHz. To digitize
voice signals accurately, a minimum sampling rate of 8 kHz is required. This principle is applied
in various technologies, such as telephony and audio processing, to ensure high-quality signal
transmission.
In this lab, we will use Wireshark to compare bandwidth consumption for different types of
network traffic, such as web browsing, video streaming, and file downloads. By analyzing real-
world data, we will determine how different applications affect bandwidth usage and network
performance.
Another widely used technique is the checksum, which is included in TCP/IP packets. The
checksum algorithm calculates a unique value based on the contents of the packet. When the
receiver receives the packet, it performs the same calculation and compares the result. If there
is a mismatch, the packet is considered corrupted and may be discarded or retransmitted.
A more advanced error detection technique is the Cyclic Redundancy Check (CRC), which is
used in various network and storage systems to detect errors in data. Unlike simple checksums,
CRC uses polynomial division to generate a more robust error-checking value.
In this lab, we will analyze real network packets in Wireshark to observe these error detection
mechanisms in action. We will also identify packets with checksum errors and investigate
whether errors occur more frequently in wired or wireless network connections.
1
CL3001 - Computer Networks Lab
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
The first step in analyzing digital transmission is to capture network packets and examine
their transmission characteristics. You will capture ICMP (ping) packets to observe how data is
transmitted serially over the network.
Open Wireshark and select the active network interface (Ethernet or Wi-Fi). Start a packet
capture session by clicking the Start Capture button. Open the command prompt on your
system and run this: ping -n 5 www.google.com . Which will send five ICMP echo request
packets to Google's server. After the ping operation completes, stop the packet capture in
Wireshark. In the Wireshark filter bar, enter the icmp filter to isolate ICMP packets.
Select an ICMP request packet and examine the Frame Details. Record the following
information on a document:
Q2. What is the average packet size, and how does it compare to other traffic types? (hint: you
will have to generate different traffic - udp/tcp)
For this:
Open Wireshark and start a new packet capture. Download a large file (e.g., from Google
Drive, OneDrive, or a website) to generate sustained traffic. Stop the capture after a few
seconds. Apply the TCP filter to display only TCP packets. Navigate to Statistics → I/O
Graph
and observe the transmission pattern. Identify the total number of bytes transmitted and the
duration of the transmission on the same document as task 1 (under a new heading for task 2).
[you can also view it on Conversations]
2
CL3001 - Computer Networks Lab
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
3. Baud Rate (Signal Rate) using the formula given in the manual at the start.
Q1. How does the observed data rate compare to the expected network speed? (hint: you will
need to check your connection speed to see the expected network speed)
Q2. If multiple bits per symbol are used, how does this affect the baud rate? (hint: you will have
to find the modulation scheme for your network to find this. Mention it if you find it.)
For this:
Perform the following network activities one at a time while capturing packets:
Stop the capture and apply the appropriate filters. For web browsing use the TCP filter and for
video streaming use the UDP filter (hint: you are going to need a filter like frame contains
“google” or tcp contains “google”).
Open Statistics → Conversations and examine the total Bytes and Packets exchanged
for each activity. Compare the bandwidth usage of web browsing and video streaming by
answering the following questions.
Q1. Which type of traffic generates the most packets and consumes the highest bandwidth?
Mathematically prove it using the given formula.
Q2. Does streaming use larger or smaller packets than file web browsing?
Q3. How does UDP (used in video streaming) compare to TCP (used in web browsing)?
3
CL3001 - Computer Networks Lab
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
For this:
Open Wireshark and start capturing network traffic. Select a TCP segment from the captured
packets and expand the Frame Details or expand TCP.
Locate and examine the TCP Checksum – which verifies data integrity in TCP packets. (hint
use: tcp.checksum filter)
Apply the tcp.analysis.flags filter to identify packets with checksum errors. Compare error rates
in wired vs. wireless network captures to observe any differences (you can connect an
ethernet cable to your laptop/PC to test this).
Q1. How frequently do checksum errors occur in wired vs. wireless networks?
Q2. Why are Wi-Fi packets more prone to errors compared to Ethernet?
Submission Guidelines:
● Submit a single PDF document containing all tasks to the GCR. (no wireshark files)
● Ensure that all screenshots are clear and labeled appropriately.
● Include your name, roll number, and lab number inside the first page of the document.
● Name the submitted document as follows: SectionLetter_RollNumber_LabNumber, for
example: J_i221234_Lab1.
● In case a demo is conducted, there will be deductions based on your answers to the
questions asked.
NOTE: You must show clear screenshots of every step you take. Marks will be deducted for this
mistake and in some cases you may be awarded 0 (this applies to all tasks).
4
CL3001 - Computer Networks Lab
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
Task 2: Data Rate vs. Signal Rate Calculation (5 Marks)
Demo:
5
CL3001 - Computer Networks Lab
Instructors: Mr. Muneeb Baig, Ms. Zoya Mahboob, Mr. Naveed Khursheed
Lab 4 - Analyzing Digital Transmissions using Wireshark
- Correct answers results in no deductions.
Sample screenshot: