Sending a packet with the defined payload can be done via various means, e.g. using the command line tool ping. By using the option -p you can define the payload in the packet.