SHARE
TWEET

diametercfg.xml

a guest Aug 10th, 2019 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  DiameterPeer Parameters
  5.   - FQDN - FQDN of this peer, as it should appear in the Origin-Host AVP
  6.   - Realm - Realm of this peer, as it should appear in the Origin-Realm AVP
  7.   - Vendor_Id - Default Vendor-Id to appear in the Capabilities Exchange
  8.   - Product_Name - Product Name to appear in the Capabilities Exchange
  9.   - AcceptUnknownPeers - Whether to accept (1) or deny (0) connections from peers with FQDN
  10.     not configured below
  11.   - DropUnknownOnDisconnect - Whether to drop (1) or keep (0) and retry connections (until restart)
  12.     unknown peers in the list of peers after a disconnection.
  13.   - Tc - Value for the RFC3588 Tc timer - default 30 seconds
  14.   - Workers - Number of incoming messages processing workers forked processes.
  15.   - Queue - Length of queue of tasks for the workers:
  16.      - too small and the incoming messages will be blocked too often;
  17.      - too large and the senders of incoming messages will have a longer feedback loop to notice that
  18.      this Diameter peer is overloaded in processing incoming requests;
  19.      - a good choice is to have it about 2 times the number of workers. This will mean that each worker
  20.      will have about 2 tasks in the queue to process before new incoming messages will start to block.
  21.   - ConnectTimeout - time in seconds to wait for an outbound TCP connection to be established.
  22.   - TransactionTimeout - time in seconds after which the transaction timeout callback will be fired,
  23.     when using transactional processing.
  24.   - SessionsHashSize - size of the hash-table to use for the Diameter sessions. When searching for a
  25.     session, the time required for this operation will be that of sequential searching in a list of
  26.     NumberOfActiveSessions/SessionsHashSize. So higher the better, yet each hashslot will consume an
  27.     extra 2xsizeof(void*) bytes (typically 8 or 16 bytes extra).
  28.   - DefaultAuthSessionTimeout - default value to use when there is no Authorization Session Timeout
  29.   AVP present.
  30.   - MaxAuthSessionTimeout - maximum Authorization Session Timeout as a cut-out measure meant to
  31.   enforce session refreshes.
  32.  
  33.  -->
  34. <DiameterPeer
  35.         FQDN="dra.localdomain"
  36.         Realm="localdomain"
  37.         Vendor_Id="10415"
  38.         Product_Name="CDiameterPeer"
  39.         AcceptUnknownPeers="0"
  40.         DropUnknownOnDisconnect="1"
  41.         Tc="30"
  42.         Workers="4"
  43.         QueueLength="32"
  44.         ConnectTimeout="5"
  45.         TransactionTimeout="5"
  46.         SessionsHashSize="128"
  47.         DefaultAuthSessionTimeout="60"
  48.         MaxAuthSessionTimeout="300"
  49. >
  50.  
  51.         <!--
  52.                 Definition of peers to connect to and accept connections from. For each peer found in here
  53.                 a dedicated receiver process will be forked. All other unknown peers will share a single
  54.                 receiver. NB: You must have a peer definition for each peer listed in the realm routing section
  55.         -->
  56. <!--        <Peer FQDN="pcrf1.ims.smilecoms.com" Realm="ims.smilecoms.com" port="3868"/>
  57.         <Peer FQDN="pcrf2.ims.smilecoms.com" Realm="ims.smilecoms.com" port="3868"/>
  58.         <Peer FQDN="pcrf3.ims.smilecoms.com" Realm="ims.smilecoms.com" port="3868"/>
  59.         <Peer FQDN="pcrf4.ims.smilecoms.com" Realm="ims.smilecoms.com" port="3868"/>
  60.         <Peer FQDN="pcrf5.ims.smilecoms.com" Realm="ims.smilecoms.com" port="3868"/>
  61.         <Peer FQDN="pcrf6.ims.smilecoms.com" Realm="ims.smilecoms.com" port="3868"/>
  62. -->
  63.         <Peer FQDN="hss.localdomain" Realm="localdomain" port="3868"/>
  64.         <Peer FQDN="mme.localdomain" Realm="localdomain" port="3868"/>
  65.         <Peer FQDN="ims-hss.localdomain" Realm="localdomain" port="3868"/>
  66.         <!--
  67.                 Definition of incoming connection acceptors. If no bind is specified, the acceptor will bind
  68.                 on all available interfaces.
  69.         -->
  70.         <Acceptor port="3868" bind="10.0.1.99" />
  71.  
  72.         <!--
  73.                 Definition of Auth (authorization) and Acct (accounting) supported applications. This
  74.                 information is sent as part of the Capabilities Exchange procedures on connecting to
  75.                 peers. If no common application is found, the peers will disconnect. Messages will only
  76.                 be sent to a peer if that peer actually has declared support for the application id of
  77.                 the message.
  78.         -->
  79.         <Acct id="16777216" vendor="10415" />
  80.         <Acct id="16777216" vendor="0" />
  81.         <Auth id="16777251" vendor="0" />       <!-- S6a Interface -->
  82.         <Auth id="4294967295" vendor="0" />
  83.         <!--
  84.                 Supported Vendor IDs - list of values which will be sent in the CER/CEA in the
  85.                 Supported-Vendor-ID AVPs
  86.         -->
  87.         <SupportedVendor vendor="10415" />
  88.         <SupportedVendor vendor="5535"  />
  89.         <SupportedVendor vendor="13019" />
  90.         <!--
  91.                 Realm routing definition.
  92.                 Each Realm can have a different table of peers to route towards. In case the Destination
  93.                 Realm AVP contains a Realm not defined here, the DefaultRoute entries will be used.
  94.  
  95.                 Note: In case a message already contains a Destination-Host AVP, Realm Routing will not be
  96.                 applied.
  97.                 Note: Routing will only happen towards connected and application id supporting peers.
  98.  
  99.                 The metric is used to order the list of preferred peers, while looking for a connected and
  100.                 application id supporting peer. In the end, of course, just one peer will be selected.
  101.         -->
  102.         <Realm name="localdomain">
  103.                 <Route FQDN="hss.localdomain" metric="3"/>
  104.         </Realm>
  105.  
  106.  
  107.         <DefaultRoute FQDN="hss.localdomain" metric="15"/>
  108.  
  109.  
  110. </DiameterPeer>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top