0 Replies Latest reply: Aug 4, 2011 2:58 AM by neighbour RSS

    Diameter proxy agent - several local peers with the same name on one host

    neighbour
      We are going to implement Diameter Proxy Agent. The solution will consist of one connection balancer and several proxy agent processes. 
      The connection balancer accepts incoming connections on some port and forwards them on tcp level to less loaded proxy agent process.

      1)
      is it a valid configuration for proxy processes to have several local peers with the same name on one host?
      Is the configuration below the right one?

      1 diameter client per host x 2 hosts = 2 clients in total
      1 connection balancer and 2 proxy per host x 1 host = 2 proxies in total
      1 diameter server per host x 2 hosts = 2 servers in total
      (There is also second proxy host with 2 proxy processes on it and virtual ip, but I omitted it for simplicity)

      Client 1
        Peers
          Local
            IP=10.50.5.1, port=3858, name=pc1
          Remote
            IP=10.50.6.1, port=3858, name=pa1
        Realms
          name=rc, appId=1, peers=pc1
          name=ra, appId=1, peers=pa1

      Client 2
        Peers
          Local
            IP=10.50.5.2, port=3858, name=pc2
          Remote
            IP=10.50.6.1, port=3858, name=pa1
        Realms
          name=rc, appId=1, peers=pc2
          name=ra, appId=1, peers=pa1

      Connecton balancer
        IP=10.50.6.1, port=3858, balances connections to ports 7100, 7200

      Proxy 1
        Accept connections from unknown peers=true
        Peers
          Local
            IP=10.50.6.1, port=7100, name=pa1
          Remote
            IP=10.50.7.1, port=3858, name=ps1
            IP=10.50.7.2, port=3858, name=ps2
        Realms
          name=ra, appId=?, peers=pa1
          name=rs, appId=?, peers=ps1,ps2

      Proxy 2
        Accept connections from unknown peers=true
        Peers
          Local
            IP=10.50.6.1, port=7200, name=pa1
          Remote
            IP=10.50.7.1, port=3858, name=ps1
            IP=10.50.7.2, port=3858, name=ps2
        Realms
          name=ra, appId=?, peers=pa2
          name=rs, appId=?, peers=ps1,ps2

      Server 1
        Accept connections from unknown peers=true
        Peers
          Local
            IP=10.50.7.1, port=3858, name=ps1
        Realms
          name=rs, appId=1, peers=ps1

      Server 2
        Accept connections from unknown peers=true
        Peers
          Local
            IP=10.50.7.2, port=3858, name=ps2
        Realms
          name=rs, appId=1, peers=ps2

      2)
      When Diameter Server sends RAR (Re-Auth-Request) to Diameter Client through Proxy, what shall be the Destination-Realm/Destination-Host in the message, "rc/pc1" or "ra/pa1"?

      3)
      When Diameter Client sends a request to Diameter Proxy, shall Diameter Proxy change Origin-Realm/Origin-Host from “rc/pc1” to “ra/pa1” ?

      Edited by: neighbour on Aug 4, 2011 11:57 AM