Network traffic classification is of great significance to the daily management and maintenance of the network. With the rapid development of encryption techniques for network traffic, traditional traffic classification methods have reduced the accuracy due to the low identification rate of encrypted traffic. Aiming at this problem, a deep learning traffic classification method based on improved convolutional neural network is proposed. By optimizing and adjusting the network structure, network parameters, and cost function of the convolutional neural network, the classification accuracy of encrypted traffic is improved. By comparing and analyzing the existing traffic classification method on public data sets, the experimental results show that the proposed method effectively improves the classification accuracy of encrypted traffic by 10%.