Anomaly detection method, system and device for network switches

By calculating the correlation data and traffic flow data of network switches, abnormal conditions of smart transportation network switches are detected in advance, which solves the problem of inability to predict congestion in advance in the existing technology, and achieves efficient operation of network switches and the stability of data transmission.

CN118433141BActive Publication Date: 2024-10-11ZHEJIANG ZHEJIAO TESTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410895568.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-11
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

Existing technology cannot detect in advance whether network switches will be congested, which affects user experience and time-sensitive data transmission in smart transportation scenarios.

Method used

By obtaining the parameter data, location data and traffic flow data of the target network switch, the first correlation data and the second correlation data are calculated, the abnormality of the target network switch is determined, and its working status is adjusted according to the preset threshold to avoid congestion.

Benefits of technology

It realizes early detection of network switch congestion risks, avoids affecting user experience and timely data transmission, and improves the reliability and efficiency of network switches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433141B_ABST
    Figure CN118433141B_ABST
Patent Text Reader

Abstract

The present application discloses an anomaly detection method, system and device for network switches, and relates to the field of data transmission technology. The method includes: obtaining parameter data and location data of the target network switch; obtaining first correlation data based on the location data; obtaining vehicle flow data in the smart transportation network; obtaining second correlation data based on the parameter data, the location data and the vehicle flow data; obtaining abnormal data of the target network switch based on the first correlation data and the second correlation data; and determining the abnormal situation of the target network switch based on the abnormal data of the target network switch. The present application can detect in advance whether the target network switch has a risk of congestion, and then adjust the transmission path of the data that may flow through the target network switch in advance, thereby avoiding congestion in the target network switch.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and specifically to an anomaly detection method, system and device for a network switch. Background Art

[0002] Smart transportation refers to a new mode of transportation development that integrates new technologies such as the Internet of Things, cloud computing, big data, mobile Internet, and artificial intelligence on the basis of traditional transportation, realizes the organic combination of "people, vehicles, roads, environment, etc.", and emphasizes more on collaborative operation, personalization, and intelligent operation. It should be clear that due to the large amount of data that smart transportation needs to transmit, the closed highways with large changes in transportation volume pose great challenges to the construction of smart transportation. First, due to the large span of highway sections, the construction of smart transportation on highways requires a large number of network switches. Secondly, the transportation volume of highways varies greatly, and in smart transportation, the amount of data transmitted is positively correlated with the transportation volume of highways. In other words, the larger the transportation volume of the highway, the larger the amount of data that needs to be transmitted between each network switch. If the amount of data that the network switch needs to transmit is greater than the bandwidth of the network switch, it is easy to cause network congestion.

[0003] In the prior art, whether a network switch is congested is determined by detecting the delay or packet loss rate of the network switch. The above-mentioned abnormality detection method of the network switch is not applicable to the application scenario of smart transportation based on highways. Many data transmissions in smart transportation have a certain timeliness. For example, toll station staff need to control the number of vehicles entering a certain highway section based on the traffic conditions on the highway section, or traffic police need to quickly locate the approximate location of the vehicle involved in a traffic accident based on a certain highway monitoring information. It is easy to understand that the above-mentioned abnormality detection method of the network switch can only detect whether the network switch is congested after the network switch is congested, and it cannot predict in advance whether the network switch will be congested. In the application scenario of smart transportation, if the network switch is congested, it will affect the user experience and work efficiency at the least, and affect the transmission of time-sensitive data at the worst. Summary of the invention

[0004] The purpose of the present application is to provide a method, system and device for detecting anomalies in network switches, so as to solve the technical problem that the anomaly detection method of network switches in the prior art is not suitable for application scenarios of smart transportation.

[0005] To achieve the above objectives, this application provides the following technical solutions:

[0006] In a first aspect, the present application proposes an anomaly detection method for a network switch, the method being applied to a smart transportation network, the method comprising:

[0007] Acquire parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network;

[0008] Based on the location data, obtaining first association data between the target network switch and other network switches in the smart transportation network;

[0009] Obtaining vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network;

[0010] Based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch;

[0011] Based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch;

[0012] Based on the abnormal data of the target network switch, an abnormal situation of the target network switch is determined.

[0013] As a specific solution in the technical solution of the present application, the obtaining of first correlation data between the target network switch and other network switches in the smart transportation network based on the location data includes:

[0014] Based on the location data, a data transmission path is obtained; the data transmission path includes at least the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch;

[0015] Acquire historical transmission data of the data transmission path;

[0016] Acquire a connection distance between the target network switch and the first network switch;

[0017] Based on the historical transmission data and the connection distance, first correlation data is acquired.

[0018] As a specific solution in the technical solution of the present application, the calculation formula for obtaining the first correlation data based on the historical transmission data and the connection distance is as follows:

[0019] ;

[0020] Wherein, LS(n,m) represents the first association data between the nth and mth network switches; n,mrepresents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; f z (n,m) represents the data transmission volume between the nth and mth network switches in the zth data transmission; f zn represents the data flow size obtained by the nth network switch during the zth data transmission; f zm Indicates the data flow size obtained by the mth network switch during the zth data transmission.

[0021] As a specific solution in the technical solution of the present application, the obtaining of the second correlation data of the vehicle flow in the smart transportation network to the target network switch based on the parameter data, the location data and the vehicle flow data includes:

[0022] Based on the location data, obtaining vehicle flow ratio data of the target network switch; the vehicle flow ratio data includes a ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow;

[0023] If the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data;

[0024] If the vehicle flow ratio data is less than a first preset threshold, the second correlation data is obtained based on the parameter data and the vehicle flow data.

[0025] As a specific solution in the technical solution of the present application, the calculation formula for obtaining the second correlation data based on the vehicle flow ratio data is as follows:

[0026] ;

[0027] Among them, W a represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data;

[0028] The calculation formula for obtaining the second correlation data based on the parameter data and the vehicle flow data is as follows:

[0029] ;

[0030] Among them, W a Indicates the second association data; Li zarepresents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; f za represents the data flow size obtained by the target network switch in the zth data transmission; f zac Indicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

[0031] As a specific solution in the technical solution of the present application, the acquiring of abnormal data of the target network switch based on the first correlation data and the second correlation data includes:

[0032] Obtaining traffic flow change trend data of the smart transportation network;

[0033] Based on the vehicle flow change trend data, acquiring the interface flow change trend data of the target network switch;

[0034] Based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is acquired.

[0035] As a specific solution in the technical solution of the present application, the calculation formula for obtaining the abnormal data of the target network switch based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data is as follows:

[0036] ;

[0037] Among them, Se a represents the abnormal data of the target network switch, LS(a,b) represents the first correlation data between the a-th network switch and the b-th network switch; W a represents the second association data of the a-th network switch; M represents the number of network switches associated with the a-th network switch; K ca Represents the traffic flow change trend data in the smart transportation network; K a Indicates the interface traffic change trend data of the target network switch; K ca-1 Represents the traffic flow change trend data on the upper end of the smart transportation network; K ca+1 It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

[0038] As a specific solution in the technical solution of the present application, the determining of the abnormal situation of the target network switch based on the abnormal data of the target network switch includes:

[0039] If the abnormal data is greater than or equal to a second preset threshold, determining that the target network switch is abnormal;

[0040] If the abnormal data is less than a second preset threshold, it is determined that the target network switch is normal;

[0041] After determining the abnormal situation of the target network switch based on the abnormal data of the target network switch, the method further includes:

[0042] If the target network switch is abnormal, the working state of the target network switch is adjusted.

[0043] In a second aspect, the present application proposes an anomaly detection system for a network switch, comprising:

[0044] An acquisition module, used to acquire parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network;

[0045] And, obtaining the vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network;

[0046] A processing module, configured to obtain first association data between the target network switch and other network switches in the smart transportation network based on the location data;

[0047] And, based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch;

[0048] and, based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch;

[0049] And, based on the abnormal data of the target network switch, determining the abnormal situation of the target network switch.

[0050] As a specific solution in the technical solution of the present application, the acquisition module is also used to acquire a data transmission path based on the location data; the data transmission path at least includes the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch;

[0051] and, obtaining historical transmission data of the data transmission path;

[0052] And, obtaining a connection distance between the target network switch and the first network switch;

[0053] The processing module is further configured to obtain first correlation data based on the historical transmission data and the connectivity distance.

[0054] As a specific solution in the technical solution of the present application, the processing module uses the following calculation formula to obtain the first correlation data:

[0055] ;

[0056] Wherein, LS(n,m) represents the first association data between the nth and mth network switches; n,m represents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; f z (n,m) represents the data transmission volume between the nth and mth network switches in the zth data transmission; f zn represents the data flow size obtained by the nth network switch during the zth data transmission; f zm Indicates the data flow size obtained by the mth network switch during the zth data transmission.

[0057] As a specific solution in the technical solution of the present application, the processing module is also used to obtain the vehicle flow ratio data of the target network switch based on the location data; the vehicle flow ratio data includes the ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow;

[0058] and, if the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data;

[0059] And, if the vehicle flow ratio data is less than a first preset threshold, the second correlation data is obtained based on the parameter data and the vehicle flow data.

[0060] As a specific solution in the technical solution of the present application, the processing module uses the following calculation formula to obtain the second correlation data:

[0061] ;

[0062] Among them, W a represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data;

[0063] Alternatively, the processing module uses the following calculation formula to obtain the second correlation data:

[0064] ;

[0065] Among them, W a Indicates the second association data; Li za represents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; f za represents the data flow size obtained by the target network switch in the zth data transmission; f zac Indicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

[0066] As a specific solution in the technical solution of the present application, the acquisition module is also used to obtain the traffic flow change trend data of the smart transportation network;

[0067] The processing module is further used to obtain the interface traffic change trend data of the target network switch based on the vehicle traffic change trend data;

[0068] And, based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is obtained.

[0069] As a specific solution in the technical solution of the present application, the processing module uses the following calculation formula to obtain the abnormal data:

[0070] ;

[0071] Among them, Se a represents the abnormal data of the target network switch, LS(a,b) represents the first correlation data between the a-th network switch and the b-th network switch; W a represents the second association data; M represents the number of network switches associated with the a-th network switch; K ca Represents the traffic flow change trend data in the smart transportation network; K a Indicates the interface traffic change trend data of the target network switch; K ca-1 Represents the traffic flow change trend data on the upper end of the smart transportation network; K ca+1 It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

[0072] As a specific solution in the technical solution of the present application, the processing module is further used to determine that the target network switch is abnormal if the abnormal data is greater than or equal to a second preset threshold;

[0073] and, if the abnormal data is less than a second preset threshold, determining that the target network switch is normal;

[0074] And, if the target network switch is abnormal, adjusting the working state of the target network switch.

[0075] In a third aspect, the present application proposes an anomaly detection device for a network switch, comprising:

[0076] A reader, used to obtain parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network;

[0077] And, obtaining the vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network;

[0078] A processor, configured to obtain first association data between the target network switch and other network switches in the smart transportation network based on the location data;

[0079] And, based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch;

[0080] and, based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch;

[0081] And, based on the abnormal data of the target network switch, determining the abnormal situation of the target network switch.

[0082] As a specific solution in the technical solution of the present application, the reader is also used to obtain a data transmission path based on the location data; the data transmission path at least includes the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch;

[0083] and, obtaining historical transmission data of the data transmission path;

[0084] And, obtaining a connection distance between the target network switch and the first network switch;

[0085] The processor is further configured to obtain first correlation data based on the historical transmission data and the connectivity distance.

[0086] As a specific solution in the technical solution of the present application, the processor uses the following calculation formula to obtain the first correlation data:

[0087] ;

[0088] Wherein, LS(n,m) represents the first association data between the nth and mth network switches; n,m represents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; f z (n,m) represents the data transmission volume between the nth and mth network switches in the zth data transmission; f zn represents the data flow size obtained by the nth network switch during the zth data transmission; f zm Indicates the data flow size obtained by the mth network switch during the zth data transmission.

[0089] As a specific solution in the technical solution of the present application, the processor is further used to obtain the vehicle flow ratio data of the target network switch based on the location data; the vehicle flow ratio data includes the ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow;

[0090] and, if the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data;

[0091] And, if the vehicle flow ratio data is less than a first preset threshold, the second correlation data is obtained based on the parameter data and the vehicle flow data.

[0092] As a specific solution in the technical solution of the present application, the processor uses the following calculation formula to obtain the second relevance data:

[0093] ;

[0094] Among them, W a represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data;

[0095] Alternatively, the processor uses the following calculation formula to obtain the second relevance data:

[0096] ;

[0097] Among them, W a Indicates the second association data; Li za represents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; f za represents the data flow size obtained by the target network switch in the zth data transmission; f zac Indicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

[0098] As a specific solution in the technical solution of the present application, the reader is also used to obtain traffic flow change trend data of the smart transportation network;

[0099] The processor is further configured to obtain, based on the vehicle flow change trend data, interface flow change trend data of the target network switch;

[0100] And, based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is obtained.

[0101] As a specific solution in the technical solution of the present application, the processor uses the following calculation formula to obtain the abnormal data:

[0102] ;

[0103] Among them, Se a represents the abnormal data of the target network switch, LS(a,b) represents the first correlation data between the a-th network switch and the b-th network switch; W a represents the second association data; M represents the number of network switches associated with the a-th network switch; K ca Represents the traffic flow change trend data in the smart transportation network; K a Indicates the interface traffic change trend data of the target network switch; K ca-1 Represents the traffic flow change trend data on the upper end of the smart transportation network; K ca+1 It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

[0104] As a specific solution in the technical solution of the present application, the processor is further configured to determine that the target network switch is abnormal if the abnormal data is greater than or equal to a second preset threshold;

[0105] and, if the abnormal data is less than a second preset threshold, determining that the target network switch is normal;

[0106] And, if the target network switch is abnormal, adjusting the working state of the target network switch.

[0107] Compared with the prior art, the beneficial effects of this application are:

[0108] This application can detect in advance whether the target network switch has a risk of congestion, and then adjust the transmission path of the data that may flow through the target network switch in advance, thereby avoiding congestion in the target network switch. It can not only avoid affecting the user's experience and work efficiency, but also avoid affecting the transmission of time-sensitive data. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] Figure 1 A flowchart of an anomaly detection method for a network switch proposed in an embodiment of the present application;

[0110] Figure 2 A schematic diagram of the structure of an anomaly detection system for a network switch proposed in an embodiment of the present application;

[0111] Figure 3 A schematic diagram of the structure of an anomaly detection device for a network switch proposed in an embodiment of the present application;

[0112] Figure 4 A schematic diagram of the locations of network switches for building a smart transportation network for a highway proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0113] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0114] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0115] The terms "first", "second", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, such as the first association data and the second association data proposed below, which belong to different data. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described here can be implemented in an order other than the content illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The division of modules that appear in the embodiments of the present application is only a logical division. There may be other division methods when implemented in actual applications, such as multiple modules can be combined or integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in the embodiments of the present application. Furthermore, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment of the present application.

[0116] In order to solve the technical problem that the anomaly detection method of the network switch in the prior art cannot detect in advance whether the network switch will be congested, the present application proposes an anomaly detection method for the network switch, which is applied to the smart transportation network, such as Figure 1 As shown, the method includes steps S100 to S600.

[0117] Step S100: Acquire parameter data and location data of a target network switch.

[0118] It should be clear that the parameter data of the target network switch at least includes the interface traffic of the target network switch. In this embodiment, the network switch can be monitored by using the Simple Network Management Protocol (SNMP) using relevant monitoring software to detect the interface traffic, packet loss rate, error rate and other performance indicators of the target network switch, as well as parameters such as CPU utilization, memory utilization, and backplane utilization. That is to say, in the embodiment of the present application, the parameter data may also include any one or a combination of multiple of the packet loss rate, error rate, CPU utilization, memory utilization, and backplane utilization.

[0119] It should be clear that smart transportation networks generally need to collect traffic information and data in real time through sensors and cameras, so the amount of data transmitted by the switch is positively correlated with the traffic volume. Since the overall span of the highway is relatively large, and most sections of the highway are far away from the city, the construction of a general highway smart transportation network requires the installation of network switches along the highway. Figure 4 As shown, Figure 4 A schematic diagram of the location of network switches for a highway smart transportation network, where: Figure 4 The lines in the figure represent highway lines, and the dots represent the locations of various network switches. Generally, vehicle-related data is transmitted from the toll station to the network switches around the toll station, and then through higher-level network switches or routers, and finally reaches the network switch in the main terminal. That is to say, in this embodiment, the network topology of the smart transportation network is complex, the data volume is large, and the transmission distance is long. It should be clear that in the embodiments of the present application, the location data of the target network switch refers to the actual location of the network switch in the highway.

[0120] It is easy to understand that in the embodiment of the present application, the target network switch is any network switch in the smart transportation network.

[0121] It should be clear that the main purpose of the embodiment of the present application is to detect in advance whether the target network switch has a risk of congestion, and then adjust the transmission path of the data that may flow through the target network switch in advance, so as to avoid congestion in the target network switch. This can not only avoid affecting the user experience and work efficiency, but also avoid affecting the transmission of time-sensitive data.

[0122] It should be clear that only by accurately predicting the amount of data that the target network switch needs to transmit in the future can we accurately predict whether the target network switch will be congested. As can be seen from the foregoing, the network topology of the smart transportation network of the highway is complex, so it is difficult to accurately predict the amount of data that the target network switch needs to transmit in the future. In order to accurately predict whether the target network switch will be congested in the future, in the embodiments of the present application, it is necessary to understand the factors affecting the amount of data transmitted by the target network switch. In the smart transportation network, the amount of data transmitted by the target network switch is closely related to the location of the target network switch in the smart transportation network. If the target network switch is located at a transportation hub or a major traffic artery, it means that a large amount of data will also be transmitted through the target network switch, that is, the amount of data transmitted by the target network switch is also larger. In the smart transportation network, the amount of data transmitted by the target network switch is also closely related to the amount of traffic. If the traffic volume is larger, the target network switch needs to transmit more data, that is, the amount of data transmitted by the target network switch is also larger.

[0123] Step S200: Based on the location data, first correlation data between the target network switch and other network switches in the smart transportation network is obtained.

[0124] It should be clear that in the embodiments of the present application, the first correlation data refers to the evaluation data of the connection relationship between the target network switch and other network switches in the smart transportation network. It is easy to understand that if the position of the target network switch in the smart transportation network is more important (that is, the larger the amount of data transmitted), the stronger the connection relationship between the target network switch and other network switches in the smart transportation network, that is, the target network switch is more likely to experience data congestion in the future. In the embodiments of the present application, the first correlation data can be obtained in any feasible way. For example, in one embodiment of the present application, step S200, based on the position data, obtains the first correlation data between the target network switch and other network switches in the smart transportation network, including steps S210 to S240.

[0125] Step S210: Based on the location data, a data transmission path is acquired, where the data transmission path at least includes the target network switch.

[0126] From the previous text, we can see that Figure 4As shown, in the application scenario of the highway intelligent transportation network, network switches are generally deployed along the highway. Therefore, the map data in the highway can be obtained, and the positions of the network switches in the highway map can be marked to determine the location distribution of each network switch in the map. The information data in the highway is transmitted through the network topology structure of the intelligent transportation network. In an embodiment of the present application, the data transmission path can be determined by the map data in the highway, or the data transmission path can be determined based on the record of information transmission with the target network switch.

[0127] It should be clear that the data transmission path also needs to include a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch.

[0128] Step S220: Acquire historical transmission data of the data transmission path.

[0129] As can be seen from the foregoing, between the first network switch and the target network switch, the more important the target network switch is, the larger the amount of data transmitted by the first network switch to the target network switch is. In other words, the connection between the two network switches (i.e., the first network switch and the target network switch) can be determined based on the historical transmission data of the data transmission path. In order to quantify the connection between the two network switches, the data transmission ratio can be used to analyze the connection between the two network switches in an embodiment of the present application. In a data transmission process of the data transmission path, the size of the data received by the first network switch is a, and the first network switch transmits data of size b to the target network switch, then the data transmission ratio of the first network switch and the target network switch is b / a. It is easy to understand that if the data transmission ratio is larger, the importance of the target network switch is greater for the first network switch; if the data transmission ratio is smaller, the importance of the target network switch is smaller for the first network switch.

[0130] Step S230: Acquire the connection distance between the target network switch and the first network switch.

[0131] It should be clear that the network topology of the smart transportation network is complex. In other words, data can be transmitted using a variety of data transmission paths in the smart transportation network. In the application scenario of the smart transportation network on highways, network switches are basically set up along the highway. In other words, the greater the actual distance between two network switches, the stronger the substitutability of the data transmission path between the two network switches, that is, the weaker the connection between the two network switches.

[0132] In the embodiment of the present application, the connection distance between the target network switch and the first network switch in the data transmission path is not a simple physical distance. For example, if network switch A and network switch C are connected by network switch B in the data transmission path, the connection distance between network switch A and network switch C does not refer to the actual physical distance between network switch A and network switch C, but refers to the actual physical distance between network switch A and network switch B + the actual physical distance between network switch B and network switch C.

[0133] Step S240: Acquire first correlation data based on the historical transmission data and the connection distance.

[0134] In an embodiment of the present application, the first correlation data may be obtained in any manner based on the historical transmission data and the connectivity distance. For example, in a specific embodiment of the present application, in step S240, the calculation formula for obtaining the first correlation data based on the historical transmission data and the connectivity distance is as follows:

[0135] ;

[0136] Wherein, LS(n,m) represents the first association data between the nth network switch (ie, the target network switch) and the mth network switch (ie, the first network switch); n,m represents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; f z (n,m) represents the data transmission volume between the nth and mth network switches in the zth data transmission; f zn represents the data flow size obtained by the nth network switch during the zth data transmission; f zm Indicates the data flow size obtained by the mth network switch during the zth data transmission.

[0137] It should be clear that in this embodiment, by analyzing the historical data of the network switch when it is working, the discreteness of the data obtained by the network switch is calculated by the above formula. If the multi-dimensional data obtained by the network switch is discrete, it means that the target network switch is more likely to produce anomalies (that is, data congestion). According to the analysis, the data transmitted by the network switch is composed of a variety of data, which includes fixed monitoring video data, vehicle information obtained by various toll stations, driving information of vehicles on the road, etc., and the interface traffic is composed of a variety of data. When transmitting data, the data obtained by the network switch generally cannot be sent directly to the upper-level network switch. Because the data path is too long, it must be forwarded through multiple network switch devices, so when detecting abnormal data, the connection between the forwarding paths can be used to determine the network switch that is prone to network congestion.

[0138] As can be seen from the foregoing, in a smart transportation network, the amount of data transmitted by a target network switch is closely related to the location of the target network switch in the smart transportation network. The amount of data transmitted by a target network switch is also closely related to the volume of vehicle traffic. Therefore, after quantifying the relationship between the location of the target network switch in the smart transportation network and the size of the transmitted data (i.e., the first correlation data), the following describes how to quantify the relationship between the amount of data transmitted by the target network switch and the volume of vehicle traffic (i.e., the second correlation data below).

[0139] Step S300: Obtain the vehicle flow data corresponding to the parameter data in time series in the smart transportation network.

[0140] It should be clear that obtaining historical traffic data from smart transportation networks is a mature technology and will not be elaborated on here.

[0141] Step S400: Based on the parameter data, the location data and the vehicle flow data, obtain second correlation data of the vehicle flow in the smart transportation network to the target network switch.

[0142] In an embodiment of the present application, the second correlation data refers to evaluation data of the relationship between the amount of data transmitted by the target network switch and the amount of vehicle flow.

[0143] It should be clear that the highway itself is a closed facility, and the corresponding information related to traffic flow is also relatively easy to trace. The amount of data transmitted in the smart transportation network is related to the amount of traffic flow carried by the highway itself. If the traffic flow is too large (for example, an increase in vehicles during holidays, or congestion on certain sections of the road due to traffic accidents, etc.), it may cause the target network switch to obtain an increase in interface traffic data, and the corresponding target network switch's information processing capacity is fixed. If the interface traffic data obtained by the target network switch exceeds the target network switch's information processing capacity, network congestion will occur, affecting the normal use of the target network switch.

[0144] It should be clear that in the embodiments of the present application, the second correlation data of the vehicle flow in the smart transportation network to the target network switch can be obtained in any manner based on the parameter data, the location data and the vehicle flow data. For example, in one embodiment of the present application, step S400, based on the parameter data, the location data and the vehicle flow data, obtains the second correlation data of the vehicle flow in the smart transportation network to the target network switch, including steps S410 to S430.

[0145] Step S410: Based on the location data, the traffic flow ratio data of the target network switch is obtained.

[0146] As can be seen from the foregoing, if the target network switch is a transportation hub or a major traffic artery, it means that a large amount of data will also be transmitted through the target network switch, that is, the larger the amount of data transmitted by the target network switch. It is easy to understand that if the traffic volume passing through the target network switch is large, it can be considered that the target network switch is located at a transportation hub or a major traffic artery. Therefore, in this embodiment, the traffic volume ratio data includes the ratio of the traffic volume passing through the location point of the target network switch to the total traffic volume of the smart transportation network.

[0147] Step S420: If the vehicle flow ratio data is greater than or equal to a first preset threshold, the second correlation data is obtained based on the vehicle flow ratio data.

[0148] It is easy to understand that if the vehicle flow ratio data is greater than or equal to the first preset threshold, it means that the target network switch is located at a transportation hub or a major traffic artery. At this time, more attention should be paid to the impact of the vehicle flow itself on the amount of data transmitted by the target network switch. Therefore, in this embodiment, the acquired vehicle flow data and the received network flow corresponding to the target network switch are plotted into a curve, with the horizontal axis being the vehicle flow and the vertical axis being the network flow.

[0149] Specifically, in step S420, based on the vehicle flow ratio data, a calculation formula for obtaining the second correlation data is as follows:

[0150] ;

[0151] Among them, W a represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data;

[0152] Step S430: If the vehicle flow ratio data is less than a first preset threshold, the second correlation data is obtained based on the parameter data and the vehicle flow data.

[0153] It is easy to understand that if the traffic volume ratio data is less than the first preset threshold, it means that the target network switch is not located at a traffic hub or a traffic artery. At this time, more attention should be paid to the change in the ratio between the traffic volume data and the corresponding transmission data of the target network switch.

[0154] Specifically, in step S430, based on the parameter data and the vehicle flow data, a calculation formula for obtaining the second correlation data is as follows:

[0155] ;

[0156] Among them, W a Indicates the second association data; Li za represents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; f za represents the data flow size obtained by the target network switch in the zth data transmission; f zac Indicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

[0157] In an embodiment of the present application, the first preset threshold value may be an empirical value obtained based on different intelligent transportation networks, or an experimental value obtained through multiple tests. In a specific embodiment of the present application, the first preset threshold value may be greater than or equal to 0.65 and less than or equal to 0.70. Specifically, the first preset threshold value may be any one of 0.65, 0.66, 0.67, 0.68, 0.69 and 0.70, or any value between the two adjacent values ​​mentioned above.

[0158] Step S500: Acquire abnormal data of the target network switch based on the first correlation data and the second correlation data.

[0159] In an embodiment of the present application, the abnormal data of the target network switch refers to the risk of data congestion in the target network switch after the traffic volume in the smart transportation network increases. In other words, the larger the abnormal data of the target network switch, the greater the risk of subsequent data congestion in the target network switch, that is, the more necessary it is to adjust the target network switch in advance. In an embodiment of the present application, the abnormal data of the target network switch can be obtained in any manner based on the first correlation data and the second correlation data. For example, in one embodiment of the present application, the first correlation data and the second correlation data are directly summed to obtain the abnormal data of the target network switch. In another embodiment of the present application, step S500, based on the first correlation data and the second correlation data, obtains the abnormal data of the target network switch, including steps S510 to S530.

[0160] Step S510: Obtain traffic flow change trend data of the smart transportation network.

[0161] It should be clear that the smart transportation network can automatically generate traffic flow change trend data, so traffic flow change trend data can be obtained based on the smart transportation network. It should be clear that in the smart transportation network, the traffic flow curve of the highway section in the smart transportation network is generally predicted with time as the horizontal axis and traffic flow as the vertical axis. The traffic flow change trend data is also the slope of the traffic flow curve.

[0162] Step S520: Based on the vehicle flow change trend data, the interface flow change trend data of the target network switch is obtained.

[0163] It should be clear that, from step S400, there is a certain correlation between the vehicle flow in the smart transportation network and the interface flow of the target network switch. In other words, the interface flow change of the corresponding target network switch can be calculated based on the future vehicle flow change in the smart transportation network. Then, based on the interface flow change of the target network switch, the interface flow change trend data of the target network switch is obtained, that is, the slope of the interface flow change curve of the target network switch.

[0164] Step S530: Acquire abnormal data of the target network switch based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data.

[0165] It should be clear that the vehicle congestion caused by a traffic accident in the smart transportation network, or the ongoing vehicle congestion, takes a certain amount of time to form. Before the vehicle congestion occurs, the traffic volume at the upper end of the smart transportation network increases, while the traffic volume at the lower end of the smart transportation network, and the location where the congestion occurs, has different effects on network switches at different locations in the smart transportation network. Therefore, in the present application, any reasonable method can be used to obtain the abnormal data of the target network switch based on the first correlation data, the second correlation data, the traffic volume change trend data, and the interface traffic volume change trend data.

[0166] In a specific embodiment of the present application, in step S530, based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, a calculation formula for obtaining abnormal data of the target network switch is as follows:

[0167] ;

[0168] Among them, Se a represents the abnormal data of the target network switch, LS(a,b) represents the first correlation data between the a-th network switch and the b-th network switch; W a represents the second association data of the a-th network switch; M represents the number of network switches associated with the a-th network switch; K ca Represents the traffic flow change trend data in the smart transportation network; K a Indicates the interface traffic change trend data of the target network switch; K ca-1 Represents the traffic flow change trend data on the upper end of the smart transportation network; K ca+1 It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

[0169] Step S600: determining the abnormal situation of the target network switch based on the abnormal data of the target network switch.

[0170] In an embodiment of the present application, any method can be used to determine the abnormal situation of the target network switch based on the abnormal data of the target network switch. For example, step S600, based on the abnormal data of the target network switch, determines the abnormal situation of the target network switch, including steps S610 to S620.

[0171] Step S610: If the abnormal data is greater than or equal to a second preset threshold, it is determined that the target network switch is abnormal.

[0172] Step S620: If the abnormal data is smaller than a second preset threshold, it is determined that the target network switch is normal.

[0173] In an embodiment of the present application, the second preset threshold value may be an empirical value obtained based on different intelligent transportation networks, or an experimental value obtained through multiple tests. In a specific embodiment of the present application, the second preset threshold value may be greater than or equal to 0.65 and less than or equal to 0.75. Specifically, the first preset threshold value may be any one of 0.65, 0.66, 0.67, 0.68, 0.69, 0.70, 0.71, 0.72, 0.73, 0.74 and 0.75, or any value between the two adjacent values ​​mentioned above.

[0174] After step S600, based on the abnormal data of the target network switch, determining the abnormal situation of the target network switch, the method further includes step S700.

[0175] Step S700: If the target network switch is abnormal, adjust the working state of the target network switch.

[0176] It should be clear that adjusting the working state of the target network switch means that the data transmission path in the smart transportation network can be changed to reduce the amount of data transmitted through the target network switch, thereby avoiding data congestion in the target network switch.

[0177] It should be clear that the anomaly detection method for network switches proposed in the embodiment of the present application can detect in advance whether the target network switch has a risk of congestion, and then adjust the transmission path of the data that may flow through the target network switch in advance, thereby avoiding congestion in the target network switch. This method can not only avoid affecting the user's experience and work efficiency, but also avoid affecting the transmission of time-sensitive data.

[0178] After introducing the embodiment of the anomaly detection method for a network switch proposed in the present application, the following introduces an anomaly detection system for a network switch proposed in the present application. Figure 2 As shown, the anomaly detection system 10 for a network switch includes:

[0179] The acquisition module 11 is used to acquire parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network;

[0180] And, obtaining the vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network;

[0181] A processing module 12 is used to obtain first correlation data between the target network switch and other network switches in the smart transportation network based on the location data;

[0182] And, based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch;

[0183] and, based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch;

[0184] And, based on the abnormal data of the target network switch, determining the abnormal situation of the target network switch.

[0185] As a specific solution in the technical solution of the present application, the acquisition module 11 is also used to acquire a data transmission path based on the location data; the data transmission path at least includes the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch;

[0186] and, obtaining historical transmission data of the data transmission path;

[0187] And, obtaining a connection distance between the target network switch and the first network switch;

[0188] The processing module 12 is further configured to obtain first correlation data based on the historical transmission data and the connection distance.

[0189] As a specific solution in the technical solution of the present application, the processing module 12 uses the following calculation formula to obtain the first correlation data:

[0190] ;

[0191] Wherein, LS(n,m) represents the first association data between the nth and mth network switches; n,m represents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; f z (n,m) represents the data transmission volume between the nth and mth network switches in the zth data transmission; f zn represents the data flow size obtained by the nth network switch during the zth data transmission; f zm Indicates the data flow size obtained by the mth network switch during the zth data transmission.

[0192] As a specific solution in the technical solution of the present application, the processing module 12 is also used to obtain the vehicle flow ratio data of the target network switch based on the location data; the vehicle flow ratio data includes the ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow;

[0193] and, if the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data;

[0194] And, if the vehicle flow ratio data is less than a first preset threshold, the second correlation data is obtained based on the parameter data and the vehicle flow data.

[0195] As a specific solution in the technical solution of the present application, the processing module 12 uses the following calculation formula to obtain the second correlation data:

[0196] ;

[0197] Among them, W a represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data;

[0198] Alternatively, the processing module 12 uses the following calculation formula to obtain the second correlation data:

[0199] ;

[0200] Among them, W a Indicates the second association data; Li za represents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; f za represents the data flow size obtained by the target network switch in the zth data transmission; f zac Indicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

[0201] As a specific solution in the technical solution of the present application, the acquisition module 11 is also used to obtain the traffic flow change trend data of the smart transportation network;

[0202] The processing module 12 is further used to obtain the interface traffic change trend data of the target network switch based on the vehicle traffic change trend data;

[0203] And, based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is obtained.

[0204] As a specific solution in the technical solution of the present application, the processing module 12 uses the following calculation formula to obtain the abnormal data:

[0205] ;

[0206] Among them, Se a represents the abnormal data of the target network switch, LS(a,b) represents the first correlation data between the a-th network switch and the b-th network switch; W a represents the second association data of the a-th network switch; M represents the number of network switches associated with the a-th network switch; K ca Represents the traffic flow change trend data in the smart transportation network; K a Indicates the interface traffic change trend data of the target network switch; K ca-1 Represents the traffic flow change trend data on the upper end of the smart transportation network; K ca+1 It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

[0207] As a specific solution in the technical solution of the present application, the processing module 12 is further used to determine that the target network switch is abnormal if the abnormal data is greater than or equal to a second preset threshold;

[0208] and, if the abnormal data is less than a second preset threshold, determining that the target network switch is normal;

[0209] And, if the target network switch is abnormal, adjusting the working state of the target network switch.

[0210] It should be clear that the anomaly detection system for network switches proposed in the embodiment of the present application can detect in advance whether the target network switch has a risk of congestion, and then adjust the transmission path of the data that may flow through the target network switch in advance, thereby avoiding congestion in the target network switch. This system can not only avoid affecting the user's experience and work efficiency, but also avoid affecting the transmission of time-sensitive data.

[0211] After introducing the embodiment of the anomaly detection system for network switches proposed in the present application, the following introduces an anomaly detection device for network switches proposed in the present application, such as Figure 3 As shown, the abnormality detection device 20 for a network switch includes:

[0212] The reader 21 is used to obtain parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network;

[0213] And, obtaining the vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network;

[0214] The processor 22 is used to obtain first association data between the target network switch and other network switches in the smart transportation network based on the location data;

[0215] And, based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch;

[0216] and, based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch;

[0217] And, based on the abnormal data of the target network switch, determining the abnormal situation of the target network switch.

[0218] As a specific solution in the technical solution of the present application, the reader 21 is also used to obtain a data transmission path based on the location data; the data transmission path at least includes the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch;

[0219] and, obtaining historical transmission data of the data transmission path;

[0220] And, obtaining a connection distance between the target network switch and the first network switch;

[0221] The processor 22 is further configured to obtain first correlation data based on the historical transmission data and the connection distance.

[0222] As a specific solution in the technical solution of the present application, the processor 22 uses the following calculation formula to obtain the first correlation data:

[0223] ;

[0224] Wherein, LS(n,m) represents the first association data between the nth and mth network switches; n,mrepresents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; f z (n,m) represents the data transmission volume between the nth and mth network switches in the zth data transmission; f zn represents the data flow size obtained by the nth network switch during the zth data transmission; f zm Indicates the data flow size obtained by the mth network switch during the zth data transmission.

[0225] As a specific solution in the technical solution of the present application, the processor 22 is further used to obtain the vehicle flow ratio data of the target network switch based on the location data; the vehicle flow ratio data includes the ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow;

[0226] and, if the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data;

[0227] And, if the vehicle flow ratio data is less than a first preset threshold, the second correlation data is obtained based on the parameter data and the vehicle flow data.

[0228] As a specific solution in the technical solution of the present application, the processor 22 uses the following calculation formula to obtain the second correlation data:

[0229] ;

[0230] Among them, W a represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data;

[0231] Alternatively, the processor 22 uses the following calculation formula to obtain the second correlation data:

[0232] ;

[0233] Among them, W a Indicates the second association data; Li za represents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; f za represents the data flow size obtained by the target network switch in the zth data transmission; f zacIndicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

[0234] As a specific solution in the technical solution of the present application, the reader 21 is also used to obtain the traffic flow change trend data of the smart transportation network;

[0235] The processor 22 is further configured to obtain, based on the vehicle flow change trend data, the interface flow change trend data of the target network switch;

[0236] And, based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is obtained.

[0237] As a specific solution in the technical solution of the present application, the processor 22 uses the following calculation formula to obtain the abnormal data:

[0238] ;

[0239] Among them, Se a represents the abnormal data of the target network switch, LS(a,b) represents the first correlation data between the a-th network switch and the b-th network switch; W a represents the second association data of the a-th network switch; M represents the number of network switches associated with the a-th network switch; K ca Represents the traffic flow change trend data in the smart transportation network; K a Indicates the interface traffic change trend data of the target network switch; K ca-1 Represents the traffic flow change trend data on the upper end of the smart transportation network; K ca+1 It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

[0240] As a specific solution in the technical solution of the present application, the processor 22 is further configured to determine that the target network switch is abnormal if the abnormal data is greater than or equal to a second preset threshold;

[0241] and, if the abnormal data is less than a second preset threshold, determining that the target network switch is normal;

[0242] And, if the target network switch is abnormal, adjusting the working state of the target network switch.

[0243] It should be clear that the anomaly detection device for network switches proposed in the embodiment of the present application can detect in advance whether the target network switch has a risk of congestion, and then adjust the transmission path of the data that may flow through the target network switch in advance, thereby avoiding congestion in the target network switch. The device can not only avoid affecting the user's experience and work efficiency, but also avoid affecting the transmission of time-sensitive data.

[0244] It should be clear that the computer-readable storage media in this application include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0245] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0246] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the methods, devices and equipment described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0247] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0248] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0249] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.

[0250] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0251] The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0252] Although the embodiments of the present application have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the appended claims and their equivalents.

Claims

1. A method for detecting anomalies in a network switch, characterized in that: The method is applied to a smart transportation network, and the method comprises: Acquire parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network; Based on the location data, obtaining first association data between the target network switch and other network switches in the smart transportation network; Obtaining vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network; Based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch; Based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch; Based on the abnormal data of the target network switch, determining the abnormal situation of the target network switch; The acquiring, based on the location data, first association data between the target network switch and other network switches in the smart transportation network includes: Based on the location data, a data transmission path is obtained; the data transmission path includes at least the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch; Acquire historical transmission data of the data transmission path; Acquire a connection distance between the target network switch and the first network switch; Based on the historical transmission data and the connectivity distance, acquiring first correlation data; The obtaining, based on the parameter data, the location data and the vehicle flow data, second correlation data of the vehicle flow in the intelligent transportation network to the target network switch includes: Based on the location data, obtaining vehicle flow ratio data of the target network switch; the vehicle flow ratio data includes a ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow; If the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data; If the vehicle flow ratio data is less than a first preset threshold, acquiring the second correlation data based on the parameter data and the vehicle flow data; The acquiring the abnormal data of the target network switch based on the first correlation data and the second correlation data includes: Obtaining traffic flow change trend data of the smart transportation network; Based on the vehicle flow change trend data, acquiring the interface flow change trend data of the target network switch; Based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is acquired.

2. The abnormality detection method for a network switch according to claim 1, characterized in that: The calculation formula for obtaining the first correlation data based on the historical transmission data and the connectivity distance is as follows: in, Indicates first association data between the nth and mth network switches; represents the connection distance between the nth and mth network switches; X represents the number of data transmissions between the nth and mth network switches in the historical transmission data; Indicates the data transmission volume between the nth and mth network switches for the zth data transmission; Indicates the data flow size obtained by the nth network switch during the zth data transmission; Indicates the data flow size obtained by the mth network switch during the zth data transmission.

3. The abnormality detection method for a network switch according to claim 1, characterized in that: The calculation formula for obtaining the second correlation data based on the vehicle flow ratio data is as follows: in, represents the second association data; represents the traffic flow ratio data of the ath network switch; LOF represents the local reachability density of the above-obtained data in a two-dimensional space, where the horizontal axis of the two-dimensional space is the traffic flow data and the vertical axis is the network flow data; p represents the Pearson correlation coefficient between the two-dimensional data; The calculation formula for obtaining the second correlation data based on the parameter data and the vehicle flow data is as follows: in, represents the second association data; represents the target network switch hardware utilization rate in the zth data transmission; N represents the total number of data transmissions; Indicates the data flow size obtained by the target network switch in the zth data transmission; Indicates the size of the data flow related to the target network switch and vehicle flow in the zth data transmission.

4. The abnormality detection method for a network switch according to claim 1, characterized in that: The calculation formula for obtaining the abnormal data of the target network switch based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data is as follows: in, Indicates abnormal data of the target network switch. Indicates first association data between the a-th network switch and the b-th network switch; represents the second association data of the a-th network switch; M represents the number of network switches associated with the a-th network switch; Represents the traffic flow change trend data in the smart transportation network; Indicates the interface traffic change trend data of the target network switch; Indicates the traffic flow change trend data on the upper end of the smart transportation network; It represents the traffic flow change trend data at the lower end of the smart transportation network; exp represents an exponential function with the natural constant e as the base.

5. The abnormality detection method for a network switch according to claim 4, characterized in that: The determining, based on the abnormal data of the target network switch, the abnormal situation of the target network switch comprises: If the abnormal data is greater than or equal to a second preset threshold, determining that the target network switch is abnormal; If the abnormal data is less than a second preset threshold, it is determined that the target network switch is normal; After determining the abnormal situation of the target network switch based on the abnormal data of the target network switch, the method further includes: If the target network switch is abnormal, the working state of the target network switch is adjusted.

6. An anomaly detection system for a network switch, characterized in that: include: An acquisition module, used to acquire parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network; And, obtaining the vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network; A processing module, configured to obtain first association data between the target network switch and other network switches in the smart transportation network based on the location data; And, based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch; and, based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch; and, based on the abnormal data of the target network switch, determining an abnormal condition of the target network switch; The acquiring, based on the location data, first association data between the target network switch and other network switches in the smart transportation network includes: Based on the location data, a data transmission path is obtained; the data transmission path includes at least the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch; Acquire historical transmission data of the data transmission path; Acquire a connection distance between the target network switch and the first network switch; Based on the historical transmission data and the connectivity distance, acquiring first correlation data; The obtaining, based on the parameter data, the location data and the vehicle flow data, second correlation data of the vehicle flow in the intelligent transportation network to the target network switch includes: Based on the location data, obtaining vehicle flow ratio data of the target network switch; the vehicle flow ratio data includes a ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow; If the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data; If the vehicle flow ratio data is less than a first preset threshold, acquiring the second correlation data based on the parameter data and the vehicle flow data; The acquiring the abnormal data of the target network switch based on the first correlation data and the second correlation data includes: Obtaining traffic flow change trend data of the smart transportation network; Based on the vehicle flow change trend data, acquiring the interface flow change trend data of the target network switch; Based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is acquired.

7. An anomaly detection device for a network switch, characterized in that: include: A reader, used to obtain parameter data and location data of a target network switch; the parameter data at least includes interface traffic; the target network switch is any network switch in the smart transportation network; And, obtaining the vehicle flow data corresponding to the parameter data in time series in the intelligent transportation network; A processor, configured to obtain first association data between the target network switch and other network switches in the smart transportation network based on the location data; And, based on the parameter data, the location data and the vehicle flow data, obtaining second correlation data of the vehicle flow in the smart transportation network to the target network switch; and, based on the first correlation data and the second correlation data, acquiring abnormal data of the target network switch; and, based on the abnormal data of the target network switch, determining an abnormal condition of the target network switch; The acquiring, based on the location data, first association data between the target network switch and other network switches in the smart transportation network includes: Based on the location data, a data transmission path is obtained; the data transmission path includes at least the target network switch and a first network switch connected to the target network switch; the first network switch is any network switch in the smart transportation network except the target network switch; Acquire historical transmission data of the data transmission path; Acquire a connection distance between the target network switch and the first network switch; Based on the historical transmission data and the connectivity distance, acquiring first correlation data; The obtaining, based on the parameter data, the location data and the vehicle flow data, second correlation data of the vehicle flow in the intelligent transportation network to the target network switch includes: Based on the location data, obtaining vehicle flow ratio data of the target network switch; the vehicle flow ratio data includes a ratio of the vehicle flow passing through the location point of the target network switch to the total vehicle flow; If the vehicle flow ratio data is greater than or equal to a first preset threshold, acquiring the second correlation data based on the vehicle flow ratio data; If the vehicle flow ratio data is less than a first preset threshold, acquiring the second correlation data based on the parameter data and the vehicle flow data; The acquiring the abnormal data of the target network switch based on the first correlation data and the second correlation data includes: Obtaining traffic flow change trend data of the smart transportation network; Based on the vehicle flow change trend data, acquiring the interface flow change trend data of the target network switch; Based on the first correlation data, the second correlation data, the vehicle flow change trend data, and the interface flow change trend data, abnormal data of the target network switch is acquired.