public class InterASTEv2LSA extends OpaqueLSA
For the advertisement of OSPFv2 inter-AS TE links, a new Opaque LSA, the Inter-AS-TE-v2 LSA, is defined in this document. The Inter-AS-TE-v2 LSA has the same format as "Traffic Engineering LSA", which is defined in [OSPF-TE].
The inter-AS TE link advertisement SHOULD be carried in a Type 10 Opaque LSA [RFC5250] if the flooding scope is to be limited to within the single IGP area to which the ASBR belongs, or MAY be carried in a Type 11 Opaque LSA [RFC5250] if the information is intended to reach all routers (including area border routers, ASBRs, and PCEs) in the AS. The choice between the use of a Type 10 (area-scoped) or Type 11 (AS-scoped) Opaque LSA is an AS-wide policy choice, and configuration control of it SHOULD be provided in ASBR implementations that support the advertisement of inter-AS TE links.
The Link State ID of an Opaque LSA as defined in [RFC5250] is divided into two parts. One of them is the Opaque type (8-bit), the other is the Opaque ID (24-bit). The value for the Opaque type of Inter-AS-TE-v2 LSA is 6 and has been assigned by IANA (see Section 6.1). The Opaque ID of the Inter-AS-TE-v2 LSA is an arbitrary value used to uniquely identify Traffic Engineering LSAs. The Link State ID has no topological significance.
The TLVs within the body of an Inter-AS-TE-v2 LSA have the same format as used in OSPF-TE. The payload of the TLVs consists of one or more nested Type/Length/Value triplets. New sub-TLVs specifically for inter-AS TE Link advertisement are described in Section 3.2.
Constructor and Description |
---|
InterASTEv2LSA()
Default constructor
|
InterASTEv2LSA(byte[] bytes,
int offset)
Construct from a byte array and a given offest
|
Modifier and Type | Method and Description |
---|---|
void |
encode()
Encode the Inter AS TE v2 LSA
|
boolean |
equals(Object lsaToCompare)
Compare LSA by LStype
|
LinkTLV |
getLinkTLV() |
RouterAddressTLV |
getRouterAddressTLV() |
String |
printShort() |
void |
setLinkTLV(LinkTLV linkTLV) |
void |
setRouterAddressTLV(RouterAddressTLV routerAddressTLV) |
String |
toString() |
encodeLSAHeader, getOpaqueId, getOpaqueType, setOpaqueId, setOpaqueType
getAdvertisingRouter, getChecksum, getLength, getLinkStateId, getLSAbytes, getLSage, getLSlength, getLSsequenceNumber, getLStype, getLStype, getOptions, printHeader, setAdvertisingRouter, setLength, setLinkStateId, setLSage, setLSsequenceNumber, setLStype, setOptions
public InterASTEv2LSA()
public InterASTEv2LSA(byte[] bytes, int offset) throws MalformedOSPFLSAException
bytes
- offset
- MalformedOSPFLSAException
public RouterAddressTLV getRouterAddressTLV()
public void setRouterAddressTLV(RouterAddressTLV routerAddressTLV)
routerAddressTLV
- public LinkTLV getLinkTLV()
public void setLinkTLV(LinkTLV linkTLV)
linkTLV
- public String printShort()
Copyright © 2016. All rights reserved.