input data, return protocol id