Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
3391657a
Commit
3391657a
authored
Mar 11, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document IPv4 operation.
parent
a323249d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
7 deletions
+56
-7
babel.text
babel.text
+56
-7
No files found.
babel.text
View file @
3391657a
...
...
@@ -690,7 +690,11 @@ If Plen is no more than 128 and hop count is 0, then this is a request for
a route with the destination specified by Prefix and Plen. If the
receiving Babel speaker has selected a route with that destination, it
replies with an update for this route. Otherwise, it sends a retraction
for that destination.
for the given destination.
If Prefix/Plen is an IPv6-mapped IPv4 prefix (i.e. it is within ::ffff:0/96),
then the request is a request for an IPv4 prefix, and should be satisfied
with an IPv4 Prefix message (see Section 3.2.6).
3.2.3.3 Multi-hop requests
...
...
@@ -715,6 +719,9 @@ the replies whenever a request is satisfied.
If the receiver has no route to the given destination, it remains silent.
As above, if Prefix/Plen is an IPv6-mapped IPv4 prefix, then this is
a request for an IPv4 prefix.
3.2.4 Update
...
...
@@ -799,23 +806,65 @@ where prefix is equal to id masked to plen bits.
Prefix The prefix being advertised.
A Prefix message MUST immediately follow either an U
PDATE message, o
r
another PREFIX
message.
A Prefix message MUST immediately follow either an U
pdate message, anothe
r
Prefix message, or an IPv4 Prefix
message.
The Metric field is a fixed-point number in 8.8 bit format, and represents
an additive metric. The value 0xFF.0xFF (infinity) indicates that this is
a route retraction.
A
n update
message specifies an update for the route to destination (prefix,
A
Prefix
message specifies an update for the route to destination (prefix,
plen), with a sequence number given by the field Seqno, a metric given by
the Metric field, and a source indicated by the Router ID field of the
preceding update message.
3.2.6 IPv4 prefix information
Message type 5 is reserved for IPv4 prefix information. A message with
a type of 5 should be silently ignored by an implementation that does not
implement the IPv4 extensions to Babel.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = 5 | Plen | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Seqno | Metric |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ Reserved +
| |
+---------------------------------------------------------------+
| Next Hop |
+---------------------------------------------------------------+
| Prefix |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields:
Type Set to 5 to indicate an IPv4 Prefix message.
Plen The prefix length of the advertised prefix.
Seqno The sequence number of this advertisement.
Metric The metric of the advertised route, in 8.8 bit fixed-point
format.
Next Hop The IPv4 address of the sending interface.
Prefix The prefix being advertised.
An Ipv4 Prefix message MUST immediately follow either an Update message,
a Prefix message, or another IPv4 Prefix message.
The Metric and Seqno fields are interpreted as in the Prefix message.
An IPv4 Prefix message specifies an update for the route to destination
(prefix, plen), with a sequence number given by the field Seqno, a metric
given by the Metric field, a source indicated by the Router ID field of the
preceding update message, and a next hop specified by the Next Hop field.
A node that does not implement IPv4 MUST silently ignore IPv4 Prefix
messages, and MUST NOT send IPv4 Prefix messages.
4. Sample implementation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment