Network Address Translation (NAT) can make several internal devices appear under one address at an external observer. A translation record links an original address to the address presented on the other side. Where the translator also rewrites transport identifiers, the associated ports and protocol narrow the match. Accurate attribution begins with the specific observation and proceeds only as far as the evidence supports.
An investigation of a service interruption may begin with a server log that names a translated peer. A useful finding identifies the internal endpoint that could have used the recorded mapping at the specified time. Identifying a device, an account, or a person requires a separate basis for each step. The same evidence can be decisive about a gateway mapping and inconclusive about the origin of an application action.
Key terms
- Inside local
- A Cisco NAT term for the address representing an inside host on the internal side. Retain it when joining to the correct internal network.
- Inside global
- A Cisco NAT term for the address representing an inside host on the external side of a translation, regardless of whether that address is publicly routed.
- Port address translation
- Translation that includes transport identifiers as well as network addresses. It can let multiple sessions use one address.
- Mapping lifetime
- The interval supported by creation, deletion or state records for a binding. Compare it with the event window before treating the mapping as a candidate.
- Carrier-grade NAT
- Provider-operated address sharing. An authorized provider record can identify an assigned network endpoint at that boundary.
- Port overlapping
- Concurrent use of one translated endpoint for connections distinguished by their remote endpoint. A destination field can resolve candidates where time alone cannot.
More key terms (2)
- Port-block allocation
- Assignment of a range of translated ports for a period. It can connect an observed port with the assigned resource.
- NAT instance
- A logical translator identified in some export formats. Scope the identifier to its exporter and deployment before joining records.
Read the Observation at the Gateway
Find out where the original observer sits relative to the translation boundary. A public-facing server generally sees the address that reached it, while a firewall attached to an internal network may record the original internal address. A server behind a reverse proxy may log that proxy as its TCP peer. Draw the ingress and egress sides before interpreting labels such as source and destination.
Read the vendor documentation for the precise role of each address field. A gateway might log both endpoints with original and translated values, or record the changed side plus context identifying the network. The terms local and global refer to how a host address is represented at the boundary. An inside global address in a lab may still belong to a private address range.
Record the direction of the observed packet or connection. A reply arriving on the external side has the translated inside endpoint in a destination field. The same endpoint appears as the source when the internal host sends traffic out. A join on a column name alone can miss this reversal.
Match the Translation to the Event
Use the translated address, translated port, protocol, and time window as a starting point for TCP or UDP. Add the destination endpoint where the exporter records it and the mapping mode makes it relevant. Check the gateway identity and network context. Several gateways or independent routing domains can reuse the same address and port values.
Translation logs may describe binding creation, termination, or allocation of a block of ports. A binding identifies an address and port relationship where the gateway supports that detail. A block allocation identifies a range assigned for use over an interval. For a block record, test whether the external port falls inside the range and whether the allocation intersects the event window. The allocation by itself supplies no individual request record. IETF NAT Event Logging Standard
If the export stops between a creation event and a deletion event, keep the closing bound open unless another record establishes it. Check for nearby starts on the same external tuple. Short-lived translations can reuse a port after expiration, so a clock discrepancy can turn one match into two plausible matches.
Follow the Internal Address Across Records
A confirmed mapping identifies an internal address in a particular network at a particular time. A time-valid Dynamic Host Configuration Protocol (DHCP) lease may connect that address to a client identifier or link-layer address. Verify the relevant subnet and lease dates, and check for reassignment. Systems with manual addresses may require other inventory or interface records.
Identify each additional boundary in sequence. A customer router and a service provider gateway can translate the same connection twice. The provider record may identify the customer-side router address, after which the customer gateway record is needed to continue the join. An application proxy can create a new connection and requires a separate application-level link.
Record the strongest supported identity at each stage. A mapping can indicate an internal endpoint. An administrative lease or authenticated device record can add context about the assigned asset. A server session tied to an authenticated account can add a separate link. Shared devices, service accounts and delegated actions still matter when drawing conclusions.
Report Ambiguity and Coverage
Keep every candidate that passes the tuple and time tests. A rounded observation time may coincide with a port reuse boundary. Where the available records yield several candidates, state the reason for the ambiguity and identify the smallest missing discriminator. A port number or a better-bounded timestamp often changes the result more than another address-only log.
Preserve the original gateway record, its observation time, the relevant schema and the acquisition window. A current translation table is a snapshot of active state. Historical event exports support earlier reconstruction when their state changes and retention cover the period. An empty snapshot collected later supplies weak evidence about an earlier mapping.
A defensible report names the source, observation point, match keys and time window. If one translation is a plausible match, retain that level of confidence in the summary. Keep report excerpts to the endpoint details necessary for the authorized question.
Check Routing Domains Before Attributing an Address
An internal address can recur in separate tenant networks, sites, or routing tables. The mapping must carry enough context to identify which one supplied the traffic. If the gateway log includes a routing instance, appliance identifier, or inside interface, retain it through the join. In a failover pair, confirm which member exported records for the incident interval.
An apparent match can survive an address and time filter while failing the routing test. Check period-valid network records for the inside subnet and gateway assignment. If the log export dropped the context field, the original source may still resolve the ambiguity.
Separate Session, Binding and Resource Events
Decode natEvent before comparing the address columns. In the IP Flow Information Export (IPFIX) registry, value 4 identifies a NAT44 session creation and value 5 identifies its deletion. Values 16 and 17 record port-block allocation and deallocation. A report of address or port exhaustion belongs to another event class altogether. If a collector places those events in one table, some columns may be empty because they have no meaning for that event. IANA NAT Event Type Registry
For a source-translated session, compare sourceIPv4Address and sourceTransportPort with postNATSourceIPv4Address and postNAPTSourceTransportPort. The first pair describes the source endpoint before translation and the second gives the rewritten endpoint. Preserve natInstanceID where exported and keep the exporter identity alongside it. A session record can describe a narrower relationship than an address binding held by the same instance. NAT Event Fields and Templates in RFC 8158
Preserve a separate count for resource events. A port-exhaustion event can support a gateway-level explanation for some connection failures. Connecting it to a particular request requires evidence that the request needed a new mapping from the affected resource at the relevant time. A previously established session could still be using its allocation. The IPFIX flow records lesson explains how the collector determines which fields were exported.
Test a Match at a Port-Reuse Boundary
Hypothetical practice. An authorized service record gives a peer of 203.0.113.44:49200 over TCP. It floors its clock to whole seconds and records 14:12:30 UTC. Assume the clocks are otherwise aligned for this exercise. The observation therefore falls from 14:12:30.000 up to, but excluding, 14:12:31.000. Two mapping histories for the same gateway, remote service and translated tuple appear below.
Scroll horizontally if needed to see the full table.
Both mappings intersect the observation window. The first covers only its earliest part and the second covers its latest part. An examiner who reads the printed second as an exact instant would pick A and overlook B. The safest finding lists both and names the timestamp resolution as the remaining obstacle.
If a saved interface trace identified the same service event at 14:12:30.750 with error bounded to 50 milliseconds, the resulting interval would fit within B and outside A. Carry the evidence linking the trace to this particular event into the finding. A fine timestamp on an unrelated packet does nothing to settle the join. Review the clock differences lesson before substituting a time from a second clock.
Distinguish Simultaneous Sharing From Port Reuse
A translated port can be ambiguous even with a precisely dated observation. Some translators use port overlapping, which can assign the same external address and port to different original endpoints when their remote destinations distinguish the connections. Sequential reuse is a different situation in which the same external tuple is assigned again later.
Lifetime evidence can separate sequential matches. Overlapping matches may require the observed destination address and port and records that preserve those values. Verify the implementation and the policy in effect at the event boundary. RFC 7857 on NAT Port Overlapping
Hypothetical practice. An authorized gateway export shows two concurrent TCP translations using 203.0.113.50 port 50321. Candidate A has destination 192.0.2.80 port 443 and candidate B has destination 192.0.2.81 port 443. A saved server-side record has the translated peer, but the destination column in its summary is blank. Its original record locator identifies a listener on 192.0.2.81. That listener evidence selects B if A and B are the complete candidate set for this gateway and the server observed the same connection.
Check whether the listener was reached directly. If its log was produced behind a proxy or destination translator, the listener address could describe a later segment of the path. An address that looks like an exact match still needs its observation point attached. Preserve the rejected candidate and the reason for rejecting it, so a reviewer can repeat the comparison when new path evidence arrives.
Read an Allocation at the Right Level of Detail
An address-sharing gateway may retain a port-block allocation and no row for each connection using the block. Identify the external address, portRangeStart and portRangeEnd or their vendor equivalents, any protocol scope, the assigned internal endpoint or subscriber identifier, and the gateway that issued the assignment. Compare those fields with the actual event time.
A successful join places the observed port within an allocation and answers who or what the gateway assigned that resource to. The application transaction belongs to a separate source. RFC 8158 on Port Block Allocation
Hypothetical practice. A gateway record allocates ports 50000 through 50127 on 198.51.100.20 to lab router R7 during the test window. An external service reports a UDP peer at that address on port 50063. If the documented allocation covers UDP, the observed peer fits this block. If the record covers TCP only, the numerical overlap leaves the UDP peer unresolved. In either case, identifying the workstation behind R7 requires the authorized records for that router or another relevant observation point.
A carrier-grade NAT implementation may intentionally omit remote destination fields. The IETF guidance addresses privacy and log volume in discussing that choice. Treat an omitted field as a limit of the available record and document the minimum data needed for the case. RFC 6888 on CGN Logging
Keep the Original and Translated Sides in the Evidence Table
Use one working row for each candidate boundary crossing. Record the observed peer or local endpoint, original and translated endpoint fields, transport protocol, observation direction, gateway and routing context, validity window and source locator. A direction column matters because the same translation appears in a source field on an outbound observation and a destination field on a reply.
Record an empty field as absent from the source or absent from the working export, whichever you verified. This distinction helps another examiner decide whether to inspect the original schema.
Hypothetical practice. An authorized maintenance case includes an outbound gateway translation and an inbound server response. A working export changes both rows to describe the internal endpoint first for readability. Keep the original directional values available beside the canonical ones. A reviewer should be able to confirm that the reply targeted the translated endpoint and that the original records agree even though their column order differs.
Add the next identity link only when a separate record covers its scope. A matching lease can associate the internal address with a lease client in one subnet for one interval. A successful authentication records an account decision in its own system and needs an event link to the translation. A source locator at each boundary lets the reader see where the evidence ends. DHCP Records and Address Leases