Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question