What is the primary purpose of performing a packet capture in the context of network security?
To increase the bandwidth and performance of the network
To provide network users with a secure method of file transfer
To restrict access to network resources based on IP addresses
To collect and analyze network traffic for security monitoring and investigative purposes