Lecture 3
Lecture 3
Computer
and
Information
Sciences
Information
Technology
Prepared by Dr.Samia Chelloug
Networks Programming
and Applications
IT 341T
Lecture 3: Networks
Programming Basics
Main Reference
• Client-server
• Peer-to-peer (P2P)
Clients:
• communicate with server
• may be intermittently connected
• may have dynamic IP addresses
• do not communicate directly with each
other
Applications with P2P
Processes in different hosts
architectures have client
communicate by exchanging
processes & server processes
messages
2
How can a client process communicate with a server process?
0
Well-known ports. The ports ranging from 0 to 1023 are
assigned and controlled by ICANN. These are the well-
known ports.
We can use the grep utility to extract the line corresponding to the
desired application. The following shows the port for FTP. Note
that FTP can use port 21 with either UDP or TCP.
Example (continued)
SNMP uses two port numbers (161 and 162), each for a
different purpose.
2
Create
5
Create