CN110490277A - A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium - Google Patents

A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN110490277A
CN110490277A CN201910642771.3A CN201910642771A CN110490277A CN 110490277 A CN110490277 A CN 110490277A CN 201910642771 A CN201910642771 A CN 201910642771A CN 110490277 A CN110490277 A CN 110490277A
Authority
CN
China
Prior art keywords
organization
encoded information
monitoring device
data
monitoring
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.)
Pending
Application number
CN201910642771.3A
Other languages
Chinese (zh)
Inventor
李璐
白强
周新海
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910642771.3A priority Critical patent/CN110490277A/en
Publication of CN110490277A publication Critical patent/CN110490277A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application provides a kind of monitoring device quantity statistics method, system, electronic equipment and storage mediums, the described method includes: obtaining organization's data and monitoring resource, according to organization's data, encoded information is added for the organization of each level, wherein, the prefix of the encoded information of the organization of next level be its belonging to a upper level organization encoded information;Encoded information further according to each organization is monitoring device addition mark, and the mark is using the encoded information of organization belonging to monitoring device as prefix.The application is when receiving the request of quantity of the monitoring device under inquiry destination organization mechanism, can directly that the obtained all prefixes mark identical with the encoded information of destination organization mechanism of statistics is corresponding monitoring device quantity as the quantity of the monitoring device under destination organization mechanism, the efficiency of the quantity of Statistical monitor equipment is effectively promoted, accelerates the speed of the inquiry request of response user.

Description

A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of monitoring device quantity statistics method, system, electricity Sub- equipment and storage medium.
Background technique
With the fast development of the network technology, the two-way communications such as video conference, video teaching the life of user, work, Study etc. is widely available.So being increasingly becoming the communication selection of all multi-users depending on connected network communication technology.
In view networking, monitoring management platform often needs to the quantity of the monitoring device in statistics each region, in order to The distribution of monitoring device in each region is reasonably planned.In the related art, recursion method statistics is generallyd use The quantity of monitoring device in some region, such as: the province city A Xia You B1 and city B2, the city county B1 Xia You C1 and county C2 have under city B2 County C3 and county C4 needs to traverse all monitoring devices saved in A first, then if the quantity of the monitoring device of statistics county C1 All monitoring devices in city B1 are traversed, then traverse all monitoring devices in county C1, finally return to the monitoring device of county C1 Quantity.
As it can be seen that needing successively to traverse all monitoring devices under every grade of catalogue when using above-mentioned recursion method, so that prison It is very low to control number of devices statistical efficiency.Therefore, correlative technology field be badly in need of it is a kind of can preferably Statistical monitor equipment number The method of amount.
Summary of the invention
The embodiment of the present application provides a kind of monitoring device quantity statistics method, system, electronic equipment and storage medium, purport It is delayed when overcoming the problems, such as Statistical monitor number of devices in the related technology longer, promotes the efficiency of Statistical monitor number of devices, And then accelerate the speed of the inquiry request of response user.
The embodiment of the present application first aspect provides a kind of monitoring device quantity statistics method, applied to one in view networking Kind monitoring management platform, which comprises
Organization's data and monitoring resource are obtained, organization's data are raw according to the division information of administrative region At data, it is described monitoring resource be the administrative region in monitoring device information, organization's data include it is more A level, each level include multiple and different organizations;
It is organization's addition encoded information of each level according to organization's data, so that same level The encoded information of different organizations is different, and the prefix of the encoded information of the organization of next level is affiliated upper one The encoded information of the organization of level;
According to the monitoring resource, the encoded information of organization belonging to the monitoring device is obtained, with the coding Information is the mark that prefix generates the monitoring device;
Receive the request of the quantity of the monitoring device under inquiry destination organization mechanism;
The encoded information of the destination organization mechanism is determined according to the request;
Count the number of the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism Amount, using the quantity as the quantity of the monitoring device under the destination organization mechanism, and responds the request.
Optionally, organization's data include N number of level, and N is the integer not less than 1;
It is that the organization of each level adds encoded information according to organization's data, comprising:
When N is 1, M character is generated at random, forms M bit-encoded information, the coding of the organization as the first level Information, M are the integer not less than 1;
When N is not 1, the organization of N-1 level belonging to the organization of n-th layer grade is searched, in the N-1 After the encoded information of the organization of level, increase M character at random, M*N bit-encoded information is formed, as n-th layer grade The encoded information of organization;
The mark of the monitoring device is generated using the encoded information as prefix, comprising:
The mark of the monitoring device is generated using the encoded information of the organization of the n-th layer grade as prefix.
Optionally, it is provided with quantity statistics table in the monitoring management platform, includes: n-th layer in the quantity statistics table The encoded information of organization in grade and the quantity of corresponding monitoring device;
After the mark for generating the monitoring device using the encoded information as prefix, inquiry destination organization mechanism is received Under monitoring device quantity request before, the method also includes:
When counting the encoded information of each organization in n-th layer grade respectively as prefix, the mark comprising the prefix The quantity of corresponding monitoring device, obtains statistical result;
The quantity statistics table is created according to the statistical result;
Count the number of the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism Amount, comprising:
The identical group of loom of encoded information of prefix with the destination organization mechanism is determined in the quantity statistics table The encoded information of structure counts the quantity of the corresponding monitoring device of encoded information of the organization.
Optionally, the monitoring management platform turns server communication with association and connect;
Obtain organization's data and monitoring resource, comprising:
Turn server from the association and obtains organization's data and the monitoring resource.
Optionally, the method also includes:
Periodically turn server from the association and obtains the first tissue organization data and the first monitoring resource;
The encoded information that the first tissue mechanism is generated using the first tissue organization data, according to the first tissue machine The encoded information of structure is that the monitoring device in the first monitoring resource adds mark;
The encoded information of the organization is replaced using the encoded information of the first tissue mechanism in preset time point, And utilize the monitoring device and the corresponding mark replacement monitoring device and corresponding mark in the first monitoring resource Know.
Optionally, the monitoring management platform is connect with user terminal communication;
Receive the request of the quantity of the monitoring device under inquiry destination organization mechanism, comprising:
From the request of the quantity of the monitoring device under user terminal reception inquiry destination organization mechanism, the request The title of destination organization mechanism including user's input;
The encoded information of the destination organization mechanism is determined according to the request, comprising:
According to the title of the destination organization mechanism in the request, the corresponding coding letter of the destination organization mechanism is searched Breath;
Counting the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism After quantity, the method also includes:
The user terminal is sent to using the quantity as the response for the request.
The embodiment of the present application second aspect provides another monitoring device quantity statistics method, which comprises
Organization's data and monitoring resource are obtained, organization's data are raw according to the division information of administrative region At data, it is described monitoring resource be the administrative region in monitoring device information, organization's data include it is more A level, each level include multiple and different organizations;
It is organization's addition encoded information of each level according to organization's data, so that same level The encoded information of different organizations is different, and the prefix of the encoded information of the organization of next level is affiliated upper one The encoded information of the organization of level;
The mapping table of the monitoring device in the monitoring resource and the encoded information of the organization is established, it is described Mapping table include: the organization of lowest hierarchical level encoded information and the corresponding organization for belonging to the lowest hierarchical level Monitoring device quantity;
Receive the request of the quantity of the monitoring device under inquiry destination organization mechanism;
The encoded information of the destination organization mechanism is determined according to the request;
Prefix lowermost layer identical with the encoded information of the destination organization mechanism is determined in the mapping table The encoded information of the organization of grade;
The quantity for counting the corresponding monitoring device of encoded information of the organization of the lowest hierarchical level, the quantity is made For the quantity of the monitoring device under the destination organization mechanism, and respond the request.
The embodiment of the present application third aspect provides a kind of monitoring device quantity statistics system, and the system deployment joins in view Net, the system comprises:
First obtains module, and for obtaining organization's data and monitoring resource, organization's data are according to row The data that the division information in administrative division domain generates, the monitoring resource is the information of the monitoring device in the administrative region, described Organization's data include multiple levels, and each level includes multiple and different organization;
First coding recombination module, for being that the organization of each level adds volume according to organization's data Code information, so that the encoded information of the different organizations of same level is different, and the coding of the organization of next level The prefix of information is the encoded information of the organization of an affiliated upper level;And according to the monitoring resource, described in judgement The encoded information of organization belonging to monitoring device generates the mark of the monitoring device using the encoded information as prefix;
First receiving module, the request of the quantity for receiving the monitoring device under inquiry destination organization mechanism;
First determining module, for determining the encoded information of the destination organization mechanism according to the request;
First statistical module, for counting all prefixes mark pair identical with the encoded information of the destination organization mechanism The quantity for the monitoring device answered using the quantity as the quantity of the monitoring device under the destination organization mechanism, and responds institute State request.
The embodiment of the present application fourth aspect provides a kind of electronic equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, the processor realize method described in the application first aspect when executing The step of.
The 5th aspect of the embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with computer program, The step in the method as described in the application first aspect is realized when the program is executed by processor.
The embodiment of the present application provides a kind of monitoring device quantity statistics method, first acquisition organization's data (that is: root The data generated according to the division information of administrative region) and monitoring resource (that is: the information of the monitoring device in administrative region), then It is that the organization of each level adds encoded information, so that the different group looms of same level according to organization's data The encoded information of structure is different, and the prefix of the encoded information of the organization of next level is the tissue of the upper level belonging to it The encoded information of mechanism;It is monitoring device further according to the encoded information of organization belonging to the monitoring device in monitoring resource Addition mark, wherein the mark is generated by prefix of the encoded information of the organization.Therefore, inquiry mesh is being received When marking the request of the quantity of the monitoring device under organization, it can directly count to obtain all prefixes and destination organization mechanism The quantity of the corresponding monitoring device of the identical mark of encoded information, as the quantity of the monitoring device under the destination organization mechanism, There are longer delay when i.e. the application overcomes quantity using the monitoring device in recursive algorithm statistical regions in the related technology The problem of, the efficiency of the quantity of Statistical monitor equipment can be effectively promoted, and then accelerate the speed of the inquiry request of response user, Improve the usage experience of user.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below by institute in the description to the embodiment of the present application Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the application Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of networking schematic diagram of view networking of the application;
Fig. 2 is a kind of hardware structural diagram of node server of the application;
Fig. 3 is a kind of hardware structural diagram of access switch of the application;
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway;
Fig. 5 is the flow chart that the application one implements a kind of monitoring device quantity statistics method exemplified;
Fig. 6 is the flow chart for updating organization's data and monitoring resource shown in the application one is implemented;
Fig. 7 is another flow chart that the application one implements a kind of monitoring device quantity statistics method exemplified;
Fig. 8 is the schematic diagram that the application one implements the monitoring device quantity statistics process exemplified;
Fig. 9 is a kind of schematic illustration that encoded information is added for organization that the application one implements to exemplify;
Figure 10 is the structural schematic diagram that the application one implements a kind of organization's data exemplified;
Figure 11 is the structural block diagram that the application one implements a kind of monitoring device quantity statistics system exemplified;
Figure 12 is the schematic diagram that the application one implements a kind of electronic equipment exemplified.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine module, are forwarded: 1) end if meeting the following conditions It is less than that mouth sends caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, packet Include the operation such as initialization, read-write to hard disk;CPU module 203 be mainly responsible for access switch, terminal (not shown) it Between protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows view networking protocol, In the quantity of Statistical monitor equipment, acquisition organization's data first are (that is: according to the number of the division information of administrative region generation According to) and monitoring resource (that is: the information of the monitoring device in administrative region), then according to organization's data, for each level Organization add encoded information so that the encoded information of the different organizations of same level is different, and next level Organization encoded information prefix be its belonging to a upper level organization encoded information;It is provided further according to monitoring The encoded information of organization belonging to monitoring device in source, for monitoring device addition mark, wherein the mark is with the group The encoded information of loom structure is what prefix generated.When the request for the quantity for receiving the monitoring device under inquiry destination organization mechanism When, it is first determined the encoded information for going out destination organization mechanism, the coding for then counting all prefixes and the destination organization mechanism are believed Cease the identical quantity for identifying corresponding monitoring device, the quantity as the monitoring device under the destination organization mechanism.
This application provides a kind of monitoring device quantity statistics methods, pat applied to depending on one of networking monitoring pipe Platform.Fig. 5 is the flow chart that the application one implements a kind of monitoring device quantity statistics method exemplified.Reference Fig. 5, the application's The method of Statistical monitor number of devices the following steps are included:
Step S11: obtaining organization's data and monitoring resource, and organization's data are drawing according to administrative region The data for dividing information to generate, the monitoring resource are the information of the monitoring device in the administrative region, organization's number According to including multiple levels, each level includes multiple and different organization.
In each embodiment of the application, if not otherwise specified, organization's data each mean drawing according to administrative region The data for dividing information to generate, i.e. organization is the administrative region for meeting GB/T28181 standard.
Figure 10 is the structural schematic diagram that the application one implements a kind of organization's data exemplified.Figure 10 uses dendrogram A part of information that example saves the dividing condition of the administrative region of A1 does not represent practical feelings to explain the embodiment of the present application Condition.In this application, if not otherwise specified, the structure of organization's data is all made of dendrogram shown in Fig. 10 and indicates, certainly, It can also indicate that organization's data, the application are not specifically limited this using other data structures according to actual needs.
Organization's data in Figure 10 are divided into three levels, and the first level is provincial, such as: A1 is saved, the second level is City-level, such as: city B1 to city BN, third level are area (county) grade, such as: area C1, area C2, county C3 under city B1 etc., Tu10Zhong The node of dendrogram represents the organization in each level, such as: the organization in the first level is to save A1, the second level In organization are as follows: the province city A1 B1, the province city the A1 city A1, B2 ... province BN, and so on.In fact, organization's data is every A level may each comprise multiple and different organizations, such as: the first level (can also be schemed to save A1, province A2, province A3 etc. It is not shown in 10).
The more specific location information that resource is the monitoring device in the administrative region is monitored, each monitoring device can root The organization belonging to it is corresponded to according to its location information, such as: the location information of monitoring device X is the city the province A1 area the B1 street C2 Y, then the organization of the direct carry of monitoring device X is the city the province A1 area B1 C2, but it belongs to organization simultaneously and saves A1, group The loom structure province city the A1 B1 and city A1, province, the organization area B1 C2.
Step S12: being that the organization of each level adds encoded information, so that together according to organization's data The encoded information of the different organizations of one level is different, and the prefix of the encoded information of the organization of next level is institute The encoded information of the organization of the upper level belonged to.
In the embodiment of the present application, organization's data include N number of level, and N is the integer not less than 1, specifically, step S12 may include:
When N is 1, M character is generated at random, forms M bit-encoded information, the coding of the organization as the first level Information, M are the integer not less than 1;
When N is not 1, the organization of N-1 level belonging to the organization of n-th layer grade is searched, in the N-1 After the encoded information of the organization of level, increase M character at random, M*N bit-encoded information is formed, as n-th layer grade The encoded information of organization.
In the present embodiment, organization's data include N number of level.When N is 1, arbitrary M word can be generated at random Symbol, the encoded information of each organization as the first level, M are the integer not less than 1.Wherein, character can be me The combination of uncle's number, English alphabet and the two.When N is not 1, the encoded information positioned at the organization of next level should Using the encoded information of the organization of the upper level belonging to it as prefix, and M character is increased newly, by the position the M*N coding of composition Encoded information of the information as the organization of n-th layer grade.
With N=3, when M=2, for adding encoded information to the organization in Figure 10, the coding letter of province A1 is firstly generated Then breath generates the encoded information of province A1 city B1, the province city A1 B2 to the province city A1 BN using the encoded information of province A1 as prefix, then to save The encoded information of the city A1 B1, the province city A1 B2 to the province city A1 BN are that prefix generates the thirds such as the city the province A1 area B1 C1, the city A1, the province area B1 C2 The encoded information of the organization of level.I.e. coding rule is: " encoded information of a upper level "+" newly-increased encoded information ", In, the digit of newly-increased encoded information is identical as the digit of encoded information of a upper level and is 2.
Such as: the encoded information for saving A1 is " 00 ", and the encoded information of the province city A1 B1 is " 0001 ", and the coding of the province city A1 B2 is believed Breath is " 0002 ", and the encoded information of the city A1, the province area B1 C1 is " 000101 ", the encoded information of the city A1, the province area B1 C2 be " 000102 ", The encoded information of the city A1, the province county B1 C3 is " 000103 ".
In this application, when the organization to each level adds encoded information, it shall be guaranteed that each organization Encoded information it is different.
Step S13: according to the monitoring resource, obtaining the encoded information of organization belonging to the monitoring device, with The encoded information is the mark that prefix generates the monitoring device.
Wherein, organization belonging to monitoring device is the organization of its direct carry, such as: the position of monitoring device X Confidence breath is the city the province A1 area the B1 street C2 Y, then the organization of the direct carry of monitoring device X is the city the province A1 area B1 C2, namely Organization belonging to monitoring device X is the city the province A1 area B1 C2.
Specifically, step S13 may include:
For each monitoring device, its specific location information is determined in monitoring resource, is looked into according to the location information Find out the organization of its direct carry;
The encoded information for organization addition is found out in the encoded information of each organization of generation;
Using the encoded information of the organization as prefix, the mark of the monitoring device is generated.
In view networking, each monitoring device is corresponding with a view networking number, is set with being different from other monitoring It is standby.The rule for generating mark may is that " encoded information of organization belonging to monitoring device "+" view networking of monitoring device Number ", it is of course also possible to only need to guarantee to ultimately generate each using other rules for generating mark according to actual needs The mark of monitoring device is different.
Such as: it is directed to monitoring device X, the specific location information found in monitoring resource are as follows: the city A1, the province area B1 C2 Street Y, then the organization of its direct carry is " city A1, the province area B1 C2 ", in the encoded information of each organization of generation In find out " city A1, the province area B1 C2 " encoded information be " 000102 ", then utilize " 000102 " be prefix generate monitoring set Standby X's is identified as " 000102HJK ", wherein the view networking number that HJK is monitoring device X.
By the above-mentioned means, being that all monitoring devices add mark using the encoded information of each organization.
Step S14: the request of the quantity of the monitoring device under inquiry destination organization mechanism is received.
In the present embodiment, all organizations for possessing encoded information can be used as destination organization mechanism, referring to figure 10, any one node therein all can serve as destination organization mechanism.The quantity of monitoring device under destination organization mechanism is For the quantity of monitoring device of the direct or indirect carry in destination organization mechanism.Such as: destination organization mechanism is the " city A1, province The area B1 C2 ", then the monitoring device under destination organization mechanism is the quantity of all monitoring devices in the city A1, the province area B1 C2, Another example is: destination organization mechanism is " the province city A1 B1 ", then the monitoring device under destination organization mechanism is the area B1, the city A1 C1, A1 The summation of the quantity of all monitoring devices in the county B1, the city C2, A1, the area B1, city C3.
Step S15: the encoded information of the destination organization mechanism is determined according to the request.
In the present embodiment, inclusion region range in request, such as: the province city A1 B1 or the city A1, the province area B1 C2 all can be areas Domain range can determine the corresponding organization in the region according to the regional scope in request, on this basis, can be further Find the encoded information of the organization.For example, corresponding organization is the " city A1, province when regional scope is province A1 city B1 B1 ", the encoded information found are " 0001 ".
Step S16: the corresponding monitoring of all prefixes mark identical with the encoded information of the destination organization mechanism is counted The quantity of equipment using the quantity as the quantity of the monitoring device under the destination organization mechanism, and responds the request.
Due to being with the coding of the organization of the direct carry of the monitoring device when generating the mark of monitoring device Information is as prefix, therefore, after the encoded information for obtaining destination organization mechanism, can find out all with the destination organization The encoded information of mechanism is the mark of prefix, and then using the quantity of these marks as the monitoring device under destination organization mechanism Quantity.Such as: when the encoded information of destination organization mechanism is " 0001 ", what is found includes: with the mark that " 0001 " is prefix " 000101 ", " 000102 " and " 000103 ", therefore, the quantity of the monitoring device in the province city A1 B1 are 3.
In the embodiment of the present application, organization's data are obtained first (that is: to be generated according to the division information of administrative region Data) and monitoring resource (that is: the information of the monitoring device in administrative region), then according to organization's data, for each layer The organization of grade adds encoded information, so that the encoded information of the different organizations of same level is different, and next layer The prefix of the encoded information of the organization of grade is the encoded information of the organization of the upper level belonging to it;Further according to monitoring The encoded information of organization belonging to monitoring device in resource, for monitoring device addition mark, wherein the mark is with this The encoded information of organization is what prefix generated.Therefore, the number of the monitoring device in the case where receiving inquiry destination organization mechanism When the request of amount, it can directly count to obtain the corresponding prison of all prefixes mark identical with the encoded information of destination organization mechanism The quantity of equipment is controlled, as the quantity of the monitoring device under the destination organization mechanism, i.e., the application overcomes adopts in the related technology There are longer delay when with the quantity of the monitoring device in recursive algorithm statistical regions, can effectively promote Statistical monitor The efficiency of the quantity of equipment, and then accelerate the speed of the inquiry request of response user, improve the usage experience of user.
Optionally, in the embodiment of the present application, it is provided with quantity statistics table in monitoring management platform, in the quantity statistics table It include: the encoded information of the organization in n-th layer grade and the quantity of corresponding monitoring device.Therefore, above-mentioned steps S13 it Afterwards, before step S14, can with the following steps are included:
When counting the encoded information of each organization in n-th layer grade respectively as prefix, the mark comprising the prefix The quantity of corresponding monitoring device, obtains statistical result;
The quantity statistics table is created according to the statistical result.
On this basis, step S16 can be with are as follows:
The identical group of loom of encoded information of prefix with the destination organization mechanism is determined in the quantity statistics table The encoded information of structure counts the quantity of the corresponding monitoring device of encoded information of the organization, using the quantity as institute The quantity of the monitoring device under destination organization mechanism is stated, and responds the request.
In the embodiment of the present application, since the direct carry of monitoring device is in the organization of n-th layer grade, therefore, it is possible to The quantity of the monitoring device of the direct carry of each organization of n-th layer grade is counted in advance, and creates quantity statistics table, so that It can be by directly inquiring the quantity statistics table in the request for receiving the quantity of monitoring device of inquiry destination organization mechanism In data obtain destination organization mechanism monitoring device quantity.
Below with reference to Figure 10, the process of the quantity of the monitoring device of each organization of statistics n-th layer grade is carried out It is described in detail.
As shown in Figure 10, the value of N is 3, obtains the encoded information " 000101 " of organization " city A1, the province area B1 C1 " first, Then all marks with " 000101 " for prefix are counted, such as have " 000101ASD ", " 000101AFD ", " 000101KJU ", Then it is determined that the quantity of the corresponding monitoring device of encoded information " 000101 " is 3, and so on, it counts in third level and owns Organization under monitoring device quantity, then according to statistical result create quantity statistics table, such as creation quantity system Meter table can be as follows:
In the request for receiving the quantity of monitoring device of inquiry destination organization mechanism, it is first determined go out destination organization machine The encoded information of structure, such as when the encoded information of destination organization mechanism is " 000101 ", found in quantity statistics table The quantity of " 000101 " corresponding monitoring device is 3, and therefore, the response for the request should are as follows: the prison of destination organization mechanism The quantity for controlling equipment is 3;In another example being found in quantity statistics table when the encoded information of destination organization mechanism is " 0001 " Include: " 000101 ", " 000102 " and " 000103 " with the encoded information that " 0001 " is prefix, therefore respectively will The quantity of " 000101 ", " 000102 " and " 000103 " corresponding monitoring device sums to obtain summation, therefore, for this The response of request should are as follows: the summation that the quantity of the monitoring device of destination organization mechanism is;Similarly, coding letter can also be found out The quantity of breath monitoring device of corresponding organization when being " 00 ".
In the present embodiment, after for each monitoring device addition mark, the coding of the organization of n-th layer grade is utilized It is associated with creation quantity statistics table between information and the mark of each monitoring device, so that receiving inquiry destination organization mechanism Monitoring device quantity request after, institute can be extracted directly according to the encoded information of destination organization mechanism determined Have and is improved using the encoded information as the quantity of the mark of prefix to obtain the quantity of the monitoring device of destination organization mechanism The efficiency of the quantity of Statistical monitor equipment accelerates the speed of the inquiry request of response user.
In the embodiment of the present application, monitoring management platform turns server communication with association and connect;
Above-mentioned steps S11 can be with are as follows:
Turn server from the association and obtains organization's data and the monitoring resource.
In the present embodiment, association, which turns server, can be monitoring access server, is also possible to other while supporting to interconnect The server of net and view networking.Monitoring management platform can both turn to obtain organization's data and monitoring money in server from association Source, can also obtain organization's data and monitoring resource from other platforms, and the application is not specifically limited this.
Fig. 6 is the flow chart for updating organization's data and monitoring resource shown in the application one is implemented.Referring to Fig. 6, originally Application embodiment is periodically updated organization's data and monitoring resource, the process of update the following steps are included:
Step S21: periodically turn server from the association and obtain the first tissue organization data and the first monitoring resource;
Step S22: generating the encoded information of the first tissue mechanism using the first tissue organization data, according to described the The encoded information of one organization is that the monitoring device in the first monitoring resource adds mark;
Step S23: the organization is replaced using the encoded information of the first tissue mechanism in preset time point Encoded information, and, using in the first monitoring resource monitoring device and the corresponding mark replacement monitoring device and Corresponding mark.
In the present embodiment, monitoring management land period obtains organization's data and monitoring resource, and regenerates The encoded information of each organization and the mark of monitoring device, to replace the encoded information and prison of original each organization Control the mark of equipment.Due to the encoded information quantity and monitoring device of each organization mark it is large number of, this Application uses and directly generates the encoded information of another version and the mark of monitoring device, and at the appointed time replaces original version Encoded information and monitoring device mark, prevent from externally providing inquiry business to monitoring management platform and impact.
The application is updated periodically organization's data and monitoring resource, ensure that the number for the monitoring device that statistics obtains The accuracy of amount can significantly improve the usage experience of user.
In the embodiment of the present application, monitoring management platform is connect with user terminal communication, on this basis, receives inquiry mesh The request of quantity of monitoring device under mark organization may include:
From the request of the quantity of the monitoring device under user terminal reception inquiry destination organization mechanism, the request The title of destination organization mechanism including user's input.
According to the encoded information of the determining destination organization mechanism of the request, may include:
According to the title of the destination organization mechanism in the request, the corresponding coding letter of the destination organization mechanism is searched Breath.
Counting the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism After quantity, the method also includes:
The user terminal is sent to using the quantity as the response for the request.
In the present embodiment, user can install view networking software on the terminal device, for monitoring management platform into Row communication interaction.Specifically, it when user needs to inquire the quantity of the monitoring device in certain administrative region, need to only network in the view The administrative region is inputted on software, the content recognition that can be inputted automatically according to user depending on networking software goes out destination organization mechanism, and The request for further generating the quantity of the monitoring device of inquiry destination organization mechanism, is sent to monitoring management platform.Monitoring management Platform, can be according to the title of the destination organization mechanism in the request, in the volume of each organization after receiving above-mentioned request The corresponding encoded information of destination organization mechanism is found in code information.In addition, obtaining the monitoring under destination organization mechanism in statistics After the quantity of equipment, it is also used to receive the quantity of the monitoring device of monitoring management platform return depending on networking software.
In this application, monitoring management platform provides the function with the interaction of the terminal device of user, so that user passes through The view networking software installed on terminal device can conveniently and efficiently inquire the quantity of the monitoring device under destination organization mechanism, show Land the friendliness improved to user.
Fig. 7 is another flow chart that the application one implements a kind of monitoring device quantity statistics method exemplified.Reference The method of Fig. 7, the Statistical monitor equipment of the application can also include:
Step S31: obtaining organization's data and monitoring resource, and organization's data are drawing according to administrative region The data for dividing information to generate, the monitoring resource are the information of the monitoring device in the administrative region, organization's number According to including multiple levels, each level includes multiple and different organization;
Step S32: being that the organization of each level adds encoded information, so that together according to organization's data The encoded information of the different organizations of one level is different, and the prefix of the encoded information of the organization of next level is institute The encoded information of the organization of the upper level belonged to;
Step S33: the monitoring device established in the monitoring resource is corresponding with the encoded information of the organization to close It is table, the mapping table includes: the encoded information of the organization of lowest hierarchical level and corresponding belongs to the lowest hierarchical level Organization monitoring device quantity;
Step S34: the request of the quantity of the monitoring device under inquiry destination organization mechanism is received;
Step S35: the encoded information of the destination organization mechanism is determined according to the request;
Step S36: determine that prefix is identical as the encoded information of the destination organization mechanism in the mapping table Lowest hierarchical level organization encoded information;
Step S37: the quantity of the corresponding monitoring device of encoded information of the organization of the lowest hierarchical level is counted, by institute Quantity of the quantity as the monitoring device under the destination organization mechanism is stated, and responds the request.
In the present embodiment, the organization of lowest hierarchical level is the organization of n-th layer grade.User only need to be according to tissue Organization data is that each organization adds encoded information, and establishes the organization of each lowest hierarchical level directly carry The corresponding relationship of the quantity of monitoring device, without being the monitoring of statistics available destination organization mechanism for each monitoring device addition mark The quantity of equipment.
In the mapping table of the organization for the establishing each lowest hierarchical level directly quantity of the monitoring device of carry When, for each organization of lowest hierarchical level, the quantity of the monitoring device by monitoring its carry of resource statistics, then again Corresponding relationship is established with each organization of lowest hierarchical level.
Above-mentioned rapid S31 and rapid S32 please refers to described previously.Below by by taking the dendrogram in Figure 10 as an example to above-mentioned steps S33 to step S37 is described in detail.After adding encoded information for each organization, the group loom of the 3rd level is extracted The encoded information of structure, respectively " 000101 ", " 000102 ", " 000103 " ... " 000N01 ", " 000N02 " and " 000N03 " counts each group of loom then according to the more specific location information for each monitoring device recorded in monitoring resource The quantity of the corresponding monitoring device of structure, finally establishes the mapping table of the quantity of encoded information and monitoring device.So that connecing It, can be directly according to the destination organization mechanism determined after the request for receiving the quantity of the monitoring device of inquiry destination organization mechanism Encoded information, and extract it is all using the encoded information of the destination organization mechanism as the encoded information of prefix, its is corresponding Quantity of the summation of the quantity of monitoring device as the monitoring device of destination organization mechanism, improves the quantity of Statistical monitor equipment Efficiency, accelerate response user inquiry request speed.
Fig. 8 is the schematic diagram that the application one implements the monitoring device quantity statistics process exemplified.Fig. 9 is that the application one is real Apply a kind of schematic illustration that encoded information is added for organization exemplified.Below with reference to Fig. 8 and Fig. 9, to the application Monitoring device quantity statistics method carry out overall description.
Firstly, turning server from association obtains monitoring data, including organization's data and monitoring resource, then pass through decoding Recombination method will treated monitoring data (include: that treated organization's data and treated monitoring resource) deposit prison The database of management system is controlled, decoding recombinates i.e.: encoding to organization, and according to the coding of the organization after coding Information is monitoring device addition mark, and the mark of the encoded information of organization and monitoring device is then stored in monitoring management system The database of system, when receiving the request of the quantity of monitoring device of inquiry destination organization mechanism, according to the request mesh The encoded information for marking organization, then counts in the database of monitoring management system with the coding of the destination organization mechanism Information is the quantity of the mark of prefix, the quantity of the monitoring device as destination organization mechanism, to respond the request.Wherein, it supervises The control section that management system is entire monitoring management platform is controlled, turns server acquisition prison from association for controlling monitoring management platform Data are controlled, the execution of control decoding recombination method externally provides query service and controls the database pair of monitoring management system The execution of query service.
Specifically, when encoding to organization, it can refer to Fig. 9, second level organization is located at first order tissue Under mechanism, n-th layer grade organization is located under N-1 hierarchical organization mechanism, the encoded information of next hierarchical organization mechanism with The encoded information of the organization of a upper level belonging to it is prefix, such as: the encoded information of the first level organization is When " a1 ", the encoded information of the second level organization is that " a1 " adds any two codings generated at random, is generated at random Coding can be English alphabet or Arabic numerals.And so on, until completing the group to lowest hierarchical level (that is: n-th layer grade) The coding of loom structure.It, can be according to the tissue of n-th layer grade under organization due to monitoring the direct carry of A and n-th layer grade The encoded information of mechanism generates the mark of monitoring A, and step by step, mark is added for all monitoring devices, finally by each group The database of the mark deposit monitoring management system of the encoded information of loom structure and all monitoring devices, in order to which monitoring pipe pats Platform externally provides the service of the quantity of query monitor equipment.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
The embodiment of the present application provides a kind of monitoring device quantity statistics system 1100.Figure 11 is that the application one implements to illustrate A kind of structural block diagram of monitoring device quantity statistics system out.Referring to Fig.1 1, the monitoring device quantity statistics system of the application 1100 include:
First obtains module 1101, and for obtaining organization's data and monitoring resource, organization's data are roots According to the data that the division information of administrative region generates, the monitoring resource is the information of the monitoring device in the administrative region, Organization's data include multiple levels, and each level includes multiple and different organization;
First coding recombination module 1102, for adding for the organization of each level according to organization's data Add encoded information, so that the encoded information of the different organizations of same level is different, and the organization of next level The prefix of encoded information is the encoded information of the organization of an affiliated upper level;And according to the monitoring resource, judgement The encoded information of organization belonging to the monitoring device generates the mark of the monitoring device using the encoded information as prefix Know;
First receiving module 1103, the request of the quantity for receiving the monitoring device under inquiry destination organization mechanism;
First determining module 1104, for determining the encoded information of the destination organization mechanism according to the request;
First statistical module 1105, for counting all prefixes mark identical with the encoded information of the destination organization mechanism The quantity for knowing corresponding monitoring device using the quantity as the quantity of the monitoring device under the destination organization mechanism, and is rung Answer the request.
Optionally, organization's data include N number of level, and N is the integer not less than 1;The first coding recombination Module includes:
First coding recombination submodule is used to generate M character at random when N is 1, form M bit-encoded information, as The encoded information of the organization of first level;
Second coding recombination submodule, for searching belonging to the organization of n-th layer grade N-1 layers when N is not 1 The organization of grade increases M character after the encoded information of the organization of the N-1 level at random, forms M*N Bit-encoded information, the encoded information of the organization as n-th layer grade;
Identifier generation module, for generating the monitoring by prefix of the encoded information of the organization of the n-th layer grade The mark of equipment.
Optionally, it is provided with quantity statistics table in the monitoring management platform, includes: n-th layer in the quantity statistics table The encoded information of organization in grade and the quantity of corresponding monitoring device;The system 1100 further include:
First statistical module, when for counting the encoded information of each organization in n-th layer grade respectively as prefix, packet The quantity of monitoring device corresponding to mark containing the prefix, obtains statistical result;
Creation module, for creating the quantity statistics table according to the statistical result;
The statistical module includes:
Second statistical module, for determining the coding of prefix Yu the destination organization mechanism in the quantity statistics table The encoded information of the identical organization of information counts the quantity of the corresponding monitoring device of encoded information of the organization.
Optionally, the monitoring management platform turns server communication with association and connect;
The acquisition module includes:
First acquisition submodule obtains organization's data and monitoring money for turning server from the association Source.
Optionally, the first acquisition module is also used to periodically turn server from the association to obtain the first tissue mechanism number Resource is monitored according to first;
The first coding recombination module is also used to generate the first tissue mechanism using the first tissue organization data Encoded information is the monitoring device addition mark in the first monitoring resource according to the encoded information of the first tissue mechanism Know;
The system 1100 further include:
Update module, for replacing described group of loom using the encoded information of the first tissue mechanism in preset time point The encoded information of structure, and, using it is described first monitoring resource in monitoring device and corresponding mark replace it is described monitor set Standby and corresponding mark.
Optionally, the monitoring management platform is connect with user terminal communication;
First receiving module includes:
First receiving submodule, for receiving the number of the monitoring device under inquiry destination organization mechanism from the user terminal The request of amount includes the title of the destination organization mechanism of user's input in the request;
First determining module, comprising:
First determines that submodule searches the target group for the title according to the destination organization mechanism in the request The corresponding encoded information of loom structure;
The system 1100 further include:
Sending module, for being sent to the user terminal for the quantity as the response for the request.
In the embodiment of the present application, monitoring device quantity statistics system can also include:
Second obtains module, and for obtaining organization's data and monitoring resource, organization's data are according to row The data that the division information in administrative division domain generates, the monitoring resource is the information of the monitoring device in the administrative region, described Organization's data include multiple levels, and each level includes multiple and different organization;
Second coding recombination module, for being that the organization of each level adds volume according to organization's data Code information, so that the encoded information of the different organizations of same level is different, and the coding of the organization of next level The prefix of information is the encoded information of the organization of an affiliated upper level;
Module is established, pair of the encoded information of monitoring device and the organization for establishing in the monitoring resource Answer relation table, the mapping table include: the organization of lowest hierarchical level encoded information and it is corresponding belong to it is described minimum The quantity of the monitoring device of the organization of level;
Second receiving module, the request of the quantity for receiving the monitoring device under inquiry destination organization mechanism;
Second determining module, for determining the encoded information of the destination organization mechanism according to the request;
Third determining module, for determining the coding of prefix Yu the destination organization mechanism in the mapping table The encoded information of the organization of the identical lowest hierarchical level of information;
Second statistical module, for counting the corresponding monitoring device of the encoded information of organization of the lowest hierarchical level Quantity using the quantity as the quantity of the monitoring device under the destination organization mechanism, and responds the request.
Based on the same inventive concept, another embodiment of the application provides a kind of electronic equipment 1200, as shown in figure 12.Figure 12 It is the schematic diagram that the application one implements a kind of electronic equipment exemplified.The electronic equipment includes memory 1202, processor 1201 and storage on a memory and the computer program that can run on a processor, when processor execution, realizes the application Step in method described in any of the above-described embodiment.
Based on the same inventive concept, another embodiment of the application provides a kind of computer readable storage medium, stores thereon There is computer program, the step in the method as described in any of the above-described embodiment of the application is realized when which is executed by processor Suddenly.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
Above to a kind of monitoring device quantity statistics method provided by the present invention, system, electronic equipment and storage medium, It is described in detail, used herein a specific example illustrates the principle and implementation of the invention, the above reality The explanation for applying example is merely used to help understand method and its core concept of the invention;Meanwhile for the general technology of this field Personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this theory Bright book content should not be construed as limiting the invention.

Claims (10)

1. a kind of monitoring device quantity statistics method, which is characterized in that be applied to one of view networking monitoring management platform, institute The method of stating includes:
Organization's data and monitoring resource are obtained, organization's data are generated according to the division information of administrative region Data, the monitoring resource are the information of the monitoring device in the administrative region, and organization's data include multiple layers Grade, each level includes multiple and different organization;
It is that the organization of each level adds encoded information, so that the difference of same level according to organization's data Organization encoded information it is different, and the prefix of the encoded information of the organization of next level is an affiliated upper level Organization encoded information;
According to the monitoring resource, the encoded information of organization belonging to the monitoring device is obtained, with the encoded information The mark of the monitoring device is generated for prefix;
Receive the request of the quantity of the monitoring device under inquiry destination organization mechanism;
The encoded information of the destination organization mechanism is determined according to the request;
The quantity of the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism is counted, it will Quantity of the quantity as the monitoring device under the destination organization mechanism, and respond the request.
2. N is not small the method according to claim 1, wherein organization's data include N number of level In 1 integer;
It is that the organization of each level adds encoded information according to organization's data, comprising:
When N is 1, M character is generated at random, forms M bit-encoded information, the coding letter of the organization as the first level Breath, M are the integer not less than 1;
When N is not 1, the organization of N-1 level belonging to the organization of n-th layer grade is searched, in the N-1 level Organization encoded information after, at random increase M character, composition M*N bit-encoded information, the tissue as n-th layer grade The encoded information of mechanism;
The mark of the monitoring device is generated using the encoded information as prefix, comprising:
The mark of the monitoring device is generated using the encoded information of the organization of the n-th layer grade as prefix.
3. according to the method described in claim 2, it is characterized in that, be provided with quantity statistics table in the monitoring management platform, It include: the encoded information of the organization in n-th layer grade and the quantity of corresponding monitoring device in the quantity statistics table;
After the mark for generating the monitoring device using the encoded information as prefix, receive under inquiry destination organization mechanism Before the request of the quantity of monitoring device, the method also includes:
When counting the encoded information of each organization in n-th layer grade respectively as prefix, the mark institute comprising the prefix is right The quantity for the monitoring device answered, obtains statistical result;
The quantity statistics table is created according to the statistical result;
Count the quantity of the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism, packet It includes:
Prefix organization identical with the encoded information of the destination organization mechanism is determined in the quantity statistics table Encoded information counts the quantity of the corresponding monitoring device of encoded information of the organization.
4. the method according to claim 1, wherein the monitoring management platform and association turn server communication company It connects;
Obtain organization's data and monitoring resource, comprising:
Turn server from the association and obtains organization's data and the monitoring resource.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Periodically turn server from the association and obtains the first tissue organization data and the first monitoring resource;
The encoded information that the first tissue mechanism is generated using the first tissue organization data, according to the first tissue mechanism Encoded information is that the monitoring device in the first monitoring resource adds mark;
The encoded information of the organization is replaced using the encoded information of the first tissue mechanism in preset time point, with And utilize the monitoring device and the corresponding mark replacement monitoring device and corresponding mark in the first monitoring resource.
6. according to the method described in claim 4, it is characterized in that, the monitoring management platform is connect with user terminal communication;
Receive the request of the quantity of the monitoring device under inquiry destination organization mechanism, comprising:
The request of the quantity of the monitoring device under inquiry destination organization mechanism is received from the user terminal, includes in the request The title of the destination organization mechanism of user's input;
The encoded information of the destination organization mechanism is determined according to the request, comprising:
According to the title of the destination organization mechanism in the request, the corresponding encoded information of the destination organization mechanism is searched;
In the quantity for counting the corresponding monitoring device of all prefixes mark identical with the encoded information of the destination organization mechanism Later, the method also includes:
The user terminal is sent to using the quantity as the response for the request.
7. a kind of monitoring device quantity statistics method, which is characterized in that the described method includes:
Organization's data and monitoring resource are obtained, organization's data are generated according to the division information of administrative region Data, the monitoring resource are the information of the monitoring device in the administrative region, and organization's data include multiple layers Grade, each level includes multiple and different organization;
It is that the organization of each level adds encoded information, so that the difference of same level according to organization's data Organization encoded information it is different, and the prefix of the encoded information of the organization of next level is an affiliated upper level Organization encoded information;
Establish the mapping table of the monitoring device in the monitoring resource and the encoded information of the organization, the correspondence Relation table includes: the encoded information of the organization of lowest hierarchical level and the prison of the corresponding organization for belonging to the lowest hierarchical level Control the quantity of equipment;
Receive the request of the quantity of the monitoring device under inquiry destination organization mechanism;
The encoded information of the destination organization mechanism is determined according to the request;
Prefix lowest hierarchical level identical with the encoded information of the destination organization mechanism is determined in the mapping table The encoded information of organization;
The quantity for counting the corresponding monitoring device of encoded information of the organization of the lowest hierarchical level, using the quantity as institute The quantity of the monitoring device under destination organization mechanism is stated, and responds the request.
8. a kind of monitoring device quantity statistics system, which is characterized in that the system deployment is networked in view, the system comprises:
First obtains module, and for obtaining organization's data and monitoring resource, organization's data are according to administrative area The data that the division information in domain generates, the monitoring resource are the information of the monitoring device in the administrative region, the tissue Organization data includes multiple levels, and each level includes multiple and different organization;
First coding recombination module, for being organization's addition coding letter of each level according to organization's data Breath, so that the encoded information of the different organizations of same level is different, and the encoded information of the organization of next level Prefix be an affiliated upper level organization encoded information;And according to the monitoring resource, judge the monitoring The encoded information of organization belonging to equipment generates the mark of the monitoring device using the encoded information as prefix;
First receiving module, the request of the quantity for receiving the monitoring device under inquiry destination organization mechanism;
First determining module, for determining the encoded information of the destination organization mechanism according to the request;
First statistical module, it is corresponding for counting all prefixes mark identical with the encoded information of the destination organization mechanism The quantity of monitoring device using the quantity as the quantity of the monitoring device under the destination organization mechanism, and is asked described in response It asks.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the step of processor realizes method as claimed in claim 1 when executing.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in method as claimed in claim 1 is realized when execution.
CN201910642771.3A 2019-07-16 2019-07-16 A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium Pending CN110490277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910642771.3A CN110490277A (en) 2019-07-16 2019-07-16 A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910642771.3A CN110490277A (en) 2019-07-16 2019-07-16 A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110490277A true CN110490277A (en) 2019-11-22

Family

ID=68547209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910642771.3A Pending CN110490277A (en) 2019-07-16 2019-07-16 A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110490277A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193905A (en) * 2019-12-24 2020-05-22 视联动力信息技术股份有限公司 Monitoring resource allocation method and device and readable storage medium
CN114238346A (en) * 2022-02-25 2022-03-25 浙江力嘉电子科技有限公司 Monitoring density analysis method and device, storage medium and electronic equipment
CN114785711A (en) * 2022-05-27 2022-07-22 中国联合网络通信集团有限公司 Method, device and storage medium for monitoring performance of network equipment
CN116578289A (en) * 2023-05-11 2023-08-11 中建国际建设有限公司 Complex organization architecture coding system and coding method for checking computing carbon assets

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430755A (en) * 2008-11-13 2009-05-13 王新锋 Label recognition anti-collision processing method in radio frequency recognition technology
US20150052124A1 (en) * 2013-08-13 2015-02-19 Mapquest, Inc. Systems and methods for processing search queries utilizing hierarchically organized data
CN105357333A (en) * 2015-11-21 2016-02-24 浙江宇视科技有限公司 National standard code register server and video monitoring system
CN108012106A (en) * 2016-11-01 2018-05-08 北京视联动力国际信息技术有限公司 A kind of method and system regarding networking monitoring source synchronous
CN108206958A (en) * 2016-12-19 2018-06-26 北京视联动力国际信息技术有限公司 A kind of method for obtaining video recording resource and association turn server
CN109743555A (en) * 2019-02-02 2019-05-10 视联动力信息技术股份有限公司 A kind of information processing method and system based on view networking
CN109768957A (en) * 2018-11-30 2019-05-17 视联动力信息技术股份有限公司 A kind of processing method and system of monitoring data
CN109831647A (en) * 2019-01-22 2019-05-31 视联动力信息技术股份有限公司 A kind of method and apparatus for transferring monitoring

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430755A (en) * 2008-11-13 2009-05-13 王新锋 Label recognition anti-collision processing method in radio frequency recognition technology
US20150052124A1 (en) * 2013-08-13 2015-02-19 Mapquest, Inc. Systems and methods for processing search queries utilizing hierarchically organized data
CN105357333A (en) * 2015-11-21 2016-02-24 浙江宇视科技有限公司 National standard code register server and video monitoring system
CN108012106A (en) * 2016-11-01 2018-05-08 北京视联动力国际信息技术有限公司 A kind of method and system regarding networking monitoring source synchronous
CN108206958A (en) * 2016-12-19 2018-06-26 北京视联动力国际信息技术有限公司 A kind of method for obtaining video recording resource and association turn server
CN109768957A (en) * 2018-11-30 2019-05-17 视联动力信息技术股份有限公司 A kind of processing method and system of monitoring data
CN109831647A (en) * 2019-01-22 2019-05-31 视联动力信息技术股份有限公司 A kind of method and apparatus for transferring monitoring
CN109743555A (en) * 2019-02-02 2019-05-10 视联动力信息技术股份有限公司 A kind of information processing method and system based on view networking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHENLEIXING: "字典树-大量字符串前缀及出现次数是否存在统计(Trie树-java)算法实现", 《HTTPS://WWW.IT610.COM/ARTICLE/5335816.HTM》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193905A (en) * 2019-12-24 2020-05-22 视联动力信息技术股份有限公司 Monitoring resource allocation method and device and readable storage medium
CN111193905B (en) * 2019-12-24 2022-11-01 视联动力信息技术股份有限公司 Monitoring resource allocation method and device and readable storage medium
CN114238346A (en) * 2022-02-25 2022-03-25 浙江力嘉电子科技有限公司 Monitoring density analysis method and device, storage medium and electronic equipment
CN114238346B (en) * 2022-02-25 2022-05-17 浙江力嘉电子科技有限公司 Monitoring density analysis method and device, storage medium and electronic equipment
CN114785711A (en) * 2022-05-27 2022-07-22 中国联合网络通信集团有限公司 Method, device and storage medium for monitoring performance of network equipment
CN114785711B (en) * 2022-05-27 2024-03-26 中国联合网络通信集团有限公司 Performance monitoring method, device and storage medium of network equipment
CN116578289A (en) * 2023-05-11 2023-08-11 中建国际建设有限公司 Complex organization architecture coding system and coding method for checking computing carbon assets

Similar Documents

Publication Publication Date Title
CN108075920A (en) A kind of management method and system regarding networked terminals
CN108023910A (en) A kind of terminal monitoring method and system based on regarding networking
CN110490277A (en) A kind of monitoring device quantity statistics method, system, electronic equipment and storage medium
CN110121059A (en) Monitor video processing method, device and storage medium
CN109743595A (en) Terminal data synchronous method and device
CN108632238A (en) A kind of method and apparatus of permission control
CN109617956A (en) A kind of data processing method and device
CN108880851A (en) A kind of method and interactive system that configuration updates
CN110225083A (en) Data push method and device based on view networking
CN109787873A (en) A kind of method and apparatus of multi-to-multi incoming communication
CN108234178A (en) A kind of method and apparatus for being managed collectively menu file
CN108206927A (en) A kind of meeting synchronous method and device
CN110012316A (en) A kind of processing method and processing device regarding networking service
CN109768957A (en) A kind of processing method and system of monitoring data
CN109151061A (en) A kind of date storage method and device
CN108206756A (en) A kind of method and apparatus regarding networking data verification
CN110109823A (en) A kind of application program repairing method and device
CN108206819A (en) A kind of grouping tree sorting method and its system
CN110287248A (en) A kind of data read-write method and system
CN110048911A (en) A kind of Cascading Methods and server based on view networking
CN110263030A (en) Data capture method and device based on view networking
CN110022500A (en) A kind of loss treating method and device
CN110120885A (en) A kind for the treatment of method and apparatus of device status information
CN109067895A (en) A kind of method and apparatus remotely controlled
CN108965219A (en) A kind of data processing method and device based on view networking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191122

RJ01 Rejection of invention patent application after publication