997 views
0 votes
0 votes
TCP and UDP are in same session or different session?

-----------------------------------------------------------------------------------------------------------

What is meaning of session here? Does it means session layer of OSI model?

1 Answer

Best answer
1 votes
1 votes

A session is a link between two points. However, TCP and UDP sessions are different.

If you connect to a website, several TCP and UDP sessions might get established at that time with that server.

TCP session is secure and it cares in what order, how the packets are reaching. Error handling, missing packets etc is taken care by TCP. 3 way handshake is used to establish a TCP session. Thus, a TCP session is defined by my pc's ip:portno and server's ip:portno as sender or receiver.

UDP session on other hand, is just like opening a port from the remaining port numbers (till 65536). Any server that sends a packet destined to my ip:port address will be accepted by my computer. There is no such connection establishment or anything. Thus, a UDP session is defined only by my pc's ip:portno

Session layer is the layer responsible for session management. For eg. Opening and closing ports for tcp udp, managing session duration, etc.

Hope this helps :)

selected by

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
1 answer
2
Sambhrant Maurya asked Sep 13, 2018
1,001 views
The intermediate routers between source and destination do not need the following info in the IP header;a)Protocolb)Identification numberc)Source IPd)IP versione)None of ...
2 votes
2 votes
0 answers
3
Sambhrant Maurya asked Sep 12, 2018
752 views
What is the minimum and maximum number of packets required to be exchanged for connection establishment, data transfer and connection termination in a TCP 3 way handshake...
0 votes
0 votes
1 answer
4