add hash table for typename and protocol name, speed up name querying.

as fast as tag search, and hash id collided when growing up to 8192 type/protocol entries.