Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Handshake (computing)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Signal between two devices or programs}} {{Missing information|Handshaking in, e.g., buses, software|talksection=Handshaking in, e.g., buses, software|date=December 2021}} {{about|the computer science term|the greeting habit|Handshake|the mathematical lemma|Handshaking lemma}} {{redir|Automatic negotiation|the Ethernet usage|Autonegotiation}} In computing, a '''handshake''' is a signal between two devices or programs, used to, e.g., authenticate, coordinate. An example is the handshaking between a [[hypervisor]] and an application in a [[Hardware virtualization|guest]] [[virtual machine]]. In [[telecommunications]], a '''handshake''' is an automated process of negotiation between two participants (example "[[Alice and Bob]]") through the exchange of information that establishes the [[Communication_protocol|protocols of a communication link]] at the start of the communication, before full communication begins.<ref>{{Cite news|url=http://searchnetworking.techtarget.com/definition/handshaking|title=What is handshaking? - Definition from WhatIs.com|work=SearchNetworking|access-date=2018-02-19|language=en-US}}</ref> The handshaking process usually takes place in order to establish rules for communication when a [[computer]] attempts to communicate with another device. Signals are usually exchanged between two devices to establish a communication link. For example, when a computer communicates with another device such as a [[modem]], the two devices will signal each other that they are switched on and ready to work, as well as to agree to which protocols are being used.<ref>{{Cite book|title=Jacaranda Information Processes and Technology: HSC Course|last=Ware|first=Peter|last2=Chivers|first2=Bill|last3=Cheleski|first3=Paul|publisher=John Wiley & Sons Australia|year=2001|isbn=978-0701634728|location=Australia|pages=92–93}}</ref> Handshaking can negotiate parameters that are acceptable to equipment and systems at both ends of the communication channel, including [[bit rate|information transfer rate]], coding [[alphabet]], [[parity bit|parity]], [[interrupt]] procedure, and other [[protocol (computing)|protocol]] or hardware features. Handshaking is a technique of communication between two entities. However, within TCP/IP RFCs, the term "handshake" is most commonly used to reference the TCP three-way handshake. For example, the term "handshake" is not present in RFCs covering FTP or SMTP. One exception is Transport Layer Security, TLS, setup, FTP RFC 4217. In place of the term "handshake", FTP RFC 3659 substitutes the term "conversation" for the passing of commands.<ref>TCP RFC 793, 2581</ref><ref>SMTP RFC 821,5321, 2821, 1869,6531, 2822</ref><ref>FTP 959, 3659 (conversation), 2228,4217 (TLS handshake),5797</ref> A simple handshaking protocol might only involve the receiver sending a message meaning "I received your last message and I am ready for you to send me another one." A more complex handshaking protocol might allow the sender to ask the receiver if it is ready to receive or for the receiver to reply with a negative acknowledgement meaning "I did not receive your last message correctly, please resend it" (e.g., if the data was [[Data corruption|corrupted]] en route).<ref> {{cite web |title= handshaking |url= http://encyclopedia2.thefreedictionary.com/Hand+shake+signal | website = TheFreeDictionary's Encyclopedia}} </ref> Handshaking facilitates connecting relatively heterogeneous systems or equipment over a communication channel without the need for human intervention to set parameters. == Example == === TCP three-way handshake === [[File:Three-way-handshake-example.gif|thumbnail|right|500px|Example of three way handshaking]] Establishing a normal [[Transmission Control Protocol#Connection establishment|TCP]] connection requires three separate steps: :# The first host (Alice) sends the second host (Bob) a "synchronize" (SYN) message with its own sequence number <math>x</math>, which Bob receives. :# Bob replies with a synchronize-acknowledgment ([[SYN-ACK]]) message with its own sequence number <math>y</math> and acknowledgement number <math>x + 1</math>, which Alice receives. :# Alice replies with an acknowledgment (ACK) message with acknowledgement number <math>y + 1</math>, which Bob receives and to which he doesn't need to reply. : In this setup, the synchronize messages act as service requests from one server to the other, while the acknowledgement messages return to the requesting server to let it know the message was received. The reason for the client and server not using a default sequence number such as 0 for establishing the connection is to protect against two incarnations of the same connection reusing the same sequence number too soon, which means a segment from an earlier incarnation of a connection might interfere with a later incarnation of the connection. === SMTP === The [[Simple Mail Transfer Protocol]] (SMTP) is the key Internet standard for email transmission. It [[Simple Mail Transfer Protocol#SMTP transport example|includes handshaking]] to negotiate authentication, encryption and maximum message size. === TLS handshake === {{Main|Transport Layer Security#TLS handshake}} When a [[Transport Layer Security]] (SSL or TLS) connection starts, the record encapsulates a "control" protocol—the handshake messaging protocol (content type 22). This protocol is used to exchange all the information required by both sides for the exchange of the actual application data by TLS. It defines the messages formatting or containing this information and the order of their exchange. These may vary according to the demands of the client and server—i.e., there are several possible procedures to set up the connection. This initial exchange results in a successful TLS connection (both parties ready to transfer application data with TLS) or an alert message (as specified below). The protocol is used to negotiate the secure attributes of a session. (RFC 5246, p. 37)<ref>{{cite IETF |rfc=5246 |title=The Transport Layer Security (TLS) Protocol, version 1.2 |publisher=[[IETF]] |date=August 2008 }}</ref> === WPA2 wireless === The [[Wi-Fi Protected Access#WPA2|WPA2 standard for wireless]] uses a four-way handshake defined in [[IEEE 802.11i-2004]]. === Dial-up access modems === One classic example of handshaking is that of [[dial-up modem]]s, which typically negotiate communication parameters for a brief period when a connection is first established, and there after use those parameters to provide optimal information transfer over the channel as a function of its quality and capacity. The "squealing" (which is actually a sound that changes in pitch 100 times every second) noises made by some modems with speaker output immediately after a connection is established are in fact the sounds of modems at both ends engaging in a handshaking procedure; once the procedure is completed, the speaker might be silenced, depending on the settings of operating system or the application controlling the modem. === Serial "Hardware Handshaking" === This frequently used term describes the use of RTS and CTS signals over a serial interconnection. It is, however, not quite correct;{{cn|date=February 2021}} it's not a true form of handshaking, and is better described as [[RS-232|flow control]]. === Mobile device charging === In mobile device chargers offering special quick-charge abilities to supported devices, the charging process will switch up to a higher output voltage for increased power transfer. But this could cause serious damage to an unsupported device or even result in a fire. It is therefore very important for the device and charger to first perform a handshake to "agree" on mutually supported charge parameters. If such a charger can't identify the connected device or determine its compatibility, it will default to normal but much slower charge parameters within the USB standard. == References == {{reflist}} [[Category:Data transmission]] [[Category:Network architecture]] [[Category:Network protocols]] {{Internet access}} [[de:Datenflusssteuerung]]
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:About
(
edit
)
Template:Cite IETF
(
edit
)
Template:Cite book
(
edit
)
Template:Cite news
(
edit
)
Template:Cite web
(
edit
)
Template:Cn
(
edit
)
Template:Internet access
(
edit
)
Template:Main
(
edit
)
Template:Missing information
(
edit
)
Template:Redir
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Search
Search
Editing
Handshake (computing)
Add topic