I have collected a few mb of network traffic and want to run analysis on it. The problem that i am facing is that i want to store it in a manner such that i can reduce the time complexity when i search it.
The very first idea that i had in my mind was to put it into a database with all possible attribute in the columns , but then i realized that there would be lot of NULL values in the table, this slows the performance of the database. Even if the performance degradation is minor for a small database , when i will parse a large *.pcap file(greater than 1Gb) the degradation will drastically effect the performance of the database. AS the size of the database will increase and also the number of NULL values in the table.
So is there any better way to store the *.pcap file for analysis, I have been looking into XML tree as a solution but i'm not sure about it. I am using python to do it and i am using dpkt module to extract data from the *.pcap file
Thanks in advvance