PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > well known and ephimeral port numbers
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

well known and ephimeral port numbers

Réponse
 
LinkBack Outils de la discussion
Vieux 20/05/2006, 05h17   #1
Halid Umar A M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut well known and ephimeral port numbers

Dear All,
I have studied that the server will listen in well known port
numbers and the client will send request to that port and later the
communication will be handles by ephimeral ports by both ends by
forking a child in the server side. But if i sniff packets in
ethereal, why its showing the communication handles by the same well
known port number. If it happens like this, how can it handle
multiple client at the same time. Please clear me this confusion.

halidumar

  Réponse avec citation
Vieux 20/05/2006, 05h33   #2
robertwessel2@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: well known and ephimeral port numbers


Halid Umar A M wrote:
> Dear All,
> I have studied that the server will listen in well known port
> numbers and the client will send request to that port and later the
> communication will be handles by ephimeral ports by both ends by
> forking a child in the server side.



Some servers work like that, certainly not all.


> But if i sniff packets in
> ethereal, why its showing the communication handles by the same well
> known port number. If it happens like this, how can it handle
> multiple client at the same time. Please clear me this confusion.



A TCP session is identified by *four* parameters, source and
destination IP addresses, and source and destination ports (and
obviously source and destination switch depending on which direction a
packet is going). So long as at least one of those four items is
different, two sessions are distinct.

UDP doesn't have sessions in the same sense TCP does, but the way most
UDP servers operate you get basically the same effect.

  Réponse avec citation
Vieux 20/05/2006, 08h22   #3
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: well known and ephimeral port numbers

In article <1148099588.076651.41700@j73g2000cwa.googlegroups. com>,
"robertwessel2@yahoo.com" <robertwessel2@yahoo.com> wrote:

> Halid Umar A M wrote:
> > Dear All,
> > I have studied that the server will listen in well known port
> > numbers and the client will send request to that port and later the
> > communication will be handles by ephimeral ports by both ends by
> > forking a child in the server side.

>
>
> Some servers work like that, certainly not all.
>
>
> > But if i sniff packets in
> > ethereal, why its showing the communication handles by the same well
> > known port number. If it happens like this, how can it handle
> > multiple client at the same time. Please clear me this confusion.

>
>
> A TCP session is identified by *four* parameters, source and
> destination IP addresses, and source and destination ports (and
> obviously source and destination switch depending on which direction a
> packet is going). So long as at least one of those four items is
> different, two sessions are distinct.


To expand on this, in most cases the source port used by the client will
be an ephemeral port, using the server's well known port as the
destination. Then the reply has the server's port as the source and the
client's ephemeral port as the destination.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09163 seconds with 11 queries