Email Protocols: IMAP, POP3, SMTP and HTTP
Email Protocols: IMAP, POP3, SMTP and HTTP
Basicaly, a protocol is about a standard method used at each end of a communication channel, in order to
properly transmit information. In order to deal with your email you must use a mail client to access a mail
server. The mail client and mail server can exchange information with each other using a variety of
protocols.
IMAP Protocol:
IMAP (Internet Message Access Protocol) – Is a standard protocol for accessing e-mail from your local
server. IMAP is a client/server protocol in which e-mail is received and held for you by your Internet
server. As this requires only a small data transfer this works well even over a slow connection such as a
modem. Only if you request to read a specific email message will it be downloaded from the server. You
can also create and manipulate folders or mailboxes on the server, delete messages etc.
see also IMAP.org
POP3 Protocol:
The POP (Post Office Protocol 3) protocol provides a simple, standardized way for users to access
mailboxes and download messages to their computers.
When using the POP protocol all your eMail messages will be downloaded from the mail server to your
local computer. You can choose to leave copies of your eMails on the server as well. The advantage is
that once your messages are downloaded you can cut the internet connection and read your eMail at your
leisure without incuring further communication costs. On the other hand you might have transferred a lot
of message (including spam or viruses) in which you are not at all interested at this point.
SMTP Protocol:
The SMTP (Simple Mail Transfer Protocol) protocol is used by the Mail Transfer Agent (MTA) to deliver
your eMail to the recipient's mail server. The SMTP protocol can only be used to send emails, not to
receive them. Depending on your network / ISP settings, you may only be able to use the SMTP protocol
under certain conditions (see incoming and outgoing mail servers
HTTP Protocol:
The HTTP protocol is not a protocol dedicated for email communications, but it can be used for
accessing your mailbox. Also called web based email, this protocol can be used to compose or retrieve
emails from an your account. Hotmail is a good example of using HTTP as an email protocol.
Network congestion
From Wikipedia, the free encyclopedia
Contents
[hide]
1 Network capacity
2 Congestive collapse
o 2.1 History
o 2.2 Cause
3 Congestion control
o 3.1 Theory of congestion control
o 3.2 Classification of congestion control algorithms
4 Avoidance
o 4.1 Practical network congestion avoidance
4.1.1 TCP/IP congestion avoidance
4.1.2 Active Queue Management (AQM)
4.1.2.1 Purpose
4.1.2.2 Random early detection
4.1.2.3 Flowbased-RED/WRED
4.1.2.4 IP ECN
4.1.2.5 Cisco AQM: Dynamic buffer limiting
(DBL)
4.1.2.6 TCP Window Shaping
o 4.2 Side effects of congestive collapse avoidance
4.2.1 Radio links
4.2.2 Short-lived connections
5 See also
6 References
7 Books
8 External links
[edit]Network capacity
The fundamental problem is that all network resources are limited, including router processing
time and link throughput.
However:
When a network is in such a condition, it has settled (under overload) into a stable state where
traffic demand is high but little useful throughput is available, and there are high levels
ofpacket delay and loss (caused by routers discarding packets because their output queues are
too full) and general quality of service is extremely poor.
[edit]History
Congestion collapse was identified as a possible problem as far back as 1984 (RFC 896, dated
6 January). It was first observed on the early Internet in October 1986, when the NSFnetphase-I
backbone dropped three orders of magnitude from its capacity of 32 kbit/s to 40 bit/s, and this
continued to occur until end nodes started implementing Van Jacobson'scongestion
control between 1987 and 1988.
[edit]Cause
When more packets were sent than could be handled by intermediate routers, the intermediate
routers discarded many packets, expecting the end points of the network to retransmit the
information. However, early TCP implementations had very bad retransmission behavior. When
this packet loss occurred, the end points sent extra packets that repeated the information lost;
doubling the data rate sent, exactly the opposite of what should be done during congestion. This
pushed the entire network into a 'congestion collapse' where most packets were lost and the
resultant throughput was negligible.
[edit]Congestion control
Congestion control concerns controlling traffic entry into a telecommunications network, so as
to avoid congestive collapse by attempting to avoid oversubscription of any of the processing
or link capabilities of the intermediate nodes and networks and taking resource reducing steps,
such as reducing the rate of sending packets. It should not be confused withflow control, which
prevents the sender from overwhelming the receiver.
[edit]Theory of congestion control
The modern theory of congestion control was pioneered by Frank Kelly, who
applied microeconomic theory and convex optimization theory to describe how individuals
controlling their own rates can interact to achieve an "optimal" network-wide rate allocation.
The mathematical expression for optimal rate allocation is as follows. Let xi be the rate of
flow i, Cl be the capacity of link l, and rli be 1 if flow i uses link l and 0 otherwise.
Let x, c andR be the corresponding vectors and matrix. Let U(x) be an increasing,
strictly convex function, called the utility, which measures how much benefit a user obtains by
transmitting at ratex. The optimal rate allocation then satisfies
such that
The Lagrange dual of this problem decouples, so that each flow sets its own rate,
based only on a "price" signalled by the network. Each link capacity imposes a
constraint, which gives rise to a Lagrange multiplier, pl. The sum of these Lagrange
multipliers,
yi = ∑ pr ,
l li
Congestion control then becomes a distributed optimisation algorithm for solving the
above problem. Many current congestion control algorithms can be modelled in this
framework, withpl being either the loss probability or the queueing delay at link l.
A major weakness of this model is that it assumes all flows observe the same price,
while sliding window flow control causes "burstiness" which causes different flows to
observe different loss or delay at a given link.
The prevention of network congestion and collapse requires two major components:
The correct end point behaviour is usually still to repeat dropped information, but
progressively slow the rate that information is repeated. Provided all end points do
this, the congestion lifts and good use of the network occurs, and the end points all
get a fair share of the available bandwidth. Other strategies such as slow-start ensure
that new connections don't overwhelm the router before the congestion detection can
kick in.
The most common router mechanisms used to prevent congestive collapses are fair
queueing and other scheduling algorithms, and random early detection, or RED,
where packets are randomly dropped proactively triggering the end points to slow
transmission before congestion collapse actually occurs. Fair queueing is most useful
in routers at choke points with a small number of connections passing through them.
Larger routers must rely on RED.
Some end-to-end protocols are better behaved under congested conditions than
others. TCP is perhaps the best behaved. The first TCP implementations to handle
congestion well were developed in 1984[citation needed], but it was not until Van Jacobson's
inclusion of an open source solution in Berkeley UNIX ("BSD") in 1988 that good TCP
implementations became widespread.
UDP does not, in itself, have any congestion control mechanism. Protocols built atop
UDP must handle congestion in their own way. Protocols atop UDP which transmit at
a fixed rate, independent of congestion, can be troublesome. Real-time streaming
protocols, including many Voice over IP protocols, have this property. Thus, special
measures, such as quality-of-service routing, must be taken to keep packets from
being dropped from streams.
In general, congestion in pure datagram networks must be kept out at the periphery of
the network, where the mechanisms described above can handle it. Congestion in
the Internet backbone is very difficult to deal with. Fortunately, cheap fiber-optic lines
have reduced costs in the Internet backbone. The backbone can thus be provisioned
with enough bandwidth to keep congestion at the periphery.[citation needed]
The TCP congestion avoidance algorithm is the primary basis for congestion control in
the Internet. [2] [3] [4] [5] [6]
Problems occur when many concurrent TCP flows are experiencing port queue
buffer tail-drops. Then TCP's automatic congestion avoidance is not enough. All flows
that experience port queue buffer tail-drop will begin a TCP retrain at the same
moment - this is called TCP global synchronization.
[edit]Purpose
RED indirectly signals to sender and receiver by deleting some packets, eg. when the
average queue buffer lengths are more than eg. 50% (lower threshold) filled and
deletes linearly more or (better according to paper) cubical more packets, [10] up to eg.
100% (higher threshold). The average queue buffer lengths are computed over 1
second at a time.
[edit]Flowbased-RED/WRED
Some network equipment are equipped with ports that can follow and measure each
flow (flowbased-RED/WRED) and are hereby able to signal to a too big bandwidth
flow according to some QoS policy. A policy could divide the bandwidth among all
flows by some criteria.
[edit]IP ECN
Main article: Explicit Congestion Notification
Another approach is to use IP ECN[11]. ECN is only used when the two hosts signal
that they want to use it. With this method, an ECN bit is used to signal that there is
explicit congestion. This is better than the indirect packet delete congestion
notification performed by the RED/WRED algorithms, but it requires explicit support by
both hosts to be effective. [12]Some outdated or buggy network equipment drops
packets with the ECN bit set, rather than ignoring the bit. More information on the
status of ECN including the version required forCisco IOS, by Sally Floyd[8], one of the
authors of ECN.
When a router receives a packet marked as ECN capable and anticipates (using
RED) congestion, it will set an ECN-flag notifying the sender of congestion. The
sender then ought to decrease its transmission bandwidth; eg. by decreasing the tcp
window size (sending rate) or by other means.
Cisco has taken a step further in their Catalyst 4000 series with engine IV and V.
Engine IV and V has the possibility to classify all flows in "aggressive" (bad) and
"adaptive" (good). It ensures that no flows fill the port queues for a long time. DBL can
utilize IP ECN instead of packet-delete-signalling. [13] [14]
The protocols that avoid congestive collapse are often based on the idea that data
loss on the Internet is caused by congestion. This is true in nearly all cases; errors
during transmission are rare on today's fiber based Internet. However, this
causes WiFi, 3G or other networks with a radio layer to have poor throughput in some
cases since wireless networks are susceptible to data loss due to interference. The
TCP connections running over a radio based physical layer see the data loss and tend
to believe that congestion is occurring when it isn't and erroneously reduce the data
rate sent.
[edit]Short-lived connections
[edit]See also
A router distributes Digital computer information that is contained within a data packet. Each
data packet contains address information that a router can use to determine if the source and
destination are on the same network, or if the data packet must be transferred from one network
type to another. This transfer to another type of network is achieved by encapsulating the data
with Network specific Protocol header information. When multiple routers are used in a large
collection of interconnected networks, the routers exchange information about target system
addresses, so that each router can build up a table showing the preferred paths between any
two systems on the interconnected networks.