Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Stateless protocol

From Wikipedia, the free encyclopedia
Communications protocol in which no information is retained by either sender or receiver

Astateless protocol is acommunication protocol in which the receiver does not retainsession state from previous requests. The sender transfers relevant session state to the receiver in such a way that every request can be understood in isolation, withoutreference to session state from previous requests.[1]

In contrast, astateful protocol is a communication protocol in which the receiver may retain session state from previous requests.

Incomputer networks, examples of stateless protocols include theInternet Protocol (IP), which is the foundation for theInternet, and theHypertext Transfer Protocol (HTTP), which is the foundation of theWorld Wide Web. Examples of stateful protocols include theTransmission Control Protocol (TCP) and theFile Transfer Protocol (FTP).

Stateless protocols have superior visibility, reliability, and scalability properties. Visibility is improved because a monitoring system does not have to look beyond a single request in order to determine its full nature. Reliability is improved because it eases the task of recovering from failures such aspacket loss. Scalability is improved because not having to store session state between requests allows theserver to quickly free resources and further simplifies implementation. The disadvantage of stateless protocols is that they may decrease network performance by increasing the repetitive data sent in a series of requests, since that data is not retained or reused at the receiver.

Examples

[edit]

AnHTTP server can understand each request in isolation.[2]

Contrast this with a traditionalFTP server that conducts an interactive session with the user. During the session, a user is provided a means to be authenticated and set various variables (working directory, transfer mode), all stored on the server as part of the session state.

Stacking of stateless and stateful protocol layers

[edit]

There can be complex interactions between stateful and stateless protocols among different protocol layers. For example, HTTP, a stateless protocol, is layered on top ofTCP, a stateful protocol, which is layered on top ofIP, another stateless protocol, which is routed on a network that employsBGP, another stateful protocol, to direct the IP packets riding on the network.

This stacking of layers continues even above HTTP. As a workaround for the lack of a retained session state, HTTP servers implement varioussession management methods,[3] typically utilizing a session identifier in anHTTP cookie referencing a session state stored on the server, effectively creating a stateful protocol on top of HTTP.[4]

See also

[edit]

References

[edit]
  1. ^Fielding, Roy (2000)."3.4.3 Client-Stateless-Server (CSS)".Architectural Styles and the Design of Network-Based Software Architectures (Doctoral dissertation). University of California, Irvine.OCLC 45706361. Retrieved2021-05-18.
  2. ^Fielding, R.; Reschke, J. (2014). Fielding, R.; Reschke, J. (eds.)."RFC 7230 - Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing".ietf.org.doi:10.17487/RFC7230. Retrieved20 August 2015.
  3. ^"session management methods reviewed".C cookie bits. Toronto.Archived from the original on 2019-02-13. Retrieved2011-04-12.The following material is intended to introduce the reader to the various techniques that developers have used to implement session tracking on the Web. The main operational characteristics of each method are mentioned in addition to the shortcomings that have been observed in usage. Additional information on session management can be found by searching the Internet. […]
  4. ^Dwyer, Gareth (18 November 2020)."Stateful vs Stateless Architecture".Virtasant.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Stateless_protocol&oldid=1338614098"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp