socket hierarchy