[Dime] Diameter request routing clarification needed

Iliya Peregoudov <iperegudov@cboss.ru> Wed, 04 June 2014 10:39 UTC

Return-Path: <Ilya.Peregudov@cbossgroup.com>
X-Original-To: dime@ietfa.amsl.com
Delivered-To: dime@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 87A681A02D1 for <dime@ietfa.amsl.com>; Wed, 4 Jun 2014 03:39:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.467
X-Spam-Level: *
X-Spam-Status: No, score=1.467 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, HELO_EQ_RU=0.595, HOST_EQ_RU=0.875, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no
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 7KJQReiMN9xH for <dime@ietfa.amsl.com>; Wed, 4 Jun 2014 03:39:04 -0700 (PDT)
Received: from mx1.cboss.ru (mx1.cboss.ru [195.245.232.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4A0FE1A02BD for <dime@ietf.org>; Wed, 4 Jun 2014 03:39:03 -0700 (PDT)
Received: from z102737.int.cboss.ru (z102737.int.cboss.ru [10.1.200.15]) by mx1.cboss.ru (8.13.8/8.13.8) with ESMTP id s54ActCu007868 for <dime@ietf.org>; Wed, 4 Jun 2014 14:38:55 +0400
Received: from MAILSRV3.int.cboss.ru (unverified) by z102737.int.cboss.ru (Content Technologies SMTPRS 4.3.12) with ESMTP id <Tb373ba4bd0c0a865021008@z102737.int.cboss.ru> for <dime@ietf.org>; Wed, 4 Jun 2014 10:38:54 +0000
Received: from [127.0.0.1] ([10.3.35.4]) by MAILSRV3.int.cboss.ru with Microsoft SMTPSVC(6.0.3790.4675); Wed, 4 Jun 2014 14:38:51 +0400
Message-ID: <538EF73F.3070309@cboss.ru>
Date: Wed, 04 Jun 2014 14:38:55 +0400
From: Iliya Peregoudov <iperegudov@cboss.ru>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11
MIME-Version: 1.0
To: dime@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 04 Jun 2014 10:38:51.0865 (UTC) FILETIME=[2D22AC90:01CF7FE1]
X-Antivirus: Dr.Web (R) for Mail Servers on mx1.cboss.ru host
X-Antivirus-Code: 100000
X-KLMS-Rule-ID: 1
X-KLMS-Message-Action: skipped
X-KLMS-AntiSpam-Status: not scanned, whitelist
X-KLMS-AntiPhishing: not scanned, whitelist
X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, not scanned, whitelist
Archived-At: http://mailarchive.ietf.org/arch/msg/dime/ZRi57e7P7f8cLby5A1TyhIkTvMc
Subject: [Dime] Diameter request routing clarification needed
X-BeenThere: dime@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 04 Jun 2014 10:44:13 -0000

Hello all,

I need clarification about Diameter request routing.
Consider the use-case:

host: pcef, realm: example.com
   |      A
   |CCR   |RAR
   V      |
host: relay, realm: example.com
   |      A
   |CCR   |RAR
   V      |
host: ocs, realm: example.com

RFC6733 says that request routing should be controlled by routing table.

Host `ocs' has to consume CCR requests to realm example.com of 
application 4, so it should have route

   (example.com, 4) -> (LOCAL)

Host `ocs' also has to send locally generated RAR requests to realm 
example.com of application 4, so it should have route

   (example.com, 4) -> (RELAY, relay)

How `ocs' host should operate to select correct route?

Does it mean that Diameter host should maintain two routing tables, one 
for handling of incoming requests, and one another for handling locally 
generated requests?

Thank you in advance.

Iliya Peregoudov
Software engineer, CBOSS Group