Detailed three-way handshake and fourth wave: the face of heart girl, how to grasp?

Author: Liu Yu Chong
description link: https://segmentfault.com/a/1190000019052710

I have a friend, a small waterfall, he confided to me:

He chatted with friends in the coffee shop, met a girl so that time seems to stand still. He describes that moment, his heart was completely caught, crashing the brain, the eyes can no longer be removed from her body. The girl, from time to time to look to her, it was a pair-clear as youthful bright eyes.

Kotaki said that he think about it very, very sure, this time heart. However, from beginning to end, he did not taken that step, he did not know how to do.

2974893-1e5389831f29d32b.png

TCP handshake Agreement: how to turn a feeling fetters.

The plight of small Otaki, is every boy's plight.

I told him, if you know the TCP protocol would grasp for some affection.

TCP (Transmission control protocal), Transmission Control Protocol, not only between the machine and the machine base protocol for transmitting information, but also the people of criterion simultaneous contact.

How to know her dignity? If you read whether she has a crush on you? How to give her a sense of security? How to get her phone number when parting? TCP protocol, everything clearly written.

The first handshake

I said to the little waterfall:

A girl, no matter how high her cold personality, will always be pleased to accept your goodwill.

Like the TCP protocol, the server for new clients will be placed Listen (waiting for a response) state.

You have to do, and must do, it is:

Looking for sympathy, and provide specific information.

I told a small waterfall, I have also met at the airport I had to make an instant heart girl, I did, just naturally went up, told her:

"You seem to take a tour of the plane? Flight number KN5855 right now."

This is a very simple thing for the boys, because your site appears, is resonance. You about this place, there must be some specific information to share.

Therefore, a small waterfall, you should embark on to say:

You often come to this cafe bar, their home caramel macchiato great.

Such talk, of girls is to provide a sense of security:

You have is a common topic, and will provide substantial value to men, not people casually hooked up the mess. Empathize is very powerful, no girl would refuse to respond, even looks a bit shabby.

Coming back to the TCP protocol, it is such a requirement:

The client sends a packet to the server, a request SYN = 1, while selecting an initial sequence number seq = x.

(SYN synchronization is synchronization abbreviation, seq sequcence number of abbreviations.)

In this case, the client's status is changed to SYN-SENT (synchronization_sent synchronization has been sent) state. In other words, a small waterfall, you respond patiently girl wants to be alone.

This is the "first handshake."

The second handshake

With synchronous request that you provide SYN = 1 and specific information seq = x. Girls will respond based on this information. Then the girl from the LISTEN state becomes SYNC_RCVD (synchronization_recieved synchronization has been received).

At the airport I met this girl is my answer:

Er er, I also take this flight, but did not see you. You are on a business trip to Shenzhen it?

Answer, is human nature. You will be able to get a friendly response.

TCP protocol is specified:

When the server receives a request message, it will send a confirmation message to the client. SYN = 1, ACK = 1, ack = x + 1, while the transmission sequence number seq = y.

(ACK is confirmed acknowledgement abbreviation, lowercase ack acknowledgment is ID)

So, the girls will agree with you, just point and extend the information, and will provide a new information point.

Girls do not dislike you, but she also need to make sure you're not really have a crush on her.

If I really just feel very lucky flight numbers it? If you really would like to drink a small waterfall caramel macchiato it? She could not confirm that the boys are not trying to communicate with her, so be sure to propose new topics. Also, throw a new topic will let each other do not seem awkward.

Girl almost certainly respond like this:

Express sympathy to confirm information, and based on your information extend, and provide new information points.

So small waterfall, you heart girl will almost certainly similar response:

Er er, I like Hazel Renma Qi duo. I live near here, How about you?

You receive a friendly response, the hearts of some, you know, then you can at least establish a preliminary friendship. At this point, your status is changed to ESTABLISHED. (establish connection)

Third handshake

While for you, this sentimental friendship between men and women has been established. But the girl, she is still waiting for your response - she also worried that you just have to ask the bar.

This is a good quick rush to appease beautiful girl now!

Expression of identity, according to the girl's extended topic, extended according to their topic.

For example, I will answer:

Ah yes, there are a few customers need to talk in Shenzhen. I was sitting in business class so you did not see it.

Therefore, a small waterfall, you need to be a response to her new topic, and do not lose their topic. Such talk can go on two topics.

Such provisions in the TCP protocol:

After the client receives TCP sent by the server to establish a verification request, the client is given an acknowledgment to the server. The server returns ACK = 1, the confirmation number ack = y + 1, on its own serial number plus seq = x + 1.

This girl is very important, you also said that recognition of her words, and can also catch her topic, but did not lose their topic. - is able to take care of her feelings, but also adhere to the people themselves.

At this time, the girl became a state ESTABLISHED. Both of you have become ESTABLISHED, the next, you can unimpeded exchange.

TCP three-way handshake, and it is optimized love the game.

The boy will think, how I behave fly? TCP gives the answer, + resonance specific topic.

The hearts of girls will think: I am interested in it for him? He is to talk to people? How to "waste test"?
TCP gives the answer: agree resonance + + + New extension specific topic other topics.

The hearts of the boys would think, how left her high EQ assertive good impression?
TCP gives the answer: agree with the other topics + + extension to continue their topic.

Think about it this way, both sides are neither obvious embarrassment, and decent comfort, but also saves time and energy of two people.

2974893-0e763482ac5c5b05.png

Waving the TCP protocol: How to parting with dignity.

Time is always short, you talk to the departure time.

Only a decent farewell, it means that the future relationship still continues to heat up.

Rest assured, TCP protocol has been planned out for you.

The first wave

As the active side of the boys, need to denote, do not wait until the girls put forward clear-cut, so as to leave a memorable encounter with dismay as this.

you need to

Presented separately, are given specific information.

At this time, the best time to phone number / micro signal.

Well I have to go. your phone number?

TCP protocol is specified:

The client process makes a connection release message and stops sending data. Set packet FIN = 1, the sequence number seq = u

(FIN mean finis end mean)

You have requested over, quietly waiting just fine. Active and silent, giving enough space for the girls, this is the most decent way respectively. Then your state FIN-WAIT-1 (to be terminated to be 1)

The second wave

Friendly chat suddenly came to an end. Girls hearts will be some small loss, then you have to request micro letter, she almost certainly would agree.

Then the girls will find the paper, put their phone number or micro signal addressed to you. And tell you some other words.

He agrees, and depending on the response information. And provide new details.

For example, she said:

Ah yes, and so I wrote you. You look outside as if going to rain.

TCP protocol is specified:

Server receives a connection release message, a confirmation message, ACK = 1, ack = u + 1. seq = v.

Because you asked to leave, the girl also fascinating. On the one hand it would agree to leave, on the one hand to extend your topic. To confirm that you really want to leave, she would say a new general topic, such as rain.

Girls from receiving your leave request, to respond to your sentence, she was in CLOSE_WAIT state, she will begin construction of psychological adaptation empty feeling when you leave.

Of course, the expression of adults, always obscure and decent. Just a touch of "going to rain."

And you heard her say this, but do not speak quietly. You enter FIN-WAIT-2 state.

You're waiting for her phone number, she suddenly could not talk to write it? Hold back, do not respond.

Third Wave

When the girl to write down the phone number, she will also make preparations to leave mental construction, know that this first encounter stop here. At this time, she said:

Go back to it, I wrote to you anyway. I do not know why you stay together and very happy.

Look, TCP protocol affect your behavior patterns one by one. You do not respond, she would change the subject, she would begin to guess, she would start and so on, she will begin to nostalgia.

We agreed to separate, once again respond according to your specific information. Provide new and additional specific information.

TCP protocol is specified:

After the server transmits the final data is completed, the client sends a connection release message FIN = 1, ACK = 1, ack = u + 1, and the server sends some data off, Serial No. seq = w

Girls say this sentence, entered the LAST_ACK (Final Action) status - in your initiative, she is waiting for you.

You heard the girl speak again, would you give up, what you waiting for. You enter TIME_WAIT stage.

Fourth Wave

I know she was leaving, your heart suddenly a pain. But leave has become inevitable, decent to say the last words of her!

Got it. I received a good phone number. Meeting you is the most fortunate of me this way.

TCP protocol is specified:

The client receives a connection release message server must send acknowledgment, ACK = 1, ack = w + 1, and their serial number seq = u + 1.

Hear you finish the sentence, the girl he closed the door, the car slowly started. Girls entering the state CLOSED (close the connection).

You raise parting, but a long time stand still. Waited 2MSL (twice the response time to talk so long), Hello hope the car stopped suddenly, the girl got out.

But everything did not happen.

Wonderful encounter is over. You enter the CLOSED state.


2974893-e77d519c9d72b395.png

TO: small 泷

Small waterfall, you know?

Knows TCP protocol, they would know how to seize the girl belongs to titillate your heartstrings.

Perhaps, this is supposed to encounter when the screen:

  • "You often come to this cafe bar, their home caramel macchiato great."

SYN=1, seq=x

The client sent into the SYN_SENT state.

  • "Me too, I like Hazel Renma Qi duo. I live around here, How about you?"

SYN = 1, ACK = 1, ACK = x + 1, SEQ = y

The original server is the LISTEN state, the transmission state into the SYN_RCVD

  • "What a coincidence, I also live in this neighborhood. They shop Macchiato is a sign Oh."

ACK = 1, ACK = y + 1, SEQ = x + 1

After transmission, the SYN_SENT state from the client over the ESTABLISED state.

Server receives the packet, enter ESTABLISTED state from SYN_RCVD state.


Parting, so you will dismay parting:

  • "I have something going, you add my micro believe it!"

FIN=1, seq=u

The client enters the FIN-WAIT-1 state from ESTABLISED state.

  • "Well, I sent you - ha ha good your avatar cute"

ACK=1, ack=u+1, seq=v

After sending, the server from either the ESTABLISHED state, into the CLOSE-WAIT state.

After receiving, from the client FIN-WAIT-1 state, into the state FIN-WAIT-2.

  • "Go you busy right! It has been passed. Good fun today!"

FIN=1, ACK=1, ack=u+1, seq=w

After sending, the server from the CLOSE-WAIT state, enters LAST_ACK state.

  • "Ah, I received. I am also very happy to meet you."

ACK=1, ack=w+1, seq=u+1

After sending, from the client FIN-WAIT-2 state, into the TIME-WAIT state.

Upon receipt, the server from the LAST-ACK state, into the CLOSED state.

Then she left. You stare at her, she looked back again and again, until out of sight outside.

Wait 2MSL, from the client TIME-WAIT state, into the CLOSED state.

Every day, there are trillion billion times TCP connections, which are a repeat of the picture for you.

Be brave, without fear of being rejected, trillion billion times TCP connections are successful, how can you fail?

Because TCP is a regular network communication, but also the tacit understanding between human exchange rules.

Quietly, the heart has long been undercurrents. But just to say to you.

"What a coincidence, I am also a tour flights."

2974893-d9cbfb9191c6e5a0.png

A few rules to help you remember it all:

  1. Every communication, all with seq serial number. Every communication, the state will change.
  2. SYN = 1 sent once in each stage of the two sides shook hands. FIN = 1 sent once in each stage waving both sides.
  3. When there is a confirmation code ACK = 1, with a confirmation number will ack. ack +1 in the upper one of the received sequence number.

Reproduced in: https: //www.jianshu.com/p/6c905be44e5c

Guess you like

Origin blog.csdn.net/weixin_34257076/article/details/91259265