[cdp] implemented cdp's architecture