海鸥直径客户端和服务器如何工作同步?

问题描述:

我在海鸥直径的工作,这是我的海鸥服务器和海鸥客户海鸥直径客户端和服务器如何工作同步?

客户端服务器

---- CER ----> 
    <--- CEA ---- 
    ---- AAR ----> 
    <--- AAA ---- 
    ---- STR ---> 
    <--- STA ---- 

但结果场景: enter image description here 所以,它不是按照我的情况下,请帮我如何配置一些东西到服务器和客户端可以同步?

这是客户端应用场景

<?xml version="1.0"?><scenario> 

<init> 

<send channel="channel-1"> 
<command name="CER"> 
</command> 
</send> 

<receive channel="channel-1"> 
<command name="CEA"> </command> 
</receive> 
</init> 

<traffic> 

<send channel="channel-1"> 
<command name="AAR"> 
<avp name="Session-Id" value="trandeptrai"> </avp> 
</command> 
</send> 

<receive channel="channel-1"> 
<command name="AAA"> </command> 
</receive> 

<send channel="channel-1"> 
<command name="STR"> 
<avp name="Session-Id" value="trandeptrai"> </avp> 
</command> 
</send> 

<receive channel="channel-1"> 
<command name="STA"> </command> 
<action> 
<store name="Session-Id" entity="Session-Id"> </store> 
</action> 
</receive> 

</traffic> 
</scenario> 

客户端配置:

<?xml version="1.0"?> 
<configuration name="jpT DIAMETER client"> 
<define entity="transport" name="trans-ip-v4" file="libtrans_ip.so" create_function="create_cipio_instance" delete_function="delete_cipio_instance" init-args="type=tcp"> </define> 
<define entity="channel" name="channel-1" protocol="diameter-v1" transport="trans-ip-v4" open-args="mode=client;dest=134.138.249.41:12340"> </define> 
<define entity="traffic-param" name="call-timeout-ms" value="10000"> </define> 
<define entity="traffic-param" name="files-no-timestamp" value="true"> </define> 
<define entity="traffic-param" name="call-rate" value="1"> </define> 

</configuration> 

服务器方案:

<?xml version="1.0"?><scenario> 
<init> 
<receive channel="channel-1"> 
<action> 
</action> 
<command name="CER"> 
</command> 
</receive> 

<send channel="channel-1"> 
<command name="CEA"> </command> 
<action> 
</action> 
</send> 
</init> 
<traffic> 

<receive channel="channel-1"> 
<command name="AAR"> </command> 
<action> 

<store name="Session-Id" entity="Session-Id"> </store> 
</action> 
</receive> 

<send channel="channel-1"> 
<action> 
<restore name="Session-Id" entity="Session-Id"> </restore> 
</action> 
<command name="AAA"> 
<avp name="Session-Id" value="1"> </avp> 
</command> 
</send> 

<receive channel="channel-1"> 
<command name="STR"> </command> 
<action> 
<store name="Session-Id2" entity="Session-Id"> </store> 
</action> 
</receive> 

<send channel="channel-1"> 
<action> 
<restore name="Session-Id2" entity="Session-Id"> </restore> 
</action> 
<command name="STA"> 
<avp name="Session-Id" value="1"> </avp> 
</command> 
</send> 

<!-- <wait-ms value="100"> </wait-ms> --> 

</traffic> 

</scenario> 

服务器配置:

<?xml version="1.0"?> 
<configuration name="jpT DIAMETER client"> 
<define entity="transport" name="trans-ip-v4" file="libtrans_ip.so" create_function="create_cipio_instance" delete_function="delete_cipio_instance" init-args="type=tcp"> </define> 
<define entity="channel" name="channel-1" protocol="diameter-v1" transport="trans-ip-v4" open-args="mode=client;dest=134.138.249.41:12340"> </define> 
<define entity="traffic-param" name="call-timeout-ms" value="10000"> </define> 
<define entity="traffic-param" name="files-no-timestamp" value="true"> </define> 
<define entity="traffic-param" name="call-rate" value="1"> </define> 

</configuration> 
+0

你可以添加你的文章你的方案和配置?我创建了一个类似于你的场景,我没有看到AAR和AAS。 – delephin

+0

您好delepin,我已更新帖子 –

您可以尝试将同时呼叫设置为1,这样您的客户端将等待直到当前通话结束以启动另一个通话。 此行添加到您的服务器和客户机的配置:

<define entity="traffic-param" name="max-simultaneous-calls" value="1"></define> 

此属性的默认值是100,那么肯定这就是为什么你的截图显示了不匹配的请求和回答。

+0

感谢delephin,但我认为它似乎不符合我的问题,我们有3配对的命令 –

+0

你是对的。我应该在回答之前重新阅读这个问题。我稍后再回到你身边。 – delephin

+0

非常感谢您的努力,Delephin,流程有序运行,但您知道流程如何能达到STR STA? –