A Generic Framework For Network Traffic Analysis