IDS is acronym for 'Intrusion Detection System'.
IDS's can be compared to computer alarm systems.
Portsentry is not large a program, which task is monitoring open and used ports in our system.
it can detect unauthorized transmission of packets on suspicious, normally not used for communication a port and notify admin.
it can also just after detecting suspicious activity cause block in transmission that could happen next if not blocked.