generate conn_id