LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-13-2014, 12:25 AM   #1
Zero4
Member
 
Registered: Jun 2007
Posts: 71

Rep: Reputation: 0
mapping incoming packets


Hi
I have a computer running as a web server and a file server. I would like to know how incoming packets are mapped, how the computer identifies which packet are to be handled by the web serer.

Please, not to technical, I am a newbie at this.
Thank you
 
Old 05-13-2014, 03:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's the TCP port number that the packet is sent to. Web servers generally listen on port 80 and 443, so a packet hitting the box for those port numbers will be connected to the process listening on that port.
 
Old 05-13-2014, 06:40 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,290

Rep: Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698Reputation: 7698
You can imagine the "line" is connected to the box and there are more than 65 thousand "gates" can be configured to let the information enter. Those gates are named ports and every port has its own program to interpret the information arrived. There is a file /etc/services where you can find the common configuration of those ports (that means which program will listen to which port). TCP and UDP are something like two different languages
web servers generally listen on port 80 and 443 (443 is used for a different kind of connection).
When you want to connect to a host you always need to tell not only the name of that host but the port too. (usually default values used, taken from that /etc/services file).
 
Old 05-13-2014, 10:00 PM   #4
Zero4
Member
 
Registered: Jun 2007
Posts: 71

Original Poster
Rep: Reputation: 0
Thank you, I must of had a brain fade, never thought of port number at the time
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Incoming Packets Francy Linux - Networking 1 05-02-2011 05:00 PM
Mark all incoming packets on connection andrewhiggs Linux - Networking 26 04-16-2010 01:10 PM
check incoming or outgoing packets ilnli Programming 1 07-24-2007 04:08 PM
Incoming and outgoing traffic (packets) increased tooparam General 4 09-22-2006 02:20 PM
logging incoming packets ip address b123coder Linux - Networking 1 11-18-2004 03:17 PM

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

All times are GMT -5. The time now is 09:20 PM.

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