A method, system and storage medium for classifying network traffic based on software-defined Internet of Vehicles
By using self-supervised learning methods in the Internet of Vehicles network, combining unsupervised and supervised learning strategies, and using unlabeled data sets to update model weights, the problem of large amounts of labels and low accuracy in traffic classification of the Internet of Vehicles network is solved, and the problem is achieved Efficient classification accuracy and low-cost labeling, outperforming baseline methods by approximately 4% accuracy.
Patent Information
- Application Number
- CN202410791301.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The existing technology has the problems of large amount of sample data labeling and low classification accuracy in the classification of Internet of Vehicles network traffic. It is difficult to improve the classification accuracy and reduce the labeling cost at the same time.
Adopt a self-supervised learning method based on software-defined Internet of Vehicles networks, update the weights of the initial model through unlabeled data sets, combine unsupervised learning and supervised learning strategies, and use pre-trained models and fine-tuned models to reduce dependence on labeled data , improve classification accuracy.
It effectively reduces the need for manual annotation, utilizes a large amount of unlabeled data information, ensures the classification accuracy of the model, improves learning efficiency, and is about 4% better than the most advanced baseline method in terms of accuracy.
Smart Images

Figure CN118364341B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network traffic classification, and specifically to a method, system and storage medium for classifying network traffic based on software-defined Internet of Vehicles. Background Art
[0002] In recent years, with the rapid development of 5G and beyond 5G (B5G) mobile and wireless networks, the 5G era of the Internet of Everything has arrived. At present, the new generation of information and communication technologies represented by 5G provide ultra-low latency, ultra-high reliability, ultra-large bandwidth wireless communication guarantees and high-performance computing capabilities for the Internet of Vehicles. As a result, the number of vehicle-mounted terminal devices has also increased rapidly. The traffic generated by a large number of vehicle-mounted terminal devices has caused network congestion. In the case of limited bandwidth, it will be very unfriendly to the device response. At the same time, the traffic of various devices is mixed together, making traffic regulation difficult. In the field of computer network traffic classification, the development and widespread use of encryption protocols have exacerbated the complexity of network traffic classification. Software-defined networking, as a new idea for network construction, separates the data plane from the control plane. The data layer collects the status information of the entire network, and the control layer realizes centralized control of the network. Furthermore, after being well trained, deep neural networks can distinguish different types of traffic in software-defined Internet of Vehicles networks and show excellent performance. However, these deep learning algorithms all follow the supervised learning paradigm. Supervised learning requires labeling for sample data, but creating such labeled data is very time-consuming and errors may occur in the labeling process.
[0003] In the methods proposed so far, self-supervised learning algorithms are used. In self-supervised learning, a small amount of labeled data is required to obtain a model with good accuracy. These algorithms try to learn a representation of the data for subsequent downstream tasks. Because it is easy to capture a large amount of traffic data from the network, but the tedious part is to create labels for each captured packet flow. In self-supervised learning, only a small amount of labeled data and a large amount of unlabeled data are required. Therefore, self-supervised learning is very suitable for software-defined network network traffic classification. But in the past, many self-supervised learning methods proposed by many researchers are not as accurate as supervised learning.
[0004] Therefore, the prior art requires a method to improve classification accuracy and a method to reduce the labeling of sample data to save labeling costs in order to solve the actual vehicle network traffic classification problem. Summary of the invention
[0005] The purpose of this application is to provide a method, system and storage medium for classifying network traffic of the Internet of Vehicles based on software definition, so as to solve the problem that the existing technology cannot simultaneously solve the large amount of sample data labels and the low accuracy of the classification of network traffic of the Internet of Vehicles.
[0006] In order to achieve the above objectives, this application is implemented by adopting the following technical solutions:
[0007] In a first aspect, the present application discloses a method for classifying network traffic based on software-defined Internet of Vehicles, including:
[0008] Input the network traffic data to be classified into a pre-trained classification model to obtain a network traffic classification result of the network traffic data to be classified, wherein the training process of the classification model includes:
[0009] Collect network traffic sample data within a set time interval in the software-defined vehicle network;
[0010] Preprocess the network traffic sample data to obtain an unlabeled data set and labeled datasets ;
[0011] Using unlabeled dataset Update the weights of the online network in the initial model to obtain the training encoder ; Wherein, the initial model includes an online network and a target network arranged in parallel, the online network includes an encoder, a projector and a first prediction layer arranged in sequence, and the target network includes an encoder and a projector arranged in sequence;
[0012] When training the encoder Add a second prediction layer on top of Generate a fine-tuned model and label the dataset Input to the fine-tuned model to update the second prediction layer The updated weights replace the weights of the first prediction layer in the online network of the initial model to obtain a classification model.
[0013] Furthermore, the unlabeled dataset is used Update the weights of the online network in the initial model to obtain the training encoder include:
[0014] Unlabeled dataset Take two sub-streams from the network and input one of them into the online network to obtain the prediction result. ( ), and input another substream into the target network to obtain the target representation ;
[0015] Iterate and execute to obtain prediction results ( ) and target representation In the iterative process, random optimization steps are performed to minimize the total loss and update the weights of the online network. ;After the iteration is completed, the training encoder is obtained ;
[0016] The weight of the online network The update formula is: ;
[0017] in, Represents the optimizer optimization function, express The gradient of is the learning rate, minimizing the total loss , mean square loss The expression is ; represents the symmetric loss of the target network and the online network.
[0018] Furthermore, during the iteration process, the weight of the target network is the exponential moving average of the weight of the line network, and the expression of the exponential moving average is:
[0019] ;
[0020] in, is the weight of the target network, is the target attenuation rate, .
[0021] Furthermore, the labeled dataset Input to the fine-tuned model to update the second prediction layer The weight of is realized by the following formula:
[0022] ;
[0023] in, x represents a single observation in the distribution, l represents the true distribution, Represents the prediction distribution of the second prediction layer.
[0024] Furthermore, the encoder is trained A second prediction layer added on top The number of neurons in the labeled dataset is equal to The number of classes in .
[0025] Furthermore, the network traffic sample data is preprocessed to obtain an unlabeled data set and labeled datasets include:
[0026] Take the network traffic sample data as the original data set , for the original data set Perform feature extraction to obtain feature data sets ;
[0027] The feature dataset Divide into the first data set and the data set , the first data set is subjected to data labeling processing to obtain a data set .
[0028] Furthermore, collecting network traffic sample data within a set time interval in the software-defined vehicle network includes:
[0029] A software system is deployed on the switch to collect data packets on the port and simultaneously collect port counters; wherein, during collection, the switch extracts data packets at a sampling rate of 1 / N on each port and collects the header and metadata of the data packets;
[0030] Analyze the data of data packets to generate traffic views and obtain network traffic sample data within a set time interval.
[0031] Furthermore, both the encoder of the online network and the encoder of the target network adopt densely connected networks.
[0032] In a second aspect, the present application discloses a network traffic classification system based on software-defined Internet of Vehicles, including a processor and a storage medium;
[0033] The storage medium is used to store instructions;
[0034] The processor is used to operate according to the instructions to execute the steps of any method described in the first aspect.
[0035] In a third aspect, the present application discloses a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0036] According to the above technical solution, this application has the following technical effects:
[0037] In the process of building the classification model of the present application, an unlabeled data set is used to update the weights of the online network, which greatly alleviates the problem of relying on a large amount of labeled data for training and reduces the need for manual labeling. First, a training encoder is obtained by pre-training with unlabeled data, and a model with a good understanding of the data is initialized. Then, a second prediction layer is added on top of the training encoder to generate a fine-tuning model, and limited labeled data is used for fine-tuning on this basis. This not only utilizes the information of a large amount of unlabeled data, but also ensures the classification accuracy of the model and improves learning efficiency.
[0038] This application effectively solves the problems of large amount of sample data labeling and low accuracy of vehicle network traffic classification by combining unsupervised learning and supervised learning strategies; when there is sufficient data in the pre-training stage, the method proposed in this application can outperform the most advanced baseline method in terms of accuracy by about 4%. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flow chart of the classification method for this application;
[0040] Figure 2 A schematic diagram of the vehicle-mounted architecture of the Internet of Vehicles network in the classification method of this application;
[0041] Figure 3 A schematic diagram of data collected for the software-defined vehicle network in the classification method of this application;
[0042] Figure 4 A block diagram of the initial model in the classification method of this application;
[0043] Figure 5 It is the network structure diagram of the online network in the initial model;
[0044] Figure 6 A block diagram of a fine-tuning model in the classification method of this application;
[0045] Figure 7 This is a specific flowchart of the classification method of this application. DETAILED DESCRIPTION
[0046] In order to make the technical means, creative features, objectives and effects achieved by this application easy to understand, this application is further explained below in conjunction with specific implementation methods.
[0047] The starting point of the present invention is that existing network traffic classification techniques are insufficient in handling software-defined Internet of Vehicles network traffic. Although deep learning-based techniques have been shown to perform well in the case of Internet of Vehicles traffic classification, they require a large amount of labeled data to achieve high accuracy. However, in real network settings, labeled data are rarely available in sufficient quantity because they require domain experts to annotate the data with labels. Therefore, the present application proposes a self-supervised method that can achieve high accuracy in software-defined Internet of Vehicles network traffic classification using a small amount of labeled data.
[0048] Example 1
[0049] like Figure 1, the present invention takes the data packets obtained in the software-defined vehicle network as an example to classify the network traffic of the software-defined vehicle network. First, sFlow is used on the switch to collect network traffic sample data within a specific time interval in the software-defined vehicle network; then, the collected data is pre-processed and data preparation is performed; then, the pre-training stage and the fine-tuning stage are performed to classify the network traffic of the software-defined vehicle network. The specific process is as follows:
[0050] like Figure 7 As shown, a network traffic classification method based on software-defined vehicle networking includes: inputting the network traffic data to be classified into a pre-trained classification model to obtain the network traffic classification result of the network traffic data to be classified. The training process of the classification model includes:
[0051] Step 1: Collect network traffic sample data within a set time interval in the software-defined vehicle network.
[0052] Step 2: Preprocess the network traffic sample data to obtain an unlabeled data set and labeled datasets .
[0053] Step 3: Use unlabeled dataset Update the weights of the online network in the initial model to obtain the training encoder ; Among them, the initial model includes an online network and a target network arranged in parallel, the online network includes an encoder, a projector and a first prediction layer arranged in sequence, and the target network includes an encoder and a projector arranged in sequence.
[0054] Step 4: Training the encoder Add a second prediction layer on top of Generate a fine-tuned model and label the dataset Input to the fine-tuned model to update the second prediction layer The updated weights replace the weights of the first prediction layer in the online network of the initial model to obtain a classification model.
[0055] This application effectively solves the problems of large amount of sample data labeling and low accuracy of vehicle network traffic classification by combining unsupervised learning and supervised learning strategies; when there is sufficient data in the pre-training stage, the method proposed in this application can outperform the most advanced baseline method in terms of accuracy by about 4%.
[0056] When unlabeled data from different datasets are used for training instead of data from labeled datasets, the method of the present application can achieve higher accuracy, while the accuracy of the comparison method is significantly reduced; this effect is achieved thanks to the self-supervised learning method adopted in the present application, which enables the model to better generalize to different datasets and improve the classification accuracy of new samples.
[0057] In addition, due to the use of DenseNet architecture as the encoder and LAMB as the optimizer, the method of the present application also exhibits better robustness and generalization when facing unbalanced data sets, can effectively handle the situation of class imbalance in the data set, improve parameter sharing and parameter efficiency, thereby improving the overall performance of the classifier.
[0058] like Figure 1-Figure 6 As shown, the present application is described below through specific steps.
[0059] Step 1: Collect network traffic sample data within a set time interval in the software-defined vehicle network (use sFlow on the switch to collect network traffic sample data within a specific time interval in the software-defined vehicle network) Figure 2 (onboard architecture and roadside unit data interaction) and Figure 3 The specific description of the collected data packets is as follows:
[0060] Step 11: Deploy sFlow Agent on the switch to sample data packets on the port and collect port counters.
[0061] Step 12: sFlow Agent encapsulates the collected data in an sFlow message and sends it to sFlowCollector, which analyzes and generates a traffic view to obtain network traffic sample data within a set time interval.
[0062] In steps 11 and 12, the switch extracts data packets at a sampling rate of 1 / N on each port, where N is a fixed value (200 in this article) and sends their headers and metadata (such as sampling frequency, switch ID, timestamp, input and output ports, etc.) to the sFlow Collector, which can deduce flow statistics based on the sampled data.
[0063] Step 2: Preprocess the network traffic sample data to obtain an unlabeled data set and labeled datasets The following steps are included: network traffic sample data is used as the original data set , for the original data set Perform feature extraction to obtain feature data sets ; The feature dataset Divide into the first data set and the data set , the first data set is subjected to data labeling processing to obtain a data set .
[0064] Specifically, after preprocessing the collected data, data preparation is performed; first, two network packet streams are prepared, an unlabeled data set ( ) is used in the pre-training phase, and another labeled dataset ( ) is used for supervised fine-tuning; ensuring that all flows in the dataset have at least 200 packets.
[0065] Secondly, incremental sampling technology is used to create sub-flows from the packet stream. The specific steps of incremental sampling technology are as follows: This technology has three parameters , and . Select from a stream Packets of data packets. After the number of packets, Multiply . For all datasets use =8, =16 and = 1.4. Finally, we choose to sample only 35 packets from the entire flow, which means the length of the sub-flow is 35.
[0066] Finally, to keep track of the substreams, a file identifier is created. Represents each substream of a stream. For each stream in the dataset, there is a unique Unlabeled dataset It consists of substreams and the file identification number corresponding to each substream.
[0067] For the collected dataset, 20 flows per category were placed into Note that these streams are not included in the ; Randomly select 20 flows of each class from the set of all flows. Ensure The length of each substream in must be the same as Each substream in is of the same length; prepare it using the same incremental sampling technique mentioned above. The sub-streams include the ones used in the fine-tuning phase . The class labels of each substream of are used as the supervision dataset.
[0068] Dataset (different types include traffic flow, vehicle flow, etc.) > Stream > Data Packet.
[0069] Step 3: Use unlabeled dataset Update the weights of the online network in the initial model to obtain the training encoder .
[0070] During the pre-training phase, the model learns to represent the data in different ways based on certain properties of the data rather than the actual labels;
[0071] First, two neural networks were used, such as Figure 4 As shown in Figure 1. One network is called the online network and the other is called the target network. The purpose of the target network is to provide regression targets for the online network. Both neural networks in the pre-training phase have an encoder and a projector The architecture of these two components is the same, but their initialization weights are different; the online network has an additional layer for prediction, and the dimensionality of the representation vector is very high. and Convert this high-dimensional vector to a low-dimensional vector. Here, represents the weight of the online network, Represents the weights of the target network; uses the DenseNet (densely connected network) architecture as the encoder (encoder of the online network and the target network encoder ). Using a projector in the fully connected layer ( and ). In the online network, the prediction layer is also a fully connected layer. That is, the initial model includes the online network and the target network set in parallel, and the online network includes the encoder, projector and the first prediction layer set in sequence. ,The target network includes an encoder and a projector set in sequence. The specific architecture of the ,online network is as follows. Figure 5 shown.
[0072] Next, from Take two substreams ( and ), one of the sub-flows Input to the online network, another sub-flow Input to the target network. From the encoder and In this paper, we obtain the representation of two substreams; these two representations enter the corresponding projectors ( and ), and from there, get a low-dimensional vector representation.
[0073] Predictor of the online network (first prediction layer) Predict the representation of the target network, i.e. . In order to be able to predict the representation of the target network, the online network needs to learn a representation close to the target network. During the training process, the weights of the online network are updated at each step of the training. But the weights of the target network are the exponential moving average of the weights of the online network. Choose a target decay rate , calculate this exponential moving average according to the following formula.
[0074] ;
[0075] In this loss function, a mean squared loss is defined between the normalized predictions of the online network and the normalized projections of the target network. The mean squared loss is shown below.
[0076] ;
[0077] Here, the loss is defined as the online network's prediction ( ( )) and the target network’s prediction ( ) The loss in the formula is obtained by Online Networking and Targeted Networking To make the loss symmetric, we transform the target network and online networks Feed to calculate another version of the loss, which is recorded as Therefore, at each iteration a random optimization step is performed to minimize the total loss . Update according to the following formula : ;
[0078] in, Represents the optimizer optimization function, express The gradient of is the learning rate.
[0079] In all experiments, the LAMB optimizer is used. The weight decay rate used by the optimizer is In the pre-training phase, the network is trained for 50 iterations with a batch size of 64. Using target decay From the encoder, a representation vector of size 2048 is obtained. In the projection layer, this representation vector is reduced to a 128-dimensional vector.
[0080] Step 4: Train the encoder Add a prediction layer on top of Generate a fine-tuned model and label the dataset Input to the fine-tuned model to update the prediction layer The updated weights replace the weights of the prediction layer in the online network of the initial model to obtain a classification model, such as Figure 6 shown.
[0081] In the fine-tuning phase, the weights of the model are fine-tuned based on a small amount of labeled data for the actual task.
[0082] First, in the pre-training stage, an unlabeled dataset is used Update the weights of the online network in the initial model to obtain the training encoder During the fine-tuning phase, freeze all layers of the encoder. By freezing, it is ensured that no weights of the encoder layers are updated during this phase. The frozen layers are as follows Figure 6 shown.
[0083] Then use a small supervised dataset at this stage A new fully connected layer is added on top of the encoder As the second prediction layer. The number of neurons in this fully connected layer is equal to the dataset At this stage, the cross entropy loss is used to update the second prediction layer. Weight:
[0084] ;
[0085] in, x represents a single observation in the distribution, l represents the true distribution, represents the prediction distribution of the second prediction layer. In this stage, the network is trained for 25 iterations with a batch size of 64. The LAMB optimizer is used with a learning rate of , the weight decays to .
[0086] Table 1. Definitions of TP, FP, FN and TN
[0087]
[0088] Precision can be understood as the probability that the classifier is correctly classified, which is defined as follows:
[0089] ;
[0090] Recall can be understood as the probability that the positive samples correctly judged by the classifier account for the proportion of the total positive samples, which is defined as follows:
[0091] ;
[0092] Table 2. Comparison of the accuracy and recall rate of the proposed method and the baseline method
[0093]
[0094] When there is enough data in the pre-training stage, the method proposed in this application can be no less than the baseline method in terms of recall rate Recall, and is about 4% better than the most advanced baseline method in terms of Precision Precision.
[0095] Example 2
[0096] An embodiment of the present application also provides a network traffic classification system based on software-defined Internet of Vehicles. In the embodiment of the present application, the system can be a computer, a smart phone, a personal digital assistant, etc.
[0097] The system may include: a memory, a processor, a communication interface and a communication bus, and the communication bus is used to realize the connection and communication between these components.
[0098] The memory is used to store all model data, as well as various data such as computing program instructions corresponding to the software-defined Internet of Vehicles network traffic classification method provided in the embodiment of the present application, wherein the memory can be a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable read-only memory (EPROM), etc.
[0099] When the processor is used to read and run the computer program instructions corresponding to the software-defined vehicle network traffic classification method stored in the memory, the software-defined vehicle network traffic classification method provided in the embodiment of the present application is executed.
[0100] The processor may be an integrated circuit chip with signal processing capabilities. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), a discrete gate or transistor logic device, or a discrete hardware component.
[0101] Example 3
[0102] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0103] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0106] It is known from common technical knowledge that the present application can be implemented by other embodiments that do not deviate from its spirit or essential features. Therefore, the above disclosed embodiments are only illustrative in all respects and are not exclusive. All changes within the scope of the present application or within the scope equivalent to the present application are included in the present application.
Claims
1. A method for classifying network traffic in a software-defined Internet of Vehicles, characterized in that: include: Input the network traffic data to be classified into a pre-trained classification model to obtain a network traffic classification result of the network traffic data to be classified, wherein the training process of the classification model includes: Collect network traffic sample data within a set time interval in the software-defined vehicle network; Preprocess the network traffic sample data to obtain an unlabeled data set and labeled datasets ; Using unlabeled dataset Update the weights of the online network in the initial model to obtain the training encoder ; Wherein, the initial model includes an online network and a target network arranged in parallel, the online network includes an encoder, a projector and a first prediction layer arranged in sequence, and the target network includes an encoder and a projector arranged in sequence; When training the encoder Add a second prediction layer on top of Generate a fine-tuned model and label the dataset Input to the fine-tuned model to update the second prediction layer The updated weights replace the weights of the first prediction layer in the online network of the initial model to obtain a classification model; The unlabeled dataset Update the weights of the online network in the initial model to obtain the training encoder include: Unlabeled dataset Take two sub-streams from the network and input one of them into the online network to obtain the prediction result. ( ), and input another substream into the target network to obtain the target representation ; Iterate and execute to obtain prediction results ( ) and target representation In the iterative process, random optimization steps are performed to minimize the total loss and update the weights of the online network. ; After the iteration is completed, the training encoder is obtained ; The weight of the online network The update formula is: ; in, Represents the optimizer optimization function, express The gradient of is the learning rate, minimizing the total loss , mean square loss The expression is ; represents the symmetric loss of the target network and the online network.
2. The method for classifying network traffic of software-defined Internet of Vehicles according to claim 1, characterized in that: During the iteration process, the weight of the target network is the exponential moving average of the weight of the online network. The expression of the exponential moving average is: ; in, is the weight of the target network, is the target attenuation rate, .
3. The method for classifying network traffic of software-defined Internet of Vehicles according to claim 1, characterized in that: Label the dataset Input to the fine-tuned model to update the second prediction layer The weight of is realized by the following formula: ; in, x represents a single observation in the distribution, l represents the true distribution, Represents the prediction distribution of the second prediction layer.
4. The method for classifying network traffic in software-defined Internet of Vehicles according to claim 1, characterized in that: Training the encoder A second prediction layer added on top The number of neurons in the labeled dataset is equal to The number of classes in .
5. The method for classifying network traffic of software-defined Internet of Vehicles according to claim 1, characterized in that: Preprocess the network traffic sample data to obtain an unlabeled data set and labeled datasets include: Take the network traffic sample data as the original data set , for the original data set Perform feature extraction to obtain feature data sets ; The feature dataset Divided into the first data set and the unlabeled data set , performing data labeling processing on the first data set to obtain a labeled data set .
6. The method for classifying network traffic of software-defined Internet of Vehicles according to claim 1, characterized in that: Collecting network traffic sample data within a set time interval in the software-defined vehicle network includes: A software system is deployed on the switch to collect data packets on the port and simultaneously collect port counters; wherein, during collection, the switch extracts data packets at a sampling rate of 1 / N on each port and collects the header and metadata of the data packets; Analyze the data of data packets to generate traffic views and obtain network traffic sample data within a set time interval.
7. The method for classifying network traffic of software-defined Internet of Vehicles according to claim 1, characterized in that: The encoder of the online network and the encoder of the target network both adopt densely connected networks.
8. A software-defined vehicle network traffic classification system, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
