Method for extracting traffic characteristics, method for quality of service scheduling, electronic device and computer-readable storage medium
The method for extracting traffic features from IP data streams addresses the challenge of identifying traffic characteristics in access networks, enabling effective QoS scheduling and enhancing network intelligence and user experience.
Patent Information
- Application Number
- JP2024512112
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-23
- Filing Date
- 2022-08-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-08-19
AI Technical Summary
Access networks lack mechanisms to identify traffic characteristics accurately, hindering effective quality of service (QoS) scheduling and network intelligence.
A method for extracting traffic features from Internet Protocol (IP) data streams, including identifying traffic characteristics and performing QoS scheduling based on these features, using a processor and computer program to analyze and schedule data traffic.
Enhances network intelligence by ensuring accurate QoS scheduling, improving user experience and network performance.
Smart Images

Figure 2024532880000001
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to Chinese Patent Application No. 202110968463.7, filed on August 23, 2021, the entire contents of which are incorporated herein by reference. [Technical field] The present application relates to the field of communications technology, and in particular to a method for extracting traffic characteristics, a quality of service scheduling method, an electronic device, and a computer-readable storage medium. [Background technology]
[0002] Identifying the traffic characteristics of an access network and scheduling Quality of Service (QoS) based on the traffic characteristics is of great significance for ensuring the quality of network traffic and improving user experience.
[0003] However, due to limitations in network architecture, some access networks lack mechanisms for identifying traffic characteristics and ensuring accurate traffic quality, which may fail to meet the needs of the advancement of network intelligence. Summary of the Invention
[0004] In a first aspect, embodiments of the present application include extracting traffic characteristic fields of an Internet Interconnection Protocol (IP) data stream; identifying traffic characteristics of the IP data stream based on the traffic characteristic field, the traffic characteristics characterizing a Quality of Service (QoS) requirement of the IP data stream.
[0005] In a second aspect, the present embodiment comprises: The present invention provides a quality of service (QoS) scheduling method, which performs QoS scheduling based on traffic characteristics of a data stream, the traffic characteristics being extracted using a traffic characteristic extraction method according to an embodiment of the present invention described in a first aspect.
[0006] In a third aspect, the present embodiment comprises: At least one processor; a memory having at least one computer program stored therein, the at least one computer program being executed by the at least one processor to cause the at least one processor to implement at least one of a method for extracting traffic characteristics according to an embodiment of the present application as described in a first aspect or a method for QoS scheduling according to an embodiment of the present application as described in a second aspect; and at least one I / O interface coupled between the processor and the memory and configured to realize information interaction between the processor and the memory.
[0007] In a fourth aspect, the present embodiment provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, realizing at least one of the method for extracting traffic characteristics according to the present embodiment described in the first aspect or the QoS scheduling method according to the present embodiment described in the second aspect. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a flow chart of a method for extracting traffic characteristics in an embodiment of the present invention. [Diagram 2] FIG. 2 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Diagram 3] FIG. 3 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 4]FIG. 4 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Diagram 5] FIG. 5 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 6] FIG. 6 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 7] FIG. 7 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 8] FIG. 8 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 9] FIG. 9 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 10] FIG. 10 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 11] FIG. 11 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 12] FIG. 12 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 13] FIG. 13 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 14] FIG. 14 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 15] FIG. 15 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 16] FIG. 16 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 17]FIG. 17 is a flow chart of some steps in a method for extracting traffic characteristics in an embodiment of the present invention. [Figure 18] FIG. 18 is a flowchart of a quality of service scheduling method in an embodiment of the present invention. [Figure 19] FIG. 19 is a block diagram of an electronic device according to an embodiment of the present invention. [Figure 20] FIG. 20 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] In order to make the technical solutions of the present application more easily understandable to those skilled in the art, the traffic feature extraction method, service quality scheduling method, electronic device, and computer-readable storage medium provided in the present application are described in detail below in combination with the accompanying drawings.
[0010] Exemplary embodiments will now be described more fully with reference to the drawings, but the described exemplary embodiments may be embodied in different forms and the present application should not be construed as being limited to the embodiments set forth herein. The purpose of providing these embodiments is to make the present application more thorough and complete, and to allow those skilled in the art to fully understand the scope of the present application.
[0011] Where not inconsistent, the embodiments and features of the embodiments of the present application may be combined with each other.
[0012] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0013] The terms used herein are used only to describe particular embodiments and are not intended to limit the present application. As used herein, the singular forms "a," "an," and "the" are intended to include the plural, unless the context clearly indicates otherwise. When the terms "comprising" and / or "comprising" are used herein, they will be understood to refer to the presence of certain features, wholes, steps, operations, parts, and / or components, but not to exclude the presence or possible addition of one or more other features, wholes, steps, operations, parts, components, and / or groups thereof.
[0014] Unless otherwise specified, the meaning of all terms (including technical and scientific terms) used herein is the same as that commonly understood by those skilled in the art. It will also be understood that terms defined in common dictionaries, unless expressly so limited herein, are to be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and are not to be interpreted as having an ideal or excessively formal meaning.
[0015] In a first aspect, referring to FIG. 1, the present embodiment provides a method for extracting traffic characteristics, including steps S100 and S200.
[0016] S100 is a step of extracting traffic characteristic fields of an Internet Protocol (IP) data stream.
[0017] S200 is a step of identifying traffic characteristics of the IP data stream based on the traffic characteristic field, the traffic characteristics characterizing a quality of service (QoS) requirement of the IP data stream.
[0018] In the method for extracting traffic characteristics provided by the embodiment of the present application, the IP data stream may be an IP data stream of periodic data traffic, or an IP data stream of aperiodic data traffic. The present application does not particularly limit this. The data traffic may be any of video traffic, large bandwidth traffic, large bandwidth low latency traffic, low latency high reliability traffic, etc. The present application also does not particularly limit this.
[0019] In the traffic characteristic extraction method provided by the embodiment of the present application, the traffic characteristics of the data traffic corresponding to the IP data stream can be characterized by the traffic characteristics of the IP data stream identified in step S200, and the QoS requirements required for the data traffic can be characterized. Therefore, QoS scheduling can be performed based on the traffic characteristics of the IP data stream identified in step S200, and the quality of the data traffic can be guaranteed.
[0020] In the method for extracting traffic characteristics provided by the embodiment of the present application, the traffic characteristic field is determined based on the traffic characteristics. The traffic characteristic field may be a field attached to the IP data stream itself, or may be calculated based on the field attached to the IP data stream. The present application does not particularly limit this.
[0021] In the method for extracting traffic characteristics provided by the embodiments of the present application, the traffic characteristic field corresponding to periodic data traffic and the traffic characteristic field corresponding to aperiodic data traffic may be the same or different, and the present application does not particularly limit this. In some embodiments, the periodic data traffic and the aperiodic data traffic may be identified, and then the corresponding traffic characteristic field may be extracted in step S100 based on the identification result.
[0022] In the traffic feature extraction method provided in the embodiment of the present application, an IP data stream is analyzed, a traffic feature field is extracted, and then a traffic feature is identified based on the traffic feature field. The traffic feature can characterize the characteristics of the data traffic corresponding to the IP data stream and the service quality requirements of the data traffic, so as to provide basis and support for network QoS scheduling, and can effectively improve the QoS experience of users, thereby realizing the intelligentization of wireless networks centric on user equipment and traffic.
[0023] In some embodiments, for aperiodic data traffic, a data block characteristic is extracted as a traffic characteristic of the IP data stream of the aperiodic data traffic, where a data block consists of consecutive non-zero messages or packets.
[0024] Correspondingly, in some embodiments, referring to FIG. 2, step S200 includes steps S210 and S220.
[0025] S210 is a step of identifying a data block characteristic of at least one data block in the IP data stream based on the traffic characteristic field.
[0026] S220 is a step of calculating a data block feature statistic based on the data block feature of each of the data blocks, and taking the data block feature statistic as the traffic feature of the IP data stream.
[0027] The present embodiment does not particularly limit the data block feature of the data block. For example, for non-periodic traffic such as video traffic, large bandwidth traffic, large bandwidth low latency traffic, and low latency high reliability traffic, the arrival delay and / or data block size of the data block are the data block features. In the traffic feature extraction method provided by the present embodiment, each data block corresponds to one request (GET) message, the arrival delay of the data block is the delay of the arrival time of the first packet (start packet) of the data block relative to the arrival time of the GET message, and the block size is the sum of the sizes of all packets of the data block.
[0028] In the traffic feature extraction method provided by the embodiments of the present application, in some embodiments, a content-length field is attached to the IP data stream, and the value of the content-length field indicates the size of the data block, and the size of the data block can be identified by extracting the content-length field attached to the IP data stream; in some embodiments, no content-length field is attached to the IP data stream, and the size of the data block can be identified by extracting the size information of each packet of the data block.
[0029] Correspondingly, in some embodiments, referring to FIG. 3, the data block characteristics include a data block size and an arrival delay of the data block, and step S100 includes steps S110 to S130.
[0030] S110 is a step of extracting the timestamp of the request (GET) message and the timestamp of the starting packet of the data block.
[0031] S120 is a step of extracting a content length field if the data block includes an HTTP / 1.1 field or an HTTP / 1.0 field, where the content length field characterizes a data block size of the data block.
[0032] S130 extracts size information of all packets of the data block when the data block does not include an HTTP / 1.1 field and an HTTP / 1.0 field.
[0033] In step S110, the timestamp of the GET message and the timestamp of the start packet of the data block are identified, and the arrival delay of the data block can be obtained by subtracting these two timestamps.
[0034] In addition, in an IP data stream, the content length field corresponds to the HTTP / 1.1 field or HTTP / 1.0 field, that is, if an HTTP / 1.1 field or HTTP / 1.0 field is added to an IP data stream, the content length field is also added. On the other hand, the format of the HTTP / 1.1 field or HTTP / 1.0 field is fixed and is located at the beginning of the payload of the Transmission Control Protocol (TCP), making it easier to identify than the content length field. In step S120, the data block size can be specified by extracting the content length field, and in step S130, the size information of all packets of the data block is extracted and accumulated to obtain the data block size.
[0035] In some embodiments, it is first necessary to identify the GET message and the starting packet of the data block. In some embodiments, the GET message is identified by a GET field. The data block corresponding to the GET message follows the GET message, and the GET message is identified before the starting packet of the data block is identified.
[0036] The present application does not particularly limit how the start packet of the data block is identified after identifying the GET message. In some embodiments, the start packet of the data block is identified based on the correspondence between the SEQ field value and the LEN field value in the GET message and the ACK field value in the packet.
[0037] In some embodiments, referring to FIG. 4, before extracting the timestamp of the request (GET) message and the timestamp of the starting packet of the data block (ie, step S110), step S100 further includes steps S141-S143.
[0038] S141 is a step of identifying the GET message based on a GET field. S142 is a step of extracting the SEQ field value and the LEN field value from the GET message.
[0039] S143 is a step of identifying the first packet after the GET message, whose ACK field value is equal to the sum of the SEQ field value and the LEN field value, as the start packet.
[0040] Note that all packets whose ACK field value after a GET message is equal to the sum of the SEQ field value and the LEN field value are packets of the data block corresponding to the GET message. Therefore, after obtaining the sum of the SEQ field value and the LEN field value, all packets of the data block can be identified by the ACK field, and the size of each packet is accumulated to obtain the data block size.
[0041] In some embodiments, the start and end packets (last packets) of a data block are identified based on packet length.
[0042] Correspondingly, in some embodiments, referring to FIG. 5, before extracting the timestamp of the request (GET) message and the timestamp of the starting packet of the data block (i.e., step S110), step S100 further includes steps S151 and S152.
[0043] S151 is a step of identifying the GET message based on a GET field. S152 is a step of identifying the first packet after the GET message, the length of which is greater than a preset length, as the start packet.
[0044] In some embodiments, a final packet of the data block may be further identified, for example, by identifying a packet whose length is less than the second preset length and greater than the third preset length as the final packet. The sizes of all packets between the start packet and the final packet are accumulated to obtain the data block size.
[0045] In some embodiments, referring to FIG. 6, the data block characteristic statistics include data block size statistics and arrival delay statistics, and step S220 includes steps S221 and S222.
[0046] S221 is a step of generating at least one traffic feature table based on a data block size and an arrival delay of the at least one data block, where each of the data blocks corresponds to one traffic feature table entry of the traffic feature table.
[0047] S222 is a step of calculating an average value of data block sizes in the traffic characteristics table to obtain the data block size statistics value, and calculating an average value of arrival delays in the traffic characteristics table to obtain the arrival delay statistics value when a preset statistical condition is satisfied.
[0048] In some embodiments, referring to FIG. 7, step S220 further includes step S223.
[0049] S223 is a step of determining the number of traffic feature table entries in the traffic feature table, and indicating that the preset statistical condition is met when the number of traffic feature table entries in the traffic feature table reaches a preset quantity threshold.
[0050] In some embodiments, the preset quantity threshold is the capacity of the traffic feature table. The present application does not limit the preset quantity threshold, for example, the preset quantity threshold is 10,000.
[0051] In some embodiments, referring to FIG. 8, step S220 further includes step S224.
[0052] S224 is a step of starting a timer, and indicating that the preset statistical condition is met when the timer reaches a preset time threshold.
[0053] The method for extracting traffic characteristics provided by the embodiments of the present application can also be used to extract traffic characteristics of IP data streams with periodic traffic.
[0054] Correspondingly, in some embodiments, referring to FIG. 9, step S200 includes steps S230 to S250.
[0055] S230 is a step of identifying a traffic type of the IP data stream based on the traffic characteristic field.
[0056] S240 is a step of calculating data block statistical characteristics of data blocks in the IP data stream based on a traffic type of the IP data stream.
[0057] S250 is the step of identifying traffic characteristics of the IP data stream based on the data block statistical characteristics.
[0058] In some embodiments, referring to FIG. 10, step S230 includes steps S231 and S232.
[0059] S231 is a step of calculating message statistical characteristics of the message based on the traffic characteristic field.
[0060] S232 is a step of identifying a traffic type of the IP data stream based on the message statistical characteristics.
[0061] In some embodiments, referring to FIG. 11, the traffic characteristics field includes message information of messages in the IP data stream, step S231 includes step S2311 and step S2312, and step S232 includes step S2321.
[0062] S2311 is a step of generating a message information table based on message information of at least one message.
[0063] S2312 is a step of calculating an expected value of the message size in the message information table based on the message size information of each message in the message information table, and obtaining the message statistical characteristics.
[0064] S2321 is a step of comparing the message statistics characteristic with a message size threshold, and if the message statistics characteristic exceeds the message size threshold, the traffic type of the IP data stream is one of a first type of traffic, a second type of traffic, and a first non-periodic traffic, and if the message statistics characteristic does not exceed the message size threshold, the traffic type of the IP data stream is one of a third type of traffic, a fourth type of traffic, and a second non-periodic traffic.
[0065] In addition, in the traffic characteristic extraction method provided by the embodiment of the present application, the first type of traffic is large bandwidth traffic and has multiple block size characteristics, the second type of traffic is large bandwidth low latency traffic and has multiple data block interval characteristics, the third type of traffic is upstream low latency high reliability traffic and has low periodic message characteristics, the fourth type of traffic is downstream low latency high reliability traffic and has low periodic message characteristics, and the first aperiodic traffic and the second aperiodic traffic have no obvious characteristics.
[0066] In some embodiments, referring to FIG. 12 , the traffic characteristics field further includes data block information of data blocks in the IP data stream, and if the traffic type of the IP data stream is one of a third traffic, a fourth traffic, and a second non-periodic traffic, step S240 includes steps S241 and S242, and step S250 includes steps S251 to S253.
[0067] S241 is a step of generating a data block information table based on data block information of a plurality of data blocks.
[0068] S242 is a step of calculating a standard difference of data block intervals in the data block information table based on data block interval information of a plurality of data blocks in the data block information table, to obtain the data block statistical characteristics.
[0069] S251 is a step of comparing the standard difference between data block intervals with a standard difference threshold for data block intervals.
[0070] S252 is a step of calculating a bandwidth characteristic and a maximum packet size characteristic of the IP data stream whose traffic type is the second non-periodic traffic if the data block interval standard difference exceeds the data block interval standard difference threshold, and obtaining the traffic characteristic.
[0071] S253 is a step of calculating a periodicity characteristic, a data block size characteristic, a bandwidth characteristic, and a maximum packet size characteristic of the IP data stream whose traffic type is the third type traffic or the fourth type traffic, to obtain the traffic characteristics, if the data block interval standard difference does not exceed the data block interval standard difference threshold.
[0072] In some embodiments, referring to FIG. 13, the traffic characteristics field further includes data block information of data blocks in the IP data stream, and if the traffic type of the IP data stream is one of a first type of traffic, a second type of traffic, and a first non-periodic traffic, step S240 includes steps S243 and S244, and step S250 includes steps S254 to S256.
[0073] S243 is a step of generating a data block information table based on the data block information of a plurality of data blocks.
[0074] S244 is a step of calculating the data block standard difference in the data block information table according to the data block size information of the plurality of data blocks in the data block information table, and obtaining the data block statistical characteristics.
[0075] S254 is a step of identifying a traffic type of the IP data stream based on the data block size standard difference.
[0076] S255 is a step of calculating a bandwidth characteristic and a maximum packet size characteristic of the IP data stream whose traffic type is the first aperiodic traffic to obtain the traffic characteristic if the traffic type of the IP data stream is the first aperiodic traffic.
[0077] S256 is a step of identifying the traffic characteristics by clustering based on the traffic type of the IP data stream if the traffic type of the IP data stream is a first type of traffic or a second type of traffic.
[0078] In some embodiments, referring to FIG. 14, step S254 includes step S2541. S2541 is the step of comparing the data block size standard difference with a first data block size standard difference threshold and a second data block size standard difference threshold, and if the data block size standard difference exceeds the second data block size standard difference threshold, the traffic type of the IP data stream is a first non-periodic traffic, if the data block size standard difference does not exceed the second data block size standard difference threshold and exceeds the first data block size standard difference threshold, the traffic type of the IP data stream is a first type of traffic, and if the data block size standard difference does not exceed the first data block size standard difference threshold and the second data block size standard difference threshold, the traffic type of the IP data stream is a second type of traffic.
[0079] In some embodiments, referring to FIG. 15, if the traffic type of the IP data stream is a first type of traffic, step S256 includes steps S2561 and S2562.
[0080] S2561 is a step of clustering the data block information of the plurality of data blocks in the data block information table according to the data block size information to obtain a first clustering result.
[0081] S2562 is a step of identifying the traffic characteristics based on the first clustering result.
[0082] In some embodiments, referring to FIG. 16, if the traffic type of the IP data stream is a second type of traffic, step S256 includes steps S2563 and S2564.
[0083] S2563 is a step of clustering the data block information of the plurality of data blocks in the data block information table according to the data block interval information to obtain a second clustering result.
[0084] S2564 is a step of identifying the traffic characteristics based on the second clustering result.
[0085] In some embodiments, referring to FIG. 17, step S230 includes step S233. S233 is a step of identifying a traffic type of the IP data stream based on a traffic type field in the traffic characteristic field.
[0086] In a second aspect, referring to FIG. 18, the present embodiment provides a Quality of Service (QoS) scheduling method, which includes step S300.
[0087] S300 is a step of performing QoS scheduling based on traffic characteristics of a data stream, the traffic characteristics being extracted by the method for extracting traffic characteristics according to the embodiment of the present application described in the first aspect.
[0088] In the service quality scheduling method provided in the present embodiment, network QoS scheduling can be performed based on the traffic features extracted by the extraction method provided in the first aspect of the present embodiment, thereby effectively improving the user's QoS experience and realizing intelligent wireless networks centered on user equipment and traffic.
[0089] In a third embodiment, referring to FIG. 19, the present embodiment includes: At least one processor 101 (only one shown in FIG. 19 ); a memory 102 storing at least one computer program, the at least one computer program being executed by the at least one processor 101 to cause the at least one processor 101 to implement at least one of a method for extracting traffic characteristics according to an embodiment of the present application as described in the first aspect or a method for QoS scheduling according to an embodiment of the present application as described in the second aspect; At least one I / O interface 103 is connected between the processor 101 and the memory 102 and configured to realize information interaction between the processor 101 and the memory 102.
[0090] The processor 101 is a device having data processing capabilities, including but not limited to a central processor (CPU), etc. The memory 102 is a device having data storage capabilities, including but not limited to a random access memory (RAM, more specifically SDRAM, DDR, etc.), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory (FLASH), etc. The I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and enables information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus), etc.
[0091] In some embodiments, the processor 101, memory 102, and I / O interface 103 are connected to each other and to other components of the computing device via a bus 104.
[0092] In a fourth aspect, referring to FIG. 20, the present embodiment provides a computer-readable storage medium having a computer program stored therein, the computer program, when executed by a processor, realizing at least one of the traffic feature extraction method according to the present embodiment described in the first aspect or the QoS scheduling method according to the present embodiment described in the second aspect.
[0093] In order to enable those skilled in the art to more clearly understand the technical solutions provided by the embodiments of the present application, the technical solutions provided by the embodiments of the present application will be described in detail below using specific examples.
[0094] Example 1 This example provides a method for extracting features of aperiodic data traffic, including identifying and extracting feature fields in a data stream, calculating traffic features of the data stream based on the identification and extraction results, and outputting statistical results.
[0095] The extracting and identifying characteristic fields in the data stream includes identifying and extracting an IP 5-tuple (i.e., source IP address, source port, destination IP address, destination port, transport layer protocol), a GET field, an HTTP / 1.1 field or an HTTP / 1.0 field, a Content-Length field, a data block start message, a data block end message, and an arrival time of the message corresponding to each characteristic field in the data stream.
[0096] Calculating traffic characteristics of the data stream based on the extracted and identified characteristic fields includes identifying a GET message based on the GET field, calculating an arrival time of the data block based further on the GET message arrival time and the data block start message arrival time, directly extracting a size of the data block based on an HTTP / 1.1 field or HTTP / 1.0 field and a Content-Length field in the message, obtaining a data block size by cumulatively adding based on the data block start message and the data block end message, and calculating a duration of the data block based on a difference between the data block start message arrival time and the data block end message arrival time.
[0097] The outputting of the statistical results includes adopting a statistical method to classify and summarize all received packets according to IP 5-tuple, and generating a traffic characteristic table, the traffic characteristic table including a plurality of records of current traffic streams, each record including a data block arrival delay and a data block size.
[0098] In some embodiments, when the traffic characteristic table is filled, average values are calculated for the data block arrival delays and data block sizes in the traffic characteristic table to obtain a statistical result, ie, the traffic characteristic of the current IP data stream.
[0099] In some embodiments, when the timer times out, an average value is calculated for the existing data block arrival delays and data block sizes in the traffic characteristic table to obtain a statistical result, ie, the traffic characteristic of the current IP data stream.
[0100] Example 2 This example provides a method for extracting features of periodic data traffic, including extracting IP data messages, calculating message statistical features and comparing them with corresponding message statistical feature thresholds, calculating data block statistical features based on traffic types, comparing the data block statistical features with corresponding data block statistical feature thresholds, distinguishing traffic types to calculate data block statistical features, and outputting traffic features of data streams; alternatively, selecting an appropriate clustering method for clustering, performing statistics based on the clustering results, and outputting the statistical results.
[0101] Extracting the IP data message includes writing the IP data message information into a message information table, which includes information such as a message serial number, a message arrival time, a message size, and a message direction.
[0102] The step of calculating the message statistical feature and comparing it with the corresponding message statistical feature threshold includes extracting and calculating the statistical value of the message in the message information table, and comparing it with the message size threshold to initially distinguish the traffic type, where if the message size threshold is exceeded, it is the first type of traffic, the second type of traffic, or the first non-periodic traffic, and if the message size threshold is not exceeded, it is the third type of traffic, the fourth type of traffic, or the second non-periodic traffic.
[0103] The first type of traffic is high bandwidth traffic and has multiple block size characteristics.
[0104] The second type of traffic is high bandwidth, low latency traffic, characterized by multiple data block intervals.
[0105] The third type of traffic is upstream low-latency and high-reliability traffic, characterized by messages with low periodicity.
[0106] The fourth type of traffic is downstream low-delay and high-reliability traffic, characterized by messages with low periodicity.
[0107] The first and second aperiodic traffic have no obvious characteristics. The calculating of the data block statistical characteristics based on the traffic type includes: If the traffic is a first type traffic, a second type traffic, or a first non-periodic traffic, generating a corresponding data block information table, extracting data block size information, and calculating data block size statistics, including but not limited to a data block size expectation value and a data block size standard difference; if the traffic is a third type traffic, a fourth type traffic, or a second non-periodic traffic, generating a corresponding data block information table, extracting data block interval information, and calculating data block interval statistics, including but not limited to a data block interval expectation value and a data block interval standard difference.
[0108] The step of comparing the data block statistical features with corresponding data block statistical feature thresholds, distinguishing traffic types, calculating data block statistical features, and outputting traffic features of the data stream includes: comparing the standard difference of the data block intervals with a standard difference threshold of the data block intervals, and if the standard difference threshold of the data block intervals is not exceeded, the traffic is a third type or a fourth type, and calculating expected values of the data block sizes, bandwidths and maximum packet sizes of the third type traffic and the fourth type traffic, respectively, extracting the expected value of the data block intervals, and outputting it as a traffic characteristic of the data stream; and if the standard difference threshold of the data block intervals is exceeded, the traffic is a second non-periodic traffic, and recording the data block size and data block interval as 0, calculating the bandwidth and maximum packet size, and outputting it as a traffic characteristic of the data stream.
[0109] The above comparing the data block statistical features with corresponding data block statistical feature thresholds, distinguishing traffic types, calculating data block statistical features, and outputting traffic features of the data stream, or selecting a suitable clustering scheme for clustering, may include: the method further includes: comparing the data block size standard difference with a second data block size standard difference threshold, and if the data block size standard difference does not exceed the second data block size standard difference threshold, determining that the traffic is a first type or a second type; comparing the data block size standard difference with a first data block size standard difference threshold, and if the data block size standard difference threshold is exceeded, determining that the traffic is a second type, generating a second type traffic data block information table and clustering according to data block intervals; if the data block size standard difference threshold is exceeded, determining that the traffic is a first type, generating a first type traffic data block information table and clustering according to data block size; if the data block size standard difference threshold is exceeded, determining that the traffic is a first non-periodic traffic, marking the data block size and the data block interval as 0, calculating a bandwidth and a maximum packet size, and outputting them as traffic characteristics of the data stream.
[0110] The performing of statistics based on the clustering results and outputting the statistical results includes: if the traffic is a first type, calculating an expected value of a data block size and a data block interval of each clustering data based on the data block size clustering result, calculating a bandwidth and a maximum packet size, and outputting the results as traffic characteristics of the data stream; if the traffic is a second type, calculating an expected value of a data block size and a data block interval of each clustering data based on the data block interval clustering result, calculating a bandwidth and a maximum packet size, and outputting the results as traffic characteristics of the data stream; if the traffic is a non-periodic traffic, setting the data block size and data block interval to 0, calculating a bandwidth and a maximum packet size, and outputting the results as traffic characteristics of the data stream.
[0111] Example 3 This example provides an aperiodic traffic feature identification device, which includes an online analysis module, an offline module, and a prediction module.
[0112] In this example, the input is an initial IP data stream. The input IP data stream is copied to obtain two IP data streams, one is input to the online analysis module and one is input to the offline module, and the output is the traffic characteristics of the IP data stream, including data block size and data arrival delay.
[0113] The online analysis module is configured to complete real-time packet analysis, identify message GET fields, identify message HTTP / 1.1 fields, extract packet size information, and simultaneously read the predicted arrival time from the offline module.
[0114] The offline module is configured to identify message GET fields, identify message HTTP / 1.1 fields, identify data block start packets and data block end packets, extract or calculate data block size information, calculate the time interval between the GET message and the data start packet, and build and maintain a traffic feature library.
[0115] The prediction module is configured to output the data block size (obtained by parsing a special field or by calculation) and the delay between the request (GET) message and the first packet (obtained by calculation).
[0116] The traffic feature library consists of multiple traffic feature tables, and the general traffic feature table structure is shown in Table 1.
[0117] [Table 1]
[0118] The traffic characteristics table includes the following: ●Combination of server IP address + server port number + protocol number (App IP + App port + protocol): Server IP address + server port number + protocol number analyzed from the IP 5-tuple of the message. Server IP address + server port number + protocol number (App IP + App port + protocol) in the same traffic feature table are the same, and the capacity of each table is expressed as the traffic feature table capacity (tableLength), with the default value being 10000, which indicates that the traffic feature table can record 10000 analysis records in the same traffic stream. If the number of traffic feature tables is expressed as the number of tables (tableNum), the capacity of the entire feature library is the number of tables (tableqiNum) x the table capacity per table (tableLength).
[0119] ● Data block size: The data block size corresponding to the current GET request message.
[0120] Delay: The delay between the current request (GET) message and the first packet of the corresponding data block.
[0121] ● Application Identification (APP tag): Used to identify the video application (APP) to which the traffic stream belongs.
[0122] Traffic feature table update: Adopting a first-in, first-out method, newly received data is written to the end of the traffic feature table, dynamically maintaining a maximum of 10,000 records.
[0123] Message GET field: The GET keyword is in the first three bytes of the HTTP message. Its ASCII encoding is 47,4554 (hexadecimal). The HTTP message is packaged into a TCP message after adding a TCP header, and the TCP message is packaged into an IP message after adding an IP header. The IPv6 message header length is 40 bytes, the IPv4 message header length is 20 bytes, and the TCP message header length is 20 bytes.
[0124] When identifying the GET field, for an IPv6 message, it can detect whether bytes 61 to 63 of the IPv6 message are 47 45 54 (hexadecimal), and for an IPv4 message, it can detect whether bytes 41 to 43 of the IPv4 message are 47 45 54 (hexadecimal).
[0125] Message HTTP / 1.1 field: Traverse the analysis packet from the message following the GET message. If the packet payload contains an 'HTTP / 1.1' field, it indicates that the packet contains data block size information, and extract the value of the Content-Length field in the payload. The value of this field corresponds to the data block size of the current GET request message.
[0126] The ASCII encoding for HTTP / 1.1 is 48 54 54 50 2f 31 2e 31 (in hexadecimal) and is found in the first eight bytes of the TCP payload. Similar to the GET field identification scheme, for an IPv6 message, it can be detected if bytes 61 through 68 of an IPv6 message are 48 54 54 50 2f 31 2e 31. For an IPv4 message, it can be detected if bytes 61 through 68 of an IPv4 message are 48 54 54 50 2f 31 2e 31.
[0127] The first packet of a data block can be identified using two methods: Method 1: Traverse the analysis packets from the message following the GET message. If the packet length exceeds 1400 bytes, it is determined that the current message is the first packet of a data block.
[0128] Method 2: Step 1: Extract the Seq and Len field values in the GET message, and sum the two field values, where the Seq field is the serial number of the TCP message field, and the Len field is the total length field of the IP message, which includes the length of the header and data; and Step 2: Traverse the analysis packets from the message following the GET message. If it is detected that the Ack field value in the message is equal to the sum of the Seq field value and Len field value of the GET message in step 1, it is determined that the current message is the first packet of a data block.
[0129] Two methods are used to identify the end of data block packets: Method 1: Traverse the analysis packet from the message next to the GET data. If the packet length is more than 150 bytes but less than 1000 bytes, it is determined to be the end packet of the current data block.
[0130] Method 2: Step 1: Extract the Seq and Len field values in the GET message, and sum the two field values, where the Seq field is the serial number of the TCP message field, and the Len field is the total length field of the IP message, which includes the length of the header and data; and Step 2: Traverse the analysis packets from the message following the GET message, and if it is found that the Ack field value in the message is equal to the sum of the Seq field value and Len field value of the GET message in step 1, mark all packets that satisfy the above condition, and the last packet is a data block end packet.
[0131] Block size: There are two calculation methods corresponding to the packet size (data size) field in Table 1:
[0132] Method 1 (the message payload contains an 'HTTP / 1.1' field) The Content-Length field value in the packet payload is directly read, and the value corresponds to the data block size of the current GET request message.
[0133] Method 2 (the message payload does not contain the 'HTTP / 1.1' field) All packets between the first packet of the current data block and the end packet of the data block are cumulatively added, and the resulting value corresponds to the data block size of the current GET request message.
[0134] Data arrival delay: Corresponding to the data arrival delay field in Table 1, obtain the timestamp of each GET message in the current IP data stream and the first packet of the data block corresponding to that GET message, and subtract the two timestamps to obtain the data block delay.
[0135] Data block size and expected delay: When Table 1 is created, a timer is started (tabelUPDateTimer) (default: 60 s), and when the timer times out, the following process is completed.
[0136] Clear the timer (tabelUPDateTimer) and then restart it. Calculate the average value of all packet sizes (data size) currently in Table 1, and update the current data block size statistic (avg_size).
[0137] The average value of all data arrival delays (delay) in the current Table 1 is calculated, and the current data delay statistic (avg_delay) is updated.
[0138] Example 4 In this example, The present invention provides a method for extracting features of periodic traffic, including: extracting IP data messages, calculating message statistical features and comparing them with corresponding message statistical feature thresholds; calculating data block statistical features based on traffic types; comparing the data block statistical features with corresponding data block statistical feature thresholds; and further distinguishing traffic types, calculating data block statistical features and outputting traffic features of data streams; or selecting an appropriate clustering method to perform clustering, performing statistics based on the clustering results, and outputting the statistical results.
[0139] The extracting of the IP data message includes writing the IP data message information into a message information table, which is used to record the captured initial message information, including message arrival number (pktNo), message arrival time (pktTstp), message size (pktSize), message direction (pktDir), etc. The message direction (pktDir) refers to the sending direction of the message, where upstream is UL and downstream is DL.
[0140] The message information table consists of 10 data slices (sections), and the capacity of each slice (section capacity) is set to 1000 by default. The statistics table is filled by capturing one data slice message from the IP data stream each time, capturing a total of 10 data slices. After the statistics table is filled, when a new data slice is captured, the data slice with the smallest number in the statistics table (section 1 slice) is discarded, and the new data slice is added to the end of the statistics table. The general structure of the message information table is shown in Table 2.
[0141] [Table 2]
[0142] said calculating message statistical characteristics and comparing said message statistical characteristics to corresponding message statistical characteristic thresholds; and calculating based on the message information in the message information table when the message information table is filled. In some embodiments, when the timer times out, if the message information table is not filled, calculating based on the existing message information in the message information table, and the calculation method is as follows:
[0143] The non-zero values of the message size (pktSize) field in the message information table are extracted, the expected value (pktSizeNAvg) of the extracted non-zero message is calculated, and compared with the message size threshold (pktSizeThr) (default: 200 bytes) to perform a preliminary distinction between traffic types. If the expected value (pktSizeNAvg) of the non-zero message exceeds the message size threshold (pktSizeThr), it is the first type of traffic, the second type of traffic, or the first non-periodic traffic; if it does not exceed the message size threshold, it is the third type of traffic, the fourth type of traffic, or the second non-periodic traffic.
[0144] The first type of traffic is large bandwidth traffic, which has multiple data block size characteristics, such as video surveillance, online live services, etc.
[0145] The second type of traffic is high bandwidth, low latency traffic, characterized by multiple data block intervals, such as high definition images taken by production line cameras and uploaded to a server for real-time quality inspection.
[0146] The third type of traffic is upstream low-latency and high-reliability traffic, which has message characteristics with low periodicity, such as data collected by sensors on a production line or in a park.
[0147] The fourth type of traffic is downstream low-latency and high-reliability traffic, which has message characteristics with low periodicity, such as when a production line issues an operation control command to control the operation of a mechanical arm.
[0148] The first and second aperiodic traffic are traffics with no obvious periodicity, and do not have periodic characteristics such as noise and interference.
[0149] said calculating a data block statistical characteristic based on a traffic type includes: For the first type traffic, the second type traffic, or the first non-periodic traffic, generating a data block information table and extracting data block size information to calculate data block size statistics, including but not limited to a data block size expectation (dbSizeAvg) and a data block size standard difference (dbSizeStd); for the third type traffic, the fourth type traffic, or the second non-periodic traffic, generating a corresponding data block information table and extracting data block interval information to calculate data block interval statistics, including but not limited to a data block interval expectation (dbItvlAvg) and a data block interval standard difference (dbItvlStd).
[0150] The data block information table is used to record data block information, where the data block consists of consecutive non-zero messages. The data block information includes data block number (dbNo), start time (dbStart), end time (dbEnd), data block size (dbSize), data block interval (dbItvl), and data block duration (dbDu). dbStart is the message time of the first packet in the data block, and dbEnd is the message time of the end packet in the data block. When constructing the data block information table, the following five types of block information tables (traffic types 0 to 4) are generated according to the traffic type ID (serviceTypeID) label.
[0151] serviceTypeID=0, non-periodic traffic, serviceTypeID=1, the first type of traffic, serviceTypeID=2, the second type of traffic, serviceTypeID=3, the third type of traffic, serviceTypeID=4, the fourth type of traffic.
[0152] Table 3 shows a block information table for the first type of traffic (serviceTypeID=1).
[0153] [Table 3]
[0154] The data block start time is the arrival time of the first packet of the data block. The arrival time of the first packet of the data block can be specified by the following method.
[0155] For the first and second types of traffic: If the message length is greater than bPktThr (default: 1468 bytes), it is determined to be the first packet of a data block, and the data block first packet time dbStart is recorded.
[0156] For the third and fourth types of traffic: If the length of three consecutive messages is greater than sPktThr (default: 64 bytes), the first of the three consecutive messages is determined to be the first packet of a data block, and the time of the first packet of the data block, dbStart, is recorded.
[0157] The end time of the data block is the arrival time of the data block end packet. The arrival time of the data block end packet can be determined in the following manner.
[0158] After identifying the data block head packet, traverse is started from the message next to the data block head packet.
[0159] For the first and second types of traffic: If the message length is less than bPktThr (default: 1468 bytes), determine it as a data block end packet and record the data block end packet time dbEnd.
[0160] For the third and fourth types of traffic: If the message length is not larger than sPktThr (default: 64 bytes), determine it as a data block end packet and record the data block end packet time dbEnd.
[0161] The data block size (dbSize) is the cumulative sum of the message sizes of multiple consecutive messages that meet the condition. In this example, the data block size is obtained by cumulatively adding the lengths of all data packets between the first packet of the current data block and the current data block end packet.
[0162] The data block interval (dbItvl): The first packet times of two adjacent data blocks are subtracted to obtain the data block interval.
[0163] The data block duration (dbDu): The arrival time of the first packet of the data block is subtracted from the arrival time of the end packet of the same data block.
[0164] said comparing said data block statistical feature to a corresponding data block statistical feature threshold value to further distinguish between traffic types; It includes comparing the data block interval standard difference (dbItvlStd) with the data block interval standard difference threshold (dbItvlStdthr), and if dbItvlStd does not exceed the threshold dbItvlStdthr, it is the third type of traffic or the fourth type of traffic. The third type of traffic is upstream traffic, and the fourth type of traffic is downstream traffic, and the feature calculation method for the two types of traffic is the same. The feature calculation method is as follows:
[0165] Periodic feature: The expected value of the data block interval (dbItvlAvg) is extracted and used as the periodic feature of the data stream. The output method is as shown in Table 4.
[0166] [Table 4]
[0167] Data block size feature: The expected value of the data block size (dbSizeAvg) is extracted and used as the block size feature of the data stream. The output method is as shown in Table 5.
[0168] [Table 5]
[0169] Bandwidth characteristics: The amount of data (sum of packets) generated by the corresponding traffic type in 2000 millisecond intervals, that is, the bandwidth value, is calculated, and the statistical average value of the multiple bandwidth values obtained is calculated to obtain the bandwidth characteristics of the data stream. The output method is as shown in Table 6.
[0170] [Table 6]
[0171] Maximum packet size feature: Traverse the maximum pktSize value of the corresponding traffic type message in the packet statistics table to obtain the maximum packet size feature of the data stream. The output method is shown in Table 7.
[0172] [Table 7]
[0173] If dbItvlStd exceeds the threshold dbItvlStdthr, it is the second non-periodic traffic, and the characteristic calculation method thereof is as follows.
[0174] Periodic characteristics: 0. The output method is as shown in Table 4. Data block size characteristics: 0. The output method is as shown in Table 5.
[0175] Bandwidth characteristics: The amount of data generated by non-periodic traffic, i.e., the bandwidth value, is collected in 2000 millisecond intervals, and the statistical average of the multiple bandwidth values obtained is calculated to obtain the bandwidth characteristics. The output method is as shown in Table 6.
[0176] Maximum packet size feature: Traverse the maximum pktSize value corresponding to the message of the non-periodic traffic type in the packet statistics table to obtain the maximum packet size feature of the data stream. The output method is as shown in Table 7.
[0177] The step of comparing the data block statistical features with a corresponding data block statistical feature threshold value, further distinguishing traffic types, and calculating the data block statistical features to output a traffic feature of the data stream includes: The method further includes comparing the standard difference of data block size (dbSizeStd) with a second standard difference threshold of data block size (dbSizeStdthr2) (default: 2*pktSizeNAvg). If dbSizeStd does not exceed dbSizeStdthr2, it is the first type or the second type of traffic, and further judgment is required. If it exceeds dbSizeStdthr2, it is the first non-periodic traffic, and the characteristic calculation method is as follows:
[0178] Periodic characteristics: 0. The output method is as shown in Table 4. Data block size characteristics: 0. The output method is as shown in Table 5.
[0179] Bandwidth characteristics: The amount of data generated by non-periodic traffic, i.e., the bandwidth value, is collected in 2000 millisecond intervals, and the statistical average of the multiple bandwidth values obtained is calculated to obtain the bandwidth characteristics. The output method is as shown in Table 6.
[0180] Maximum packet size feature: Traverse the maximum pktSize value corresponding to the message of the non-periodic traffic type in the packet statistics table to obtain the maximum packet size feature of the data stream. The output method is as shown in Table 7.
[0181] The above-mentioned selecting an appropriate clustering method, performing clustering, performing statistics based on the clustering results, and outputting the statistical results are The method includes comparing a standard difference of data block sizes (dbSizeStd) with a first standard difference threshold of data block sizes (dbSizeStdthr 1) (default: 0.5*pktSizeNAvg); if dbSizeStd does not exceed dbSizeStdthr 1, it is a second type of traffic, and a second type of traffic block information table is generated and clustering is performed according to a data block interval (dbItvl); if dbSizeStd exceeds dbSizeStdthr 1, it is a first type of traffic, and a first type of traffic block information table is generated and clustering is performed according to a data block size (dbSize).
[0182] For clustering, an unsupervised clustering method is adopted. For the first type of traffic, clustering is performed according to the data block size (dbSize). In this example, the number of traffic periods of the first type is 2, and the K-means clustering algorithm is used to collect statistics on the labels corresponding to each data block size (dbSize) and generate a new statistical table. Each new statistical table records the category to which the current data block size (dbSize) belongs and the statistical data of the cluster center, which is the expected value of dbSize.
[0183] The K-means clustering (k-means) algorithm uses the python sklearn.cluster.KMeans function, with the nclusters parameter set to 2 and the remaining parameters set to default.
[0184] For the second type of traffic, dbItvl is clustered. Since the number of periods is unknown, clustering is performed using the mean_shift algorithm, and the number of aggregated categories is the number of periods. The labels corresponding to each data block interval (dbItvl) are statistically generated, and a new statistical table is generated. Each new statistical table records the category to which the current data block interval (dbItvl) belongs and the statistical data of the cluster center, which is the expected value of dbItvl.
[0185] The mean_shift algorithm uses the python sklearn.cluster.MeanShift function with default parameters.
[0186] For the first type of traffic, clustering is performed based on the data block size (dbSize). For each clustering data, the expected value (dbItvlAvg) of the data block interval (dbItvl) is calculated as the periodic feature, and the output format of the periodic feature is shown in Table 4. For each cluster data, the cluster center is used as the data block size feature, and the output format of the block size feature is shown in Table 5. For each cluster data, the amount of data generated within 2000 milliseconds, that is, the bandwidth, is statistically calculated, and the statistical average value of the multiple bandwidth values obtained is calculated to obtain the bandwidth feature. The output format of the bandwidth characteristic is shown in Table 6. For each cluster data, the maximum pktSize value of the corresponding traffic type message in the packet statistics table is traversed to obtain the maximum packet size feature of the data stream. The output format of the maximum packet size feature is shown in Table 7.
[0187] For the second type of traffic, clustering is performed based on the data block interval (dbItvl). For each cluster data, the cluster center is taken as the periodic feature, and the output format of the periodic feature is shown in Table 4. For each cluster data, the expected value (dbSizeAvg) of the data block size (dbSize) is calculated and taken as the data block size feature, and the output format of the data block size feature is shown in Table 5. For each cluster data, the amount of data generated within 2000 milliseconds, that is, the bandwidth value, is statistically collected, and the statistical average value of the multiple bandwidth values obtained is calculated to obtain the bandwidth feature. The output format of the bandwidth characteristic is shown in Table 6. For each cluster data, the maximum pktSize value of the corresponding traffic type message in the packet statistics table is traversed to obtain the maximum packet size feature of the data stream. The output format of the maximum packet size feature is shown in Table 7.
[0188] For the first non-periodic traffic, the data block interval statistic is set to 0 to be the periodicity feature, and the output format of the periodicity feature is as shown in Table 4. The data block size statistic is set to 0 to be the data block size feature, and the output format of the data block size is as shown in Table 5. The amount of data generated within 2000 milliseconds, i.e., the bandwidth value, is collected as statistics, and the statistical average value of the multiple bandwidth values obtained is calculated to obtain the bandwidth feature. The output format of the bandwidth feature is as shown in Table 6. The maximum pktSize value of the corresponding traffic type message in the packet statistics table is traversed to obtain the maximum packet size feature of the data stream. The output format of the maximum packet size feature is as shown in Table 7.
[0189] Those skilled in the art will understand that all or some steps of the methods disclosed above, functional modules / units in the apparatus can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware embodiments, the division between the functional modules / units described above does not necessarily correspond to the division of physical components, for example, one physical component may have multiple functions, or one function or step may be performed by multiple physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor such as a central processor, digital signal processor, microprocessor, etc., or may be implemented as hardware, or may be implemented as an integrated circuit such as a dedicated integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and accessed by a computer. Additionally, those skilled in the art will appreciate that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism and can include any information delivery media.
[0190] Although exemplary embodiments have been disclosed herein and specific terms have been used, they are used and should be interpreted as being only in a general illustrative descriptive sense and not for limiting purposes. In some instances, it will be apparent to one skilled in the art that features, characteristics, and / or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in connection with other embodiments, unless expressly indicated otherwise. Thus, one skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present application as defined by the appended claims.
Claims
1. extracting traffic feature fields from an Internet Interconnection Protocol (IP) data stream; identifying traffic characteristics of the IP data stream based on the traffic characteristic field, the traffic characteristics characterizing a Quality of Service (QoS) requirement of the IP data stream. How to extract traffic features.
2. said step of identifying traffic characteristics of said IP data stream based on said traffic characteristic field further comprising: determining a data block characteristic of at least one data block in the IP data stream based on the traffic characteristic field; calculating a data block feature statistic based on the data block feature of each of the data blocks, and determining the data block feature statistic as a traffic feature of the IP data stream.
2. The extraction method according to claim 1.
3. The data block characteristics include a data block size and an arrival delay of the data block, and the step of extracting a traffic characteristic field of an Internet Interconnection Protocol (IP) data stream includes: extracting a timestamp of a request (GET) message and a timestamp of a starting packet of said data block; if the data block contains an HTTP / 1.1 or HTTP / 1.0 field, extracting a content-length field, the content-length field characterizing a data block size of the data block; if the data block does not include an HTTP / 1.1 field and an HTTP / 1.0 field, extracting size information of all packets of the data block.
3. The extraction method according to claim 2.
4. The step of extracting traffic characteristic fields of an Internet Interconnection Protocol (IP) data stream comprises: identifying a request (GET) message based on a GET field prior to extracting the timestamp of the GET message and the timestamp of the starting packet of the data block; extracting a SEQ field value and a LEN field value in the GET message; identifying a first packet after the GET message whose ACK field value is equal to the sum of the SEQ field value and the LEN field value as the start packet.
4. The extraction method according to claim 3.
5. The step of extracting traffic characteristic fields of an Internet Interconnection Protocol (IP) data stream comprises: identifying a request (GET) message based on a GET field prior to said step of extracting a timestamp of the GET message and a timestamp of a starting packet of the data block; and identifying a first packet having a length greater than a preset length after the GET message as the start packet.
4. The extraction method according to claim 3.
6. The data block feature statistics include a data block size statistic and an arrival delay statistic, and the step of calculating the data block feature statistics based on the data block features of each of the data blocks includes: generating at least one traffic feature table based on a data block size and an arrival delay of the at least one data block, each of the data blocks corresponding to one traffic feature table entry of the traffic feature table; When a preset statistical condition is satisfied, calculating an average value of data block size in the traffic characteristic table to obtain the data block size statistical value; and calculating an average value of arrival delay in the traffic characteristic table to obtain the arrival delay statistical value. The extraction method according to any one of claims 3 to 5.
7. said step of calculating data block feature statistics based on data block features of each of said data blocks comprising: determining a number of traffic feature table entries in the traffic feature table; indicating that the predetermined statistical condition is met when a number of traffic feature table entries in the traffic feature table reaches a predetermined quantity threshold.
7. The extraction method according to claim 6.
8. said step of calculating data block feature statistics based on data block features of each of said data blocks comprising: Starting a timer, and indicating that the predetermined statistical condition has been met when the timer reaches a predetermined time threshold.
7. The extraction method according to claim 6.
9. said step of identifying traffic characteristics of said IP data stream based on said traffic characteristic field further comprising: identifying a traffic type of the IP data stream based on the traffic characteristic field; calculating data block statistical characteristics of data blocks in the IP data stream based on a traffic type of the IP data stream; determining traffic characteristics of the IP data stream based on the data block statistical characteristics.
2. The extraction method according to claim 1.
10. said step of identifying a traffic type of said IP data stream based on said traffic characteristic field further comprising: calculating message statistical characteristics of the message based on the traffic characteristic field; identifying a traffic type of the IP data stream based on the message statistical characteristics. The extraction method according to claim 9.
11. The traffic characteristic field includes message information of a message in the IP data stream, and the step of calculating message statistical characteristics of the message based on the traffic characteristic field includes: generating a message information table based on message information of the at least one message; Calculating an expected value of the message size in the message information table according to the message size information of each message in the message information table to obtain the message statistical characteristic; The step of identifying a traffic type of the IP data stream based on the message statistical characteristics comprises: comparing the message statistical characteristic to a message size threshold; if the message statistical characteristic exceeds the message size threshold, the traffic type of the IP data stream is one of a first type of traffic, a second type of traffic, and a first non-periodic traffic; if the message statistical characteristic does not exceed the message size threshold, the traffic type of the IP data stream is one of a third type of traffic, a fourth type of traffic, and a second type of non-periodic traffic. The extraction method according to claim 10.
12. the traffic characteristic field further includes data block information of the data blocks in the IP data stream, and when the traffic type of the IP data stream is one of a third type of traffic, a fourth type of traffic, and a second non-periodic traffic, the step of calculating the data block statistical characteristics of the data blocks in the IP data stream based on the traffic type of the IP data stream includes: generating a data block information table based on data block information of the plurality of data blocks; Calculating a standard difference of data block intervals in the data block information table according to data block interval information of a plurality of data blocks in the data block information table to obtain the data block statistical characteristics; The step of identifying traffic characteristics of the IP data stream based on the data block statistical characteristics comprises: comparing the data block interval standard difference with a data block interval standard difference threshold; if the data block interval standard difference exceeds the data block interval standard difference threshold, the traffic type of the IP data stream is a second aperiodic traffic, and calculating a bandwidth characteristic and a maximum packet size characteristic of the IP data stream whose traffic type is the second aperiodic traffic to obtain the traffic characteristic; if the data block interval standard difference does not exceed the data block interval standard difference threshold, the traffic type of the IP data stream is a third type traffic or a fourth type traffic, and calculating a periodicity characteristic, a data block size characteristic, a bandwidth characteristic, and a maximum packet size characteristic of the IP data stream whose traffic type is the third type traffic or the fourth type traffic to obtain the traffic characteristics. The extraction method according to claim 11.
13. The traffic characteristic field further includes data block information of the data blocks in the IP data stream, and when the traffic type of the IP data stream is one of a first type of traffic, a second type of traffic, and a first non-periodic traffic, the step of calculating the data block statistical characteristics of the data blocks in the IP data stream based on the traffic type of the IP data stream includes: generating a data block information table based on data block information of the plurality of data blocks; Calculating a standard difference of data block size in the data block information table according to data block size information of a plurality of data blocks in the data block information table to obtain the data block statistical characteristic; The step of identifying traffic characteristics of the IP data stream based on the data block statistical characteristics comprises: identifying a traffic type of the IP data stream based on the data block size standard difference; if the traffic type of the IP data stream is a first aperiodic traffic, calculating a bandwidth characteristic and a maximum packet size characteristic of the IP data stream whose traffic type is the first aperiodic traffic to obtain the traffic characteristic; if the traffic type of the IP data stream is a first type of traffic or a second type of traffic, identifying the traffic characteristics by clustering based on the traffic type of the IP data stream. The extraction method according to claim 11.
14. said step of identifying a traffic type of said IP data stream based on said data block size standard difference further comprising: Comparing the data block size standard difference to a first data block size standard difference threshold and a second data block size standard difference threshold; If the data block size standard difference exceeds the second data block size standard difference threshold, the traffic type of the IP data stream is a first non-periodic traffic; if the data block size standard difference does not exceed the second data block size standard difference threshold and exceeds the first data block size standard difference threshold, the traffic type of the IP data stream is a first type of traffic; if the data block size standard difference does not exceed the first data block size standard difference threshold and the second data block size standard difference threshold, the traffic type of the IP data stream is a second type of traffic. The extraction method according to claim 13.
15. If the traffic type of the IP data stream is a first type of traffic, the step of identifying the traffic characteristics by clustering based on the traffic type of the IP data stream includes: clustering the data block information of the plurality of data blocks in the data block information table according to data block size information to obtain a first clustering result; and identifying the traffic characteristics based on the first clustering results.
15. The extraction method according to claim 14.
16. If the traffic type of the IP data stream is a second type of traffic, the step of identifying the traffic characteristics by clustering based on the traffic type of the IP data stream includes: clustering the data block information of the plurality of data blocks in the data block information table according to data block interval information to obtain a second clustering result; and identifying the traffic characteristics based on the second clustering results.
15. The extraction method according to claim 14.
17. said step of identifying a service type of said IP data stream based on said service characteristic field further comprising: identifying a traffic type of the IP data stream based on a traffic type field in the traffic characteristics field; The extraction method according to claim 9.
18. Performing QoS scheduling based on traffic characteristics of a data stream, the traffic characteristics being extracted by a traffic characteristic extraction method according to any one of claims 1 to 17. Quality of Service (QoS) scheduling methods.
19. At least one processor; a memory having stored therein at least one computer program, the at least one computer program being configured to, when executed by the at least one processor, cause the at least one processor to implement at least one of the method for extracting traffic characteristics according to any one of claims 1 to 17 or the method for QoS scheduling according to claim 18; At least one I / O interface connected between the processor and the memory and configured to realize information interaction between the processor and the memory. electronic equipment.
20. A computer program is stored, and when the computer program is executed by a processor, the computer program realizes at least one of the method for extracting traffic characteristics according to any one of claims 1 to 17 or the method for QoS scheduling according to claim 18. A computer-readable storage medium.
Citation Information
Patent Citations
Response time measurement system
JP1999346238A
Flow classification method, system, and program
JP2012034262A
Communication control system, communication method, and gateway device
JP2016152453A
