Professional Documents
Culture Documents
������ ����������
��� � ������ �������� ��� ������� � �������
�������� ���� ������ l ��� ������ ����� l ��� � ��� ����� ������ l ���������� ������� ��������� ������� ��� ��� l �������������������������������
Technical White Paper Series
Duplex Conflicts
Company
Apparent Networks is a leading innovator of network intelligence software. Apparent Networks’s technology, AppareNet, a network
intelligence system, operates non-intrusively on live networks, to and from any location worldwide. Without requiring specialized
hardware or remote agents, AppareNet views the network from the application’s perspective. In doing so, AppareNet rapidly
identifies the locations and causes of network bottlenecks anywhere in the world so that companies can boost the performance
of, and gain more value from, the network infrastructure they already have. Apparent Networks improves its customers’ businesses
by helping organizations reduce operational costs, increase IP availability, and protect revenues.
Contact Information
Sales: 1.800.508.5233
Support: 1.800.664.4401
Telephone: 604.433.2333
Fax: 604.433.2311
http://www.apparentnetworks.com
marketing@apparentnetworks.com
This report in whole or in part may not be duplicated, reproduced, stored or retransmitted without prior written permission of Apparent Networks. All opinions and
estimates herein constitute our judgment as of this date and are subject to change without notice. Any product names mentioned herein may be trademarks and/or
registered trademarks of their respective companies.
Technical White Paper Series
Duplex Conflicts
This is the second in a technical series of white papers from Apparent A duplex conflict or mismatch is the mixing of transmission rules
Networks examining the Perils of the Network. This technical series between two network interfaces that are connected together. Each
explains network idiosyncrasies and degradations and how AppareNet interface implements a different rule set, resulting in simultaneous
is capable of identifying network problems. attempts at transmission causing lost packets.
The first paper in this series, The Apparent Network, introduced the
concept of the AppareNet network as a complete end-to-end view of Impact on Application Performance
a network. This paper discusses one of the most pervasive problems
on networks today, duplex conflicts. Some applications (e.g. ping, telnet) are rarely affected by duplex
problems. Links that handle only one socket at a time usually are
not impeded. Hence, the scale and performance impact of the
problem is a relatively minor issue for a network link that is used
only by non-intensive or one-way data exchange.
Executive Summary
A recent study concluded that duplex conflicts (otherwise known as However, when multiple applications (sockets) attempt to transmit
duplex mismatches) cause 75% of all Internet/2 problems.* Most simultaneously on a link with a duplex mismatch, packets are lost
Network Engineers have encountered such conflicts, and understand and re-transmissions are forced; applications begin to slow down
how elusive they can be. These conflicts often go undiscovered by and sometimes fail. This is a common scenario for application or FTP
existing tools and network management technologies, leaving users servers, and performance degradations of 50-80% from expected
experiencing painfully slow and erratic network performance. Some levels are quite common.
networking professionals have gone as far as to call the problem an
epidemic. One symptom of a potential duplex problem in an IP network is FTP
performance fade. When an FTP download is started, the initial
This paper defines the problem, along with some common performance and data transfer rate is acceptable, but then, as
application performance symptoms of duplex problems. A brief collisions and packet loss start to occur due to a duplex conflict, the
history of Ethernet technology provides a context for how and why TCP sliding window is progressively decreased until the performance
duplex conflicts have become a prevalent performance inhibitor in slows to a crawl.
today’s network infrastructures. The nature of conflicts on hubs and
switches, as well as an exploration of inconsistent "auto-negotiate" Before AppareNet, there simply were no tools that reported duplex
implementations, will also be outlined. conflicts. It was nearly impossible to understand when or where
conflicts and link degradations were occurring.
AppareNet offers unique capabilities for rapidly measuring network
capacity, often identifying the duplex mode, and can identify and A brief look at the history of Ethernet reveals how and why duplex
pinpoint duplex conflicts in an IP network. Once the problem source conflicts occur as often as they do.
is isolated, a simple reconfiguration of the network equipment is
typically all that is required to achieve significant and noticeable
improvements in IP network performance. AppareNet allows
organizations to maximize the performance and ROI of IP networking
infrastructures.
Page 1
Technical White Paper Series
Duplex Conflicts
Ethernet originally was either 10Base-2 or 10Base-5. Both flavors ** Hub Internal
Connection
** Hub Internal
Connection
** Hub Internal
Connection
used transceivers connected via coaxial cable, carrying only one * Xceiver
Rx Tx
* Xceiver
Reliability and connectivity problems led to the next generation of Port Port Port Port
Rx Tx
Page 2
Technical White Paper Series
Duplex Conflicts
Once NICs started to support full-duplex (FDx), hub-based systems Switches require setting of duplex mode on a per-port basis. The port
were affected by any NICs that were set to full-duplex. setting must match the settings of the device attached to the port.
������ �������� �� ���� �� �������� � ���� �������� ��� �� ����������� ������ �������� �� �������� �� �������� � ���� ��������� ������ �������� ������� ���� ��
������� � ������� � ��� ������������� ������ ����
Duplex Conflict on Hubs Conflict - FDx not allowed on hub ������ �������� �� �������� �������� � ���� ����� �� � ���� ���� �� ��� ��� ����
Diagram B ������� �
Recall that a hub can only support one transmitting station at a time. In Duplex Conflict on Switches - Diagram A, traffic will flow smoothly
When Station B (in Diagram B) is set to full duplex, it may attempt to between Station A and Station B because each station’s duplex setting
transmit while receiving other traffic. This corrupts any frames that matches that of the corresponding switch port.
are passing through the hub, resulting in packet loss.
In Diagram B, traffic will flow correctly between Station A and its
switch port. However, if Station A sends data to Station B, the duplex
conflict between Station B and the switch can cause packet collisions.
Station B does not detect collisions. Station B’s full-duplex setting will
cause it to transmit regardless of the state of its receive line. As Station
B’s switch port is set to half-duplex, restricting the port from receiving
while it is transmitting, Station B’s packets will be lost.
Page 3
Technical White Paper Series
Duplex Conflicts
Auto-Negotiate Only by explicitly setting both sides of the link to the same duplex
mode would the link work at optimum performance.
Supposedly the solution to the duplex conflict, auto-negotiation has
actually made the problem even more insidious. Typically duplex To deal with this problem, many switches have received microcode
auto-negotiation techniques for NICs, switches and routers are either updates that change the behavior of their auto-negotiate mode. This
obscure or incorrectly implemented. revised mode of auto-negotiation does not appear to guess what the
other end of the link is set to. Rather, the port operates in a mode that
Most of us have seen auto-negotiate settings on NICs, switches and is neither half-duplex nor full-duplex. Although performance is
routers. Logic suggests that using auto-negotiate settings either at degraded, the possibility of a duplex conflict and subsequent packet
the NIC or at a port will ensure proper negotiation of the duplex loss is less likely.
setting. The sensible outcome would be if the interfaces settled on
the most favorable duplex setting. Apparent Networks has set up test cases where a station is set to full-
duplex mode, and the switch is set to auto-negotiate. We do not see a
conflict between half and full-duplex, but AppareNet found that the
The problem is that there is no clear standard that defines auto- capacity of the link was 35% below expected; yet higher than would
negotiation. In a practical sense, we have seen many implementations be possible on a half-duplex link. By switching from auto-negotiate
and interpretations of this so-called feature. to full-duplex, the full capacity of the link was once again realized.
This example of auto-negotiation sacrificed performance to address
the inability to accurately negotiate duplex modes.
Commonly, auto-negotiate means that, when the link is established
(NIC is connected to a port), negotiations will occur to ensure that
both sides of a connection are set to the right speed and duplex Measuring Path Bandwidth
mode. The speed is often correct, however, we often find that duplex
negotiations fail. Unlike most other technologies that can measure traffic throughput
or "what the network is doing", AppareNet is unique in its ability
to measure "what the network can do" from API to API along any
IP test path. AppareNet can also distinguish whether an end-to-end
path is working at half or full-duplex.
Page 4
Technical White Paper Series
Duplex Conflicts
Here is an example where AppareNet reports a full-duplex Ethernet Once resolved, AppareNet can run the test again to verify a clean
bandwidth: network path (i.e. Full-duplex 100 Mbps Ethernet).
Page 5