Basic Concept of Networking
Basic Concept of Networking
Week 4
• smaller scope
– Building or small campus
• usually owned by same organization as attached devices
• data rates much higher
• switched LANs, eg Ethernet
• wireless LANs
The Internet
Browsers
Web servers
www.uu.se Internet
http://www.uu.se/
www.w3c.org
Activity.html
7
OSI LAYER
1
Simple Client-Server
TCP and UDP
TCP (Connection-Oriented)
TCP Connection Establishment – solution
three way handshake
6-
31
■ Twoarmy issue
□No protocol can work
□One side should always take more risk
TCP Connection Release – solution
•Three way handshake + timeout
• Host 1 Host
2
■ Examples
□ File Transfer Protocol : FTP (21)
□ Secure Shell: SSH (22)
□ Teletype Network: TELNET (23)
□ Simple Mail Transfer Protocol: SMTP (25)
□ Hypertext Transfer Protocol: HTTP (80)
UDP (Connection-less)
UDP Properties
■ UDP provides an unreliable datagram service
□Packets may be lost or delivered out of order
□Message split into datagrams, user sends datagrams
as packets on network layer
□No buffer at either sending or receiving side
□Unreliable but fast
□Full duplex
□Application must deal with lost packets
UDP Application Examples
■ When to use UDP
□ Reduce the requirement of computer resources
□ The checking scheme has provided completely by the application
program
□ When using the Multicast or Broadcast to transfer
□ The transmission of Real-time packets
■ Examples
□ Trivial File Transfer Protocol , TFTP
□ Simple Network Management Protocol , SNMP
□ Dynamic Host Configuration Protocol , DHCP
□ Domain Name System , DNS
TCP vs. UDP
TCP UDP
connection-oriented connectionless
confirmed service unconfirmed service