LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2009, 08:36 AM   #1
ranban282
LQ Newbie
 
Registered: Jul 2006
Location: Hyderabad
Distribution: Fedora 8
Posts: 28

Rep: Reputation: 2
Multiple TCP connections


Hello,
I'm curious to know what happens when 2 connections are opened from host A to host B (Let's say that B's a web server, and A has multiple browsers konqueror and firefox open and hitting the same site). How is it ensured that the content on firefox is the one that was meant for firefox, and not the content intended for konqueror.

I suppose that an analogous situation in UDP would be application x and application y on box A try to retrieve a message from box B on port p. How is it ensured that A doesn't get B's message?

Thanks in advance
 
Old 08-12-2009, 09:16 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
The Session Layer provides the mechanism for opening, closing and managing a session between end-user application processes
http://en.wikipedia.org/wiki/Session_Layer

Each TCP/IP network connection from client A to server B will have it's own network port connection.

http://www.ipprimer.com/tcpudp.cfm

Some other helpful info using command netstat with example:

If we needed to know exactly which application owned a particular network connection, we would use the -p | --program switch which gives us the PID and process name of the owner process. If we want to see the unix user and the PID and process we'll add the -e | --extend switch.
Code:
# netstat -p -e --inet --numeric-hosts
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name   
tcp        0      0 192.168.100.254:ssh     192.168.100.17:49796    ESTABLISHED root       25453      6326/sshd
tcp        0    240 192.168.99.254:ssh      192.168.99.35:42948     ESTABLISHED root       171748     31535/sshd
http://linux-ip.net/html/tools-netstat.html
 
Old 08-13-2009, 04:04 PM   #3
ranban282
LQ Newbie
 
Registered: Jul 2006
Location: Hyderabad
Distribution: Fedora 8
Posts: 28

Original Poster
Rep: Reputation: 2
Thanks for your response - I understood it when I used wireshark.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using TCP to do ssh connections within an app nano2 Linux - Software 6 09-19-2008 05:20 AM
List ongoing TCP connections krizzz Solaris / OpenSolaris 7 06-30-2007 01:50 AM
Kill TCP connections ballistic509 Debian 2 03-14-2007 05:33 PM
how many TCP connections at a time? hegdeshashi Linux - Networking 5 01-05-2006 11:19 PM
Need a way to limit TCP connections ewerta Linux - Networking 1 07-25-2005 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration