CN109802991A - The method and apparatus that a kind of display association turns gateway status - Google Patents

The method and apparatus that a kind of display association turns gateway status Download PDF

Info

Publication number
CN109802991A
CN109802991A CN201811505812.6A CN201811505812A CN109802991A CN 109802991 A CN109802991 A CN 109802991A CN 201811505812 A CN201811505812 A CN 201811505812A CN 109802991 A CN109802991 A CN 109802991A
Authority
CN
China
Prior art keywords
mserver
server
junior
higher level
gateway
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
CN201811505812.6A
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 CN201811505812.6A priority Critical patent/CN109802991A/en
Publication of CN109802991A publication Critical patent/CN109802991A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present application provides a kind of show and assists the method for turning gateway status and corresponding device, the method is applied in view networking, and the view networking includes that higher level monitors unified management mserver server, web front-end, junior monitoring unified management mserver server, multiple view networking protocol transfer gateways;The junior mserver server has junior mserver server ID, includes higher level's database in the higher level mserver server;The communication connection with junior mserver server is established in addition junior's platform request instruction that higher level mserver server is sent by web front-end, obtain the status information for the view networking protocol transfer gateway that junior mserver server reports, and web front-end is sent by the status information, web front-end shows status information in the Website page built;The cascade connection for establishing higher level mserver server Yu junior mserver server by web front-end operation is realized, the connection status of networking protocol transfer gateway can be regarded by crossing the Website page monitoring that web front-end is built.

Description

The method and apparatus that a kind of display association turns gateway status
Technical field
This application involves view networking technology fields, turn the method and apparatus of gateway status more particularly to a kind of display association.
Background technique
Currently, can have multiple mserver server mserver servers, the grade based on administrative jurisdiction in depending on networking Not, mserver server can be divided into higher level mserver server, junior's mserver server platform again;Junior mserver clothes Business device connects multiple view networking protocol transfer gateways again, and depending on networking protocol transfer gateway, referred to as association turns gateway.In practice, higher level After mserver server and junior mserver server establish connection, the resource that can only synchronize junior's mserver server becomes Change information, such as the increase deletion of monitoring resource etc. to operate.But higher level mserver server can not know that association turns gateway Connection status, can not also show that association turns the status information of gateway, higher level's mserver server is caused to need using association to turn gateway When carrying out the broadcasting of real time monitoring video and monitoring video video, it cannot know that association that needs utilize turns the connection shape of gateway in advance State, if it is off-line state that association, which turns gateway, higher level mserver server can just know that association turns net only after providing failure response Pass be it is offline, causing higher level mserver server, there are information blind areas in terms of association turns gateway status, so that monitoring management Function is incomplete, experience sense is poor, plays the problem of target monitoring video takes time and effort.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind A kind of display association to solve the above problems turns the method for gateway status and the device for turning gateway status is assisted in a kind of corresponding display.
To solve the above-mentioned problems, this application discloses a kind of method that display association turns gateway status, the method applications In view networking, the view networking includes that higher level monitors unified management mserver server, web front-end, the unified pipe of junior's monitoring Manage mserver server, multiple view networking protocol transfer gateways;The higher level mserver server and web front-end communication link It connects, the junior mserver server and multiple view networking protocol transfer gateways communicate to connect, the junior mserver service Device has junior mserver server ID, includes higher level's database in the higher level mserver server, which comprises
The higher level mserver server receives the addition junior platform request instruction that the web front-end is sent;Wherein, Addition junior's platform request instruction includes the junior mserver server ID, addition junior's platform request instruction Operation is added according to the platform of triggering by the web front-end to generate;
Addition junior's platform request instruction is sent to and the junior by the higher level mserver server Mserver server;
The higher level mserver server receives the junior mserver server and asks for addition junior platform Signaling is replied in the access for asking instruction to return, and replys signaling for the access, generates the first communication path;Wherein, described The road that one communication path carries out data transmission between the junior mserver server and the higher level mserver server Diameter;
The higher level mserver server is based on first communication path and receives the junior mserver server hair The status information sent, and the status information is saved into higher level's database, and the status information is sent to The web front-end, the web front-end is for showing the status information;Wherein, the status information is by the junior Mserver server is generated according to the connection status of the view networking protocol transfer gateway.
Preferably, the higher level mserver server is based on first communication path, at interval of preset second time The status information that the junior mserver server is sent is received, and the status information is saved to higher level's database In, and the status information is sent to the web front-end, the web front-end is for showing the status information; Wherein, the status information turns by junior's mserver server at interval of preset second time according to the view networking protocol The connection status that draping is closed generates.
Preferably, the addition junior platform request that the web front-end is sent is received in the higher level mserver server to refer to After the step of enabling, and the higher level mserver server by addition junior's platform request instruction be sent to it is described Before the step of junior's mserver server, further includes:
The higher level mserver server is instructed for addition junior's platform request, generates the first heartbeat packet, and will First heartbeat packet is sent to the junior mserver server;
The higher level mserver server judges whether to receive the junior mserver server for described first Signaling is replied in the heartbeat that heartbeat packet returns;
If so, the higher level mserver server by addition junior's platform request instruction be sent to it is described under Grade mserver server;
If it is not, described in then the higher level mserver server stops for addition junior's platform request instruction being sent to Junior's mserver server, and generation can not add junior's platform information, and can not add junior's platform information hair for described It send to the web front-end;The web front-end can not add junior's platform information described in being used to show.
Preferably, first communication path is based in the higher level mserver server receive the junior mserver The status information that server is sent, and the status information is saved into higher level's database, and the state is believed After the step of breath is sent to the web front-end, further includes:
The higher level mserver server at interval of preset first time by first heartbeat packet be sent to it is described under Grade mserver server;
The higher level mserver server judges whether to receive the junior mserver server for described first Signaling is replied in the heartbeat that heartbeat packet returns;
If so, the higher level mserver server generates junior's platform online information, and can not junior's platform by described in Online information is sent to the web front-end;The web front-end is for showing junior's platform online information;
If it is not, then the higher level mserver server generates junior's platform offline information, and can not junior's platform by described in Information off-line is sent to the web front-end, and the web front-end is for showing junior's platform offline information.
In order to solve the above-mentioned technical problem, disclosed herein as well is a kind of method that display association turns gateway status, the sides Method is applied in view networking, and the view networking includes that higher level monitors unified management mserver server, web front-end, junior's monitoring It is managed collectively mserver server, multiple view networking protocol transfer gateways;The higher level mserver server and web front-end are logical Letter connection, the junior mserver server and multiple view networking protocol transfer gateways communicate to connect, the higher level mserver It include higher level's database in server, which comprises
The junior mserver server receives the addition junior platform request that the higher level mserver server is sent Instruction;Wherein, junior's platform request instruction includes junior mserver server ID, and addition junior platform request refers to It enables and being generated and sent according to the addition operation of the platform of triggering to the higher level mserver server by the web front-end;
The junior mserver server generates access for addition junior's platform request instruction and replys signaling, and Access reply signaling is sent to the higher level mserver server;The higher level mserver server is used to be directed to institute State access reply signaling, generate the first communication path, first communication path be the junior mserver server with it is described The path that higher level's mserver server carries out data transmission;
The junior mserver server generates state letter according to the connection status of the view networking protocol transfer gateway Breath;
The junior mserver server is based on first communication path and the status information is sent to the higher level Mserver server;The higher level mserver server is used to save the status information to higher level's database, with And the status information is sent to the web front-end, the web front-end is for showing the status information.
Preferably, the junior mserver server turns at interval of preset second time according to the view networking protocol The connection status that draping is closed generates status information, specifically includes;
The junior mserver server generates the second heartbeat packet;Wherein, the second heartbeat packet includes gateway ID mark;
Second heartbeat packet was sent to and institute at interval of preset second time by the junior mserver server It states gateway ID and identifies corresponding view networking protocol transfer gateway;
The junior mserver server judges whether that receiving the gateway ID identifies corresponding view networking protocol conversion Gateway replys signaling for the heartbeat that second heartbeat packet returns;
If so, the junior mserver server generates gateway presence information;Wherein, the gateway is in threadiness State information includes the gateway ID mark;
If it is not, then the junior mserver server generates gateway off-line state information;Wherein, the gateway is in threadiness State information includes the gateway ID mark.
Preferably, the junior mserver server is based on first communication path, when at interval of preset second Between the status information is sent to the higher level mserver server;The higher level mserver server is used for the shape State information preservation is sent to the web front-end to higher level's database, and by the status information, and the web front-end is used In the display status information.
In order to solve the above-mentioned technical problem, the application further correspondingly discloses a kind of device for showing association and turning gateway status, institute It states device and is applied to view networking, the view networking includes that higher level monitors unified management mserver server, web front-end, junior's prison Control unified management mserver server, multiple view networking protocol transfer gateways;The higher level mserver server and web front-end Communication connection, the junior mserver server and multiple view networking protocol transfer gateways communicate to connect, the junior Mserver server has junior mserver server ID, includes higher level's database, institute in the higher level mserver server Device is stated to be located in the higher level mserver server, comprising:
First request instruction obtains module, the addition junior platform request instruction sent for receiving the web front-end;Its In, addition junior's platform request instruction includes the junior mserver server ID, and addition junior platform request refers to It enables and operation generation is added according to the platform of triggering by the web front-end;
Request instruction sending module, for addition junior's platform request instruction to be sent to and the junior Mserver server;
Cascade module is returned for receiving the higher level mserver server for addition junior's platform request instruction Signaling is replied in the access returned, and replys signaling for the access, generates the first communication path, first communication path is institute State the path that junior's mserver server and the higher level mserver server carry out data transmission;Wherein, the junior Mserver server is used to generate status information according to the connection status of the view networking protocol transfer gateway;
Status information receiving module, for receiving the junior mserver server hair according to first communication path The status information sent saves the status information into higher level's data, and the status information is sent institute State web front-end;Wherein, the web front-end is for showing the status information.
In order to solve the above-mentioned technical problem, disclosed herein as well is a kind of corresponding show to assist the device for turning gateway status, Described device is applied in view networking, view networking include higher level's monitoring be managed collectively mserver server, web front-end, under Grade monitoring unified management mserver server, multiple view networking protocol transfer gateways;The higher level mserver server and web Front end communication connection, the junior mserver server and multiple view networking protocol transfer gateways communicate to connect, the junior Mserver server has junior mserver server ID, includes higher level's database, institute in the higher level mserver server Device is stated to be located in the junior mserver server, comprising:
Second request instruction obtains module, the addition junior platform sent for receiving the higher level mserver server Request instruction;Wherein, junior's platform request instruction includes junior mserver server ID, and addition junior platform is asked Instruction is asked to be generated and sent according to the addition operation of the platform of triggering to the higher level mserver server by the web front-end;
Ask respond module, for generating access reply signaling for addition junior's platform request instruction, and by institute It states access reply signaling and is sent to the higher level mserver server;The higher level mserver server is used to connect for described Enter and reply signaling, generate the first communication path, first communication path is the junior mserver server and the higher level The path that mserver server carries out data transmission;
Status information generation module, for generating state letter according to the connection status of the view networking protocol transfer gateway Breath;
Status information sending module, for the status information to be sent to the higher level according to first communication path Mserver server;The higher level mserver server is used to save the status information to higher level's database, with And the status information is sent to the web front-end;Wherein, the web front-end is for showing the status information.
Preferably, the status information generation module includes:
Heart-beat protocol module, for generating the second heartbeat packet;Wherein, the second heartbeat packet includes gateway ID mark;
Second heartbeat packet is sent to and institute at interval of preset second time by heart-beat protocol sending module It states gateway ID and identifies corresponding view networking protocol transfer gateway;
Presence information generation module identifies corresponding view networking protocol transfer gateway for receiving the gateway ID When replying signaling for the heartbeat that second heartbeat packet returns, gateway presence information is generated;Wherein, the gateway is online Status information includes the gateway ID mark;
Off-line state information generating module identifies the corresponding view networking protocol turn for not receiving the gateway ID When the heartbeat reply signaling for second heartbeat packet return is closed in draping, gateway off-line state information is generated, wherein the net Closing off-line state information includes the gateway ID mark.
Compared with prior art, the embodiment of the present application has the advantage that
Firstly, the characteristic of the embodiment of the present application application view networking, higher level mserver server can know junior mserver The connection state information of the view networking protocol transfer gateway of server connection, enables higher level's mserver server to know and show The status information for showing the view networking protocol transfer gateway of junior's mserver server connection, in this way, higher level's mserver server It, can be according to the view where target monitoring video when needing using the broadcasting for being monitored video depending on networking protocol transfer gateway The connection status of networking protocol transfer gateway, judges whether target monitoring video can smoothly be played in advance;Create higher level Mserver server and information sharing machine of the junior mserver server in terms of regarding networking protocol transfer gateway connection status System, the perfect monitoring management function of higher level's mserver server, so that user experience is more comfortable;Improve higher level Mserver server by utilizing is monitored the efficiency of resource broadcasting depending on networking protocol transfer gateway function.
It is sent secondly, higher level mserver server just receives junior's mserver server at interval of preset second time Status information, junior's mserver server at interval of preset second time obtain view networking protocol transfer gateway connection State;Higher level's mserver server is enabled to obtain the dynamic connection state of view networking protocol transfer gateway, it is further perfect The dynamic monitoring management function of higher level's mserver server.
Secondly, in higher level mserver server according to addition junior's platform request instruction execution addition junior mserver clothes Be engaged in device operation when, higher level mserver server by heartbeat packet anticipation junior mserver server it is whether online, only under Grade mserver server just will do it the mserver server operation of subsequent addition junior when online;If junior mserver takes Business device is offline, then can be shown by web front-end, improve higher level mserver server when adding junior mserver server Handle the ability and intelligent level of different situations.
Detailed description of the invention
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 step flow chart that a kind of display association of the application turns the embodiment of the method 1 of gateway status;
Fig. 6 is the step flow chart that a kind of display association of the application turns the embodiment of the method 2 of gateway status;
Fig. 7 is the structural block diagram that a kind of display association of the application turns the Installation practice 3 of gateway status;
Fig. 8 is the preferred structure block diagram that a kind of display association of the application turns the Installation practice 3 of gateway status;
Fig. 9 is the structural block diagram that a kind of display association of the application turns the Installation practice 4 of gateway status;
Figure 10 is the knot for the status information generation module that a kind of display association of the application turns the Installation practice 4 of gateway status Structure block diagram.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
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.
To make those skilled in the art more fully understand the embodiment of the present application, it is introduced below to depending on networking:
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 the embodiment of the present application 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 mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) 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 the embodiment of the present application:
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 code rate operation 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.
Code rate operation 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 code rate operation 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, code rate operation 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 the embodiment of the present application: 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 core idea of the embodiment of the present application is proposed, it then follows regard the association of networking View generates addition junior's platform request using web front-end and instructs, and higher level mserver server refers to junior's platform request is added Order is sent to junior's mserver server, when receiving the reply signaling of junior's mserver server, generates higher level The communication path that mserver server and junior mserver server carry out data transmission, higher level's mserver server pass through The communication path receives the status information for the view networking protocol transfer gateway that junior mserver server is sent, higher level mserver The status information is saved in database by server again, and is shown in web front-end.Higher level's mserver server is obtained Know and show downstream mserver server connection view networking protocol transfer gateway status information.
Embodiment one
Referring to Fig. 5, the step flow chart for turning the embodiment of the method 1 of gateway status is assisted in a kind of display for showing the application, In the embodiment of the present application, the method can be applied in view networking, and the view networking includes that higher level monitors unified management Mserver server, web front-end, junior monitoring unified management mserver server, multiple view networking protocol transfer gateways;Institute It states higher level mserver server and web front-end communicates to connect, the junior mserver server and multiple view networking protocols turn Communication connection is closed in draping, and the junior mserver server has junior mserver server ID, the higher level mserver clothes It is engaged in including higher level's database in device.
Web front-end, higher level mserver server and junior's mserver server are in view connection in the embodiment of the present application It include view networked server, web front-end, higher level mserver server and junior's mserver server in view networking in net After being all connected to view networked server, view intranet network is constituted.
Web front-end can be understood as the website built using technologies such as html, css, javascript and application, have Generate command information depending on the user's operation, the network transmission, the data that carry out data such as shows at the functions, using view networking protocol and Higher level's mserver server is communicatively coupled.
Higher level's mserver server can be understood as the background server that management platform is monitored in view networking, under Grade mserver server can be understood as the background server that management platform is monitored in view networking, wherein junior Mserver server ID can be understood as address digit of junior's mserver server in view intranet network.
Higher level's database can be understood as file cabinet-storage electronic document place of electronization, and user can be to file In data run is newly-increased, interception, the operation such as updates, deletes;In practice, higher level's database can be relevant database MySQL。
A kind of display association of the embodiment of the present application turns the method for gateway status, can specifically include following steps:
Step 501, the addition junior platform request that the higher level mserver server receives that the web front-end is sent refers to It enables.
Wherein, addition junior's platform request instruction includes the junior mserver server ID, the addition junior Platform request instruction is added operation according to the platform of triggering by the web front-end and is generated.
Addition junior's platform request instruction can be a string of binary codings, and junior's mserver server ID is included in this In binary coding.Platform addition operation can be the operation carried out on the Website page that web front-end is built, can be mouse Clicking operation, remote control operation, voice input operation etc..
Step 502, the higher level mserver server by addition junior's platform request instruction be sent to it is described under Grade mserver server.
In practice, higher level mserver server can take according to the junior mserver in addition junior's platform request instruction Be engaged in device ID, gets address digit of junior's mserver server in view networking, and addition junior's platform request instruction is sent Give junior's mserver server ID corresponding junior mserver server.
It further include higher level between step 501 and step 502 as a kind of preferable example of the embodiment of the present application Mserver server carries out the checking procedure of presence to junior's mserver server, specifically includes following sub-step:
Step 5011, the higher level mserver server is instructed for addition junior's platform request, generates first heart Packet is jumped, and first heartbeat packet is sent to the junior mserver server.
First heartbeat packet can be understood as examine junior mserver server view networking in view the Internet services The protocol data that the communication network of device is in active state always, it can also be also word that the first heartbeat packet, which can be digital code information, Symbol string information, for example, the first heartbeat packet is 0x90.
Step 5012, the higher level mserver server judges whether that receiving the junior mserver server is directed to Signaling is replied in the heartbeat that first heartbeat packet returns;If so, going to step 5013;If it is not, then going to step 5014;
If junior's mserver server is in active state in depending on networking with the communication network depending on networked server, It is that junior's mserver server is online, then can receives first heartbeat packet, and a heart can be replied according to the first heartbeat packet It jumps back to letter in reply to enable, for example, being directed to 0x90, replys signaling 0x91;If junior's mserver server takes in view networking with view networking The communication network of business device stays cool, and that is to say junior's mserver servers off-line, then will not receive first heartbeat Packet, will not reply any signaling.
Step 5013, the higher level mserver server by addition junior's platform request instruction be sent to it is described Junior's mserver server.
When junior's mserver server is online, then higher level mserver server, which continues that junior's platform request will be added, refers to Order is sent to junior's mserver server, is added the operation of junior's mserver server.
Step 5014, the higher level mserver server stops addition junior's platform request instruction being sent to institute Junior's mserver server is stated, and generation can not add junior's platform information, and can not add junior's platform information for described It is sent to the web front-end;The web front-end can not add junior's platform information described in being used to show.
In junior's mserver servers off-line, even if then addition junior's platform is asked in the transmission of higher level mserver server Instruction is asked, junior's mserver server can not also receive, and can not more also be added the operation of junior's mserver server; To avoid waste view intranet network bandwidth resources, higher level's mserver server stops sending addition junior's platform request instruction, and Generation can not add after junior's platform information that it will be shown in the web front-ends to remind user.
Step 503, the higher level mserver server receives the junior mserver server under the addition Signaling is replied in the access that grade platform request instruction returns, and replys signaling for the access, generates the first communication path.
Wherein, first communication path be the junior mserver server and the higher level mserver server it Between the path that carries out data transmission, for example, the transmission of change in resources log, monitor video, monitoring resource information etc. can be carried out.
Junior's mserver server receives addition junior's platform request instruction, and signaling is replied in the access of return can also be with It is binary coding or character string;In specific implement, higher level's mserver server generates the first communication path, can be root According to the communication link of address code and junior mserver server ID foundation of the higher level mserver server in view networking, pass through The data information transfer of the communication link realization higher level mserver server and junior mserver server.
Step 504, the higher level mserver server is based on first communication path and receives the junior mserver The status information that server is sent, and the status information is saved into higher level's database, and the state is believed Breath is sent to the web front-end, and the web front-end is for showing the status information.
Wherein, the status information is by junior's mserver server according to the connection of the view networking protocol transfer gateway State generates.
In practice, the status information that junior mserver server generates can be HTML information, and HTML information is understood that For a kind of hypertext language, data and display can be combined together, this data is shown in the page;Higher level Mserver server can parse status information after receiving status information, and the data parsed are utilized SQL Language is saved in higher level's data, and the data parsed are sent to web front-end, which is shown and built by web front-end Website page in.Certainly, status information is also possible to XML information, and as the supplement of HTML information, XML information can be used to Data, storage data are described.The application does not limit the specifically used language of status information.
In the embodiment of the present application, status information indicates the connection status of view networking protocol transfer gateway, turns depending on networking protocol The connection status that draping is closed is divided into presence and off-line state, when being some view networking protocol transfer gateway presence, Higher level mserver server shows status information in web front-end, can use the texts such as " online " or " √ ", symbol table Show, or is indicated using different colors;When being off-line state, higher level's mserver server shows status information in web When front end, it can be indicated using the texts such as " offline " or "×", symbol, or indicated using different colors;Before web End, user can check the connection status of view networking protocol transfer gateway, to need to utilize some view networking protocol transition net When closing the monitor video for obtaining monitor terminal, can know whether some can smooth transmitting, monitoring depending on networking protocol transfer gateway in advance Video improves the efficiency of management to guarantee normal use junior view networking protocol transfer gateway.
In practical application, the higher level mserver server be based on first communication path can also receive it is described under The resource information that grade mserver server is sent, the resource information include the view networking protocol of junior's mserver server connection The information of transfer gateway and the multiple monitor terminal information being connect with depending on networking protocol transfer gateway;Higher level's mserver server These resource informations are saved into supreme grade database, are also shown on the Website page that web front-end is built.
As a kind of preferable example of the embodiment of the present application, step 504 specifically can also be following operation:
Step 504', the higher level mserver server is based on first communication path, when at interval of preset second Between receive the status information that the junior mserver server is sent, and the status information is saved to higher level's data In library, and the status information is sent to the web front-end;The web front-end is for showing the status information Show.
Wherein, the status information joins by junior's mserver server at interval of preset second time according to the view The connection status of fidonetFido transfer gateway generates.
In practice, the connection status depending on networking protocol transfer gateway is not invariable, but will appear and go offline, Or online phenomenon again after going offline, when the connection status depending on networking protocol transfer gateway becomes offline shape from presence State or when becoming presence from off-line state, if being reported to higher level's mserver server, higher level mserver not in time What server showed and stored in web front-end and higher level's database is still the state before changing, when user passes through web front-end benefit It, then can be because of the information of display when transferring the monitor video of monitor terminal with the network connecting function depending on networking protocol transfer gateway With actual connection status disunity, and operation purpose cannot achieve.
In this step, junior's mserver server is converted at interval of preset second time according to the view networking protocol The connection status of gateway generates status information, and higher level mserver server also receives the state at interval of preset second time Information, it can be understood as be the multidate information securing mechanism of high level of synchronization, so that higher level's mserver server showed and stored Status information can be immediately following the variation of the connection status of view networking protocol transfer gateway, and display is real-time status information.? In the specific implementation, preset second time can be 2s, i.e., connection status is just obtained every 2s, specific second time can root Depending on actual conditions, the application does not carry out concrete restriction to second time.
As a kind of preferable example of the embodiment of the present application, after step 504 can with the following steps are included:
Step 505, the higher level mserver server sends first heartbeat packet at interval of preset first time To the junior mserver server.
In practice, junior mserver server also will appear the case where going offline, and higher level mserver server can pass through First heartbeat packet is sent to know that junior mserver takes to junior's mserver server at interval of preset first time The network dynamic of business device.Wherein, it can be 2 seconds or 3 seconds, specifically may be set according to actual conditions at the first time.
Step 506, the higher level mserver server judges whether that receiving the junior mserver server is directed to Signaling is replied in the heartbeat that first heartbeat packet returns;If so, 507 are gone to step, if it is not, then going to step 508.
Step 507, the higher level mserver server generates junior's platform online information, and will described in can not junior put down Platform online information is sent to the web front-end;The web front-end is for showing junior's platform online information.
Junior's platform online information can be HTML information, and being shown in web front-end can be shown in what web front-end was built Website page;Junior's platform online information after display can be text information, symbolic information or colouring information.
Step 508, the higher level mserver server generates junior's platform offline information, and will described in can not junior put down Platform information off-line is sent to the web front-end, and the web front-end is for showing junior's platform offline information.
Junior's platform online information can be HTML information, and being shown in web front-end can be shown in what web front-end was built Website page;Junior's platform online information after display can be text information, symbolic information or colouring information.
The embodiment of the present application, using the characteristic of view networking, the addition that higher level mserver server is sent by web front-end The instruction of junior's platform request, establishes the communication connection with junior mserver server, obtains junior mserver server and reports View networking protocol transfer gateway status information, and send web front-end for the status information, web front-end is by status information It is shown in the Website page built;It realizes and higher level mserver server and junior is established by web front-end operation The cascade connection of mserver server, and the status information for regarding networking protocol transfer gateway, Ke Yitong are shown by web front-end The connection status for crossing the Website page monitoring view networking protocol transfer gateway that web front-end is built, judges that target monitoring regards in advance Whether frequency can smoothly be played, and provide reliable reference by transferring monitor video depending on networking protocol transfer gateway for after, complete It has been apt to the management function of higher level's mserver server;Also, it is dynamically to obtain that higher level's mserver server, which obtains status information, It takes, in this way, can show the real time status information of view networking protocol transfer gateway by web front-end.
Embodiment two
Referring to Fig. 6, the step flow chart for turning the embodiment of the method 1 of gateway status is assisted in a kind of display for showing the application, In the embodiment of the present application, the method can be applied in view networking, and the view networking may include that higher level monitors unified manage Manage mserver server, web front-end, junior monitoring unified management mserver server, multiple view networking protocol transfer gateways; The higher level mserver server can be communicated to connect with web front-end, and the junior mserver server can be with multiple views Networking protocol transfer gateway communicates to connect, and may include higher level's database in the higher level mserver server.
The specific descriptions of the higher level mserver server of the embodiment of the present application, junior's mserver server, web front-end, Can be with the description of reference implementation example 1, this embodiment is not repeated.
The embodiment of the present application explains a kind of method that display association turns gateway status from junior's mserver server side It states, this method can specifically include following steps:
Step 601, the junior mserver server receives the addition junior that the higher level mserver server is sent Platform request instruction.
Wherein, junior's platform request instruction includes junior mserver server ID, addition junior platform request Instruction is generated and sent according to the addition operation of the platform of triggering to the higher level mserver server by the web front-end.
The implementation procedure of this step, specifically can be with the description of step 501 and step 502 in reference implementation example.
Step 602, the junior mserver server generates access for addition junior's platform request instruction and replys Signaling, and access reply signaling is sent to the higher level mserver server.
The higher level mserver server is used to reply signaling for the access, the first communication path of generation, and described the One communication path is the path that the junior mserver server and the higher level mserver server carry out data transmission.
The implementation procedure of this step, specifically can be with the description of step 503 in reference implementation example.
Step 603, the junior mserver server is generated according to the connection status of the view networking protocol transfer gateway Status information.
As a kind of preferable example of the embodiment of the present application, step 603 is specifically as follows: the junior mserver service Device generates status information at interval of preset second time, according to the connection status of the view networking protocol transfer gateway;Specifically It may include following sub-step;
Sub-step 6031, the junior mserver server generate the second heartbeat packet;Wherein, the second heartbeat packet includes net Close ID mark.
In practice, each has gateway ID mark depending on networking protocol transfer gateway, and gateway ID mark can be understood as Depending on address code of the networking protocol transfer gateway in view networking.Second heartbeat packet can be understood as having same as Example 1 Function is that view networking protocol transfer gateway is examined to locate always depending on the communication network in networking with junior mserver server In the protocol data of active state, coded data can be.
Sub-step 6032, the junior mserver server is at interval of preset second time, by second heartbeat packet It is sent to view networking protocol transfer gateway corresponding with the gateway ID mark.
At interval of preset second time, the connection status of networking protocol transfer gateway can be regarded, with dynamic acquisition to regard When the connection status of networking protocol transfer gateway changes, the information of state change is got in time.
Sub-step 6033, the junior mserver server judge whether that receiving the gateway ID identifies corresponding institute View networking protocol transfer gateway is stated, replys signaling for the heartbeat that second heartbeat packet returns;If so, rotor step 6034;If it is not, then rotor step 6035.
Sub-step 6034, the junior mserver server generate gateway presence information;Wherein, the gateway exists Linear state information includes the gateway ID mark.
Presence information is identified with gateway ID, can particularly belong to which view joins in order to identify the presence information FidonetFido transfer gateway.
Sub-step 6035, then the junior mserver server generates gateway off-line state information;Wherein, the gateway Presence information includes the gateway ID mark.
The status information generating mode described using this sub-step, can make the status information generated is reflection view networking association Discuss the information of the real-time connection status of transfer gateway.
Step 604, the status information is sent to by the junior mserver server based on first communication path The higher level mserver server;The higher level mserver server is for saving the status information to the upper series It is sent to the web front-end according to library, and by the status information, the web front-end is for showing the status information.
The implementation procedure of this step, specifically can be with the description of step 504 in reference implementation example.
It is the reality of reflection view networking protocol transfer gateway in status information as a kind of preferable example of the embodiment of the present application When connection status information when, this step 604 can be operation content below:
Step 604', the junior mserver server are based on first communication path, at interval of preset second The status information is sent to the higher level mserver server by the time.The higher level mserver server is used for will be described Status information is saved to higher level's database, and the status information is sent to the web front-end, the web front-end For the status information to be shown.
The implementation procedure of this step 604', specifically can be with the description of step 504 in reference implementation example, and the embodiment of the present application is not It repeats again.
The embodiment of the present application, using the characteristic of application view networking, junior's mserver server is according to reception higher level The addition junior platform request instruction that mserver server is sent, establishes the communication path with higher level mserver server, and Status information is generated according to the connection status of view networking protocol transfer gateway, it will be in the status information based on the communication path of foundation Report enables higher level's mserver server to know the connection shape of view networking protocol transfer gateway to higher level's mserver server State, and the web front-end connecting with higher level's mserver server is shown status information.It realizes and junior mserver The connection status depending on networking protocol transfer gateway of server connection can be synchronized to upper mserver server.Also, junior Mserver server dynamically can also generate status information according to the connection status of view networking protocol transfer gateway, and state is believed Breath dynamic is reported to higher level's mserver server, realizes the view networking protocol transition net connecting with junior mserver server The connection status real-time synchronization of pass is to upper mserver server.
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, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, 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 related movement not necessarily the application is implemented Necessary to example.
Embodiment three
As a kind of Fig. 7 real-time display association for showing the embodiment of the present application 3 turns the device of gateway status, comparative examples 1 Processing method, described device can be applied in view networking, and view networking includes that higher level monitors unified management mserver and takes Business device, web front-end, junior monitoring unified management mserver server, multiple view networking protocol transfer gateways;The higher level Mserver server and web front-end communicate to connect, the junior mserver server and multiple view networking protocol transfer gateways Communication connection, the junior mserver server has junior mserver server ID, in the higher level mserver server Including higher level's database, described device is located in the higher level mserver server, and the apparatus may include with lower module:
First request instruction obtains module 701, refers to for receiving the addition junior platform request that the web front-end is sent It enables;Wherein, addition junior's platform request instruction includes the junior mserver server ID, addition junior platform Request instruction adds operation according to the platform of triggering by the web front-end and generates;
Request instruction sending module 702, for addition junior's platform request instruction to be sent to and the junior Mserver server;
Cascade module 703 is instructed for receiving the higher level mserver server for addition junior's platform request Signaling is replied in the access of return, and replys signaling for the access, generates the first communication path, first communication path is The path that the junior mserver server and the higher level mserver server carry out data transmission;Wherein, the junior Mserver server is used to generate status information according to the connection status of the view networking protocol transfer gateway;
Status information receiving module 704, for receiving the junior mserver server according to first communication path The status information of transmission, and the status information is sent into the web front-end, and the status information is saved to the higher level In data;Wherein, the web front-end is for showing the status information.
As a kind of preferable example of the embodiment of the present application, the status information receiving module 704 is used for according to described the One communication path receives the status information that the junior mserver server is sent at interval of preset second time.
As a kind of preferable example of the embodiment of the present application, as shown in figure 8, showing the another preferred of the embodiment of the present application The structural block diagram of device, described device further include with lower module:
First heart-beat protocol module 706 is instructed for addition junior's platform request, generates the first heartbeat packet, and will First heartbeat packet is sent to the junior mserver server;
Trigger module 705, for receiving what the junior mserver server was returned for first heartbeat packet When signaling is replied in heartbeat, the request instruction sending module 702 is activated to send addition junior's platform request instruction;And it is used for When receiving the heartbeat reply signaling that the junior mserver server is returned for first heartbeat packet, freeze described The sending function of the addition junior platform request instruction of request instruction sending module 702;
Failure information generation module 707, for not receiving the junior mserver server for first heart When jumping the heartbeat reply signaling that packet returns, generation can not add junior's platform information, and can not add junior's platform letter for described Breath is sent to the web front-end;The web front-end is for showing addition junior platform information.
Wherein, the first heart-beat protocol module is connect with trigger module and junior's mserver server communication, and trigger module is used It is communicated to connect in request instruction sending module, failure information generation module and web front-end communicate to connect.
As a kind of preferable example of the embodiment of the present application, the first heart-beat protocol module is also used at interval of preset first First heartbeat packet is sent to the junior mserver server by the time;Described device further includes with lower module:
Junior's platform information generation module, for receiving the junior mserver server for first heart Jump packet return the heartbeat reply signaling when, generate junior's platform online information, and will described in can not junior's platform believe online Breath is sent to the web front-end;And for not receiving the junior mserver server for first heartbeat When signaling is replied in the heartbeat that packet returns, junior's platform offline information is generated, and can not junior's platform offline information by described in It is sent to the web front-end.
Example IV
Such as Fig. 9, a kind of real-time display for showing the embodiment of the present application 3 assists the structural block diagram for turning the device of gateway status, The processing method of comparative examples 2, described device are applied in view networking, and the view networking includes that higher level monitors unified management Mserver server, web front-end, junior monitoring unified management mserver server, multiple view networking protocol transfer gateways;Institute It states higher level mserver server and web front-end communicates to connect, the junior mserver server and multiple view networking protocols turn Communication connection is closed in draping, and the junior mserver server has junior mserver server ID, the higher level mserver clothes It is engaged in including higher level's database in device, described device is located in the junior mserver server, comprising:
Second request instruction obtains module 801, flat for receiving the addition junior that the higher level mserver server is sent Platform request instruction;Wherein, junior's platform request instruction includes junior mserver server ID, addition junior platform Request instruction is generated and sent according to the addition operation of the platform of triggering to the higher level mserver server by the web front-end;
Ask respond module 802 replys signaling for generating access for addition junior's platform request instruction, and will The access replys signaling and is sent to the higher level mserver server;The higher level mserver server is used for for described Access reply signaling, generate the first communication path, first communication path be the junior mserver server and it is described on The path that grade mserver server carries out data transmission;
Status information generation module 803, for generating state according to the connection status of the view networking protocol transfer gateway Information;
Status information sending module 804, it is described for being sent to the status information according to first communication path Higher level's mserver server;The higher level mserver server is for saving the status information to higher level's data Library, and the status information is sent to the web front-end;Wherein, the web front-end is for carrying out the status information Display.
As a kind of preferable example of the embodiment of the present application, as shown in Figure 10, the embodiment of the present application status information is shown The structural block diagram of generation module, the status information generation module 803 can specifically include with lower module:
Heart-beat protocol module 8031, for generating the second heartbeat packet;Wherein, the second heartbeat packet includes gateway ID mark;
Heart-beat protocol sending module 8032, at interval of preset second time, second heartbeat packet to be sent to View networking protocol transfer gateway corresponding with the gateway ID mark;
Presence information generation module 8033 identifies the corresponding view networking protocol for receiving the gateway ID Transfer gateway generates gateway presence information when replying signaling for the heartbeat that second heartbeat packet returns;Wherein, institute Stating gateway presence information includes the gateway ID mark;
Off-line state information generating module 8034, for not receiving the corresponding view networking association of the gateway ID mark Transfer gateway is discussed, when replying signaling for the heartbeat that second heartbeat packet returns, generates gateway off-line state information, wherein The gateway off-line state information includes the gateway ID mark.
As a kind of preferable example of the embodiment of the present application, the status information sending module 804, for according to described the The status information is sent to the higher level mserver server at interval of preset second time by one communication path;It is described Higher level's mserver server is used to save the status information to higher level's database, and the status information is shown Show in the web front-end.
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.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
The method of gateway status is turned to a kind of display association provided herein above and a kind of corresponding display association turns net The device of off status, is described in detail, and specific case used herein carries out the principle and embodiment of the application It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile for ability The those skilled in the art in domain, according to the thought of the application, there will be changes in the specific implementation manner and application range, comprehensive Upper described, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of method that display association turns gateway status, which is characterized in that the method is applied in view networking, the view networking Unified management mserver server, web front-end, junior's monitoring unified management mserver server, multiple are monitored including higher level Depending on networking protocol transfer gateway;The higher level mserver server and web front-end communicate to connect, the junior mserver service Device and multiple view networking protocol transfer gateways communicate to connect, and the junior mserver server has junior mserver server ID includes higher level's database in the higher level mserver server, which comprises
The higher level mserver server receives the addition junior platform request instruction that the web front-end is sent;Wherein, described Adding the instruction of junior's platform request includes the junior mserver server ID, and addition junior's platform request instruction is by institute It states web front-end and operation generation is added according to the platform of triggering;
Addition junior's platform request instruction is sent to and takes with the junior mserver by the higher level mserver server Business device;
The higher level mserver server receives the junior mserver server and refers to for addition junior platform request It enables the access returned reply signaling, and replys signaling for the access, generate the first communication path;Wherein, described first is logical The path that letter path carries out data transmission between the junior mserver server and the higher level mserver server;
The higher level mserver server receives what the junior mserver server was sent based on first communication path Status information, and the status information is saved into higher level's database, and the status information is sent to described Web front-end, the web front-end is for showing the status information;Wherein, the status information is by the junior Mserver server is generated according to the connection status of the view networking protocol transfer gateway.
2. leading to the method according to claim 1, wherein the higher level mserver server is based on described first Believe path, receive the status information that the junior mserver server is sent at interval of preset second time, and by the shape State information preservation is sent to the web front-end, the web front-end into higher level's database, and by the status information For the status information to be shown;Wherein, the status information is by junior's mserver server at interval of preset Two times generated according to the connection status of the view networking protocol transfer gateway.
3. the method according to claim 1, wherein before the higher level mserver server receives the web End send addition junior platform request instruction the step of after, and the higher level mserver server will be under the addition Grade platform request instruction be sent to the step of the junior mserver server before, further includes:
The higher level mserver server is instructed for addition junior's platform request, generates the first heartbeat packet, and will be described First heartbeat packet is sent to the junior mserver server;
The higher level mserver server judges whether to receive the junior mserver server for first heartbeat Signaling is replied in the heartbeat that packet returns;
If so, addition junior's platform request instruction is sent to and the junior by the higher level mserver server Mserver server;
If it is not, then the higher level mserver server stops addition junior's platform request instruction being sent to the junior Mserver server, and generation can not add junior's platform information, and the junior's platform information that can not add is sent to The web front-end;The web front-end can not add junior's platform information described in being used to show.
4. according to the method described in claim 3, it is characterized in that, being based on described first in the higher level mserver server Communication path receives the status information that the junior mserver server is sent, and the status information is saved on described In grade database, and after the step of status information is sent to the web front-end, further includes:
First heartbeat packet is sent to the junior at interval of preset first time by the higher level mserver server Mserver server;
The higher level mserver server judges whether to receive the junior mserver server for first heartbeat Signaling is replied in the heartbeat that packet returns;
If so, the higher level mserver server generates junior's platform online information, and will described in can not junior's platform it is online Information is sent to the web front-end;The web front-end is for showing junior's platform online information;
If it is not, then the higher level mserver server generates junior's platform offline information, and can not junior's platform offline by described in Information is sent to the web front-end, and the web front-end is for showing junior's platform offline information.
5. a kind of method that display association turns gateway status, which is characterized in that the method is applied in view networking, the view networking Unified management mserver server, web front-end, junior's monitoring unified management mserver server, multiple are monitored including higher level Depending on networking protocol transfer gateway;The higher level mserver server and web front-end communicate to connect, the junior mserver service Device and multiple view networking protocol transfer gateways communicate to connect, and include higher level's database in the higher level mserver server, described Method includes:
The junior mserver server receives the addition junior platform request instruction that the higher level mserver server is sent; Wherein, junior's platform request instruction includes junior mserver server ID, and addition junior's platform request instruction is by institute Web front-end is stated to be generated and sent according to the addition operation of the platform of triggering to the higher level mserver server;
The junior mserver server generates access reply signaling for addition junior's platform request instruction, and by institute It states access reply signaling and is sent to the higher level mserver server;The higher level mserver server is used to connect for described Enter and reply signaling, generate the first communication path, first communication path is the junior mserver server and the higher level The path that mserver server carries out data transmission;
The junior mserver server generates status information according to the connection status of the view networking protocol transfer gateway;
The junior mserver server is based on first communication path and the status information is sent to the higher level Mserver server;The higher level mserver server is used to save the status information to higher level's database, with And the status information is sent to the web front-end, the web front-end is for showing the status information.
6. according to the method described in claim 5, it is characterized in that, the junior mserver server is at interval of preset Two times generated status information according to the connection status of the view networking protocol transfer gateway, and specifically included;
The junior mserver server generates the second heartbeat packet;Wherein, the second heartbeat packet includes gateway ID mark;
Second heartbeat packet is sent to and the net by the junior mserver server at interval of preset second time It closes ID and identifies corresponding view networking protocol transfer gateway;
The junior mserver server judges whether that receiving the gateway ID identifies corresponding view networking protocol transfer gateway Signaling is replied for the heartbeat that second heartbeat packet returns;
If so, the junior mserver server generates gateway presence information;Wherein, the gateway presence letter Breath includes that the gateway ID is identified;
If it is not, then the junior mserver server generates gateway off-line state information;Wherein, the gateway presence letter Breath includes that the gateway ID is identified.
7. according to the method described in claim 6, it is characterized in that, the junior mserver server, logical based on described first Believe path, the status information is sent to the higher level mserver server at interval of preset second time;The higher level Mserver server is used to save the status information to higher level's database, and the status information is sent to The web front-end, the web front-end is for showing the status information.
8. the device that a kind of display association turns gateway status, which is characterized in that described device is applied to view networking, the view networking packet It includes higher level and monitors unified management mserver server, web front-end, junior monitoring unified management mserver server, multiple views Networking protocol transfer gateway;The higher level mserver server and web front-end communicate to connect, the junior mserver server It is communicated to connect with multiple view networking protocol transfer gateways, the junior mserver server has junior mserver server ID includes higher level's database in the higher level mserver server, and described device is located in the higher level mserver server, Include:
First request instruction obtains module, the addition junior platform request instruction sent for receiving the web front-end;Wherein, Addition junior's platform request instruction includes the junior mserver server ID, addition junior's platform request instruction Operation is added according to the platform of triggering by the web front-end to generate;
Request instruction sending module takes for being sent to addition junior's platform request instruction with the junior mserver Business device;
Cascade module, for receiving the higher level mserver server for addition junior's platform request instruction return Signaling is replied in access, and replys signaling for the access, the first communication path is generated, under first communication path is described The path that grade mserver server and the higher level mserver server carry out data transmission;Wherein, the junior mserver Server is used to generate status information according to the connection status of the view networking protocol transfer gateway;
Status information receiving module, for receiving what the junior mserver server was sent according to first communication path The status information saves the status information into higher level's data, and the status information is sent the web Front end;Wherein, the web front-end is for showing the status information.
9. the device that a kind of display association turns gateway status, which is characterized in that described device is applied in view networking, the view networking Unified management mserver server, web front-end, junior's monitoring unified management mserver server, multiple are monitored including higher level Depending on networking protocol transfer gateway;The higher level mserver server and web front-end communicate to connect, the junior mserver service Device and multiple view networking protocol transfer gateways communicate to connect, and the junior mserver server has junior mserver server ID includes higher level's database in the higher level mserver server, and described device is located in the junior mserver server, Include:
Second request instruction obtains module, the addition junior platform request sent for receiving the higher level mserver server Instruction;Wherein, junior's platform request instruction includes junior mserver server ID, and addition junior platform request refers to It enables and being generated and sent according to the addition operation of the platform of triggering to the higher level mserver server by the web front-end;
Ask respond module is replied signaling for generating access for addition junior's platform request instruction, and is connect described Enter to reply signaling and is sent to the higher level mserver server;The higher level mserver server is used to access back for described Letter in reply enables, and generates the first communication path, and first communication path is the junior mserver server and the higher level The path that mserver server carries out data transmission;
Status information generation module, for generating status information according to the connection status of the view networking protocol transfer gateway;
Status information sending module, for the status information to be sent to the higher level according to first communication path Mserver server;The higher level mserver server is used to save the status information to higher level's database, with And the status information is sent to the web front-end;Wherein, the web front-end is for showing the status information.
10. device according to claim 9, which is characterized in that the status information generation module includes:
Heart-beat protocol module, for generating the second heartbeat packet;Wherein, the second heartbeat packet includes gateway ID mark;
Heart-beat protocol sending module, at interval of preset second time, second heartbeat packet to be sent to and the net It closes ID and identifies corresponding view networking protocol transfer gateway;
Presence information generation module, for receiving, the gateway ID mark is corresponding to be directed to depending on networking protocol transfer gateway When signaling is replied in the heartbeat that second heartbeat packet returns, gateway presence information is generated;Wherein, the gateway presence Information includes the gateway ID mark;
Off-line state information generating module identifies the corresponding view networking protocol transition net for not receiving the gateway ID Close for second heartbeat packet return heartbeat reply signaling when, generate gateway off-line state information, wherein the gateway from Linear state information includes the gateway ID mark.
CN201811505812.6A 2018-12-10 2018-12-10 The method and apparatus that a kind of display association turns gateway status Pending CN109802991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811505812.6A CN109802991A (en) 2018-12-10 2018-12-10 The method and apparatus that a kind of display association turns gateway status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811505812.6A CN109802991A (en) 2018-12-10 2018-12-10 The method and apparatus that a kind of display association turns gateway status

Publications (1)

Publication Number Publication Date
CN109802991A true CN109802991A (en) 2019-05-24

Family

ID=66556569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811505812.6A Pending CN109802991A (en) 2018-12-10 2018-12-10 The method and apparatus that a kind of display association turns gateway status

Country Status (1)

Country Link
CN (1) CN109802991A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430196A (en) * 2019-08-08 2019-11-08 杭州阿启视科技有限公司 Video big data cloud platform cascade servers method
CN111092863A (en) * 2019-11-29 2020-05-01 视联动力信息技术股份有限公司 Method, client, server, device and medium for accessing internet website
CN111147440A (en) * 2019-11-11 2020-05-12 视联动力信息技术股份有限公司 State information processing method and device based on video network
CN111314745A (en) * 2020-01-17 2020-06-19 视联动力信息技术股份有限公司 Video network user management method and device
CN111614921A (en) * 2020-04-15 2020-09-01 视联动力信息技术股份有限公司 Communication method and device
CN111953931A (en) * 2020-06-30 2020-11-17 视联动力信息技术股份有限公司 Data sharing method and device and storage medium
CN113055640A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Equipment management method and device in monitoring system
CN115037806A (en) * 2022-05-20 2022-09-09 浙江大华技术股份有限公司 Protocol conversion apparatus, system, configuration method, electronic device, and storage medium
CN116366472A (en) * 2023-04-11 2023-06-30 广东保伦电子股份有限公司 Front-end control and server forwarding method for reducing server forwarding pressure

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258521A1 (en) * 2009-12-31 2014-09-11 Facebook, Inc. Load Balancing Web Service by Rejecting Connections
CN105071986A (en) * 2015-07-27 2015-11-18 武汉兴图新科电子股份有限公司 Method for monitoring operation state of system
CN106341515A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal monitoring method and device
CN108881814A (en) * 2017-08-01 2018-11-23 北京视联动力国际信息技术有限公司 The method, apparatus and interactive system communicated depending on networked terminals with IP Camera
CN108965226A (en) * 2017-12-21 2018-12-07 北京视联动力国际信息技术有限公司 A kind of data capture method and device based on view networking
CN108965369A (en) * 2017-11-22 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method for pushing and system of server state

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258521A1 (en) * 2009-12-31 2014-09-11 Facebook, Inc. Load Balancing Web Service by Rejecting Connections
CN106341515A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal monitoring method and device
CN105071986A (en) * 2015-07-27 2015-11-18 武汉兴图新科电子股份有限公司 Method for monitoring operation state of system
CN108881814A (en) * 2017-08-01 2018-11-23 北京视联动力国际信息技术有限公司 The method, apparatus and interactive system communicated depending on networked terminals with IP Camera
CN108965369A (en) * 2017-11-22 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method for pushing and system of server state
CN108965226A (en) * 2017-12-21 2018-12-07 北京视联动力国际信息技术有限公司 A kind of data capture method and device based on view networking

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430196A (en) * 2019-08-08 2019-11-08 杭州阿启视科技有限公司 Video big data cloud platform cascade servers method
CN111147440A (en) * 2019-11-11 2020-05-12 视联动力信息技术股份有限公司 State information processing method and device based on video network
CN111092863A (en) * 2019-11-29 2020-05-01 视联动力信息技术股份有限公司 Method, client, server, device and medium for accessing internet website
CN111092863B (en) * 2019-11-29 2022-12-23 视联动力信息技术股份有限公司 Method, client, server, device and medium for accessing internet website
CN113055640A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Equipment management method and device in monitoring system
CN113055640B (en) * 2019-12-28 2023-06-20 浙江宇视科技有限公司 Method and device for managing equipment in monitoring system
CN111314745A (en) * 2020-01-17 2020-06-19 视联动力信息技术股份有限公司 Video network user management method and device
CN111614921A (en) * 2020-04-15 2020-09-01 视联动力信息技术股份有限公司 Communication method and device
CN111953931A (en) * 2020-06-30 2020-11-17 视联动力信息技术股份有限公司 Data sharing method and device and storage medium
CN115037806A (en) * 2022-05-20 2022-09-09 浙江大华技术股份有限公司 Protocol conversion apparatus, system, configuration method, electronic device, and storage medium
CN116366472A (en) * 2023-04-11 2023-06-30 广东保伦电子股份有限公司 Front-end control and server forwarding method for reducing server forwarding pressure
CN116366472B (en) * 2023-04-11 2023-10-13 广东保伦电子股份有限公司 Front-end control and server forwarding method for reducing server forwarding pressure

Similar Documents

Publication Publication Date Title
CN109802991A (en) The method and apparatus that a kind of display association turns gateway status
CN108881357B (en) A kind of method and apparatus that data are synchronous
CN108243173A (en) A kind of RTMP video pushing methods and device based on regarding networking
CN107888401B (en) A kind of method and system of real time monitoring view networked terminals cpu busy percentage
CN108880926A (en) A kind of method and apparatus of server monitoring
CN108965367A (en) A kind of method and system of control view networked server
CN108965224A (en) A kind of method and apparatus of video on demand
CN108124165A (en) A kind of code stream recording method and its system based on regarding networking
CN109818776A (en) Micro services module exception localization method and device
CN110381119A (en) A kind of acquisition methods of log information, system and device and storage medium
CN109218093A (en) A kind of method and system obtaining alarm
CN108307212A (en) A kind of file order method and device
CN108809922B (en) A kind of audio fault handling method, conference dispatching end and view networked terminals
CN108243343A (en) A kind of point bit distribution statistical method and its server based on regarding networking
CN110460644A (en) A kind of data processing method and streaming media server
CN110048903A (en) A kind of association turns gateway status monitoring method and device
CN110113564A (en) A kind of data capture method and view networked system
CN110365937A (en) Unmanned plane information displaying method and system
CN110012316A (en) A kind of processing method and processing device regarding networking service
CN109803119A (en) A kind of method and apparatus of monitoring information transmission
CN110505107A (en) A kind of monitoring method and view networking management system
CN110087147A (en) A kind of method and apparatus of audio/video flow transmission
CN110430168A (en) A kind of method and apparatus of data compression
CN110417792A (en) Communication means, system, gateway and storage medium
CN110336710A (en) A kind of test method of terminal, system and device and storage medium

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: 20190524

RJ01 Rejection of invention patent application after publication