Embodiment
Below in conjunction with accompanying drawing and specific embodiment technical scheme of the present invention is done further detailed explanation.
Embodiment one
As shown in Figure 1, Fig. 1 is the method flow diagram of the embodiment of the invention one.
S102: obtain the data link information among the LAG, calculate the LAG attribute information according to this data link information;
S104: this LAG attribute information is written in the TE Link information;
S106: the TE Link information that will carry this LAG attribute information is issued; This TE Link information of having carried the LAG attribute information comprises: the protection type of TE Link is LAG protection, the available bandwidth of TE Link and the bandwidth of the maximum LSP that TE Link can carry.
Alternatively, this TE Link information of having carried the LAG attribute information also comprises the LAG protection bandwidth of TE Link.
Each bar data link information in LAG changes, and for example, in LAG, increases or the minimizing data link, and perhaps the bandwidth of data link changes; Then trigger the step carry out S102 to S106 again, with realize after dynamically issue is upgraded carrying the TE Link information of LAG attribute information.
The TE Link information of in the present embodiment, having carried the LAG attribute information through the Routing Protocol issue; This Routing Protocol is a kind of in following: ospf (OSPF; Open Shortest Path First) agreement, Intermediate System-to-Intermediate System (IS-IS; IntermediateSystem to Intermediate System) agreement, routing information protocol (RIP, RoutingInformation Protocol).
Embodiment two
As shown in Figure 2, Fig. 2 is that the network equipment of the embodiment of the invention two connects sketch map.In Fig. 2, connect 4 data link between network equipment A and the network equipment B, 4 data link are polymerized to a LAG.
S202: network equipment A obtains 4 data link information among the LAG, and wherein the bandwidth of every data link is 100M; Calculate the LAG attribute information according to 4 data link information, specifically comprise: the LAG available bandwidth is that 400M, LAG protection bandwidth are 200M.
Need to prove at this: (1) obtains through the bandwidth of data link available among the LAG being carried out addition, i.e. 100M*4=400M for the LAG available bandwidth; (2) because LAG has traffic sharing (Load Sharing) ability, and 4 data link bandwidth in the present embodiment identical (being 100M), generally, the algorithm that in LAG, carries out the data distribution can guarantee that packet realizes evenly distributing in LAG; So the protection of the LAG in present embodiment bandwidth is the half the of LAG available bandwidth, i.e. 400M/2=200M.
S204: network equipment A is written into the LAG attribute information that calculates in the TE Link information; TE Link in the present embodiment is represented by 4 data link that bundled.
S206: the TE Link information that network equipment A will carry the LAG attribute information is issued; This TE Link information of having carried the LAG attribute information comprises: the protection type of TE Link is that the available bandwidth of LAG protection, TE Link is that the bandwidth of 400M and the TE Link maximum LSP that can carry is 400M.
Need to prove at this: (1) has obtained the LAG available bandwidth in step S202, then the available bandwidth of TE Link equals LAG available bandwidth, i.e. 400M; (2) because the protection type of TE Link is the LAG protection, so obtain the bandwidth of the maximum LSP that TE Link can carry, i.e. 100M*4=400M through the bandwidth of data link available among the LAG being carried out addition.
Alternatively, in the carrying of issue also comprise the LAG protection bandwidth of TE Link in the TE Link information of LAG attribute information; Owing in step S202, obtained LAG protection bandwidth, the LAG of TE Link protection bandwidth equals LAG protection bandwidth, i.e. 200M.
In like manner, network equipment B also can handle TE Link information with reference to the concrete grammar among step S202, S204 and the S206, realizes effectively reflecting the LAG attribute information through TE Link information, repeats no more here.
The network equipment according to the carrying that receives after the TE Link information of LAG attribute information, can carry out path computing, maintenance service is set up or provided in the path.For example the network equipment if business need not passed through the TE Link that possesses the LAG protective capability, then can be got rid of this TE Link according to the protection of the LAG in TE Link information attribute-bit when carrying out path computing from the path computing resource.
Obviously, the technical scheme of the embodiment of the invention can realize effectively reflecting the LAG attribute information through TE Link information.Particularly, in embodiments of the present invention, from the carrying of the network equipment issue TE Link information of LAG attribute information can know that this TE Link possesses the LAG protective capability, and the bandwidth of the TE Link maximum LSP that can carry is 400M; Compare; Adopt the technical scheme of prior art to make the TE Link information of network equipment issue not have correctly to reflect the attribute and the state of TE Link; Do not represent that promptly TE Link possesses the LAG protective capability, and the bandwidth of the TE Link maximum LSP that can carry of expression is 100M.To sum up, the technical scheme of the employing embodiment of the invention helps the network equipment and obtains link information accurately, sets up or provide maintenance service so that meet path computing, the path of practical business demand.
Embodiment three
Sketch map as shown in Figure 3, that Fig. 3 breaks down for the data link between the network equipment of the embodiment of the invention three.In Fig. 3, connect 4 data link between network equipment A and the network equipment B, 4 data link are polymerized to a LAG, and data link 1-3 breaks down, and has only data link 4 to use.
S302: network equipment A obtains 4 data link information among the LAG, and wherein data link 1-3 breaks down and the bandwidth of data link 4 is 100M; Calculate the LAG attribute information according to 4 data link information, specifically comprise: the LAG available bandwidth is that 100M, LAG protection bandwidth are 0.
Need to prove at this: in the present embodiment, because the data link 1-3 among the LAG breaks down, a data left link 4 can be used, so the LAG available bandwidth is the bandwidth 100M of data link 4, and LAG can not provide protection again, and then LAG protection bandwidth is 0.
S304: network equipment A is written into the LAG attribute information that calculates in the TE Link information; TE Link in the present embodiment is represented by 4 data link that bundled.
S306: the TE Link information that network equipment A will carry the LAG attribute information is issued; This TE Link information of having carried the LAG attribute information comprises: the protection type of TE Link is that the available bandwidth of LAG protection, TE Link is that the bandwidth of 100M, the TE Link maximum LSP that can carry is that the LAG protection bandwidth of 100M and TE Link is 0.
In like manner, network equipment B also can handle TE Link information with reference to the concrete grammar among step S302, S304 and the S306, realizes effectively reflecting the LAG attribute information through TE Link information, repeats no more here.
In embodiments of the present invention, if service needed is through possessing the TE Link of LAG protective capability, though the protection type of the TE Link in this moment TE Link information is the LAG protection, the LAG protection bandwidth of TE Link is 0.Therefore, the network equipment must be got rid of this TE Link when carrying out path computing from the path computing resource.
Another sketch map as shown in Figure 4, that Fig. 4 breaks down for the data link between the network equipment of the embodiment of the invention three.In Fig. 4, data link information changes, and is embodied in the fault recovery of data link 3, and then LAG has recovered protective capability.The network equipment is triggered and regains the data link information among the LAG, recomputates and obtains the LAG attribute information, specifically comprises: the LAG available bandwidth is that 200M, LAG protection bandwidth are 100M; The new LAG attribute information that will calculate then is written in the TE Link information and issue; This TE Link information of having carried new LAG attribute information comprises at least: the protection type of TE Link is that the available bandwidth of LAG protection, TE Link is that the bandwidth of 200M, the TE Link maximum LSP that can carry is that the LAG protection bandwidth of 200M and TE Link is 100M.
Know according to aforementioned,, can guarantee that packet realizes evenly distribution in LAG, so the LAG of TE Link protection bandwidth is half of available bandwidth of TE Link owing in LAG, carry out the algorithm of data distributions for many situation that the data link bandwidth is identical among the LAG; For many situation that the data link bandwidth is inequality among the LAG; Owing to can not guaranteeing packet in some cases, the algorithm that in LAG, carries out the data distribution in LAG, realizes evenly distribution; So when confirming the LAG protection bandwidth of TE Link; No longer adopt the half the mode of TE Link available bandwidth to confirm, but confirm according to the concrete bandwidth of available data link.For example, the bandwidth of supposing data link 3 among Fig. 4 is 60M, and the bandwidth of data link 4 is 80M, and then the LAG of TE Link protection bandwidth is 60M, is not (60+80)/2=70M.
Obviously; The technical scheme of the embodiment of the invention can realize effectively reflecting the LAG attribute information through TE Link information; Help the network equipment and obtain link information accurately, set up or provide maintenance service so that meet path computing, the path of practical business demand.
Embodiment four
The embodiment of the invention also provides a kind of network equipment, and this equipment comprises:
Data link information acquisition module 502 is used for obtaining the data link information of LAG;
LAG attribute information computing module 504 is used for calculating the LAG attribute information according to the data link information that data link information acquisition module 502 obtains;
TE Link information issuing module 506 is used for the LAG attribute information that LAG attribute information computing module 504 calculates is written into TE Link information, and the TE Link information that will carry this LAG attribute information is issued; This TE Link information of having carried the LAG attribute information comprises: the protection type of TE Link is LAG protection, the available bandwidth of TE Link and the bandwidth of the maximum LSP that TE Link can carry.
Wherein, the LAG attribute information that obtains at LAG attribute information computing module 204 specifically comprises LAG available bandwidth and LAG protection bandwidth; Alternatively, the carrying of TE Link information issuing module 506 issue the TE Link information of this LAG attribute information also comprise the LAG protection bandwidth of TE Link.
Because content such as the information interaction between each module in the network equipment, implementation and the inventive method embodiment are based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment here.
The technical scheme of the embodiment of the invention can be implemented in the TE Link information of network equipment issue effectively reflection LAG attribute information; Help the network equipment and obtain link information accurately, set up or provide maintenance service so that meet path computing, the path of practical business demand.
Description through above execution mode; Those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform; Can certainly all implement, but the former is better execution mode under a lot of situation through hardware.Based on such understanding; All or part of can the coming out that the technical scheme of the embodiment of the invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above is merely the embodiment of technical scheme of the present invention; But protection scope of the present invention is not limited thereto; Any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.