BRO port scan attack

Sir

can you please tell me what are the requirements (i.e hardware as well as software) to detect port scan attack in BRO
IDS.

Can you tell me how detecting of ports works .

Thank you

Hoping your early reply