socket and switch interface