SlideShare a Scribd company logo
1 of 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 Explained in Detail

More Related Content

What's hot

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
 

What's hot (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
 

Similar to Client/Server Architecture Explained in Detail

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
 
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
 
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
 
Chapter 2B-Communication.ppt
Chapter 2B-Communication.pptChapter 2B-Communication.ppt
Chapter 2B-Communication.pptsirajmohammed35
 

Similar to Client/Server Architecture Explained in Detail (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
 
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
 
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
 
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
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

Client/Server Architecture Explained in Detail

  • 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.