A Novel Network Traffic Prediction Methodology with On-line and Off-line Solutions