testexecmgmt/ucc/Source/Uccs.v2/TestScripts/PrivateScripts/script.0022.ucd
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     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-22: 
       
    16 #		(1) Setup a PPP session between the MN and the PDSN, on the 192.168.200.x network.
       
    17 #		(2) Set nistnet to drop 15% of packets
       
    18 #		(3) MN will then start UDP session with the server and demonstrate packet loss.
       
    19 #		(4) MN will then start TCP session with the server and we get normal echo.
       
    20 #		(5) Drop PPP link.
       
    21 #		(6) Restart PPP link on the 192.168.220.x network.
       
    22 #		(7) Demonstrate that TCP session is lost.
       
    23 #
       
    24 
       
    25 
       
    26 #######################################################################################
       
    27 #
       
    28 # Create an MT on the PDSN and the MN
       
    29 #
       
    30 #######################################################################################
       
    31 runcmd svcid=6 methodid=2 SRC=10.22.1.4:5000.udp DST=192.168.10.11:5000.udp DROPI=0
       
    32 runcmd svcid=4 methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR=localhost CHANNEL_PORT=4000 AIR_OUTADDR=192.168.10.11 AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=1 FILTERCONFIG=1
       
    33 runcmd svcid=5 methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR=localhost CHANNEL_PORT=4000 AIR_OUTADDR=10.22.1.4 AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=1 FILTERCONFIG=1
       
    34 
       
    35 
       
    36 #######################################################################################
       
    37 #
       
    38 # Create a PPP session on the MN and PDSN
       
    39 #
       
    40 #######################################################################################
       
    41 runcmd svcid=11 methodid=3 MADDR=localhost MPORT=4000 CONFIG="nodeflate noaccomp defaultroute noauth 192.168.200.10:192.168.200.20 debug logfile ./ppp.log nodetach"
       
    42 runcmd svcid=8 methodid=3 MADDR=localhost MPORT=4000 CONFIG="nodeflate noaccomp noauth 192.168.200.20:192.168.200.10 debug logfile ./ppp.log nodetach"
       
    43 
       
    44 
       
    45 #######################################################################################
       
    46 #
       
    47 # The PPP session should now be setup. The device can now run it's tests and rendezvous
       
    48 # when it is complete.
       
    49 #
       
    50 #######################################################################################
       
    51 rendezvous
       
    52 rendezvous
       
    53 
       
    54 
       
    55 #######################################################################################
       
    56 #
       
    57 # Cleanup the PPP session (MN and PDSN) (hardcode session ID as zero) retrieving all the logs
       
    58 #
       
    59 #######################################################################################
       
    60 runcmd svcid=11 methodid=4 SID=0
       
    61 runcmd svcid=10 methodid=1 PERIOD=1000
       
    62 runcmd svcid=11 methodid=6 SID=0
       
    63 
       
    64 runcmd svcid=8  methodid=4 SID=0
       
    65 runcmd svcid=10 methodid=1 PERIOD=1000
       
    66 runcmd svcid=8  methodid=6 SID=0
       
    67 
       
    68 
       
    69 #######################################################################################
       
    70 #
       
    71 # Cleanup mobster -- retrieving the logs (MN and PDSN)
       
    72 #
       
    73 #######################################################################################
       
    74 runcmd svcid=4  methodid=6 DEVICEID=0
       
    75 runcmd svcid=10 methodid=1 PERIOD=1000
       
    76 runcmd svcid=4  methodid=7 DEVICEID=0
       
    77 
       
    78 runcmd svcid=5  methodid=6 DEVICEID=0
       
    79 runcmd svcid=10 methodid=1 PERIOD=1000
       
    80 runcmd svcid=5  methodid=7 DEVICEID=0
       
    81 rendezvous
       
    82 rendezvous
       
    83 
       
    84 
       
    85 #######################################################################################
       
    86 #
       
    87 # Create an MT on the PDSN and the MN
       
    88 #
       
    89 #######################################################################################
       
    90 runcmd svcid=4 methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR=localhost CHANNEL_PORT=4000 AIR_OUTADDR=192.168.10.11 AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=1 FILTERCONFIG=1
       
    91 runcmd svcid=5 methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR=localhost CHANNEL_PORT=4000 AIR_OUTADDR=10.22.1.4 AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=1 FILTERCONFIG=1
       
    92 
       
    93 
       
    94 #######################################################################################
       
    95 #
       
    96 # Create a PPP session on the MN and PDSN
       
    97 #
       
    98 #######################################################################################
       
    99 runcmd svcid=11 methodid=3 MADDR=localhost MPORT=4000 CONFIG="nodeflate noaccomp defaultroute noauth 192.168.220.10:192.168.220.20 debug logfile ./ppp.log nodetach"
       
   100 runcmd svcid=8 methodid=3 MADDR=localhost MPORT=4000 CONFIG="nodeflate noaccomp noauth 192.168.220.20:192.168.220.10 debug logfile ./ppp.log nodetach"
       
   101 rendezvous
       
   102 rendezvous
       
   103 
       
   104 
       
   105 #######################################################################################
       
   106 #
       
   107 # Cleanup the PPP session (MN and PDSN) (hardcode session ID as zero) retrieving all the logs
       
   108 #
       
   109 #######################################################################################
       
   110 runcmd svcid=11 methodid=4 SID=0
       
   111 runcmd svcid=10 methodid=1 PERIOD=1000
       
   112 runcmd svcid=11 methodid=6 SID=0
       
   113 
       
   114 runcmd svcid=8  methodid=4 SID=0
       
   115 runcmd svcid=10 methodid=1 PERIOD=1000
       
   116 runcmd svcid=8  methodid=6 SID=0
       
   117 
       
   118 
       
   119 #######################################################################################
       
   120 #
       
   121 # Cleanup mobster -- retrieving the logs (MN and PDSN)
       
   122 #
       
   123 #######################################################################################
       
   124 runcmd svcid=4  methodid=6 DEVICEID=0
       
   125 runcmd svcid=10 methodid=1 PERIOD=1000
       
   126 runcmd svcid=4  methodid=7 DEVICEID=0
       
   127 
       
   128 runcmd svcid=5  methodid=6 DEVICEID=0
       
   129 runcmd svcid=10 methodid=1 PERIOD=1000
       
   130 runcmd svcid=5  methodid=7 DEVICEID=0
       
   131 
       
   132 
       
   133 #######################################################################################
       
   134 #
       
   135 # We should be back to our original state now -- quit
       
   136 #
       
   137 #######################################################################################
       
   138 rendezvous