Hi Subrata,

Please see my comments inline.

> 1. I configured with /64 SID instead of /32
> 
> vppctl sr policy add bsid fcf0:12::104 next fcf0:12::100 next fcf0:12::101 
> next fcf0:12::102 next fcf0:12::103
> vppctl sr policy add bsid fcf0:12::109 behavior t.m.gtp4.d fcf0:12::104/64 
> v6src_prefix fcf0:12::109/64 nhtype ipv4
> vppctl sr steer l3 14.1.32.27/32 <http://14.1.32.27/32> via bsid fcf0:12::109
> 
> I can see the source IP of the outgoing SRv6 packet is 
> fcf0:12::e01:201c:0:109 and the last SID is fcf0:12::e01:201b:2c:2000.
> source IPv6 is encoded as /32 prefix followed by source IP of GTP-U src 
> e01:201c and then last part of SID 109 got appended
> 
> As per https://docs.fd.io/vpp/20.05/d7/d3c/srv6_mobile_plugin_doc.html 
> <https://docs.fd.io/vpp/20.05/d7/d3c/srv6_mobile_plugin_doc.html>, 
> SRC-PREFIX: Prefix for src address of sending packets. The src IPv6 address 
> consists of the prefix followed by the src IPv4 address of the receiving 
> packets.
> As v6src_prefix is mentioned as fcf0:12::109/64, I was expecting it to be as 
> fcf0:12::109:e01:201c.
> 
> Is /32 prefix mandatory?

I think it depends on your IPv6 notation. If you would like to use 
fcf0:12:0:109::/64 as source prefix, fcf0:12::109/64 is not correct. The 
following config should be working as you expected.

vppctl sr policy add bsid fcf0:12::109 behavior t.m.gtp4.d fcf0:12::104/64 
v6src_prefix fcf0:12:0:109::/64 nhtype ipv4

> 2) last SID is fcf0:12::e01:201b:2c:2000.
> 
> It took /32 followed by dst IP  e01:201b and teid. Teid is 740294658 i.e. 
> 2C20 0002. last two labels of SID doesn't look like 
> encoded the teid properly. Note: there is no QFI put in the GTP-U packet. 

Same as above.

vppctl sr policy add bsid fcf0:12::109 behavior t.m.gtp4.d fcf0:12:0:104::/64 
v6src_prefix fcf0:12:0:109::/64 nhtype ipv4.

> 3) For the return packet as per 
> https://docs.fd.io/vpp/20.09/d7/d3c/srv6_mobile_plugin_doc.html 
> <https://docs.fd.io/vpp/20.09/d7/d3c/srv6_mobile_plugin_doc.html>
> 
> sr localsid prefix SID-PREFIX behavior end.m.gtp4.e v4src_position 
> V4SRC-ADDR-POSITION
> 
> vppctl sr localsid prefix fcf0:12::107/64 behavior end.m.gtp4.e 
> v4src_position 64
> 
> Though DST SID sent as fcf0:12::107/64 followed by sending GTP_U IP address 
> ie. e01:201c + teid but its not working.

You need to use the correct SID prefix here like fcf0:12:0:104::/64. 

Thanks,
Tetsuya
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19895): https://lists.fd.io/g/vpp-dev/message/19895
Mute This Topic: https://lists.fd.io/mt/84417565/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to