RFC 862 - Echo Protocol
Often, when you are getting familiar with new programming language or small networking library it is hard to came up with something meaningful as an example. I would like to share with you a little piece of advice regarding that.
You can implement an echo server. Even more - there is an official RFC for an echo protocol - it has number
It is a tiny document, that formalizes also tiny specification for an echo server - for two most known transport layer protocols - TCP and UDP. Rules and requirements are clear and well defined, port numbers are well known.
BTW: it is a really nice kata assignment as well. And, just for the record - please, look at the author and date - RFC was created in
1983 by Jon Postel (yes, this one responsible for Postel’s Law).
Besides an echo protocol there is also well known RFC which describes an IP protocol implemented on top of breeding pigeons (look at the security considerations at page 3 ). But this is much harder to implement as a small assignment or kata.
Please, share with me your example implementation of an echo server in the comments - choose any protocol or programming language that you like.