Question

I know that ports are part of the Transport layer.But when i ask an application to open a port how does it open a port and what is the port's part in the other layers ,and when the data is transferred to the other end of the communication how does it find the other port which is open in the other point?.

Was it helpful?

Solution 2

There are some ports which are public. For example Client A wants to communicate with Server.Now the server has some ports public say port 80.The Client A sends the traffic on port 80 of the server but if Client A keeps on sending its traffic on port 80 of Server then the other Clients cannot communicate with Server.So, after intial interaction Client A with Server on port 80 then Server tell Client A that our further communication should take place on this port eg port 6892.

OTHER TIPS

Ports are in the Transport layer, as you noted yourself. The remainder of your question doesn't make much sense. There is a protocol, which contains port numbers, and an implementation, which makes use of them. It's difficult to see what the mystery is.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top