0
|
1 |
#
|
|
2 |
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
# USE-CASE-20:
|
|
16 |
# (1) Setup a PPP session between the MN and the PDSN, on the 192.168.200.x network.
|
|
17 |
# Disable all accomp, ccp, and compression on the link so NISTNet works as
|
|
18 |
# expected.
|
|
19 |
# (2) Set nistnet to drop 15% of packets
|
|
20 |
# (3) MN will then start UDP session with the server and demonstrate packet loss.
|
|
21 |
# (4) MN will then start TCP session with the server and we get normal echo.
|
|
22 |
# (5) Drop PPP link.
|
|
23 |
# (6) Restart PPP link on the 192.168.220.x network.
|
|
24 |
# (7) Demonstrate that TCP session is lost.
|
|
25 |
#
|
|
26 |
runcmd svcid=6 svchost="penuu" methodid=10
|
|
27 |
|
|
28 |
#######################################################################################
|
|
29 |
#
|
|
30 |
# Create an MT on the PDSN and the MN
|
|
31 |
#
|
|
32 |
#######################################################################################
|
|
33 |
runcmd svcid=5 svchost="penmn" methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR="localhost" CHANNEL_PORT=4000 AIR_OUTADDR="192.169.10.11" AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=2 FILTERCONFIG=1
|
|
34 |
runcmd svcid=5 svchost="penpdsn" methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR="localhost" CHANNEL_PORT=4000 AIR_OUTADDR="10.22.1.6" AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=2 FILTERCONFIG=1
|
|
35 |
runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=0
|
|
36 |
runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=0
|
|
37 |
|
|
38 |
#######################################################################################
|
|
39 |
#
|
|
40 |
# Create a PPP session on the MN and PDSN
|
|
41 |
#
|
|
42 |
#######################################################################################
|
|
43 |
runcmd svcid=7 svchost="penmn" methodid=3 MADDR="localhost" MPORT=4000 CONFIG="nodeflate noaccomp defaultroute noauth 192.168.200.10:192.168.200.20 debug nodetach"
|
|
44 |
runcmd svcid=7 svchost="penpdsn" methodid=3 MADDR="localhost" MPORT=4000 CONFIG="nodeflate noaccomp noauth 192.168.200.20:192.168.200.10 debug nodetach"
|
|
45 |
runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000
|
|
46 |
runcmd svcid=6 svchost="penuu" methodid=2 SRC="192.168.14.10:5000.udp" DST="192.169.10.11:5000.udp" DROPI=40
|
|
47 |
signal
|
|
48 |
|
|
49 |
#######################################################################################
|
|
50 |
#
|
|
51 |
# The PPP session should now be setup. The DUT can run some tests with the perfect
|
|
52 |
# channel and then signal us when it wants us to start degrading the channel.
|
|
53 |
#
|
|
54 |
#######################################################################################
|
|
55 |
#waitforsignal
|
|
56 |
#runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.169.10.11:5000.udp" DROPI=15
|
|
57 |
#runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=10000
|
|
58 |
#runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.169.10.11:5000.udp" DROPI=40
|
|
59 |
#runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=10000
|
|
60 |
#runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.169.10.11:5000.udp" DROPI=80
|
|
61 |
#runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=10000
|
|
62 |
#runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.169.10.11:5000.udp" DROPI=99
|
|
63 |
#runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=10000
|
|
64 |
#runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.169.10.11:5000.udp" DROPI=0
|
|
65 |
|
|
66 |
|
|
67 |
#######################################################################################
|
|
68 |
#
|
|
69 |
# Cleanup the PPP session (MN and PDSN) (hardcode session ID as zero) retrieving all the logs
|
|
70 |
#
|
|
71 |
#######################################################################################
|
|
72 |
waitforsignal
|
|
73 |
runcmd svcid=7 svchost="penpdsn" methodid=4 SID=0
|
|
74 |
runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000
|
|
75 |
runcmd svcid=7 svchost="penpdsn" methodid=6 SID=0
|
|
76 |
runcmd svcid=7 svchost="penmn" methodid=4 SID=0
|
|
77 |
runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000
|
|
78 |
runcmd svcid=7 svchost="penmn" methodid=6 SID=0
|
|
79 |
|
|
80 |
|
|
81 |
#######################################################################################
|
|
82 |
#
|
|
83 |
# Cleanup mobster -- retrieving the logs (MN and PDSN)
|
|
84 |
#
|
|
85 |
#######################################################################################
|
|
86 |
runcmd svcid=5 svchost="penpdsn" methodid=6 DEVICEID=0
|
|
87 |
runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000
|
|
88 |
runcmd svcid=5 svchost="penpdsn" methodid=7 DEVICEID=0
|
|
89 |
runcmd svcid=5 svchost="penmn" methodid=6 DEVICEID=0
|
|
90 |
runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000
|
|
91 |
runcmd svcid=5 svchost="penmn" methodid=7 DEVICEID=0
|
|
92 |
|
|
93 |
|
|
94 |
#######################################################################################
|
|
95 |
#
|
|
96 |
# We should be back to our original state now -- quit
|
|
97 |
#
|
|
98 |
#######################################################################################
|
|
99 |
rendezvous |