简体   繁体   English

XDR协议的字节性和网络字节顺序之间的关系是什么?

[英]What is the relationship of the XDR protocol endianess and network byte order?

The XDR protocol uses big endian. XDR协议使用大字节序。 How does this relate to the concept of network byte order? 这与网络字节顺序的概念有何关系? Is it a direct consequence, or are they independent? 这是直接的结果,还是它们独立?

I guess what I'm trying to ask is at which ISO/OSI layer is the network byte order defined. 我想我想问的是在哪个ISO / OSI层定义了网络字节顺序。 XDR operates at the presentation layer, so is its use of big endian caused by the fact that the network byte order standard also covers the presentation layer? XDR在表示层上运行,那么它的使用大字节序是否由网络字节顺序标准也覆盖表示层的事实引起?

The XDR protocol uses big endian. XDR协议使用大字节序。

The XDR protocol uses network byte order, which is big-endian. XDR协议使用网络字节顺序(big-endian)。

How does this relate to the concept of network byte order? 这与网络字节顺序的概念有何关系? Is it a direct consequence, or are they independent? 这是直接的结果,还是它们独立?

See above. 往上看。

I guess what I'm trying to ask is at which ISO/OSI layer is the network byte order defined. 我想我想问的是在哪个ISO / OSI层定义了网络字节顺序。

It isn't. 不是。 XDR runs over TCP, and TCP runs over the TCP/IP network layer model, not the OSI model. XDR在TCP上运行,而TCP在TCP / IP网络层模型而不是OSI模型上运行。 XDR fits into the Application layer of that model. XDR适合该模型的Application层。 If OSI had any relationship with anything in the real world, which it doesn't, XDR would arguably fit into the Presentation layer, along with 3270 and practically nothing else. 如果OSI与现实世界中的任何事物没有任何关系,那么XDR可以说是与3270一起放入Presentation层,几乎没有其他东西。 However the network byte order of TCP/IP applies to all layers. 但是,TCP / IP的网络字节顺序适用于所有层。

XDR operates at the presentation layer, so is its use of big endian caused by the fact that the network byte order standard also covers the presentation layer? XDR在表示层上运行,那么它的使用大字节序是否由网络字节顺序标准也覆盖表示层的事实引起?

It covers all layers, but it can only enforce that below the application layer. 它涵盖了所有层,但只能在应用程序层以下强制实施。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM