Course outlinetap to jump← Networking Fundamentals
Language
Practical Networking

Lesson 26 of 32 · ~22 min

Packet Capture and Traffic Inspection

Filters, baselines, unusual traffic.

Network Monitoring and Packet Analysis

Wireshark, Filters, Baselines, NetFlow, and Unusual Traffic

Course: Network Security
Level: Beginner
Module: Network Security and Monitoring
Estimated Duration: 100–120 minutes


1. Learning Objectives

By the end of this lesson, you will be able to:

  • Explain network monitoring and packet analysis.
  • Understand how network packets carry information.
  • Differentiate packet capture from traffic-flow monitoring.
  • Understand network traffic baselines.
  • Navigate Wireshark and interpret packet details.
  • Differentiate capture filters and display filters.
  • Analyze TCP three-way handshakes.
  • Inspect DNS queries and responses.
  • Understand HTTP communication and TLS metadata.
  • Read basic network logs.
  • Explain NetFlow and IPFIX.
  • Identify unusual network traffic patterns.
  • Prepare a basic network traffic investigation report.

2. What Is Network Monitoring?

Network monitoring is the continuous observation of network devices, connections, traffic, and performance to understand how a network operates and identify possible problems or security threats.

Organizations monitor their networks to understand:

  • Which devices are communicating.
  • Which services are being accessed.
  • How much traffic is flowing.
  • Whether network performance is normal.
  • Whether suspicious connections are occurring.
  • Whether devices are communicating with unexpected destinations.
  • Whether an attack or configuration problem is affecting the network.

Real-world example

Imagine CYNARKS is monitoring a company's network with:

  • 100 employee computers.
  • 10 servers.
  • 5 network switches.
  • 2 firewalls.
  • 1 database server.
  • 1 monitoring server.

A security analyst notices that an employee computer normally communicates with internal business applications but suddenly begins making frequent connections to an unfamiliar external destination.

Network monitoring helps the analyst investigate:

  1. Which device generated the traffic?
  2. What destination did it contact?
  3. Which protocol and port were used?
  4. How frequently did the connections occur?
  5. Was data transferred?
  6. Is this behavior expected?
<AsyncImage query="enterprise network monitoring architecture firewall switch servers network traffic monitoring SOC dashboard diagram" aspectRatio="16:9" width="100%"/>

3. What Is a Network Packet?

A packet is a formatted unit of data carried across a network.

When an application sends information, the data is encapsulated with protocol information as it moves through the networking layers.

For example, when a computer accesses a website:

  1. The application creates an HTTP request.
  2. HTTP data is carried using TCP in a typical HTTP/1.1 or HTTP/2 connection.
  3. TCP segments are encapsulated inside IP packets.
  4. IP packets are carried inside Ethernet or another link-layer frame.
  5. The network forwards the data toward its destination.

This is called encapsulation.

<AsyncImage query="network packet encapsulation application HTTP TCP IP Ethernet frame headers payload diagram" aspectRatio="16:9" width="100%"/>

3.1 Important Packet Fields

FieldMeaning
Source MACSender's link-layer address
Destination MACReceiver's link-layer address
Source IPSender's IP address
Destination IPReceiver's IP address
Source PortSender's transport-layer port
Destination PortDestination application port
ProtocolCommunication protocol
LengthPacket or frame length
FlagsProtocol-specific control information
PayloadCarried application or protocol data

Important: The exact fields depend on the protocol. Not every packet contains all the fields listed above.

3.2 Packet vs Frame vs Segment

These terms describe data at different networking layers.

TermCommon LayerMeaning
FrameData LinkLink-layer data unit
PacketNetworkIP-layer data unit
SegmentTransportTCP data unit
DatagramTransportCommonly used for UDP data

A packet capture tool may display several of these layers together.

4. What Is Packet Analysis?

Packet analysis is the process of examining captured network traffic to understand communication between devices.

It helps security professionals investigate:

  • Connection failures.
  • DNS problems.
  • Suspicious network communication.
  • Unexpected protocols.
  • Data transfer behavior.
  • TCP retransmissions.
  • Network latency.
  • Potential security incidents.

Example

An employee reports that an internal application is slow.

A network analyst captures authorized traffic and observes:

  • The client sends a TCP SYN.
  • The server responds slowly.
  • Multiple retransmissions occur.
  • The connection takes longer than expected.

This may indicate packet loss, congestion, server issues, or another network problem.

Packet analysis helps narrow down the cause, but additional system and application logs may be required.

5. What Is a Network Traffic Baseline?

A network traffic baseline describes normal network behavior over a representative period.

It helps security teams understand what is expected so they can identify deviations.

Example

A company's normal traffic may look like this:

ActivityTypical Behavior
Employee web browsingHTTPS connections
DNSQueries to approved resolvers
File sharingSMB within approved internal networks
EmailApproved mail services
BackupsScheduled transfers at night
NTPPeriodic time synchronization
Server monitoringRegular monitoring requests

If a server normally transfers a small amount of data but suddenly sends a very large amount to an unfamiliar external destination, the activity deserves investigation.

5.1 Types of Baselines

Traffic volume baseline

Measures normal data transfer volume.

Connection baseline

Measures normal connection counts and patterns.

Protocol baseline

Identifies protocols commonly used by devices.

Destination baseline

Identifies normal internal and external communication destinations.

Time-based baseline

Identifies expected activity during business hours, nights, weekends, and scheduled maintenance.

5.2 Why Are Baselines Important?

Without a baseline, analysts may struggle to distinguish:

  • Normal backups from unusual data transfers.
  • Legitimate software updates from suspicious downloads.
  • Normal DNS activity from abnormal DNS patterns.
  • Expected traffic bursts from possible denial-of-service activity.

5.3 Building a Baseline

  1. Identify critical network devices.
  2. Collect traffic information over a representative period.
  3. Record common protocols and destinations.
  4. Measure typical connection volumes.
  5. Document scheduled business activity.
  6. Identify unusual but legitimate patterns.
  7. Review and update the baseline regularly.

Important: A baseline is not a fixed definition of safe activity. Normal business behavior changes, and attackers may sometimes imitate legitimate traffic.


6. Introduction to Wireshark

Wireshark is a widely used network protocol analyzer.

It captures and displays network packets so analysts can inspect communication details.

It is commonly used for:

  • Network troubleshooting.
  • Protocol analysis.
  • Security investigations.
  • Application communication analysis.
  • DNS troubleshooting.
  • TCP troubleshooting.
  • Training and education.
<AsyncImage query="Wireshark packet analyzer application interface packet list packet details packet bytes panes" aspectRatio="16:9" width="100%"/>

6.1 What Can Wireshark Show?

Wireshark can display:

  • Source and destination addresses.
  • Protocol names.
  • Ports.
  • Packet lengths.
  • TCP flags.
  • DNS queries and responses.
  • HTTP metadata.
  • TLS handshake information.
  • Packet timing.
  • Retransmissions and errors.

What is visible depends on the traffic, capture location, encryption, and available protocol information.

7. Understanding the Wireshark Interface

The main interface contains several important areas.

7.1 Interface Selection

This area allows you to choose the network interface to capture.

Examples:

  • Ethernet.
  • Wi-Fi.
  • Loopback.
  • Virtual network interfaces.

Choose the interface that carries the traffic you are authorized to inspect.

7.2 Packet List Pane

Displays captured packets in rows.

Common columns include:

ColumnMeaning
No.Packet number
TimeCapture timestamp
SourceSource address
DestinationDestination address
ProtocolDetected protocol
LengthPacket length
InfoBrief packet description

7.3 Packet Details Pane

Displays the selected packet's protocol structure.

For example:

  • Ethernet II.
  • IPv4 or IPv6.
  • TCP or UDP.
  • DNS.
  • HTTP.
  • TLS.

You can expand individual sections to inspect fields.

7.4 Packet Bytes Pane

Displays packet bytes in hexadecimal and ASCII representation where applicable.

This is useful for low-level protocol analysis.

Important: Encrypted application payloads generally cannot be interpreted as readable application content without appropriate authorized decryption material.


8. Packet Capture Filters

A capture filter determines which packets Wireshark captures.

Capture filters are applied before packets are recorded.

Wireshark uses the Berkeley Packet Filter (BPF) syntax for capture filters.

8.1 Common Capture Filters

Capture all traffic to or from a specific host:

host 192.168.1.10

Capture traffic from a specific source:

src host 192.168.1.10

Capture traffic to a specific destination:

dst host 192.168.1.20

Capture traffic on a specific network:

net 192.168.1.0/24

Capture TCP traffic:

tcp

Capture UDP traffic:

udp

Capture DNS traffic:

port 53

Capture HTTP traffic on its traditional port:

tcp port 80

Capture HTTPS traffic on its traditional port:

tcp port 443

Capture SSH traffic on its traditional port:

tcp port 22

Capture TCP traffic to or from a host:

tcp and host 192.168.1.10

8.2 Combining Capture Filters

Use and, or, and not.

Example:

tcp and port 443

This captures TCP traffic associated with port 443.

Example:

host 192.168.1.10 and not port 22

This captures traffic involving the host except traffic associated with port 22.

Important: Capture filters reduce the traffic recorded. If you exclude relevant packets at capture time, they will not be available later for analysis.


9. Display Filters

A display filter controls which already captured packets are visible.

Unlike capture filters, display filters do not remove packets from the capture file.

Wireshark uses its own display-filter language.

9.1 Common Display Filters

Show all DNS packets:

dns

Show TCP traffic:

tcp

Show UDP traffic:

udp

Show HTTP traffic:

http

Show TLS traffic:

tls

Show packets involving a specific IP:

ip.addr == 192.168.1.10

Show packets from a specific source:

ip.src == 192.168.1.10

Show packets to a specific destination:

ip.dst == 192.168.1.20

Show traffic using TCP port 443:

tcp.port == 443

Show DNS queries:

dns.flags.response == 0

Show DNS responses:

dns.flags.response == 1

Show TCP SYN packets:

tcp.flags.syn == 1

Show TCP SYN packets without ACK:

tcp.flags.syn == 1 && tcp.flags.ack == 0

Show TCP retransmissions:

tcp.analysis.retransmission

Show TCP reset packets:

tcp.flags.reset == 1

Show packets containing an IP address and DNS traffic:

dns && ip.addr == 192.168.1.10

9.2 Capture Filter vs Display Filter

FeatureCapture FilterDisplay Filter
AppliedBefore or during captureAfter packets are captured
PurposeControl what gets recordedControl what is displayed
SyntaxBPFWireshark display-filter language
Can hide packets from capture file permanently?Yes, excluded packets are not capturedNo
Exampletcp port 443tcp.port == 443

Remember: Capture filters and display filters use different syntax. Do not assume a filter written for one will work in the other.


10. TCP Handshake Analysis

Understanding TCP is essential for packet analysis.

TCP establishes a connection using a three-way handshake.

<AsyncImage query="TCP three way handshake SYN SYN ACK ACK Wireshark packet sequence diagram" aspectRatio="16:9" width="100%"/>

Step 1 – SYN

The client sends a SYN packet to initiate a TCP connection.

Step 2 – SYN-ACK

The server responds with SYN-ACK.

Step 3 – ACK

The client sends ACK.

The TCP connection is established.

10.1 What to Look for in Wireshark

Use:

tcp

Then inspect:

  • Source IP.
  • Destination IP.
  • Source port.
  • Destination port.
  • SYN flag.
  • ACK flag.
  • Sequence number.
  • Acknowledgment number.
  • Window size.

10.2 Useful TCP Display Filters

SYN without ACK:

tcp.flags.syn == 1 && tcp.flags.ack == 0

SYN-ACK:

tcp.flags.syn == 1 && tcp.flags.ack == 1

RST:

tcp.flags.reset == 1

FIN:

tcp.flags.fin == 1

Retransmissions:

tcp.analysis.retransmission

Duplicate ACKs:

tcp.analysis.duplicate_ack

10.3 TCP Problems You May Observe

Retransmissions

A sender retransmits data when acknowledgments are not received as expected.

Possible causes include:

  • Packet loss.
  • Congestion.
  • Network instability.
  • Delayed acknowledgments.
  • Capture limitations.

Duplicate ACKs

A receiver sends repeated acknowledgments indicating that it is still expecting particular data.

These can be associated with packet loss or out-of-order delivery.

Connection resets

A TCP RST can terminate a connection unexpectedly.

Possible reasons include:

  • Application behavior.
  • Firewall policies.
  • Connection errors.
  • Service availability problems.

Important: A single retransmission or reset does not prove a cyberattack. Investigate surrounding traffic and system logs.


11. DNS Packet Analysis

DNS is essential for translating domain names into IP addresses.

Packet analysis helps security teams understand DNS requests and responses.

11.1 Normal DNS Query Flow

Suppose a client wants to access:

www.example.com

The process is:

  1. The client checks available DNS caches.
  2. If necessary, it sends a DNS query to its configured resolver.
  3. The resolver processes the request.
  4. The resolver returns an answer or another appropriate response.
  5. The client uses the result to connect to the destination.
<AsyncImage query="DNS query and response client recursive resolver authoritative DNS packet flow diagram" aspectRatio="16:9" width="100%"/>

11.2 Common DNS Record Types

RecordPurpose
AMaps a name to an IPv4 address
AAAAMaps a name to an IPv6 address
CNAMEProvides an alias for another domain name
MXIdentifies mail exchange servers
NSIdentifies authoritative name servers
TXTStores text information, often used for verification and email security
PTRSupports reverse DNS lookups
SOAContains zone authority information

11.3 Wireshark DNS Filters

Show DNS traffic:

dns

Show DNS queries:

dns.flags.response == 0

Show DNS responses:

dns.flags.response == 1

Show A record queries:

dns.qry.type == 1

Show AAAA record queries:

dns.qry.type == 28

Show DNS responses with errors:

dns.flags.rcode != 0

11.4 What Should an Analyst Investigate?

  • Repeated queries for non-existent domains.
  • Unusually frequent DNS requests.
  • Unexpected DNS servers.
  • Large numbers of unique domains.
  • Unusual DNS record types.
  • Unexpected DNS response codes.
  • Suspicious domain names.
  • Unusual DNS traffic volume.

These patterns may indicate misconfiguration, malware, tunneling, or normal application behavior. Context is essential.

11.5 DNS over HTTPS and DNS over TLS

Modern DNS communication may be encrypted.

DNS over HTTPS (DoH) carries DNS queries over HTTPS.

DNS over TLS (DoT) carries DNS queries over TLS.

This improves confidentiality between the client and resolver, but it can reduce visibility for network monitoring systems that rely only on traditional port 53 DNS traffic.

Organizations should establish appropriate DNS policies and monitoring controls.


12. HTTP and TLS Metadata Analysis

12.1 HTTP

HTTP is an application-layer protocol used for web communication.

Traditional HTTP commonly uses TCP port 80.

HTTP messages may include:

  • Request method.
  • Request path.
  • Host information.
  • Headers.
  • Status code.
  • Message body.

Common HTTP methods include:

MethodPurpose
GETRetrieve a resource
POSTSubmit data
PUTCreate or replace a resource
PATCHPartially update a resource
DELETERequest resource deletion

Common HTTP Status Codes

StatusMeaning
200OK
301Moved Permanently
302Found / temporary redirect
400Bad Request
401Unauthorized
403Forbidden
404Not Found
429Too Many Requests
500Internal Server Error
502Bad Gateway
503Service Unavailable

HTTP Security Considerations

Traditional HTTP does not encrypt application communication.

Depending on the network path, an observer may be able to read request and response content.

Sensitive applications should use HTTPS.

12.2 HTTPS and TLS

HTTPS is HTTP protected using TLS.

TLS provides:

  • Confidentiality through encryption.
  • Integrity protection.
  • Server authentication through certificate validation.

TLS can also support client authentication in appropriately configured environments.

<AsyncImage query="TLS handshake client server certificate key exchange encrypted application data diagram" aspectRatio="16:9" width="100%"/>

12.3 What Can Wireshark Show in TLS Traffic?

Even when application data is encrypted, a packet capture may reveal some connection metadata.

Depending on the TLS version, configuration, and capture location, an analyst may observe:

  • Source and destination IP addresses.
  • Ports.
  • Connection timing.
  • Packet sizes.
  • TLS record types.
  • Handshake messages.
  • Certificate information in some handshakes.
  • Negotiated protocol information where visible.

Modern TLS features, including TLS 1.3 and Encrypted Client Hello where deployed, limit visibility into certain handshake details.

12.4 What Does Encryption Hide?

A correctly protected TLS connection generally prevents an ordinary network observer from reading the protected application payload.

For example, the observer generally cannot directly read:

  • Login passwords.
  • Private messages.
  • Payment details.
  • Protected application data.

Important: Encryption does not hide all metadata, and it does not make a compromised endpoint safe.


13. Network Logs

Network logs record events related to network devices, services, and communication.

They help security teams investigate performance problems and security incidents.

13.1 Common Log Sources

Firewall logs

Record permitted and blocked network connections.

Router logs

Record routing, interface, and device events.

Switch logs

Record port changes, link events, and security violations.

DNS logs

Record DNS queries and responses where logging is enabled.

DHCP logs

Record address allocation and lease events.

VPN logs

Record remote-access authentication and session information.

Server logs

Record application connections, errors, and service activity.

13.2 Example Firewall Log

2026-11-03 10:15:20
Source: 192.168.10.25
Destination: 203.0.113.20
Protocol: TCP
Destination Port: 443
Action: ALLOW

Interpretation:

A device at 192.168.10.25 connected to an external example IP using TCP port 443.

This alone does not prove the connection is malicious.

13.3 Example Firewall Deny Log

2026-11-03 10:16:10
Source: 192.168.10.25
Destination: 192.168.20.50
Protocol: TCP
Destination Port: 445
Action: DENY

Interpretation:

The firewall blocked an SMB-related connection from one internal network to another.

An analyst should verify whether this was an expected connection or a suspicious access attempt.

13.4 What Should Logs Contain?

Useful log fields include:

  • Timestamp.
  • Source IP.
  • Destination IP.
  • Source port.
  • Destination port.
  • Protocol.
  • Action.
  • Device identity.
  • Event identifier.
  • User identity where available.

Accurate timestamps and centralized log collection are important for incident investigation.


14. NetFlow Concepts

NetFlow is a network traffic monitoring technology originally developed by Cisco and widely associated with flow-based network analysis.

Rather than storing every packet, flow monitoring summarizes communication between endpoints.

14.1 What Is a Network Flow?

A flow represents a group of packets sharing a set of characteristics.

A commonly used flow key includes:

  • Source IP.
  • Destination IP.
  • Source port.
  • Destination port.
  • Transport protocol.

Additional fields may be included depending on the exporter and flow format.

14.2 Example Flow Record

FieldValue
Source IP192.168.10.25
Destination IP203.0.113.20
Source Port51500
Destination Port443
ProtocolTCP
Packets120
Bytes85,000
Duration35 seconds

This record summarizes a communication flow.

The example addresses are documentation-only and do not represent real public systems.

14.3 Why Is NetFlow Useful?

It helps analysts identify:

  • Top communicating devices.
  • High-volume connections.
  • Unusual external destinations.
  • Unexpected protocols.
  • Traffic spikes.
  • Long-running communication.
  • Potential data exfiltration patterns.

14.4 NetFlow vs Packet Capture

FeaturePacket CaptureNetFlow
DataIndividual packetsFlow summaries
Payload visibilityMay expose packet contents if unencryptedDoes not normally provide full packet payload
StorageCan be largeUsually more compact
AnalysisDetailed protocol inspectionTraffic behavior and volume analysis
Best useDeep investigationNetwork-wide traffic visibility

NetFlow is useful for identifying suspicious communication, while packet capture can provide more detailed evidence about selected traffic.


15. IPFIX Concepts

IPFIX stands for Internet Protocol Flow Information Export.

It is a standardized protocol for exporting flow information from network devices to collectors.

It is based on the flow-export concepts associated with NetFlow.

15.1 Main IPFIX Components

Exporter

The network device that observes traffic and exports flow records.

Collector

The system that receives exported records.

Analyzer

The platform that interprets the collected flow data.

15.2 NetFlow vs IPFIX

FeatureNetFlowIPFIX
OriginCisco-developed technologyIETF standard
PurposeFlow monitoringFlow information export
Data modelDepends on NetFlow versionTemplate-based information model
Vendor interoperabilityVaries by implementationDesigned for standardization
Typical useNetwork traffic visibilityMulti-vendor flow monitoring

15.3 How Flow Monitoring Helps Security Teams

Imagine an employee computer normally sends a small amount of data to external web services.

Suddenly, it sends a large volume of outbound traffic to an unfamiliar destination.

Flow monitoring may help identify:

  • The source device.
  • The destination.
  • The volume of traffic.
  • The communication duration.
  • The protocol and ports.

The security team can then investigate the device and use packet captures or endpoint logs for deeper analysis.


16. Detecting Unusual Network Traffic Patterns

Unusual traffic does not automatically mean an attack.

It means the activity differs from expected behavior and deserves investigation.

16.1 High Traffic Volume

Possible indicators:

  • Sudden bandwidth spikes.
  • Unexpected outbound transfers.
  • Repeated large downloads.
  • Unusual traffic during non-business hours.

Possible explanations:

  • Backups.
  • Software updates.
  • Legitimate business transfers.
  • DDoS activity.
  • Data exfiltration.

16.2 Unusual DNS Activity

Possible indicators:

  • Large numbers of unique domain queries.
  • Repeated failed DNS requests.
  • Unexpected DNS resolvers.
  • Unusual DNS query patterns.
  • Frequent requests to suspicious domains.

Possible explanations:

  • Misconfigured applications.
  • Malware communication.
  • DNS tunneling.
  • Software behavior.

16.3 Unusual Port Activity

Possible indicators:

  • Unexpected connections to administrative services.
  • Internal systems communicating with unnecessary ports.
  • Unexpected database connections.
  • New services appearing on critical servers.

Possible explanations:

  • Legitimate configuration changes.
  • Vulnerability scanning.
  • Unauthorized service discovery.
  • Compromised systems.

16.4 Repeated Failed Connections

Possible indicators:

  • Many failed login attempts.
  • Repeated connection attempts to unavailable services.
  • High numbers of refused connections.
  • Unusual authentication activity.

Possible explanations:

  • Misconfigured software.
  • Expired credentials.
  • Network failures.
  • Password attacks.
  • Unauthorized reconnaissance.

16.5 Unusual Internal Communication

Possible indicators:

  • Employee devices communicating with unexpected servers.
  • Servers connecting to other network zones without a business reason.
  • Unexpected administrative connections.
  • Unusual east-west traffic.

Possible explanations:

  • New applications.
  • Management activity.
  • Malware propagation.
  • Lateral movement.

16.6 Possible Data Exfiltration

Data exfiltration is the unauthorized transfer of data out of an organization.

Possible indicators include:

  • Large outbound data transfers.
  • Unusual destination networks.
  • Unexpected cloud storage usage.
  • Data transfer outside business hours.
  • Unusual traffic from sensitive servers.

A large transfer alone does not prove data theft. The analyst must validate the source, destination, business purpose, and endpoint activity.


17. Common Monitoring Metrics

Security teams use multiple measurements to understand network health and security.

MetricWhat It Measures
Bandwidth utilizationPercentage of available link capacity being used
ThroughputActual data transfer rate
LatencyTime taken for data to travel
Packet lossPercentage of packets not successfully delivered
JitterVariation in packet delay
Connection countNumber of active connections
Error rateFrequency of network or application errors
Retransmission rateFrequency of TCP retransmissions
DNS response timeTime taken to receive DNS answers
Interface errorsErrors reported by network interfaces

Why Do These Metrics Matter?

Example:

A video conferencing application may experience poor quality because of:

  • High latency.
  • High jitter.
  • Packet loss.
  • Congested network links.

A database application may experience delays due to:

  • Slow server responses.
  • Packet retransmissions.
  • Network bottlenecks.
  • Firewall inspection delays.

Monitoring helps identify the area that needs further investigation.


18. Practical Lab 1: Capture Your Own Network Traffic

Objective: Capture normal network traffic using Wireshark.

Requirements

  • Wireshark installed.
  • Your own computer.
  • An authorized network connection.

Steps

  1. Open Wireshark.
  2. Identify your active network interface.
  3. Select the interface.
  4. Start packet capture.
  5. Open a familiar website.
  6. Wait for the page to load.
  7. Stop packet capture.
  8. Inspect the captured traffic.

Observe

  • Source IP.
  • Destination IP.
  • Protocol.
  • Packet length.
  • DNS queries.
  • TCP connections.
  • TLS handshakes.

Questions

  1. Which protocols appeared?
  2. Did DNS queries occur?
  3. Did the browser establish TCP connections?
  4. Was HTTPS used?
  5. Which packet contained the first SYN?
  6. Which packet completed the TCP handshake?

Expected outcome: Understand the basic packet capture workflow.


19. Practical Lab 2: Practice Display Filters

Objective: Filter captured packets using Wireshark.

Open a capture file generated from your own browsing or an approved training environment.

Try these filters:

DNS traffic

dns

TCP traffic

tcp

TLS traffic

tls

Specific host

ip.addr == 192.168.1.10

TCP port 443

tcp.port == 443

DNS queries

dns.flags.response == 0

DNS responses

dns.flags.response == 1

TCP SYN packets

tcp.flags.syn == 1 && tcp.flags.ack == 0

TCP retransmissions

tcp.analysis.retransmission

Tasks

  1. Apply each filter.
  2. Record the number of displayed packets.
  3. Select one packet.
  4. Expand its protocol layers.
  5. Explain what the packet represents.

Expected outcome: Become comfortable filtering and inspecting packet captures.


20. Practical Lab 3: Analyze a TCP Handshake

Objective: Identify the TCP three-way handshake.

Steps

  1. Open an authorized packet capture containing TCP communication.
  2. Apply:
tcp.flags.syn == 1
  1. Identify a SYN packet.
  2. Find the corresponding SYN-ACK.
  3. Identify the final ACK.
  4. Record the source and destination ports.

Record Your Findings

PacketTCP FlagsPurpose
1SYNClient requests connection
2SYN, ACKServer responds
3ACKClient confirms

Questions

  • Why does TCP use a three-way handshake?
  • What happens if the server does not respond?
  • What does a TCP RST indicate?
  • Why might retransmissions occur?

Expected outcome: Understand how normal TCP connections are established.


21. Practical Lab 4: DNS Traffic Investigation

Objective: Understand DNS queries and responses.

Steps

  1. Start an authorized Wireshark capture.
  2. Open a website or perform a normal DNS lookup.
  3. Apply:
dns
  1. Select a DNS query.
  2. Identify the queried domain.
  3. Inspect the query type.
  4. Find the corresponding response.
  5. Identify the response code and returned records.

Questions

  • Was the query for an A or AAAA record?
  • Which DNS server received the query?
  • Was the response successful?
  • Did the response contain an IP address?
  • What could repeated DNS failures indicate?

Expected outcome: Learn how to investigate DNS communication.


22. Practical Lab 5: Build a Basic Traffic Baseline

Objective: Understand normal network activity.

Use your own device or an authorized lab environment.

Collect These Measurements

MetricObservation
Total packets
Total captured bytes
Most common protocol
Common destination
Common destination port
DNS request count
TCP connection count
Largest observed transfer
Capture duration

Tasks

  1. Capture traffic during normal browsing.
  2. Record the metrics.
  3. Repeat during a different normal activity, such as an authorized software update.
  4. Compare both captures.
  5. Identify which changes are expected.
  6. Document unusual observations that require further investigation.

Expected outcome: Understand why normal traffic patterns must be established before identifying anomalies.


23. Practical Lab 6: NetFlow and IPFIX Investigation

Objective: Understand flow records using a simulated dataset.

Example Dataset

SourceDestinationProtocolDestination PortBytes
192.168.10.10203.0.113.10TCP44325,000
192.168.10.11203.0.113.20TCP44332,000
192.168.10.12192.168.20.10TCP44512,000
192.168.10.13198.51.100.20UDP53800
192.168.10.14203.0.113.30TCP4438,500,000

All public-looking addresses in this dataset are documentation-only example addresses.

Tasks

  1. Identify the largest transfer.
  2. Identify internal communication.
  3. Identify DNS traffic.
  4. Compare the largest transfer with expected behavior.
  5. Identify what additional evidence would be required before declaring an incident.

Questions

  • What is a network flow?
  • How does flow monitoring differ from packet capture?
  • Why is a large outbound transfer worth investigating?
  • What information is missing from a basic flow record?

Expected outcome: Understand how flow data supports network-wide visibility.


24. Practical Lab 7: SOC Traffic Investigation Scenario

Objective: Investigate suspicious traffic using multiple data sources.

Scenario

A fictional organization reports that an employee computer is behaving unusually.

The monitoring system records:

10:00:00
Host: EMP-014
Event: Normal HTTPS browsing

10:05:00
Host: EMP-014
Event: Repeated DNS queries to unfamiliar domains

10:07:00
Host: EMP-014
Event: Multiple outbound connections to an unfamiliar IP

10:10:00
Host: EMP-014
Event: Large outbound data transfer

10:12:00
Host: EMP-014
Event: Endpoint monitoring alert

Investigation Tasks

  1. Identify the affected device.
  2. Establish the timeline.
  3. Identify the destination domains and IP addresses.
  4. Review DNS responses.
  5. Review connection metadata.
  6. Compare the activity with the traffic baseline.
  7. Check endpoint process information.
  8. Determine whether the transfer was authorized.
  9. Recommend containment if compromise is confirmed.
  10. Prepare an incident report.

Example Investigation Table

EvidenceQuestion
DNS logsWhich domains were requested?
Firewall logsWhich connections were allowed?
Flow recordsHow much data was transferred?
Packet captureWhich protocols and connection patterns were observed?
EDR logsWhich process initiated communication?
Authentication logsWhich user was logged in?

Expected outcome: Understand how SOC analysts combine packet, flow, endpoint, and log information.


25. Packet Analysis Best Practices

When investigating network traffic:

  • Capture only traffic you are authorized to inspect.
  • Define the investigation objective before capturing.
  • Use appropriate capture filters.
  • Avoid collecting unnecessary sensitive data.
  • Protect packet capture files.
  • Record capture timestamps and interfaces.
  • Preserve original evidence.
  • Use display filters for focused analysis.
  • Correlate packet data with system logs.
  • Avoid treating one packet as proof of an attack.
  • Document assumptions and limitations.

Privacy Considerations

Packet captures may contain:

  • Usernames.
  • Internal addresses.
  • Application metadata.
  • Authentication information in insecure protocols.
  • Sensitive business information.

Store captures securely and follow organizational data-handling requirements.

27. Lesson Summary

In this lesson, you learned:

  • Network monitoring helps observe network activity and performance.
  • Packet analysis examines individual captured packets.
  • Network baselines describe expected communication patterns.
  • Wireshark is used for protocol and packet analysis.
  • Capture filters control which packets are recorded.
  • Display filters control which captured packets are shown.
  • TCP handshake analysis helps identify connection behavior.
  • DNS packet analysis helps investigate name resolution.
  • HTTP and TLS analysis reveals different levels of communication detail.
  • Network logs provide evidence of device and service activity.
  • NetFlow summarizes network communication.
  • IPFIX standardizes flow information export.
  • Traffic anomalies can indicate misconfiguration, attacks, or legitimate business activity.
  • SOC analysts correlate network, endpoint, and identity information before reaching conclusions.

28. Key Terms to Remember

TermMeaning
Packet AnalysisExamination of captured network packets
WiresharkNetwork protocol analyzer
Capture FilterFilter applied during packet capture
Display FilterFilter applied to captured packets
BaselineDescription of expected network behavior
TCPTransmission Control Protocol
TLSTransport Layer Security
DNSDomain Name System
NetFlowFlow-based network monitoring technology
IPFIXInternet Protocol Flow Information Export
NIDSNetwork-based Intrusion Detection System
SIEMSecurity Information and Event Management
ThroughputActual data transfer rate
LatencyCommunication delay
Packet LossPackets that fail to reach their intended destination

29. Coming Next: Network Security Architecture

In the next lesson, you will learn how organizations design secure networks using segmentation, DMZs, Zero Trust, least privilege, and defense in depth.

Topics include:

  • Network segmentation.
  • VLAN security.
  • DMZ architecture.
  • Zero Trust principles.
  • Least privilege.
  • Defense in depth.
  • Public, private, and management zones.
  • Secure network design.
  • Cloud network security.
  • Practical enterprise network architecture.

CYNARKS Academy – Learn to Understand. Practice to Defend.

Practice networking and security testing only on systems you own or have explicit authorization to test.

End of lesson

Quiz · Tasks · Labs

Pass the quiz (≥70%), check off tasks, then mark the lesson complete to earn Foundations badges.

Scenario check

Real situations — apply the lesson logic; avoid pure memorization.

Answer all, then submit
  1. 1. What is network monitoring?

  2. 2. What is packet analysis?

  3. 3. What is a network traffic baseline?

  4. 4. What is Wireshark used for?

  5. 5. What is a capture filter used for?

  6. 6. What is a display filter used for?

  7. 7. Which display filter shows DNS packets?

  8. 8. Which display filter identifies TCP SYN packets without ACK?

  9. 9. What are the three steps of a TCP handshake?

  10. 10. What does a DNS A record contain?

  11. 11. What does an AAAA record provide?

  12. 12. What does HTTPS use to protect communication?

  13. 13. What does NetFlow primarily provide?

  14. 14. What is IPFIX?

  15. 15. Why are packet captures useful?

  16. 16. What can an unusually large outbound transfer indicate?

  17. 17. Which data source can help identify how much traffic a host transferred?

  18. 18. Why should packet capture files be protected?

  19. 19. Does encrypted HTTPS traffic mean all connection metadata is hidden?

  20. 20. Does an unusual traffic pattern automatically prove an attack?

Lesson tasks

Practice labs

Required labs test this lesson’s skills. Related labs are optional previews.

Finish the quiz and tasks to unlock Mark as completed.