import socket
import sys
from random import randint

dscp_mapping = [
    {"name":"EF",   "value":0x2e, "index":0},
    {"name":"BE",   "value":0x00, "index":1},
    {"name":"AF11", "value":0x0a, "index":2},
    {"name":"AF12", "value":0x0c, "index":3},
    {"name":"AF13", "value":0x0e, "index":4},
    {"name":"AF21", "value":0x12, "index":5},
    {"name":"AF22", "value":0x14, "index":6},
    {"name":"AF23", "value":0x16, "index":7},
    {"name":"AF31", "value":0x1a, "index":8},
    {"name":"AF32", "value":0x1c, "index":9},
    {"name":"AF33", "value":0x1e, "index":10},
    {"name":"AF41", "value":0x22, "index":11},
    {"name":"AF42", "value":0x24, "index":12},
    {"name":"AF43", "value":0x26, "index":13},
    {"name":"Other","value":0x10, "index":14},
]

if __name__ == "__main__":
    count = 0
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    addr = ("10.10.0.2", 6969)

    while True:

        for mark in dscp_mapping:
            sock.setsockopt(socket.SOL_IP, socket.IP_TOS, mark['value'] << 2)

            pkts = randint(0, 128)

            for x in range(pkts):
                sock.sendto(bytes([x for x in range(0, 255)]), addr)
            if count > 100:
                count = 0
                sys.stdout.write('.')
                sys.stdout.flush()
            else:
                count = count + 1

7a066f2b64bf773e8407096c16cb0f7f0f2e6c37
<mask token>

<mask token>
if __name__ == '__main__':
    count = 0
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    addr = '10.10.0.2', 6969
    while True:
        for mark in dscp_mapping:
            sock.setsockopt(socket.SOL_IP, socket.IP_TOS, mark['value'] << 2)
            pkts = randint(0, 128)
            for x in range(pkts):
                sock.sendto(bytes([x for x in range(0, 255)]), addr)
            if count > 100:
                count = 0
                sys.stdout.write('.')
                sys.stdout.flush()
            else:
                count = count + 1

<mask token>
dscp_mapping = [{'name': 'EF', 'value': 46, 'index': 0}, {'name': 'BE',
    'value': 0, 'index': 1}, {'name': 'AF11', 'value': 10, 'index': 2}, {
    'name': 'AF12', 'value': 12, 'index': 3}, {'name': 'AF13', 'value': 14,
    'index': 4}, {'name': 'AF21', 'value': 18, 'index': 5}, {'name': 'AF22',
    'value': 20, 'index': 6}, {'name': 'AF23', 'value': 22, 'index': 7}, {
    'name': 'AF31', 'value': 26, 'index': 8}, {'name': 'AF32', 'value': 28,
    'index': 9}, {'name': 'AF33', 'value': 30, 'index': 10}, {'name':
    'AF41', 'value': 34, 'index': 11}, {'name': 'AF42', 'value': 36,
    'index': 12}, {'name': 'AF43', 'value': 38, 'index': 13}, {'name':
    'Other', 'value': 16, 'index': 14}]
if __name__ == '__main__':
    count = 0
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    addr = '10.10.0.2', 6969
    while True:
        for mark in dscp_mapping:
            sock.setsockopt(socket.SOL_IP, socket.IP_TOS, mark['value'] << 2)
            pkts = randint(0, 128)
            for x in range(pkts):
                sock.sendto(bytes([x for x in range(0, 255)]), addr)
            if count > 100:
                count = 0
                sys.stdout.write('.')
                sys.stdout.flush()
            else:
                count = count + 1

import socket
import sys
from random import randint
dscp_mapping = [{'name': 'EF', 'value': 46, 'index': 0}, {'name': 'BE',
    'value': 0, 'index': 1}, {'name': 'AF11', 'value': 10, 'index': 2}, {
    'name': 'AF12', 'value': 12, 'index': 3}, {'name': 'AF13', 'value': 14,
    'index': 4}, {'name': 'AF21', 'value': 18, 'index': 5}, {'name': 'AF22',
    'value': 20, 'index': 6}, {'name': 'AF23', 'value': 22, 'index': 7}, {
    'name': 'AF31', 'value': 26, 'index': 8}, {'name': 'AF32', 'value': 28,
    'index': 9}, {'name': 'AF33', 'value': 30, 'index': 10}, {'name':
    'AF41', 'value': 34, 'index': 11}, {'name': 'AF42', 'value': 36,
    'index': 12}, {'name': 'AF43', 'value': 38, 'index': 13}, {'name':
    'Other', 'value': 16, 'index': 14}]
if __name__ == '__main__':
    count = 0
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    addr = '10.10.0.2', 6969
    while True:
        for mark in dscp_mapping:
            sock.setsockopt(socket.SOL_IP, socket.IP_TOS, mark['value'] << 2)
            pkts = randint(0, 128)
            for x in range(pkts):
                sock.sendto(bytes([x for x in range(0, 255)]), addr)
            if count > 100:
                count = 0
                sys.stdout.write('.')
                sys.stdout.flush()
            else:
                count = count + 1

import socket
import sys
from random import randint

dscp_mapping = [
    {"name":"EF",   "value":0x2e, "index":0},
    {"name":"BE",   "value":0x00, "index":1},
    {"name":"AF11", "value":0x0a, "index":2},
    {"name":"AF12", "value":0x0c, "index":3},
    {"name":"AF13", "value":0x0e, "index":4},
    {"name":"AF21", "value":0x12, "index":5},
    {"name":"AF22", "value":0x14, "index":6},
    {"name":"AF23", "value":0x16, "index":7},
    {"name":"AF31", "value":0x1a, "index":8},
    {"name":"AF32", "value":0x1c, "index":9},
    {"name":"AF33", "value":0x1e, "index":10},
    {"name":"AF41", "value":0x22, "index":11},
    {"name":"AF42", "value":0x24, "index":12},
    {"name":"AF43", "value":0x26, "index":13},
    {"name":"Other","value":0x10, "index":14},
]

if __name__ == "__main__":
    count = 0
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    addr = ("10.10.0.2", 6969)

    while True:

        for mark in dscp_mapping:
            sock.setsockopt(socket.SOL_IP, socket.IP_TOS, mark['value'] << 2)

            pkts = randint(0, 128)

            for x in range(pkts):
                sock.sendto(bytes([x for x in range(0, 255)]), addr)
            if count > 100:
                count = 0
                sys.stdout.write('.')
                sys.stdout.flush()
            else:
                count = count + 1
