Linux-RDMA Archive on lore.kernel.org
 help / color / Atom feed
* [Discussion] can ROCE protocol work with NAT (Network Address Translation)?
@ 2020-01-10 10:51 wangqi
  2020-01-10 19:00 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: wangqi @ 2020-01-10 10:51 UTC (permalink / raw)
  To: Leon Romanovsky, linux-rdma

Dear experts,

    Because of a project, we need to use ROCE to send data from

region A to region B. A and B are not in a same LAN, and it will

go through NAT (Network Address Translation). However, we found

that we can't send data successfully. We do some investigations

and find that in an INTEL ppt, it says because "ICRC doesn't allow

IP header modifications", ROCE protocol can't work with NAT

while iWARP can work with NAT. We want to ask a few questions.

1. Can ROCE protocol work with NAT? Is the INTEL ppt right?

2. Is there any method that we can use to make ROCE work with

NAT? For example, can we modify or remove the ICRC part in the

ROCE protocol? Is it a good idea?

Best wishes,

Qi



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Discussion] can ROCE protocol work with NAT (Network Address Translation)?
  2020-01-10 10:51 [Discussion] can ROCE protocol work with NAT (Network Address Translation)? wangqi
@ 2020-01-10 19:00 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2020-01-10 19:00 UTC (permalink / raw)
  To: wangqi; +Cc: linux-rdma

On Fri, Jan 10, 2020 at 06:51:39PM +0800, wangqi wrote:
> Dear experts,
>
>     Because of a project, we need to use ROCE to send data from
>
> region A to region B. A and B are not in a same LAN, and it will
>
> go through NAT (Network Address Translation). However, we found
>
> that we can't send data successfully. We do some investigations
>
> and find that in an INTEL ppt, it says because "ICRC doesn't allow
>
> IP header modifications", ROCE protocol can't work with NAT
>
> while iWARP can work with NAT. We want to ask a few questions.
>
> 1. Can ROCE protocol work with NAT? Is the INTEL ppt right?

I have no idea to which "INTEL ppt" you are referring, but RoCEv2
is an extension of RoCEv1 to support routing over different subnets.
Instead of IB GRH field in RoCEv1 packets, RoCEv2 uses IP and UDP
headers.

>
> 2. Is there any method that we can use to make ROCE work with
>
> NAT? For example, can we modify or remove the ICRC part in the
>
> ROCE protocol? Is it a good idea?a

Use proper hardware that supports RoCEv2.

>
> Best wishes,
>
> Qi
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 10:51 [Discussion] can ROCE protocol work with NAT (Network Address Translation)? wangqi
2020-01-10 19:00 ` Leon Romanovsky

Linux-RDMA Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-rdma/0 linux-rdma/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-rdma linux-rdma/ https://lore.kernel.org/linux-rdma \
		linux-rdma@vger.kernel.org
	public-inbox-index linux-rdma

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-rdma


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git