+ ${start_date}= Get Current Date
+ Run Process With Logging And Status Check ${MAPPING_BLASTER} --host ${ODL_SYSTEM_IP} --mappings ${MAPPINGS}
+ ${end_date}= Get Current Date
+ ${add_seconds}= Subtract Date From Date ${end_date} ${start_date}
+ Log ${add_seconds}
+ ${rpcs}= Evaluate int(${MAPPINGS}/${add_seconds})
+ Log ${rpcs}
+ Append To File ${RPCS_RESULTS_FILE} ${rpcs}\n
+
+Generate Map-Request Test Traffic
+ ${pps_mrep}= Lossy Test 2 ${REPLAY_FILE_MREQ}
+ Set Suite Variable ${pps_mrep}
+
+Generate Map-Register Test Traffic
+ Allow Unauthenticated Map-Registers
+ ${pps_mnot}= Lossy Test 4 ${REPLAY_FILE_MREG}
+ Set Suite Variable ${pps_mnot}
+
+Generate Authenticated Map-Register Test Traffic
+ Allow Authenticated Map-Registers
+ ${pps_mnot_auth}= Lossy Test 4 ${REPLAY_FILE_MRGA}
+ Set Suite Variable ${pps_mnot_auth}
+
+*** Keywords ***
+Clean Up
+ Clear Config Datastore
+ Clear Operational Datastore
+ Sleep 500ms
+
+Clear Config Datastore
+ ${resp}= RequestsLibrary.Delete Request session /restconf/config/odl-mappingservice:mapping-database
+ Log ${resp.content}
+
+Clear Operational Datastore
+ ${resp}= RequestsLibrary.Delete Request session /restconf/operational/odl-mappingservice:mapping-database
+ Log ${resp.content}
+
+Lossy Test
+ [Arguments] ${lisp_type} ${replay_file}
+ [Documentation] This test will send traffic at a rate that is known to be
+ ... higher than the capacity of the LISP Flow Mapping service and count
+ ... the reply messages. Using the test's time duration, it computes the
+ ... average reply packet rate in packets per second
+ ${elapsed_time}= Generate Test Traffic ${REPLAY_PPS} ${REPLAY_CNT} ${replay_file}
+ ${odl_tx_count}= Get Control Message Stats ${lisp_type} tx-count
+ ${pps}= Evaluate int(${odl_tx_count}/${elapsed_time})
+ Log ${pps}
+ Clean Up
+ [Return] ${pps}