Re: simple q on IP address and port number
- From: "dew" <ame2005@xxxxxxxxx>
- Date: 24 Mar 2007 06:16:38 -0700
On Mar 24, 12:53 am, ibupro...@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
wrote:
On 23 Mar 2007, in the Usenet newsgroup comp.os.linux.networking, in article
<1174644586.339950.214...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, dew wrote:
Can anyone tell me whether theSourceport(eg., 8080,etc) ,destport
are in decimal format.And how many bits does it take up.There can be
65535 ports.so 16 bits am i right?
It's a 16 bitnumber. How you represent 16 bits is up to you. Most
people speak in decimal, but theprotocolrepresents it as a binary.
See the appropriate specification
0768 User DatagramProtocol. J. Postel. August 1980. (Format: TXT=5896
bytes) (Also STD0006) (Status: STANDARD)
0793 Transmission ControlProtocol. J. Postel. September 1981.
(Format: TXT=172710 bytes) (Updated by RFC3168) (Also STD0007)
(Status: STANDARD)
Remember that any service _MIGHT_ use anyportnumber. There exists anumberof "well-known"portnumbers where you can expect to find a
service, but just because something is usingport$FOO does NOT mean that
it must be service $BAR. Seehttp://www.iana.org/assignments/port-numbers
Also, the tcp,ip,udp,other protocols have aprotocolnumber.So, that
is represented by how many bits?
See RFC0791 section 3.1 - or read your textbook. For a list of those
protocols seehttp://www.iana.org/assignments/protocol-numbers
0791 InternetProtocol. J. Postel. September 1981. (Format: TXT=97779
bytes) (Obsoletes RFC0760) (Updated by RFC1349) (Also STD0005)
(Status: STANDARD)
You can find the RFCs using the search engine you are posting from.
Old guy
ok thanks and
Oh, and please stop posting the same article to multiple groups. Yousorry abt that
are acting like a spammer when you do so.
.
- References:
- simple q on IP address and port number
- From: dew
- Re: simple q on IP address and port number
- From: Moe Trin
- simple q on IP address and port number
- Prev by Date: sendto() and structures
- Next by Date: Re: sendto() and structures
- Previous by thread: Re: simple q on IP address and port number
- Next by thread: Ultra Monkey "Page not displayed"
- Index(es):
Relevant Pages
|