Sponsored Content
Special Forums IP Networking New-Bie doubt in TCP-IP 3 way hand shake Post 302877679 by baker on Monday 2nd of December 2013 10:41:53 PM
Old 12-02-2013
Quote:
Originally Posted by Yoda
It means device B is expecting to hear sequence 2001 (ACK=2001). So in step 3, when ACK is send the SEQ will be 2001.
thanks , i will be reading the RFC.

but why in step2 , sequence number was having no relation with acknowledge number , but in step3 why sequence number has to be the ACQnumber..?

is there any particular reason for that design..?
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

new bie questions

Hi all, I am a new bie and learning linux step by step. I am googling a lot but still unabel to find few things like below: 1. how to clean ipcs if I reboot the system it is cleaned but can I do that with out rebooting the system 2. I don't have any in side the folder /usr/src and one of my... (2 Replies)
Discussion started by: gauri
2 Replies

2. UNIX for Dummies Questions & Answers

few new bie questions related to gdb , telnet

Hi All, 1. how to what is the current line we are executing. List command will display the 10 lines by default. 2. how to put a pointer to the current excuting line when executing the list. 2. if i have set one break point and i want to set 2nd break point do i need to delete the first break... (1 Reply)
Discussion started by: gauri
1 Replies

3. UNIX for Dummies Questions & Answers

A complete New Bie Here

Hello Guys I am a complete New bie in UNIX ( Just know a few of the commands ). Please guide how should I learn Unix In a proper way . I am doing a job, so i will have to do the study at home . Which books , Links, Pages you will suggest me so that i can learn UNIX fast . Thanks (5 Replies)
Discussion started by: supercops
5 Replies

4. IP Networking

Doubt regarding TCP Options negotiation

Hi, I am aware that duirng the intial SYN, SYN-ACK, ACK (connection establishment) phase, both TCP ends advertize TCP options (or extended features) each would like to use for the connection. Ultimately both ends end up using TCP options commonly supported and advertized by both. My doubt... (2 Replies)
Discussion started by: jake24
2 Replies

5. Shell Programming and Scripting

Merge left hand strings mapping to different right hand strings

Hello, I am working on an Urdu to Hindi dictionary which has the following structure: a=b a=c n=d n=q and so on. i.e. Headword separated from gloss by a = I am giving below a live sample بتا=बता بتا=बित्ता بتا=बुत्ता بتان=बतान بتان=बितान بتانا=बिताना I need the following... (3 Replies)
Discussion started by: gimley
3 Replies
sip_create_dialog_req(3SIP)			   Session Initiation Protocol Library Functions		       sip_create_dialog_req(3SIP)

NAME
sip_create_dialog_req, sip_create_dialog_req_nocontact - create an in-dialog request SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ] #include <sip.h> sip_msg_t sip_create_dialog_req(sip_method_t method, sip_dialog_t dialog, char *transport, char *sent_by, int sent_by_port, char *via_param, uint32_t smaxforward, int cseq); sip_msg_t sip_create_dialog_req_nocontact(sip_method_t method, sip_dialog_t dialog, char *transport, char *sent_by, int sent_by_port, char *via_param, uint32_t smaxforward, int cseq); DESCRIPTION
The sip_create_dialog_req() function creates and returns a SIP request with the state information contained in dialog. The method in the resulting request is from method. The method can be one of the following: INVITE ACK OPTIONS BYE CANCEL REGISTER REFER INFO SUBSCRIBE NOTIFY PRACK The resulting request line in the SIP message has the SIP-Version of "2.0". The URI in the request line is from the remote target in the dialog or from the route set in the dialog, if present. See RFC 3261 (section 12.2) for details. The FROM, TO, and CALL-ID headers are added from the dialog. The MAX-FORWARDS header is added using the value in maxforward. The CSEQ header is added using the SIP method in method and the sequence number value in cseq. If cseq is -1, the sequence number is obtained from the local sequence number in the dialog. The local sequence number in the dialog is incremented and is used in the CSEQ header. The VIA header added is created using the transport, sent_by, sent_by_port (if non-zero), and via_param (if any). If dialog has a non-empty route set, the resulting SIP request has the route set from the dialog. The sip_create_dialog_req_nocontact() function is similar to sip_create_dialog_req(), except that it does not add the contact header. RETURN VALUES
The sip_create_dialog_req() and sip_create_dialog_req_nocontact() functions return the resulting SIP message on success and NULL on fail- ure. The value of errno is not changed by these calls in the event of an error. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
libsip(3LIB), attributes(5) SunOS 5.11 6 Aug 2007 sip_create_dialog_req(3SIP)
All times are GMT -4. The time now is 10:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy