Rules for testing end-software

Hello !
I need to set up a rules that helps me with testing my software .
I need to make a rule that can lost packets (ex. 2 lost packet for 5sec or etc. )
And i need to limit speed transfer ( but that i can do now :slight_smile: )
Thanks for help !