Skip to content

Start at the application, where the fault is visible, and work down through the layers. It suits faults that affect one application while the rest of the network works.

Also known as: top-down, in Cisco training material, where it is based on the OSI model.

How it works

  1. Reproduce the fault in the application and record the exact error message.
  2. Check the application's logs and configuration.
  3. Check its use of the transport layer: ports, certificates, timeouts and encryption settings.
  4. Check the network: addressing, routing and firewalls.
  5. Check the physical layer last, and only if the earlier steps point there.

When to use it

  • One application is affected and others work.
  • The application gives an error message you can act on.
  • You know the application better than you know the network.

When another approach is better

  • Nothing network-related works from the device.
    Bottom-up
    finds the failing layer first.
  • The error message is vague or misleading. Capturing the traffic shows what is really happening: see the packet capture technique under
    Follow the path
    .
  • Many applications are affected. Checking each one can take a long time.

Worked example

Illustrative example

A user reports that an application will not open. It shows a name-resolution error.

$ curl -v https://app.example.com
* Could not resolve host: app.example.com
                    # layer 7: looks like a DNS fault

$ grep -i server /etc/app/app.conf
server = app.example.com
                    # layer 7: name and port are correct

$ ip addr show eth0 | grep "inet "
inet 169.254.8.12/16
                    # layer 3: self-assigned address

The application's settings are correct, the encryption and session settings are fine, and the client's own firewall allows port 443, so layers 7 to 4 are cleared. At layer 3 the machine has a 169.254 address, which a device gives itself when it never received a real one. The "could not resolve host" error was a consequence, not the cause. The fault is found at the network layer, and the next question is why no address was issued. The data link and physical layers have not been checked, and may turn out to hold the real cause.

Watch for

  • Vague errors. "Something went wrong" tells you nothing. Find the underlying log entry.
  • Application errors that are really consequences of lower faults. A timeout is often a network problem reported by the application.
  • Stopping at the first odd log line. Confirm it explains the symptom.

Related methodologies

Sources

$ check osi --top-down

  1. Layer 7 Application The service, its logs and errors ✓ Cleared
  2. Layer 6 Presentation Data formats, encoding, encryption ✓ Cleared
  3. Layer 5 Session Setting up and ending sessions ✓ Cleared
  4. Layer 4 Transport Ports, connections, firewalls ✓ Cleared
  5. Layer 3 Network Addresses, gateway, routing No valid address was issued. Start here. ✕ Fault found
  6. Layer 2 Data link Interfaces, VLANs, switch ports • Not checked
  7. Layer 1 Physical Power, cables, link lights • Not checked
The method, using the fault from the worked example. The numbered steps group layers 5 to 7 as "application".

In practice

Examples and contributions

Entries appear here when a contributor tags them with this methodology.