Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / PhantomNet / OEPC-Protected / dual-sgw / sgw2.xml

sgw2.xml

custom sgw config file

Extensible Markup Language (XML) icon sgw2.xml — Extensible Markup Language (XML), 7 KB (8039 bytes)

File contents

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	$Id$
 
 	Copyright (C) 2009 FhG Fokus
 	
  This file is part of the Wharf project.

 \file
  
  Wharf configuration file for a PMIP MAG with console and debug 
  
 -->
<Wharf>
	<Core>
		<Debug log="5" memory="6" memory_status="1"/>
		<Log level="5" memory="6" filepath="/var/log"/>
			<!--  
				The debug level should be set between -3 and 5, with 5 being the most verbose.
				Only the logs with a level <= with the one below will be printed.
				L_ALERT -3
				L_CRIT  -2
				L_ERR   -1
				L_WARN   1
				L_NOTICE 2
				L_INFO   3
				L_DB     4
				L_DBG    5
				L_MEM    6
				
				The memory is the setting for all the memory operations.
				
				The memory_status controls what is printed on process exit and is either 0, 1 or 2:
				 - 0 - don't show any memory status
				 - 1 - show the summarized memory status
				 - 2 - show the fragment maps and the summarized memory status
			 -->		
		<SharedMemory kbytes="4096" />
		<ProcessMemory kbytes="1024" />
		<WorkerPool count="4" queue_size="24" /> 
	</Core>

	<Module binaryFile="modules/console/console.so">	
		<![CDATA[
		<WharfConsole>
			<Prompt text="SGw MAG/BBERF Console>"/>
			<Acceptor type="tcp" port="10000" bind="127.0.0.1" />
			<Acceptor type="tcp" port="10000" bind="192.168.2.30" />
			<Acceptor type="tcp" port="10000" bind="192.168.4.30" />
			<Acceptor type="tcp" port="10000" bind="192.168.254.30" />
		</WharfConsole>
		]]>
	</Module>
	<Module binaryFile="modules/addressing/addressing.so" >
		<![CDATA[
			<WharfAddressingWRR>
				<Default>
					<Address ip="192.168.2.10" weight="1" />
				</Default>
			</WharfAddressingWRR>
		]]>
	</Module>
	<Module binaryFile="modules/mysql/mysql.so" />
	<Module binaryFile="modules/mobileip/mobileip.so">
		<![CDATA[
		<MobileIPPeer>
			<Communicator type="raw_ipv4" default_local_addr="192.168.2.30" />
		</MobileIPPeer>
		]]>
	</Module>

	<Module binaryFile="modules/mag/mag.so">
		<![CDATA[
		<!-- 
		 MAG Parameters
		  Mandatory patameters:
		  - default_apn - Default APN to be used by this MAG
		  - ipcan - IP Connectivity Access Network
			IPCAN_3GPP_GPRS         = 0,
			IPCAN_DOCSIS            = 1,
			IPCAN_xDSL                      = 2,
			IPCAN_WiMAX                     = 3,
			IPCAN_3GPP2                     = 4,
			IPCAN_3GPP_EPS          = 5,
			IPCAN_Non_3GPP_EPS      = 6,
		  - rat - radio access technology
			RAT_WLAN                                = 0,
			RAT_UTRAN                               = 1000,
			RAT_GERAN                               = 1001,
			RAT_GAN                                 = 1002,
			RAT_HSPA_Evolution              = 1003,
			RAT_EUTRAN                              = 1004,
			RAT_CDMA2000_1X                 = 2000,
			RAT_HRPD                                = 2001,
			RAT_UMB                                 = 2002,
			RAT_EHRPD                               = 2003,
		  Optional parameters:
		  - ipv4 - IPv4 address to identify this MAG to the LMA
		  - ipv6 - IPv6 address to identify this MAG to the LMA
		  - lifetime - lifetime in seconds for a binding cache entry (not used currently). default is 300
		  - hash_size - hash size for the binding update list. default is 32
		  - lma_list - flag for enabling LMA hand-overs or not. default is 0
		  - first_teid - teid value at which to begin the counting. default is 0
		  - pdn_ops_url - console URL of the pdn operations module containing the id translation functionality
		 -->

		<WharfMAG
			default_apn="default"
			ipcan="5"
			rat="1000" 
			ipv4="192.168.2.30"        
			ipv6=""      
			lifetime="300"
			hash_size="32"
			lma_list="0"
			>

			<!--
				Database where the MAG Binding Cache tables is located.
				This is where the running state will be storred and retrieved from.
			 -->
			<Database 
				hostname="127.0.0.1"
				database="mag_db"
				username="mag"
				password="mag"/>

			<!--
				Default LMA to contact for the PBU/PBA operations.
				In Release 1, this is the only LMA that will be contacted. In future releases,
				based on different APNs, multiple LMAs (PDN-Gw) would be used.
				Currently multiple LMAs are supported. No default LMA is needed, as long as 
				there is at least one entry in the lma_list table in the database. If that 
				table is empty, the MAG will try to use the default LMA supplied with this file.
			-->
			<DefaultLMA
				ipv4="192.168.2.10" 
				ipv6=""/>

		</WharfMAG>
		]]>
	</Module>

	<!--
	<Module binaryFile="modules/qos/routing_qos.so"/>
	-->
	<Module binaryFile="modules/routing/routing.so" >
		<![CDATA[
		<WharfROUTING>
			<Extension
				id="1"
				mod_name="routing_gtpu"
				dst_table="teid"
				ipv4="192.168.2.30"
				ipv6="" />
			<Extension
				id="0"
				src_table="teid"
				mod_name="routing_gtpu"
				ipv4="192.168.4.30"
				ipv6=""/>
		</WharfROUTING>
		]]>
	</Module>

	<Module binaryFile="modules/routing_pcc_sdf/routing_pcc_sdf.so" >
		<![CDATA[
		<Routing_PCC_SDF>
			<Charging 
				octet_threshold="65535" 
				packet_threshold="65535"
				time_threshold="120"/>

		</Routing_PCC_SDF>
		]]>
	</Module>
	
	<Module binaryFile="modules/gtp/gtp.so">
		<![CDATA[
			<GTP>
			  <Acceptor id="S11S4-GTP-C" type="udp" port="2123" bind="192.168.4.30" />
			  <Acceptor id="S5S8-GTP-C" type="udp" port="2123" bind="192.168.2.30" />
			</GTP>
		]]>
	</Module>
	<Module binaryFile="modules/sgw_s11s4/sgw_s11s4.so">
		<![CDATA[
		<!-- sgw_s11s4 configuration xml template
		WARNING:
		The module requires that the gtp module is present and that it has one 
		acceptor configured with the ID "S11S4-GTP-C"  -->
		<SGW_S11S4>
			<FTEID-C
				ipv4="192.168.4.30"
				ipv6=""
				type="11"
				teid="10020" />
			<FTEID-U
				ipv4="192.168.4.30"
				ipv6=""
				type="1"
				teid="10020" />
		</SGW_S11S4>
		]]>
	</Module>
	<Module binaryFile="modules/gtp_s5s8/gtp_s5s8.so">
		<![CDATA[
		  <GTP_S5S8>
			 <FTEID-C 
				ipv4="192.168.2.30"
				ipv6="" />
			 <FTEID-U
				ipv4="192.168.2.30"
				ipv6="" />
		</GTP_S5S8>
		]]>
	</Module>
	<Module binaryFile="modules/routing_encap/routing_encap.so" />
	<Module binaryFile="modules/routing_gtpu/routing_gtpu.so" />
<!--	<Module binaryFile="modules/routing_flowmon/routing_flowmon.so">
                <![CDATA[
		<ROUTING_FLOWMON node_id="SGw" interval='2'> 
			<Database 
				hostname="flowmon.epc.mnc001.mcc001.3gppnetwork.org" 
				database="flowmon_db"
				username="flowmon"
				password="flowmon"/>

		</ROUTING_FLOWMON>
		]]>
	</Module>-->
	<Module binaryFile="modules/gw_bindings/gw_bindings.so" >
		<![CDATA[
		<!-- 
		 gw bindings parameters
		  - hash_size - hash size for the binding list hash table. default is 16 (optional)
		 -->
		<GW_BINDINGS>
			<!--
				Database where the Binding List is located
				This is where the running state will be stored and retrieved from.
			 -->
			<Database 
				hostname="127.0.0.1"
				database="gw_bindings_db"
				username="gw_bindings"
				password="gw_bindings"/>

		</GW_BINDINGS>
      		]]>	
	</Module>
	<Module binaryFile="modules/cdp/cdp.so">
		<![CDATA[
			<DiameterPeer
				FQDN="bberf-sgw.epc.mnc001.mcc001.3gppnetwork.org"
				Realm="epc.mnc001.mcc001.3gppnetwork.org"
				Vendor_Id="10415"
				Product_Name="CDiameterPeer"
				AcceptUnknownPeers="1"
				DropUnknownOnDisconnect="1"
				Tc="30"
				Workers="4"
				QueueLength="32"
				TransactionTimeout="5"
				SessionsHashSize="128"
			>				
				<Acceptor port="3868" bind="192.168.254.30"/>
				
				<Peer FQDN="pcrf.epc.mnc001.mcc001.3gppnetwork.org" realm="epc.mnc001.mcc001.3gppnetwork.org" port="3868"/>

				<Auth id="16777266" vendor="10415" />
				<Auth id="16777266" />
				
				<Realm name="epc.mnc001.mcc001.3gppnetwork.org">
					<Route FQDN="pcrf.epc.mnc001.mcc001.3gppnetwork.org" metric="10"/>
				</Realm>
				<DefaultRoute FQDN="pcrf.epc.mnc001.mcc001.3gppnetwork.org" metric="10"/>	
		
			</DiameterPeer>
		]]>		
	</Module>
	<Module binaryFile="modules/cdp_avp/cdp_avp.so" /> 

	<Module binaryFile="modules/bberf_gxx/bberf_gxx.so"/>
<!--	<Module binaryFile="modules/bberf/bberf.so"/>-->

</Wharf>