CS 580 Client-Server Spring Semester, 2004 Networks |
||
---|---|---|
© 2004, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 18-Feb-04 |
Networks
Communication Network
Packets
Stream of bits is divided into separate packets
Kermit Packet Structure
Classes of Communication Services
End-to-end services as seen by the users:
Synchronous communications
Our View of Network Communication with TCP/IP
TCP - Connection-oriented
UDP - Connectionless
TCP gives us a "pipe" between machines to allow us to send messages between machines
UDP
Fast
Client & Server must handle
TCP
Handles
Addresses and Names
IP address is currently a 32-bit number
130.191.3.100 (Four 8 bit numbers)
IPv6 uses 128 bit numbers for addresses
105.220.136.100.0.0.0.0.0.0.18.128.140.10.255.255 69DC:8864:0:0:0:1280:8C0A:FFFF 69DC:8864::1280:8C0A:FFFF
Machines on a network need a unique IP address
127.0.0.1 (localhost)
Common loopback address
Refers to the current computer
Messages sent to 127.0.0.1 to not reach the network
Domain Name System (DNS)
Maps machine names to IP addresses
rohan.sdsu.edu <-> 130.191.143.100
->host rohan.sdsu.edu rohan.sdsu.edu has address 130.191.3.100 ->host 130.191.3.100 100.3.191.130.IN-ADDR.ARPA domain name pointer rohan.sdsu.edu
Top Level DomainsCurrent TLD
Domain
Names
|
Meaning |
COM |
Commercial
organizations
|
EDU |
Educational
institutions
|
GOV |
Government
institutions
|
MIL |
Military
groups
|
NET |
Major
network support groups
|
ORG |
Organizations
not list above
|
ARPA |
obsolete |
INT |
International
organizations
|
CN,IN,MX,US |
http://www.iana.org/domain-names.htm |
biz
|
Business |
info
|
Information |
name
|
For
individuals
|
pro
|
For
professionals
|
aero
|
Forviation |
coop
|
For
coopertives
|
museum
|
For
museums
|
Ports
TCP/IP supports multiple logical communication channels called ports
Ports are numbered from 0 - 65535
A connection between two machines is uniquely defined by:
Well
known ports
|
1
- 1023
|
Registered
Ports
|
1024
- 49151
|
Dynamic/Private
ports
|
49152
- 65535
|
Some Interesting Server Port Numbers
Service |
Port
Number
|
echo
|
7
|
discard
|
9
|
daytime
|
13
|
character
generation
|
19
|
ftp |
21 |
ssh |
22 |
telnet |
23 |
smtp
|
25 |
time
|
37
|
http |
80 |
nntp |
119 |
https |
443 |
doom
|
666 |
mysql
|
3306 |
postgresql
|
5432 |
gnutella
|
6346,
6347
|
Telnet is Your Friend
Telnet & port 23
Examples to Try
Day Time
Type:
telnet sdsu.edu 13
Course Web Site
Type
telnet www.eli.sdsu.edu 80
GET /courses/spring04/cs580/index.html HTTP/1.0 <CR> <CR>Note <Cr> indicates were you need to hit return