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.
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:
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;
(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;
(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:
It is as follows to upgrade live list entry:
The updated stored list entry is as follows:
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.