网络编程payload概念

来源:知乎

作者:Kimtto
链接:https://www.zhihu.com/question/26689845/answer/125553343

1.

In computing and telecommunications, the payload is the part of transmitted data that is the actual intended message. The payload excludes any headers or metadata sent solely to facilitate payload delivery.

2.

In computer security, the payload is the part of malware such as worms or viruses which performs the malicious action; deleting data, sending spam or encrypting data. In addition to the payload, such malware also typically has overhead code aimed at simply spreading itself, or avoiding detection.

3.

In the computer networking, data to be transmitted is the payload, but is almost always encapsulated in some type of a "frame" composed of framing bits and a frame check sequence.Examples are Ethernet frames, Point-to-Point Protocol (PPP) frames, Fibre Channel frames, and V.42 modem frames.

4.

In computer programming, the most common usage of the term is in the context of message protocols, to differentiate the protocol overhead from the actual data. For example, a JSONweb serviceresponse might be:

{ 
    "data":{ 
              "message":"Hello, world!"
           }
}        

The string "Hello, world!" is the payload, while the rest is protocol overhead.

posted @ 2020-07-07 16:30  倚剑天下  阅读(362)  评论(0编辑  收藏  举报