Video traffic limiting method and device, medium and program product
By obtaining and analyzing network messages in real time, video traffic limits are performed based on audit screening rules and traffic occupancy status information, the problem of video traffic control affecting picture quality in the existing technology is solved, and stable and high-quality video surveillance is achieved.
Patent Information
- Application Number
- CN202411715441.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-07
AI Technical Summary
When implementing video traffic control, the prior art usually reduces the video image quality by reducing the frame rate or resolution, which cannot meet the monitoring scenario requirements that have certain requirements for image quality.
By obtaining the packets to be analyzed in real time of the target network channel, obtaining the video stream packets to be audited based on the preset audit filtering rules, and determining the current limit processing operation based on the traffic occupancy status information and the current limit rules to achieve video traffic limit without reducing the image quality.
Without affecting the video quality, effectively control video traffic, avoid system lag or crash caused by excessive network pressure, and improve the stability and reliability of the video surveillance system.
Smart Images

Figure CN119583856A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of traffic restriction, and in particular to a method, device, medium and program product for video traffic restriction. Background Art
[0002] With the development of IoT technology, video acquisition and monitoring functions based on IoT are widely used in various places, such as communities, factories, parking lots, etc. Many IoT video acquisition terminals are deployed in some places. When the videos collected by these terminals are played together, it will cause great pressure on the network bandwidth, causing the playback system to freeze or even crash.
[0003] At present, existing solutions mainly use data compression methods such as reducing frame rate or resolution to achieve video flow control, but this solution is not suitable for scenarios with certain requirements on video quality. Therefore, there is an urgent need for a video flow restriction solution that does not affect the image quality. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a video traffic limitation method, device, medium and program product, so as to implement video traffic limitation without affecting the image quality.
[0005] In a first aspect, an embodiment of the present application provides a method for limiting video traffic, including:
[0006] Obtain the packets to be analyzed from the target network channel in real time;
[0007] Acquiring a video stream message to be audited that meets a preset audit screening rule based on the message to be analyzed;
[0008] The flow occupancy status information corresponding to the video stream message to be audited is obtained, and the flow limiting processing operation for the video stream message to be audited is determined based on the preset flow limiting rule and the flow occupancy status information.
[0009] In an embodiment of the present application, audit rules are set to filter the video traffic that needs to be analyzed, and flow limiting processing is performed according to the flow occupancy status corresponding to each video message and preset flow limiting rules, so that video flow limitation can be achieved without reducing video quality.
[0010] In some possible embodiments, the real-time acquisition of the to-be-analyzed message of the target network channel includes:
[0011] Monitor the original messages of the target network channel in real time and analyze the source IP address of each original message;
[0012] The original messages whose source IP addresses conform to the preset address range are screened out as the messages to be analyzed.
[0013] In the embodiment of the present application, by filtering the messages of the target network channel based on a preset address range, the processing pressure of the video traffic analysis is further reduced, thereby improving the efficiency of the video traffic limitation.
[0014] In some possible embodiments, after acquiring the to-be-analyzed message of the target network channel in real time and before acquiring the to-be-analyzed video stream message that meets the preset audit screening rule based on the to-be-analyzed message, the method further includes:
[0015] Identify the video control protocol message in the message to be analyzed, parse and record the video stream transmission information carried in the video control protocol message;
[0016] The preset audit screening rule is generated based on the video stream transmission information.
[0017] In an embodiment of the present application, by identifying the video control protocol message in the message to be analyzed and recording the corresponding video stream transmission information, and generating audit screening rules based on this information, the video traffic that needs to be audited can be screened and obtained in a timely manner, thereby further improving the flexibility of video flow limiting.
[0018] In some possible embodiments, the step of obtaining the video stream message to be audited that meets a preset audit screening rule based on the message to be analyzed includes:
[0019] Determine that the currently acquired message to be analyzed is not a video control protocol message, and parse the message quintuple information of the message to be analyzed;
[0020] In the case where the message quintuple information matches the preset audit screening rule, the message to be analyzed is obtained as the video stream message to be audited.
[0021] In an embodiment of the present application, the flexibility of video flow limiting is further improved by parsing the quintuple of the message to be analyzed and matching it with the audit rules to screen out the video stream messages to be audited that meet the rules.
[0022] In some possible embodiments, the determining the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rule and the traffic occupancy status information includes:
[0023] A target current limiting rule corresponding to the video stream message to be audited is obtained from a preset current limiting rule library, and a current limiting processing operation for the video stream message to be audited is determined based on the target current limiting rule and the traffic occupancy status information.
[0024] In the embodiment of the present application, different flow limiting rules are obtained according to different video stream messages to be audited to perform flow limiting, thereby further improving the flexibility of video flow limiting.
[0025] In some possible embodiments, the obtaining of the flow occupancy status information corresponding to the video stream message to be audited includes:
[0026] The number of video traffic transmission paths having the same source IP address as the video stream message to be audited is obtained as traffic occupancy status information corresponding to the video stream message to be audited.
[0027] In an embodiment of the present application, the flexibility of video traffic restriction is further improved by obtaining the number of video traffic transmission paths having the same source IP as the video stream message to be audited as the basis for the occupancy status for traffic restriction.
[0028] In some possible embodiments, the determining the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rule and the traffic occupancy status information includes:
[0029] When the number of transmission paths of the video traffic reaches the upper limit of the number of transmission paths specified by the current limiting rule, a blocking transmission operation is performed on the video stream message to be audited;
[0030] When the number of transmission paths of the video traffic does not reach the upper limit of the number of transmission paths specified by the flow limiting rule, a transmission release operation is performed on the video stream message to be audited.
[0031] In an embodiment of the present application, the flexibility of video traffic restriction is further improved by blocking or releasing the currently audited traffic message according to whether the number of video traffic transmission paths reaches the upper limit of the number of paths specified by the flow limiting rule, thereby further improving the flexibility of video traffic restriction.
[0032] In a second aspect, an embodiment of the present application provides a video traffic limiting device, including:
[0033] The message acquisition module is used to acquire the messages to be analyzed in the target network channel in real time;
[0034] A message screening module, used for acquiring the video stream message to be audited that meets the preset audit screening rules based on the message to be analyzed;
[0035] The flow limiting module is used to obtain the flow occupancy status information corresponding to the video stream message to be audited, and determine the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rules and the flow occupancy status information.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the method described in any embodiment of the first aspect when executing the program.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the first aspect can be implemented.
[0038] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, wherein when the computer program is executed by a processor, the method described in any embodiment of the first aspect can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A flowchart of a method for limiting video traffic provided by an embodiment of the present application;
[0041] Figure 2 A flowchart of another video traffic limiting method provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of the structure of a video traffic limiting device provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0045] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0046] It should be noted that in communities, factories, parking lots and other scenarios, multiple video acquisition terminals are usually deployed to collect video information to achieve real-time monitoring and storage of monitoring information. When the video data collected by these terminals is played or transmitted in a centralized manner, it will put a lot of pressure on the network bandwidth, which may easily cause the system to freeze or even crash. Therefore, it is a very important function to limit the transmission flow of the video acquisition system.
[0047] At present, existing solutions usually use methods such as reducing frame rate or image resolution to compress video data for transmission, so as to reduce the transmission traffic size. However, this approach sacrifices the quality of video playback and cannot meet the needs of monitoring scenarios that have certain requirements for image quality; in addition, due to the lack of restrictions on the number of video data transmission channels, when the number of video data transmission channels increases further, the solution based on compressed data still cannot avoid the data transmission volume exceeding the safety threshold, so it is still easy to cause system freezes or even crashes.
[0048] In response to the problems existing in the above-mentioned prior art, an embodiment of the present application provides a video traffic limiting method, which achieves video traffic limiting by obtaining the traffic occupancy status information of the audited video stream in the target network channel, and comparing the traffic occupancy status information according to the traffic limiting rules, thereby eliminating the need to reduce the picture quality of the video data and ensuring that the video data transmission volume always remains within the set traffic upper limit.
[0049] like Figure 1 As shown, the embodiment of the present application provides a method for limiting video traffic, which may include the steps of:
[0050] S1. Obtain the message to be analyzed in the target network channel in real time.
[0051] It should be noted that the target network channel may be a data transmission channel between a video acquisition terminal and a video acquisition server in a video surveillance system that needs to be flow-restricted.
[0052] The video traffic limiting method of the embodiment of the present application can be deployed in a system that is connected in series or in bypass to the target network channel. By connecting in series or in bypass to the traffic limiting system of the target network channel, the messages passing through the target network channel can be obtained in real time.
[0053] S2. Based on the message to be analyzed, obtain the video stream message to be audited that meets the preset audit screening rules.
[0054] Specifically, the audit screening rules may be pre-set rules for limiting data features, and these data features may illustratively include IP addresses, port numbers, transmission directions, and the like.
[0055] By configuring audit screening rules, you can filter out the messages that meet the audit screening rules from the acquired messages to be analyzed as the video stream messages to be audited. For messages that do not meet the audit screening rules, if the flow restriction system is connected to the target network channel in series, these messages can be directly released; if the flow restriction system is connected to the target network channel in bypass, further processing of these messages can be ignored.
[0056] S3. Obtain the flow occupancy status information corresponding to the video stream message to be audited, and determine the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rules and the flow occupancy status information.
[0057] Specifically, for the video stream messages to be audited that are screened out and meet the audit screening rules, first obtain the traffic occupancy status information corresponding to the current video stream message to be audited, that is, obtain the traffic indicator information corresponding to the current video stream message to be audited, such as the normal transmission data volume (preset data transmission size per unit time) with the same destination IP address as the video stream message to be audited.
[0058] Then, based on the preset current limiting rules, it is determined whether the currently acquired flow occupancy status information exceeds the limiting threshold of the flow limiting rules, and the corresponding flow limiting processing operation is adopted according to the determination result. For example, if the flow occupancy status information exceeds the limiting threshold, the transmission of the video stream message to be audited is blocked; if the flow occupancy status information does not exceed the limiting threshold, the video stream message to be audited is released.
[0059] Based on this, audit rules are set to filter out the video traffic messages that need to be analyzed, and selective flow limiting is performed based on whether the traffic occupancy status corresponding to the message reaches the flow limiting threshold specified by the flow limiting rules, thereby achieving video traffic limitation without reducing video quality.
[0060] In some possible embodiments, step S1, obtaining the message to be analyzed of the target network channel in real time, may include:
[0061] S101, monitor the original messages of the target network channel in real time, and analyze the source IP address of each original message;
[0062] S102: Filter out original messages whose source IP addresses are within a preset address range as messages to be analyzed.
[0063] It should be noted that, in the process of obtaining the packets to be analyzed in the target network channel, a preliminary screening condition may be set first and the packets that do not need to be analyzed may be filtered, thereby further reducing the processing pressure of the video traffic analysis.
[0064] Specifically, first, the address range of message management can be set according to actual needs; then, for all original messages of the target network channel monitored in real time, the source IP address of the original message monitored each time is obtained respectively, and it is determined that the source IP address of the original message is within the pre-set address range, then the original message is judged to meet the screening conditions, and it is used as a message to be analyzed for further analysis and processing; conversely, if it is determined that the original message does not meet the screening conditions, the original message will not be included in the scope of further analysis and processing.
[0065] It is understandable that for original messages that do not require further analysis and processing, if the traffic restriction system is connected in series to the target network channel, these messages can be directly released; if the traffic restriction system is connected in bypass to the target network channel, further processing of these messages can be ignored.
[0066] Based on this, by setting preliminary screening conditions to filter the messages passing through the target network channel, the processing pressure of video traffic analysis can be reduced, thereby further improving the efficiency of video traffic restriction.
[0067] In some possible embodiments, after step S1 and before step S2, the following may also be included:
[0068] S111, identifying a video control protocol message in the message to be analyzed, parsing and recording the video stream transmission information carried in the video control protocol message;
[0069] S112: Generate preset audit screening rules based on the video stream transmission information.
[0070] Specifically, after obtaining the message to be analyzed passing through the target network channel, first parse the message to be analyzed to see whether it is a video control protocol message, that is, determine whether the message to be analyzed is SIP (Session initialization Protocol). If so, use the parsing strategy corresponding to the SIP protocol to parse the message to be analyzed, obtain the video stream transmission information to be used when the video stream carried by the protocol message is transmitted, and record it.
[0071] Exemplarily, the video stream transmission information may include source IP address, destination IP address, transmission direction (pull stream or push stream) and destination port, etc. If it is not a video control protocol message, the audit screening rules (generated based on the recorded video stream transmission information) are used to screen the video stream messages to be audited that meet the rules.
[0072] Then, the corresponding audit screening rule is generated based on the recorded video stream transmission information. Exemplarily, the audit screening rule can be used to indicate that the to-be-analyzed message with specific video stream transmission information is screened out.
[0073] Based on this, by identifying the video control protocol messages in the messages to be analyzed and recording the corresponding video stream transmission information, corresponding audit screening rules are generated according to the recorded video stream transmission information, so that the video traffic messages that need to be audited can be screened and obtained.
[0074] In some possible embodiments, step S2, obtaining the video stream message to be audited that meets the preset audit screening rule based on the message to be analyzed, may include:
[0075] S201, determining that the currently acquired message to be analyzed is not a video control protocol message, and parsing message quintuple information of the message to be analyzed;
[0076] S202: When the message quintuple information matches the preset audit screening rule, the message to be analyzed is obtained as the video stream message to be audited.
[0077] Specifically, if it is determined that the currently acquired message to be analyzed is not a video control protocol message, the generated audit screening rule is used to screen the messages that meet the rule. In the process of screening the video stream messages to be audited that meet the preset audit screening rule, the currently acquired message to be analyzed is firstly parsed for the message five-tuple information. Exemplarily, the message five-tuple information may include the source IP address, the destination IP address, the transmission direction, the source port and the destination port.
[0078] Then, the five-tuple information of the message currently parsed is matched based on the preset audit screening rules. If a match is hit, it is regarded as a video stream message to be audited that requires further traffic audit; otherwise, there is no need to audit the message. For messages that do not need to be audited, if the traffic limitation system is connected in series to the target network channel, these messages can be released directly; if the traffic limitation system is connected to the target network channel in bypass, further processing of these messages can be ignored.
[0079] Based on this, by parsing the five-tuple information of the message to be analyzed and matching it with the audit rules, the video stream messages to be audited that currently need to be audited can be screened out.
[0080] In some possible embodiments, in step S3, determining the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rule and the traffic occupancy status information may include:
[0081] S301. Obtain a target current limiting rule corresponding to the video stream message to be audited from a preset current limiting rule library, and determine a current limiting processing operation for the video stream message to be audited based on the target current limiting rule and traffic occupancy status information.
[0082] It should be noted that when auditing and limiting the audited video stream messages, in addition to adopting uniformly set limiting rules, different limiting rules can also be set for different audited video stream messages.
[0083] Specifically, a flow limiting rule library containing several flow limiting rules can be pre-set, wherein each flow limiting rule can be classified according to the five-tuple information of the message. For example, different flow limiting rules can be set for different destination IP addresses, or different flow limiting rules can be set for different port numbers.
[0084] It can be understood that since the message quintuple information of the message to be analyzed (that is, the video stream message to be audited that complies with the rules) is parsed in step S201, the corresponding target current limiting rules can be matched and obtained from the preset current limiting rule library based on the quintuple information of the video stream message to be audited.
[0085] Based on this, different flow limiting rules are set to limit the flow of different video stream messages to be audited, thereby further improving the flexibility of video flow limitation.
[0086] In some possible embodiments, in step S3, obtaining the flow occupancy status information corresponding to the video stream message to be audited may include:
[0087] S311. Obtain the number of video traffic transmission paths having the same source IP address as the video stream message to be audited as traffic occupancy status information corresponding to the video stream message to be audited.
[0088] It should be noted that when counting the traffic occupancy status information corresponding to the video stream message to be audited, the number of video traffic transmission paths being transmitted with the same source IP address as the video stream message to be audited can be used as the corresponding traffic occupancy status information. In this way, by obtaining the number of video traffic transmission paths with the same source IP address and limiting the number of video traffic transmission paths according to the set upper limit threshold, the effect of video traffic restriction can be achieved.
[0089] Exemplarily, in the process of obtaining the number of video traffic transmission routes, the source IP address can be used as a unique identifier for statistics. Whenever a video stream reporting event is detected at the same source IP address (data reporting will occur when different users need to obtain videos collected by the same source IP address), the record is incremented by 1, and whenever the end of video stream reporting is detected, the record is decremented by 1.
[0090] Based on this, by obtaining the number of video traffic transmission paths with the same source IP as the video stream message to be audited as the basis for the occupancy status for traffic restriction, video traffic restriction can be implemented based on the number of video traffic transmission paths.
[0091] In some possible embodiments, in step S3, determining the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rule and the traffic occupancy status information may include:
[0092] S321, when the number of video traffic transmission paths reaches the upper limit of the number of transmission paths specified by the flow limiting rule, a blocking transmission operation is performed on the audit video stream message;
[0093] S322: When the number of video traffic transmission paths does not reach the upper limit of the number of transmission paths specified by the flow limiting rule, a transmission release operation is performed on the audited video stream message.
[0094] Specifically, the flow limiting rule specifies an upper threshold of the number of transmission paths. The video flow limitation is achieved by judging whether the number of video flow transmission paths (of the same source IP address) corresponding to the current audited video stream message exceeds the upper threshold of the number of transmission paths.
[0095] Specifically, if the current video traffic transmission path number does not reach the upper limit of the transmission path number specified by the flow limiting rule, the video stream message to be audited can be directly released. For example, if the flow limiting system is connected to the target network channel in series, these video stream messages to be audited can be directly released; if the flow limiting system is connected to the target network channel in bypass, further processing of these messages can be ignored.
[0096] In addition, if the current video traffic transmission path has reached the upper limit of the transmission path specified by the flow limiting rules, it is necessary to block the transmission of the current video stream message to be audited. For example, if the flow limiting system is connected in series to the target network channel, the video stream message to be audited can be directly discarded; if the flow limiting system is connected to the target network channel in a bypass, the server can be simulated to send an RST message (reset, reset message) to the IoT video acquisition terminal to trigger a connection interruption.
[0097] Based on this, by judging whether the number of video traffic transmission paths reaches the upper limit of the path specified by the flow limiting rule, the currently audited traffic message is blocked or released, thereby limiting the video traffic.
[0098] Please refer to Figure 2 The following is an explanation of the video traffic restriction method of the present application based on a specific example:
[0099] 1. The video traffic limiting system configures relevant rules or parameters through Web configuration and display module configuration; for example, the management terminal range (address range) that needs to be analyzed and processed is set to: 192.168.1.0 / 24, and the upper limit of the number of playback channels for the same source IP address in the flow limiting rule is set to 2.
[0100] 2. The video traffic limiting system is deployed in the network environment in series or bypass mode to monitor and process the traffic between the IoT video acquisition terminal (address 192.168.1.1) and the IoT video acquisition server (192.168.1.2).
[0101] 3. Filter packets based on the preset address range: For example, for packets with a source IP address of 192.168.1.1, since they are within the management terminal range (192.168.1.0 / 24), the packets are transferred to the next module (video packet protocol parsing) for further processing. For packets that are not within the management terminal range, such as packets with a source IP address of 192.168.2.1, if the system is deployed in series, such packets are directly released; if the system is deployed in bypass, such packets are not processed. By filtering packets, the processing pressure of subsequent modules (such as video packet protocol parsing) is reduced, thereby improving the efficiency of traffic auditing and reducing congestion in the video transmission network.
[0102] 4. Video message protocol analysis: divided into video control protocol analysis and video stream analysis.
[0103] Video control protocol analysis: analyze whether the message is a video control protocol. If so, analyze the message to obtain the video stream transmission information to be used during video stream transmission (for example, source IP address 192.168.1.1, destination IP address 192.168.1.2, direction uplink, destination port 30000) and record it. If it is not a sip protocol, perform video stream judgment and analysis.
[0104] Video stream analysis: When the message is not a video control protocol, the five-tuple information of the message (source IP address, destination IP address, direction, source port and destination port) is analyzed, and the message is judged whether it conforms to the currently recorded video stream transmission information (source IP address 192.168.1.1, destination IP address 192.168.1.2, direction upload, destination port 30000) according to its five-tuple information. For messages that conform to the video stream transmission information (video stream messages to be audited), they are transferred to the IoT video transmission channel statistics and IoT video traffic audit. For messages that do not conform to the video stream transmission information, if the system is deployed in series, they are directly released, and if the system is deployed in bypass, the message is not processed.
[0105] 5. IoT video transmission path statistics module: Use the source IP address (e.g. 192.168.1.1) as a unique identifier to count the number of video traffic transmission paths. For example, when the source IP address 192.168.1.1 reports video stream data with a new destination port, the video transmission path record corresponding to the source IP address identifier is increased by 1, and when the video stream ends reporting, the video transmission path record corresponding to the source IP address identifier is reduced by 1.
[0106] 6. Perform traffic audit on the audited video stream messages. For the messages that need to be audited, when the number of currently recorded video transmission channels corresponding to the source IP address identifier does not reach the upper limit of the number of playback channels (2 channels): if the system is deployed in series, it will be released directly; if the system is deployed in bypass, this message will not be processed. When the number of currently recorded video transmission channels corresponding to the source IP address identifier has reached the upper limit of the number of playback channels (2 channels): if the system is deployed in series, this message will be discarded directly or a rejection message will be sent to block it; if the system is in bypass, it will simulate the server sending an RST message to the IoT video acquisition terminal to trigger a connection interruption.
[0107] Please refer to Figure 3 , Figure 3 FIG. 1 shows a block diagram of a video flow restriction device provided by some embodiments of the present application. It should be understood that the video flow restriction device is similar to the above-mentioned Figure 1 Corresponding to the method embodiment, each step involved in the above method embodiment can be executed. The specific functions of the video traffic limiting device can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here.
[0108] Figure 3 The video flow limiting device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the video flow limiting device, and the video flow limiting device includes:
[0109] The message acquisition module 310 is used to acquire the message to be analyzed of the target network channel in real time;
[0110] The message screening module 320 is used to obtain the video stream message to be audited that meets the preset audit screening rules based on the message to be analyzed;
[0111] The flow limiting module 330 is used to obtain the flow occupancy status information corresponding to the video stream message to be audited, and determine the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rules and the flow occupancy status information.
[0112] It can be understood that the above-mentioned device item embodiments correspond to the method item embodiments of the present invention. A video traffic limiting device provided by the embodiment of the present invention can implement the video traffic limiting method provided by any method item embodiment of the present invention.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.
[0114] like Figure 4As shown, some embodiments of the present application provide an electronic device 400, which includes: a memory 410, a processor 420, and a computer program stored in the memory 410 and executable on the processor 420, wherein the processor 420 reads the program from the memory 410 through a bus 430 and executes the program to implement a method of any embodiment of the video traffic limitation method described above.
[0115] Processor 420 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 420 can be a microprocessor.
[0116] The memory 410 may be used to store instructions executed by the processor 420 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 420 of the disclosed embodiment may be used to execute instructions in the memory 410 to implement the method shown above. The memory 410 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.
[0117] Some embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon. The computer program is executed by a processor to execute the method described in the method embodiment.
[0118] Some embodiments of the present application further provide a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.
[0119] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0120] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0121] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0122] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0123] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0124] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0125] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A video traffic limiting method, characterized in that: include: Obtain the packets to be analyzed from the target network channel in real time; Acquiring a video stream message to be audited that meets a preset audit screening rule based on the message to be analyzed; The flow occupancy status information corresponding to the video stream message to be audited is obtained, and the flow limiting processing operation for the video stream message to be audited is determined based on the preset flow limiting rule and the flow occupancy status information.
2. The video traffic limiting method according to claim 1, characterized in that: The real-time acquisition of the message to be analyzed in the target network channel includes: Monitor the original messages of the target network channel in real time and analyze the source IP address of each original message; The original messages whose source IP addresses conform to the preset address range are screened out as the messages to be analyzed.
3. The video traffic limiting method according to claim 1, characterized in that: After acquiring the to-be-analyzed message of the target network channel in real time, and before acquiring the to-be-analyzed video stream message that meets the preset audit screening rule based on the to-be-analyzed message, the method further includes: Identify the video control protocol message in the message to be analyzed, parse and record the video stream transmission information carried in the video control protocol message; The preset audit screening rule is generated based on the video stream transmission information.
4. The video traffic limiting method according to claim 3 is characterized in that: The step of obtaining the video stream message to be audited that meets the preset audit screening rule based on the message to be analyzed includes: Determine that the currently acquired message to be analyzed is not a video control protocol message, and parse the message quintuple information of the message to be analyzed; In the case where the message quintuple information matches the preset audit screening rule, the message to be analyzed is obtained as the video stream message to be audited.
5. The video traffic limiting method according to claim 1, characterized in that: The determining of the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rule and the flow occupancy status information includes: A target current limiting rule corresponding to the video stream message to be audited is obtained from a preset current limiting rule library, and a current limiting processing operation for the video stream message to be audited is determined based on the target current limiting rule and the traffic occupancy status information.
6. The video traffic limiting method according to claim 1, characterized in that: The obtaining of the flow occupancy status information corresponding to the video stream message to be audited includes: The number of video traffic transmission paths having the same source IP address as the video stream message to be audited is obtained as traffic occupancy status information corresponding to the video stream message to be audited.
7. The video traffic limiting method according to claim 6, characterized in that: The determining of the flow limiting processing operation for the video stream message to be audited based on the preset flow limiting rule and the flow occupancy status information includes: When the number of transmission paths of the video traffic reaches the upper limit of the number of transmission paths specified by the current limiting rule, a blocking transmission operation is performed on the video stream message to be audited; When the number of transmission paths of the video traffic does not reach the upper limit of the number of transmission paths specified by the flow limiting rule, a transmission release operation is performed on the video stream message to be audited.
8. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the video traffic limiting method according to any one of claims 1 to 7 can be implemented when the processor executes the program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the video traffic limiting method according to any one of claims 1 to 7 is executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the video traffic limiting method according to any one of claims 1 to 7 is implemented.
