如果这是一个分层架构,为什么我们必须改变 IPv6 中的应用层?

发布于 01-08 02:10 字数 66 浏览 4 评论 0原文

如果TCP/IP是一个适当的分层架构,为什么我们需要更改应用层中的所有应用程序才能将底层协议IP从版本4更改为版本6?

If TCP/IP is a proper layered architecture why do we need to change all the applications in the application layer in order to change a bottom layer protocol IP from version 4 to version 6?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

〆凄凉。2025-01-15 02:10:12

如果应用程序开发良好并且确实分层,那么它就不必更改。不幸的是,许多应用程序使用较低层的详细信息,例如用于访问控制、日志记录等的 IP 地址。在许多情况下这是可以理解的,但它确实破坏了分层架构...

http://www.stipv6.nl/whitepaper-ip-aspecten-software

并且不要忘记像常规输入验证这样的事情表达式和用户界面仅处理 IPv4 表示法(提供四个地址输入框或在某些位置自动插入点等)。

If the application is well-developed and really layered then it should not have to change. Unfortunately many applications use lower-layer details like IP addresses for access control, logging etc. In many cases understandable, but it does indeed break the layered architecture...

The basics are covered in http://www.stipv6.nl/whitepaper-ip-aspecten-software

And don't forget things like input validation with regular expressions and user interfaces that only handle IPv4 notation (providing four input boxes for the address or automatically inserting dots at certain places etc).

不必你懂2025-01-15 02:10:12

如果人们使用 getaddrinfo()< /code>getnameinfo() 函数。

但由于它们的使用需要多3行代码,所以之前人们没有使用它。

与此同时,他们慢慢开始这样做……

We wouldn't have to change if people would use the getaddrinfo() and getnameinfo() functions.

But as their usage needs 3 more lines of code, people did not use it before.

Meanwhile, they slowly start doing so...

倾`听者〃2025-01-15 02:10:12

我认为应用层软件一般不关心IP层,但是出于安全原因,一些应用程序需要处理IP层(即Web服务器上的访问列表),这就是为什么我们需要升级软件才能处理IPv6。

I Think application layer softwares in general doesn't care about IP layer, but however for security reasons some applications need to deal with IP layer (i.e. Access lists at Web servers), this why we need to upgrade software in order to handle IPv6.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文