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

Problem of packet match #113

Open
ttohyama opened this issue Apr 4, 2017 · 0 comments
Open

Problem of packet match #113

ttohyama opened this issue Apr 4, 2017 · 0 comments

Comments

@ttohyama
Copy link

ttohyama commented Apr 4, 2017

Issue Type

  • Bug report

Summary

VXLANヘッダのついたパケットマッチに失敗する

Bug report

Lagopusのフローテーブルには
'vxlan_vni': 56001, 'udp_src': 2, 'eth_type': 2048, 'vlan_vid': 3011, 'ip_proto': 17, 'in_port': 1
をマッチ条件とするフローを設定し、
これにマッチするパケットをLagopusに印加した。

しかし、当該パケットを印加しても、パケットが転送されず
同時に、statsのカウンタが上がらないことを確認した。

また、show interface のrxカウンタについては
適切にカウンタが上がっていることから、
フローテーブルにマッチせず、ドロップされていると考えられる。

{
    "priority": 400,
    "idle_timeout": 0,
    "hard_timeout": 0,
    "send_flow_rem": null,
    "cookie": 0,
    "in_port": 1,
    "dl_type": "ip",
    "vlan_vid": "3011",
    "nw_proto": 17,
    "udp_src": 2,
    "vxlan_vni": 56001,
    "actions": [
        {
            "apply_actions": [
                {
                    "strip_vlan": null
                },
                {
                    "decap": {
                        "cur_packet_type": 0,
                        "new_packet_type": 67584,
                        "properties": []
                    }
                },
                {
                    "decap": {
                        "cur_packet_type": 67584,
                        "new_packet_type": 131089,
                        "properties": []
                    }
                },
                {
                    "decap": {
                        "cur_packet_type": 131089,
                        "new_packet_type": 201397,
                        "properties": []
                    }
                },
                {
                    "decap": {
                        "cur_packet_type": 201397,
                        "new_packet_type": 0,
                        "properties": []
                    }
                },
                {
                    "output": "controller"
                }
            ]
        }
    ],
    "stats": {
        "packet_count": 0,
        "byte_count": 0
    }
},

Expected behavior

上記のフローにマッチし、VLAN、VXLANヘッダを除去し
コントローラへパケットインされる。

Actual behavior

上記のフローにマッチされず、ドロップされる。

Environment

Lagopus Version : ea29c00
Extension Ryu : commit e1e343acc21637ccdaa944a5c51d41f725006278
Hosted OS: Ubuntu 14.04

Steps to reproduce

下記マッチ条件をフローテーブルに登録する。
'vxlan_vni': 56001, 'udp_src': 2, 'eth_type': 2048, 'vlan_vid': 3011, 'ip_proto': 17, 'in_port': 1

下記の構造のようなパケットをLagopusに印加する。
| Outer-Mac | Outer-VLAN(3011) | Outer-IP | UDP(srcport:2/dstport:4789) | VXLAN(VID:56001) | Inner-VLAN | Inner-MAC | Inner-IP | Data | FCS |

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

No branches or pull requests

1 participant