CN101800889B - Video monitoring method and device - Google Patents

Video monitoring method and device Download PDF

Info

Publication number
CN101800889B
CN101800889B CN 201010104202 CN201010104202A CN101800889B CN 101800889 B CN101800889 B CN 101800889B CN 201010104202 CN201010104202 CN 201010104202 CN 201010104202 A CN201010104202 A CN 201010104202A CN 101800889 B CN101800889 B CN 101800889B
Authority
CN
China
Prior art keywords
group
main
tabulation
address
mac address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201010104202
Other languages
Chinese (zh)
Other versions
CN101800889A (en
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN 201010104202 priority Critical patent/CN101800889B/en
Publication of CN101800889A publication Critical patent/CN101800889A/en
Application granted granted Critical
Publication of CN101800889B publication Critical patent/CN101800889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a video monitoring method and a device. Multiple ECs constitute a service group, share one IP address to reduce the IP address consumption, share coding channels of the ECs so that the EC service group can select a normal EC transmission scene flow and storage flow according to the running state of each EC. The invention realizes real-time backup of the EC channel; and thus, when the EC fails, the invention can realize seamless switching to enhance the system reliability. One EC communicates services with the management server on behalf of a set of ECs, thereby reducing the management pressure of the management serve.

Description

A kind of video frequency monitoring method and equipment
Technical field
The present invention relates to communication technical field, particularly a kind of video frequency monitoring method and equipment.
Background technology
Along with the development of video/audio encoding and decoding technology and Network storage technology, with the view data digitlization of video camera, and formed the digital video monitoring technology in Internet transmission over networks, storage.
Existing video monitoring system mainly is made of elementary cells such as simulation monitoring shooting input (hereinafter referred video camera), hardware coder (Encoder is called for short EC), management server, memory device, client and corresponding software management systems.
In video monitoring system, the front end input One's name is legion of being formed by video camera and EC, branch is wide, manageability not, and form acnode easily.If this moment, EC broke down, perhaps access network interruption etc. all might cause video traffic to interrupt, and business recovery need manually go to safeguard, can not accomplish seamless switching,
EC imports as a front end; its main message interaction comprises (the User Datagram Protocol to client transmission UDP; User Datagram Protocol) live stream; send TCP (Transmission Control Protocol to memory device; transmission control protocol) storage flow; and and management server between carry out necessary registration management, keep-alive, alarms etc. are mutual.
In the prior art, in order to guarantee the service reliability of some important control points, generally can adopt the thinking of backup, concrete schematic network structure with the input of one road camera, inserts two EC simultaneously, and backs up with two kinds of following schemes as shown in Figure 1:
Scheme one, two EC work simultaneously, and client is set up the monitoring relation with two EC simultaneously, and formulate the storage plan of two EC;
Scheme two, two EC work in series, as an EC (as EC1) when breaking down, user or management server perceive the EC1 fault, and the monitoring relation of newly-built and another EC (as EC2) is changed storage plan simultaneously, increases the storage plan of EC2.
In Fig. 1, for each EC, all have independent IP address and MAC Address, wherein, the IP that supposes S1 is IP-S1, and the MAC of S1 is MAC-S1, and the rest may be inferred for other EC.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
For scheme one of the prior art, when two EC work simultaneously, when the EC operate as normal, can there be double live stream and storage flow in the network, client also needs to set up the monitoring relation with two EC, and memory device also needs to store double video recording, has wasted Internet resources and Service Source;
And for scheme two of the prior art, when two EC work in series, when EC breaks down when switching, need manual intervention, perhaps management server perception EC fault, newly-built monitoring relation and storage plan.And owing to be the storage plan of different EC, when carrying out playing back videos, need inquire about the storage video recording of these two EC simultaneously.
In addition, the EC One's name is legion, branch is wide, can cause EC need consume a large amount of IP addresses, and management server need manage every EC, mutual message, receiving alarms etc. cause the pressure of management server bigger.
Summary of the invention
The invention provides a kind of video frequency monitoring method and equipment, utilize a plurality of EC to form a service groups, share an IP address, reducing the IP address consumes, and the coding pass of sharing E C, make the EC service groups to select normal EC to send live stream and storage flow according to the running status of each EC.
For achieving the above object, one aspect of the present invention provides a kind of video frequency monitoring method, be applied to comprise in the network system of at least one encoding device EC group, comprise a main EC in the described EC group and at least one is from EC, described main EC with respectively have different MAC Address from EC, described method specifically may further comprise the steps:
Described main EC according to self and respectively the resource information from EC set up described EC and organize the tabulation of corresponding service groups, and according in described service groups list management self and the described EC group respectively from the resource of EC;
When described main EC receives service order, according to the tabulation of described service groups, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate;
Wherein, comprise the IP address of main EC in the described EC group in the tabulation of described service groups, respectively from the MAC Address of EC, and described EC group channel status.
Preferably, described main EC according to self and respectively the resource information from EC set up described EC and organize the tabulation of corresponding service groups, also comprise:
Described main EC is respectively backing up described service groups tabulation from EC.
Preferably, when described main EC receives service order, according to the tabulation of described service groups, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate, be specially:
When described service order is set up request for the monitoring relation, described main EC inquires about described service groups tabulation, obtain the MAC Address of corresponding EC, and set up local live telecast and tabulate, described main EC is according to described local live tabulation, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send live data to other equipment;
When described service order is storage plan, described main EC inquires about described service groups tabulation, obtain the MAC Address of corresponding EC, and set up local store list, described main EC is according to described local store list, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send the storage data to other equipment.
Preferably, described main EC is respectively backing up described local live tabulation and/or described local store list from EC.
Preferably, described method also comprises:
Described EC organizes corresponding gateway device by the ARP message that described main EC sends, and obtains the ARP information of described main EC;
Described EC organizes corresponding gateway device by the corresponding data of each EC of default port snooping of each EC in the described EC group, and obtains the forwarding information of each EC, generates the forwarding-table item of each EC.
Preferably, the described EC forwarding-table item of organizing each EC that generates in the corresponding gateway device is specially static entry.
On the other hand, the present invention also provides a kind of EC, as the main EC in the EC group of living in, be applied to comprise in the network system of at least one encoding device EC group, comprise a main EC and at least one in the described EC group from EC, described main EC with respectively have different MAC Address from EC, specifically comprise:
Set up module, be used for according to self and respectively set up described EC from the resource information of EC and organize corresponding service groups tabulation;
Administration module, be used for according to described set up service groups list management self that module sets up and described EC group respectively from the resource of EC;
Processing module is used for when receive service order, sets up the service groups that module sets up and tabulates according to described, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate;
Wherein, described service lists comprises the IP address of main EC in the described EC group, respectively from the MAC Address of EC, and described EC group channel status.
Preferably, described processing module specifically is used for:
When described service order is set up request for the monitoring relation, described processing module is inquired about the described service groups tabulation that module is set up of setting up, obtain the MAC Address of corresponding EC, and set up local live telecast and tabulate, described processing module is according to described local live tabulation, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send live data to other equipment;
When described service order is storage plan, described processing module is inquired about the described service groups tabulation that module is set up of setting up, obtain the MAC Address of corresponding EC, and set up local store list, described processing mould is according to described local store list, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send the storage data to other equipment.
Preferably, described EC also comprises backup module, be used for described service groups tabulation, and/or described local live tabulation, and/or described local store list is respectively backing up from EC.
Preferably, also be connected with gateway device as the EC group of main EC with described EC, described gateway device specifically comprises:
Acquisition module is used for the ARP message that sends by described main EC, obtains the ARP information of described main EC, and/or the corresponding data of each EC of default port snooping of each EC in organizing by described EC, and obtains the forwarding information of each EC;
Memory module for the ARP information of the main EC that obtains according to described acquisition module and the forwarding information of other each EC, generates corresponding forwarding-table item, according to described forwarding-table item the message that receives is transmitted.
Preferably, the forwarding-table item of each EC that generates in the memory module in the described gateway device is specially static entry.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, utilize a plurality of EC to form a service groups, share an IP address, reducing the IP address consumes, and the coding pass of sharing E C, make that the EC service groups can be according to the running status of each EC, select normal EC to send live stream and storage flow, and realize backing up in realtime of EC passage, when EC breaks down, can seamless switching, improved the reliability of system, act on behalf of one group of EC and management server carries out service interaction with an EC, alleviate the management server government pressure.
Description of drawings
Fig. 1 is for carrying out the schematic network structure of video monitoring in the prior art;
Fig. 2 is the schematic flow sheet of a kind of video frequency monitoring method proposed by the invention;
Fig. 3 is the schematic flow sheet of the video frequency monitoring method under a kind of concrete application scenarios proposed by the invention;
Fig. 4 is the keep-alive confirmation message handling process schematic diagram of a kind of main EC side proposed by the invention;
Fig. 5 is a kind of keep-alive confirmation message handling process schematic diagram from the EC side proposed by the invention;
Fig. 6 is the structural representation of a kind of EC proposed by the invention;
Fig. 7 is the structural representation of a kind of gateway device proposed by the invention.
Embodiment
As shown in Figure 2, schematic flow sheet for a kind of video frequency monitoring method proposed by the invention, this method is applied to comprise in the network system of at least one encoding device EC group, comprise a main EC in the described EC group and at least one is from EC, described main EC with respectively have different MAC Address from EC, described method specifically may further comprise the steps:
Step S201, described main EC according to self and respectively the resource information from EC set up described EC and organize the tabulation of corresponding service groups, and according in described service groups list management self and the described EC group respectively from the resource of EC.
Wherein, described main EC according to self and respectively the resource information from EC set up described EC and organize the tabulation of corresponding service groups, be specially:
The MAC Address that comprises each EC in the described EC group in the described service groups tabulation;
Described main EC is respectively backing up described service groups tabulation from EC.
Step S202, when described main EC receives service order, according to the tabulation of described service groups, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate.
The implementation that this step is concrete comprises following two kinds of situations:
When described service order is set up request for the monitoring relation, described main EC inquires about described service groups tabulation, obtain the MAC Address of corresponding EC, and set up local live telecast and tabulate, described main EC is according to described local live tabulation, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send live data to other equipment;
When described service order is storage plan, described main EC inquires about described service groups tabulation, obtain the MAC Address of corresponding EC, and set up local store list, described main EC is according to described local store list, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send the storage data to other equipment.
It is pointed out that at main EC described in the above-mentioned implementation procedure described local live tabulation and/or described local store list are respectively being backed up from EC.
In order to guarantee the realization of technical scheme proposed by the invention, described method also comprises:
Described EC organizes corresponding gateway device by the ARP message that described main EC sends, and obtains the ARP information of described main EC;
Described EC organizes corresponding gateway device by the corresponding data of each EC of default port snooping of each EC in the described EC group, and obtains the forwarding information of each EC, generates the forwarding-table item of each EC.
Wherein, the described EC forwarding-table item of organizing each EC that generates in the corresponding gateway device is specially static entry.
The purpose of Chu Liing is like this: can normally implement in order to guarantee this programme, it is static also to need the ip address of main ec and mac address to be set on gateway device, can not be worn out, and guarantees that it can not replaced by other list items from ec.
By above implementation procedure as can be seen, technical scheme of the present invention is when realizing the operation of EC group, each EC uses the IP address of main EC, communicate with the MAC Address of self, such technical scheme has been saved the IP address resource on the one hand, on the other hand, the identification of EC group inside and the foundation of communication mechanism have also been realized, in main EC election and follow-up monitoring and storing process, MAC Address can be used as respectively the sign from EC, be used for realizing professional control and management by main EC, owing to MAC Address can not rewritten as the easy quilt of other identify labels, and the MAC Address between the distinct device can be not identical.Therefore, as the identification foundation, not only improved the traffic identification precision with MAC Address, and, Business Processing efficient also improved.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, utilize a plurality of EC to form a service groups, share an IP address, reducing the IP address consumes, and the coding pass of sharing E C, make that the EC service groups can be according to the running status of each EC, select normal EC to send live stream and storage flow, and realize backing up in realtime of EC passage, when EC breaks down, can seamless switching, improved the reliability of system, act on behalf of one group of EC and management server carries out service interaction with an EC, alleviate the management server government pressure.
In order further to set forth technological thought of the present invention, existing in conjunction with concrete application scenarios, technical scheme of the present invention is described.
The thinking of technical scheme proposed by the invention is many EC are formed a service groups, the unified distribution coding resource, and same is example with network configuration shown in Figure 1, in double layer network, each EC elects Master EC by intercepting message, is used for all EC in this service groups of unified management.
Concrete, technical scheme of the present invention may further comprise the steps as shown in Figure 3:
Step S301. configuration group ID on each EC, group #, information such as group channel number.
Passage for the different EC of same camera input need be set to identical group channel number.
In Fig. 1, and each EC (S1, S2, S3, group ID S4) is group1, group # is set to 1,2,3,4 respectively.
The group channel number of the S1 passage that links to each other with C1 is set to 1, and the group channel number of the S1 passage that links to each other with C2 is set to 2, and the group channel number of the S2 passage that links to each other with C2 also is set to 2, and the group channel number of the S2 passage that links to each other with C3 is set to 3.
Step S302, each EC broadcast the declaration message in the current network system.
Each EC management threshold state all is set to separate state, and after each EC configuration group parameter, beginning to send purpose MAC is 01:80:C2:00:00:XX, and source MAC is the declaration message of self MAC, carries group ID and the group # information of each EC self in this declaration message.
Step S303, each EC receive the declaration message that other EC send, and the Master EC election information in the record present located EC group.
After each EC receives the declaration message of other EC transmissions, comparative group ID:
If ID is inconsistent for group, direct dropping packets then;
If group ID unanimity, each EC records minimum group # and EC MAC thereof, is initially group # and the EC MAC of self.
If the entrained group # of the declaration message that receives is more than or equal to the smallest group numbering of EC current record, but EC MAC is greater than the MAC of record, then direct dropping packets;
If the entrained group # of declaration message that receives is less than or equal to the smallest group numbering of EC current record, but EC MAC then upgrades smallest group numbering and the EC MAC thereof of current record less than the MAC of record.
In Fig. 1, finally the content of the Master EC election information that records of each EC is:
Smallest group is numbered the MAC that 1, EC MAC is S1.
Step S304, after the default election time, if the Master EC election information that EC records is identical with the information of self, then to other EC transmission notification packets.
EC sends notification packet and just means and Master EC in the current EC group of being elected as of this EC success in notification packet, carry the group ID of current EC group and the smallest group numbering in this EC group.
In the scene as shown in Figure 1, EC S1 judged after the default election time, smallest group numbering and the EC MAC thereof of the Master EC election information that self stores are identical with MAC information with the group # of self, therefore, judge the Master EC that self is elected as current EC group, other EC in current EC group sends notification packet, carries the group ID of this EC group in the notification packet, group lowest number and EC MAC information.
Step S305, each EC receive notification packet, judge whether the information of Master EC entrained in the notification packet is legal.
After each EC receives notification packet, group ID entrained in the notification packet and the group ID of self are compared, if group ID is inconsistent, execution in step S306 then;
If group ID unanimity then continues smallest group numbering entrained in the notification packet relatively and compares with self group #, if the smallest group numbering more than or equal to the group # of self, and EC MAC is greater than the MAC of self, then execution in step S307; If smallest group numbering is less than or equal to the group # of self, and EC MAC is less than the MAC of self, then execution in step S308.
Step S306, EC directly abandon this notification packet.
Step S307, EC send the notification packet of oneself to other EC in the current EC group, and continue execution in step S305 in other EC, judge the legitimacy of election results.
Step S308, EC confirm that to the EC feedback announcement confirmation message that sends notification packet the EC of transmission notification packet is Master EC.
Carry self group ID in this announcement confirmation message, group #, group channel number.In Fig. 1, EC S2, S3, S4 etc. are to S1 feedback announcement confirmation message.
It is to be noted, in election process, owing to reasons such as network transmission problems, the change of Master EC may appear, such as, EC2 does not receive more excellent election information (because network transmission problem later in the election time, do not receive the declaration message that EC1 sends), therefore, confirm that self election becomes Master EC, and to other EC transmission notification packet, wherein, after EC3 receives notification packet, think that election results are legal, therefore, to EC2 feedback announcement confirmation message, but EC1 thinks that election results are illegal after receiving the notification packet of EC2 transmission, self is more suitable for becoming Master EC than EC2, therefore, directly send the notification packet of oneself to other EC, after EC3 and EC2 receive the notification packet of EC1 transmission, confirm that EC1 is more suitable for becoming Master EC than EC2, therefore, respectively to EC1 feedback announcement confirmation message, thereby, the election results of Master EC are changed for EC1 by EC2, the existence of such election corrigendum mechanism, having guaranteed can not become Master EC owing to other reason causes the EC of non-optimum, thereby has guaranteed the smooth realization of technical solution of the present invention.
Specifically, after EC sent notification packet, follow-up processing procedure comprised following two kinds of situations:
EC waits for a period of time, if receive that message numbering is less than self group # after sending notification packet, or equal self group #, but EC MAC is less than the notification packet of self MAC, then to this EC feedback announcement confirmation message, carry self group ID, group #, group channel number;
If do not receive the notification packet that other EC send, then this EC controlled state is changed to Master EC, and execution in step S309.
Step S309, Master EC set up the service groups tabulation according to the announcement confirmation message that receives.
In this service groups tabulation, adopt the IP of Master EC for group IP address, comprise group #, group channel number, EC MAC, information such as group channel status.
Need further be pointed out that, if having identical group # in the announcement confirmation message that receives, then distribute a untapped numbering to be had the EC of identical group #, and notify corresponding EC change group #.
In concrete application scenarios, the group channel status comprises: Active (activation), Standby (standby), Inactive (fault).
The initial set channel status is Active, if in the service groups tabulation, have mutually channel number on the same group, then that group # is big group channel number state changes Standby into by Active.
Step S310, Master EC send the service groups list information to other EC.
Master EC sends the Groups List notification packet to other EC after having set up the service groups tabulation, carries all information of service groups tabulation.In the network configuration as shown in Figure 1, can set up service groups and be listed as follows:
Figure GSB00000849967200101
After step S311, other EC receive the Groups List notification packet, carry out corresponding information back-up and modification.
Each EC changes to Slave EC with the controlled state of self, the Groups List information back-up is arrived local, and with organizing the IP address that this EC is replaced in the IP address, make the interior EC of all service groups share an IP address, Slave EC feedback purpose IP is group IP address, and source IP is complete 0 Groups List announcement confirmation message.
Simultaneously, Slave EC no longer sends or responds any ARP message about group IP address in follow-up processing procedure.
Step S312, Master EC with all the group passages in the service groups tabulation virtual be own resource, and with resource registering to management server, set up live business and storage service.
. the user is registered to information such as group channel number on the management server according to Master EC, sets up live business and storage service.
Master EC (S1) in the service groups totally is responsible for the network interaction with other equipment such as management server, comprises sending keep-alive message, warning information, and the response monitoring relation is set up etc.
According to monitoring business model and the service groups characteristics of management, Master EC (S1) also needs live business and storage service are unified relation:
(1) after the monitoring of Master EC response management server relation is set up request, according to the corresponding group channel number of monitoring relation, the inquiry business Groups List, obtain corresponding group # and EC MAC, set up local live tabulation, comprise group channel number, group #, EC MAC, UDP source port number, purpose IP and UDP destination slogan.
Master EC is according to this live telecast list item, and the corresponding EC of notice sends the UDP live stream to destination.In the network configuration as shown in Figure 1, need to set up the monitoring relation about passage 3, after then EC S1 received that the monitoring relation is set up request message, analytic message was set up following live list item, and notice EC S2 sends live stream to IP1;
Figure GSB00000849967200111
(2) after Master EC receives the storage plan of management server transmission, group channel number according to the storage plan correspondence, the inquiry business Groups List, obtain corresponding group # and EC MAC, set up local store list, comprise group channel number, group #, EC MAC, tcp source port number, purpose IP and TCP destination slogan.
Master EC is according to this storage item, and the corresponding EC of notice sets up TCP with corresponding memory device and is connected, and sends storage flow.In the network configuration as shown in Figure 1, need to set up the storage plan about passage 3, after EC S1 received that storage plan is set up request message, analytic message was set up following live list item, and notice EC S2 sends storage flow to IP2;
Figure GSB00000849967200121
(3) Master EC sets up or deletes local live list item, or during storage item, send the Groups List notification packet to other Slave EC, carry local live list item or storage item, makes list item backup to Slave EC.
Need further be pointed out that. in order to guarantee service communication, also need carry out following modification at the gateway device that is connected with EC:
(1) because Slave EC does not send the ARP message, and gateway device is only learnt the ARP information of Master EC, but for the message of the corresponding a plurality of source MAC of IP, gateway device study MAC information, and carry out normal message and transmit;
(2) gateway device is intercepted the TCP stream that receives from particular port (port that is connected with EC be set to according to tcp port number transmit), and the relevant information of record TCP stream comprises source IP, tcp source port number, and source MAC, outbound port is set up the TCP forwarding-table item.
Gateway device E-Packets for three layers of TCP, inquires about the ARP table if desired and transmits, and preferentially inquires about the TCP forwarding-table item, if corresponding forwarding-table item is arranged, then the corresponding purpose MAC of encapsulation transmits from corresponding port, if there is not corresponding forwarding-table item, then inquires about the ARP table again and transmit.
In the network configuration as shown in Figure 1, the TCP forwarding-table item is as follows:
IP TCP Port MAC Interface
IP-S1 TP1 MAC-S2 E2
Step S313, when Master EC receives the declaration message that initiate EC sends, this EC is directly joined in the service groups.
Concrete adition process is as follows:
In such cases, Master EC does not compare the group # of initiate EC, but directly sends notification packet to this EC, carries this EC group ID, information such as Master EC numbering.
. after initiate EC receives notification packet, find to have carried in the message Master EC numbering, then to Master EC feedback announcement confirmation message, carry self group ID, group #, group channel number.
After Master EC receives the announcement confirmation message, the tabulation of renewal service groups, if (the EC that has identical numbering, then the new EC that adds of notice changes unappropriated group #), and to other EC transmission Groups List notification packets, carry all information of the service groups tabulation of renewal, and with the live telecast tabulation, store list backups to this EC.
After new adding EC receives the Groups List notification packet, this EC controlled state is changed to Slave EC, the Groups List information back-up is arrived this locality, and with organizing the IP address that this EC is replaced in the IP address, feedback purpose IP is group IP address, and source IP is complete 0 Groups List announcement confirmation message;
After Master EC receives the Groups List notification packet, send the renewal message to management server, the notice management server upgrades the EC passage.
In order to guarantee the normal realization of technical scheme proposed by the invention, Master EC needs to send the keep-alive confirmation message regularly and between the Slave EC, and maintenance service Groups List state below in conjunction with network configuration shown in Figure 1, describes corresponding flow process:
In Master EC (be example with S1) side, corresponding handling process may further comprise the steps as shown in Figure 4:
Step S401, Master EC judge the keep-alive confirmation message of whether receiving each EC feedback in keepalive period.
(S1) receives the keep-alive confirmation message in keepalive period if Master is EC, then execution in step S402;
In keepalive period, do not receive the keep-alive confirmation message of Slave EC (be example with S2), then execution in step S403 if Master is EC (S1).
It is constant that step S402, Master EC keep the controlled state of each EC in the current EC group.
The group channel status that step S403, Master EC identify corresponding EC is fault, and enables corresponding disaster recovery measure.
If (be example with S2) breaks down because Slave EC; perhaps access network interruption etc.; cause Master EC (S1) in keepalive period, not receive the keep-alive confirmation message of Slave EC (S2); then group passage that this Slave EC (S2) is corresponding (be example with C3) state becomes Inactive; and whether existence group channel status is Standby in the inquiry business Groups List, the identical EC of group channel number (C3).
If exist, then should organize the channel number state and change Active into, upgrade live tabulation and store list synchronously, and according to live telecast tabulation and store list, notify this EC (S3) to send the UDP live stream, or rebuild the connection of TCP storage flow, realize the seamless switching of EC business.
Simultaneously, Master EC sends corresponding alarm to management server, remind the user in time to get rid of the EC fault, management server is according to the monitoring relation of this EC correspondence simultaneously, find the live message of rebuilding to clients corresponding, notice client refreshes RTP state receives new live stream, and the service groups of Master EC this moment (S1) is listed as follows:
Figure GSB00000849967200141
It is as follows to upgrade live list entry:
Figure GSB00000849967200142
The updated stored list entry is as follows:
Figure GSB00000849967200143
Figure GSB00000849967200151
Step S404, Master EC handle corresponding EC information according to the recovery progress of follow-up fault EC.
After the group channel status of Slave EC (S2) becomes Inactive, Master EC starts timer, in waiting for a period of time, do not receive the keep-alive confirmation message of this Slave EC (S2) yet, perhaps the declaration message of this EC (S2) is then deleted the corresponding group # of this EC (S2), group channel number from professional Groups List, and corresponding live list entry, store list list item, send the renewal message to management server, the notice management server upgrades the EC passage; If received the keep-alive confirmation message of this EC (S2) at waiting time; or declaration message; then will organize channel status and become Active (if the phase that has had Active passage on the same group; then this equipment group channel status transfers Standby to); also need Groups List simultaneously; live tabulation, store list backups to this Slave EC (S2).
In Slave EC (be example with S2) side, corresponding handling process may further comprise the steps as shown in Figure 5:
Step S501, Slave EC judge the keep-alive confirmation message of whether receiving Master EC feedback in keepalive period.
If Slave EC receives the keep-alive confirmation message in keepalive period, execution in step S502 then;
If Slave EC does not receive the keep-alive confirmation message of Master EC, then execution in step S503 in keepalive period.
It is constant that step S502, Slave EC keep the controlled state of each EC in the current EC group.
The EC that step S503, Slave EC enable suboptimum in the current EC group is Master EC, handles to realize system disaster tolerance.
If because Master EC (S1) breaks down; perhaps access network interruption etc.; cause Slave EC in keepalive period, not receive the keep-alive confirmation message of Master EC (S1); Slave EC checks the service groups tabulation of self backing up; if the Slave EC (S2) of (only greater than the Master EC) of numbering suboptimum; then send notification packet; to finish notification packet mutual with other Slave EC; and oneself controlled state become Master EC (S2); the update group list information upgrades live tabulation and store list synchronously, and according to live telecast tabulation and store list; notify this EC to send the UDP live stream; or rebuild the connection of TCP storage flow, realize the seamless switching of EC business, simultaneously; Master EC sends corresponding alarm to management server; remind the user in time to get rid of the EC fault, management server is found the live message of rebuilding according to the monitoring relation of this EC correspondence to clients corresponding simultaneously; notice client refreshes RTP state receives new live stream.
Except above-mentioned two kinds of ordinary circumstances, also have some special circumstances to further specify:
If situation one Slave EC does not receive notification packet or the keep-alive message of any Master EC for a long time, then controlled state is switched to separate state, information such as deletion Groups List, live tabulation and store list resend the declaration message.
If situation two is because network failure, cause the service groups division, make and have a plurality of groups of Master EC that ID is identical in the double layer network behind the network recovery, each Master EC is by comparative group numbering and ECMAC, select optimum EC as Master EC, the service groups resource of each division is reintegrated together.
In order to realize technical scheme of the present invention, the invention allows on the other hand, the present invention also provides a kind of EC, as the main EC in the EC group of living in, be applied to comprise in the network system of at least one encoding device EC group, comprise a main EC and at least one in the described EC group from EC, described main EC with respectively have different MAC Address from EC, its structural representation specifically comprises as shown in Figure 6:
Set up module 61, be used for according to self and respectively set up described EC from the resource information of EC and organize corresponding service groups tabulation;
Administration module 62, be used for according to described set up service groups list management self that module 61 sets up and described EC group respectively from the resource of EC;
Processing module 63 is used for when receive service order, sets up the service groups that module 61 sets up and tabulates according to described, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate.
In concrete application scenarios, described processing module 63 specifically is used for:
When described service order is set up request for the monitoring relation, described processing module 63 is inquired about the described service groups tabulation that module 61 is set up of setting up, obtain the MAC Address of corresponding EC, and set up local live telecast and tabulate, described processing module 63 is according to described local live tabulation, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send live data to other equipment;
When described service order is storage plan, described processing module 63 is inquired about the described service groups tabulation that module 61 is set up of setting up, obtain the MAC Address of corresponding EC, and set up local store list, described processing mould is according to described local store list, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send the storage data to other equipment.
Preferably, described EC also comprises backup module 64, be used for described service groups tabulation, and/or described local live tabulation, and/or described local store list is respectively backing up from EC.
On the other hand, the present invention also provides a kind of gateway device, be applied to comprise in the network system of at least one encoding device EC group, comprise a main EC in the described EC group and at least one is from EC, described main EC with respectively have different MAC Address from EC, its structural representation specifically comprises as shown in Figure 7:
Acquisition module 71 is used for the ARP message that sends by described main EC, obtains the ARP information of described main EC, and/or the corresponding data of each EC of default port snooping of each EC in organizing by described EC, and obtains the forwarding information of each EC;
Memory module 72 for the ARP information of the main EC that obtains according to described acquisition module 71 and the forwarding information of other each EC, generates corresponding forwarding-table item, according to described forwarding-table item the message that receives is transmitted.
Wherein, the forwarding-table item of each EC that generates in the described memory module 72 is specially static entry.
The purpose of Chu Liing is like this: can normally implement in order to guarantee this programme, it is static also to need the ip address of main ec and mac address to be set on gateway device, can not be worn out, and guarantees that it can not replaced by other list items from ec.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, utilize a plurality of EC to form a service groups, share an IP address, reducing the IP address consumes, and the coding pass of sharing E C, make that the EC service groups can be according to the running status of each EC, select normal EC to send live stream and storage flow, and realize backing up in realtime of EC passage, when EC breaks down, can seamless switching, improved the reliability of system, act on behalf of one group of EC and management server carries out service interaction with an EC, alleviate the management server government pressure.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) each implements the described method of scene to carry out the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred schematic diagram of implementing scene, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in the scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number does not represent the quality of implementing scene just to description.
More than disclosed only be several concrete enforcement scene of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (11)

1. video frequency monitoring method, it is characterized in that, be applied to comprise in the network system of at least one encoding device EC group, comprise a main EC in the described EC group and at least one is from EC, described main EC with respectively have different MAC Address from EC, described method specifically may further comprise the steps:
Described main EC according to self and respectively the resource information from EC set up described EC and organize the tabulation of corresponding service groups, and according in described service groups list management self and the described EC group respectively from the resource of EC;
When described main EC receives service order, according to the tabulation of described service groups, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate;
Wherein, comprise the IP address of main EC in the described EC group in the tabulation of described service groups, respectively from the MAC Address of EC, and described EC group channel status.
2. the method for claim 1 is characterized in that, described main EC according to self and respectively the resource information from EC set up described EC and organize the tabulation of corresponding service groups, also comprise:
Described main EC is respectively backing up described service groups tabulation from EC.
3. the method for claim 1 is characterized in that, when described main EC receives service order, according to the tabulation of described service groups, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate, be specially:
When described service order is set up request for the monitoring relation, described main EC inquires about described service groups tabulation, obtain the MAC Address of corresponding EC, and set up local live telecast and tabulate, described main EC is according to described local live tabulation, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send live data to other equipment;
When described service order is storage plan, described main EC inquires about described service groups tabulation, obtain the MAC Address of corresponding EC, and set up local store list, described main EC is according to described local store list, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send the storage data to other equipment.
4. method as claimed in claim 3 is characterized in that, described main EC is respectively backing up described local live tabulation and/or described local store list from EC.
5. the method for claim 1 is characterized in that, also comprises:
Described EC organizes corresponding gateway device by the ARP message that described main EC sends, and obtains the ARP information of described main EC;
Described EC organizes corresponding gateway device by the corresponding data of each EC of default port snooping of each EC in the described EC group, and obtains the forwarding information of each EC, generates the forwarding-table item of each EC.
6. method as claimed in claim 5 is characterized in that, the forwarding-table item that described EC organizes each EC that generates in the corresponding gateway device is specially static entry.
7. an EC is characterized in that, as the main EC in the EC group of living in, be applied to comprise in the network system of at least one encoding device EC group, comprise a main EC and at least one in the described EC group from EC, described main EC with respectively have different MAC Address from EC, specifically comprise:
Set up module, be used for according to self and respectively set up described EC from the resource information of EC and organize corresponding service groups tabulation;
Administration module, be used for according to described set up service groups list management self that module sets up and described EC group respectively from the resource of EC;
Processing module is used for when receive service order, sets up the service groups that module sets up and tabulates according to described, notify corresponding EC with described main EC the IP address and MAC Address and other equipment of described EC self communicate;
Wherein, described service lists comprises the IP address of main EC in the described EC group, respectively from the MAC Address of EC, and described EC group channel status.
8. EC as claimed in claim 7 is characterized in that, described processing module specifically is used for:
When described service order is set up request for the monitoring relation, described processing module is inquired about the described service groups tabulation that module is set up of setting up, obtain the MAC Address of corresponding EC, and set up local live telecast and tabulate, described processing module is according to described local live tabulation, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send live data to other equipment;
When described service order is storage plan, described processing module is inquired about the described service groups tabulation that module is set up of setting up, obtain the MAC Address of corresponding EC, and set up local store list, described processing mould is according to described local store list, notify corresponding EC with described main EC the IP address and the MAC Address of described EC self send the storage data to other equipment.
9. as claim 7 or 8 described EC, it is characterized in that, also comprise backup module, be used for described service groups tabulation, and/or described local live tabulation, and/or described local store list is respectively backing up from EC.
10. EC as claimed in claim 7 is characterized in that, also is connected with gateway device as the EC group of main EC with described EC, and described gateway device specifically comprises:
Acquisition module is used for the ARP message that sends by described main EC, obtains the ARP information of described main EC, and/or the corresponding data of each EC of default port snooping of each EC in organizing by described EC, and obtains the forwarding information of each EC;
Memory module for the ARP information of the main EC that obtains according to described acquisition module and the forwarding information of other each EC, generates corresponding forwarding-table item, according to described forwarding-table item the message that receives is transmitted.
11. EC as claimed in claim 10 is characterized in that, the forwarding-table item of each EC that generates in the memory module in the described gateway device is specially static entry.
CN 201010104202 2010-02-02 2010-02-02 Video monitoring method and device Active CN101800889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010104202 CN101800889B (en) 2010-02-02 2010-02-02 Video monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010104202 CN101800889B (en) 2010-02-02 2010-02-02 Video monitoring method and device

Publications (2)

Publication Number Publication Date
CN101800889A CN101800889A (en) 2010-08-11
CN101800889B true CN101800889B (en) 2013-07-10

Family

ID=42596351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010104202 Active CN101800889B (en) 2010-02-02 2010-02-02 Video monitoring method and device

Country Status (1)

Country Link
CN (1) CN101800889B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447676B (en) * 2010-09-30 2015-09-16 中兴通讯股份有限公司 Service groups management method and device
CN102298547A (en) * 2011-09-20 2011-12-28 杭州华三通信技术有限公司 Data backup method and device
CN102387198B (en) * 2011-10-17 2014-03-19 杭州华三通信技术有限公司 Business processing method and equipment for distributed network
CN102591594B (en) * 2012-02-10 2015-05-20 杭州华三通信技术有限公司 Data processing method and equipment
CN102665098B (en) * 2012-05-03 2015-09-09 浙江宇视科技有限公司 A kind of video encoder
CN102647487B (en) * 2012-05-11 2015-06-10 浙江宇视科技有限公司 Method for saving Internet protocol (IP) addresses and access proxy equipment
CN103326882B (en) * 2013-05-16 2016-03-02 浙江宇视科技有限公司 A kind of video monitoring network management method and device
CN103763195B (en) * 2014-01-23 2017-07-28 中国联合网络通信集团有限公司 A kind of method and device of transmitting message
CN104092558A (en) * 2014-06-05 2014-10-08 汉柏科技有限公司 Multi-processor equipment IP configuration method and multi-processor equipment
CN104065933B (en) * 2014-06-30 2018-07-03 苏州科达科技股份有限公司 Intelligent data acquisition method and system in video monitoring system
CN105245827B (en) * 2015-08-31 2020-01-14 瑞斯康达科技发展股份有限公司 Video data transmission method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607772A (en) * 2003-10-14 2005-04-20 华为技术有限公司 Method for realizing data transfer backup through address interpretation protocol messages
CN1984039A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Fast re-routing method for shared multi-port transmitting link

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607772A (en) * 2003-10-14 2005-04-20 华为技术有限公司 Method for realizing data transfer backup through address interpretation protocol messages
CN1984039A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Fast re-routing method for shared multi-port transmitting link

Also Published As

Publication number Publication date
CN101800889A (en) 2010-08-11

Similar Documents

Publication Publication Date Title
CN101800889B (en) Video monitoring method and device
TWI724106B (en) Business flow control method, device and system between data centers
EP2993838B1 (en) Methods for setting a member identity of gateway device and corresponding management gateway devices
EP2893669B1 (en) Physical security system having multiple server nodes
JP3901806B2 (en) Information management system and secondary server
CN104092746B (en) A kind of O&M auditing system and the network load balancing method in its system
CN103581245A (en) Content delivery method and system of content delivery network
CN102571686A (en) Method for realizing cloud conference system
CN102549983A (en) Distributed data center access switch
CN103081408A (en) System and method for providing media server redundancy in a network environment
CN101827039B (en) Method and equipment for load sharing
CN101741742A (en) Message processing method, access equipment and communication system
CN106302536B (en) The method and apparatus communicated between all-in-one machine multisystem based on interchanger
CN105528254A (en) Business processing method and apparatus
CN103117935A (en) Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
CN104427354A (en) Broadcast media sharing method and node subsystem, and streaming media server
CN103354525A (en) System and method for realizing wide area network anycast load balancing based on OpenFlow
CN110581975A (en) Conference terminal updating method and video networking system
CN115022180B (en) Topology management method, device, equipment and medium based on RoCE-SAN
US20220345872A1 (en) Method and system for controlling id identifier network mobility based on programmable switch
CN113489601B (en) Anti-destruction method and device based on autonomous cloud network architecture of video networking
US9692723B2 (en) Network management of devices residing behind a network device
CN101170689B (en) Method and device for configuring information synchronization
CN102904761B (en) The method of a kind of NVR stacking and NVR
WO2015043257A1 (en) Link setup method, system, and computer storage medium in distributed cdn system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: ZHEJIANG UNIVIEW TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: HUASAN COMMUNICATION TECHNOLOGY CO., LTD.

Effective date: 20120217

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120217

Address after: Hangzhou City, Zhejiang province 310053 Binjiang District Dongxin Road No. 66 building two or three layer A C

Applicant after: Zhejiang Uniview Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Applicant before: Huasan Communication Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant