Re: [Pce] PCE port number

Vishwas Manral <vishwas.ietf@gmail.com> Fri, 11 September 2009 17:01 UTC

Return-Path: <vishwas.ietf@gmail.com>
X-Original-To: pce@core3.amsl.com
Delivered-To: pce@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 17C393A689B for <pce@core3.amsl.com>; Fri, 11 Sep 2009 10:01:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.476
X-Spam-Level:
X-Spam-Status: No, score=-2.476 tagged_above=-999 required=5 tests=[AWL=0.123, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N7gG5HWlseNb for <pce@core3.amsl.com>; Fri, 11 Sep 2009 10:01:04 -0700 (PDT)
Received: from mail-yx0-f200.google.com (mail-yx0-f200.google.com [209.85.210.200]) by core3.amsl.com (Postfix) with ESMTP id EBF2A3A6932 for <pce@ietf.org>; Fri, 11 Sep 2009 10:01:03 -0700 (PDT)
Received: by yxe38 with SMTP id 38so1595042yxe.6 for <pce@ietf.org>; Fri, 11 Sep 2009 10:01:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RqEOgY7qaiZrde9uVh2htTwxexSQDPzKh48c+DbN60k=; b=rIgWq4YHURbs0UILBxAm0QwpgtV4nVQbUIeZ9Di0P+XWd8KKBVlNPL3Zz2X7xAFbNI T4FRK4oDQDBnKeuqXw88tePrmKbfOeZitinjYrk8iS4Lgmd23D06ixnqf/Yfa+yjMH4Y 3Ol8XrNLzo2Zua1Npk1K+9L6TuhABjmmbhKNs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vmD+w/cqXFEXbPbm5ULmBheS7K0AVBIV3wLRG0OOsVGT4BQ/C/ERybmgSBTwXOfC3d +nZkmTCWDOpwy6jmkXdy4bc956Ok6EKpqq8xrbSwB5VcTpxH/07obSlpQ77Z6l7+XYBc 5p2JPJ8tMTlIEi68RJFa6/DtTGv8XEIg4uVEM=
MIME-Version: 1.0
Received: by 10.150.55.4 with SMTP id d4mr5229092yba.318.1252688498148; Fri, 11 Sep 2009 10:01:38 -0700 (PDT)
In-Reply-To: <2AA6B590D7B04C28826192EFBCB5FFAD@your029b8cecfe>
References: <77ead0ec0909091140s2e5a41dbke3e8abb719b74115@mail.gmail.com> <D109C8C97C15294495117745780657AE0BEED20A@ftrdmel1> <2AA6B590D7B04C28826192EFBCB5FFAD@your029b8cecfe>
Date: Fri, 11 Sep 2009 10:01:38 -0700
Message-ID: <77ead0ec0909111001w73c7d3b4w71d3c2cbede85551@mail.gmail.com>
From: Vishwas Manral <vishwas.ietf@gmail.com>
To: Adrian Farrel <adrian@olddog.co.uk>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Cc: pce@ietf.org, jpv@cisco.com
Subject: Re: [Pce] PCE port number
X-BeenThere: pce@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Path Computation Element <pce.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/pce>, <mailto:pce-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pce>
List-Post: <mailto:pce@ietf.org>
List-Help: <mailto:pce-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pce>, <mailto:pce-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Sep 2009 17:01:05 -0000

Hi Adrian,

It would have been ok if it was a connectionless transport like UDP.

However I notice a problem when I want multiple sockets to use the
same port number in particular cases. I figured that I cannot have a
server socket (accepting connections) as well as a client socket
trying to connect having the same port number, though I can allow same
port to be shared across multiple sockets in some cases by using the
socket option SO_REUSEPORT.

Thanks,
Vishwas

On Fri, Sep 11, 2009 at 9:33 AM, Adrian Farrel <adrian@olddog.co.uk> wrote:
> Hi,
>
> For my part (I only worked as an author quite late in the process, but I was
> helping to get this through the IESG review that raised issued about TCP
> ports) I think Julien has not captured the point.
>
> The RFC is not silent about source ports because it does intend to limit the
> scope.
>
> As Julien says, it does matter which port is listened on, and this is
> deliberately a well-known port number so that it is not necessary to
> configure (or advertise) the port that must be called.
>
> But in Section 4.2.1 you will find...
>
>  Only one PCEP session can exist between a pair of PCEP peers at any
>  one time.  Only one TCP connection on the PCEP port can exist between
>  a pair of PCEP peers at any one time.
>
> One way to help ensure this is to reduce the number of available ports to
> use as the source port.
>
> Does restricting the source port cause any implementation or deployment
> problems?
>
> Thanks,
> Adrian
>
> ----- Original Message ----- From: <julien.meuric@orange-ftgroup.com>
> To: <vishwas.ietf@gmail.com>; <jpv@cisco.com>;
> <jeanlouis.leroux@orange-ftgroup.com>
> Cc: <pce@ietf.org>
> Sent: Thursday, September 10, 2009 9:57 AM
> Subject: Re: [Pce] PCE port number
>
>
> Hi Vishwas.
>
> Interesting comment. We must admit the wording is a bit ambiguous.
>
> RFC 5440 says: "The system listens to the PCEP-registered TCP port" and
> "Upon receiving a TCP connection on the PCEP-registered TCP port"; I do not
> see any behavior description for the source TCP port (good thing!).
> My guess is that there is no intend to put constraints on the TCP initiator
> port. I would interpret the sentence you mention as "using the registered
> TCP port on the PCE side, i.e. for the source TCP port for PCE to PCC
> messages and for destination TCP port for PCC to PCE messages"... A little
> cumbersome, I agree.
>
> Authors of RFC 5440, would there be an actual intend to specify otherwise?
> Implementers, any other interpretation?
>
> Thanks,
>
> Julien
>
>
> -----Original Message-----
> From: pce-bounces@ietf.org [mailto:pce-bounces@ietf.org] On Behalf Of
> Vishwas Manral
>
> Hi,
>
> I looked at the following in the spec:
>
> “Transport Protocol
>
>  PCEP operates over TCP using a registered TCP port (4189).  This
>  allows the requirements of reliable messaging and flow control to be
>  met without further protocol work.  All PCEP messages MUST be sent
>  using the registered TCP port for the source and destination TCP
>  port.”
>
> This has been worrying me a bit. Unlike other protocols like BGP or LDP
>
> In BGP it states clearly:
>
>  A BGP implementation MUST connect to and listen on TCP port 179 for
>  incoming connections in addition to trying to connect to peers.
>
> and
>
>  BGP's destination port SHOULD be port 179, as defined by IANA.
>
> Why do we have this restriction on source port? It is becoming a
> challenging task
> in merchant OS.
>
> Thanks,
> Vishwas
> Vishwas
> _______________________________________________
> Pce mailing list
> Pce@ietf.org
> https://www.ietf.org/mailman/listinfo/pce
> _______________________________________________
> Pce mailing list
> Pce@ietf.org
> https://www.ietf.org/mailman/listinfo/pce
>
>