请输入您要查询的百科知识:

 

词条 Direct Internet Message Encapsulation
释义

  1. Problems with the HTTP

  2. Problems at the network layer

  3. See also

  4. References

  5. External links

Direct Internet Message Encapsulation (DIME) was a Microsoft-proposed internet standard in the early 2000s for the streaming of binary and other encapsulated data over the Internet.

According to the IETF web site, the standard has been withdrawn and never made RFC status. However, Microsoft did at one time recommend DIME for transmitting files via Web services. It was also used in Java EE, but differences in the implementation of the protocol made it difficult.{{Citation needed|date=September 2009}}

The first version[1] was submitted to the IETF in November 2001; the last update[2] was submitted in June 2002. By December 2003, DIME had lost out, in competition with Message Transmission Optimization Mechanism and SOAP with Attachments.[3] Microsoft now describes DIME as "superseded by the SOAP Message Transmission Optimization Mechanism (MTOM) specification"[4]

The standard was intended to be an improved version of MIME.[5] In particular a difficulty with MIME is that each message must be encoded as text and that its sections are separated by a separator given in the message header. This means the entire stream of data must be known to the sender before starting the communication, so as to choose a separator that does not occur in the data. This is not useful if the entire stream is not available when the communication is initiated, or when searching it is expensive. DIME is more oriented to streaming, allowing, for example, a receiver to process chunks of the message as they arrive without having to wait for the entire message.

Problems with the HTTP

{{Tone|section|date=January 2015}}

DIME was defined the transmission format at the data link layer in the OSI model although it was typically transmitted over HTTP. One difficulty here was that it could form an HTTP message of, essentially, any size (the limit being the size information for each chunk, which was 32 bits so 1 gigabit). Many HTTP receivers were unused to messages as large as this, and if they buffered messages would simply fail, expecting a short message and receiving a huge one. Moreover, if the HTTP receiver was secured, it would, on receiving the message, send back a challenge message (400 code) to the sender. Because HTTP is connectionless, it would then entirely lose the possibly huge amount of data that had been sent to it, just to accept or deny the challenge. There was no entirely satisfactory solution to this. The response to the challenge could of course succeed, at the expense of sending the data twice, which if it were huge rather defeats its point. (It is fair to say any other method of sending data over HTTP suffers the same problem.) In the alternate, and probably better solution, the criteria for a successful challenge (e.g. a username and password) is established out-of-band, so it can be sent with the message the first time and not receive a challenge (the by-product of the connectionless HTTP protocol being that since each message is treated individual, any message must be able successfully to include its challenge response).

DIME was extremely fast compared to practical applications of other protocols. Because the data was binary rather than, say, Base64 encoded, it was relatively compact, and the chunking and packet methods built into the protocol meant it could be streamed and read by a suitable receiver before the whole message had been read.

Problems at the network layer

Because DIME was defined at the data link layer, it was possible to encapsulate a DIME message in another DIME message. This would not help at all for compression purposes, but was occasionally useful to bypass networking infrastructure such as routers at the network layer of the OS model, that would otherwise block the encapsulated traffic (being binary they may treat it with suspicion). That being said, other protocols such as MIME may equally suffer such. Since DIME was generally used between well-trusted clients, a specific port could be opened at the router for the express purpose of sending and receiving DIME traffic. This did not subvert the security aspects, since the challenge would still occur, merely that it accepted that binary traffic was the norm on that port, and not give numerous false positives.

See also

  • SOAP with Attachments

References

1. ^http://bgp.potaroo.net/ietf/all-ids/draft-nielsen-dime-00.txt
2. ^http://bgp.potaroo.net/ietf/all-ids/draft-nielsen-dime-02.txt
3. ^{{cite web|url=http://discuss.develop.com/archives/wa.exe?A2=ind0312b&L=dime&T=0&F=&S=&P=175 |title=Re: Where can I find out about the current status of DIME |first=Rich |last=Salz |authorlink=Rich Salz |date=2003-12-12 |accessdate=2006-10-31 |archiveurl=https://web.archive.org/web/20070927075431/http://discuss.develop.com/archives/wa.exe?A2=ind0312b&L=dime&T=0&F=&S=&P=175 |archivedate=2007-09-27 |deadurl=yes |df= }}
4. ^{{cite web|url=http://msdn.microsoft.com/en-us/library/ms951268.aspx|title=Messaging Specifications Index Page|publisher=Microsoft|archiveurl=https://web.archive.org/web/20110606142343/http://msdn.microsoft.com/en-us/library/ms951268.aspx|archivedate=2011-06-06 |accessdate=2006-10-31}}
5. ^http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service01152002.asp

External links

  • Overview by Microsoft.
  • Links to articles about DIME
  • Latest IETF draft
  • Archives of the DIME Discussion list

3 : Microsoft initiatives|Email|Web services

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 9:25:38