WCF message frame format

Source: Internet
Author: User

Http://www.cnblogs.com/shanyou/archive/2009/06/12/1502385.html

In the TCP/IP protocol stack, when data flows down through the protocol stack, each layer must add control information to the data to ensure correct transmission. The control information is placed at the beginning of the transmitted data, which is called the header. The process of adding information to each layer of the protocol stack is calledEncapsulation. That is to say, each layer of the stack must be formatted to adapt the transmitted data to a specific protocol, that is, each layer must add a header corresponding to the Protocol on the basis of the upper layer; when data flows in the opposite direction (from the bottom layer) of the protocol stack, the protocol software processes the data in the opposite way, that is, each layer is stripped of the header added to the corresponding layer of the stack, then pass the data to the previous layer, which isUnseal.

Data is the entity and service object transmitted by the network and TCP/IP protocol stack. When a user sends data to the Internet, the user group is first packaged (that is, the application data packet ), then, it is routed down to the transport layer. TCP is a stream-oriented protocol. The high-level protocol is not stream-oriented. You need to design the Message Size, start point, and end point. This is the message frame format.

In WCF, the message frame format is used to support TCP transmission and soap messages. If WCF does not provide default support for UDP, You Need To Implement UDP transmission by yourself.

In his blog, Nicholas Allen wrote a series of articles to illustrate the message frame format of WCF:

Message framing, part 1

Message framing, part 2

Message framing, Part 3

Message framing, Part 4

Message framing, Part 5

Message framing, part 6

Message framing, part 7


Author: freedom, innovation, research, exploration ......
Source: http://shanyou.cnblogs.com/
Copyright: The copyright of this article is shared by the author and the blog
Reprinted: you are welcome to reprinted. To save the author's Creative Enthusiasm, please [reprinted] As required. Thank you.
Requirement: This statement must be retained without the consent of the author; the original text connection must be provided in the article; otherwise, the legal liability must be investigated.

Http://www.cnblogs.com/shanyou/archive/2009/06/12/1502385.html

In the TCP/IP protocol stack, when data flows down through the protocol stack, each layer must add control information to the data to ensure correct transmission. The control information is placed at the beginning of the transmitted data, which is called the header. The process of adding information to each layer of the protocol stack is calledEncapsulation. That is to say, each layer of the stack must be formatted to adapt the transmitted data to a specific protocol, that is, each layer must add a header corresponding to the Protocol on the basis of the upper layer; when data flows in the opposite direction (from the bottom layer) of the protocol stack, the protocol software processes the data in the opposite way, that is, each layer is stripped of the header added to the corresponding layer of the stack, then pass the data to the previous layer, which isUnseal.

Data is the entity and service object transmitted by the network and TCP/IP protocol stack. When a user sends data to the Internet, the user group is first packaged (that is, the application data packet ), then, it is routed down to the transport layer. TCP is a stream-oriented protocol. The high-level protocol is not stream-oriented. You need to design the Message Size, start point, and end point. This is the message frame format.

In WCF, the message frame format is used to support TCP transmission and soap messages. If WCF does not provide default support for UDP, You Need To Implement UDP transmission by yourself.

In his blog, Nicholas Allen wrote a series of articles to illustrate the message frame format of WCF:

Message framing, part 1

Message framing, part 2

Message framing, Part 3

Message framing, Part 4

Message framing, Part 5

Message framing, part 6

Message framing, part 7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.