LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-24-2009, 12:59 AM   #1
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: fedora
Posts: 196

Rep: Reputation: 32
identifying the protocol of the application layer


hai,

I'm working on networking related stuff. Here in between I met with a need where I have to analyze the protocol of the application layer.

Upto TCP it was ok. Because there is a protocol field in the ethernet layer telling that the payload is IP and the there is protocol field in IP header telling that the payload is TCP/UDP/ICMP/......

But in TCP/UDP there is no protocol field giving the protocol details of the payload.

I can't blindly go through the port number as there are chances that the servers can be run on other ports also like ftp server can run on port 80.

I googled it. But not able to trace the solution.

So can any body help me how to decide what protocol the application layer(TCP/UDP payload) is?

thanks in advance.

Last edited by chakka.lokesh; 03-24-2009 at 01:00 AM.
 
Old 03-24-2009, 07:15 PM   #2
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 4,506

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
This is the domain of a packet disassembler & protocol analyzer. To glean insight, use a real one such as Wireshark, and it may reveal something about how it operates. I doubt that one can be made to be fool-proof, since the actual application that receives a packet is the only thing that knows for sure how to parse the packet. Commonly used and documented protocols will have some kind of identifiable signature against which the protocol analyzer must compare each packet, or series of packets. The port number is most likely used as a strong hint in the analysis. It will be a very big job to create a competent analyzer, even for a small number of well known protocols. If you simply want the information that such a tool provides, it will be a lot easier to use a ready-made one. If you are interested in a particular protocol for which no template exists, it would probably be welcomed if you were to develop and contribute even a single one.
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing The Link Layer Topology Discovery (LLTD) Protocol Responder For Linu LXer Syndicated Linux News 0 11-12-2008 10:30 PM
Identifying the flow of an application?? Sulman Shah Programming 9 01-23-2007 06:51 AM
Application layer firewall for Mandriva 2007? Jordan&&&& Mandriva 1 10-21-2006 04:54 PM
application layer firewall in linux? taiwf Linux - Security 4 04-11-2006 04:54 AM
Application layer firewalls TheIrish Linux - Security 1 06-16-2004 03:52 AM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration