A kind of master and backup discs multicast service synchronous method
Technical field
The present invention relates to the communications fields, and in particular to a kind of master and backup discs multicast service synchronous method.
Background technique
Continuous improvement with user to network bandwidth requirement, fiber to the home are done step-by-step.PON
Important equipment of (powerlessopticalnetwork, the passive optical network) equipment as soft exchange, is divided into OLT
(opticallineterminal, optical line terminal) local side apparatus and ONU(opticalnetworkunit, optical network unit)
Ustomer premises access equipment.Thousands of ONU equipment can be connect below OLT, so the stability and reliability requirement to OLT are very high.
The OLT device of mainstream is made of master and line card at present.It is general standby using increasing by one piece in order to guarantee the reliability of OLT device
With the mode of disk, when equipment operates normally, master works, and master abnormal equipment when can not work occurs by service switching to standby
With disk to guarantee that equipment works normally, to avoid causing damages.
Multicast IGMP(InternetGroupManagementProtocol) agreement is used exclusively for transmission group in a network
The agreement of business is broadcast, IGMP agreement is run between host and the multicast router being connected directly with host, and host is assisted by this
View tells local router to wish the information for being added and receiving some particular multicast group.
Master and standby disk all run IGMP agreement, when the user below OLT needs to be added some multicast group, can send group
Report message is broadcast to master.Master according to the multicast report message received, parse multicast group information and this message from which
Come on port.Master locally generates a multicast forwarding list item in this way, and contents in table includes: multicast group address, multicast group institute
The virtual LAN of category, the port that the group is added.After local multicast forwarding-table item generates successfully, which is written
It is driven to forwarding chip.The multicast report message equipment connected to the outlet of the OLT first line of a couplet is sent simultaneously, notifies that equipment above should
OLT wishes that particular multicast group is added.OLT device in this way is when receiving multi-cast business data, according to multicast forwarding list item by multicast
Business datum is forwarded to corresponding port.
When OLT does not receive the multicast report message of following user for a long time, multicast protocol will be considered that following user
It has left.Or OLT receives the multicast that following user sends and leaves message, multicast protocol also will be considered that following user will be from
It opens.When multicast protocol thinks that multicast group has been left in certain port, corresponding local multicast forwarding-table item and hardware are just deleted
Multicast forwarding list item.
According to the content of multicast forwarding list item, active and standby multicast group information synchronizing content includes:
The multicast business important as OLT the next item up (such as video flowing) does not allow business to have interruption requirement of real-time height.
IGMP(InternetGroupManagementProtocol Internet protocol) it is used exclusively for transport multicast business in a network
Agreement, IGMP agreement runs between host and the multicast router being connected directly with host, and host is told by this agreement
Local router wishes the information for being added and receiving some particular multicast group.The forwarding of group business stream is root in OLT device
According to multicast forwarding list item in control, and multicast forwarding list item is by multicast IGMP agreement according to the multicast protocol message received
Come what is generated.
The technical solution realized at present has:
A. master is synchronous with configuration holding on standby disk, when master breaks down, service switching to standby disk.But multicast turns
Forwarding list item is asynchronous to standby disk, needs to re-establish multicast forwarding list item according to multicast protocol message for disk;But the technical side
Configuration information is only synchronized between the master and backup discs of case, multicast forwarding list item only just re-establishes after active-standby switch.It can lead in this way
It causes that multicast service long disruption occurs in active-standby switch.
B. it realizes and receives on master and backup discs hardware and publish, i.e., master and backup discs can receive identical message, but only master can
To be sent out message.After the completion of standby disk startup, configuration is synchronized on standby disk by master, and at the same time sending general look into downwards
Message is ask, user terminal sends up a group report message after receiving general polling message.Master and backup discs can all receive user terminal in this way
Multicast protocol report message, to establish identical multicast forwarding list item.Configuration information is synchronized between program master and backup discs.Standby
After disk startup, master sends multicast general polling message, and standby disk can turn according to the synchronous multicast that generates of multicast report message is received
Forwarding list item.But active transmission general polling message can generate a large amount of multicast report message, influence uplink bandwidth of network, and
Multicast forwarding list item needs are generated by agreement to wait for a period of time.If active-standby switch, which occurs, for this period will lead to multicast industry
Business is interrupted.
(application number: 200610141012.1) disclosing a kind of master/standby control method to Chinese patent, wherein including following step
Rapid: (a) data and state of host and standby host synchronize;(b) network management initiates masterslave switchover order to host, and host is to standby host
Initiate masterslave switchover prompt;(c) after standby host receives masterslave switchover prompt, standby host, which checks whether, can execute masterslave switchover, i.e., standby
Whether machine correctly obtains data and state, if so, standby host sends the response message for agreeing to masterslave switchover to host, standby host is switched
For host, otherwise, standby host sends the response message of refusal masterslave switchover to host, and masterslave switchover is cancelled.
The invention is that the order of masterslave switchover is assigned by network management so that host and standby host switch over, so that standby host is switched
For host, it is ensured that keep data and state consistency between active and standby, system can work normally after masterslave switchover, but the invention
Standby machine between only synchronous configuration information, there is no synchronization multicast status protocol information, when standby machine switches over, standby disk
It needs to send query message and then generates a large amount of multicast report message, influence uplink bandwidth of network, simultaneously because standby disk is not
Have and generate multicast forwarding list item, casting forwarding-table item needs are generated by agreement and are waited for a period of time, if during this period of time
Carry out the interruption that the switching between standby machine is easy to cause multicast service.The program is to need to initiate manually there are one defect
It changes, rather than equipment according to circumstances auto switching, standby host cannot be switched in time when host breaks down in this way and leads to industry
Business is interrupted.
The shortcomings that for prior art scheme, those skilled in the art mainly solve the real-time of master and backup discs multicast forwarding list item
It is synchronous, multicast forwarding list item when guaranteeing standby disk startup and consistent with master, to guarantee the multicast when master and backup discs switch over
Business does not generate interruption, and there is no generating a large amount of multicast report messages, and then switches the deadline and longer ask
Topic.
Summary of the invention
Deficiency provides a kind of master and backup discs multicast service synchronous method to the present invention according to prior art, passes through an optical link
Terminal device is synchronous to realize master and backup discs multicast service, which is made of master, standby disk and line card, master
Configuration information and multicast group status information can real-time synchronization to standby disk, standby packing generates this according to the multicast group status information received
It ground forwarding-table item and drives forwarding-table item and completes the synchronizing information of multicast service between master and backup discs, when abnormal switching occurs in master
When to for disk, since standby disk production has local multicast forwarding list item, the interruption of business will not be generated in switching, simultaneously because
Real-time synchronization multicast forwarding list item between master and backup discs, so that the multicast forwarding list item of standby disk and the multicast forwarding list item of master and backup discs are protected
Hold the problem that will not unanimously generate a large amount of multicast report text.
In order to realize above technical scheme, the technical solution adopted by the present invention are as follows:
A kind of master and backup discs multicast service synchronous method is applied in optical line terminal equipment, the optical line terminal equipment
Including master, standby disk and line card, which is characterized in that the master and the standby disk are for realizing real time synchronization, the letter
Synchronous breath includes that configuration information is synchronous and multicast state protocol information is synchronous, to guarantee multicast when the master and standby disk switch
Business does not generate interruption, comprising the following steps:
Step S1, start the standby disk, and the information that standby disk startup is completed is sent to master;
Step S2, after information of master after the completion of receiving standby disk startup, the configuration information of master is sent to standby disk
The configuration information of the synchronization for carrying out configuration information, the configuration information and master that make standby disk is consistent;
Step S3, after the completion of synchronous configuration information, the information that standby disk synchronously completes configuration information feeds back to master;
Step S4, after master receives the configuration information for disk, current multicast group status information is extracted, and is encapsulated and beats
It wraps and is sent to standby disk;
Step S5, its information is parsed after receiving the information of the multicast group status information from master for disk, and
Local multicast forwarding-table item and driving forwarding-table item are generated in standby disk;
Step S6, standby disk notifies master after being parsed, and it is synchronous with standby disk multicast service to complete master.
Above-mentioned a kind of master and backup discs multicast service synchronous method, wherein the multicast state information includes:
1) multicast group information, the multicast group information include multicast group IP address, affiliated VLAN
The Host Status of (VirtualLocalAreaNetwork, virtual LAN) and multicast;
2) port information, the port information include port be added group address, port index, port status, host most
There are timer, last membership query timer and last membership query numbers by member flag, port members afterwards.
Above-mentioned master and backup discs multicast service synchronous method, wherein the master and standby disk all run internet group management association
View.
According to above-mentioned master and backup discs multicast service synchronous method, wherein the standby packing is assisted according to the internet group management
View generates the multicast forwarding list item.
According to above-mentioned master and backup discs multicast service synchronous method, wherein master will using master-slave communication mechanism in step S4
The multicast group status information encapsulation is packaged and is synchronized to the standby disk.
Since present invention employs above technical schemes, by the way that the configuration information of master is synchronous with multicast group status information
To standby disk, standby packing generates local forwarding-table item and driving forwarding-table item according to the multicast group status information received and completes active and standby
The synchronizing information of multicast service between disk, when abnormal switch to for disk occurs in master, since standby disk generation has local forwarding table
, of short duration signal interruption will not be generated.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, the present invention and its feature, outer
Shape and advantage will become more apparent upon.Identical label indicates identical part in all the attached drawings.Not deliberately proportionally
Draw attached drawing, it is preferred that emphasis is show the gist of the present invention.
Fig. 1 is a kind of flow chart of master and backup discs multicast service synchronous method of the present invention.
Specific embodiment
A specific embodiment of the invention is further described with reference to the accompanying drawing:
The present invention provides a kind of master and backup discs multicast service synchronous method, are applied in optical line terminal equipment, the light
Road terminal device includes master, standby disk and line card, master with for disk can real-time perfoming information it is synchronous, to guarantee the master
Multicast service does not generate interruption when switching with standby disk, and Fig. 1 is a kind of flow chart of master and backup discs multicast service synchronous method of the present invention,
The following steps are included:
Step S1, start standby disk, and the information that standby disk startup is completed is sent to master;
Step S2, after master receives the information that standby disk startup is completed, the configuration information of master is sent to standby disk, standby disk
Synchronized after receiving the configuration information of master, make the configuration information of standby disk and master completion synchronize be consistent;
Step S3, after standby disk configuration information synchronously completes, the relevant configuration information of standby disk is sent to master,
Step S4, after master receives the configuration information for disk, the status information of current multicast is extracted, master-slave communication is utilized
Multicast group status information is encapsulated and is packaged by mechanism, and is sent to standby disk, wherein the status information of multicast group includes:
1) multicast group information: empty including multicast group IP address, affiliated VLAN(VirtualLocal AreaNetwork
Quasi- local area network), the Host Status of multicast and relevant information;
2) port information: group address, port index, port status, the last member flag of host, end including port addition
There are timer, last membership query timer, last membership query numbers by mouth member.
Step S5, after standby disk receives the status information of the packing multicast group of master transmission, to multicast group status information into
Row parsing, simultaneously because master and backup discs all run multicast IGMP agreement, the multicast IGMP agreement run in standby disk is according to group above
Group status information is broadcast after standby disk generates multicast forwarding list item and driving forwarding-table item and generates multicast state information list, by group
It broadcasts state information list and is transmitted to master.
Step S6, standby disk notifies master after being parsed, and it is synchronous with standby disk multicast service to complete master;
When master switches to standby disk due to abnormal needs, due to the configuration information and multicast group status information of master and standby
Disk realizes real-time synchronization, so that the relevant information of standby disk and the relevant information of master are consistent, are abnormal and cut in master
When shifting to standby disk, standby disk will not send query message to influence upstream bandwidth, and the configuration of standby disk can be used directly after switching
Information and multicast group status information, and then the interruption of signal will not be generated.
In conclusion since present invention employs above technical schemes, when there is abnormal switch to for disk in master, due to
Real-time synchronization configuration information and multicast protocol information between master and backup discs, when switching to standby disk, due to multicast after standby disk startup
Forwarding-table item is consistent with master, to guarantee that multicast service does not interrupt, while will not be sent query message and be generated largely
Multicast report message simultaneously because standby disk generation has multicast forwarding list item, be omitted and passing to influence uplink bandwidth of network
It the time for needing to generate multicast forwarding list item in system technical solution by the agreement of standby disk operation, further ensures in switching
The continuity of multicast service.
Presently preferred embodiments of the present invention is described above.It is to be appreciated that the invention is not limited to above-mentioned
Particular implementation, devices and structures not described in detail herein should be understood as gives reality with the common mode in this field
It applies;Anyone skilled in the art, without departing from the scope of the technical proposal of the invention, all using the disclosure above
Methods and technical content many possible changes and modifications are made to technical solution of the present invention, or be revised as equivalent variations etc.
Embodiment is imitated, this is not affected the essence of the present invention.Therefore, anything that does not depart from the technical scheme of the invention, foundation
Technical spirit of the invention any simple modifications, equivalents, and modifications made to the above embodiment, still fall within the present invention
In the range of technical solution protection.