get latest snapshot
return 0 if port not exists