Newer
Older
alt {
[] geoNetworkingPort.receive(
f_receiveGeoNetMessageWithPayload(
mw_geoNwInd(
mw_geoNwPdu(
mw_geoNwBroadcastPacket(
mw_longPosVectorPosition_withDelta(v_longPosVectorIut), // SOPV
? // sequence number
)
)
),
?
)
) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Fields of the received GeoBroadcast message correctly set ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": FAIL: GeoBroadcast message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
}
}
// Postamble
f_poNeighbour();
f_cf01Down();
} // end TC_GEONW_FDV_GBC_BV_01
} // end geoFdvGeoBroadcast
// 6.2.1.6
group geoFdvGeoAnycast {
/**
* @desc GeoAnycast header validity
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received Beacon information from the ItsNodeB
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoAnycast packet
* }
* then {
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '3' (GEOANYCAST)
* containing GeoAnycast Extended Header
* containing SOPV field
* indicating position of IUT
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/FDV/GAC/BV/01
* @reference EN 302 636-4-1 [1], clauses 8.7.2, 8.7.4, 8.8.5.2 and 9.3.12
*/
testcase TC_GEONW_FDV_GAC_BV_01() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorIut;
var octetstring v_payload := char2oct("PAYLOAD");
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_longPosVectorIut := f_getPosition(c_compIut);
f_prNeighbour();
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
if ( not f_utTriggerEvent(m_generateGeoAnycastMessageWithPayload(f_getArea(c_area1), v_payload)) ) {
log("*** " & testcasename() & ": INCONC: Trigger failed ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
tc_ac.start;
alt {
[] geoNetworkingPort.receive(
f_receiveGeoNetMessageWithPayload(
mw_geoNwInd(
mw_geoNwPdu(
mw_geoNwAnycastPacket(
mw_longPosVectorPosition_withDelta(v_longPosVectorIut), // SOPV
? // sequence number
)
)
),
?
)
) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Fields of the received GeoAnycast message correctly set ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: GeoAnycast message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
}
}
// Postamble
f_poNeighbour();
f_cf01Down();
} // end TC_GEONW_FDV_GAC_BV_01
} // end geoFdvGeoAnycast
// 6.2.1.7
group geoFdvSingleHopBroadcast {
/**
* @desc SHB header validity
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received Beacon information from the ItsNodeB
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a SHB packet
* }
* then {
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '5' (TSB)
* containing HST field
* set to '0' (SINGLE_HOP)
* containing MHL field
* set to '1'
* containing Extended Header
* containing SOPV
* indicating LPV of the IUT
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/FDV/SHB/BV/01
* @reference EN 302 636-4-1 [1], clauses 8.7.2, 8.7.4, 9.3.4, 8.8.4.2 and 9.3.10
*/
testcase TC_GEONW_FDV_SHB_BV_01() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorIut;
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_longPosVectorIut := f_getPosition(c_compIut);
f_prNeighbour();
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
if ( not f_utTriggerEvent(m_generateShbMessage) ) {
log("*** " & testcasename() & ": INCONC: Trigger failed ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
tc_ac.start;
alt {
[] geoNetworkingPort.receive(
mw_geoNwInd(
mw_geoNwPdu(
mw_geoNwShbPacket(
mw_longPosVectorPosition_withDelta(v_longPosVectorIut), // SOPV
1 //MHL
)
)
)
) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Fields of the received SHB message correctly set ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: SHB message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
}
}
// Postamble
f_poNeighbour();
f_cf01Down();
} // end TC_GEONW_FDV_SHB_BV_01
} // end geoFdvSingleHopBroadcast
// 6.2.1.8
group geoFdvTopologicallyScopedBroadcast {
/**
* @desc TSB header validity
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received Beacon information from the ItsNodeB
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a TSB packet
* }
* then {
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '5' (TSB)
* containing HST field
* set to '1' (MULTI_HOP)
* containing TSB Extended Header
* containing SOPV field
* indicating position of the IUT
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/FDV/TSB/BV/01
* @reference EN 302 636-4-1 [1], clauses 8.7.2, 8.7.4, 8.8.3.2 and 9.3.9
*/
testcase TC_GEONW_FDV_TSB_BV_01() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorIut;
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_longPosVectorIut := f_getPosition(c_compIut);
f_prNeighbour();
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
if ( not f_utTriggerEvent(m_generateTsbMessage) ) {
log("*** " & testcasename() & ": INCONC: Trigger failed ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
tc_ac.start;
alt {
[] geoNetworkingPort.receive(
mw_geoNwInd(
mw_geoNwPdu(
mw_geoNwTsbPacket(
?, // sequence number
mw_longPosVectorPosition_withDelta(v_longPosVectorIut) // SOPV
)
)
)
) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: message received with correct common and extended headers ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: TSB message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
}
}
// Postamble
f_poNeighbour();
f_cf01Down();
} // end TC_GEONW_FDV_TSB_BV_01
} // end geoFdvTopologicallyScopedBroadcast
} // end geoFormatingAndDataValidity
// 6.2.2
group geoProtocolOperation {
// 6.2.2.1
group geoLocationTable {
/**
* @desc Test of adding new entries into location table from Beacon header
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received Beacon information from the ItsNodeB and
* the lifetime of the ItsNodeB Location Table entry not being expired
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeB
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeB
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GeoUnicast Extended Header
* containing DEPV field
* indicating same position as the SOPV value of the Beacon information received from ItsNodeB
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/01
* @reference EN 302 636-4-1 [1], clauses 9.3.10.3, 9.3.6.2 and 9.3.8.2
*/
testcase TC_GEONW_PON_LOT_BV_01() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeB;
// Test control
// Test component configuration
f_cf01Up();
v_longPosVectorNodeB := f_getPosition(c_compNodeB);
// Test adapter configuration
// Preamble
f_prNeighbour();
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
if ( not f_utTriggerEvent(m_generateGeoUnicastMessage(v_longPosVectorNodeB.gnAddr)) ) {
log("*** " & testcasename() & ": INCONC: Trigger failed ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
tc_ac.start;
alt {
[] a_receiveGeoUnicastWithDestination(mw_shortPosVectorPosition(f_longPosVector2ShortPosVector(v_longPosVectorNodeB))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: GeoUnicast packet received correctly ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] a_receiveAnyLsRequest() {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received Location Service Request ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": TIMEOUT: Expected message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
}
}
// Postamble
f_poNeighbour();
f_cf01Down();
} // end TC_GEONW_PON_LOT_BV_01
/**
* @desc Test of adding new entries into location table from LS Reply data
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having been requested to send a first GeoUnicast packet to ItsNodeA and
* the IUT having sent a LS_REQUEST packet
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT having received a LS_REPLY packet from ItsNodeA
* containing SOPV field and
* the IUT having sent the GeoUnicast packet to ItsNodeA and
* the lifetime of the ItsNodeA Location Table entry not being expired
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a second GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GeoUnicast Extended Header
* containing DEPV field
* indicating same position as the SOPV value of the LS_REPLY packet received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/02
* @reference EN 302 636-4-1 [1], clauses 9.3.7.1.4, 9.3.7.1.2 and 9.3.8.2
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
*/
testcase TC_GEONW_PON_LOT_BV_02() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA;
var LongPosVector v_longPosVectorNodeB;
var LongPosVector v_longPosVectorIut;
var GN_Address v_gnAddressNodeA;
var boolean v_lsRequestReceived := false;
// Test control
// Test component configuration
f_cf01Up();
v_longPosVectorNodeA := f_getPosition(c_compNodeA);
v_longPosVectorNodeB := f_getPosition(c_compNodeB);
v_gnAddressNodeA := v_longPosVectorNodeA.gnAddr;
// Test adapter configuration
// Preamble
f_prNeighbour();
if ( not f_utTriggerEvent(m_generateGeoUnicastMessage(v_longPosVectorNodeA.gnAddr)) ) {
log("*** " & testcasename() & ": INCONC: Trigger failed ***");
f_selfOrClientSyncAndVerdict(c_prDone, e_timeout);
}
tc_ac.start;
alt {
[] a_receiveLsRequestAndReply(
?, v_gnAddressNodeA.mid,
v_longPosVectorNodeA, v_longPosVectorNodeB
) {
v_lsRequestReceived := true;
log("*** " & testcasename() & ": Pre-conditions: Received and answered Location Service Request ***");
repeat;
}
[] a_receiveGeoUnicastWithDestination(mw_shortPosVectorPosition(f_longPosVector2ShortPosVector(v_longPosVectorNodeA))) {
tc_ac.stop;
if(v_lsRequestReceived == true) {
log("*** " & testcasename() & ": Pre-conditions: First GeoUnicast message received correctly ***");
}
else {
log("*** " & testcasename() & ": Pre-conditions: GeoUnicast packet received without LS Request ***");
f_selfOrClientSyncAndVerdict(c_prDone, e_error);
}
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": Pre-conditions: Initial conditions not satisfied. ***");
f_selfOrClientSyncAndVerdict(c_prDone, e_timeout);
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
if ( not f_utTriggerEvent(m_generateGeoUnicastMessage(v_longPosVectorNodeA.gnAddr)) ) {
log("*** " & testcasename() & ": INCONC: Trigger failed ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
tc_ac.start;
alt {
[] a_receiveLsRequest(?, v_gnAddressNodeA.mid, v_longPosVectorIut) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received Location Service Request ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] a_receiveGeoUnicastWithDestination(mw_shortPosVectorPosition(f_longPosVector2ShortPosVector(v_longPosVectorNodeA))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Received second GeoUnicast packet without LS Request ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Expected message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
}
}
// Postamble
f_poNeighbour();
f_cf01Down();
} // end TC_GEONW_PON_LOT_BV_02
group GEONW_PON_LOT_BV_03 {
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: Beacon packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
*/
testcase TC_GEONW_PON_LOT_BV_03_01() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwBeaconPacket(
v_longPosVectorNodeA
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_01
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: GUC packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
*/
testcase TC_GEONW_PON_LOT_BV_03_02() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwUnicastPacket(
v_longPosVectorNodeA,
f_getIutShortPosVector(),
vc_localSeqNumber
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_02
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: GAC packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
*/
testcase TC_GEONW_PON_LOT_BV_03_03() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwAnycastPacket(
v_longPosVectorNodeA,
vc_localSeqNumber,
f_getGeoAnycastArea(c_area1)
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_03
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: GBC packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
*/
testcase TC_GEONW_PON_LOT_BV_03_04() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwBroadcastPacket(
v_longPosVectorNodeA,
vc_localSeqNumber,
f_getGeoBroadcastArea(c_area1)
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_04
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: TSB packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
*/
testcase TC_GEONW_PON_LOT_BV_03_05() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwTsbPacket(
vc_localSeqNumber,
v_longPosVectorNodeA
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_05
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: SHB packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
*/
testcase TC_GEONW_PON_LOT_BV_03_06() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwShbPacket(
v_longPosVectorNodeA
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_06
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: LS Request packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
*/
testcase TC_GEONW_PON_LOT_BV_03_07() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
activate(a_receiveAnyLsReply());
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwLsRequestPacket(
v_longPosVectorNodeA,
vc_localSeqNumber,
f_getIutGnLocalAddress()
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_07
/**
* @desc Test of adding new entries into location table from extended header processing
* (e.g. Unicast header)
* <pre>
* Pics Selection: none
* Config Id: CF01
* Initial conditions:
* with {
* the IUT being in the "initial state" and
* the IUT having received a MESSAGE from ItsNodeA
* }
* MESSAGE: LS Reply packet
*
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to send a GeoUnicast packet to ItsNodeA
* }
* then {
* the IUT does not send a GeoNetworking packet
* containing a LS_REQUEST Extended Header
* containing Request field
* containing GN_ADDR
* containing M_ID
* indicating ItsNodeA
* the IUT sends a GeoNetworking packet
* containing a correctly formatted Common Header
* containing HT field
* set to '2' (GEOUNICAST)
* containing GUC Extended Header
* containing DEPV field
* indicating same position as the SOPV of the MESSAGE received from ItsNodeA
* }
* }
* </pre>
*
* @see ETSI TS 102 871-2 v1.3.1 TP/GEONW/PON/LOT/BV/03
* @reference EN 302 636-4-1 [1], clauses 9.3.8.4, 9.3.12.3, 9.3.9.3, 9.3.10.3, 9.3.7.3 and 9.3.8.2
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
*/
testcase TC_GEONW_PON_LOT_BV_03_08() runs on ItsGeoNetworking system ItsGeoNetworkingSystem {
// Local variables
var LongPosVector v_longPosVectorNodeA := f_TP_GEONW_PON_LOT_BV_03_pre_1();
f_TP_GEONW_PON_LOT_BV_03_pre_2(
m_geoNwLsReplyPacket(
v_longPosVectorNodeA,
f_getIutShortPosVector(),
vc_localSeqNumber
)
);
f_TP_GEONW_PON_LOT_BV_03_main(v_longPosVectorNodeA);
} // end TC_GEONW_PON_LOT_BV_03_08
/**
* @desc Function including first preamble part (TC_GEONW_PON_LOT_BV_03)
*/
function f_TP_GEONW_PON_LOT_BV_03_pre_1() runs on ItsGeoNetworking return LongPosVector {
// Local variables
var LongPosVector v_longPosVectorNodeA;
// Test control
// Test component configuration
f_cf01Up();
v_longPosVectorNodeA := f_getPosition(c_compNodeA);
// Test adapter configuration
// Preamble part I
f_prNeighbour();
return v_longPosVectorNodeA;
} // end f_TP_GEONW_PON_LOT_BV_03_pre_1
/**
* @desc Function including second preamble part (TC_GEONW_PON_LOT_BV_03)
*/
function f_TP_GEONW_PON_LOT_BV_03_pre_2(in template (value) GnNonSecuredPacket p_packet) runs on ItsGeoNetworking {
//preamble part II
f_sendGeoNetMessage(
m_geoNwReq_linkLayerBroadcast(m_geoNwPdu(p_packet))
);
f_selfOrClientSyncAndVerdict(c_prDone, e_success);