12-18-2013 03:18 AM - edited 03-07-2019 05:08 PM
Hey guys,
can you illustrate the difference between port number and protocol number.
12-18-2013 03:50 AM
HI Pankaj,
You can think of a port as a phone extension, with the computer's IP address being like its phone number. You can call the number (IP address) to talk to the computer, then dial the extension (port) to talk to a specific application. An application needs to be listening on a port in order to communicate.
A protocol is just the language that the two applications on either end of a conversation agree to speak in. If your application is sending streams of bytes to my application, my application needs to know how to interpret those bytes.
Regards
Dont forget to rate helpful posts.
12-18-2013 04:05 AM
My question is that we say that protocol number for ospf is 89 and RIP works on UDP port number 520
what is the difference in these two protocol number and port number.
12-18-2013 04:27 AM
Hi Pankaj,
Port numbers are use by TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) while Protocol numbers are reserved number used to identify protocols.
PC-------Network ---------web server
For example: PC contact to the web server’s port 80 to get the web page because HTTP uses well known port number of 80. PC also use a port number from the User port range as the source port (e.g. 1380). This port number is used by the web server to serve the webpage to PC i.e. web server send the page with source port of 80 and destination port of 1380.
In an IP header, the Protocol field identifies the service in the next higher level in the protocol stack to which data is passed.
Hope it helps.
Reagrds
12-18-2013 06:57 AM
hi,
A port is just a channel that you select for the communication, and the protocol determines how the communication is done.
In Simple port means to whom you want to communicate& Protocol means how to communicate.
ports = ears, mouth,
protocols = English, Spanish, Sign Language
Regards,
Guru
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide