SlideShare uma empresa Scribd logo
1 de 21
Quotation -As you so ,so shall you reap.
 Presented by : Shafique Rahman(ADCS,III)
 Guided by : Sir Masroor Ahmed
 Topic : Client/Server Architecture
 Date: 30-01-2017
 Day : Monday
 Institute : IBA C.C N/Feroze
Introduction to
PROCESS-TO-PROCESS DELIVERY
PROCESS-TO-PROCESS DELIVERY
 The data link layer is responsible for node-to-node delivery.
 The network layer is responsible for host-to-host delivery.
 Communication on the Internet is not defined as the
exchange of data between two nodes or between two hosts.
 Real communication takes place between two processes
(application programs).
 We need process-to-process delivery.
 However, at any moment, several processes may be running
on the source host and several on the destination host.
PROCESS-TO-PROCESS DELIVERY
 To complete the delivery, we need a mechanism to deliver
data from one of these processes running on the source
host to the corresponding process running on the
destination host.
 The transport layer is responsible for process-to-process
delivery-the delivery of a packet.
 As we will see later.
Client/Server Paradigm or Architecture
 Although there are several ways to achieve process-to-
process communication.
 The most common one is through the client/server
paradigm.
 A process on the local host, called a client, needs services
from a process usually on the remote host, called a server.
 Both processes (client and server) have the same name.
 For example, to get the day and time from a remote
machine, we need a Daytime client process running on the
local host and a Daytime server process running on a
remote machine.
Client/Server Paradigm or Architecture
 Operating systems today support both multiuser and
multiprogramming environments.
 A remote computer can run several server programs at the
same time, just as local computers can run one or more
client programs at the same time.
Client/Server Paradigm or Architecture
 For communication, we must define the following:
 1. Local host
 2. Local process
 3. Remote host
 4. Remote process
Addressing
 Whenever we need to deliver something to one specific
destination among many, we need an address.
 At the data link layer, we need a MAC address to choose one
node among several nodes if the connection is not point-to-
point. A frame in the data link layer needs a destination MAC
address for delivery and a source address for the next node's
reply.
Addressing
 At the network layer, we need an IP address to choose one
host among millions. A datagram in the network layer
needs a destination IP address for delivery and a source IP
address for the destination's reply.
 At the transport layer, we need a transport layer address,
called a port number, to choose among multiple processes
running on the destination host. The destination port
number is needed for delivery; the source port number is
needed for the reply.
 In the Internet model, the port numbers are 16-bit
integers between 0 and 65,535.
Addressing
 The client program defines itself with a port number,
chosen randomly by the transport layer software running
on the client host.
 This is the ephemeral port number.
 The server process must also define itself with a port
number.
 This port number, however, cannot be chosen randomly.
 The Internet uses universal port numbers for servers;
these are called well-known port numbers.
Addressing
 For example, while the Daytime client process, discussed
above, can use an ephemeral port number 52,000 to
identify itself, the Daytime server process must use the
well-known (permanent) port number 13.
 Following Figure shows this concept.
Daytime client daytime server
DD52,000 13
Data 13 52,000
Transport layer Transport layer
DD
Addressing
 It should be clear by now that the IP addresses and port
numbers play different roles in selecting the final
destination of data.
 The destination IP address defines the host among the
different hosts in the world.
 After the host has been selected, the port number defines
one of the processes on this particular host
lANA Ranges
 The lANA (Internet Assigned Number Authority) has divided
the port numbers into three ranges:
 Well known ports-The ports ranging from 0 to 1023 are
assigned and controlled by lANA.
 Registered ports-The ports ranging from 1024 to 49,151
are not assigned or controlled by lANA. They can only be
registered with lANA to prevent duplication.
 Dynamic (or private) ports-The ports ranging from 49,152
to 65,535 are neither controlled
 nor registered. They can be used by any process. These
are the ephemeral ports.
IP addresses versus port numbers
IP header IP address
selects the host
Port number
selects the process
Socket Addresses
 Process-to-process delivery needs two identifiers, IP
address and the port number.
 The combination of an IP address and a port number is
called a socket address.
 The client socket address defines the client process
uniquely.
 The server socket address defines the server process
uniquely
Socket Addresses
 A transport layer protocol needs a pair of socket
addresses:
 The client socket address
 The server socket address
 These four pieces of information are part of the IP header
and the transport layer protocol header.
Figure : Socket address
Multiplexing and Demultiplexing
Processes Processes
Happiness of your life depends upon quality
of your thoughts.
I hope you enjoyed my presentation.
Client server architecture

Mais conteúdo relacionado

Mais procurados

Reliable stream transport service
Reliable stream transport serviceReliable stream transport service
Reliable stream transport serviceajay vj
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolIshtdeep Hora
 
DCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packetsDCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packetsrajshreemuthiah
 
Transport Layer Part 1
Transport Layer Part 1Transport Layer Part 1
Transport Layer Part 1Tutun Juhana
 
Transport services
Transport servicesTransport services
Transport servicesNavin Kumar
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3farshad33
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP PresentationHarish Chand
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)Fatbardh Hysa
 
A day in the life of a Web Request
A day in the life of a Web RequestA day in the life of a Web Request
A day in the life of a Web RequestMD.ANISUR RAHMAN
 
Transport protocols
Transport protocolsTransport protocols
Transport protocolsOnline
 
TCP IP
TCP IPTCP IP
TCP IPhivasu
 
6 2 transport layer (tcp)
6 2 transport layer (tcp)6 2 transport layer (tcp)
6 2 transport layer (tcp)Tutun Juhana
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure callSunita Sahu
 

Mais procurados (20)

Reliable stream transport service
Reliable stream transport serviceReliable stream transport service
Reliable stream transport service
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
DCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packetsDCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packets
 
Transport Layer Part 1
Transport Layer Part 1Transport Layer Part 1
Transport Layer Part 1
 
Transport services
Transport servicesTransport services
Transport services
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Week4 lec1-bscs1
Week4 lec1-bscs1Week4 lec1-bscs1
Week4 lec1-bscs1
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
Transport layer
Transport layerTransport layer
Transport layer
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)
 
A day in the life of a Web Request
A day in the life of a Web RequestA day in the life of a Web Request
A day in the life of a Web Request
 
CCNA 1 Chapter 7 v5.0 2014
CCNA 1 Chapter 7 v5.0 2014CCNA 1 Chapter 7 v5.0 2014
CCNA 1 Chapter 7 v5.0 2014
 
Week9 lec1
Week9 lec1Week9 lec1
Week9 lec1
 
Transport protocols
Transport protocolsTransport protocols
Transport protocols
 
TCP/IP(networking)
TCP/IP(networking)TCP/IP(networking)
TCP/IP(networking)
 
TCP IP
TCP IPTCP IP
TCP IP
 
6 2 transport layer (tcp)
6 2 transport layer (tcp)6 2 transport layer (tcp)
6 2 transport layer (tcp)
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
 

Semelhante a Client server architecture

Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingKeyur Vadodariya
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxGirT2
 
Advance Java Programming( CM5I) 4. Networking Basics
Advance Java Programming( CM5I) 4. Networking BasicsAdvance Java Programming( CM5I) 4. Networking Basics
Advance Java Programming( CM5I) 4. Networking BasicsPayal Dungarwal
 
07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.pptssuserf7cd2b
 
Final networks lab manual
Final networks lab manualFinal networks lab manual
Final networks lab manualJaya Prasanna
 
Лекц 7
Лекц 7Лекц 7
Лекц 7Muuluu
 
Arun prjct dox
Arun prjct doxArun prjct dox
Arun prjct doxBaig Mirza
 
CCNA Interview.pdf
CCNA Interview.pdfCCNA Interview.pdf
CCNA Interview.pdfhoang971
 
COE332-Ch03d.pptx
COE332-Ch03d.pptxCOE332-Ch03d.pptx
COE332-Ch03d.pptxMemMem25
 
Manish Jha- Research Scholar- Internet Basics Requriement
Manish Jha- Research Scholar- Internet Basics RequriementManish Jha- Research Scholar- Internet Basics Requriement
Manish Jha- Research Scholar- Internet Basics RequriementManish Jha
 
Internet basics and Cloud Computing- Manish Jha
Internet basics and Cloud Computing- Manish JhaInternet basics and Cloud Computing- Manish Jha
Internet basics and Cloud Computing- Manish Jhamanish jha
 
Chapter 2B-Communication.ppt
Chapter 2B-Communication.pptChapter 2B-Communication.ppt
Chapter 2B-Communication.pptsirajmohammed35
 

Semelhante a Client server architecture (20)

CN UNIT IV ..pptx
CN UNIT IV ..pptxCN UNIT IV ..pptx
CN UNIT IV ..pptx
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And Demultiplexing
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptx
 
Advance Java Programming( CM5I) 4. Networking Basics
Advance Java Programming( CM5I) 4. Networking BasicsAdvance Java Programming( CM5I) 4. Networking Basics
Advance Java Programming( CM5I) 4. Networking Basics
 
Transport layer
Transport layer Transport layer
Transport layer
 
lecturer3.pptx
lecturer3.pptxlecturer3.pptx
lecturer3.pptx
 
07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt
 
Final networks lab manual
Final networks lab manualFinal networks lab manual
Final networks lab manual
 
Лекц 7
Лекц 7Лекц 7
Лекц 7
 
Arun prjct dox
Arun prjct doxArun prjct dox
Arun prjct dox
 
Chapter3 transport
Chapter3 transportChapter3 transport
Chapter3 transport
 
Week10 transport
Week10 transportWeek10 transport
Week10 transport
 
CCNA Interview.pdf
CCNA Interview.pdfCCNA Interview.pdf
CCNA Interview.pdf
 
Tcp Udp Notes
Tcp Udp NotesTcp Udp Notes
Tcp Udp Notes
 
Networking
NetworkingNetworking
Networking
 
COE332-Ch03d.pptx
COE332-Ch03d.pptxCOE332-Ch03d.pptx
COE332-Ch03d.pptx
 
Manish Jha- Research Scholar- Internet Basics Requriement
Manish Jha- Research Scholar- Internet Basics RequriementManish Jha- Research Scholar- Internet Basics Requriement
Manish Jha- Research Scholar- Internet Basics Requriement
 
Internet basics and Cloud Computing- Manish Jha
Internet basics and Cloud Computing- Manish JhaInternet basics and Cloud Computing- Manish Jha
Internet basics and Cloud Computing- Manish Jha
 
Chapter 2B-Communication.ppt
Chapter 2B-Communication.pptChapter 2B-Communication.ppt
Chapter 2B-Communication.ppt
 
lecture-2-tcp-ip.ppt
lecture-2-tcp-ip.pptlecture-2-tcp-ip.ppt
lecture-2-tcp-ip.ppt
 

Último

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 

Último (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Client server architecture

  • 1. Quotation -As you so ,so shall you reap.  Presented by : Shafique Rahman(ADCS,III)  Guided by : Sir Masroor Ahmed  Topic : Client/Server Architecture  Date: 30-01-2017  Day : Monday  Institute : IBA C.C N/Feroze
  • 3. PROCESS-TO-PROCESS DELIVERY  The data link layer is responsible for node-to-node delivery.  The network layer is responsible for host-to-host delivery.  Communication on the Internet is not defined as the exchange of data between two nodes or between two hosts.  Real communication takes place between two processes (application programs).  We need process-to-process delivery.  However, at any moment, several processes may be running on the source host and several on the destination host.
  • 4. PROCESS-TO-PROCESS DELIVERY  To complete the delivery, we need a mechanism to deliver data from one of these processes running on the source host to the corresponding process running on the destination host.  The transport layer is responsible for process-to-process delivery-the delivery of a packet.  As we will see later.
  • 5. Client/Server Paradigm or Architecture  Although there are several ways to achieve process-to- process communication.  The most common one is through the client/server paradigm.  A process on the local host, called a client, needs services from a process usually on the remote host, called a server.  Both processes (client and server) have the same name.  For example, to get the day and time from a remote machine, we need a Daytime client process running on the local host and a Daytime server process running on a remote machine.
  • 6. Client/Server Paradigm or Architecture  Operating systems today support both multiuser and multiprogramming environments.  A remote computer can run several server programs at the same time, just as local computers can run one or more client programs at the same time.
  • 7. Client/Server Paradigm or Architecture  For communication, we must define the following:  1. Local host  2. Local process  3. Remote host  4. Remote process
  • 8. Addressing  Whenever we need to deliver something to one specific destination among many, we need an address.  At the data link layer, we need a MAC address to choose one node among several nodes if the connection is not point-to- point. A frame in the data link layer needs a destination MAC address for delivery and a source address for the next node's reply.
  • 9. Addressing  At the network layer, we need an IP address to choose one host among millions. A datagram in the network layer needs a destination IP address for delivery and a source IP address for the destination's reply.  At the transport layer, we need a transport layer address, called a port number, to choose among multiple processes running on the destination host. The destination port number is needed for delivery; the source port number is needed for the reply.  In the Internet model, the port numbers are 16-bit integers between 0 and 65,535.
  • 10. Addressing  The client program defines itself with a port number, chosen randomly by the transport layer software running on the client host.  This is the ephemeral port number.  The server process must also define itself with a port number.  This port number, however, cannot be chosen randomly.  The Internet uses universal port numbers for servers; these are called well-known port numbers.
  • 11. Addressing  For example, while the Daytime client process, discussed above, can use an ephemeral port number 52,000 to identify itself, the Daytime server process must use the well-known (permanent) port number 13.  Following Figure shows this concept.
  • 12. Daytime client daytime server DD52,000 13 Data 13 52,000 Transport layer Transport layer DD
  • 13. Addressing  It should be clear by now that the IP addresses and port numbers play different roles in selecting the final destination of data.  The destination IP address defines the host among the different hosts in the world.  After the host has been selected, the port number defines one of the processes on this particular host
  • 14. lANA Ranges  The lANA (Internet Assigned Number Authority) has divided the port numbers into three ranges:  Well known ports-The ports ranging from 0 to 1023 are assigned and controlled by lANA.  Registered ports-The ports ranging from 1024 to 49,151 are not assigned or controlled by lANA. They can only be registered with lANA to prevent duplication.  Dynamic (or private) ports-The ports ranging from 49,152 to 65,535 are neither controlled  nor registered. They can be used by any process. These are the ephemeral ports.
  • 15. IP addresses versus port numbers IP header IP address selects the host Port number selects the process
  • 16. Socket Addresses  Process-to-process delivery needs two identifiers, IP address and the port number.  The combination of an IP address and a port number is called a socket address.  The client socket address defines the client process uniquely.  The server socket address defines the server process uniquely
  • 17. Socket Addresses  A transport layer protocol needs a pair of socket addresses:  The client socket address  The server socket address  These four pieces of information are part of the IP header and the transport layer protocol header.
  • 18. Figure : Socket address
  • 20. Happiness of your life depends upon quality of your thoughts. I hope you enjoyed my presentation.