Each aircraft broadcasts messages, which include altitude, and listens for messages from other aircraft. If TCAS receives messages from another aircraft nearby that operates at the same altitude, it warns the pilots and advises them to climb or descend.