Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Aplication and transport layers

Hi all, it is correct that say http is an application layer protocol, but does each and every application that is networked have its own tcp port number ? and why do they have a port number ?

New Member

Re: Aplication and transport layers


You are correct in saying that HTTP is an application layer protocol.

HTTP uses TCP port 80.

Every application / protocol has it's own TCP or UDP port number.

Another example would be SMTP, which maps to TCP port 25.

This link will help you understand the application layer.

This link gives you a list of common TCP/UDP port numbers.

Port numbers are used to differenciate between different application / protocol converations over a logical link.


New Member

Re: Aplication and transport layers

Hi there

so, can you use different port numbers with http? im gathering there is no law that says a web server must listen on port 80

is this correct ?

Super Bronze

Re: Aplication and transport layers

Yes, you can use a different port number for HTTP.

How port numbers work, or not, is somewhat much like other, "how is the location resolved" issues. For example, when a host desires to contact another host, say hostX, what's it's address? Likewise, when host application wants to send to another host's application, what's its port address? For the former, there are several ways for a host to resolve an address, a host table being one. For the latter, there's an agreement of default port numbers for various "known" applications. For unknown applications, there needs to be a private agreement on port number usage or the application could send to all ports (port scan) and look to see if one reponds as it expects (the latter, for hopefully obvious reasons, isn't normally done).