Jump to content

Question asked: How does the session ID differ from the port number?

How I answeredThe session ID is used to keep data streams separate while port numbers are used to identify protocols and logical host addresses.

 

My question: How do you all think about my answer and what might you add?

Link to comment
https://linustechtips.com/topic/1023576-osi-model-question/
Share on other sites

Link to post
Share on other sites

Port numbers don't always identify protocols. There are protocols and services that tend to use the same port number, such as 22 for SSH, but an SSH server can listen on any port number. In fact, it's a recommended security practice to have common services not listen to their commonly used port if you're exposing it the outside world.

Link to comment
https://linustechtips.com/topic/1023576-osi-model-question/#findComment-12211749
Share on other sites

Link to post
Share on other sites

22 minutes ago, Mira Yurizaki said:

Port numbers don't always identify protocols. There are protocols and services that tend to use the same port number, such as 22 for SSH, but an SSH server can listen on any port number. In fact, it's a recommended security practice to have common services not listen to their commonly used port if you're exposing it the outside world.

I never thought of that. That is a smart idea though. Thank for the input.

Link to comment
https://linustechtips.com/topic/1023576-osi-model-question/#findComment-12211794
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×