0% found this document useful (0 votes)
24 views7 pages

Client - Server Architecture: A Basic Introduction

This document provides an overview of client-server architecture and the TCP protocol. It explains that in a client-server model, the client creates a TCP socket to establish a connection with the server, communicate with it, and then close the connection. The server creates a TCP socket, assigns a port, listens for connections, accepts new connections, communicates with clients, and closes connections. It also describes that TCP provides a reliable byte-stream channel using connection establishment, data transfer, and connection termination phases. Sockets are defined as constructs that support network input/output through reading from and writing to sockets.

Uploaded by

VivekDixit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views7 pages

Client - Server Architecture: A Basic Introduction

This document provides an overview of client-server architecture and the TCP protocol. It explains that in a client-server model, the client creates a TCP socket to establish a connection with the server, communicate with it, and then close the connection. The server creates a TCP socket, assigns a port, listens for connections, accepts new connections, communicates with clients, and closes connections. It also describes that TCP provides a reliable byte-stream channel using connection establishment, data transfer, and connection termination phases. Sockets are defined as constructs that support network input/output through reading from and writing to sockets.

Uploaded by

VivekDixit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

Client Server Architecture

A Basic Introduction
Ankita Negi 009964331
Nisha Sharma 010028616
Vivek Dixit 009964318
Fall 2014

Client Server Model


Client
Create a TCP socket
Establish connection
Communicate
Close the connection
Server
Create a TCP socket
Assign a port to socket
Set socket to listen
Repeatedly
Accept new connection
Communicate
Close the connection

Transmission Control Protocol


Core protocol of the Internet
protocol (IP suite)
Reliable byte-stream channel(in
order, all arrive, no duplicates)
connection-oriented and
bidirectional
Provide end-to-end transport
Operation divided into three
phases
connection establishment
data transfer
connection termination

SOCKETS
It is a construct that supports network input/output.
Communication is achieved by reading data from the socket and
writing data to it.
Simplified socket structure with five fields:
Family
: defines the protocol group (IPv4, IPv6, UNIX
domain protocols)
Type
: defines the exchange-type (stream, packet, raw)
Protocol
: set to zero for TCP/ UDP
Local address : combination of local IP and application port
address.
Remote address: combination of remote IP and application port address

DEMO
Start server and client.
Implement following commands:Client :
LPWD
LCD
LS
BYE
Server:
PWD
CD

CONCLUSION
implementation of a
client/server structure
understanding SOCKETS - a
construct that supports network
input/output
Understanding TCP
functionality for providing
reliable communications
Use this structure as a
fundamental for implementing
multiple-threading and other
client server r applications

THANK YOU!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy