Y
Y
Yeo2017-01-09 23:27:02
Traffic analysis
Yeo, 2017-01-09 23:27:02

How to get application layer protocol?

Hello, I am writing a sniffer. Interested in how to get the application layer protocol (name) of the intercepted packet. Which way to climb?
You need to make a correspondence table "package metrics" - the name of the application layer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2017-01-10
@Yeo

As a first approximation - by TCP / UDP port of the server side ( IANA Assigned Numbers ).
If you need higher accuracy, look towards signatures and heuristics.
Nobody prevents the client and the server from "agreeing" on the use of a non-standard port for any application protocol.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question