Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
P4labs 2023
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ANET
P4labs 2023
Commits
7cad3f6d
Commit
7cad3f6d
authored
1 year ago
by
Djojomoenawie, N.E. (Nathan, Student M-CS)
Browse files
Options
Downloads
Patches
Plain Diff
Formatting
parent
1c5c7e26
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assignments/load_balance/README.md
+2
-2
2 additions, 2 deletions
assignments/load_balance/README.md
with
2 additions
and
2 deletions
assignments/load_balance/README.md
+
2
−
2
View file @
7cad3f6d
...
...
@@ -27,7 +27,7 @@ up a switch in Mininet to test its behavior.
*
start a Mininet instance with three switches (
`s1`
,
`s2`
,
`s3`
) configured
in a triangle, each connected to one host (
`h1`
,
`h2`
,
`h3`
).
*
The hosts are assigned IPs of
`10.0.1.1`
,
`10.0.2.2`
, etc.
*
We use the IP address 10.0.0.1 to indicate traffic that should be
*
We use the IP address
`
10.0.0.1
`
to indicate traffic that should be
load balanced between
`h2`
and
`h3`
.
2.
You should now see a Mininet command prompt. Open three terminals
...
...
@@ -76,7 +76,7 @@ missing piece.
A complete
`load_balance.p4`
will contain the following components:
1.
Header type definitions for Ethernet (
`ethernet_t`
) and IPv4 (
`ipv4_t`
).
2.
**TODO**
Parsers for Ethernet and IPv4 that populate
`ethernet_t`
and
`ipv4_t`
fields.
2.
**TODO
:
**
Parsers for Ethernet and IPv4 that populate
`ethernet_t`
and
`ipv4_t`
fields.
3.
An action to drop a packet, using
`mark_to_drop()`
.
4.
**TODO:**
An action (called
`set_ecmp_select`
), which will:
1.
Hashes the 5-tuple specified above using the
`hash`
extern
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment