Skip to content

OSI and TCP/IP Models for Forensic Examiners

Use the OSI and TCP/IP models to describe what part of a network exchange a source can show.

By Reviewed by Subhrant Jha

Last updated:

The OSI and TCP/IP models help a forensic examiner locate a network observation and state what it establishes. An Ethernet frame records local delivery information. An Internet Protocol packet records addressed traffic. A transport acknowledgment can show receipt of bytes by a peer. An application response can say what a service did with a request. Each answer depends on the record and where it was produced.

Follow the evidence in the order needed for the question. To decide whether a service completed an operation, start with the service's outcome records and work back to the request and connection. To decide which device used a translated address, start with the network boundary and work inward to the address lease, association, or endpoint records. The models provide a shared vocabulary for both tasks.

Key terms

Open Systems Interconnection (OSI) model
The seven-layer reference model for describing the functions used in communication between open systems.
TCP/IP model
The Internet protocol architecture described in RFC 1122 using link, Internet, transport, and application layers.
Encapsulation
Carrying data from one protocol inside a unit of another protocol. An Ethernet frame can carry an IP packet, which can carry a TCP segment.
Observation point
The location and interface or system from which traffic or a related event was seen or recorded.
Five-tuple
The source and destination IP addresses, source and destination ports, and transport protocol. Time and observation point help distinguish reuse of the same tuple.
Network address translation (NAT)
A function that substitutes network addresses and, in port-translating deployments, may also substitute transport ports.
More key terms (2)
Transport acknowledgment
A peer's protocol-level report about receipt or sequence state. For TCP, the acknowledgment number gives the next sequence position expected when the ACK flag is set.
Request identifier
A value assigned to help relate log entries or messages for a request. Its producer, scope, and reuse rules determine how strong a match is.

Relate the Seven OSI Layers to Evidence

Layer 1, physical, concerns the transmission of bits over a medium. Link-up and link-down events, optical receive levels, and radio measurements can describe conditions on a particular port or channel. Use the device, interface, and measurement interval to locate the observation. An ordinary packet capture preserves records handed to the collector. It seldom preserves the electrical, optical, or radio signal itself.

Layer 2, data link, concerns delivery across a local link. Ethernet source and destination media access control (MAC) addresses identify the addresses in that observed frame. A virtual local area network (VLAN) tag can supply local forwarding context when it is present and retained. A frame sent toward a remote IP network can have the local router's MAC address as its destination.

Use the examples to locate an observation in the OSI model. The original record and its point of observation determine what the example supports.

Layer 3, network, concerns addressing and forwarding across interconnected networks. An Internet Protocol (IP) header gives the addresses carried at that point. In Internet Protocol version 4 (IPv4), Time to Live is a forwarding limit. Internet Protocol version 6 (IPv6) calls its corresponding field Hop Limit. A single observed value leaves the starting value and exact route unresolved.

Layer 4, transport, concerns communication between endpoints. Transmission Control Protocol (TCP) ports, flags, and sequence fields show how an observed byte stream is addressed and how its state advances. User Datagram Protocol (UDP) supplies ports and datagram boundaries, with any request matching or receipt confirmation supplied by the protocol carried inside it.

Layer 5, session, concerns organizing exchanges between communicating parties, including dialogue control and synchronization in the OSI reference model. A service's record of a session being created or resumed can help reconstruct continuity. Establish what the producer means by session and how the identifier is scoped before tying its lifetime to any underlying connection.

Layer 6, presentation, concerns how exchanged data is represented. A character encoding, compression format, or serialization rule can determine how to interpret preserved bytes. Preserve the original representation and record the transformation if a readable exhibit requires decoding. A recognizable format can support a reading of the bytes while still leaving the source of their contents open.

Layer 7, application, concerns communication services used by applications. A Domain Name System (DNS) answer, a Hypertext Transfer Protocol (HTTP) request, or a service status can describe a specific operation at that layer. Read its meaning in the protocol or service context. In the ITU-T X.200 model, the application layer has a communications role. A local action in a user interface may leave its best evidence in a different source.

Compare the TCP/IP Model

RFC 1122, Requirements for Internet Hosts, describes four layers in Section 1.1.3. The link layer covers communication on the directly connected network, including the local exchange commonly described using OSI data link and physical functions. The Internet layer contains IP and related control functions. It corresponds most closely to the network layer in OSI.

The Internet transport layer contains protocols such as TCP and UDP. The Internet application layer covers protocols such as HTTP and DNS and includes functions that OSI describes under application, presentation, and session. RFC 1122 covers the link, Internet, and transport layers in depth. Its companion RFC 1123 addresses application and support protocols.

The OSI model names seven layers. RFC 1122 describes four Internet layers. The rows show approximate functional groupings. For example, the Internet application layer covers functions that OSI groups under application, presentation and session.

Read the two models as descriptions of functions at different levels of detail. A common teaching diagram splits the link into separate data-link and physical layers, which produces five layers. If an analyst refers to a numbered layer, name the model or protocol as well. In a case report, a protocol and field name give a reviewer a direct way to find the observation.

Encapsulation makes the relationship concrete. On an Ethernet link carrying ordinary HTTP over TCP and IPv4, the saved data can include an Ethernet header, an IPv4 header, a TCP header, and HTTP bytes. A single TCP segment can hold part of an HTTP message or bytes from several messages. The examiner may need to reassemble the stream before assigning a request or response to specific frames.

Modern protocols combine functions in ways the numbered model alone cannot capture. Transport Layer Security (TLS) protects higher-level exchanges and can resume previously negotiated security state. QUIC carries secure, multiplexed transport over UDP, and HTTP/3 exchanges travel over QUIC streams. Read the raw outer fields and available inner protocol details before deciding whether the record shows a datagram, connection, stream, or application message.

Read Evidence From the Observation Point Outward

Start with a written description of the source. For a packet capture, identify the interface, position relative to gateways and service boundaries, observed directions, time interval, and capture filter if known. Verify whether the file contains Ethernet headers, a host capture's link representation, or another link type. These details control which fields and absences you can interpret.

Compare two captures across a router and expect local framing to differ. The router sends the forwarded packet in a frame appropriate to the next link. An IP address can persist across that boundary while the MAC address changes. Where a network address translation (NAT) device rewrites an IP address or transport port, the same exchange can have different five-tuples on its inside and outside interfaces.

In this routing example, each capture shows the frame for its local link, while the IP source and destination addresses remain the same. Other IP fields can change. Compare addresses, timing and connection context before linking the observations.

A reverse proxy may terminate a client's connection and create or reuse an upstream connection. Its upstream source address can be the proxy's own address, and the destination can be a service address never shown in the client-side headers. Where connections are reused for multiple requests, connection timing and endpoints alone may leave several possible matches. Inspect the proxy's request records for a documented join.

Encrypted traffic can preserve endpoint addresses, length, direction, and timing while concealing an application request path or message body. Some handshakes expose negotiation details. A visible server name indicates what was offered in that field, and its visibility depends on the protocol and configuration. A service or authorized endpoint record can carry the details needed to identify the request.

Compare captured length with original length where the format provides both. A shortened record can preserve enough bytes for IP and TCP interpretation and still end before an application field. If the expected response is missing, check duration, direction, collection filters, and evidence of drops first. State which source and interval were searched and what material that source could have preserved.

Network Observation Points and Evidence Scope

TLS Metadata and Its Limits

Follow Protocol Evidence Across Different Sources

A DNS answer can link a name to addresses returned by a resolver for a particular query. Match the question and reply using the identifier, question name and type, endpoints, direction, and time. A later exchange with a returned address is consistent with use of that answer. Cached records, several valid addresses, and services sharing an address can leave more than one explanation.

A flow record can bridge a resolver observation and a request log by placing addressed traffic at a particular exporter. Confirm whether the export counts one direction or both, which timestamps and endpoints it retained, and whether sampling or aggregation affects the record. Its packet and byte totals describe the exporter's measurement. They support comparisons only after you establish what was counted and where.

Each record answers a different question. Correlate records using the fields actually present and check the observation point and time window before stating a link.

Across a NAT boundary, seek the mapping that relates the inside and outside addresses and ports at the relevant time. Keep the transport protocol and boundary device with the mapping. Then use the Dynamic Host Configuration Protocol (DHCP) lease history, a Wi-Fi association record, or endpoint records to identify the likely device in the interval. An address assignment establishes an allocation and leaves the identity of the person operating the device open.

At an application boundary, compare request identifiers where their source and handling are documented. A proxy and upstream service may preserve the same generated identifier, or the proxy may assign its own and store both. If the identifier came from the client, check for duplicates and what each service actually logs. Time, service route, and authenticated context help evaluate competing matches.

Normalize timestamps using the recorded time bases, and keep the original values beside the converted times. Compare the meaning of the clocks as well as their offsets. A packet can be stamped at capture, a flow at first or last observation, and a proxy log when the response finishes. Keep a window wide enough for known uncertainty, then test which candidates survive the non-time criteria.

DNS Evidence and Name Resolution

NAT Records and Address Attribution

Distinguish Transport Receipt From Application Outcomes

A TCP opening exchange can establish that a synchronizing segment (SYN), a SYN with acknowledgment (ACK), and a returning ACK were visible at the capture point. A capture that starts after the opening may still contain a stream with usable data and acknowledgments. Keep the recorded stages separate so the report reflects which frames the file actually contains.

A TCP acknowledgment with an advancing acknowledgment number states the next sequence position the acknowledging peer expects. Check direction and compare the value with the byte range of the request. The sequence spaces are independent in each direction. If a display uses relative sequence numbers, keep the display convention with the notes and avoid comparing those values directly with raw header values.

A transport exchange and a service response answer different questions. Link each claim to the evidence that shows the relevant stage.

When a load balancer or proxy terminates TCP, its acknowledgment gives evidence about receipt on that connection. For an upstream processing claim, look for the related application request and its outcome in the upstream records. A packet trace on the client-facing segment can show a response returned by the proxy. The service or cache that produced the response is a separate question.

For UDP, the delivery of datagrams has no built-in acknowledgment mechanism in the UDP header. Some applications carry their own replies, transaction identifiers, and acknowledgments. To relate them, use the message pattern defined by the carried protocol together with the observed endpoints, direction, and interval. When a reply may belong to one of several retries, explain the ambiguity.

An application response establishes a protocol outcome at the component that issued it. For HTTP, interpret the status with the request method, the service's role, and any evidence of caching. A success response can support a report that a request received a successful status. If the question concerns a record being committed, a document being displayed, or a file being opened, look for the corresponding service or endpoint evidence.

TCP Connections and UDP Exchanges

Build and Review a Bounded Finding

Write the question as an observable proposition. For a disputed upload, distinguish whether traffic reached the edge, whether the edge acknowledged bytes, whether it recorded a specific upload request, and whether the backend committed the object. Each proposition has its own producer and time. Give the claim a device, service, or interface scope wherever the evidence allows it.

Inventory sources that could answer the question within the documented scope. Keep the capture or raw log export with an evidence identifier, original time basis, and collection details. Record which copies or views the analysis used. A stream reassembly can make an application message readable. Its frame references let a reviewer revisit the bytes, directions, and any gaps that affected reconstruction.

Use the capture to support what was observed on the network. Use a related service record to support an application outcome, and document how the two records were linked.

Choose the source that most directly supports the claimed event. If a service record shows an object commit, retain that record with the identifier, operation, and timestamp the service supplied. Then link backward through the request and network evidence. A timestamp overlap can narrow the candidates, while a unique request identifier or documented mapping can support a specific relationship.

Check plausible alternatives before settling the wording. Reused connections can carry several requests, shared addresses can represent different devices, and a log forwarded into two dashboards can appear as two observations. Review whether independent producers described distinct events or copied the same one. Preserve enough of the candidate matches and time window to explain why a competing interpretation remains open or was excluded.

End with the strongest supported claim and the unresolved stage. For example, a report can state that the perimeter trace recorded an established connection and an acknowledgment covering the request bytes, while the retained service records show the request reaching the edge and leave backend storage unresolved. Give the reviewer the frame or record identifiers and any clock, coverage, or identifier uncertainty that affects the conclusion.

Writing Bounded Network Findings

What is the difference between the OSI and TCP/IP models?
OSI defines seven reference layers. RFC 1122 describes the Internet suite in four layers, with application, transport, Internet, and link functions. A comparison groups related functions so the examiner can describe each observation in the appropriate model.
Can a packet capture show all seven OSI layers?
A capture can preserve headers and payload visible at its interface, and a tool may decode several protocols or reconstruct a stream. Signal measurements and session or representation details depend on the source and protocol. Ordinary Ethernet captures seldom preserve physical signals, and encrypted payloads can hide application details.
Does a TCP acknowledgment prove that a server processed a request?
An advancing acknowledgment supports receipt of contiguous bytes by its TCP peer. An application response or an appropriate service record is needed to support a processing claim. Where a proxy terminates TCP, start by identifying which peer sent the acknowledgment.

Check Your Understanding

Question 1 of 5· 0 answered
Which OSI layer accounts for the Ethernet destination address recorded in a frame?

Source

  1. 1.RFC 1122, Requirements for Internet Hosts, Section 1.1.3The four Internet protocol layers, the mapping of upper-layer functions, and the companion coverage in RFC 1123.

Test yourself on Network Forensics with free, timed mocks.

Practice Network Forensics questions

Found this useful? Pass it along.