added dpid to the log and fixed port numbering