CN102724084B - Test and verification system for grid video monitoring system - Google Patents
Test and verification system for grid video monitoring system Download PDFInfo
- Publication number
- CN102724084B CN102724084B CN201210168537.XA CN201210168537A CN102724084B CN 102724084 B CN102724084 B CN 102724084B CN 201210168537 A CN201210168537 A CN 201210168537A CN 102724084 B CN102724084 B CN 102724084B
- Authority
- CN
- China
- Prior art keywords
- module
- protocol
- test
- processing
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 233
- 238000012544 monitoring process Methods 0.000 title claims abstract description 41
- 238000012795 verification Methods 0.000 title claims abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 217
- 238000004458 analytical method Methods 0.000 claims abstract description 89
- 238000000034 method Methods 0.000 claims abstract description 65
- 230000008569 process Effects 0.000 claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 14
- 238000005538 encapsulation Methods 0.000 claims abstract description 9
- 238000013100 final test Methods 0.000 claims abstract description 5
- 230000002452 interceptive effect Effects 0.000 claims abstract description 5
- 230000004044 response Effects 0.000 claims description 34
- 230000007246 mechanism Effects 0.000 claims description 10
- 238000011990 functional testing Methods 0.000 claims description 6
- 239000003999 initiator Substances 0.000 claims description 2
- 230000003068 static effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 45
- 238000013461 design Methods 0.000 description 23
- 238000010276 construction Methods 0.000 description 13
- 238000011056 performance test Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 238000004088 simulation Methods 0.000 description 8
- 238000004519 manufacturing process Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 3
- 238000010998 test method Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000000547 structure data Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种电网视频监控系统测试验证系统,包括以下四层:网络层:包括基于IP网络的TCP协议处理模块和UDP协议处理模块,向协议处理层提供处理接口;协议处理层:包括SIP协议解析处理单元、RTSP协议解析处理单元、HTTP协议解析处理单元和RTP/RTCP协议解析处理单元,各个协议解析处理单元均由商业协议栈构建,各个协议解析处理单元之间相互独立;数据承载分析层:对各通信协议中的消息内容的封装格式进行检查;业务控制层:按照业务流程、业务功能内容对交互流程中的业务逻辑进行处理和检查;业务控制层对最终的测试结果进行展示。本发明采用标准协议栈以及数据格式解析模块,可满足测试所需的准确性、可靠性。
The invention discloses a test and verification system for a power grid video monitoring system, which includes the following four layers: network layer: includes a TCP protocol processing module and a UDP protocol processing module based on an IP network, and provides a processing interface for the protocol processing layer; protocol processing layer: includes SIP protocol analysis processing unit, RTSP protocol analysis processing unit, HTTP protocol analysis processing unit and RTP/RTCP protocol analysis processing unit, each protocol analysis processing unit is constructed by commercial protocol stack, and each protocol analysis processing unit is independent of each other; data bearer Analysis layer: check the encapsulation format of the message content in each communication protocol; business control layer: process and check the business logic in the interactive process according to the business process and business function content; the business control layer displays the final test results . The invention adopts a standard protocol stack and a data format analysis module, which can meet the accuracy and reliability required by the test.
Description
技术领域 technical field
本发明是遵循国家电网公司Q/GDW 517系列企业标准《电网视频监控系统及接口》中定义的电网视频监控系统的功能、性能及通信接口协议,提出的一种测试验证平台,属于电网安全防范技术领域。 The present invention follows the function, performance and communication interface protocol of the power grid video monitoring system defined in the Q/GDW 517 series enterprise standard "Grid Video Monitoring System and Interface" of the State Grid Corporation of China, and proposes a test verification platform, which belongs to the power grid security prevention technology field.
背景技术 Background technique
电网视频监控系统是智能电网的重要组成部分,广泛应用于电网的建设、生产、经营等方面,是可视化电网的重要支撑。由于标准不统一、技术路线不一致,电网视频监控系统在不同的建设时期选用了不同的技术和不同厂家的产品,特别是部分厂商出于技术上的保密及市场上的垄断,大量采用私有通信协议和修改标准协议,从而导致了不同系统之间无法互联、无法进行统一的系统规划、信息无法共享等问题,制约了电网视频监控系统的发展和应用。 The power grid video monitoring system is an important part of the smart grid, widely used in the construction, production, operation and other aspects of the power grid, and is an important support for the visualized power grid. Due to inconsistent standards and inconsistent technical routes, the power grid video surveillance system uses different technologies and products from different manufacturers in different construction periods. In particular, some manufacturers use a large number of private communication protocols due to technical secrecy and market monopoly. And modify the standard protocol, resulting in problems such as the inability to interconnect different systems, the inability to carry out unified system planning, and the inability to share information, which restricts the development and application of power grid video surveillance systems.
目前,国家电网公司智能电网建设,对视频监控系统提出了新的要求,因此实现统一监控、统一存储、分级控制、分域管理,使不同的视频监视系统能够互联互通,满足视频监控系统全局化、整体化的发展的需求,已成为亟待解决的问题。为使电网视频监控系统能按照统一的标准进行有序推进,实现电网视频信息的实时监测及应用,国家电网公司发布了企业标准《电网视频监控系统及接口》的第1部分:技术要求,第2部分:测试方法,第3部分:工程验收。 At present, the construction of the smart grid of the State Grid Corporation of China puts forward new requirements for the video surveillance system. Therefore, unified monitoring, unified storage, hierarchical control, and domain-specific management are realized, so that different video surveillance systems can be interconnected and meet the globalization of the video surveillance system. , The demand for integrated development has become an urgent problem to be solved. In order to make the power grid video surveillance system advance in an orderly manner according to unified standards, and realize the real-time monitoring and application of power grid video information, the State Grid Corporation of China issued the first part of the enterprise standard "Grid Video Surveillance System and Interface": Technical Requirements, No. Part 2: Test Methods, Part 3: Engineering Acceptance.
为保证该系列标准能够正确完整地贯彻和执行,保证各厂商提供的视频监控系统能够满足标准的要求,需要对各厂商提供的视频监控系统按照标准规定的内容进行入网测试和互联互通验证,检测其协议的一致性和系统功能及性能。而目前没有任何完整的测试方案和测试系统能够满足对视频监控系统的测试验证要求,无法为电网视频监控系统的设备选型、系统建设、工程验收等提供依据。 In order to ensure that the series of standards can be implemented and implemented correctly and completely, and that the video surveillance systems provided by various manufacturers can meet the requirements of the standards, it is necessary to conduct network access tests and interconnection verifications for the video surveillance systems provided by various manufacturers in accordance with the content specified in the standards. Consistency of its protocol and system function and performance. At present, there is no complete test plan and test system that can meet the test and verification requirements of the video surveillance system, and cannot provide a basis for the equipment selection, system construction, and project acceptance of the power grid video surveillance system.
本发明将针对Q/GDW 517《电网视频监控系统及接口》系列标准研制一种测试验证平台,为国家电网公司系统的电网视频监控、输变电设备状态视频监控、应急指挥移动视频系统、可视化生产调度、生产办公及营销场所安防视频监控等系统的统一规范建设,规范电网视频监控统与电网运行、管理和控制中多种应用系统间的接口和协议,实现各业务系统之间的互联和数据共享,消除各系统之间的信息“孤岛”,拓展多媒体新业务等奠定必要的基础。还将为相关生产厂家的设计、制造和改进提供依据,实现不同厂家产品在统一平台下无缝的互联互通,大大减少电网视频监控系统的建设费用和运维工作量,避免重复建设,提高电网运行管理水平和工作效率。 The present invention will develop a test and verification platform for the series standards of Q/GDW 517 "Grid Video Monitoring System and Interface", which will be used for the grid video monitoring, power transmission and transformation equipment status video monitoring, emergency command mobile video system, and visualization of the State Grid Corporation of China. The unified and standardized construction of production scheduling, production office and marketing site security video monitoring systems, standardize the interfaces and protocols between the power grid video monitoring system and various application systems in power grid operation, management and control, and realize the interconnection and coordination between various business systems. Data sharing, elimination of information "islands" between systems, and expansion of new multimedia services have laid the necessary foundation. It will also provide a basis for the design, manufacture and improvement of related manufacturers, realize seamless interconnection of products from different manufacturers under a unified platform, greatly reduce the construction cost and operation and maintenance workload of the power grid video monitoring system, avoid repeated construction, and improve the quality of the power grid. Operational management level and work efficiency.
发明内容 Contents of the invention
本发明所要解决的技术问题是提供一种具有准确性、可靠性、设计合理性、以及测试结果详细的测试系统,能够便于对电网视频监控平台的协议、业务功能要求、性能要求进行测试并且扩展,从而满足不同的测试要求。 The technical problem to be solved by the present invention is to provide a test system with accuracy, reliability, design rationality, and detailed test results, which can facilitate the testing and expansion of the protocol, business function requirements, and performance requirements of the power grid video monitoring platform , so as to meet different test requirements.
为解决上述技术问题,本发明提供一种电网视频监控系统测试验证系统,其特征在于,包括以下四层: In order to solve the above technical problems, the present invention provides a test and verification system for a power grid video monitoring system, which is characterized in that it includes the following four layers:
网络层:包括基于IP网络的TCP协议处理模块和UDP协议处理模块,向协议处理层提供处理接口; Network layer: including TCP protocol processing module and UDP protocol processing module based on IP network, providing processing interface to protocol processing layer;
协议处理层:包括SIP协议解析处理单元、RTSP协议解析处理单元、HTTP协议解析处理单元和RTP/RTCP协议解析处理单元,各个协议解析处理单元均由商业协议栈构建,保证了协议解析的准确性和标准性,各个协议解析处理单元之间相互独立; Protocol processing layer: including SIP protocol analysis processing unit, RTSP protocol analysis processing unit, HTTP protocol analysis processing unit and RTP/RTCP protocol analysis processing unit, each protocol analysis processing unit is constructed by commercial protocol stack to ensure the accuracy of protocol analysis and standardization, each protocol analysis processing unit is independent of each other;
数据承载分析层:包括各个相关独立的数据承载分析模块,分别独立实现对XML格式解析、SDP格式解析、音频解码格式解析、视频解码解析和地址编码解码,对SIP、RTSP、HTTP、RTP/RTCP通信协议中的消息内容的封装格式进行检查; Data bearer analysis layer: including various related and independent data bearer analysis modules, which independently implement XML format analysis, SDP format analysis, audio decoding format analysis, video decoding analysis and address encoding and decoding, and SIP, RTSP, HTTP, RTP/RTCP Check the encapsulation format of the message content in the communication protocol;
业务控制层:按照业务流程、业务功能等内容对交互流程中的业务逻辑进行处理和检查;业务控制层对最终的测试结果进行展示; Business control layer: process and check the business logic in the interactive process according to the business process, business function, etc.; the business control layer displays the final test results;
各层之间的关系为:软件网络层向协议处理层提供网络处理支撑;数据承载分析层和协议处理层之间没有任何交换过程,采用协议与数据承载分离的设计方法,统一由业务控制层对两层处理进行统一管理,通过业务处理层将数据承载层和协议处理层的不同模块进行组合,从而构成相应的业务处理模块。 The relationship between each layer is as follows: the software network layer provides network processing support to the protocol processing layer; there is no exchange process between the data carrying analysis layer and the protocol processing layer, and the design method of separating the protocol and data carrying is adopted, and the business control layer is unified The two layers of processing are managed in a unified manner, and different modules of the data bearing layer and the protocol processing layer are combined through the business processing layer to form corresponding business processing modules.
前述的一种电网视频监控系统测试验证系统,其特征在于:对正确消息处理机制为:在测试流程中,业务控制层在处理完正确请求后,业务控制层发送正确响应到协议处理层,协议处理层收到业务控制层的正确响应后,发送正确响应到网络层,最终通过网络层将正确响应进行回复。 The foregoing test and verification system for a power grid video monitoring system is characterized in that: the correct message processing mechanism is: in the test process, after the service control layer processes the correct request, the service control layer sends a correct response to the protocol processing layer, and the protocol After the processing layer receives the correct response from the service control layer, it sends the correct response to the network layer, and finally replies with the correct response through the network layer.
前述的一种电网视频监控系统测试验证系统,其特征在于:错误消息处理过程为:在处理流程中,包括错误原因的上报和对错误消息的响应两种处理,在不同层的错误都采用逐层上报的处理方式,网络层的错误原因直接上报到协议处理层,协议处理层对网络层及自身解析的错误原因直接上报到业务控制层,对于数据承载分析层自身解析的错误原因直接上报业务控制层;业务控制层对解析到的错误对请求进行响应,响应消息采用逐层回复的方式,业务控制层错误以及数据承载分析层将错误原因通知协议处理层,协议处理层将数据承载层、业务控制层以及自身解析的错误原因通知网络层,网络层将所有错误原因进行响应。 The foregoing test and verification system for a power grid video monitoring system is characterized in that: the error message processing process is: in the processing flow, including the reporting of the cause of the error and the response to the error message. The processing method of layer reporting, the error reasons of the network layer are directly reported to the protocol processing layer, the error reasons of the network layer and its own analysis are directly reported by the protocol processing layer to the service control layer, and the error reasons of the data bearer analysis layer are directly reported to the business Control layer; the service control layer responds to the request for the error that has been parsed, and the response message adopts a layer-by-layer reply method. The service control layer and the error reasons analyzed by itself notify the network layer, and the network layer responds to all error reasons.
前述的一种电网视频监控系统测试验证系统,其特征在于:在所述业务控制层中,通过软件的方式模拟与被测平台互联的平台:视频监控系统子系统,通过软件的方式模拟与被测平台互联的前端系统:前端系统子系统,通过软件的方式模拟大话务量测试仪:话务量测试子系统,从而通过这三个部分共同构成电网视频监控系统测试验证平台,实现对被测平台的功能、性能、接口进行测试。 The foregoing test verification system for a power grid video surveillance system is characterized in that: in the service control layer, the platform interconnected with the platform under test is simulated by software: the video surveillance system subsystem is simulated with the platform to be tested by software The front-end system interconnected with the test platform: the front-end system subsystem, simulates the large traffic tester by software: the traffic test subsystem, so that these three parts together constitute a test and verification platform for the power grid video surveillance system, and realize the testing of the The function, performance and interface of the test platform are tested.
视频监控系统测试子系统:模拟作为被测视频监控系统的上级系统或下级系统,采用接口A协议与被测视频监控系统进行通信,完整实现对被测视频监控系统的功能完整性、接口A的协议一致性进行测试; Video surveillance system test subsystem: simulate the upper-level system or lower-level system of the video surveillance system under test, use the interface A protocol to communicate with the video surveillance system under test, and fully realize the functional integrity of the video surveillance system under test and the interface A. Protocol conformance testing;
前端系统测试子系统:模拟作为被测视频监控系统的前端系统,采用接口A协议与被测视频监控系统进行通信,完整实现对被测视频监控系统接口B的协议一致性进行测试; Front-end system test subsystem: simulate the front-end system of the video surveillance system under test, use interface A protocol to communicate with the video surveillance system under test, and completely realize the protocol consistency test of interface B of the video surveillance system under test;
话务量测试子系统:模拟作为被测视频监控系统的上级平台和前端系统,通过接口A协议和接口B协议与被测视频监控系统进行通信,实现对被测视频监控系统的各项性能参数进行测试。接口A协议、接口B协议为《电网视频监控系统及接口》标准中所定义的两种协议。 Traffic test subsystem: simulate the superior platform and front-end system of the video surveillance system under test, communicate with the video surveillance system under test through the interface A protocol and interface B protocol, and realize the various performance parameters of the video surveillance system under test carry out testing. The interface A protocol and the interface B protocol are two protocols defined in the "Grid Video Surveillance System and Interface" standard.
本发明的电网视频监控系统测试验证平台,通过测试系统能够对电网视频监控系统的前端系统接口B协议、视频监控系统作为上级平台的接口A协议、视频监控系统作为下级平台的接口A协议、视频监控系统的接口B协议各个接口协议及功能进行测试,规范化各个电网视频监控系统建设的标准性、互联互通性等。 The test and verification platform of the power grid video monitoring system of the present invention can test the front-end system interface B protocol of the power grid video monitoring system, the interface A protocol of the video monitoring system as the upper platform, the interface A protocol of the video monitoring system as the lower platform, and the video Each interface protocol and function of the interface B protocol of the monitoring system are tested to standardize the standardization and interconnection of the video monitoring system construction of each power grid.
针对实际应用中,电网视频监控系统的功能项会进行不断扩展,测试系统采用了组态的设计方法,能够很方便地对功能测试项进行编辑和扩展,从而满足后续对功能测试项不断变化的测试需求。 For practical applications, the function items of the power grid video monitoring system will continue to expand. The test system adopts the configuration design method, which can easily edit and expand the function test items, so as to meet the subsequent changes in the function test items. Test requirements.
由于在实际应用中,电网视频监控系统的通信接口协议会进行不断扩展,与其对应的性能测试项将会不断增加,本系统采用了模块化的设计方法,能够灵活地增加测试项,从而满足不断变化的测试需求。 In practical applications, the communication interface protocol of the power grid video surveillance system will continue to expand, and the corresponding performance test items will continue to increase. This system adopts a modular design method, which can flexibly increase test items to meet continuous Changing testing needs.
支持在硬件上的分布式部署,能够根据实际的性能测试要求,方便地支持大容量的性能测试。 It supports distributed deployment on hardware, and can conveniently support large-capacity performance testing according to actual performance testing requirements.
通过采用时间同步机制和高精度定时器,保证了各个硬件设备在时间上的同步,能够实时控制各个硬件设备按照指定的时间要求产生消息请求,并能够保证了测试结构统计的准确性。 By adopting a time synchronization mechanism and a high-precision timer, the time synchronization of each hardware device is guaranteed, and each hardware device can be controlled in real time to generate message requests according to the specified time requirements, and the accuracy of test structure statistics can be guaranteed.
测试系统虽然最初是针对电网视频监控系统的需求而研制开发的,但由于其结构的灵活性,亦可以作为软交换系统、多媒体调度系统、音视频通信系统等的基础平台,具有广泛的适用性。 Although the test system was originally developed for the needs of the power grid video monitoring system, due to its structural flexibility, it can also be used as a basic platform for soft switching systems, multimedia dispatching systems, audio and video communication systems, etc., and has wide applicability .
测试系统采用了分层解析的错误消息处理机制,能够对在测试过程中出现的异常消息或不正确的处理流程,提供准确的错误提示,便于被测视频监控系统能够准备定位和发现存在的问题。 The test system adopts a layered analysis error message processing mechanism, which can provide accurate error prompts for abnormal messages or incorrect processing procedures during the test, so that the video surveillance system under test can prepare for positioning and find existing problems .
本发明所达到的有益效果: The beneficial effect that the present invention reaches:
(1)解决了传统测试中只能采用通用设备进行测试的问题 (1) Solve the problem that only general-purpose equipment can be used for testing in traditional testing
在本装置之前,对电网视频监控平台的性能测试只能借助昂贵的第三方标准测试设备进行测试,而且测试流程存、消息内容、可测试项等方面均存在一定的缺陷,无法满足测试要求。本系统针对《电网视频监控系统及接口》系列标准,定制开发了该测试系统,能够在满足实际测试需求。 Before this device, the performance test of the grid video surveillance platform can only be tested with the help of expensive third-party standard test equipment, and there are certain defects in the test process storage, message content, testable items, etc., which cannot meet the test requirements. According to the series standards of "Grid Video Monitoring System and Interface", this system has customized and developed the test system, which can meet the actual test requirements.
(2)对电网视频监控系统的通信接口协议项进行测试 (2) Test the communication interface protocol items of the power grid video surveillance system
通过测试系统能够对电网视频监控系统的前端系统接口B协议、视频监控系统作为上级平台的接口A协议、视频监控系统作为下级平台的接口A协议、视频监控系统的接口B协议各个接口协议及功能进行测试,规范化各个电网视频监控系统建设的标准性、互联互通性等。 Through the test system, the interface protocols and functions of the front-end system interface B protocol of the power grid video surveillance system, the interface A protocol of the video surveillance system as the upper platform, the interface A protocol of the video surveillance system as the lower platform, and the interface B protocol of the video surveillance system can be tested. Conduct tests to standardize the standardization and interconnection of video surveillance systems for various power grids.
(3)具备对功能测试项的可扩展性 (3) Possess scalability for functional test items
针对实际应用中,电网视频监控系统的功能项会进行不断扩展,测试系统采用了组态的设计方法,能够很方便地对功能测试项进行编辑和扩展,从而满足后续对功能测试项不断变化的测试需求。 For practical applications, the function items of the power grid video monitoring system will continue to expand. The test system adopts the configuration design method, which can easily edit and expand the function test items, so as to meet the subsequent changes in the function test items. Test requirements.
(4)具备对通信接口协议测试项的可扩展性 (4) Possess scalability for communication interface protocol test items
由于在实际应用中,电网视频监控系统的通信接口协议会进行不断扩展,与其对应的性能测试项将会不断增加,本系统采用了模块化的设计方法,能够灵活地增加测试项,从而满足不断变化的测试需求。 In practical applications, the communication interface protocol of the power grid video surveillance system will continue to expand, and the corresponding performance test items will continue to increase. This system adopts a modular design method, which can flexibly increase test items to meet continuous Changing testing needs.
(5)具备广泛的适用性 (5) Wide applicability
测试系统虽然最初是针对电网视频监控系统的需求而研制开发的,但由于其结构的灵活性,亦可以作为软交换系统、多媒体调度系统、音视频通信系统等的基础平台,具有广泛的适用性。 Although the test system was originally developed for the needs of the power grid video monitoring system, due to its structural flexibility, it can also be used as a basic platform for soft switching systems, multimedia dispatching systems, audio and video communication systems, etc., and has wide applicability .
(6)便于对被测视频监控系统的测试过程中所产生错误的准确定位 (6) Facilitate accurate positioning of errors generated during the testing process of the video surveillance system under test
测试系统采用了分层解析的错误消息处理机制,能够对在测试过程中出现的异常消息或不正确的处理流程,提供准确的错误提示,便于被测视频监控系统能够准备定位和发现存在的问题。 The test system adopts a layered analysis error message processing mechanism, which can provide accurate error prompts for abnormal messages or incorrect processing procedures during the test, so that the video surveillance system under test can prepare for positioning and find existing problems .
(7)解决了高性能的测试要求 (7) Solve the high-performance test requirements
由于电网视频监控平台在电力应用中作为一项重要的业务应用,在实际应用中,对电网视频监控系统的性能要求较高,同时,针对不同级别的电网视频监控系统,对其性能要求也不一样。本系统能够支持多机并发的处理方式,可根据实际测试性能要求,进行灵活配置硬件,从而满足不同的性能测试要求。 Since the grid video monitoring platform is an important business application in power applications, in practical applications, the performance requirements for the grid video monitoring system are relatively high. At the same time, for different levels of grid video monitoring systems, the performance requirements are not Same. The system can support multi-machine concurrent processing, and can flexibly configure hardware according to actual test performance requirements, so as to meet different performance test requirements.
附图说明 Description of drawings
图1通信接口协议测试总体结构图; Figure 1 The overall structure diagram of the communication interface protocol test;
图2性能测试总体结构图 Figure 2 The overall structure of the performance test
图3软件分层结构图; Figure 3 software layered structure diagram;
图4软件分层之间的关系结构图; Figure 4 is a structural diagram of the relationship between software layers;
图5正确消息处理流程图; Figure 5 is a flow chart of correct message processing;
图6错误消息处理流程图; Fig. 6 error message processing flowchart;
图7接口测试流程图; Figure 7 interface test flow chart;
图8组态流程图; Figure 8 configuration flow chart;
图9协议测试分模块解析流程图; Figure 9 is a flow chart of protocol test sub-module analysis;
图10性能测试流程图; Figure 10 performance test flow chart;
图11基于多线程技术来实现测试资源的动态分配与优化调度的软件并发技术原理框图; Figure 11 is a functional block diagram of software concurrency technology based on multi-thread technology to realize dynamic allocation and optimal scheduling of test resources;
图12多机同步测试技术原理框图 Figure 12 Block diagram of multi-machine synchronous testing technology
具体实施方法Specific implementation method
本发明的目的就是验证电网视频监控系统是否满足Q/GDW 517《电网视频监控系统及接口》系列标准,包括接口和性能要求。 The purpose of the present invention is to verify whether the power grid video monitoring system meets the Q/GDW 517 "Grid Video Monitoring System and Interface" series standards, including interface and performance requirements.
本方法基于软件纵向分层设计,包括网络层、协议处理层、数据承载分析层、业务控制层,各层之间采用松耦合设计。在协议处理层分别采用独立的协议栈实现对不同协议的解析、应答、测试,协议类型包括了SIP协议、RTSP协议、HTTP协议、RTP/RTCP协议等,各协议栈之间采用相互独立的设计思路,从软件的设计角度,便于对协议的扩展;在数据承载层通过独立数据格式解析模块分别实现对不同数据封装格式的解析、应答、测试,包括了XML、SDP、H.264、G.711等。通过这种设计方式,提高了对通信接口协议测试的可扩展性,当被测软件出现问题时,便于进行更详尽的提示,极大方便了用户的使用;同时,采用标准的协议栈以及数据格式解析模块,能够满足测试所需的准确性、可靠性。 This method is based on software vertical layered design, including network layer, protocol processing layer, data bearer analysis layer, and service control layer, and loose coupling design is adopted between each layer. In the protocol processing layer, independent protocol stacks are used to realize the analysis, response and testing of different protocols. The protocol types include SIP protocol, RTSP protocol, HTTP protocol, RTP/RTCP protocol, etc. Each protocol stack adopts a mutually independent design From the perspective of software design, it is convenient to expand the protocol; in the data bearing layer, the independent data format analysis module realizes the analysis, response, and testing of different data encapsulation formats, including XML, SDP, H.264, G. 711 etc. Through this design method, the scalability of the communication interface protocol test is improved. When the software under test has problems, it is convenient to provide more detailed prompts, which greatly facilitates the use of users; at the same time, standard protocol stacks and data The format parsing module can meet the accuracy and reliability required by the test.
前述的测试软件,采用的软件设计为分层分模块设计方式,共分为四层: The aforementioned test software adopts a layered and sub-module design method, which is divided into four layers:
网络层:网络层主要为基于IP网络的TCP和UDP协议处理两个模块组成,向协议处理层提供处理接口。 Network layer: The network layer is mainly composed of two modules based on IP network TCP and UDP protocol processing, which provides processing interfaces to the protocol processing layer.
协议处理层:主要由各个相互独立的协议构造和解析处理单元构成,主要包括SIP协议解析、RTSP协议解析、HTTP协议解析和RTP/RTCP协议解析,各个协议解析处理单元均由标准的商业协议栈构建,保证了协议解析的准确性和标准性; Protocol processing layer: mainly composed of independent protocol construction and analysis processing units, mainly including SIP protocol analysis, RTSP protocol analysis, HTTP protocol analysis and RTP/RTCP protocol analysis, each protocol analysis processing unit is composed of a standard commercial protocol stack Construction to ensure the accuracy and standardization of protocol analysis;
数据承载分析层:主要由各个相关独立的数据承载分析模块组成,分别能够独立实现对XML格式解析、SDP格式解析、音频解码格式解析、视频解码解析和地址编码解码,该处理部分对各种通信协议中的消息内容的封装格式进行检查; Data bearer analysis layer: It is mainly composed of various independent data bearer analysis modules, which can independently implement XML format analysis, SDP format analysis, audio decoding format analysis, video decoding analysis and address encoding and decoding. Check the encapsulation format of the message content in the protocol;
业务控制层:主要按照业务流程、业务功能等内容对交互流程中的业务逻辑进行处理和检查;业务控制层对最终的测试结果进行展示。 Business control layer: mainly process and check the business logic in the interactive process according to the business process, business function, etc.; the business control layer displays the final test results.
各层之间的关系为:软件网络层向协议处理层提供网络处理支撑;数据承载分析层和协议处理层之间没有任何交换过程,采用协议与数据承载分离的设计方法,统一由业务控制层对两层处理进行统一管理,通过业务处理层将数据承载层和协议处理层的不同模块进行组合,从而构成相应的业务处理模块。 The relationship between each layer is as follows: the software network layer provides network processing support to the protocol processing layer; there is no exchange process between the data carrying analysis layer and the protocol processing layer, and the design method of separating the protocol and data carrying is adopted, and the business control layer is unified The two layers of processing are managed in a unified manner, and different modules of the data bearing layer and the protocol processing layer are combined through the business processing layer to form corresponding business processing modules.
对正确消息处理机制为:在测试流程中,对正确消息的处理机制如下图所示。在上述处理流程中,业务控制层在处理完正确请求后,业务控制层发送正确响应到协议处理层,协议处理层收到业务控制层的正确响应后,发送正确响应到网络层,最终通过网络层将正确响应进行回复。 The processing mechanism for the correct message is: in the test process, the processing mechanism for the correct message is shown in the figure below. In the above processing flow, after the service control layer processes the correct request, the service control layer sends the correct response to the protocol processing layer, and the protocol processing layer receives the correct response from the service control layer, sends the correct response to the network layer, and finally passes the network The layer will reply with the correct response.
错误消息处理机制:在处理流程中,包括了错误原因的上报和对错误消息的响应两种处理,在不同层的错误都采用逐层上报的处理方式,网络层的错误原因直接上报到协议处理层,协议处理层对网络层及自身解析的错误原因直接上报到业务控制层,对与数据承载分析层自身解析的错误原因直接上报业务控制层;业务控制层对解析到的错误应对请求进行响应,响应消息采用了逐层回复的方式,业务控制层错误以及数据承载分析层将错误原因通知协议处理层,协议处理层将数据承载层、业务控制层以及自身解析的错误原因通知网络层,网络层将所有错误原因进行响应。 Error message processing mechanism: In the processing flow, there are two types of processing, including the reporting of error reasons and the response to error messages. Errors at different layers are processed by layer-by-layer reporting, and the error reasons at the network layer are directly reported to the protocol for processing. The protocol processing layer directly reports the error reasons analyzed by the network layer and itself to the service control layer, and directly reports the error reasons analyzed by the data bearer analysis layer to the service control layer; the service control layer responds to the analyzed error response request , the response message adopts a layer-by-layer reply method, the service control layer error and the data bearer analysis layer notify the protocol processing layer of the cause of the error, and the protocol processing layer notifies the data bearer layer, service control layer and its own analysis of the cause of the error to the network layer, the network The layer will respond with all error causes.
如图1所示是测试接口的系统结构图。本发明具有测试被测对象时是否满足A接口或B接口,当测试A接口时被测对象作为视频监控系统与本发明相连,当测试B接口时被测对象作为视频前端系统与本发明相连。 As shown in Figure 1 is a system structure diagram of the test interface. The present invention has the ability to test whether the tested object satisfies the A interface or the B interface. When testing the A interface, the tested object is connected to the present invention as a video monitoring system, and when testing the B interface, the tested object is connected to the present invention as a video front-end system.
下面结合图7说明接口测试的流程。本发明工作时第1步进行自启动完成相关的初始化动作;第2步在测试A、B接口有所不同,如果是测试A接口则依次测系统上下线(记为功能1)和系统保活功能(记为功能2),测试B接口时则先测注册功能(记为功能1);第3步是测试资源获取功能(记为功能3);第4步对于A接口有3种功能需要测试,分别为事件订阅事件通知功能(记为功能4)、实时视频浏览功能(记为功能5)及音视频通话功能(记为功能6),对于B接口则不需要测试音视频通话功能;第5步对于A接口测试则根据第4步来做不同的测试,功能4之后才可以做历史告警查询功能(记为功能7)的测试,功能5之后可以做历史录像检索(记为功能8)、语音对讲语音广播功能(记为功能9)、云台控制功能(记为功能10)、流量查询功能(记为功能11),对于B接口测试则不用做功能11的测试;第6步则是在做完功能8之后的录像回放功能(记为功能12);第7步是展示测试的结果。 The flow of the interface test will be described below with reference to FIG. 7 . When the present invention works, the first step is to perform self-starting to complete the relevant initialization actions; the second step is different in testing the A and B interfaces. If it is testing the A interface, it will sequentially test the system on and off the line (recorded as function 1) and the system to keep alive Function (denoted as function 2), when testing the B interface, first test the registration function (denoted as function 1); the third step is to test the resource acquisition function (denoted as function 3); in the fourth step, there are 3 functions required for the A interface Test, respectively, event subscription event notification function (marked as function 4), real-time video browsing function (marked as function 5) and audio and video call function (marked as function 6), for the B interface, it is not necessary to test the audio and video call function; In step 5, for the A interface test, do different tests according to step 4. After function 4, you can do the test of the historical alarm query function (denoted as function 7), and after function 5, you can do the historical video retrieval (denoted as function 8) ), voice intercom and voice broadcasting function (recorded as function 9), PTZ control function (recorded as function 10), traffic query function (recorded as function 11), and the test of function 11 is not required for the B interface test; The first step is the video playback function (denoted as function 12) after the completion of function 8; the seventh step is to display the test results.
如图2所示是性能测试的系统结构图。此时本发明既模拟被测视频监控系统的上级平台又模拟接入被测视频监控系统的前端系统。 As shown in Figure 2 is a system structure diagram of performance testing. At this time, the present invention not only simulates the superior platform of the video surveillance system under test, but also simulates the front-end system connected to the video surveillance system under test.
下面结合图10具体说明性能测试的流程。如图10所示,测试流程步骤1-步骤2,采用“平台测试模拟前端系统”向被测电网视频监控平台发起的注册并发性能测试。 The flow of the performance test will be specifically described below with reference to FIG. 10 . As shown in Figure 10, the test process steps 1-2, use the "platform test analog front-end system" to initiate the registration concurrent performance test to the video monitoring platform of the power grid under test.
测试流程步骤4-步骤6,“平台测试模拟上级平台”向接入到被测电网视频监控平台的“平台测试模拟前端系统”发起呼叫并发性能测试,测试被测电网视频监控平台的呼叫转发性能。 Step 4-Step 6 of the test process, the "platform test simulation upper-level platform" initiates a call concurrency performance test to the "platform test analog front-end system" connected to the video surveillance platform of the power grid under test, and tests the call forwarding performance of the video surveillance platform of the power grid under test .
测试流程步骤7-步骤12,步骤7-步骤10为“平台测试模拟上级平台”向接入到被测电网视频监控平台的“平台测试模拟前端系统”发起呼叫,被测电网视频监控平台转发呼叫请求,步骤11-步骤12为“平台测试模拟前端系统”通过被测电网视频监控平台向“平台测试模拟上级平台”发送媒体数据,从而对被测电网视频监控平台的媒体转发分发性能进行测试。 Test process steps 7-step 12, step 7-step 10 are "platform test simulation upper-level platform" initiates a call to the "platform test simulation front-end system" connected to the video monitoring platform of the power grid under test, and the video monitoring platform of the power grid under test forwards the call Request, step 11-step 12 is that "platform test simulation front-end system" sends media data to "platform test simulation upper platform" through the video monitoring platform of the power grid under test, so as to test the media forwarding and distribution performance of the video monitoring platform of the power grid under test.
测试流程步骤13-步骤20,步骤13为通知“平台测试模拟前端系统”开始主备切换性能测试,步骤14-步骤15为注册流程,步骤16为通知“平台测试模拟上级平台”已经成功注册,步骤17-步骤20同步骤4-步骤6。从而通过整个过程测试出被测电网视频监控平台的主备切换时间。 Test process steps 13-step 20, step 13 is to notify the "platform test simulation front-end system" to start the main-standby switchover performance test, step 14-step 15 is the registration process, step 16 is to notify the "platform test simulation upper-level platform" has successfully registered, Step 17-Step 20 are the same as Step 4-Step 6. Thus, the main-standby switching time of the video monitoring platform of the power grid under test is tested through the whole process.
如图3所示是软件的对于接口测试的内部协议处理分层结构。现结合图4来说明各层直接的关系:网络层向协议处理层提供网络处理支撑;数据承载分析层和协议处理层之间没有任何交换过程,采用协议与数据承载分离的设计方法,统一由业务控制层对两层处理进行统一管理,通过业务处理层将数据承载层和协议处理层的不同模块进行组合,从而构成相应的业务处理模块。 As shown in Figure 3, the internal protocol processing layered structure of the software for interface testing. The direct relationship between each layer is now described in conjunction with Figure 4: the network layer provides network processing support to the protocol processing layer; there is no exchange process between the data bearer analysis layer and the protocol processing layer, and the design method of separating the protocol from the data bearer is adopted. The service control layer manages the two layers of processing in a unified manner, and combines different modules of the data bearing layer and the protocol processing layer through the service processing layer to form corresponding service processing modules.
本发明内部对于各层之间的正确和错误的消息如何处理则要看图5和图6所示。如图5所示是对正确消息的处理流程:业务控制层在处理完正确请求后,业务控制层发送正确响应到协议处理层,协议处理层收到业务控制层的正确响应后,发送正确响应到网络层,最终通过网络层将正确响应进行回复。而对于错误的消息的处理流程是:如图6所示包括了错误原因的上报和对错误消息的响应两种处理,在不同层的错误都采用逐层上报的处理方式,网络层的错误原因直接上报到协议处理层,协议处理层对网络层及自身解析的错误原因直接上报到业务控制层,对与数据承载分析层自身解析的错误原因直接上报业务控制层;业务控制层对解析到的错误应对请求进行响应,响应消息采用了逐层回复的方式,业务控制层错误以及数据承载分析层将错误原因通知协议处理层,协议处理层将数据承载层、业务控制层以及自身解析的错误原因通知网络层,网络层将所有错误原因进行响应。 How to deal with the correct and wrong messages between layers in the present invention depends on what is shown in Fig. 5 and Fig. 6 . As shown in Figure 5, it is the processing flow of the correct message: after the service control layer processes the correct request, the service control layer sends the correct response to the protocol processing layer, and the protocol processing layer sends the correct response after receiving the correct response from the service control layer to the network layer, and finally reply with the correct response through the network layer. The processing flow for error messages is as follows: as shown in Figure 6, it includes two types of processing: the reporting of error reasons and the response to error messages. Errors at different layers are processed by layer-by-layer reporting. Directly report to the protocol processing layer, the protocol processing layer directly reports the error reasons of the network layer and its own analysis to the service control layer, and directly reports the error reasons of the data bearer analysis layer to the service control layer; The error should respond to the request, and the response message adopts a layer-by-layer reply method. The business control layer error and the data bearer analysis layer will notify the protocol processing layer of the error cause, and the protocol processing layer will analyze the error cause of the data bearer layer, the business control layer and itself. Notify the network layer, and the network layer will respond with all error reasons.
分层内容的解析Parsing of layered content
如图3所示,基于软件纵向分层设计,包括网络层、协议处理层、数据承载分析层、业务控制层,各层之间采用松耦合设计。在协议处理层分别采用独立的协议栈实现对不同协议的解析、应答、测试,协议类型包括了SIP协议、RTSP协议、HTTP协议、RTP/RTCP协议等,各协议栈之间采用相互独立的设计思路,从软件的设计角度,便于对协议的扩展;在数据承载层通过独立数据格式解析模块分别实现对不同数据封装格式的解析、应答、测试,包括了XML、SDP、H.264、G.711等。通过这种设计方式,提高了对通信接口协议测试的可扩展性,当被测软件出现问题时,便于进行更详尽的提示,极大方便了用户的使用;同时,采用标准的协议栈以及数据格式解析模块,能够满足测试所需的准确性、可靠性。 As shown in Figure 3, based on the vertical layered design of software, it includes the network layer, protocol processing layer, data bearer analysis layer, and service control layer. The loose coupling design is adopted between each layer. In the protocol processing layer, independent protocol stacks are used to realize the analysis, response and testing of different protocols. The protocol types include SIP protocol, RTSP protocol, HTTP protocol, RTP/RTCP protocol, etc. Each protocol stack adopts a mutually independent design From the perspective of software design, it is convenient to expand the protocol; in the data bearing layer, the independent data format analysis module realizes the analysis, response, and testing of different data encapsulation formats, including XML, SDP, H.264, G. 711 etc. Through this design method, the scalability of the communication interface protocol test is improved. When the software under test has problems, it is convenient to provide more detailed prompts, which greatly facilitates the use of users; at the same time, standard protocol stacks and data The format parsing module can meet the accuracy and reliability required by the test.
网络层:网络层主要为基于IP网络的TCP和UDP协议处理两个模块组成,向协议处理层提供处理接口。 Network layer: The network layer is mainly composed of two modules based on IP network TCP and UDP protocol processing, which provides processing interfaces to the protocol processing layer.
协议处理层:主要由各个相互独立的协议构造和解析处理单元构成,主要包括SIP协议解析、RTSP协议解析、HTTP协议解析和RTP/RTCP协议解析,各个协议解析处理单元均由标准的商业协议栈构建,保证了协议解析的准确性和标准性; Protocol processing layer: mainly composed of independent protocol construction and analysis processing units, mainly including SIP protocol analysis, RTSP protocol analysis, HTTP protocol analysis and RTP/RTCP protocol analysis, each protocol analysis processing unit is composed of a standard commercial protocol stack Construction to ensure the accuracy and standardization of protocol analysis;
数据承载分析层:主要由各个相关独立的数据承载分析模块组成,分别能够独立实现对XML格式解析、SDP格式解析、音频解码格式解析、视频解码解析和地址编码解码,该处理部分对各种通信协议中的消息内容的封装格式进行检查; Data bearer analysis layer: It is mainly composed of various independent data bearer analysis modules, which can independently implement XML format analysis, SDP format analysis, audio decoding format analysis, video decoding analysis and address encoding and decoding. Check the encapsulation format of the message content in the protocol;
业务控制层:主要按照业务流程、业务功能等内容对交互流程中的业务逻辑进行处理和检查;业务控制层对最终的测试结果进行展示。 Business control layer: mainly process and check the business logic in the interactive process according to the business process, business function, etc.; the business control layer displays the final test results.
功能测试组态设计Functional Test Configuration Design
在测试仪软件设计上,采用了组态软件的设计方法,对功能测试项可通过用户自行编辑测试内容、测试要求和测试方法,具有很大的测试灵活性;同时,在软件设计上对协议层和业务承载层分开设计,并对协议处理进行模块化设计,用户可以根据业务应用的需求,自行选择相应的协议处理模型、交互方式、业务数据内容进行组合,从而实现对接口测试项的扩展。 In the software design of the tester, the design method of configuration software is adopted, and the test content, test requirements and test methods can be edited by the user for the functional test items, which has great test flexibility; at the same time, in the software design, the protocol Layer and business bearing layer are designed separately, and the protocol processing is designed in a modular manner. Users can choose the corresponding protocol processing model, interaction mode, and business data content to combine according to the needs of business applications, so as to realize the expansion of interface test items. .
针对功能测试,软件组态设计如图8所示,组态分为三大组成部分:展示模块、组态配置文件、组态编辑处理模块,展示模块包括了界面展示生产模块,组态配置文件由模块名称、模块位置、模块图片路径及名称、测试要求描述、测试前置条件描述、测试结果项描述等内容组成,组态编辑处理模块由模块库子模块、图片库子模块、模块编辑处理子模块、模块图片编辑处理子模块、测试要求编辑框子模块、测试前置条件选择框子模块、测试结果编辑框子模块、配置文件处理子模块等部分组成; For functional testing, the software configuration design is shown in Figure 8. The configuration is divided into three major components: display module, configuration configuration file, and configuration editing and processing module. The display module includes the interface display production module and configuration configuration file It is composed of module name, module location, module picture path and name, test requirement description, test precondition description, test result item description, etc. The configuration editing processing module is composed of module library sub-module, picture library sub-module, and module editing processing Sub-module, module image editing and processing sub-module, test requirement editing box sub-module, test precondition selection box sub-module, test result editing box sub-module, configuration file processing sub-module and other parts;
模块库子模块中主要提供了按钮控件、下拉框控件、单选框、静态文本框、文件编辑框,用户可以通过模块编辑处理子模块进行模块选择,并通过鼠标进行位置进行拖拽,用于配置文件处理子模块模块对模块号和模块位置进行记录; The module library sub-module mainly provides button control, drop-down box control, radio box, static text box, and file editing box. Users can select modules through the module editing and processing sub-module, and drag and drop the position with the mouse for The configuration file processing sub-module module records the module number and module location;
模块图片编辑处理子模块可以从图片库子模块中选择指定的图片加载到模块上,再通过配置文件处理子模块,实现对模块皮肤的设定; The module picture editing and processing sub-module can select the specified picture from the picture library sub-module and load it on the module, and then process the sub-module through the configuration file to realize the setting of the module skin;
测试要求编辑框子模块提供编辑框用于用户对测试项的测试要求进行编辑输入,通过配置文件处理子模块将测试要求写入配置文件; The test requirements edit box sub-module provides an edit box for users to edit and input the test requirements of the test items, and write the test requirements into the configuration file through the configuration file processing sub-module;
测试前置条件选择框子模块提供下拉选择框用于用户对该测试项需满足测试前提条件,可选择必须在执行某一测试项之后才可对该项进行测试; The test precondition selection box sub-module provides a drop-down selection box for the user to meet the test prerequisites for the test item, and can choose to test the item only after executing a certain test item;
测试结果编辑框子模块提供对该测试项测试通过后的结果形式以及结果的展示内容; The test result edit box sub-module provides the result form and result display content after the test item passes the test;
配置文件处理子模块用于将模块编辑处理子模块、模块图片编辑处理子模块、测试要求编辑框子模块、测试前置条件选择框子模块、测试结果编辑框子模块各项的操作结果写入组态配置文件子模块中,分别对应为配置文件中的“模块名称”、“模块位置”、“模块图片路径和名称”、“测试要求描述”、“侧似乎前置条件描述”、“测试结果项描述”; The configuration file processing sub-module is used to write the operation results of the module editing processing sub-module, module picture editing processing sub-module, test requirement editing box sub-module, test precondition selection box sub-module, and test result editing box sub-module into the configuration configuration In the sub-module of the file, they correspond to the "module name", "module location", "module image path and name", "test requirement description", "side view precondition description" and "test result item description" in the configuration file ";
界面展示生成模块子模块通过读取组态配置文件中的各项配置,从而生成相应的功能测试界面。 The sub-module of the interface display generation module generates the corresponding functional test interface by reading the configurations in the configuration configuration file.
协议测试的分模块解析Analysis of sub-modules of protocol testing
针对协议测试,软件的协议分模块化设计如图9所示。主要由协议处理模块、协议模块编辑处理单元、组态配置文件、组态编辑处理模块、测试展示模块几个大模块组成,各个大模块又分别由各个子模块组成。 For the protocol test, the protocol sub-modular design of the software is shown in Figure 9. It is mainly composed of protocol processing module, protocol module editing processing unit, configuration configuration file, configuration editing processing module, and test display module. Each large module is composed of various sub-modules.
协议处理模块:包括了SIP协议处理模块的四个处理模块:INVITE处理模块、INFO处理模块、MESSAGE处理模块和NOTIFY处理模块,HTTP协议处理模块的一个处理模块“HTTP处理模块”,另外对协议所携带数据的封装格式为两个处理模块“SDP模块”、“XML模块”,在协议处理模块中包含的五个协议处理模块之间互相没有关联关系,五个模块按照上图中的连接线与“SDP模块”和“XML模块”进行关联。 Protocol processing module: including four processing modules of the SIP protocol processing module: INVITE processing module, INFO processing module, MESSAGE processing module and NOTIFY processing module, a processing module "HTTP processing module" of the HTTP protocol processing module, and other processing modules for the protocol The encapsulation format of carrying data is two processing modules "SDP module" and "XML module". The five protocol processing modules contained in the protocol processing module are not related to each other. "SDP module" and "XML module" are associated.
协议模块编辑处理单元包括以下各子模块: The protocol module editing processing unit includes the following sub-modules:
协议模块选择子模块:对测试项的名称等内容进行定义,同时选择对该测试项选择对应的处理协议,通过配置文件处理模块子模块将相应的配置写入配置文件; Protocol module selection sub-module: define the name of the test item and other content, and at the same time select the corresponding processing protocol for the test item, and write the corresponding configuration into the configuration file through the sub-module of the configuration file processing module;
SDP内容编辑子模块用于对SIP INVITE处理模块协议相关的SDP的内容进行编辑,编辑完的SDP内容通过“配置文件处理模块”将相应的配置写入配置文件; The SDP content editing sub-module is used to edit the content of the SDP related to the SIP INVITE processing module protocol, and the edited SDP content writes the corresponding configuration into the configuration file through the "configuration file processing module";
XML内容编辑子模块用于对SIP INFO处理模块、MESSAGE处理模块、NOTIFY处理模块、HTTP处理模块协议相关的XML的内容进行编辑,编辑完的XML内容通过配置文件处理模块子模块将相应的配置写入配置文件; The XML content editing sub-module is used to edit the XML content related to the SIP INFO processing module, MESSAGE processing module, NOTIFY processing module, and HTTP processing module protocol. The edited XML content writes the corresponding configuration through the configuration file processing module sub-module into the configuration file;
处理流程编辑子模块用于确定该项测试时,测试仪作为接收方或发起方的流程确定; When the processing flow editing sub-module is used to determine the test, the flow determination of the tester as the receiver or initiator;
配置文件处理模块子模块用于将“协议模块选择子模块”、SDP内容编辑子模块、XML内容编辑子模块、处理流程编辑子模块各项的操作结果写入组态配置文件中; The configuration file processing module sub-module is used to write the operation results of the "protocol module selection sub-module", SDP content editing sub-module, XML content editing sub-module, and processing flow editing sub-module into the configuration configuration file;
组态编辑处理模块:同功能测试中的操作; Configuration editing processing module: same as operation in functional test;
组态配置文件:用于存储“组态编辑处理模块”中的配置数据以及“配置文件处理”中的相关配置数据; Configuration configuration file: used to store the configuration data in the "configuration editing processing module" and related configuration data in the "configuration file processing";
协议测试展示模块:通过读取“组态配置文件”中的各项配置,从而生成相应的协议测试界面。 Protocol test display module: By reading the configurations in the "configuration configuration file", the corresponding protocol test interface is generated.
基于多线程技术来实现测试资源的动态分配与优化调度的软件并发方法A Software Concurrency Method for Dynamic Allocation and Optimal Scheduling of Test Resources Based on Multithreading Technology
如图11所示,基于多线程技术来实现测试资源的动态分配与优化调度的软件并发技术的设计原理图如下图所示。设计了多套内存池和线程池模型,这样做主要是为了异步机制和高效率。比如会话消息会被扔入事先分配好的消息内存池中进行构造、解析、销毁;然后从处理分发线程池中获取空闲的线程进行消息处理。 As shown in Figure 11, the design schematic diagram of the software concurrency technology that realizes the dynamic allocation and optimal scheduling of test resources based on multi-threading technology is shown in the figure below. Multiple sets of memory pool and thread pool models are designed, mainly for asynchronous mechanism and high efficiency. For example, session messages will be thrown into the pre-allocated message memory pool for construction, parsing, and destruction; then idle threads will be obtained from the processing and distribution thread pool for message processing.
多机同步测试方法Multi-machine synchronization test method
多机同步测试机制如图12所示,图12中以“平台测试模拟上级平台”为例说明多机的软件控制处理流程,以1台主机、2台子机为例说明,当存在更多台子机时,处理流程相同,“平台测试模拟前端系统”处理流程也相同。 The multi-machine synchronous test mechanism is shown in Figure 12. In Figure 12, the "platform test simulates the upper-level platform" as an example to illustrate the software control process flow of multiple machines. Machine time, the processing flow is the same, and the processing flow of the "platform test simulation front-end system" is also the same.
分步骤处理如下: The step-by-step process is as follows:
步骤1-步骤4:该部分为上线通知流程处理,该流程为定时循环处理流程,子机定时向主机进行上线通知。步骤1、步骤3为子机上线通知主机,步骤2和步骤4为主机对子机上线通知的响应处理; Step 1-Step 4: This part is the online notification process, which is a timing cycle processing process, and the sub-machine regularly notifies the main machine of the online notification. Step 1 and step 3 are for the sub-unit to notify the host when the sub-unit is online, and steps 2 and 4 are for the host to respond to the sub-unit’s online notification;
步骤5-步骤8:该部分为时间同步处理流程,该流程为定时循环处理流程,主机定时向子机进行校时处理。步骤5和步骤7为授时请求,步骤6和步骤8为授时响应。从而保证主机和各子机之间的时间同步; Step 5-Step 8: This part is the time synchronization processing flow, which is a timing cycle processing flow, and the master performs time correction processing to the slave at regular intervals. Steps 5 and 7 are timing requests, and steps 6 and 8 are timing responses. So as to ensure the time synchronization between the host and each slave;
步骤9-步骤12:该部分为该请求业务的定义。步骤9和步骤11为主机将需要执行的业务请求、开始和结束业务请求的时间通知子机,子机根据请求进行资源分配。步骤10和步骤12为子机对请求的响应。 Step 9-Step 12: This part is the definition of the requested service. Steps 9 and 11 are for the host to notify the sub-units of the service requests to be executed and the time to start and end the service requests, and the sub-units allocate resources according to the requests. Step 10 and Step 12 are the sub-machine's response to the request.
步骤13-步骤18:该部分为实际业务数据。步骤13、步骤15、步骤17为对被测平台的业务请求,步骤14、步骤16、步骤18为被测平台对业务请求的响应。 Step 13-Step 18: This part is the actual business data. Step 13, Step 15, and Step 17 are service requests to the tested platform, and Step 14, Step 16, and Step 18 are responses to the service request from the tested platform.
步骤19-步骤22:该部分为实时上报执行情况。在测试的流程中,步骤19、步骤21为子机对实时测试结构数据上报到主机,用于主机对实时测试结果数据进行统计,并对测试结果进行展示,步骤20和步骤22为主机对实时上报请求的响应。 Step 19-Step 22: This part is to report the execution status in real time. In the test process, step 19 and step 21 are for the sub-machine to report the real-time test structure data to the host, which is used for the host to make statistics on the real-time test result data and display the test results. Step 20 and step 22 are for the host to Report the response to the request.
步骤23-步骤26:该部分为实时调整控制流程。在测试的流程中,主机对各主机具有实时控制的权限,会对测试流程做实时调整,步骤23、步骤25即为主机请求各子机进行实时调整测试请求,步骤24、步骤26为子机对请求的响应。 Step 23-Step 26: This part is the real-time adjustment control process. In the test process, the host has real-time control authority for each host, and will make real-time adjustments to the test process. Steps 23 and 25 are the host requesting each sub-machine to perform a real-time adjustment test request, and steps 24 and 26 are sub-machines. The response to the request.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210168537.XA CN102724084B (en) | 2012-05-25 | 2012-05-25 | Test and verification system for grid video monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210168537.XA CN102724084B (en) | 2012-05-25 | 2012-05-25 | Test and verification system for grid video monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102724084A CN102724084A (en) | 2012-10-10 |
CN102724084B true CN102724084B (en) | 2015-04-22 |
Family
ID=46949754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210168537.XA Active CN102724084B (en) | 2012-05-25 | 2012-05-25 | Test and verification system for grid video monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102724084B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686348B (en) * | 2013-11-27 | 2016-08-24 | 青岛海信电器股份有限公司 | The coding/decoding method of image and device |
CN104853323B (en) * | 2015-03-16 | 2018-08-31 | 国家电网公司 | A kind of distributed multilink synchronous communication processing method towards power emergency rescue |
CN108965057A (en) * | 2018-07-23 | 2018-12-07 | 高新兴科技集团股份有限公司 | A kind of test device and method based on GB/T28181 agreement |
CN111796998B (en) * | 2019-06-27 | 2024-05-07 | 上海市计量测试技术研究院 | AML language performance verification system |
CN110855977A (en) * | 2019-10-24 | 2020-02-28 | 中国电力科学研究院有限公司 | Video monitoring system interface detection system |
CN114598617A (en) * | 2021-03-26 | 2022-06-07 | 公安部第三研究所 | Device for realizing large-scale multi-task parallel detection processing aiming at security monitoring networking |
CN113542032A (en) * | 2021-07-21 | 2021-10-22 | 中电海康无锡科技有限公司 | A method and device for quickly verifying GB/T28181 protocol |
CN113824953A (en) * | 2021-11-19 | 2021-12-21 | 军事科学院系统工程研究院网络信息研究所 | Method and system for standardized testing of video system |
CN119229354B (en) * | 2024-12-02 | 2025-03-04 | 创意信息技术股份有限公司 | Real-time visualization method, device, equipment and storage medium for intelligent analysis webpage |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1777124A (en) * | 2004-11-16 | 2006-05-24 | 华为技术有限公司 | Device for protocol testing and method for implementing protocol testing |
CN101969233A (en) * | 2010-10-29 | 2011-02-09 | 广东电网公司电力科学研究院 | Testing method and device of power grid video and environment monitoring system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8401709B2 (en) * | 2009-11-03 | 2013-03-19 | Spirae, Inc. | Dynamic distributed power grid control system |
-
2012
- 2012-05-25 CN CN201210168537.XA patent/CN102724084B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1777124A (en) * | 2004-11-16 | 2006-05-24 | 华为技术有限公司 | Device for protocol testing and method for implementing protocol testing |
CN101969233A (en) * | 2010-10-29 | 2011-02-09 | 广东电网公司电力科学研究院 | Testing method and device of power grid video and environment monitoring system |
Non-Patent Citations (1)
Title |
---|
基于SIP协议电网视频统一平台的研究;齐宝利;《电力系统通信》;20111010;第32卷(第228期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN102724084A (en) | 2012-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102724084B (en) | Test and verification system for grid video monitoring system | |
CN102508989B (en) | Dynamic power grid panorama display system on basis of virtual reality | |
CN113206763B (en) | Simulation test system and method suitable for Internet of things management platform | |
CN102340689B (en) | Method and device for configuring business subsystem in television station production system | |
TWI519965B (en) | Flexible assembly system and method for cloud service service for telecommunication application | |
CN103634154B (en) | The analog systems of network state and analogy method thereof | |
CN106713409A (en) | A SaaS-based cloud disaster recovery system and method | |
CN102368802A (en) | Television station production system and method thereof for realizing construction and operation | |
CN104182345A (en) | Computer software testing system | |
CN101471819A (en) | Test system, test method, management domain and operation domain | |
CN105958642A (en) | A real-time simulation device and test system for substation automation system | |
WO2023138014A1 (en) | Intelligent operation and maintenance system oriented to computing-network integration scenario and use method thereof | |
CN110989547A (en) | Detection method and system for intelligent substation one-key sequence control system | |
CN102447841A (en) | Terminal device of television station production system | |
CN105761194A (en) | Road network passenger information centralized control system and control method | |
CN114936062B (en) | Method, device, equipment, system and storage medium for automatic debugging of equipment | |
CN111082521A (en) | Operation and maintenance data monitoring method and operation and maintenance system of power grid regulation and control system | |
CN103166776A (en) | An integrated management system for access network equipment | |
CN108897695A (en) | A kind of the interconnection test method and system of demand side apparatus | |
CN112865311B (en) | Method and device for monitoring message bus of power system | |
CN101765129A (en) | Network access test system and method for data value-added service | |
CN105117347B (en) | Analogy method, system and the automated testing method of test data, system | |
TW201824166A (en) | Service assembly system of software-defined drive cloud computing network component being worn by a client end for operation and establishing respective oriented input and output port interfaces and links | |
CN103024351B (en) | Multi-view linkage and switching method for power grid operation monitoring picture | |
CN102546300B (en) | Test system and operating region equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |