public class BGP4Update extends BGP4Message
From RFC 4271 Section 4.3.
RFC 4271. 4.3. UPDATE Message Format UPDATE messages are used to transfer routing information between BGP peers. The information in the UPDATE message can be used to construct a graph that describes the relationships of the various Autonomous Systems. By applying rules to be discussed, routing information loops and some other anomalies may be detected and removed from inter-AS routing. An UPDATE message is used to advertise feasible routes that share common path attributes to a peer, or to withdraw multiple unfeasible routes from service (see 3.1). An UPDATE message MAY simultaneously advertise a feasible route and withdraw multiple unfeasible routes from service. The UPDATE message always includes the fixed-size BGP header, and also includes the other fields, as shown below (note, some of the shown fields may not be present in every UPDATE message):+-----------------------------------------------------+ | Withdrawn Routes Length (2 octets) | +-----------------------------------------------------+ | Withdrawn Routes (variable) | +-----------------------------------------------------+ | Total Path Attribute Length (2 octets) | +-----------------------------------------------------+ | Path Attributes (variable) | +-----------------------------------------------------+ | Network Layer Reachability Information (variable) | +-----------------------------------------------------+
BGPHeaderLength, BGPMarkerLength, log, messageBytes
Constructor and Description |
---|
BGP4Update()
Construct for encoding
|
BGP4Update(byte[] bytes)
Construct for decoding
|
Modifier and Type | Method and Description |
---|---|
void |
decode() |
void |
encode()
Encode BGP4 Update message
|
String |
getLearntFrom() |
NLRI |
getNlri() |
ArrayList<PathAttribute> |
getPathAttributes() |
int |
getTotalPathAttibuteLength() |
WithdrawnRoutes |
getWithdrawnRoutes() |
int |
getWithdrawnRoutesLength() |
void |
setLearntFrom(String learntFrom) |
void |
setNlri(NLRI nlri) |
void |
setPathAttributes(ArrayList<PathAttribute> pathAttribute) |
void |
setTotalPathAttibuteLength(int totalPathAttibuteLength) |
void |
setWithdrawnRoutes(WithdrawnRoutes withdrawnRoutes) |
void |
setWithdrawnRoutesLength(int withdrawnRoutesLength) |
String |
toString() |
encodeHeader, getBGPHeaderLength, getBGPMarkerLength, getBytes, getLength, getMessageType, getMessageType, setMessageLength, setMessageType
public BGP4Update()
public BGP4Update(byte[] bytes)
public void encode()
public void decode()
public int getWithdrawnRoutesLength()
public void setWithdrawnRoutesLength(int withdrawnRoutesLength)
public WithdrawnRoutes getWithdrawnRoutes()
public void setWithdrawnRoutes(WithdrawnRoutes withdrawnRoutes)
public int getTotalPathAttibuteLength()
public void setTotalPathAttibuteLength(int totalPathAttibuteLength)
public ArrayList<PathAttribute> getPathAttributes()
public void setPathAttributes(ArrayList<PathAttribute> pathAttribute)
public NLRI getNlri()
public void setNlri(NLRI nlri)
public String getLearntFrom()
public void setLearntFrom(String learntFrom)
Copyright © 2016. All rights reserved.