Sketch NDP state machine