Session Initiation Protocol was designed by IETF and is described in RFC 3261. It’s the protocol of application layer that describes the way to found out Internet telephone calls, video conferences and other multimedia connections, manage them and terminate them. It’s one module. it’s ready to establish two way party session, multiparty session and multicast session. It’s design independent of underlying transport layer. It’s ready to run on UDP or TCP.
SIP address :
In a regular telephone communication, a phone number identifies the sender and another phone number identifies the receiver. In SIP, the sender and receiver are often identified by any of these.
- An Email address.
- An IP address.
- A Phone number
The representation is represented as URLs using sip scheme :
SIP messages :
SIP may be a text based protocol modeled on HTTP. It uses messages in ASCII text. Each message features a header and a body. the varied SIP messages are as follows.
|1.||INVITE||It requests for initiation of a session.|
|2.||ACK||It confirms that session has initiated.|
|3.||BYE||It request for the termination of the session.|
|4.||OPTIONS||It query a host about its capabilities.|
|5.||CANCEL||It will cancel the pending request.|
|6.||REGISTER||It informs a redirection server about the user’s current location.|
SIP Session :
A simple session using SIP consists of the following.
- Establishing a session.
- Terminating the session
Establishing a session :
It requires a three-way handshake. The caller will send INVITE message. If the caller is willing to start out, he/she sends a reply message. to verify that a reply code is received, the caller send an ACK message.
After establishment of session, the caller and callee communicate using two temporary ports.
Terminating the session :
The session can often terminated by using BYE message send by either caller or callee.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
- Difference between Stop and Wait protocol and Sliding Window protocol
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
- Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
- Session Management in HTTP
- Session Layer Messaging Protocols in IoT
- Design issues in Session Layer
- Internet Control Message Protocol (ICMP)
- Sliding Window Protocol | Set 1 (Sender Side)
- Sliding Window Protocol | Set 2 (Receiver Side)
- Simple Mail Transfer Protocol (SMTP)
- Program to remotely Power On a PC over the internet using the Wake-on-LAN protocol.
- Internet Protocol version 6 (IPv6)
- Internet Protocol version 6 (IPv6) Header
- Sliding Window Protocol | Set 3 (Selective Repeat)
- File Transfer Protocol (FTP) in Application Layer
- How Address Resolution Protocol (ARP) works?
- Distance Vector Routing (DVR) Protocol
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.