SlideShare a Scribd company logo
Web Services and Middleware; Network programming;
Low level data communications
Message and queuing services;
08/12/2015 1Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
Integrative Programming andTechnology
 application integration technology
 Allows applications to be integrated more rapidly, easily and less
expensively
 program-to- program interactions whereas web for program-to-user
interactions
 allow companies to reduce the cost of doing e-business, to deploy
solutions faster and to open up new opportunities
 Web services model built on emerging standards such as
 HTTP
 XML
 Simple Object Access Protocol (SOAP)
 Web Services Description Language (WSDL)
 Universal Description, Discovery and Integration (UDDI)
08/12/2015 2Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
 developed in order to distribute an object and serve it to various users
in the web environments
 used in the server situations while solving the web-scalability problem
of the other distributed object technologies
 WSDL, and SOAP exploit XML.
 WSDL is an XML describing the web service.
 SOAP is an XML describing the called method, its parameters, and its
return value, can be delivered over the HTTP
08/12/2015 3Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
08/12/2015 4Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
1. A client that wants to be serviced should first find the supported services
from the pre-existing registry before compiling a code.
2. After finding its services through searching, the client gains the Web
Service Description Language (WSDL) that a server previously registers.
From theWSDL, the client knows the service provider location and the
parameters to the found method.
3. After the client binds the described service during the compile time, it
calls the local agent whenever the client invokes a method call, and
the local agent delivers it to the server side agent through Simple Object
Access Protocol (SOAP) over HTTP, FTP, SMTP, andTCP during the
runtime.
4. The server side agent activates the appropriate object, and delivers
the calls to the object.
08/12/2015 5Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
Network:
 A network is a collection of computers and other devices that can send data to and receive data
from each other.
 A network is often connected by wires.
 However, wireless networks transmit data through infrared light and microwaves.
Node:
 Each machine on a network is called a node.
 Most nodes are computers, but printers, routers, bridges, gateways etc.. can also be nodes.
 Nodes that are fully functional computers are also called hosts.
Packet:
 All modern computer networks are packet-switched networks: data traveling on the network is
broken into chunks called packets and each packet is handled separately.
 Each packet contains information about who sent it and where it's going.
Protocol: A protocol is a precise set of rules defining how computers communicate: the format of
addresses, how data is split into packets
08/12/2015 6Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
IP:
 IP was designed to allow multiple routes between any two points and
to route packets of data around damaged routers.
TCP:
 Since there are multiple routes between two points, and the packets
that make up a particular data stream.
 Furthermore, they may not arrive in the order they were sent, if they
even arrive at all.
UDP:
 UDP is an unreliable protocol that does not guarantee that packets will
arrive at their destination or that they will arrive in the same order
they were sent.
Ports:
 Each computer with an IP address has several thousand logical ports.
 Each port is identified by a number between 1 and 65,535. Each port can
be allocated to a particular service.
 Port numbers 1 through 255 are reserved by IP for well-known services
If you connect to port 80 of a host, for instance, you may expect to find
an HTTP server.
08/12/2015 7Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
Internet:
 largest IP-based network for connecting machines together.
 Java: easy-to-use, cross-platform model for network communications.
What is a Socket?
 Sockets are a means of using IP to communicate between machines, so sockets
allow Java to interoperate with legacy systems by simply talking to existing
servers using their pre-defined protocol.
 Internet protocol: User Datagram Protocol (UDP) andTransmissionControl
Protocol (TCP).
Internet Addresses or IP Addresses
 Every network node has an address, a series of bytes that uniquely identify it.
 Internet addresses are manipulated in Java by the use of the InetAddress class.
InetAddress takes care of the Domain Name System (DNS) look-up and reverse
look-up;
 IP addresses can be specified by either the host name or the raw IP address.
InetAddress provides methods to getByName(), getAllByName(),
getLocalHost(), getAddress(), etc.
 IP addresses are a 32-bit number, often represented as a "quad" of four 8-bit
numbers separated by periods.
 They are organized into classes (A, B, C, D, and E). For example 126.255.255.255
Client/Server Computing- Java language communicate with remote file system
08/12/2015 8Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
How UDPclients and UDPservers communicate over sockets
Creating UDP Servers:
To create a server with UDP, do the following:
1. Create a DatagramSocket attached to a port.
int port = 1234;
DatagramSocket socket = new DatagramSocket(port);
2. Allocate space to hold the incoming packet, and create an instance of DatagramPacket to hold the
incoming data.
byte[] buffer = new byte[1024];
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
3. Block until a packet is received, then extract the information you need from the packet.
// Block on receive()
socket.receive(packet);
// Extract the packet data
byte[] data = packet.getData();
// Find out where packet came from
// so we can reply to the same host/port
InetAddress remoteHost = packet.getAddress();
int remotePort = packet.getPort();
08/12/2015 9Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
Creating UDP Clients
1. First allocate space to hold the data we are sending and create an instance
of DatagramPacket to hold the data.
byte[] buffer = new byte[1024];
int port = 1234;
InetAddress host = InetAddress.getByName("magelang.com");
DatagramPacket packet = new DatagramPacket(buffer,
buffer.length, host, port);
2. Create a DatagramSocket and send the packet using this socket.
DatagramSocket socket = new DatagramSocket();//free local port to
use
socket.send(packet);
// Find out where we are sending from
InetAddress localHostname = socket.getLocalAddress();
int localPort = socket.getLocalPort();
08/12/2015 10Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
HowTCPclients andTCPservers communicate over sockets
CreatingTCP Servers:
To create aTCP server, do the following:
1. Create a ServerSocket attached to a port number.
ServerSocket server = new ServerSocket(port);
2.Wait for connections from clients requesting connections to that port.
// Block on accept()
Socket channel = server.accept();
You'll get a Socket object as a result of the connection.
3. Get input and output streams associated with the socket.
out = new PrintWriter (channel.getOutputStream());
out.println("Hey! I heard you over this socket!");
reader = new InputStreamReader (channel.getInputStream());
in = new BufferedReader (reader);
Now you can read and write to the socket, thus, communicating with the client.
String data = in.readLine();
08/12/2015 11Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
CreatingTCP Clients:
To create aTCP client, do the following:
1. Create a Socket object attached to a remote host, port.
Socket client = new Socket(host, port);
When the constructor returns, you have a connection.
2. Get input and output streams associated with the socket.
out = new PrintWriter (client.getOutputStream());
out.println("Watson!" + "Come here...I need you!");
reader = new InputStreamReader (client.getInputStream());
in = new BufferedReader (reader);
Now you can read and write to the socket, thus, communicating with the
server.
String data = in.readLine();
08/12/2015 12Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
TCP/IP(Transmission Control Protocol/Internet Protocol)
 The Protocol upon which the whole Internet is based
 Each node must be configured forTCP/IP to function properly.
 A software-based protocol
 TCP/IP is basically the binding together of Internet Protocols used to
connect hosts on the internet- Main ones are IP andTCP
 TCP and IP have special packet structure
 IP (Internet Protocol) is responsible for delivering packets of data
between systems on the internet and specifies their format. Packets
forwarded based on a four byte destination IP address (IP number)
IP DOES NOT MAKE GUARANTEES! It is very simple - essentially: send
and forget.
 TCP (TransmissionControl Protocol) is responsible for verifying the
correct delivery of data/packets from client to server. Data can be lost
.SoTCP also adds support to detect errors and retransmit data until
completely received
08/12/2015 13Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
08/12/2015 14Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
 Version — Indicates the version of IP currently used.
 IP Header Length (IHL) — Indicates the datagram header length in 32-bit words.
 Type-of-Service — Specifies how an upper-layer protocol would like a current datagram to
be handled, and assigns datagram various levels of importance.
 Total Length — Specifies the length, in bytes, of the entire IP packet, including the data
and header.
 Identification — Contains an integer that identifies the current datagram. This field is used
to help piece together datagram fragments.
 Flags — Consists of a 3-bit field of which the two low-order (least-significant) bits control
fragmentation. The low-order bit specifies whether the packet can be fragmented. The
middle bit specifies whether the packet is the last fragment in a series of fragmented
packets.The third or high-order bit is not used.
 Fragment Offset — Indicates the position of the fragment’s data relative to the beginning
of the data in the original datagram, which allows the destination IP process to properly
reconstruct the original datagram.
 Time-to-Live — Maintains a counter that gradually decrements down to zero, at which
point the datagram is discarded.
 Protocol — Indicates which upper-layer protocol receives incoming packets after IP
processing is complete.
 Header Checksum — Helps ensure IP header integrity.
 Source Address — Specifies the sending node.
 Destination Address — Specifies the receiving node.
 Options — Allows IP to support various options, such as security.
 Data — Contains upper-layer sent in packet.
08/12/2015 15Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
08/12/2015 16Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
 There are 12 fields inTCP Packet:
 Source Port and Destination Port — Identifies points at which upper-
layer source and destination processes receiveTCP services.
 Sequence Number In the connection-establishment phase, this field also
can be used to identify an initial sequence number to be used in an
upcoming transmission.
 Acknowledgment Number — Contains the sequence number of the next
byte of data the sender of the packet expects to receive.
 Data Offset — Indicates the number of 32-bit words in theTCP header.
 Reserved — Remains reserved for future use.
 Flags — Carries a variety of control information, including the SYN and
ACK bits used for connection establishment, and the FIN bit used for
connection termination.
 Window — Specifies the size of the sender’s receive window (that is, the
buffer space available for incoming data).
 Checksum — Indicates whether the header was damaged in transit.
 Urgent Pointer — Points to the first urgent data byte in the packet.
 Options — Specifies variousTCP options.
 Data — Contains upper-layer sent in packet.
08/12/2015 17Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia

More Related Content

What's hot

Web browsers and web servers
Web browsers and web serversWeb browsers and web servers
Web browsers and web servers
Angelica Amolo
 
Networking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network BasicsNetworking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network Basics
Andriy Berestovskyy
 
An introduction to networking
An introduction to networkingAn introduction to networking
An introduction to networking
Jafar Nesargi
 
Network management
Network managementNetwork management
Network managementMohd Arif
 
Introduction to Web Programming - first course
Introduction to Web Programming - first courseIntroduction to Web Programming - first course
Introduction to Web Programming - first courseVlad Posea
 
Web server architecture
Web server architectureWeb server architecture
Web server architecture
Tewodros K
 
Systems Administration
Systems AdministrationSystems Administration
Systems Administration
Mark John Lado, MIT
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
Dineesha Suraweera
 
Online Platforms for ICT Content Development by Ydellwish Cortez
Online Platforms for ICT Content Development by Ydellwish CortezOnline Platforms for ICT Content Development by Ydellwish Cortez
Online Platforms for ICT Content Development by Ydellwish Cortez
YdellwishCortez
 
Basics of IP Addressing
Basics of IP AddressingBasics of IP Addressing
Basics of IP Addressing
Kushal Sheth
 
Load balancing in cloud computing.pptx
Load balancing in cloud computing.pptxLoad balancing in cloud computing.pptx
Load balancing in cloud computing.pptx
Hitesh Mohapatra
 
Network operating system
Network operating systemNetwork operating system
Network operating system
John Carlo Catacutan
 
Scripting Languages
Scripting LanguagesScripting Languages
Scripting Languages
Forrester High School
 
Introduction to c#
Introduction to c#Introduction to c#
System Administration: Introduction to system administration
System Administration: Introduction to system administrationSystem Administration: Introduction to system administration
System Administration: Introduction to system administration
Khang-Ling Loh
 
PowerPoint Lesson 3: Advanced Slide Design
PowerPoint Lesson 3: Advanced Slide DesignPowerPoint Lesson 3: Advanced Slide Design
PowerPoint Lesson 3: Advanced Slide Design
Novus Business and IT Training Program
 
Server Side Technologies
Server Side TechnologiesServer Side Technologies
Server Side Technologies
tawi123
 
Introduction to Network and System Administration
Introduction to Network and System AdministrationIntroduction to Network and System Administration
Introduction to Network and System Administration
Duressa Teshome
 
MySQL Database with phpMyAdmin
MySQL Database with  phpMyAdminMySQL Database with  phpMyAdmin
MySQL Database with phpMyAdmin
Karwan Mustafa Kareem
 

What's hot (20)

Web browsers and web servers
Web browsers and web serversWeb browsers and web servers
Web browsers and web servers
 
Networking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network BasicsNetworking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network Basics
 
An introduction to networking
An introduction to networkingAn introduction to networking
An introduction to networking
 
Network management
Network managementNetwork management
Network management
 
Introduction to Web Programming - first course
Introduction to Web Programming - first courseIntroduction to Web Programming - first course
Introduction to Web Programming - first course
 
Web server architecture
Web server architectureWeb server architecture
Web server architecture
 
Systems Administration
Systems AdministrationSystems Administration
Systems Administration
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
Online Platforms for ICT Content Development by Ydellwish Cortez
Online Platforms for ICT Content Development by Ydellwish CortezOnline Platforms for ICT Content Development by Ydellwish Cortez
Online Platforms for ICT Content Development by Ydellwish Cortez
 
Basics of IP Addressing
Basics of IP AddressingBasics of IP Addressing
Basics of IP Addressing
 
Load balancing in cloud computing.pptx
Load balancing in cloud computing.pptxLoad balancing in cloud computing.pptx
Load balancing in cloud computing.pptx
 
Network operating system
Network operating systemNetwork operating system
Network operating system
 
Scripting Languages
Scripting LanguagesScripting Languages
Scripting Languages
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
System Administration: Introduction to system administration
System Administration: Introduction to system administrationSystem Administration: Introduction to system administration
System Administration: Introduction to system administration
 
PowerPoint Lesson 3: Advanced Slide Design
PowerPoint Lesson 3: Advanced Slide DesignPowerPoint Lesson 3: Advanced Slide Design
PowerPoint Lesson 3: Advanced Slide Design
 
Server Side Technologies
Server Side TechnologiesServer Side Technologies
Server Side Technologies
 
Introduction to Network and System Administration
Introduction to Network and System AdministrationIntroduction to Network and System Administration
Introduction to Network and System Administration
 
MySQL Database with phpMyAdmin
MySQL Database with  phpMyAdminMySQL Database with  phpMyAdmin
MySQL Database with phpMyAdmin
 

Similar to IPT Chapter 2 Web Services and Middleware - Dr. J. VijiPriya

Network programming in Java
Network programming in JavaNetwork programming in Java
Network programming in Java
Tushar B Kute
 
Network programming in Java
Network programming in JavaNetwork programming in Java
Network programming in Java
Tushar B Kute
 
Published on IST 554 (httpsonline.ist.psu.eduist554).docx
Published on IST 554 (httpsonline.ist.psu.eduist554).docxPublished on IST 554 (httpsonline.ist.psu.eduist554).docx
Published on IST 554 (httpsonline.ist.psu.eduist554).docx
amrit47
 
Network Programming in Java
Network Programming in JavaNetwork Programming in Java
Network Programming in Java
Tushar B Kute
 
NP-lab-manual (1).pdf
NP-lab-manual (1).pdfNP-lab-manual (1).pdf
NP-lab-manual (1).pdf
RaviRajput416403
 
NP-lab-manual.pdf
NP-lab-manual.pdfNP-lab-manual.pdf
NP-lab-manual.pdf
RaviRajput416403
 
Final networks lab manual
Final networks lab manualFinal networks lab manual
Final networks lab manualJaya Prasanna
 
NP-lab-manual.docx
NP-lab-manual.docxNP-lab-manual.docx
NP-lab-manual.docx
RaviRajput416403
 
Networking in Java
Networking in JavaNetworking in Java
Networking in Java
Tushar B Kute
 
Networking-basics
Networking-basicsNetworking-basics
Networking-basics
Raj Alam
 
Socket programming
Socket programmingSocket programming
Socket programming
Padmavathione
 
Networking Java Socket Programming
Networking Java Socket ProgrammingNetworking Java Socket Programming
Networking Java Socket ProgrammingMousmi Pawar
 
Socket Programming by Rajkumar Buyya
Socket Programming by Rajkumar BuyyaSocket Programming by Rajkumar Buyya
Socket Programming by Rajkumar Buyya
iDhawalVaja
 
Lecture25
Lecture25Lecture25
Communication middleware
Communication middlewareCommunication middleware
Communication middleware
Peter R. Egli
 
Computer networks - CBSE New Syllabus (083) Class - XII
Computer networks - CBSE  New Syllabus (083) Class - XIIComputer networks - CBSE  New Syllabus (083) Class - XII
Computer networks - CBSE New Syllabus (083) Class - XII
Deepak Singh
 
5_6278455688045789623.pptx
5_6278455688045789623.pptx5_6278455688045789623.pptx
5_6278455688045789623.pptx
EliasPetros
 
Networking
NetworkingNetworking
NetworkingTuan Ngo
 
Network protocols and Java programming
Network protocols and Java programmingNetwork protocols and Java programming
Network protocols and Java programming
difatta
 

Similar to IPT Chapter 2 Web Services and Middleware - Dr. J. VijiPriya (20)

Network programming in Java
Network programming in JavaNetwork programming in Java
Network programming in Java
 
Network programming in Java
Network programming in JavaNetwork programming in Java
Network programming in Java
 
Published on IST 554 (httpsonline.ist.psu.eduist554).docx
Published on IST 554 (httpsonline.ist.psu.eduist554).docxPublished on IST 554 (httpsonline.ist.psu.eduist554).docx
Published on IST 554 (httpsonline.ist.psu.eduist554).docx
 
Network Programming in Java
Network Programming in JavaNetwork Programming in Java
Network Programming in Java
 
NP-lab-manual (1).pdf
NP-lab-manual (1).pdfNP-lab-manual (1).pdf
NP-lab-manual (1).pdf
 
NP-lab-manual.pdf
NP-lab-manual.pdfNP-lab-manual.pdf
NP-lab-manual.pdf
 
Final networks lab manual
Final networks lab manualFinal networks lab manual
Final networks lab manual
 
NP-lab-manual.docx
NP-lab-manual.docxNP-lab-manual.docx
NP-lab-manual.docx
 
Networking in Java
Networking in JavaNetworking in Java
Networking in Java
 
Networking-basics
Networking-basicsNetworking-basics
Networking-basics
 
Md13 networking
Md13 networkingMd13 networking
Md13 networking
 
Socket programming
Socket programmingSocket programming
Socket programming
 
Networking Java Socket Programming
Networking Java Socket ProgrammingNetworking Java Socket Programming
Networking Java Socket Programming
 
Socket Programming by Rajkumar Buyya
Socket Programming by Rajkumar BuyyaSocket Programming by Rajkumar Buyya
Socket Programming by Rajkumar Buyya
 
Lecture25
Lecture25Lecture25
Lecture25
 
Communication middleware
Communication middlewareCommunication middleware
Communication middleware
 
Computer networks - CBSE New Syllabus (083) Class - XII
Computer networks - CBSE  New Syllabus (083) Class - XIIComputer networks - CBSE  New Syllabus (083) Class - XII
Computer networks - CBSE New Syllabus (083) Class - XII
 
5_6278455688045789623.pptx
5_6278455688045789623.pptx5_6278455688045789623.pptx
5_6278455688045789623.pptx
 
Networking
NetworkingNetworking
Networking
 
Network protocols and Java programming
Network protocols and Java programmingNetwork protocols and Java programming
Network protocols and Java programming
 

More from VijiPriya Jeyamani

Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...
Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...
Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...
VijiPriya Jeyamani
 
Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...
Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...
Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...
VijiPriya Jeyamani
 
Dr. J. VijiPriya Information and Communication Technology Chapter 5,6
Dr. J. VijiPriya  Information and Communication Technology Chapter 5,6Dr. J. VijiPriya  Information and Communication Technology Chapter 5,6
Dr. J. VijiPriya Information and Communication Technology Chapter 5,6
VijiPriya Jeyamani
 
Human Computer Interaction Chapter 2 Interaction and Interaction Design Basi...
Human Computer Interaction Chapter 2  Interaction and Interaction Design Basi...Human Computer Interaction Chapter 2  Interaction and Interaction Design Basi...
Human Computer Interaction Chapter 2 Interaction and Interaction Design Basi...
VijiPriya Jeyamani
 
Human Computer Interaction Chapter 3 HCI in the Software Process and Design ...
Human Computer Interaction Chapter 3 HCI in the Software Process and  Design ...Human Computer Interaction Chapter 3 HCI in the Software Process and  Design ...
Human Computer Interaction Chapter 3 HCI in the Software Process and Design ...
VijiPriya Jeyamani
 
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...
VijiPriya Jeyamani
 
Human Computer Interaction Chapter 5 Universal Design and User Support - Dr....
Human Computer Interaction Chapter 5 Universal Design and User Support -  Dr....Human Computer Interaction Chapter 5 Universal Design and User Support -  Dr....
Human Computer Interaction Chapter 5 Universal Design and User Support - Dr....
VijiPriya Jeyamani
 
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
 Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
VijiPriya Jeyamani
 
CLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriyaCLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriya
VijiPriya Jeyamani
 
Information and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriya
Information and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriyaInformation and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriya
Information and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriya
VijiPriya Jeyamani
 
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriya
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriyaIntegrative Programming Technology Chapter 5 - Dr. J. VijiPriya
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriya
VijiPriya Jeyamani
 

More from VijiPriya Jeyamani (11)

Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...
Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...
Dr. J. VijiPriya - Information and Communication Technology Chapter 8 The Int...
 
Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...
Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...
Dr. J. VijiPriya - Information Communication and Technology Chapter 7 Data Co...
 
Dr. J. VijiPriya Information and Communication Technology Chapter 5,6
Dr. J. VijiPriya  Information and Communication Technology Chapter 5,6Dr. J. VijiPriya  Information and Communication Technology Chapter 5,6
Dr. J. VijiPriya Information and Communication Technology Chapter 5,6
 
Human Computer Interaction Chapter 2 Interaction and Interaction Design Basi...
Human Computer Interaction Chapter 2  Interaction and Interaction Design Basi...Human Computer Interaction Chapter 2  Interaction and Interaction Design Basi...
Human Computer Interaction Chapter 2 Interaction and Interaction Design Basi...
 
Human Computer Interaction Chapter 3 HCI in the Software Process and Design ...
Human Computer Interaction Chapter 3 HCI in the Software Process and  Design ...Human Computer Interaction Chapter 3 HCI in the Software Process and  Design ...
Human Computer Interaction Chapter 3 HCI in the Software Process and Design ...
 
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...
 
Human Computer Interaction Chapter 5 Universal Design and User Support - Dr....
Human Computer Interaction Chapter 5 Universal Design and User Support -  Dr....Human Computer Interaction Chapter 5 Universal Design and User Support -  Dr....
Human Computer Interaction Chapter 5 Universal Design and User Support - Dr....
 
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
 Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
 
CLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriyaCLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriya
 
Information and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriya
Information and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriyaInformation and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriya
Information and Communication Technology Chapter 1,2 ,3 - Dr.J.VijiPriya
 
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriya
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriyaIntegrative Programming Technology Chapter 5 - Dr. J. VijiPriya
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriya
 

Recently uploaded

H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 

Recently uploaded (20)

H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 

IPT Chapter 2 Web Services and Middleware - Dr. J. VijiPriya

  • 1. Web Services and Middleware; Network programming; Low level data communications Message and queuing services; 08/12/2015 1Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia Integrative Programming andTechnology
  • 2.  application integration technology  Allows applications to be integrated more rapidly, easily and less expensively  program-to- program interactions whereas web for program-to-user interactions  allow companies to reduce the cost of doing e-business, to deploy solutions faster and to open up new opportunities  Web services model built on emerging standards such as  HTTP  XML  Simple Object Access Protocol (SOAP)  Web Services Description Language (WSDL)  Universal Description, Discovery and Integration (UDDI) 08/12/2015 2Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 3.  developed in order to distribute an object and serve it to various users in the web environments  used in the server situations while solving the web-scalability problem of the other distributed object technologies  WSDL, and SOAP exploit XML.  WSDL is an XML describing the web service.  SOAP is an XML describing the called method, its parameters, and its return value, can be delivered over the HTTP 08/12/2015 3Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 4. 08/12/2015 4Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 5. 1. A client that wants to be serviced should first find the supported services from the pre-existing registry before compiling a code. 2. After finding its services through searching, the client gains the Web Service Description Language (WSDL) that a server previously registers. From theWSDL, the client knows the service provider location and the parameters to the found method. 3. After the client binds the described service during the compile time, it calls the local agent whenever the client invokes a method call, and the local agent delivers it to the server side agent through Simple Object Access Protocol (SOAP) over HTTP, FTP, SMTP, andTCP during the runtime. 4. The server side agent activates the appropriate object, and delivers the calls to the object. 08/12/2015 5Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 6. Network:  A network is a collection of computers and other devices that can send data to and receive data from each other.  A network is often connected by wires.  However, wireless networks transmit data through infrared light and microwaves. Node:  Each machine on a network is called a node.  Most nodes are computers, but printers, routers, bridges, gateways etc.. can also be nodes.  Nodes that are fully functional computers are also called hosts. Packet:  All modern computer networks are packet-switched networks: data traveling on the network is broken into chunks called packets and each packet is handled separately.  Each packet contains information about who sent it and where it's going. Protocol: A protocol is a precise set of rules defining how computers communicate: the format of addresses, how data is split into packets 08/12/2015 6Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 7. IP:  IP was designed to allow multiple routes between any two points and to route packets of data around damaged routers. TCP:  Since there are multiple routes between two points, and the packets that make up a particular data stream.  Furthermore, they may not arrive in the order they were sent, if they even arrive at all. UDP:  UDP is an unreliable protocol that does not guarantee that packets will arrive at their destination or that they will arrive in the same order they were sent. Ports:  Each computer with an IP address has several thousand logical ports.  Each port is identified by a number between 1 and 65,535. Each port can be allocated to a particular service.  Port numbers 1 through 255 are reserved by IP for well-known services If you connect to port 80 of a host, for instance, you may expect to find an HTTP server. 08/12/2015 7Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 8. Internet:  largest IP-based network for connecting machines together.  Java: easy-to-use, cross-platform model for network communications. What is a Socket?  Sockets are a means of using IP to communicate between machines, so sockets allow Java to interoperate with legacy systems by simply talking to existing servers using their pre-defined protocol.  Internet protocol: User Datagram Protocol (UDP) andTransmissionControl Protocol (TCP). Internet Addresses or IP Addresses  Every network node has an address, a series of bytes that uniquely identify it.  Internet addresses are manipulated in Java by the use of the InetAddress class. InetAddress takes care of the Domain Name System (DNS) look-up and reverse look-up;  IP addresses can be specified by either the host name or the raw IP address. InetAddress provides methods to getByName(), getAllByName(), getLocalHost(), getAddress(), etc.  IP addresses are a 32-bit number, often represented as a "quad" of four 8-bit numbers separated by periods.  They are organized into classes (A, B, C, D, and E). For example 126.255.255.255 Client/Server Computing- Java language communicate with remote file system 08/12/2015 8Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 9. How UDPclients and UDPservers communicate over sockets Creating UDP Servers: To create a server with UDP, do the following: 1. Create a DatagramSocket attached to a port. int port = 1234; DatagramSocket socket = new DatagramSocket(port); 2. Allocate space to hold the incoming packet, and create an instance of DatagramPacket to hold the incoming data. byte[] buffer = new byte[1024]; DatagramPacket packet = new DatagramPacket(buffer, buffer.length); 3. Block until a packet is received, then extract the information you need from the packet. // Block on receive() socket.receive(packet); // Extract the packet data byte[] data = packet.getData(); // Find out where packet came from // so we can reply to the same host/port InetAddress remoteHost = packet.getAddress(); int remotePort = packet.getPort(); 08/12/2015 9Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 10. Creating UDP Clients 1. First allocate space to hold the data we are sending and create an instance of DatagramPacket to hold the data. byte[] buffer = new byte[1024]; int port = 1234; InetAddress host = InetAddress.getByName("magelang.com"); DatagramPacket packet = new DatagramPacket(buffer, buffer.length, host, port); 2. Create a DatagramSocket and send the packet using this socket. DatagramSocket socket = new DatagramSocket();//free local port to use socket.send(packet); // Find out where we are sending from InetAddress localHostname = socket.getLocalAddress(); int localPort = socket.getLocalPort(); 08/12/2015 10Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 11. HowTCPclients andTCPservers communicate over sockets CreatingTCP Servers: To create aTCP server, do the following: 1. Create a ServerSocket attached to a port number. ServerSocket server = new ServerSocket(port); 2.Wait for connections from clients requesting connections to that port. // Block on accept() Socket channel = server.accept(); You'll get a Socket object as a result of the connection. 3. Get input and output streams associated with the socket. out = new PrintWriter (channel.getOutputStream()); out.println("Hey! I heard you over this socket!"); reader = new InputStreamReader (channel.getInputStream()); in = new BufferedReader (reader); Now you can read and write to the socket, thus, communicating with the client. String data = in.readLine(); 08/12/2015 11Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 12. CreatingTCP Clients: To create aTCP client, do the following: 1. Create a Socket object attached to a remote host, port. Socket client = new Socket(host, port); When the constructor returns, you have a connection. 2. Get input and output streams associated with the socket. out = new PrintWriter (client.getOutputStream()); out.println("Watson!" + "Come here...I need you!"); reader = new InputStreamReader (client.getInputStream()); in = new BufferedReader (reader); Now you can read and write to the socket, thus, communicating with the server. String data = in.readLine(); 08/12/2015 12Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 13. TCP/IP(Transmission Control Protocol/Internet Protocol)  The Protocol upon which the whole Internet is based  Each node must be configured forTCP/IP to function properly.  A software-based protocol  TCP/IP is basically the binding together of Internet Protocols used to connect hosts on the internet- Main ones are IP andTCP  TCP and IP have special packet structure  IP (Internet Protocol) is responsible for delivering packets of data between systems on the internet and specifies their format. Packets forwarded based on a four byte destination IP address (IP number) IP DOES NOT MAKE GUARANTEES! It is very simple - essentially: send and forget.  TCP (TransmissionControl Protocol) is responsible for verifying the correct delivery of data/packets from client to server. Data can be lost .SoTCP also adds support to detect errors and retransmit data until completely received 08/12/2015 13Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 14. 08/12/2015 14Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 15.  Version — Indicates the version of IP currently used.  IP Header Length (IHL) — Indicates the datagram header length in 32-bit words.  Type-of-Service — Specifies how an upper-layer protocol would like a current datagram to be handled, and assigns datagram various levels of importance.  Total Length — Specifies the length, in bytes, of the entire IP packet, including the data and header.  Identification — Contains an integer that identifies the current datagram. This field is used to help piece together datagram fragments.  Flags — Consists of a 3-bit field of which the two low-order (least-significant) bits control fragmentation. The low-order bit specifies whether the packet can be fragmented. The middle bit specifies whether the packet is the last fragment in a series of fragmented packets.The third or high-order bit is not used.  Fragment Offset — Indicates the position of the fragment’s data relative to the beginning of the data in the original datagram, which allows the destination IP process to properly reconstruct the original datagram.  Time-to-Live — Maintains a counter that gradually decrements down to zero, at which point the datagram is discarded.  Protocol — Indicates which upper-layer protocol receives incoming packets after IP processing is complete.  Header Checksum — Helps ensure IP header integrity.  Source Address — Specifies the sending node.  Destination Address — Specifies the receiving node.  Options — Allows IP to support various options, such as security.  Data — Contains upper-layer sent in packet. 08/12/2015 15Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 16. 08/12/2015 16Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
  • 17.  There are 12 fields inTCP Packet:  Source Port and Destination Port — Identifies points at which upper- layer source and destination processes receiveTCP services.  Sequence Number In the connection-establishment phase, this field also can be used to identify an initial sequence number to be used in an upcoming transmission.  Acknowledgment Number — Contains the sequence number of the next byte of data the sender of the packet expects to receive.  Data Offset — Indicates the number of 32-bit words in theTCP header.  Reserved — Remains reserved for future use.  Flags — Carries a variety of control information, including the SYN and ACK bits used for connection establishment, and the FIN bit used for connection termination.  Window — Specifies the size of the sender’s receive window (that is, the buffer space available for incoming data).  Checksum — Indicates whether the header was damaged in transit.  Urgent Pointer — Points to the first urgent data byte in the packet.  Options — Specifies variousTCP options.  Data — Contains upper-layer sent in packet. 08/12/2015 17Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia