SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Transport Layer Interface
(TLI)
Dr.Parminder Singh
Associate Professor
Department of IT
Chandigarh Engineering College, Landran
SOCKET TYPES
• There are three types of Sockets are:
1. Stream Socket
2. Datagram Socket
3. Raw Socket
• After understand the concept of socket and its types then
will be discussing the brief introduction TLI and Its uses.
STREAM SOCKET
• Has worked on Transport Layer and make end to end connection. This socket is a Connection-
oriented service which means that receiver give acknowledgment to the Sender.
• It is full duplex nature which can be transmitted in both directions.
• It is Reliable, which means that error-free data delivery is guaranteed in right order and
without duplication.
• It is Byte stream, no boundaries are imposed on the data. The data being transmitted can be of
virtually unlimited size.
• Flow control, which guarantees that the sender does not send data faster than the network and
the receiver is able to manage.
• The example of Stream Socket is TCP protocol which has used in TCP/IP Protocol Stack
DATAGRAM SOCKET
• Has worked on Transport Layer and make end to end connection. This socket is a
Connection-less service which means that receiver does not give acknowledgment
to the Sender.
• It does not provide Reliability, which means that that data may be duplicated, out
of order, corrupted or never sent.
• No flow control feature, this means user (receiver) has to manage the buffer.
• Messages have a maximum size. If you want to send more data than the amount
you can send in a single datagram, you must send more independent datagrams.
• The example of Datagram Socket is UDP protocol which has used in TCP/IP
Protocol Stack
RAW SOCKET
• This socket has used in Network Layer and support IP and ICMP protocols.
• It provides Connectionless service.
• It doesnot provide any Reliability.
• We send maximum data to remote network using Raw Socket.
• PING is an example of an application that uses raw sockets.
COMPARISON OF DIFFERENT SOCKET
TYPES
Feature
Stream Datagram Raw
Reliable Yes No No
Performance Connection oriented but
overhead there.
Good Best
Data Size Large amount of Data (1500
Bytes)
64 Bytes 65535
Protocol Used TCP UDP IP,ICMP
TRANSPORT INTERFACE
• The transport provider is the entity that provides the services of the Transport
Interface, and the transport user is the entity that requires these services
• The transport user accesses the services of the transport provider by issuing the
appropriate service requests. One example is a request to transfer data over a
connection. Similarly, the transport provider notifies the user of various events,
such as the arrival of data on a connection.
• The Network Services Library includes a set of functions that support the services
of the Transport Interface for user processes.
OVERVIEW OF TLI OR TRANSPORT
LAYER INTERFACE
• TLI or Transport Layer Interface provides an interface to the networking system.
• TLI is media- and protocol-independent
• An Alternative to the socket interface which is defined for System V UNIX
System.
• Transport Layer Interface work like any networking protocol and also supported
kernel.
• It is a subset of the X/Open Transport Interface (XTI), and is implemented within
the STREAMS framework.
• It allows applications to run across any transport protocol that supports the
interface.
TLI FUNCTION
• TLI is an interface (set of functions) that hides the actual stream interface to the
networking system from the user.
• TLI functions support both connection-oriented (TCP) and connectionless
protocols (UDP).
FUNCTIONS OF TLI
We are using three types of functions:
• M_DATA: User data processed through I/O
• M_PROTO: This is a protocol control information that have used to apply on
every layer of TCP/IP protocol. This is basically used to control the bits stream
and provide layer interface.
• M_PCPPROTO: This function is used to figure-out the higher priority protocols.
This is also used for prioritize the messages which means higher priority messages
(like remote messages, TELNET,SSH) always to send first than lower priority
messages (like ordinary messages).
ROLES OF TLI
• Another role TLI is used select the network and mapping of network Name to
address (it converts network naming to address conversion like DNS).
Role of Function Description
getnetpath() It describes the routines that manipulate the NETPATH variable,
allowing you to specify which networks in the netconfig file to try.
netconfig() It describes the network configuration database file.
netdir() describes the Name-to-Address Mapping library functions.
TLI ROUTINES
Routines Description
t_alloc() Allocates Transport Interface data structures
t_error() Prints a Transport Interface error message
t_getstate() Returns the state of a transport endpoint
t_open() Establishes a transport endpoint connected to a chosen transport provider
t_optmgmt() Negotiates protocol-specific options with the transport provider
t_sync() Synchronizes a transport endpoint with the transport provider
t_unbind() Unbinds a transport address from a transport endpoint
t_bind() Binds a transport address to a transport endpoint
t_close() Closes a transport endpoint
TLI SERVICES
The three service types defined by the Transport Interface are as follows:
• T_COTS: The transport provider supports connection-mode service but does not
provide the optional orderly release facility.
• T_COTS_ORD: The transport provider supports connection-mode service with
the optional orderly release facility.
• T_CLTS: The transport provider supports connectionless-mode service. Only one
such service can be associated with the transport provider identified by t_open().
REFERENCES
[1] W. R. Stevens, B. Fenner & A. M. Rudoff, Unix Network Programming, Vol. I, 3rd Ed., Pearson
Education.
[2] W. R. Stevens , Unix Network Programming, Vol. II, 2nd Ed., Pearson Education.
[3] Comer and Stevens, Internetworking with TCP/IP, Vol. I, II and III, PHI.
[4] Christian Benvenuti, Understanding Linux Network Internals, O‘Reilly.
[5] W. R. Stevens , Advanced Programming in Unix Environment, Pearson Education.
[6]Brian “Beej” Hall,"Beej’s Guide to Network Programming Using Internet Sockets",2005.
[7] Xi Liu,"Socket Programming",Computer Networks, Spring 2008.
[8] Dave Hollinger,Socket Programming",Computer Network Systems.
[9] http://retrogeeks.org/sgi_bookshelves/SGI_Developer/books/IRIX_NetPG/sgi_html/ch09.html

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Interface specification
Interface specificationInterface specification
Interface specification
 
TCP/IP Model
TCP/IP ModelTCP/IP Model
TCP/IP Model
 
POP3 Post Office Protocol
POP3 Post Office ProtocolPOP3 Post Office Protocol
POP3 Post Office Protocol
 
Io t system management with
Io t system management withIo t system management with
Io t system management with
 
Virtual Private Networks (VPN) ppt
Virtual Private Networks (VPN) pptVirtual Private Networks (VPN) ppt
Virtual Private Networks (VPN) ppt
 
Firewalls
FirewallsFirewalls
Firewalls
 
Internet protocol
Internet protocol Internet protocol
Internet protocol
 
Chpt7
Chpt7Chpt7
Chpt7
 
Secure Hash Algorithm
Secure Hash AlgorithmSecure Hash Algorithm
Secure Hash Algorithm
 
5. protocol layering
5. protocol layering5. protocol layering
5. protocol layering
 
Tcp
TcpTcp
Tcp
 
Web and http computer network
Web and http computer networkWeb and http computer network
Web and http computer network
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Transmission Impairment
Transmission ImpairmentTransmission Impairment
Transmission Impairment
 
Http Vs Https .
Http Vs Https . Http Vs Https .
Http Vs Https .
 
Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp)
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 

Ähnlich wie Transport layer interface

Mobile computing unit-5
Mobile computing unit-5Mobile computing unit-5
Mobile computing unit-5Ramesh Babu
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalKarthikeyan Dhayalan
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesREMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesRhydham Joshi
 
Lecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxLecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxRonoh Kennedy
 
Introduction to TCP IP.pptx
Introduction to TCP IP.pptxIntroduction to TCP IP.pptx
Introduction to TCP IP.pptxseyioginni
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationsAnyapuPranav
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 
ETE405-lec7.pdf
ETE405-lec7.pdfETE405-lec7.pdf
ETE405-lec7.pdfmashiur
 
cns-unit-4-onlinenotepad.io.pdf
cns-unit-4-onlinenotepad.io.pdfcns-unit-4-onlinenotepad.io.pdf
cns-unit-4-onlinenotepad.io.pdfssuser37a73f
 

Ähnlich wie Transport layer interface (20)

Mobile computing unit-5
Mobile computing unit-5Mobile computing unit-5
Mobile computing unit-5
 
Cn
CnCn
Cn
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network Fundamental
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Module 1 slides
Module 1 slidesModule 1 slides
Module 1 slides
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Transport layer
Transport layer Transport layer
Transport layer
 
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesREMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
 
Transport layer.pptx
Transport layer.pptxTransport layer.pptx
Transport layer.pptx
 
Week10 transport
Week10 transportWeek10 transport
Week10 transport
 
Lecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxLecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptx
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Introduction to TCP IP.pptx
Introduction to TCP IP.pptxIntroduction to TCP IP.pptx
Introduction to TCP IP.pptx
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunications
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
TCP/IP Protocols
TCP/IP ProtocolsTCP/IP Protocols
TCP/IP Protocols
 
ETE405-lec7.pdf
ETE405-lec7.pdfETE405-lec7.pdf
ETE405-lec7.pdf
 
Transport layer
Transport layerTransport layer
Transport layer
 
cns-unit-4-onlinenotepad.io.pdf
cns-unit-4-onlinenotepad.io.pdfcns-unit-4-onlinenotepad.io.pdf
cns-unit-4-onlinenotepad.io.pdf
 

Kürzlich hochgeladen

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 

Kürzlich hochgeladen (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 

Transport layer interface

  • 1. Transport Layer Interface (TLI) Dr.Parminder Singh Associate Professor Department of IT Chandigarh Engineering College, Landran
  • 2. SOCKET TYPES • There are three types of Sockets are: 1. Stream Socket 2. Datagram Socket 3. Raw Socket • After understand the concept of socket and its types then will be discussing the brief introduction TLI and Its uses.
  • 3. STREAM SOCKET • Has worked on Transport Layer and make end to end connection. This socket is a Connection- oriented service which means that receiver give acknowledgment to the Sender. • It is full duplex nature which can be transmitted in both directions. • It is Reliable, which means that error-free data delivery is guaranteed in right order and without duplication. • It is Byte stream, no boundaries are imposed on the data. The data being transmitted can be of virtually unlimited size. • Flow control, which guarantees that the sender does not send data faster than the network and the receiver is able to manage. • The example of Stream Socket is TCP protocol which has used in TCP/IP Protocol Stack
  • 4. DATAGRAM SOCKET • Has worked on Transport Layer and make end to end connection. This socket is a Connection-less service which means that receiver does not give acknowledgment to the Sender. • It does not provide Reliability, which means that that data may be duplicated, out of order, corrupted or never sent. • No flow control feature, this means user (receiver) has to manage the buffer. • Messages have a maximum size. If you want to send more data than the amount you can send in a single datagram, you must send more independent datagrams. • The example of Datagram Socket is UDP protocol which has used in TCP/IP Protocol Stack
  • 5. RAW SOCKET • This socket has used in Network Layer and support IP and ICMP protocols. • It provides Connectionless service. • It doesnot provide any Reliability. • We send maximum data to remote network using Raw Socket. • PING is an example of an application that uses raw sockets.
  • 6. COMPARISON OF DIFFERENT SOCKET TYPES Feature Stream Datagram Raw Reliable Yes No No Performance Connection oriented but overhead there. Good Best Data Size Large amount of Data (1500 Bytes) 64 Bytes 65535 Protocol Used TCP UDP IP,ICMP
  • 7. TRANSPORT INTERFACE • The transport provider is the entity that provides the services of the Transport Interface, and the transport user is the entity that requires these services • The transport user accesses the services of the transport provider by issuing the appropriate service requests. One example is a request to transfer data over a connection. Similarly, the transport provider notifies the user of various events, such as the arrival of data on a connection. • The Network Services Library includes a set of functions that support the services of the Transport Interface for user processes.
  • 8. OVERVIEW OF TLI OR TRANSPORT LAYER INTERFACE • TLI or Transport Layer Interface provides an interface to the networking system. • TLI is media- and protocol-independent • An Alternative to the socket interface which is defined for System V UNIX System. • Transport Layer Interface work like any networking protocol and also supported kernel. • It is a subset of the X/Open Transport Interface (XTI), and is implemented within the STREAMS framework. • It allows applications to run across any transport protocol that supports the interface.
  • 9. TLI FUNCTION • TLI is an interface (set of functions) that hides the actual stream interface to the networking system from the user. • TLI functions support both connection-oriented (TCP) and connectionless protocols (UDP).
  • 10. FUNCTIONS OF TLI We are using three types of functions: • M_DATA: User data processed through I/O • M_PROTO: This is a protocol control information that have used to apply on every layer of TCP/IP protocol. This is basically used to control the bits stream and provide layer interface. • M_PCPPROTO: This function is used to figure-out the higher priority protocols. This is also used for prioritize the messages which means higher priority messages (like remote messages, TELNET,SSH) always to send first than lower priority messages (like ordinary messages).
  • 11. ROLES OF TLI • Another role TLI is used select the network and mapping of network Name to address (it converts network naming to address conversion like DNS). Role of Function Description getnetpath() It describes the routines that manipulate the NETPATH variable, allowing you to specify which networks in the netconfig file to try. netconfig() It describes the network configuration database file. netdir() describes the Name-to-Address Mapping library functions.
  • 12. TLI ROUTINES Routines Description t_alloc() Allocates Transport Interface data structures t_error() Prints a Transport Interface error message t_getstate() Returns the state of a transport endpoint t_open() Establishes a transport endpoint connected to a chosen transport provider t_optmgmt() Negotiates protocol-specific options with the transport provider t_sync() Synchronizes a transport endpoint with the transport provider t_unbind() Unbinds a transport address from a transport endpoint t_bind() Binds a transport address to a transport endpoint t_close() Closes a transport endpoint
  • 13. TLI SERVICES The three service types defined by the Transport Interface are as follows: • T_COTS: The transport provider supports connection-mode service but does not provide the optional orderly release facility. • T_COTS_ORD: The transport provider supports connection-mode service with the optional orderly release facility. • T_CLTS: The transport provider supports connectionless-mode service. Only one such service can be associated with the transport provider identified by t_open().
  • 14. REFERENCES [1] W. R. Stevens, B. Fenner & A. M. Rudoff, Unix Network Programming, Vol. I, 3rd Ed., Pearson Education. [2] W. R. Stevens , Unix Network Programming, Vol. II, 2nd Ed., Pearson Education. [3] Comer and Stevens, Internetworking with TCP/IP, Vol. I, II and III, PHI. [4] Christian Benvenuti, Understanding Linux Network Internals, O‘Reilly. [5] W. R. Stevens , Advanced Programming in Unix Environment, Pearson Education. [6]Brian “Beej” Hall,"Beej’s Guide to Network Programming Using Internet Sockets",2005. [7] Xi Liu,"Socket Programming",Computer Networks, Spring 2008. [8] Dave Hollinger,Socket Programming",Computer Network Systems. [9] http://retrogeeks.org/sgi_bookshelves/SGI_Developer/books/IRIX_NetPG/sgi_html/ch09.html