use namespace and type to indentify packet type