[ovs-dev] [PATCH v1 1/2] userspace datapath: Add GTP-U tunnel support

Joe Stringer joe at ovn.org
Sun Mar 4 20:27:07 UTC 2018


On 4 March 2018 at 12:19, Joe Stringer <joe at ovn.org> wrote:
> ?On 2 March 2018 at 04:32, Yi Yang <yi.y.yang at intel.com> wrote:
>> From: Feng Yang <feng.yang at intel.com>
>>
>> GPRS Tunneling Protocol (GTP) is a group of IP-based communications
>> protocols used to carry general packet radio service (GPRS) within
>> GSM, UMTS and LTE networks.
>>
>> GTP can be decomposed into separate protocols, GTP-C, GTP-U and GTP'.
>>
>> GTP-U is used for carrying user data within the GPRS core network and
>> between the radio access network and the core network. The user data
>> transported can be packets in any of IPv4, IPv6, or PPP formats.
>>
>> GTP-U is user plane communication protocol between Serving-Gateway
>> (S-GW) and PDN-Gateway (P-GW) as well as Multi-access Edge Computing
>> (MEC).
>>
>> This patch added a new tunnel type 'gtpu' into userspace datapath and
>> two new match fields tun_gtpu_flags and tun_gtpu_msgtype, tun_id is
>> reused for GTP Tunnel Endpoint ID (TEID).
>>
>> The below are commands for gtpu tunnel add:
>>
>> $ sudo ovs-vsctl add-br br-int -- set bridge br-int datapath_type=netdev protocols=OpenFlow13
>> $ sudo ovs-vsctl add-port br-int gtpu1 -- set interface gtpu1 type=gtpu options:packet_type=legacy_l3 options:remote_ip=flow options:key=flow options:dst_port=2152
>>
>> test-flows-gtpu.txt is openflow table for gtpu tunnel test:
>>
>> $ cat test-flows-gtpu.txt
>> table=0,icmp,in_port=4 actions=load:0xc0a83249->NXM_NX_TUN_IPV4_DST[],load:0x9->NXM_NX_TUN_ID[0..31],output:2
>> table=0,tcp,tp_dst=80,in_port=4 actions=load:0xc0a83249->NXM_NX_TUN_IPV4_DST[],load:0x9->NXM_NX_TUN_ID[0..31],output:2
>> table=0,in_port=2,tun_id=0x10,tun_gtpu_flags=0x30,tun_gtpu_msgtype=255 actions=set_field:00:00:22:22:22:22->eth_src,set_field:00:00:11:11:11:11->eth_dst,output:4
>> table=0,actions=NORMAL
>>
>> Signed-off-by: Feng Yang <feng.yang at intel.com>
>> Signed-off-by: Yi Yang <yi.y.yang at intel.com>
>> ---
>
> Hi Yi, thanks for this work. Some minor comments below, but this is
> just a "drive-by" review. I hope that others with more experience with
> GTP will take a look as well.

Realised Feng was the author, thanks to you too!


More information about the dev mailing list