Re: [Dime] Questions regarding RFC 6733

jouni korhonen <jouni.nospam@gmail.com> Wed, 08 March 2017 22:00 UTC

Return-Path: <jouni.nospam@gmail.com>
X-Original-To: dime@ietfa.amsl.com
Delivered-To: dime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E0EE41293F5 for <dime@ietfa.amsl.com>; Wed, 8 Mar 2017 14:00:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RZVM0F_sLlWZ for <dime@ietfa.amsl.com>; Wed, 8 Mar 2017 14:00:07 -0800 (PST)
Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10B001289B0 for <dime@ietf.org>; Wed, 8 Mar 2017 14:00:07 -0800 (PST)
Received: by mail-wm0-x22b.google.com with SMTP id n11so42117050wma.0 for <dime@ietf.org>; Wed, 08 Mar 2017 14:00:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=imNecxCLWt69Zcy2A62EmtcBWTnkePSFJ3vYqJQ++mk=; b=aR6Qv/Zf0sNEYjVLwUTRRpir/beck7sf0pGbybzbRTlppWPcDR0jbEaIfo/JG/RwNW 3yDeyCHOnl4MQwBTz+3Ncql3uxhH/Tn2nTnLr799G1WqZrmVYQkYJ/rwe8iTNoGst2Zf 8TGHB32ivOS8JSquXD2ijukgPiG/fE1792gSUeygxmTjbQp6/6ylDAm6z9N/bux7THfH CS7iXz2SkoZfLc9IwzSHnDmstpxzJufUUYIlHMlNj959fRkJsY5i9f5++sQNaRWcKHuC I8q/NvsRVj8m0KXWmG1FRinXM0EDnq0A10G7rjT3L8nuD3ebodC4gU+61d3sikQtB/lw vpmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=imNecxCLWt69Zcy2A62EmtcBWTnkePSFJ3vYqJQ++mk=; b=a5BaDQeSJGV1ZvoWw7L1pQiP1RnzY9oDaCgEzHPi77qMsgDM/ShsrxOif3YXLxK6pC f9jgMC4AwydTAYygV9VvfJ8d/x8NRrjI6gxEYeZn4WhfEeFVzZrVCvMoWOCMyuu9qKFI 9gAMyWhiiiYmpw0YpMri0XHR4ibR9wtbm2tdjL2f/7IcNQ/8DW5cT32u22E99SPfL92M 2SmYzPC8wRaGtq6wL6ABQi7I+fpvyVY+PbF4DJEyzDITOcWbwk2f9ggNOiLfkydN+CSK 58Wgi6fBxG2JdHeZvn5RD3yF0MXfzWyNtM6dk6uUMcvtbImjsBenUVseKYr5wXf9S+1u Vadg==
X-Gm-Message-State: AMke39mNx9mAfGy3SE2h+8jakqnMvrLaUyskq1o7ISKqwRoFxtCI44GPOSIygQENof7hOqiRu21vjN6YUZYrew==
X-Received: by 10.28.187.68 with SMTP id l65mr7506100wmf.24.1489010405563; Wed, 08 Mar 2017 14:00:05 -0800 (PST)
MIME-Version: 1.0
Received: by 10.80.166.135 with HTTP; Wed, 8 Mar 2017 14:00:05 -0800 (PST)
In-Reply-To: <CAFUT_s1HbXSrGJQWMGoHfrV==zRzUTL-0Z9go+C6SUMOKDxxkw@mail.gmail.com>
References: <CAFUT_s1krzosCpmYB=nYd7DiU+MsQOyofJEb8-m-qcgA6-w35w@mail.gmail.com> <70007418-7349-4560-828C-3FDD8894C239@gmail.com> <CAFUT_s1HbXSrGJQWMGoHfrV==zRzUTL-0Z9go+C6SUMOKDxxkw@mail.gmail.com>
From: jouni korhonen <jouni.nospam@gmail.com>
Date: Wed, 08 Mar 2017 14:00:05 -0800
Message-ID: <CAC8SSWvDexbb_bSWKMiow1MJouZd3-BWRDoQmYrDw+XZjqpL8A@mail.gmail.com>
To: Ajinkya Joshi <ajoshi@definitionnetworks.com>
Content-Type: multipart/alternative; boundary="001a114b09dc4a643c054a3f4037"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dime/ejt36QVrSI6NKNsiMcPVD9xBRw8>
Cc: "dime@ietf.org" <dime@ietf.org>
Subject: Re: [Dime] Questions regarding RFC 6733
X-BeenThere: dime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Diameter Maintanence and Extentions Working Group <dime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dime>, <mailto:dime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dime/>
List-Post: <mailto:dime@ietf.org>
List-Help: <mailto:dime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dime>, <mailto:dime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 22:00:09 -0000

Hi,

I specifically said that you would need to instantiate new peer state
machines.. otherwise it does not really work.

- Jouni

On Wed, Mar 8, 2017 at 1:36 AM, Ajinkya Joshi <ajoshi@definitionnetworks.com
> wrote:

>
>
> On Tue, Mar 7, 2017 at 10:04 PM, jouni.nospam <jouni.nospam@gmail.com>
> wrote:
>
>> hi,
>>
>> > On Mar 7, 2017, at 3:01 AM, Ajinkya Joshi <
>> ajoshi@definitionnetworks.com> wrote:
>> >
>> > Hello,
>> >
>> > I have following questions regarding diameter RFC 6733, I would really
>> appreciate if someone can help me with these.
>> >
>> > 1. Regarding diameter peer state machine -
>> >
>> >     Section 5.6.1 (Peer State Machine --> Incoming connections)
>> mentions that Origin-host is used for     identifying peer state machine
>> and as per state machine, once it moves into I-Open, new CER is
>>  rejected. This concludes, that there can't be more than one transport
>> connections with same               diameter host (as specified by
>> Origin-host).
>> >
>> >     Section 2.1 (Transport) mentions that "A given Diameter instance of
>> the peer state machine MUST      NOT use more than one transport connection
>> to communicate with a given peer, unless multiple        instances exist on
>> the peer, in which, case a separate connection per process is allowed."
>> >
>> >      Questions --
>> >       • Does section 2.1 implicitly assumes that multiple diameter
>> instances (within a peer) would correspond to different diameter host ?
>> Otherwise, it could contradict with section 5.6.1
>>
>> it assumes one peer connection per peer state machine. so if you have a
>> way to ‘fork’ a new peer instance with its own peer state machine per
>> incoming connection then having “multiple instances’ is possible even if
>> the diameteridentity is the same.
>>
>
> [ajoshi] If we fork a new peer instance with same diameteridentity, won't
> it create problems as per peer state machine? Because, you would have
> separate transport connection for each of them and each transport
> connection needs capability exchange and as per peer state machine, there
> can be only one capability exchange. I am inferring this based on section
> 5.3 which says "When two Diameter peers establish a transport connection,
> they MUST exchange the Capabilities Exchange messages". Am I missing
> something here? Or is it the case that two peers (identified based on their
> respective diameter host-names) would perform capability exchange only
> once, irrespective of number of transport connections they have?
>
>
>>
>> >       • If multiple transport connections (towards the same peer) are
>> allowed per diameter host, is it expected that peer would do load balancing
>> between them? (There is a connection load balancing section in RFC 3539 -
>> Section 3.4.3)
>>
>> what you do and how you manage ‘multiple instances’ if more or less left
>> for implementation to decide. i always considered it as a node internal
>> compute load balancing mechanism i.e., to distribute the compute to
>> separate cores/blades etc.
>>
>>
>> > 2. Regarding diameter peer failback procedure -
>> >
>> >       Section 5.5.4 mentions "a connection request should be
>> periodically attempted with the failed              peer in order to
>> re-establish the transport connection"
>> >
>> >       Question --
>> >
>> >       • If the failed peer is dynamically discovered via DNS lookup, is
>> it expected that peer would perform DNS query before trying to establish
>> the connection again? Or DNS lookup is driven only by TTL field received in
>> the prior DNS answer ?
>>
>> up to your implementation and dns resolver implementation.
>>
>> - jouni
>>
>>
>> > --
>> > Regards,
>> > Ajinkya Joshi
>> > _______________________________________________
>> > DiME mailing list
>> > DiME@ietf.org
>> > https://www.ietf.org/mailman/listinfo/dime
>>
>>
>
>
> --
> Regards,
> Ajinkya Joshi
>