Skip to content

Mapping a logical internal/external ports to actual bess gates in nat#907

Merged
sangjinhan merged 1 commit intomasterfrom
nat
May 8, 2019
Merged

Mapping a logical internal/external ports to actual bess gates in nat#907
sangjinhan merged 1 commit intomasterfrom
nat

Conversation

@shinae-woo
Copy link
Copy Markdown
Member

In nat module, packet flows are looks like
internal --> 0:nat:0 --> external (forward direction)
external --> 1:nat:1 --> internal (reverse direction)

This PR makes the bess gates are correspondint with the logical nat
ports, 0 for internal, and 1 for external, so the new packet flows will
looks like
internal --> 0:nat:1 --> external (forward direction)
external --> 1:nat:0 --> internal (reverse direction)

@shinae-woo shinae-woo requested a review from sangjinhan April 16, 2019 20:49
@nemethf
Copy link
Copy Markdown
Contributor

nemethf commented Apr 16, 2019

I think the examples in bessctl/conf will be outdated when this is merged. Can you, please, update them as well? Thank you.

@shinae-woo
Copy link
Copy Markdown
Member Author

@nemethf Ohh, thank you for catching this. Will update!

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2019

Codecov Report

Merging #907 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #907      +/-   ##
==========================================
+ Coverage    55.7%   55.78%   +0.08%     
==========================================
  Files           9        9              
  Lines        1149     1149              
==========================================
+ Hits          640      641       +1     
+ Misses        509      508       -1
Impacted Files Coverage Δ
pybess/bess.py 40.12% <0%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5f1ff4...e795c35. Read the comment docs.

In nat module, packet flows are looks like
 internal --> 0:nat:0 --> external (forward direction)
 external --> 1:nat:1 --> internal (reverse direction)

This PR makes the bess gates are correspondint with the logical nat
ports, 0 for internal, and 1 for external, so the new packet flows will
looks like
 internal --> 0:nat:1 --> external (forward direction)
 external --> 1:nat:0 --> internal (reverse direction)
@sangjinhan
Copy link
Copy Markdown
Member

tumblr_lg90acBdUF1qfyzelo1_1280

@shinae-woo shinae-woo deleted the nat branch January 22, 2020 22:40
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.

3 participants