Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MPLS Switching #3

Merged
merged 7 commits into from
Sep 21, 2023
Merged

Implement MPLS Switching #3

merged 7 commits into from
Sep 21, 2023

Conversation

Lachstec
Copy link
Collaborator

MPLS Switching

This PR implements a very simple form of MPLS-Switching in P4. It demonstrates how one could implement a custom protocol using P4. This example works by appending a custom header based on the destination IP address and then performing routing based on it.

The label gets removed based on a table entry when the packet is about to arrive at a switch connected to hosts.

Topology used in this Example

graph LR
	A[h1] --- B[s1]
	C[h2] --- B[s1]
	B[s1] --- D[s2]
	B[s1] --- E[s4]
	D[s2] --- F[s3]
	F[s3] --- G[h3]
	E[s4] --- G[s5]
	G[s5] --- H[h3]
Loading

@srieger1 srieger1 merged commit d4bdb4f into main Sep 21, 2023
@srieger1 srieger1 deleted the feature/mpls-switching branch September 30, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants