Bug #3410
7.2.1.4基于B01插件的多个终端保障时Qos功能测试 步骤3设置后。步骤四查询没有设置信息
0%
Description
测试步骤:
1.使用telnet登录网关;#下执行saf console命令进入中间件控制台;
2.执行命令cd /opt/preinstall/b01odmv3/files进入b01odmv3的目录;
3.插件侧执行命令修改全量保障模式配置(预设冷却期5分钟):dbus-send --system --print-reply --dest=com.ctc.appframework1 /com/ctc/appframework1 com.ctc.appframework1.AppAgent.PostMsg string:"b01odmv3" string:'{"subtype":"postmsg","action":"write","conf":{"subtype":"appqos","action":"write","ac_period":120,"cf_period":180}}'
4.查看配置是否修改成功:dbus-send --system --print-reply --dest=com.ctc.appframework1 /com/ctc/appframework1 com.ctc.appframework1.AppAgent.PostMsg string:"b01odmv3" string:'{"subtype":"postmsg","action":"write","conf":{"subtype":"appqos","action":"read"}}'
5.插件侧执行命令,添加策略(保障应用为哔哩哔哩):dbus-send --system --print-reply --dest=com.ctc.appframework1 /com/ctc/appframework1 com.ctc.appframework1.AppAgent.PostMsg string:"b01odmv3" string:'{"action":"write","conf":{"action":"add","policies":[{"index":"113","dscp_value":23,"appid":[11381]}],"subtype":"appqos"},"subtype":"postmsg"}'
查看是否添加成功:dbus-send --system --print-reply --dest=com.ctc.appframework1 /com/ctc/appframework1 com.ctc.appframework1.AppAgent.PostMsg string:"b01odmv3" string:'{"subtype":"postmsg","action":"write","conf":{"subtype":"appqos","action":"stat"}}'
6.使用PC1和PC2访问非保障应用1分钟,同时在PC1和PC2上使用wirshark抓包;
7.使用PC1多次执行命令:curl www.bilibili.com,等待20秒,查看wirshark抓包结果;
8.使用PC2多次执行命令:curl www.bilibili.com,等待20秒,查看wirshark抓包结果;
9.等待5分钟;
10.使用PC1多次执行命令:curl www.weibo.com,等待20秒,查看wirshark抓包结果;
11.使用PC2多次执行命令:curl www.bilibili.com,等待20秒,查看wirshark抓包结果;
清除策略:dbus-send --system --print-reply --dest=com.ctc.appframework1 /com/ctc/appframework1 com.ctc.appframework1.AppAgent.PostMsg string:"b01odmv3" string:'{"subtype":"postmsg","action":"write","conf":{"subtype":"appqos","action":"flush"}}'
通过标准:
1.步骤4展示如下:模块配置修改成功
2.步骤5展示如下:Status返回0 ,策略添加成功
3.步骤6展示如下:wireshark显示下行报文的dscp值不是23:
PC1:
PC2:
4.步骤7中,PC1的wireshark显示下行报文的dscp值为23:
5.步骤8中,PC2的wireshark显示下行报文的dscp值为23:
6.步骤10中,PC1的wireshark显示下行报文的dscp值不为23:
7.步骤11中,PC2的wireshark显示下行报文的dscp值为23:
8.步骤12中,命令执行成功,Status返回0:
实际结果
步骤3设置后。步骤四查询没有设置信息