Re: simple q on IP address and port number
- From: "sairam" <sai438@xxxxxxxxx>
- Date: 23 Mar 2007 03:25:39 -0700
dew wrote:
Can anyone tell me whether the Source port(eg., 8080,etc) ,dest port
are in decimal format.And how many bits does it take up.There can be
65535 ports.so 16 bits am i right?
Also, the tcp,ip,udp,other protocols have a protocol number.So, that
is represented by how many bits?
Thank You
For the First question your answer is right.It takes 2 bytes i.e.,16
bits.
For the Second question,
you said ip,tcp and udp i.e., the IP layer is the base layer for both
TCP and UDP protocols. So in MAC Layer the Protocol lentgh is 2 bytes
i.e,IP or some other one but in IP layer its 1byte specifying TCP or
UDP, and there will be no protocol number mentioned in TCP layer it
distinguishes the protocol depending on some pre-defined port numbers
for a particular port number.
.
- References:
- simple q on IP address and port number
- From: dew
- simple q on IP address and port number
- Prev by Date: Re: How to Distinguish between a reset packet and a normal packet
- Next by Date: Ultra Monkey "Page not displayed"
- Previous by thread: simple q on IP address and port number
- Next by thread: Re: simple q on IP address and port number
- Index(es):
Relevant Pages
|