【问题标题】:How can you run iOS Apps on the Google Cloud even though it lacks support for IPv6即使不支持 IPv6,如何在 Google Cloud 上运行 iOS 应用程序
【发布时间】:2016-06-27 20:55:16
【问题描述】:

Apple 的一项新应用商店政策已于 6 月 1 日生效,因此提交到 App Store 的所有应用都必须支持纯 IPv6 网络 (https://developer.apple.com/news/?id=05042016a)。如何在仅支持 IPv4 (https://cloud.google.com/compute/docs/networking) 且仍通过 Apple 审核流程的 Google Cloud Platform 上托管应用程序?

【问题讨论】:

  • 我面临同样的问题。你能逐步写出你的解决方案吗?

标签: ios google-compute-engine google-cloud-platform ipv6 ipv4


【解决方案1】:

应用的服务器端还不需要通过 IPv6 访问。大多数纯 IPv6 网络都有 DNS64/NAT64 服务,可以从纯 IPv6 客户端访问纯 IPv4 服务器。

如果您想了解更多有关其背后技术的信息,请查看RFC 6052RFC 6146RFC 6147

这当然会使您的应用程序依赖于丑陋的转换机制,这将(可能)降低客户的用户体验,因此确保您的服务器可通过 IPv4 和 IPv6 访问将使事情变得更好。 FacebookLinkedIn 测量结果表明,移动网络的用户体验优于 IPv6。性能提升幅度从 10% 到 40%,具体取决于移动网络。

【讨论】:

  • 我可以确认这个答案是正确的。我们目前在 Google Cloud 上运行仅支持 IPv4 的应用,Apple 通过 DNS64/NAT64 允许这样做。
  • 那么补救措施到底是什么?我的应用因同一问题而被拒绝。需要改变什么?
  • 如果网络有 NAT64,那么您的客户端软件只有 IPv6 连接。在为 IPv4 服务器进行 DNS 查找时,DNS64 将为您提供代表您的 IPv4 服务器的 IPv6 地址。您的客户端应用程序需要连接到该 IPv6 地址,它将通过 NAT64 到达 IPv4 服务器。确保您的应用程序可以做到这一点。以这样的方式编写您的应用程序,DNS 返回 IPv4 或 IPv6 地址并不重要,您应该没问题。
【解决方案2】:

看起来这是合理的解决方案:

https://cloud.google.com/compute/docs/load-balancing/ipv6

但在使用此解决方案之前,您应该设置负载平衡

https://cloud.google.com/compute/docs/load-balancing/http/

要设置负载均衡,您需要创建实例组

https://cloud.google.com/compute/docs/instance-groups/

【讨论】:

    猜你喜欢
    • 2016-09-02
    • 2017-01-06
    • 2016-10-24
    • 2016-11-02
    • 2017-01-13
    • 2020-06-13
    • 1970-01-01
    • 1970-01-01
    • 2016-11-09
    相关资源
    最近更新 更多