cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
565
Views
0
Helpful
7
Replies

duplex on networks

carl_townshend
Spotlight
Spotlight

Hi all, can anyone just clarify how half duplex and full duplex works, does half duplex use both pairs on cat 5 cable like full duplex, if I set my switch to half duplex, what is it exactly doing ?

7 Replies 7

graemeporter
Level 1
Level 1

Hi Carl,

If your switchport is set to half duplex, what is happening is that it is unable to receive and send traffic at the same time.

If it sends traffic while the wire is busy, you get a collision. When that happens, it waits for a random period of time before retrying again. This makes for an inefficient link.

When you set it to full duplex, then the switchport uses different wires for transmit (TX) and receive (RX) signals. It is then capable of receiving data whilst it is sending data, with no collisions on the wire.

Cisco kit can tell if there's a duplex mismatch - if the device on the other end of the wire is set with half instead of full, or vice-versa. It will alert you to these mismatches through error logging and/or to the console (depending on how your device is configured).

Hope this is of some help!

Kind regards,

Graeme

so when in half duplex, does it only use 1 pair of the cable for tx and rx ?

Graham is almost correct however there is a mistake in his explanation regarding pairs used in 10/100BaseT.

Back in the old days Ethernet was presented as a Coaxial cable - either Thick Ethernet (10Base5) or Thin Ethernet (10Base2). It was effectively a single cable up to 500-meters (10Base5) or 200-meters (10Base2) in length, terminated at either end with 50-ohm resisters (Terminators). All devices connected to this cable in parallel usually using 'T' pieces or 'Taps'.

Coaxial cable obviously only has one pair - the inner core (signal) and the outer sheath (ground), obviously in this scenario only a single device can transmit at a time. If two devices attempt to transmit at the same time there is a collision. In Ethernet NICs there is collision detection circuitry (CSMA/CD) that can detect when a collision occurs and forces the NIC to back off and wait a random time before attempting to transmit again.

Fast forward a bit and we have 10BaseT Ethernet that runs over UTP cabling (Cat3, Cat5 & Cat6). Since Cat5/6 cabling is star-wired - i.e. all outlets come back to a common wiring closet and each link is an individual cable, this new (at the time) standard included a transmit pair and a separate receive pair. If a 10BaseT hub is used then the operation is as before - i.e. half duplex, however if a switch is used where each port is its own collision domain and only two devices ever exist on the domain (the switchport and the attached device) then the collision detection circuitry can be disabled and the link configured for full-duplex operation. Regardless of the duplex for 10/100BaseT two pairs are used.

There is no explicit standard for 10BaseT at full-duplex, however when 100BaseT appeared it included a standard for auto-negotiation that allowed NIC's to negotiate speed & duplex with the switchport (802.3u).

http://www.cisco.com/en/US/tech/tk389/tk214/technologies_tech_note09186a0080094781.shtml

When you manually set a port to Full Duplex you disable the collision detection circuitry and the auto-negotiation capability and allow the port to transmit & receive simultaneously.

HTH

Andy

so what happens when we set the port to half duplex, how are signals sent ?, does the switch only allow one signal to be sent along the transmit and receive at different times ?

The switch receives on one pair and transmits on another regardless of the duplex setting. If the interface is set to full-duplex then the collision detection circuitry is disabled and the interface can transmit & receive simultaneously. If the interface is set to half-duplex then the collision detection circuitry is enabled, if traffic is being received on the receive pair the interface cannot transmit until the reception has finished. If a collision occurs - i.e. both ends try and send at the same time then a collision will be detected by both parties (the host and the switchport) and they will back off and wait a random time before attempting to transmit again.

All this information is out there with very detailed descriptions. Why not try google? This will stop this forum filling up with repeated posts.....

Andy

hi there

I cannot understand, If the switch/pc uses 2 different pairs for tx and rx then how can a collision occur? and im still unsure what difference half / full duplex will make if tx and rx are on different pairs

please explain

The power of google....

http://www.fpga4fun.com/10BASE-T1.html

I am not wanting to sound insulting, but if you can't use google to find this infomation out then there is something wrong with you.....

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card