Professional Documents
Culture Documents
CHAPTER – 4.1
TCP/IP AND URL
TCP/IP
TCP/IP is vendor-independent wide area network protocol set, which is
widely used on LANs peer-to-peer communications.
Origin of TCP/IP
• TCP/IP was developed by the United States Department of
Defense for its ARPA (Advance Research Project Agency)
Network.
• This is a very large scale WAN, linking many major commercial,
university and military establishments.
• The relevance of TCP/IP to LANs is two fold :
• It is a datagram based protocol, well suited to LAN access
method, particularly Ethernet.
• It is popular within UNIX N/W.
TCP/IP Protocol set structure
It is a four layer communication architecture which provide some
reasonable N/W feature :
• End-to-End communication
• Unreliable communication line handling.
• Packet sequencing.
• Internet work routing.
The bottom layer, network services, provides for communications to
N/W Hardware (IEEE 802.3 servers of LANs, and other technologies X.25).
The layer above the N/W services layer is referred to as the Internet
Protocol (IP) layer.
IP layer provides a datagram service that routes data packet between
dissimilar N/W architecture (Ethernet and say X.25).
• It gives data reliability, but
• It does not guarantee delivery of data (if data gets there great, it
that's O.K. too).
Internet Protocol
• In TCP/IP model, a network is an individual packet switched
network which may be a LAN or WAN (but is generally under the
control of one organization).
• These networks connects to each other by gateways (Collection
of such network is called catenet).
• Internet Protocol provides for the transmission of Data grams
between systems over the whole catenet.
• It specifically allows for fragmentation and reassembly of the
data grams at the gateways, as the under lying network may
demand different packet size.
• IP is very simple Protocol, with no mechanism for
- End-to-end reliability.
- Flow control sequencing
Format of UDP
Transmission Control Protocol (TCP)
• TCP provides a highly reliable, connection oriented end-to-end
transport service between processes in end system connect to
catenet.
• TCP provides the types of facility associated with the ISO class
4 transport service including error recovery, sequencing of
packets, flow control by the windowing method and the support
of multiplexed connections from the layer above.
16 bit 16 bit
Source Port Destination Port
Sequence number
Acknowledge no.
Data offset Reserved Flags Window
Checksum Urgent printer
Options Padding
Data
The fields in the Header are :
Source/port – These fields identify multiple streams to the layer above.
Sequence/ask number – Used for windowing acknowledgement technique.
Data offset – This is the number of 32 bit words in TCP header, which like the
IP header has a variable length option field.
Flag bits – There are several bits used as states indicators to show, for
example, the resetting of the connection.
Window – The receiver to set the window size uses the field.
Checksum – Again this cover only the header.
Urgent pointer – Sender can indicate that urgent datagram is coming and
urges the receiver to handle it as quickly as possible.
Options – This variable sized field some negotiations parameters, to set the
size of the TCP packets.
Padding – To align the next 32-bit boundary.
URL
Learning About URIs
The Web is an information space. Human beings have a lot of mental
machinery for manipulating, imagining, and finding their way in spaces. URIs
are the points in that space.
Unlike web data formats, where HTML is an important one, but not the only
one, and web protocols, where HTTP has a similar status, there is only one
Web naming/addressing technology: URIs.
UR* Terms
The basic picture, specified in section 1.2. URI, URL, and URN of RFC 2396,
looks like this:
_______________________________________________________
| ________________ |
| | ftp: | |
| | gopher: | |
| | http: __|____________ |
| | etc | | urn: | |
| |_____________|__| | |
| URLs | | |
| |_______________| |
| URNs |
|_______________________________________________________|
URIs
URI
Uniform Resource Identifier. The generic set of all names/addresses that
are short strings that refer to resources.
URL
Uniform Resource Locator. An informal term (no longer used in technical
specifications) associated with popular URI schemes: http, ftp, mailto, etc.
URN
Uniform Resource Name.
1. An URI that has an institutional commitment to persistence,
availability, etc. Note that this sort of URI may also be a URL. See,
for example, PURLs.
2. A particular scheme, urn:, specified by RFC2141 and related
documents, intended to serve as persistent, location-independent,
resource identifiers.