How to implement TCP/UDP protocol in Packetbeats

Take a look at this thread. It has some good information about adding a new protocol. Protocol for ISO messages

Do you mean some kind of pluggable way to add protocol support at runtime? This isn't possible with Go at the moment since everything is statically linked.