WEEK XII
THE CLIENT SERVER RELATIONSHIP
Introduction
CLIENT SERVER INTERACTION
server on the internet.
messaging pattern.
communication.
Fig.: Client-Server interaction
URI – UNIFORM RESOURCE IDENTIFIER
URN – UNIFORM RESOURCE NAME
URL – UNIFORM RESOURCE LOCATOR
TCP/IP LAYER 4 PROTOCOLS
Fig.: Protocol Stacks and Protocols
TCP AND UDP
Fig.: Connection Oriented Protocol
UDP
Fig.: Steps for delivery of packets in TCP and UDP
MULTIPLEXING USING TCP PORT NUMBERS
• A TCP connection is specified by a 4-tuple – source IP address, source port, destination IP address, destination port
• TCP allows multiplexing of multiple connections between end systems to support multiple applications simultaneously
• Arriving segment directed according to connection 4-tuple
POPULAR TCP/IP APPLICATIONS
1. Bootstrap Protocol - Bootstrap Protocol - BOOTP provides a dynamic method for associating workstations with servers. It also provides a dynamic method for assigning workstation Internet Protocol (IP) addresses and initial program load - IPL sources.
2.Connecting to the Internet - To connect to IBM I operating system to an Internet service provider - ISP or configure operating system as a Web data server or application server, one can use the Internet Setup wizard to connect to the network.
3.Dynamic Host Configuration Protocol - Dynamic Host Configuration Protocol - DHCP is a TCP/IP standard that uses a central server to manage IP addresses and other configuration details for an entire network.
4. IBM Tivoli Directory Server for i (LDAP) - IBM Tivoli Directory Server for i is a function of IBM i that provides a Lightweight Directory Access Protocol (LDAP) server. LDAP runs over Transmission Control Protocol/Internet Protocol - TCP/IP and is popular as a directory service for both Internet and non-Internet applications.
5. Domain Name System - Domain Name System - DNS is a distributed database system for managing host names and their associated Internet Protocol - IP addresses.
6. E-mail: Use this information to plan for, configure, use, manage, and troubleshoot e-mail on system.
7. File Transfer Protocol - One can set up IBM i platform to send, receive, and share files across networks by using File Transfer Protocol - FTP. Users can also rename, add, and delete files across a network using FTP. Before setting up a system to transfer files, there must be TCP/IP configured and started on that system.
8. IP filtering and network address translation - IP filtering and network address translation NAT act like a firewall to protect internal network from intruders.
9. IBM i NetServer - IBM® i Support for Windows Network Neighborhood IBM i NetServer is an IBM i function that enables Windows 2000, Windows XP, Windows Server 2003, and Windows Vista clients to access IBM i shared directory paths and shared output queues.
10. INETD - Use this information to plan for, configure INETD on the system.
11. OMPROUTED RIP and RIPng support - Routing Information Protocol - RIP is the simplest routing protocol for exchanging routing information within an autonomous system. Routing Information Protocol next generation RIPng is the latest version of RIP for networks that are based on Internet Protocol version 6 - IPv6. Both protocols are supported by the OMPRPUTED server.
12. Open Shortest Path First support - IBM i support includes the Open Shortest Path First OSPF protocol. OSPF is a link-state, hierarchical Interior Gateway Protocol IGP for network routing.
13. IBM HTTP Server for I - IBM HTTP Server for i can be used to establish a Web presence and to work with Web applications. The IBM Web Administration for interface is also included to help you configure and manage your Web applications.
14. Quality of service - The IBM i quality of service QoS solution enables the policies to request network priority and bandwidth for TCP/IP applications throughout the network.
15.Remote Access Services - PPP connections - Point-to-Point Protocol - PPP is an Internet standard for transmitting data over serial lines.
CONNECTION ESTABLISHMENT AND TERMINATION
Fig.: A successful TCP Connection
USER DATAGRAM PROTOCOL
Fig.: UDP Header
PORT NUMBERS
Fig.: Port used for FTP
TCP AND UDP
Fig.: Message transmission function at TCP and UDP
Fig.: Key differences between TCP and UDP for organizations.
Comparison of some features of TCP and UDP
Features | TCP | UDP |
Nature of connectivity | TCP is connection-oriented. | USP is a message-oriented and connectionless protocol. |
Error checking | It uses timeout, checksum, and acknowledgment to prevent and correct errors. | It uses only checksum to avoid errors and cannot correct errors. |
Order of data transmission | TCP data packets have a sequencing number in the header to maintain the order of transmission. | UDP data packets arrive in no fixed order, and incorrect sequencing cannot be detected or corrected. |
Speed and efficiency | It has a longer latency time and consumes more resources. | It starts the connection faster, delivers data at lower latency, and consumes fewer resources. |
Features | TCP | UDP |
Multicast and broadcast | It is ideal for point-to-point transmission only, with confirmation of receipt. | It is suitable for broadcasting data packets to an entire group of endpoints, regardless of whether they listen. |
Flow control | It utilizes flow control information to calibrate the pace of data transmission, to avoid overwhelming the recipient. | It does not use flow control and sends data at a rate suitable for the originating server. |
Congestion control | It implements congestion avoidance algorithms to prevent data packets from getting lost in a congested network. | It cannot control network congestion and drops packets if too much traffic is on the pathway. |
Features | TCP | UDP |
Reliability | TCP’s most significant advantage is that it is highly reliable. | Its architecture is designed in a manner that makes it inherently unreliable. |
Header | It uses a variable-length header, of up to 60 bytes. | It uses a fixed-length header of only eight bytes. |
Application | It is suitable for use cases where data integrity, including images, web pages, data files, etc. matters more than transmission speed. | It is ideal for live data transmission (e.g., media), where transmission is so fast that a few dropped packets do not matter. |
SOCKET PAIRS
THE NETSTAT COMMAND
APPLICATION LAYER SERVICES
The Application layer includes the following functions
Services of Application Layers
Network Virtual terminal
File Transfer, Access, and Management (FTAM)
Addressing
Mail Services
Directory Services
Authentication
COMMON NETWORK APPLICATION SERVICES
Directory Services
File Services
File services include sharing and transferring files over the network.
Communication Services
E Mail, Social Networking, Internet Chat , Discussion Boards
Application Services
These are nothing but providing network based services to the users such as web services, database managing, and resource sharing.
DOMAIN NAME SYSTEM
DOMAIN NAME TRANSLATION
DNS SERVERS
Fig.: Comparison between Web Server and DNS Server
HTTP
WEB CLIENTS AND SERVERS
Fig.: HTTP messages transferred between Client and Server
FTP:File Transfer Protocol
VIRTUAL TERMINALS
REMOTE ACCESS WITH TELNET OR SSH
Fig.: Communication between Telnet Client and Telnet Server
SSH
EMAIL- EMAIL PROTOCOLS
All three use TCP, and the last two are used for accessing electronic mailboxes.
SMTP
POST OFFICE PROTOCOL (POP3)
Fig.: Use of SMTP and POP3
IMAP4 (Internet Mail Access Protocol version 4)