CN103139084B - In distributed communication equipment, main control card obtains flux of multicast method and apparatus - Google Patents

In distributed communication equipment, main control card obtains flux of multicast method and apparatus Download PDF

Info

Publication number
CN103139084B
CN103139084B CN201110394902.4A CN201110394902A CN103139084B CN 103139084 B CN103139084 B CN 103139084B CN 201110394902 A CN201110394902 A CN 201110394902A CN 103139084 B CN103139084 B CN 103139084B
Authority
CN
China
Prior art keywords
multicast
cryptographic hash
forward table
card
main control
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
CN201110394902.4A
Other languages
Chinese (zh)
Other versions
CN103139084A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201110394902.4A priority Critical patent/CN103139084B/en
Publication of CN103139084A publication Critical patent/CN103139084A/en
Application granted granted Critical
Publication of CN103139084B publication Critical patent/CN103139084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides main control card in distributed communication equipment and obtain flux of multicast method and apparatus.The method comprises: A, when each line card receives multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message; B, each line card periodically travels through at least one multicast forward table stored, and the traffic statistics of the multicast forward table traversed is sent to main control card.

Description

In distributed communication equipment, main control card obtains flux of multicast method and apparatus
Technical field
The present invention relates to data communication field, particularly in distributed communication equipment, main control card obtains flux of multicast method and apparatus.
Background technology
Along with carrying out in a large number of the business such as HD video program request, multipart video-meeting, the communication equipment of centralized architecture can not satisfy the demands, and more high performance distributed communication equipment obtains and greatly develops.Wherein, this distributed communication equipment can realize perfect multicast routing protocol, such as independent multicast sparse mode (PIM-SM), multicasting VPN etc.
Wherein, shortest path tree (SPT:ShortestPathTree) handoff functionality of PIM-SM agreement and data (DATA) multicast distribution tree (MDT:MulticastDistributionTree) handoff functionality of multicasting VPN all need the flux of multicast of input interface to drive, and are specially: when the flux of multicast entered from input interface meets switching and DATAMDT switching that corresponding threshold value just can carry out SPT.Below SPT switching and DATAMDT are switched and are described:
See Fig. 1, Fig. 1 be SPT switch schematic diagram.As shown in Figure 1, when multicast PIM-SM agreement is run, source node S sends multicast message to destination node D along the path shown in the dotted arrow in Fig. 1, and when the flux of multicast that node C receives arrives setting threshold values 1, node C initiates SPT and switches, multicast message by source node S transmission is switched to the path in Fig. 1 shown in solid arrow, and after completing switching, node C initiates the operation of cutting path shown in dotted arrow in Fig. 1, finally forwards along the path in Fig. 1 shown in solid arrow to make multicast message.
See Fig. 2, Fig. 2 be DATAMDT switch schematic diagram.As shown in Figure 2, when multicasting VPN runs, the multicast message of VPN website 1 forwards along the path in Fig. 2 shown in dotted arrow, and can find out, although VPN website 3 does not need these multicast messages, these multicast messages have still been forwarded on PE3.When the flux of multicast entering PE1 reaches setting threshold values 2, multicast message path shown in dotted arrow from Fig. 2 is switched to the path in Fig. 2 shown in solid arrow by PE1, so, can find out, by this switching, can realize only having needs the PE of multicast service message just can join in DATAMDT, and VPN website 3 is not owing to needing these multicast service messages, and therefore PE3 can not add DATAMDT.
So far, the description that SPT switches, DATAMDT switches is completed.But, it should be noted that, this SPT switches, DATAMDT switches by main control card key-course control realization, also namely to realize above-mentioned said SPT to switch, DATAMDT switches, main control card key-course just needs the flux of multicast information knowing input interface, in switching than SPT as shown in Figure 1, main control card key-course just needs the flux of multicast information knowing node C, and in the DATAMDT switching shown in Fig. 2, main control card key-course just needs the flux of multicast information knowing PE1, determine whether that performing SPT switches according to the flux of multicast information known afterwards, DATAMDT switches, in such as Fig. 1, whether the flux of multicast information of decision node C reaches setting threshold 1, if, Controlling vertex C initiates SPT and switches, and in Fig. 2, judge whether the flux of multicast information of PE1 reaches setting threshold 2, if, control PE1 initiates DATAMDT and switches.
And in the router of distributed apparatus such as distributed architecture, multicast message is only processed by line card data retransmission layer, that is, flux of multicast information only can be recorded in line card data retransmission layer, and main control card key-course can not record flux of multicast information.When main control card key-course needs to know flux of multicast information in order to determine whether to perform SPT switching, DATAMDT switches etc., just initiatively by the passage between main control card and line card to line card data retransmission layer request flux of multicast information, after line card data retransmission layer receives request, the flow information of correspondence is sent out by the passage between main control card and line card again and returns to main control card key-course.So coming and going to cause the passage between main control card and line card seriously to be consumed.
Summary of the invention
The invention provides main control card in distributed communication equipment and obtain flux of multicast method and apparatus, reduce main control card owing to obtaining flux of multicast information taking passage between main control card and line card.
Technical scheme provided by the invention comprises:
In a kind of distributed communication equipment, main control card obtains flux of multicast method, and described distributed communication equipment at least comprises: line card, main control card and switching card, and the method comprises:
A, when each line card receives multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message;
B, each line card periodically travels through at least one multicast forward table stored, and the traffic statistics of the multicast forward table traversed is sent to main control card.
A kind of line card, described line card is applied in distributed communication equipment, comprising:
Multicast message forwarding engine module, for when receiving multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table that described line card has stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message;
Flux of multicast statistical information sending module, for periodically traveling through at least one multicast forward table stored, is sent to main control card by the traffic statistics of the multicast forward table traversed.
A kind of main control card, described main control card is applied in the distributed communication equipment comprising line card described above, comprising:
Receiver module, to travel through the traffic statistics of the multicast forward table that at least one multicast forward table of having stored traverses by the cycle for receiving line card; Wherein, when the traffic statistics of multicast forward table obtains in the following manner: when receiving multicast message when line card, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message.
As can be seen from the above technical solutions, in the present invention, line card data retransmission layer Active report flux of multicast information is to main control card key-course, but not the main control card of prior art is initiatively to line card data retransmission layer request flux of multicast information, this can reduce main control card on the one hand owing to obtaining flux of multicast information taking passage between main control card and line card, on the other hand, can ensure that main control card obtains accurate flux of multicast information.
Accompanying drawing explanation
Fig. 1 is that SPT switches schematic diagram;
Fig. 2 is that DATAMDT switches schematic diagram;
The distributed communication equipment structure chart that Fig. 3 provides for the embodiment of the present invention;
The flow chart that Fig. 4 provides for the embodiment of the present invention;
Data retransmission layer and key-course structure chart in the distributed communication equipment that Fig. 5 provides for the embodiment of the present invention;
The multicast forward table organization chart that Fig. 6 provides for the embodiment of the present invention;
The step 402 realization flow figure that Fig. 7 provides for the embodiment of the present invention;
The step 702 that Fig. 8 provides for the embodiment of the present invention or step 704 realization flow figure;
The cable fastener device structure chart that Fig. 9 provides for the embodiment of the present invention;
The main control card structure chart that Figure 10 provides for the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, describe the present invention below in conjunction with the drawings and specific embodiments.
In distributed communication equipment provided by the invention, main control card obtains flux of multicast method, adopt line card data retransmission layer Active report flux of multicast information to main control card key-course, but not the main control card of prior art is initiatively to line card data retransmission layer request flux of multicast information, this can reduce main control card on the one hand owing to obtaining flux of multicast information taking passage between main control card and line card, on the other hand, can ensure that main control card obtains accurate flux of multicast information.
First the distributed communication equipment that the embodiment of the present invention provides is described below:
See the distributed communication equipment structure chart that Fig. 3, Fig. 3 provide for the embodiment of the present invention.As shown in Figure 3, this distributed communication equipment mainly comprises: line card, main control card and switching card.Preferably, in the present invention, the number of line card can be multiple, and main control card number can be 2, and one of them main control card normally works, and another main control card is as backup, be in stand-by state, and the number of switching card also can be 2, one of them switching card normally works, and another switching card is as backup, be in stand-by state.
Based on the distributed communication equipment structure shown in Fig. 3, method provided by the invention mainly comprises the flow process shown in Fig. 4:
See the flow chart that Fig. 4, Fig. 4 provide for the embodiment of the present invention.As shown in Figure 4, this flow process can comprise the following steps:
Step 401, when each line card receives multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message.
Wherein, each line card stores the multicast forward table that in described distributed communication equipment, total interface is corresponding.In this step 401, when each line card receives multicast message, as keyword, the multicast source IP address in multicast message, multicast group IP address and VPN routing forwarding (VRF) information are determined that from the multicast forward table stored the multicast forward table comprising this keyword is the multicast forward table for forwarding described multicast message.
In distributed communication equipment, line card is according to multicast forward table forwarding multicasting message, here there are two kinds and forward result, one is that this multicast message forwards from other interfaces same line card, another kind enters other line cards again from switching card after this multicast message is sent to switching card, and the message after entering other line cards is called across card incoming message by the present invention.As one embodiment of the present of invention, in the present invention, if step 401 determines that described multicast message is across card incoming message, then ignore this multicast message.
Step 402, each line card periodically travels through at least one multicast forward table stored, and the traffic statistics of the multicast forward table traversed is sent to main control card.
Line card in this step 402 is specially line card data retransmission layer, and the main control card in step 402 can be main control card key-course.
For making flow process shown in Fig. 4 clearly, Fig. 5 shows the structure of data retransmission layer and key-course in distributed communication equipment.Fig. 5 is based on the structure shown in Fig. 3, and, Fig. 5 adopts key-course and data retransmission layer separate design, wherein data retransmission layer by switching card to the star-like connection of each line card, be responsible for data transmission between each line card, and key-course by main control card to the star-like connection of each line card/switching card, be responsible for data transmission between CPU management on main control card and each line card/switching card.It should be noted that, Fig. 5 is a citing, and non-limiting the present invention.
So far, complete the flow process shown in Fig. 4 to describe.
Below the step 402 shown in Fig. 4 is described in detail:
Before description step 402, the storage mode of multicast forward table in line card is first described:
In the present invention, the multicast forward table that line card adopts Hash (hash) chained list mode to organize it to store, wherein, described ltsh chain table comprises N number of cryptographic Hash, each cryptographic Hash at least one multicast forward table corresponding, specifically as shown in Figure 6.
Based on the structure shown in Fig. 6, then above-mentioned steps 402 specific implementation can see Fig. 7.
Be the step 402 realization flow figure that the embodiment of the present invention provides see Fig. 7, Fig. 7.As shown in Figure 7, this flow process can comprise the following steps:
Step 701, each line card, when the cycle of traversal arrives, is the operation performing traversal multicast forward table first if current, then performs step 702, if right and wrong perform the operation of traversal multicast forward table first, performs step 704.
Here, the traversal cycle realizes by timer, namely opens a task of timer every setting-up time, when the timer expiry opened, is defined as the arrival of traversal cycle.
Step 702, travels through the multicast forward table that in described ltsh chain table, M cryptographic Hash is corresponding successively, the traffic statistics of the multicast forward table traversed is sent to main control card from the cryptographic Hash of first in described ltsh chain table, performs step 703 afterwards;
Wherein, described N can be divided exactly by M.
Step 703, judge that whether M cryptographic Hash being traversed in described ltsh chain table be last cryptographic Hash of described ltsh chain table, if, in described ltsh chain table the 1st cryptographic Hash is recorded as the position that next cycle starts to travel through, otherwise, the next cryptographic Hash of last cryptographic Hash be traversed in current period in described ltsh chain table is recorded as the position that next cycle starts to travel through;
Step 704, travels through the multicast forward table that M cryptographic Hash in described ltsh chain table is corresponding successively, the traffic statistics of the multicast forward table traversed is sent to main control card from the traversal position of upper one-period record, performs step 703.
So far, the flow process shown in Fig. 7 is completed.
In above-mentioned steps 702 or step 704, travel through the multicast forward table that in ltsh chain table, M cryptographic Hash is corresponding successively, the traffic statistics of the multicast forward table traversed be sent to main control card and realize by flow process shown in Fig. 8:
Be the step 702 that provides of the embodiment of the present invention or step 704 realization flow figure see Fig. 8, Fig. 8.As shown in Figure 8, this flow process can comprise the following steps:
Step 801, distributes a buffering area for this traversal.
In the present invention, the buffer size for each traversal period allocated can be identical.Certainly, the one as the embodiment of the present invention is expanded, also can be different.
Step 802, using first cryptographic Hash traversing as current cryptographic Hash.
Step 803, transmits first corresponding for the current cryptographic Hash traversed multicast forward table as current multicast;
Step 804, the keyword transmitted according to the principle journal current multicast not covering described buffering area recorded data and corresponding traffic statistics are to described buffering area.
Namely, time in current period first to buffer records data, the keyword that journal current multicast is transmitted from starting position, buffering area and corresponding traffic statistics are to described buffering area, non-first to buffer records data time, the keyword that journal current multicast is transmitted from the rearmost position of last record data and corresponding traffic statistics are to described buffering area.
Wherein, the keyword of multicast forward table can be the multicast source IP address of multicast forward table, multicast group IP address and VRF.
Step 805, judges that whether described buffering area is full, if so, then the data of described buffer records is sent to main control card, otherwise, perform step 806;
Step 806, judge whether multicast forward table corresponding to described current cryptographic Hash has been traversed, if, perform step 807, otherwise, travel through the next multicast forward table that current multicast corresponding to described current cryptographic Hash is transmitted, the multicast forward table this traversed is transmitted as current multicast, returns step 804;
Step 807, judges whether M cryptographic Hash in current period has been traversed, and if so, perform step 808, otherwise travel through the next cryptographic Hash of current cryptographic Hash, the cryptographic Hash this traversed, as current cryptographic Hash, returns step 803;
Step 808, judges whether described buffering area have recorded data, if so, the data of described buffer records is sent to main control card, discharges described buffering area, otherwise, discharge described buffering area.
Also namely, in step 808, if after current period traveled through M cryptographic Hash, though buffering area less than, also the data recorded in this buffering area are sent to main control card.
So far, the flow process shown in Fig. 8 is completed.
It should be noted that, the flow process shown in above-mentioned Fig. 8 realizes by notice (notify) mechanism, and based on this, described in step 808 or step 808, the data of buffer records are sent to main control card by notify message.And after main control card receives the notify message of line card transmission, parse the multicast forward table keyword in this notify message and corresponding traffic statistics, multicast list corresponding to described keyword is searched in the multicast list stored at main control card according to the keyword parsed, if found, traffic statistics corresponding for this keyword is recorded in this list item found, if search less than, then ignore the keyword of this transmission and corresponding traffic statistics.
So far, complete method provided by the invention and describe, below device provided by the invention is described:
See the cable fastener device structure chart that Fig. 9, Fig. 9 provide for the embodiment of the present invention.This line card is applied in distributed communication equipment, and as shown in Figure 9, this line card comprises:
Multicast message forwarding engine module, for when receiving multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table that described line card has stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message;
Flux of multicast statistical information sending module, for periodically traveling through at least one multicast forward table stored, is sent to main control card by the traffic statistics of the multicast forward table traversed.
Preferably, described multicast message forwarding engine module described multicast message be from other line cards be sent to switching card and switching card is sent to again described line card time, determine that described multicast message is across card incoming message, otherwise, determine that described multicast message is not across card incoming message.
Preferably, the multicast forward table that described line card stores adopts Hash hash chained list mode to organize, and described ltsh chain table comprises N number of cryptographic Hash, each cryptographic Hash at least one multicast forward table corresponding; Based on this, as shown in Figure 9, described flux of multicast statistical information sending module comprises:
Determining unit, for when the cycle of traversal arrives, is the operation performing traversal multicast forward table first if current, notifies the first Traversal Unit, if right and wrong perform the operation of traversal multicast forward table first, notify the second Traversal Unit;
Described first Traversal Unit, for receive described determining unit notice after, the multicast forward table that in described ltsh chain table, M cryptographic Hash is corresponding is traveled through successively from the cryptographic Hash of first in described ltsh chain table, the traffic statistics of the multicast forward table traversed is sent to main control card, described N can be divided exactly by M, sends afterwards and informs judging unit;
Described judging unit, for receive described first Traversal Unit or the second Traversal Unit notice after, judge that whether M cryptographic Hash being traversed in described ltsh chain table be last cryptographic Hash of described ltsh chain table, if, in described ltsh chain table the 1st cryptographic Hash is recorded as the position that next cycle starts to travel through, otherwise, the next cryptographic Hash of last cryptographic Hash be traversed in current period in described ltsh chain table is recorded as the position that next cycle starts to travel through;
Described second Traversal Unit, for receive described determining unit notice after, the multicast forward table that M cryptographic Hash in described ltsh chain table is corresponding is traveled through successively from the traversal position of upper one-period record, the traffic statistics of the multicast forward table traversed is sent to main control card, sends afterwards and inform judging unit.
In the above description, described first Traversal Unit or second travels through multicast forward table corresponding to M the cryptographic Hash traveled through successively in described ltsh chain table, the traffic statistics of the multicast forward table traversed is sent to main control card and comprises:
C1, distributes a buffering area for this traversal;
C2, using first cryptographic Hash traversing as current cryptographic Hash;
C3, transmits first corresponding for the current cryptographic Hash traversed multicast forward table as current multicast;
C4, the keyword transmitted according to the principle journal current multicast not covering described buffering area recorded data and corresponding traffic statistics are to described buffering area;
C5, judges that whether described buffering area is full, if so, then the data of described buffer records is sent to main control card, otherwise, perform step C6;
C6, judge whether multicast forward table corresponding to described current cryptographic Hash has been traversed, if, perform step C7, otherwise, travel through the next multicast forward table that current multicast corresponding to described current cryptographic Hash is transmitted, the multicast forward table this traversed is transmitted as current multicast, returns step C4;
C7, judges whether M cryptographic Hash in current period has been traversed, and if so, perform step C8, otherwise travel through the next cryptographic Hash of current cryptographic Hash, the cryptographic Hash this traversed, as current cryptographic Hash, returns step C3;
C8, judges whether described buffering area have recorded data, if so, the data of described buffer records is sent to main control card, discharges described buffering area, otherwise, discharge described buffering area.
In addition, present invention also offers the structure of main control card.See the main control card structure chart that Figure 10, Figure 10 provide for the embodiment of the present invention.This main control card is applied in the distributed communication equipment comprising line card as above, and as shown in Figure 10, this main control card can comprise:
Receiver module, to travel through the traffic statistics of the multicast forward table that at least one multicast forward table of having stored traverses by the cycle for receiving line card; Wherein, when the traffic statistics of multicast forward table obtains in the following manner: when receiving multicast message when line card, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message.
Logging modle, during for receiving the keyword of line card transmission and corresponding traffic statistics when described receiver module, multicast list corresponding to described keyword is searched in the multicast list stored at described main control card according to described keyword, if found, traffic statistics corresponding for this keyword is recorded in this list item found.
So far, complete apparatus structure provided by the invention to describe.
As can be seen from the above technical solutions, in the present invention, line card data retransmission layer Active report flux of multicast information is to main control card key-course, but not the main control card of prior art is initiatively to line card data retransmission layer request flux of multicast information, this can reduce main control card on the one hand owing to obtaining flux of multicast information taking passage between main control card and line card, save the communication bandwidth between main control card and line card, on the other hand, can ensure that main control card obtains accurate flux of multicast information.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. in distributed communication equipment, main control card obtains a flux of multicast method, and described distributed communication equipment at least comprises: line card, main control card and switching card, is characterized in that, the method comprises:
A, when each line card receives multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message; Wherein, the multicast forward table that described line card stores adopts Hash hash chained list mode to organize, and described ltsh chain table comprises N number of cryptographic Hash, each cryptographic Hash at least one multicast forward table corresponding;
B, each line card periodically travels through at least one multicast forward table stored, and the traffic statistics of the multicast forward table traversed is sent to main control card, is specially:
B1, each line card, when the cycle of traversal arrives, is the operation performing traversal multicast forward table first if current, performs step B2, if right and wrong perform the operation of traversal multicast forward table first, performs step B4;
B2, the multicast forward table that in described ltsh chain table, M cryptographic Hash is corresponding is traveled through successively from the cryptographic Hash of first in described ltsh chain table, the traffic statistics of the multicast forward table traversed is sent to main control card, and described N can be divided exactly by M, performs step B3 afterwards;
B3, judge that whether M cryptographic Hash being traversed in described ltsh chain table be last cryptographic Hash of described ltsh chain table, if, in described ltsh chain table the 1st cryptographic Hash is recorded as the position that next cycle starts to travel through, otherwise, the next cryptographic Hash of last cryptographic Hash be traversed in current period in described ltsh chain table is recorded as the position that next cycle starts to travel through;
B4, travels through the multicast forward table that M cryptographic Hash in described ltsh chain table is corresponding successively, the traffic statistics of the multicast forward table traversed is sent to main control card from the traversal position of upper one-period record, performs step B3.
2. method according to claim 1, is characterized in that, in steps A, determines whether multicast message is comprise across card incoming message:
When described multicast message be from other line cards be sent to switching card and switching card is sent to again described line card time, determine that described multicast message is for across card incoming message, otherwise, determine described multicast message for across card incoming message.
3. method according to claim 1, is characterized in that, in step B2 or step B3, describedly travels through the multicast forward table that in described ltsh chain table, M cryptographic Hash is corresponding successively, the traffic statistics of the multicast forward table traversed is sent to main control card and comprises:
C1, distributes a buffering area for this traversal;
C2, using first cryptographic Hash traversing as current cryptographic Hash;
C3, transmits first corresponding for the current cryptographic Hash traversed multicast forward table as current multicast;
C4, the keyword transmitted according to the principle journal current multicast not covering described buffering area recorded data and corresponding traffic statistics are to described buffering area;
C5, judges that whether described buffering area is full, if so, then the data of described buffer records is sent to main control card, otherwise, perform step C6;
C6, judge whether multicast forward table corresponding to described current cryptographic Hash has been traversed, if, perform step C7, otherwise, travel through the next multicast forward table that current multicast corresponding to described current cryptographic Hash is transmitted, the multicast forward table this traversed is transmitted as current multicast, returns step C4;
C7, judges whether M cryptographic Hash in current period has been traversed, and if so, perform step C8, otherwise travel through the next cryptographic Hash of current cryptographic Hash, the cryptographic Hash this traversed, as current cryptographic Hash, returns step C3;
C8, judges whether described buffering area have recorded data, if so, the data of described buffer records is sent to main control card, discharges described buffering area, otherwise, discharge described buffering area.
4., according to the arbitrary described method of claims 1 to 3, it is characterized in that, the method comprises further:
When main control card receives the keyword of line card transmission and corresponding traffic statistics, multicast list corresponding to described keyword is searched in the multicast list stored at main control card according to described keyword, if found, traffic statistics corresponding for this keyword is recorded in this list item found.
5. a line card, described line card is applied in distributed communication equipment, it is characterized in that, this line card comprises:
Multicast message forwarding engine module, for when receiving multicast message, the multicast forward table forwarding this multicast message is determined from the multicast forward table that described line card has stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message; The multicast forward table that described line card stores adopts Hash hash chained list mode to organize, and described ltsh chain table comprises N number of cryptographic Hash, each cryptographic Hash at least one multicast forward table corresponding;
Flux of multicast statistical information sending module, for periodically traveling through at least one multicast forward table stored, is sent to main control card by the traffic statistics of the multicast forward table traversed, and described flux of multicast statistical information sending module specifically comprises:
Determining unit, for when the cycle of traversal arrives, is the operation performing traversal multicast forward table first if current, notifies the first Traversal Unit, if right and wrong perform the operation of traversal multicast forward table first, notify the second Traversal Unit;
Described first Traversal Unit, for receive described determining unit notice after, the multicast forward table that in described ltsh chain table, M cryptographic Hash is corresponding is traveled through successively from the cryptographic Hash of first in described ltsh chain table, the traffic statistics of the multicast forward table traversed is sent to main control card, described N can be divided exactly by M, sends afterwards and informs judging unit;
Described judging unit, for receive described first Traversal Unit or the second Traversal Unit notice after, judge that whether M cryptographic Hash being traversed in described ltsh chain table be last cryptographic Hash of described ltsh chain table, if, in described ltsh chain table the 1st cryptographic Hash is recorded as the position that next cycle starts to travel through, otherwise, the next cryptographic Hash of last cryptographic Hash be traversed in current period in described ltsh chain table is recorded as the position that next cycle starts to travel through;
Described second Traversal Unit, for traveling through multicast forward table corresponding to M cryptographic Hash in described ltsh chain table the traversal position from upper one-period record successively, the traffic statistics of the multicast forward table traversed is sent to main control card, sends afterwards and inform judging unit.
6. line card according to claim 5, it is characterized in that, described multicast message forwarding engine module described multicast message be from other line cards be sent to switching card and switching card is sent to again described line card time, determine that described multicast message is across card incoming message, otherwise, determine that described multicast message is not across card incoming message.
7. line card according to claim 5, it is characterized in that, described first Traversal Unit or second travels through multicast forward table corresponding to M the cryptographic Hash traveled through successively in described ltsh chain table, the traffic statistics of the multicast forward table traversed is sent to main control card and comprises:
C1, distributes a buffering area for this traversal;
C2, using first cryptographic Hash traversing as current cryptographic Hash;
C3, transmits first corresponding for the current cryptographic Hash traversed multicast forward table as current multicast;
C4, the keyword transmitted according to the principle journal current multicast not covering described buffering area recorded data and corresponding traffic statistics are to described buffering area;
C5, judges that whether described buffering area is full, if so, then the data of described buffer records is sent to main control card, otherwise, perform step C6;
C6, judge whether multicast forward table corresponding to described current cryptographic Hash has been traversed, if, perform step C7, otherwise, travel through the next multicast forward table that current multicast corresponding to described current cryptographic Hash is transmitted, the multicast forward table this traversed is transmitted as current multicast, returns step C4;
C7, judges whether M cryptographic Hash in current period has been traversed, and if so, perform step C8, otherwise travel through the next cryptographic Hash of current cryptographic Hash, the cryptographic Hash this traversed, as current cryptographic Hash, returns step C3;
C8, judges whether described buffering area have recorded data, if so, the data of described buffer records is sent to main control card, discharges described buffering area, otherwise, discharge described buffering area.
8. a main control card, is characterized in that, described main control card be applied to comprise as arbitrary in claim 5 to 7 as described in line card distributed communication equipment in, comprising:
Receiver module, to travel through the traffic statistics of the multicast forward table that at least one multicast forward table of having stored traverses by the cycle for receiving line card; Wherein, when the traffic statistics of multicast forward table obtains in the following manner: when receiving multicast message when line card, the multicast forward table forwarding this multicast message is determined from the multicast forward table stored, and determine whether described multicast message is across card incoming message, if not, in the traffic statistics of described multicast forward table, increase the flux of multicast information of described multicast message; And/or
Logging modle, during for receiving the keyword of line card transmission and corresponding traffic statistics when described receiver module, multicast list corresponding to described keyword is searched in the multicast list stored at described main control card according to described keyword, if found, traffic statistics corresponding for this keyword is recorded in this list item found.
CN201110394902.4A 2011-12-02 2011-12-02 In distributed communication equipment, main control card obtains flux of multicast method and apparatus Active CN103139084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110394902.4A CN103139084B (en) 2011-12-02 2011-12-02 In distributed communication equipment, main control card obtains flux of multicast method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110394902.4A CN103139084B (en) 2011-12-02 2011-12-02 In distributed communication equipment, main control card obtains flux of multicast method and apparatus

Publications (2)

Publication Number Publication Date
CN103139084A CN103139084A (en) 2013-06-05
CN103139084B true CN103139084B (en) 2016-01-20

Family

ID=48498410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110394902.4A Active CN103139084B (en) 2011-12-02 2011-12-02 In distributed communication equipment, main control card obtains flux of multicast method and apparatus

Country Status (1)

Country Link
CN (1) CN103139084B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162712B (en) * 2015-10-20 2019-01-15 烽火通信科技股份有限公司 The realization method and system of distributed protocol in a kind of router
CN105429823B (en) * 2015-12-17 2018-06-01 迈普通信技术股份有限公司 Flux of multicast detection method and device in distributed communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825836A (en) * 2006-04-04 2006-08-30 中兴通讯股份有限公司 System and method for avoiding network apparatus jamming
CN101364889A (en) * 2008-09-24 2009-02-11 中兴通讯股份有限公司 Method for multicast user quick access
CN101488862A (en) * 2009-02-23 2009-07-22 中兴通讯股份有限公司 Distributed Ethernet switch and internal MAC address maintaining method thereof
CN102143006A (en) * 2011-04-18 2011-08-03 福建星网锐捷网络有限公司 Interface topology control method, system and device for communication equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825836A (en) * 2006-04-04 2006-08-30 中兴通讯股份有限公司 System and method for avoiding network apparatus jamming
CN101364889A (en) * 2008-09-24 2009-02-11 中兴通讯股份有限公司 Method for multicast user quick access
CN101488862A (en) * 2009-02-23 2009-07-22 中兴通讯股份有限公司 Distributed Ethernet switch and internal MAC address maintaining method thereof
CN102143006A (en) * 2011-04-18 2011-08-03 福建星网锐捷网络有限公司 Interface topology control method, system and device for communication equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一体化网络中组播管理机制的设计与实现;李凯;《北京交通大学硕士研究生学位论文》;20100215;全文 *

Also Published As

Publication number Publication date
CN103139084A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN100450039C (en) Fast convergence method and device of the end-to-end service
JP5760083B2 (en) Method and apparatus for fast switching from a primary multicast tree to a standby multicast tree
US7778266B2 (en) Switch and network fault recovery method
CN103748835A (en) Dynamic updating of a label switched path
WO2015149481A1 (en) Method and system for service chain routing and device in system
KR101457317B1 (en) Prioritization of routing information updates
CN101710875A (en) Method and device for realizing rapid re-routing
CN103023773B (en) Method, device and system for forwarding message in multi-topology network
CN104767680A (en) Rapid route switch method and device
US8484375B2 (en) Systems and methods for removing stale mapping entries for network element
CN102647328B (en) A kind of label distribution method, equipment and system
CN113196705A (en) In-path telemetry of multicast traffic
US20110128957A1 (en) Multicast tree state replication
CN100561978C (en) A kind of strategy route device and method
CN101909006A (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN103139084B (en) In distributed communication equipment, main control card obtains flux of multicast method and apparatus
CN102123098B (en) Method and system for protection switching of P2MP (Point-to-Multipoint) multicast channel
CN107547377B (en) Multicast traffic transmission method and device
KR101465712B1 (en) Network configuration method, ring network system, and node
CN103238299B (en) Method, apparatus and system for establishment of label switching paths
CN105743784A (en) Switching control method and device in deploying high capacity business
CN102404218B (en) Method and device for switching tunnels
CN103001871A (en) Label distribution method and device
CN108337181B (en) Method and device for managing congestion of switching network
CN102801562B (en) Transmission link switching method and device and network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant