Network monitoring architecture based on home gateways