词条 | Duplex mismatch |
释义 |
On an Ethernet connection, a duplex mismatch is a condition where two connected devices operate in different duplex modes, that is, one operates in half duplex while the other one operates in full duplex. The effect of a duplex mismatch is a link that operates inefficiently. Duplex mismatch may be caused by manually setting two connected network interfaces at different duplex modes or by connecting a device that performs autonegotiation to one that is manually set to a full duplex mode.[1] Duplex mismatch due to autonegotiationWhen a device set to autonegotiation is connected to a device that is not using autonegotiation, the autonegotiation process fails. The autonegotiating end of the connection is still able to correctly detect the speed of the other end, but cannot correctly detect the duplex mode. For backwards compatibility with Ethernet hubs, the standard requires the autonegotiating device to use half duplex in these conditions. Therefore, the autonegotiating end of the connection uses half duplex while the non-negotiating peer is locked at full duplex, and this is a duplex mismatch. The Ethernet standards and major Ethernet equipment manufacturers recommend enabling autonegotiation.[2][3][4] Nevertheless, network equipment allows autonegotiation to be disabled and on some networks, autonegotiation is disabled on all ports and a fixed modality of 100 Mbit/s and full duplex is used. That was often done by network administrators intentionally upon the introduction of autonegotiation, because of interoperability issues with the initial autonegotiation specification. The fixed mode of operation works well if both ends of a connection are locked to the same settings. However, maintaining such a network and guaranteeing consistency is difficult. Since autonegotiation is generally the manufacturer’s default setting it is almost certain that, in an environment where the policy is to have fixed port settings, someone will sooner or later leave a port set to use autonegotiation by mistake.[5] Effects of duplex mismatchCommunication is possible over a connection in spite of a duplex mismatch. Single packets are sent and acknowledged without problems. As a result, a simple ping command fails to detect a duplex mismatch because single packets and their resulting acknowledgments at 1-second intervals do not cause any problem on the network. A terminal session which sends data slowly (in very short bursts) can also communicate successfully. However, as soon as either end of the connection attempts to send any significant amount of data, the network suddenly slows to very low speed. Since the network is otherwise working, the cause is not so readily apparent. A duplex mismatch causes problems when both ends of the connection attempt to transfer data at the same time. This happens even if the channel is used (from a high-level or user's perspective) in one direction only, in case of large data transfers. Indeed, when a large data transfer is sent over a TCP, data is sent in multiple packets, some of which will trigger an acknowledgment packet back to the sender. This results in packets being sent in both directions at the same time. In such conditions, the full-duplex end of the connection sends its packets while receiving other packets; this is exactly the point of a full-duplex connection. Meanwhile, the half-duplex end cannot accept the incoming data while it is sending – it will sense it as a collision. The half-duplex device ceases its current data transmission, sends a jam signal instead and then retries later as per CSMA/CD. This results in the full-duplex side receiving an incomplete frame with CRC error or a runt frame. It does not detect any collision since CSMA/CD is disabled on the full-duplex side. As a result, when both devices are attempting to transmit at (nearly) the same time, the packet sent by the full-duplex end will be discarded and lost due to an assumed collision and the packet sent by the half duplex device will be delayed or lost due to a CRC error in the frame.[6] The lost packets force the TCP protocol to perform error recovery, but the initial (streamlined) recovery attempts fail because the retransmitted packets are lost in exactly the same way as the original packets. Eventually, the TCP transmission window becomes full and the TCP protocol refuses to transmit any further data until the previously-transmitted data is acknowledged. This, in turn, will quiesce the new traffic over the connection, leaving only the retransmissions and acknowledgments. Since the retransmission timer grows progressively longer between attempts, eventually a retransmission will occur when there is no reverse traffic on the connection, and the acknowledgment are finally received. This will restart the TCP traffic, which in turn immediately causes lost packets as streaming resumes. The end result is a connection that is working but performs extremely poorly because of the duplex mismatch. Symptoms of a duplex mismatch are connections that seem to work fine with a ping command, but "lock up" easily with very low throughput on data transfers; the effective data transfer rate is likely to be asymmetrical, performing much worse in the half-duplex to full-duplex direction than the other. In normal half-duplex operations late collisions do not occur. However, in a duplex mismatch the collisions seen on the half-duplex side of the link are often late collisions. The full-duplex side usually will register frame check sequence errors, or runt frames.[7][8] Viewing these standard Ethernet statistics can help diagnose the problem. Contrary to what one might reasonably expect, both sides of a connection need to be identically configured for proper operation. In other words, setting one side to automatic (either speed or duplex or both) and setting the other to be fixed (either speed or duplex or both) will likely result in either a speed mismatch, a duplex mismatch or both. A duplex mismatch can be fixed by either enabling autonegotiation (if available and working) on both ends or by forcing the same settings on both ends (availability of a configuration interface permitting). If there is no option but to have a locked setting on one end and autonegotiation the other (for example, an old device with broken autonegotiation connected to an unmanaged switch) half duplex must be used. All modern LAN equipment comes with autonegotiation enabled and the various compatibility issues have been resolved. The best way to avoid duplex mismatches is to use autonegotiation and to replace any legacy equipment that does not use autonegotiation or does not autonegotiate correctly. References1. ^{{cite web |url=http://www.netcordia.com/resources/tech-tips/switch-port-duplex-mismatch.asp |title=Switch Port Duplex Mismatch |accessdate=2011-02-15 |deadurl=yes |archiveurl=https://web.archive.org/web/20110714165042/http://www.netcordia.com/resources/tech-tips/switch-port-duplex-mismatch.asp |archivedate=2011-07-14 |df= }} 2. ^{{cite web |url=http://www.cisco.com/en/US/tech/tk389/tk214/technologies_tech_note09186a0080094781.shtml |title=Configuring and Troubleshooting Ethernet 10/100/1000Mb Half/Full Duplex Auto-Negotiation |publisher=Cisco |accessdate=2012-01-12 |quote=Cisco recommends to leave auto-negotiation on for those devices compliant with 802.3u.}} 3. ^{{cite web |archiveurl=https://web.archive.org/web/20110520185854/http://www.sun.com/blueprints/0704/817-7526.pdf |archivedate=2011-05-20 |title=Ethernet Autonegotiation Best Practices |url=http://www.sun.com/blueprints/0704/817-7526.pdf |author=Jim Eggers and Steve Hodnett |publisher=Sun Microsystems |date=July 2004 |quote=Using autonegotiation is the IEEE 802.3 standard and customers are encouraged to follow the "intent" of IEEE 802.3u/z standards and implement autonegotiation in their Ethernet environments.}} 4. ^{{cite web |url= http://www.dell.com/content/topics/global.aspx/power/en/ps1q01_hernan?c=us&l=en&cs=555 |title=Gigabit Ethernet Auto-Negotiation |author=Rich Hernandez |year=2001 |publisher=Dell |accessdate=2012-01-12}} 5. ^{{cite web |url=http://etherealmind.com/ethernet-autonegotiation-works-why-how-standard-should-be-set/ |title=Autonegotiation on Ethernet – It Works, It Should Be Mandatory! |date=2010-03-10 |accessdate=2012-10-12}} 6. ^{{cite book |title=Network Warrior |publisher=O'Reilly |author=Gary A. Donahue |year=2007 |isbn=978-0-596-10151-0 |page=21}} 7. ^{{citation |title=Advanced ethernet auto negotiation |country-code=US |patent-number=6580697}} 8. ^{{cite web |url=http://network.epfl.ch/faq/vdm/817-7526.pdf |title=Ethernet Autonegotiation Best Practices |author=Jim Eggers and Steve Hodnett |publisher=Sun Microsystems |date=July 2004 |accessdate=2011-02-18}} External links
1 : Ethernet |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。