i've understood to some extent but please be patient with me and clarify the doubts that i have below
i would like to further know if what you are saying means that each process / application requesting packets from a server on internet is assigned a specific port number . is that true ?
so if multiple tabs in a browser are browsing a yahoo site. each of these tabs have a different port number.
in that case each time i try to open a new url in my browser it gets assigned a new port number.
I am thinking that when we enter a new url in the browser , a new port number gets assigned to it . so all the ip packets generated by this process contain the same port number. the destination server , notes down this port number somewhere and when it sends a reply to the client browser it puts that port number in the ip packets.
is my understanding correct ?
Main Topics
Browse All Topics





by: Otto_NPosted on 2009-09-21 at 05:01:10ID: 25381963
It is the TCP/UDP port number associated with the particular data flow. But let me explain:
IP packets carries information across IP networks, but it does not know how to handle continuous streams af data (such as the session data between you and the proxy-server). This is where TCP comes in: The Transmission Control Protocol (TCP) operates on Layer-4 of the OSI reference model, and handles the segmentation and reassembly of continuous streams of data between higher-level applications.
Because there can be more than one simultaneous connection to a specific server, even from the same host (i.e. having multiple browser windows open to the same site), TCP needs a way to distinguish between different data streams, even if the IP addresses are the same. For this TCP implements a port number (also sometimes called socket number). The port number is a 16-bit number that identifies the application/computer process that the specific packet is destined for.
Let me know if i need to point you to a couple of Internaet resources that can assist.