CrazyEngineers
  • What Are Stateful & Stateless Protocols?

    tanvisharma

    Member

    Updated: Oct 25, 2024
    Views: 1.7K
    please help me know about them,
    i know that they dnt save the state and other stores states...give me real time examples...
    and how those are applicable in internet
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Anoop Kumar

    MemberJun 3, 2013

    Stateless protocol doesn't preserve state of request after transaction.
    Stateful protocol preserves the state of client until it disconnects.
    For example if you download file its FTP uses TCP/ip and preserve all the state of client.
    While if login a website like CE or Facebook it uses a series of series of stateful protocol for login, posting.
    While other time there is no information of client communicated with server, when needed cookies or session variables are used to identify the client.
    Are you sure? This action cannot be undone.
    Cancel
  • tanvisharma

    MemberJun 3, 2013

    ianoop
    Stateless protocol doesn't preserve state of request after transaction.
    Stateful protocol preserves the state of client until it disconnects.
    For example if you download file its FTP uses TCP/ip and preserve all the state of client.
    While if login a website like CE or Facebook it uses a series of series of stateful protocol for login, posting.
    While other time there is no information of client communicated with server, when needed cookies or session variables are used to identify the client.
    yes but when loging in what protocols are used to store the state?
    and cookies as i know are serverside programes stored on client side..
    i know cookies are used for faster access...
    but how does cookies be helpful for faster acces?
    what exactly do cookies contain?
    and how do server understand that??
    please help me
    Are you sure? This action cannot be undone.
    Cancel
  • rahul69

    MemberJun 3, 2013

    tanvisharma
    yes but when loging in what protocols are used to store the state?
    and cookies as i know are serverside programes stored on client side..
    i know cookies are used for faster access...
    but how does cookies be helpful for faster acces?
    what exactly do cookies contain?
    and how do server understand that??
    please help me
    • Cookies help in faster access as u don't have to log in again and again, thus saving time.
    • Cookies generally contain random text, inside encrypted text files.
    • Server reads the cookie from the client computer and decodes it and may compare it to its database to recognize the client.
    😀
    Are you sure? This action cannot be undone.
    Cancel
  • KenJackson

    MemberJun 4, 2013

    I've mostly seen the word "stateful" to describe firewalls. That is, when I connect to my home PC from work with TCP/IP, the firewall allows the return traffic through because it remembers that I've established a connection from inside to out. But there's no way I can establish a connection from outside.

    And I can't use UDP/IP at all, because there's no state associated with UDP. Each packet is it's own transaction. So I can send them from work to home, but the reply can get through.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register