CN102238092B - Method for performing load sharing on encoder and encoder - Google Patents

Method for performing load sharing on encoder and encoder Download PDF

Info

Publication number
CN102238092B
CN102238092B CN2011102201181A CN201110220118A CN102238092B CN 102238092 B CN102238092 B CN 102238092B CN 2011102201181 A CN2011102201181 A CN 2011102201181A CN 201110220118 A CN201110220118 A CN 201110220118A CN 102238092 B CN102238092 B CN 102238092B
Authority
CN
China
Prior art keywords
mac address
message
vrrp
gateway
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
CN2011102201181A
Other languages
Chinese (zh)
Other versions
CN102238092A (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 CN2011102201181A priority Critical patent/CN102238092B/en
Publication of CN102238092A publication Critical patent/CN102238092A/en
Application granted granted Critical
Publication of CN102238092B publication Critical patent/CN102238092B/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 method for performing load sharing on an encoder and the encoder. Two network ports of the encoder (EC) are connected with a virtual router redundancy protocol (VRRP) router respectively, the two routers perform the load sharing in a backup group, Internet protocol (IP) addresses of the two routers are a gateway IP address of the EC, and each channel of the EC is provided with a media control access (MAC) address. The method comprises that: for any channel, the EC transmits an address resolution protocol (ARP) request taking the MAC address of the channel as a sourceMAC address, and a master VRRP router runs a load sharing algorithm after receiving the request, and selects the MAC address of one router as a gateway MAC address according to a result; the EC acquires the gateway MAC address of each channel from an ARP response; the EC acquires an output interface of each gateway MAC address according to a VRRP notification message; the EC establishes traffic forwarding table entries comprising a channel identifier, the gateway MAC address and an output interface identifier of each channel; and the EC forwards a media stream according to each table entry. By the method and the encoder, the load sharing on the encoder is realized.

Description

Carry out method and the encoder of load balancing at encoder
Technical field
The present invention relates to technical field of video monitoring, (EC carries out method and the EC of load balancing on Encoder) to be specifically related to encoder in video monitoring system.
Background technology
Understand for convenient, at first provide following concept:
Video management (VM, Video Management) server: be arranged in supervisory control system, can manage all devices in the control supervisory control system concentratedly, dispatch various video monitoring services, and management distributes the supervisory user authority.
EC: be positioned at the supervisory control system front end, analog video signal can be encoded according to specified format, appointment code check, can give other client program request with the video clean culture behind the coding or multicast.
Videoconference client (VC, Video Client): can carry out the live video monitoring by VC, also can also can formulate storage plan by the EC of VC to EC fixed time section playback history video.
Media server (MS, Media Server): can receive clean culture/multicast Media Stream that EC sends, Media Stream is transmitted and be distributed to decoding client (DC, Decoder) broadcast of decoding with clean culture/multicast mode.
Internet Protocol storage area network (IPSAN, Internet Protocol Storage Area Network): be used for storage from the Media Stream of front end, when the user need check historical video recording, from IPSAN, read the video recording data.
At present in supervisory control system in order to improve reliability, take two network interface networking plans, namely the terminal in the monitor network, server all adopt two network interfaces to connect.
Fig. 1 has provided existing IP and has monitored typical networking diagram, and as shown in Figure 1, data storage and replayed section are as follows:
Data storage procedure: write IPSAN behind the coding video data of the camera collection of EC.
Data readback process: VC or DC send the playback application to the VM server, read data by data management (DM, Data Management) server from IPSAN, then data are transmitted to VC or DC; Perhaps directly from IPSAN, read data by VC or DC.
Fig. 2 has provided an existing local area network building figure, as shown in Figure 2, usually, all exist on the All hosts in the same network segment one identical, with the default route of gateway for next jumping.The message that main frame mails to other network segment will mail to gateway by default route, be transmitted by gateway, thereby realize communicating by letter of main frame and external network.When gateway breaks down, in this network segment all with the gateway be default route main frame can't with external network communication.
Default route provides convenience for user's configuration operation, but default gateway equipment has been proposed very high stability requirement.The gateway of increasing export is the common methods that improves system reliability, how to carry out routing this moment and just become the problem that needs solution between a plurality of outlets.
Virtual Router Redundancy Protocol (VRRP, Virtual Router Redundancy Protocol) set of router that can bear gateway function joins in the backup group, form a virtual router, which platform router is election mechanism by VRRP determine bear the forwarding task, and the main frame in the local area network (LAN) only needs virtual router is configured to default gateway.
VRRP is a kind of protocol for error tolerance, when improving reliability, has simplified the configuration of main frame.The local area network (LAN) with multicast or broadcast-capable as: in the Ethernet, can when breaking down, certain router still provide highly reliable default link by VRRP, effectively avoid the problem that network interrupts after the single link occurs fault, and need not to revise configuration informations such as dynamic routing protocol, route discovery protocols.
Equipment is supported the VRRP of two kinds of patterns at present:
Standard agreement pattern: based on VRRPv2 and the VRRPv3 of RFC realization.Wherein, VRRPv2 is based on IPv4, and VRRPv3 is based on IPv6.VRRPv2 and VRRPv3 realize not difference, just the network environment difference of using in function
Load-sharing mode: the basis in the standard agreement pattern is expanded, and has realized load-balancing function.
In present supervisory control system, EC uses two network interfaces to connect network, and two network interfaces are respectively with active/standby mode work.The shortcoming of this mode is: last two network interfaces of EC are same medium access control (MAC, Media Access Control) addresses, can't carry out port trunking simultaneously, can't realize load balancing, cause the wasting of resources.
Summary of the invention
The invention provides the method and the EC that carry out load balancing at EC, to realize load balancing at EC.
Technical scheme of the present invention is achieved in that
A kind of method of carrying out load balancing at encoder EC, this EC is arranged in supervisory control system, EC comprises two network interfaces, each network interface connects a Virtual Router Redundancy Protocol VRRP router, this two VRRP router carries out load balancing in a backup group, the virtual ip address of this two VRRP router is the gateway ip address of EC, and each passage of EC has a virtual mac address, and this method comprises:
For arbitrary passage, it is the ARP request message of source MAC that EC sends with the virtual mac address of this passage by two network interfaces, with request gateway MAC Address;
EC receives the arp response message that main VRRP router returns, and sets up corresponding relation between gap marker and gateway MAC Address according to this message; Wherein, described gateway MAC Address is: the load balancing algorithm was preset in operation after main VRRP router received the ARP request message, the MAC Address of selecting a VRRP router according to arithmetic result is as the gateway MAC Address, the gateway MAC Address is carried in the arp response message returns to EC's;
EC receives the VRRP notice message that the VRRP router is sent from two network interfaces respectively, according to source MAC and the incoming interface of this message, sets up the corresponding relation between gateway MAC Address and outgoing interface sign;
EC sets up the flow forwarding-table item of each passage according to above-mentioned two corresponding relations, and list item comprises: gap marker, gateway MAC Address and outgoing interface sign;
EC is the target MAC (Media Access Control) address encapsulated message according to the gap marker that will send Media Stream with gateway MAC Address corresponding in the flow forwarding-table item, and this message corresponding outgoing interface from flow is transmitted is sent.
Described method further comprises:
EC monitors the VRRP notice message on two network interfaces, for arbitrary interface, if do not hear the VRRP notice message at this interface, then according to the MAC Address of the VRRP router of this interface correspondence, find the flow forwarding-table item of coupling, the sign of the outgoing interface in this list item is changed to other available network interface identifier.
Described method further comprises:
When EC listens to the VRRP notice message from a network interface again, in the corresponding relation between gateway MAC Address and outgoing interface sign, search the corresponding relation with the source MAC of this message coupling, outgoing interface in the corresponding relation that finds sign is changed to the incoming interface sign of this message, in the corresponding relation between gap marker and gateway MAC Address, search the gap marker with the source MAC of this message coupling, search the flow forwarding-table item with this gap marker coupling, gateway MAC Address in the list item is changed to the source MAC of this message, the sign of the outgoing interface in the list item is changed to the incoming interface sign of this message.
A kind of EC, this EC is arranged in supervisory control system, each network interface of EC connects a VRRP router, this two VRRP router carries out load balancing in a backup group, the virtual ip address of this two VRRP router is the gateway ip address of EC, each passage of EC has a virtual mac address, and this EC comprises:
The ARP request module: sending with the MAC Address of this passage by two network interfaces is the ARP request message of source MAC, with request gateway MAC Address; Receive the arp response message that main VRRP router returns, set up corresponding relation between gap marker and gateway MAC Address according to this message; Wherein, described gateway MAC Address is: the load balancing algorithm was preset in operation after main VRRP router received described ARP request message, the virtual mac address of selecting a VRRP router according to arithmetic result is as the gateway MAC Address, the gateway MAC Address is carried at returns to this module in the arp response message;
Module is monitored in the VRRP announcement: receive the VRRP notice message that the VRRP router is sent from two network interfaces respectively, according to source MAC and the incoming interface of this message, set up the corresponding relation between gateway MAC Address and outgoing interface sign;
Flow forwarding-table item maintenance module: set up the flow forwarding-table item of each passage according to above-mentioned two corresponding relations, list item comprises: gap marker, gateway MAC Address and outgoing interface sign;
Flow forwarding module: according to the source gap marker that will send Media Stream, be the target MAC (Media Access Control) address encapsulated message with gateway MAC Address corresponding in the flow forwarding-table item, and this message corresponding outgoing interface from flow is transmitted is sent.
Described VRRP announcement is monitored module and is further used for, monitor the VRRP notice message on two network interfaces, for arbitrary interface, if do not hear the VRRP notice message at this interface, then according to the MAC Address of the VRRP router of this interface correspondence, in flow forwarding-table item maintenance module, find the flow forwarding-table item of coupling, the sign of the outgoing interface in this list item is changed to other available network interface identifier.
Described VRRP announcement is monitored module and is further used for, when listening to the VRRP notice message from a network interface again, in the corresponding relation between the gateway MAC Address in this module and outgoing interface sign, search the corresponding relation with the source MAC of this message coupling, outgoing interface in the corresponding relation that finds sign is changed to the incoming interface sign of this message, in the corresponding relation between the gap marker in the ARP request module and gateway MAC Address, search the gap marker with the source MAC of this message coupling, in flow forwarding-table item maintenance module, search the flow forwarding-table item with this gap marker coupling, gateway MAC Address in the list item is changed to the source MAC of this message, the sign of the outgoing interface in the list item is changed to the incoming interface sign of this message.
Compared with prior art, the present invention has realized the load balancing on EC.
Description of drawings
Fig. 1 monitors typical networking diagram for existing IP;
Fig. 2 is existing local area network building figure;
The networking diagram of the supervisory control system that Fig. 3 provides for the embodiment of the invention;
Fig. 4 carries out the method flow diagram of load balancing for what the embodiment of the invention provided at EC;
Flow changing method flow chart during VRRP router failure that Fig. 5 provides for the embodiment of the invention;
The VRRP router failure restoration methods flow chart that Fig. 6 provides for the embodiment of the invention;
The composition schematic diagram of EC in the video monitoring system that Fig. 7 provides for the embodiment of the invention;
The composition schematic diagram of the VRRP router that Fig. 8 provides for the embodiment of the invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The networking diagram of the supervisory control system that Fig. 3 provides for the embodiment of the invention, as shown in Figure 3, disposed two network interfaces on the EC, these two network interface interfaces belong to same exchange chip, each network interface connects a VRRP router, another side joint monitor network of two VRRP routers.
Wherein, each network interface of EC connects each network interface that a VRRP router can be understood as EC and can distinguish directly and be connected with a VRRP router, also can be connected indirectly with the VRRP router by switch, the switch that each network interface can pass through separately respectively is connected with a VRRP router, also can be connected with two VRRP routers by common switch by two network interfaces.
Two network interfaces of EC share same IP address and MAC Address, namely share system ip address and the system's MAC Address of EC.Two VRRP routers are the VRRP backup group, share same virtual ip address and carry out load balancing.H.323-configured gateway IP address is the virtual ip address of two VRRP routers on EC.
Fig. 4 carries out the method flow diagram of load balancing for what the embodiment of the invention provided at EC, and as shown in Figure 4, its concrete steps are as follows:
Step 401: when initial, EC is self each passage, generates a virtual mac address, the corresponding relation between recording channel number and passage MAC Address.
The MAC Address of all passages can be different, and is also can part identical, but generally can be all not identical.In fact, can generate the virtual mac address of passage according to the load balancing strategy.
Table 1 has provided the channel number of EC and the corresponding relation list item example between the passage MAC Address:
Channel number The passage MAC Address
1 00-e0-fc-6f-00-01
2 00-e0-fc-6f-00-02
3 00-e0-fc-6f-00-03
4 00-e0-fc-6f-00-04
...... ......
Corresponding relation list item example between the channel number of table 1 EC and passage MAC Address
Step 402: mutual VRRP election message after the two VRRP router startups elects main VRRP router; Main VRRP router is according to the virtual mac address pond, for self be equipped with the VRRP router and distribute virtual mac address.
The virtual mac address difference of two VRRP routers.
Step 403: for arbitrary passage, when EC outwards sends the Media Stream of this passage for the first time, do not find the flow forwarding-table item of this passage, then send address resolution protocol (ARP from two network interfaces, Address Resolution Protocol) request message, the source MAC of this message is the virtual mac address of this passage, the gateway ip address that carries in this message is gone up the gateway ip address of configuration for this EC, be the virtual ip address of VRRP router, obtain the gateway MAC Address with request.
Step 404: main VRRP router receives the ARP request message, adopt default load balancing algorithm to calculate, in two VRRP routers, select one according to result of calculation, the virtual mac address of selected VRRP router is carried in the arp response message as the gateway MAC Address returns to EC.
Here, the load balancing algorithm can adopt: VRRP router number=passage MAC Address %2 wherein, is 0,1 with two VRRP router number consecutivelies; Also can main VRRP router according to the current flow of active and standby VRRP router, select the less VRRP router of flow.
Step 405:EC receives this arp response message, sets up corresponding relation between channel number, passage MAC Address, gateway ip address, gateway MAC Address according to this arp response message.
Channel number namely will send the source channel number of Media Stream, and what the passage MAC Address namely will send Media Stream comes the source channels MAC Address, and the gateway MAC Address is the gateway MAC Address in the arp response message.
Table 2 has provided the corresponding relation list item example of safeguarding through EC after this step:
Channel number The passage virtual mac address Gateway ip address The gateway MAC Address
1 00-e0-fc-6f-00-01 192.168.1.1 00-00-5E-00-01-a 1
2 00-e0-fc-6f-00-02 192.168.1.1 00-00-5E-00-01-f2
3 00-e0-fc-6f-00-03 192.168.1.1 00-00-5E-00-01-a1
4 00-e0-fc-6f-00-04 192.168.1.1 00-00-5E-00-01-f2
...... ...... ...... ......
Corresponding relation list item example between the channel number that table 2 EC safeguards, passage virtual mac address, gateway ip address, gateway MAC Address
Step 406:EC receives the VRRP notice message that two VRRP routers are regularly sent, and sets up corresponding relation between gateway MAC Address and outgoing interface number according to this message, and simultaneously, the state that this outgoing interface is set is " activating (active) ".
For a VRRP notice message, the source MAC of this message, the virtual mac address of namely sending the VRRP router of this message is exactly the gateway MAC Address, this message go into the outgoing interface number that the network interface number is this gateway MAC Address correspondence.
Under the normal condition, the VRRP router can regularly send the VRRP notice message to EC, if EC can receive the VRRP notice message from this interface before the VRRP of interface announcement waiting timer is overtime, think that then the VRRP router of this interface connection is normal, otherwise, think the VRRP router failure that this interface connects.
Table 3 has provided the corresponding relation list item example of safeguarding through EC after this step:
The gateway MAC Address Outgoing interface number State
00-00-5E-00-01-a1 Eth0 Activate
00-00-5E-00-01-f2 Eth1 Activate
Corresponding relation list item example between the gateway MAC Address that table 3 EC safeguards and outgoing interface number
Step 407:EC sets up the flow forwarding-table item of each passage according to the corresponding relation of setting up in the step 405,406, and contents in table comprises: channel number, gateway ip address, gateway MAC Address, outgoing interface number.
Table 4 has provided through after this step, the flow forwarding-table item example of each passage that EC safeguards:
Channel number Gateway ip address The gateway MAC Address Outgoing interface number
1 192.168.1.1 00-00-5E-00-01-a1 Eth0
2 192.168.1.1 00-00-5E-00-01-f2 Eth1
3 192.168.1.1 00-00-5E-00-01-a1 Eth0
4 192.168.1.1 00-00-5E-00-01-f2 Eth1
...... ...... ...... ......
The flow forwarding-table item example of each passage that table 4 EC safeguards
Step 408:EC is according to the source channel number that will send Media Stream, find the corresponding flow forwarding-table item, with the target MAC (Media Access Control) address of the gateway MAC Address in this list item as media stream message, the network interface of the outgoing interface correspondence of this message from this list item is sent.
The source MAC of media stream message is system's MAC Address of EC.
Step 409: for arbitrary passage, when EC outwards sends the subsequent media stream of this passage, find the corresponding flow forwarding-table item according to this channel number, with the target MAC (Media Access Control) address of the gateway MAC Address in this list item as media stream message, the network interface of the outgoing interface correspondence of this message from this list item is sent.
Flow changing method flow chart during VRRP router failure that Fig. 5 provides for the embodiment of the invention, as shown in Figure 5, its concrete steps are as follows:
Step 501:EC monitors the VRRP notice message from corresponding VRRP router respectively on two network interfaces.
Step 502: if EC is when the VRRP of interface announcement waiting timer is overtime, do not receive the VRRP notice message, then think the VRRP router failure that this interface connects, find and the gateway MAC Address of the MAC Address of this VRRP router and this interface number coupling and outgoing interface number between corresponding relation, the state of outgoing interface in this corresponding relation is changed to " fault (down) ".
When a VRRP router failure, another VRRP router becomes main VRRP router.
For example: if EC does not receive the VRRP notice message when the VRRP of Eth1 announcement waiting timer is overtime, then table 3 is changed to:
The gateway MAC Address Outgoing interface number State
00-00-5E-00-01-a1 Eth0 Activate
00-00-5E-00-01-f2 Eth1 Fault
Behind the VRRP router failure that table 5 Eth1 connects, the corresponding relation list item example between the gateway MAC Address that EC safeguards and outgoing interface number
Step 503:EC searches and this interface corresponding flow forwarding-table item, and the outgoing interface of each flow forwarding-table item of finding number is changed to another available network interface number.
For example: the VRRP router failure that Eth1 connects then changes to table 4:
Channel number Gateway ip address The gateway MAC Address Outgoing interface number
1 192.168.1.1 00-00-5E-00-01-a1 Eth0
2 192.168.1.1 00-00-5E-00-01-f2 Eth0
3 192.168.1.1 00-00-5E-00-01-a1 Eth0
4 192.168.1.1 00-00-5E-00-01-f2 Eth0
...... ...... ...... ......
Behind the VRRP router failure that table 6 Eth1 connects, the flow forwarding-table item example of each passage that EC safeguards
As shown in table 6, after this flow of all passages all can be transmitted from Eth0.
The VRRP router failure restoration methods flow chart that Fig. 6 provides for the embodiment of the invention, as shown in Figure 6, its concrete steps are as follows:
Step 601: for arbitrary network interface that detects fault, when EC receives the VRRP notice message of corresponding VRRP router from this interface again, think fault recovery, then in the corresponding relation between the gateway MAC Address of self maintained and outgoing interface number, search the MAC Address with this VRRP router, i.e. the corresponding relation of the source MAC of VRRP notice message coupling.
Step 602:EC number is updated to the incoming interface number of VRRP notice message with outgoing interface in the corresponding relation that finds, the recovering state with outgoing interface is " activating (active) " simultaneously.
For example: if EC receives the VRRP notice message from Eth1 again, then table 5 is changed to:
The gateway MAC Address Outgoing interface number State
00-00-5E-00-01-a1 Eth0 Activate
00-00-5E-00-01-f2 Eth1 Activate
After the VRRP router that table 7 Eth1 connects recovers, the corresponding relation list item example between the gateway MAC Address that EC safeguards and outgoing interface number
Because after the VRRP router is restarted, can redistribute virtual mac address, like this, when two VRRP router simultaneous faultss recover, the MAC Address of two VRRP routers may be exchanged, and needs in the updating form 7 this moment and the outgoing interface of the source MAC coupling of VRRP notice message number, under the circumstances, in this step, simultaneously in the updating form 7 with the outgoing interface of the source MAC coupling of VRRP notice message number and state.
After two VRRP routers recover simultaneously, can carry out main VRRP router election earlier, main VRRP router is that two VRRP routers distribute virtual mac address then.
In the corresponding relation of step 603:EC between the channel number of self maintained, passage MAC Address, gateway ip address, gateway MAC Address, search the corresponding relation with the source MAC of this VRRP notice message coupling, the channel number in the corresponding relation of determining to find.
Step 604:EC search with step 603 in the flow forwarding-table item of channel number coupling, the gateway MAC Address in the list item is changed to the source MAC of VRRP notice message, the outgoing interface in the list item number is changed to the incoming interface number of VRRP path message.
For example: after the VRRP router that Eth1 connects recovered, the flow forwarding-table item of each passage that EC safeguards changed to:
Channel number Gateway ip address The gateway MAC Address Outgoing interface number
1 192.168.1.1 00-00-5E-00-01-a1 Eth0
2 192.168.1.1 00-00-5E-00-01-f2 Eth1
3 192.168.1.1 00-00-5E-00-01-a1 Eth0
4 192.168.1.1 00-00-5E-00-01-f2 Eth1
...... ...... ...... ......
After the VRRP router that table 8 Eth1 connects recovers, the flow forwarding-table item example of each passage that EC safeguards
The composition schematic diagram of EC in the video monitoring system that Fig. 7 provides for the embodiment of the invention, two network interfaces of EC share IP address and MAC Address, each network interface connects a VRRP router, the IP address of this two VRRP router is identical, the MAC Address difference, this two VRRP router is backup group, the virtual ip address of this two VRRP router is the gateway ip address of EC, as shown in Figure 7, this EC comprises: passage MAC Address generation module 71, ARP request module 72, module 73 is monitored in the VRRP announcement, flow forwarding-table item maintenance module 74 and flow forwarding module 75, wherein:
Passage MAC Address generation module 71: when initial, for each passage generates a virtual mac address, the corresponding relation of recording channel sign and passage MAC Address.
ARP request module 72: when receiving the passage MAC Address that flow forwarding module 75 sends, sending with the MAC Address of this passage by two network interfaces is the ARP request message of source MAC, with request gateway MAC Address; Receive the arp response message that main VRRP router returns, set up corresponding relation between gap marker and gateway MAC Address according to this message; Wherein, described gateway MAC Address is: after main VRRP router receives described ARP request message, the default load balancing algorithm of operation, arithmetic result is mapped to a VRRP router, and the MAC Address of the VRRP router that is mapped to is carried at as the gateway MAC Address returns to this module in the arp response message.
Module 73 is monitored in the VRRP announcement: receive the VRRP notice message that the VRRP router is sent from two network interfaces respectively, source MAC and incoming interface according to this message, set up the corresponding relation between gateway MAC Address and outgoing interface sign, this corresponding relation is sent to flow forwarding-table item maintenance module 74.
The VRRP announcement is monitored module 73 and is further used for, monitor the VRRP notice message on two network interfaces, for arbitrary interface, if do not hear the VRRP notice message at this interface, then according to the MAC Address of the VRRP router of this interface correspondence, in flow forwarding-table item maintenance module 74, find the flow forwarding-table item of coupling, the sign of the outgoing interface in this list item is changed to another network interface sign.
The VRRP announcement is monitored module 73 and is further used for, when listening to the VRRP notice message from a network interface again, in the corresponding relation between the gateway MAC Address in this module 73 and outgoing interface sign, search the corresponding relation with the source MAC of this message coupling, outgoing interface in the corresponding relation that finds sign is changed to the incoming interface sign of this message, in the corresponding relation between the gap marker in ARP request module 72 and gateway MAC Address, search the gap marker with the source MAC of this message coupling, in flow forwarding-table item maintenance module 74, search the flow forwarding-table item with this gap marker coupling, gateway MAC Address in the list item is changed to the source MAC of this message, the sign of the outgoing interface in the list item is changed to the incoming interface sign of this message.
Flow forwarding-table item maintenance module 74: receive the corresponding relation between gateway MAC Address and outgoing interface sign, from ARP request module 72, obtain the corresponding relation between gap marker and gateway MAC Address, set up the flow forwarding-table item of this passage according to this two corresponding relation, list item comprises: gap marker, gateway MAC Address and outgoing interface sign.
Flow forwarding module 75: when the Media Stream that will send from a passage, if in flow forwarding-table item maintenance module 74, do not find this gap marker corresponding flow forwarding-table item, then obtain the MAC Address of this passage from passage MAC Address generation module 71, the MAC Address of this passage is sent to ARP request module 72; According to the source gap marker of the Media Stream that will send, from flow forwarding-table item maintenance module 74, obtain the outgoing interface of this passage correspondence, Media Stream is sent from this outgoing interface.
The composition schematic diagram of the VRRP router that Fig. 8 provides for the embodiment of the invention, this VRRP router and another VRRP router are that a VRRP backup group carries out load balancing, the IP address of this two VRRP router is identical, the virtual ip address of this two VRRP router is the gateway ip address of EC, as shown in Figure 8, this VRRP router comprises: initialization module 81 and arp response module 82, wherein:
Initialization module 81: after the startup, with the mutual VRRP election of another VRRP router message, to elect main VRRP router, and when self election when being main VRRP router, for self and another VRRP router distribute MAC Address, and send from as main VRRP router indication to arp response module 82.
Arp response module 82: when from as main VRRP router the time, if receive the ARP request message that EC sends, then the load balancing algorithm is preset in operation, arithmetic result is mapped on the VRRP router, and the MAC Address of the VRRP router that is mapped to is carried in the arp response message as the gateway MAC Address returns to EC.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (6)

1. method of carrying out load balancing at encoder EC, this EC is arranged in supervisory control system, it is characterized in that, EC comprises two network interfaces, and each network interface connects a Virtual Router Redundancy Protocol VRRP router, and this two VRRP router is the VRRP backup group, share same virtual ip address and carry out load balancing, the virtual ip address of this two VRRP router is the gateway ip address of EC, and EC is that each passage of self generates a virtual mac address, and this method comprises:
For arbitrary passage, it is the ARP request message of source MAC that EC sends with the virtual mac address of this passage by two network interfaces, and the gateway ip address that carries in this message is gone up the gateway ip address of configuration for this EC, with request gateway MAC Address;
EC receives the arp response message that main VRRP router returns, and sets up corresponding relation between gap marker and gateway MAC Address according to this message; Wherein, described gateway MAC Address is: the load balancing algorithm was preset in operation after main VRRP router received the ARP request message, the MAC Address of selecting a VRRP router according to arithmetic result is as the gateway MAC Address, the gateway MAC Address is carried in the arp response message returns to EC's;
EC receives the VRRP notice message that the VRRP router is sent from two network interfaces respectively, according to source MAC and the incoming interface of this message, sets up the corresponding relation between gateway MAC Address and outgoing interface sign;
EC sets up the flow forwarding-table item of each passage according to above-mentioned two corresponding relations, and list item comprises: gap marker, gateway MAC Address and outgoing interface sign;
EC is according to the source gap marker that will send Media Stream, find the corresponding flow forwarding-table item, gateway MAC Address with correspondence in this flow forwarding-table item is the target MAC (Media Access Control) address encapsulated message, and the outgoing interface sign corresponding outgoing interface of this message from the flow forwarding-table item sent.
2. method according to claim 1 is characterized in that, described method further comprises:
EC monitors the VRRP notice message on two network interfaces, for arbitrary interface, if do not hear the VRRP notice message at this interface, then according to the MAC Address of the VRRP router of this interface correspondence, find the flow forwarding-table item of coupling, the sign of the outgoing interface in this list item is changed to other available network interface identifier.
3. method according to claim 2 is characterized in that, described method further comprises:
When EC listens to the VRRP notice message from a network interface again, in the corresponding relation between gateway MAC Address and outgoing interface sign, search the corresponding relation with the source MAC of this message coupling, outgoing interface in the corresponding relation that finds sign is changed to the incoming interface sign of this message, in the corresponding relation between gap marker and gateway MAC Address, search the gap marker with the source MAC of this message coupling, search the flow forwarding-table item with this gap marker coupling, gateway MAC Address in the list item is changed to the source MAC of this message, the sign of the outgoing interface in the list item is changed to the incoming interface sign of this message.
4. encoder EC, this EC is arranged in supervisory control system, it is characterized in that, each network interface of EC connects a Virtual Router Redundancy Protocol VRRP router, this two VRRP router is backup group, shares same virtual ip address and carries out load balancing, and the virtual ip address of this two VRRP router is the gateway ip address of EC, each passage of EC has a virtual mac address, and this EC comprises:
The ARP request module: sending with the MAC Address of this passage by two network interfaces is the ARP request message of source MAC, and the gateway ip address that carries in this message is gone up the gateway ip address of configuration for this EC, with request gateway MAC Address; Receive the arp response message that main VRRP router returns, set up corresponding relation between gap marker and gateway MAC Address according to this message; Wherein, described gateway MAC Address is: the load balancing algorithm was preset in operation after main VRRP router received described ARP request message, the virtual mac address of selecting a VRRP router according to arithmetic result is as the gateway MAC Address, the gateway MAC Address is carried at returns to this module in the arp response message;
Module is monitored in the VRRP announcement: receive the VRRP notice message that the VRRP router is sent from two network interfaces respectively, according to source MAC and the incoming interface of this message, set up the corresponding relation between gateway MAC Address and outgoing interface sign;
Flow forwarding-table item maintenance module: set up the flow forwarding-table item of each passage according to above-mentioned two corresponding relations, list item comprises: gap marker, gateway MAC Address and outgoing interface sign;
Flow forwarding module: according to the source gap marker that will send Media Stream, find the corresponding flow forwarding-table item, gateway MAC Address with correspondence in this flow forwarding-table item is the target MAC (Media Access Control) address encapsulated message, and the outgoing interface sign corresponding outgoing interface of this message from the flow forwarding-table item sent.
5. EC according to claim 4, it is characterized in that, described VRRP announcement is monitored module and is further used for, monitor the VRRP notice message on two network interfaces, for arbitrary interface, if do not hear the VRRP notice message at this interface, then according to the MAC Address of the VRRP router of this interface correspondence, in flow forwarding-table item maintenance module, find the flow forwarding-table item of coupling, the sign of the outgoing interface in this list item is changed to other available network interface identifier.
6. EC according to claim 5, it is characterized in that, described VRRP announcement is monitored module and is further used for, when listening to the VRRP notice message from a network interface again, in the corresponding relation between the gateway MAC Address in this module and outgoing interface sign, search the corresponding relation with the source MAC of this message coupling, outgoing interface in the corresponding relation that finds sign is changed to the incoming interface sign of this message, in the corresponding relation between the gap marker in the ARP request module and gateway MAC Address, search the gap marker with the source MAC of this message coupling, in flow forwarding-table item maintenance module, search the flow forwarding-table item with this gap marker coupling, gateway MAC Address in the list item is changed to the source MAC of this message, the sign of the outgoing interface in the list item is changed to the incoming interface sign of this message.
CN2011102201181A 2011-08-02 2011-08-02 Method for performing load sharing on encoder and encoder Active CN102238092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102201181A CN102238092B (en) 2011-08-02 2011-08-02 Method for performing load sharing on encoder and encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102201181A CN102238092B (en) 2011-08-02 2011-08-02 Method for performing load sharing on encoder and encoder

Publications (2)

Publication Number Publication Date
CN102238092A CN102238092A (en) 2011-11-09
CN102238092B true CN102238092B (en) 2013-09-18

Family

ID=44888327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102201181A Active CN102238092B (en) 2011-08-02 2011-08-02 Method for performing load sharing on encoder and encoder

Country Status (1)

Country Link
CN (1) CN102238092B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105137755B (en) * 2015-08-27 2017-12-29 成都飞机工业(集团)有限责任公司 A kind of adaptive distribution method of unmanned plane task load
CN108259299B (en) * 2017-06-23 2020-04-03 新华三技术有限公司 Forwarding table item generating method and device and machine-readable storage medium
CN111091851B (en) * 2019-12-10 2021-03-02 四川湖山电器股份有限公司 IPSAN disk management method of recording and broadcasting system
CN116193385A (en) * 2021-11-26 2023-05-30 中兴通讯股份有限公司 Signaling transmission method, VRRP networking system, first network entity equipment and storage medium
CN114827677B (en) * 2022-03-08 2024-02-09 浙江微能科技有限公司 Artificial intelligence analysis load balancing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100359875C (en) * 2004-07-31 2008-01-02 华为技术有限公司 Method for realizing backup and load shared equally based on proxy of address resolution protocol
US7415535B1 (en) * 2002-04-22 2008-08-19 Cisco Technology, Inc. Virtual MAC address system and method
CN101815007A (en) * 2010-03-17 2010-08-25 杭州华三通信技术有限公司 Fast switching method based on VRRP load balance and equipment
CN101316236B (en) * 2008-07-23 2010-09-22 杭州华三通信技术有限公司 Vrrp backup group load sharing method and router
CN102231712A (en) * 2011-07-22 2011-11-02 杭州华三通信技术有限公司 Method for load sharing on encoder and encoder

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8699327B2 (en) * 2007-01-31 2014-04-15 Alcatel Lucent Multipath virtual router redundancy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7415535B1 (en) * 2002-04-22 2008-08-19 Cisco Technology, Inc. Virtual MAC address system and method
CN100359875C (en) * 2004-07-31 2008-01-02 华为技术有限公司 Method for realizing backup and load shared equally based on proxy of address resolution protocol
CN101316236B (en) * 2008-07-23 2010-09-22 杭州华三通信技术有限公司 Vrrp backup group load sharing method and router
CN101815007A (en) * 2010-03-17 2010-08-25 杭州华三通信技术有限公司 Fast switching method based on VRRP load balance and equipment
CN102231712A (en) * 2011-07-22 2011-11-02 杭州华三通信技术有限公司 Method for load sharing on encoder and encoder

Also Published As

Publication number Publication date
CN102238092A (en) 2011-11-09

Similar Documents

Publication Publication Date Title
CN101595696B (en) Multipath virtual router redundancy
CN101330424B (en) Method, system and apparatus for processing service fault of virtual special network
CN100512292C (en) Apparatus and method of real-time recovering service
CN102025646B (en) Link switching method and device thereof
CN101160909B (en) Method and system for implementing virtual router redundancy protocol on a resilient packet ring
US20060291378A1 (en) Communication path redundancy protection systems and methods
CN102098201B (en) Method for realizing L2TP user access backup and network system
EP3958509A1 (en) Method, apparatus and system for communication between controllers in tsn
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
CN102904818A (en) Method and device for updating ARP (Address Resolution Protocol) information table
EP2215489A1 (en) Scalable connectivity fault management in a bridged/virtual private lan service environment
WO2007086157A1 (en) Network system
WO2010115282A1 (en) In-band signaling for point-multipoint packet protection switching
CN104255002A (en) Redundant network connections
CN102238092B (en) Method for performing load sharing on encoder and encoder
CN102742221B (en) A kind of method that multicast realizes and the network equipment
JP2011501494A (en) Multipoint and root multipoint protection switching
CN102045332A (en) Method for processing control message in intelligent resilient framework and line card boards
CN101562576B (en) Route distribution method and equipment thereof
CN101296105B (en) Multicast fast switching method and system, three-layer network appliance
CN104601380A (en) Software-defined network controller and host computer information recovery method thereof
CN102231712B (en) Method for load sharing on encoder and encoder
CN101262412B (en) A method and its access device for multicast recovery with minimal delay
EP1944918B1 (en) A method and system for realizing the consistency of the virtual circuit status
CN101321077B (en) Reliable multicast method, provider edge upper layer device and 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: 20120222

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

Effective date of registration: 20120222

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