WO1999067760A1 - Method and apparatus for gap count determination - Google Patents

Method and apparatus for gap count determination Download PDF

Info

Publication number
WO1999067760A1
WO1999067760A1 PCT/US1999/013930 US9913930W WO9967760A1 WO 1999067760 A1 WO1999067760 A1 WO 1999067760A1 US 9913930 W US9913930 W US 9913930W WO 9967760 A1 WO9967760 A1 WO 9967760A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
time
round
measuring
leaf
Prior art date
Application number
PCT/US1999/013930
Other languages
French (fr)
Inventor
David Lafollette
Jerrold Hauck
Original Assignee
Intel Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Intel Corporation filed Critical Intel Corporation
Priority to EP99930471A priority Critical patent/EP1093646B1/en
Priority to AU47008/99A priority patent/AU4700899A/en
Priority to DE69939117T priority patent/DE69939117D1/en
Publication of WO1999067760A1 publication Critical patent/WO1999067760A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40078Bus configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40084Bus arbitration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the invention relates to bus interfaces in general.
  • the invention relates to a method and apparatus for determining a gap count for a serial bus.
  • IEEE 1394 enables isochronous service while providing the bandwidth needed for audio, imaging, video, and other streaming data. Isochronous service means it guarantees latency (i.e.. the length of time between a requested action and when the resulting action occurs). Latency is a critical feature in supporting real time video, for example.
  • IEEE 1394 provides a high-speed serial bus with data transfer rates of 100, 200, or 400 mega-bits per second. It is well-known in the art that IEEE 1394 data transfer rates can be improved by optimizing a parameter referred to as a "gap count. " If the gap count is set too low, timing based arbitration breaks down. For instance, some nodes may detect idle time as an arbitration reset gap before others detect a subaction gap.
  • a serial bus network having seven nodes in its longest daisy- chain would have a total of six hops, which according to Table E-6 merits a gap count of six.
  • Various techniques exist for determining the number of hops in a network For example, "self-ID" packets sent by each node can be used to reconstruct the topology of a bus network, or the bus manager can simply assume a maximum number of hops (16) for a given network.
  • Table E-6 lists a maximum round trip propagation delay for a given number of hops based on the assumption that the length of the transmission medium (e.g. , co- axial cable) between each node is 4.5 meters. The actual length of each cable, however, could range as high as 100 meters or more. Therefore, the maximum round trip propagation delay assumed by Table E-6 could in practice be far less than what is actually incurred in a network.
  • the transmission medium e.g. , co- axial cable
  • the gap count derived using Table E-6 could be set low enough to cause timing problems throughout the network.
  • Bill Duckwall in a paper titled “1394a Enhancements” available at “ftp//ftp. symbios.com” suggests calculating a gap count using a maximum round-trip delay measured by "PHY pinging. "
  • a diagnostic node transmits a special packet containing a target address ("ping packet"). The node starts a timer when transmission is complete. When the target node receives the ping, it sends back a ping response packet.
  • the diagnostic node detects the ping response, stops the timer at start of reception, and calculates from the timer the propagation delay to the target node.
  • the diagnostic node selects the longest delay in the network and sets the gap count accordingly.
  • the technique disclosed in the Duckwall reference is unsatisfactory for a number of reasons. Foremost, the Duckwall reference assumes the diagnostic node is actually one of the end nodes of the daisy chain having the longest delay in the network. This suggests that each end node must have the appropriate hardware and software to perform PHY pinging. This requirement is expensive and redundant. Further, the Duckwall reference assumes that the measured delay is the maximum propagation delay time. The measured delay, however, is merely representative of a single ping of a particular daisy-chain, and therefore may not represent the worst case delay over that particular daisy-chain without further information.
  • One embodiment of the invention comprises a method and apparatus for determining a gap count for a serial bus network.
  • a round-trip delay time for transmitting a packet from a first leaf node to a second leaf node and back over a communication path between the nodes for each pair of leaf nodes in the network is determined.
  • a maximum round-trip delay time for each communication path is calculated.
  • a node latency delay time for each leaf node in the network is determined.
  • a longest maximum round-trip delay time and a longest node latency delay time is selected for the network, and a gap count is calculated using the selected times.
  • FIG. 1 is a diagram of a serial bus network suitable for practicing one embodiment of the invention.
  • FIG. 2 is a block diagram of a measuring node in accordance with one embodiment of the invention.
  • FIG. 3 is a block flow diagram of the steps performed by a measuring node in accordance with one embodiment of the invention.
  • FIG. 4 is a block flow diagram of the steps for measuring round-trip delay times when the measuring node is on the path to be measured, in accordance with one embodiment of the invention.
  • FIG. 5 is a block flow diagram of the steps for measuring round-trip delay time when the measuring node is not on the path to be measured, in accordance with one embodiment of the invention.
  • FIG. 6 is a block flow diagram of the steps for determining a maximum round- trip delay for a pair of leaf nodes in accordance with one embodiment of the invention.
  • FIG. 7 is a serial bus network suitable for practicing another embodiment of the invention.
  • the various embodiments of the present invention comprise a method and apparatus for optimizing a gap count for a serial bus network, especially a network conforming to IEEE 1394.
  • An optimal gap count significantly impacts the data transfer rates for a given network topology. If the gap count is set too low, timing based arbitration breaks down. For example, some nodes may detect idle time as an arbitration reset gap before others detect a subaction gap. The smaller the gap count is set, the smaller the bus topology must be for the timing to work. If the gap count is set too high, arbitration works, but the bus efficiency suffers from the larger than necessary gaps.
  • FIG. 1 is a block diagram of a serial bus network suitable for practicing one embodiment of the invention. It is worthy to note that any reference in the specification to "one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
  • FIG. 1 shows a serial bus network 100 that conforms to IEEE 1394. Network
  • Node 100 comprises nodes A, B, C, D and M labeled 102, 104, 106, 108 and 110, respectively.
  • Nodes A, M, B, C and D are connected by links 112, 114, 116 and 118, respectively.
  • Node M (node 110) is a measuring node for network 100, and can be any node in network 100.
  • measuring node 110 is the bus manager node since the bus manager node, among other things, is responsible for optimizing performance of network 100.
  • each node of network 100 is connected to another node via a communication link. In many instances, each node is connected to more than one node, such as nodes 104 and 110.
  • leaf nodes There are, however, a number of nodes that are connected to only one other node in the network. Such nodes are typically referred to as “leaf nodes. " For example, nodes 102, 106 and 108 are considered leaf nodes since they only connect with one other node. The importance of leaf nodes will be described in further detail later.
  • FIG. 2 is a block diagram of a measuring node in accordance with one embodiment of the invention.
  • FIG. 2 shows measuring node 110 comprising a processor 202, a memory 204, a bus adapter 206, a gap count module 208, and a PHY ping module 210, each of which is connected to a processor/memory bus 200 and an Input/Output (I/O) bus 212 via bus adapter 206.
  • measuring node 110 contains a bus network interface 216 and memory 218, both of which are connected to I/O bus 212 via I/O controllers 214.
  • the term "PHY” as used herein refers to the physical layer of a network as specified by IEEE 1394.
  • measuring node 110 is controlled by processor 202, which operates under the control of executed computer program instructions and data stored in memory 204 or memory 218.
  • Memory 204 may be any type of "fast” machine readable storage device, such as random access memory (RAM), read only memory (ROM), programmable read only memory (PROM), erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), and so forth.
  • Memory 218 may be any "slow” machine readable memory such as magnetic storage media (i.e.. a magnetic disk), optical storage media Le ⁇ , a CD-ROM or DVD), and so forth.
  • Processor 202 includes any processor of sufficient processing power to perform the functionality found in measuring node 110.
  • processors suitable to practice the invention includes the Pentium ® , Pentium ® Pro, and Pentium ® II microprocessors manufactured by Intel Corporation.
  • Bus network interface 216 controls communications between nodes via links 112, 114, 116 and 118 using the protocols, services and operating procedures set forth in IEEE 1394.
  • Bus network interface 216 also includes a timer 211 for timing a round-trip delay time for packets sent between leaf nodes of a network.
  • I/O controllers 214 control the flow of information between measuring node 110 and bus network interface 216 and memory 218.
  • Bus adapter 206 transfers data back and forth between processor/memory bus 200 and I/O bus 212.
  • Gap count module 208 and PHY pinging module 210 implement the main functionality for measuring node 110. It is noted that modules 208 and 210 are shown as separate functional modules in FIG. 2. It can be appreciated, however, that the functions performed by these modules can be further separated into more modules, combined together to form one module, or be distributed throughout the system, and still fall within the scope of the invention. Further, the functionality of these modules may be implemented in hardware, software, or a combination of hardware and software, using well-known signal processing techniques. When implemented in software, the computer program segments or instructions are stored in computer readable memory such as memory 204 and memory 218, and are executed by a processor such as processor 202. The operation of these modules will be described in further detail below with reference to FIG 3. FIG.
  • the communication path with the longest delay in the network is the one that determines the gap count. Since the actual delay across the physical layer for each node ("PHY delay” or “node latency delay”)) and the actual delay across each cable connecting the nodes ("cable delays”) are unknown, each leaf to leaf path must be checked and the worst one used. It is worthy to note that the longest delay is not necessarily in the path with the most nodes.
  • the measuring node measures a round trip delay time for a packet traveling over a communication path between a pair of leaf nodes for every pair of leaf nodes in the network at step 302.
  • the measuring node measures round trip delay time by transmitting a ping packet and timing the return of a self-ID packet (IEEE PI 394a) transmitted in response.
  • a self-ID packet IEEE PI 394a
  • any PHY packet that provokes a response from the addressed PHY may be used.
  • a remote access packet may be used both to obtain PHY jitter from another PHY and measure the propagation time in the same step. Additional details with respect to step 302 will be discussed later with reference to FIGS. 4 and 5.
  • the measuring node uses the measured propagation times to calculate a maximum round trip time for each pair of leaf nodes at step 304. This is because the measured propagation time changes for each measured ping, and therefore for purposes of setting a gap count cannot be considered the maximum delay time. Rather, it must be assumed to be the shortest time for this particular communication path. To set a gap count, however, a maximum round trip delay for the network must be determined. Therefore, a maximum round trip delay for each communication path must be first be determined. This can be accomplished in two ways, the first of which is described below. The second method is described with reference to FIG. 6 below.
  • the first method for determining a maximum round trip delay for a given communication path is through calculation.
  • the time measured by PHY pinging from the measuring node to another node includes the data end of the PHY ping request, the delays through the measuring node, the cable and PHY propagation delays in both directions, the target arbitration response delay, the PHY ping response time and measurement error. This is represented by the following formula:
  • PingMeas DE + LinkToPhyDel BM + 2((hops-l)*(CD + PD)) + 2CD + ArbRespDel + PingRespTime -I- PhyToLinkDel BM + MeasError.
  • the maximum propagation time is calculated by adding jitter terms and subtracting the minimums of the undesired terms from the measured time. Jitter may be obtained from the PHY register 0100 ⁇ , as identified in IEEE 1394, for each repeating PHY along the path. Thus, the maximum round trip time is calculated using the following equation:
  • Propmax PingMeas - DEMin - LinkToPhyDelMing M + 2((hops-l)*(JPD)) - ArbRespDelMin - PingRespTimeMin -PhyToLinkDelMine M .
  • the minimum propagation time is calculated by subtracting jitter terms and the minimums of the undesired terms from the measured time, as follows:
  • the maximum and minimum round trip delay times for a given communication path are the aggregate cable and PHY delay adjusted for jitter. Any delay caused by arbitration or the PHY/link interface is subtracted out.
  • the Ping Time measured by link hardware, starts when the most significant bit of the ping packet is transferred from the link to the PHY and ends when a data prefix indication is signaled by the PHY.
  • the term for PHY jitter is the sum of individual PHY jitter for each of the repeating PHYs on the path between the measuring node and the pinged node. This can be obtained by a remote read of the PHY registers.
  • the resultant round-trip delay is expressed in units of microseconds.
  • each leaf PHY delay can be determined from each leaf node's own PHY register.
  • the path having the worst (i.e.. longest) round trip delay in the network is the one which determines the gap count. Therefore, the measuring node selects the value representing the longest maximum round-trip delay of all the leaf pairs in the network at step 308.
  • the worst leaf PHY delay is also selected at step 308. Using the worst maximum round-trip delay and PHY delay for the network, a gap count (GC) is calculated at step 310 using the following equation:
  • GC ((BRMin)*(BRMax)*(RTDelMax + ArbRespDelMax A + ArbRespDelMax B ) - 51BRMin + 29BRMax)/(32BRMin - 20BRMax).
  • GC 8.196 x (RTDelMax + ArbRespDelMax A + ArbRespDelMax B ) - 1.833.
  • the worst case round-trip delay is expressed in microseconds.
  • the PHY delay term accounts for the maximum arbitration response delay of the two leaf nodes.
  • ArbRespDelMax A and ArbRespDelMax B may be replaced with the sum of the maximum PHY delays for the two leaf nodes for the worst case path.
  • the resulting Gap Count is rounded to the next highest integer.
  • the Gap Count may be transmitted in a PHY configuration packet to optimize the performance of network 100.
  • the measuring node determines a round-trip delay for each pair of leaf nodes in a network at step 302.
  • the technique used to determine the round-trip delay varies according to where the measuring node is located with respect to the leaf nodes.
  • the possible topologies resolve into three categories:
  • the measuring node is a leaf and the round-trip delay is to be measured to another leaf;
  • the measuring node is not a leaf but is on the path that connects two leaves whose round-trip delay is to be measured;
  • the measuring node is neither a leaf nor on the path that connects two leaves whose round-trip delay is to be measured.
  • topology 1 With respect to topology 1 , assume that nodes B, C and D are not present, that is, node M and node A are leaf nodes. The round-trip delay is the propagation time measured from node M to node A and back. Topologies 2 and 3 will be described below with reference to FIGS. 4 and 5, respectively.
  • FIG. 4 is a block flow diagram of the steps for measuring round-trip delay times when the measuring node is on the path to be measured, in accordance with one embodiment of the invention.
  • the measuring node sends a ping packet to a first leaf node from a measuring node at a first time at step 402.
  • a response packet is received at the measuring node from the first leaf node at step 404.
  • the measuring node sends a ping packet to a second leaf node from the measuring node at a third time at step 406.
  • a response packet is received at the measuring node from the second leaf node at a fourth time at step 408.
  • the round-trip delay for the path is calculated at step 410 using the following formula:
  • Round-trip delay (second time - first time) + (fourth time - third time) 4- 2 x the PHY delay of the measuring node.
  • Round-trip delay (A C) Propagation time A + Propagation time c + 2 x PHY delay M .
  • FIG. 5 is a block flow diagram of the steps for measuring round-trip delay time when the measuring node is not on the path to be measured, in accordance with one embodiment of the invention.
  • steps 502, 504, 506 and 508 are similar to steps 402, 404, 406 and 408 described with reference to FIG. 4, respectively.
  • the measuring node locates an intermediate node that is on the communication path being measured at step 510.
  • the measuring node sends a ping packet to the intermediate node at a fifth time at step 512.
  • the measuring node receives a response packet from the intermediate node at a sixth time at step 514.
  • the measuring node measures the round-trip delay at step 516 using the following formula:
  • Round-trip delay (second time - first time) + (fourth time - third time) - 2 x ((sixth time - fifth time) + PHY delay for the intermediate node).
  • the measuring node is to determine a round- trip delay between nodes C and D.
  • Node M measures propagation times to both nodes C and D.
  • the measuring node measures the propagation time to the node closest to the measuring node that is also on the path between the leaf nodes. In this example it would be node B.
  • These measurements are combined to eliminate the propagation time from the measuring node to node B and the excess PHY delay for node B (measured twice in the propagation times for nodes C and D) as follows:
  • Round-trip delay ⁇ C D) Propagation time, ; . + Propagation time D - 2 x (Propagation time B + PHY delay B ).
  • the propagation times measured for nodes C and D are minima while the propagation times measured to node B is maximum.
  • the PHY delay for node B is obtained by remote access to that node's PHY registers.
  • the measuring node determines a maximum round- trip delay for each pair of leaf nodes at step 304.
  • the maximum propagation time is calculated by adding jitter terms and subtracting the minimums of the undesired terms from the measured time. Alternatively, this can be accomplished as described with reference to FIG. 6 below.
  • FIG. 6 is a block flow diagram of the steps for determining a maximum round- trip delay for a pair of leaf nodes in accordance with one embodiment of the invention.
  • the measuring node pings each pair of leaf nodes a plurality of times at step 602.
  • the measuring node determines an average round-trip delay time and standard deviation for each pair of leaf nodes at step 604. These values would represent actual jitter and are used to replace the calculated jitter terms described previously. This would tighten the bounds on the calculated propagation times and result in the selection of a more optimal gap count.
  • FIG. 7 is a bus serial network suitable for practicing one embodiment of the invention.
  • FIG. 7 illustrates a network 700 comprising a bus manager node 702, a node A (704), a node B (706) and a node C (708).
  • Lines 710, 712, 714, 716 and 720 are each 4.5 meters long.
  • Line 718 is 100 meters long.
  • Bus manager node 702 incorporates functionality similar to measuring node 110 as described with reference to FIGS. 1 and 2.
  • a gap count will be determined for network 700 in accordance with the principles of the invention described above.
  • the equations used to derive an optimal gap count are similar to those described with reference to FIGS. 1-6, with some redefined terms, defined values, and suggested values, as shown in Table 1 below.
  • the term is a shortened version of a term defined in IEEE 1394'and IEEE P1394a.
  • the subscripts BM, A, B and C refer to a Bus Manager and nodes A, B and C, respectively. It should be noted that the values listed in Table 1 are exemplary only, and can be modified in accordance with changes in the IEEE P1394a specification and still fall within the scope of the invention.
  • RTDel 2(hops-l) * (CD+PD) + 2CD.
  • Gap Count is set such that ArbResetGapMin > SubactionGapMax.
  • GC(32BRMin - 20BRMax) (BRMin)*(BRMax)*(RTDelMax + ArbRespDelMax A + ArbRespDelMax B ) -51BRMin + 29BRMax;
  • GC ((BRMin)*(BRMax)*(RTDelMax + ArbRespDelMax A + ArbRespDelMaXg) - 51 BRMin + 29BRMax)/(32BRMin - 20BRMax).
  • PingMeas DE + LinkToPhyDe ⁇ M + 2((hops-l)*(CD + PD)) + 2CD + ArbRespDel + PingRespTime + PhyToLinkDe ⁇ M + MeasError.
  • the PHY Delay Delta is defined as the difference between the sum of the port to port paths between the bus manager node and nodes A and B minus the port to port path between nodes A and B. It is worthy to note that this value may be different in nodes which have 1394B ports than in 1394A nodes. In this example, the bus manager must ping all the other leaf nodes, A and B.
  • the measured round trip time to nodes A, B and C from the bus manager are the measured round trip time to nodes A, B and C from the bus manager.
  • PDDeltaMin PDMin BMA +PDMin BMB -PDMax AB
  • Gap count is calculated using this value as follows:
  • the gap count in this example must be set to 23 to guarantee node A never sees an arbitration reset gap before node B sees a subaction gap.
  • network 100 comprises only five nodes, it can be appreciated that a serial bus network can comprise any number of nodes in an infinite variety of patterns and still fall within the scope of the invention.
  • a PHY ping packet was used to measure propagation delays for network 100, it can be appreciated that any type of timing packet falls within the scope of the invention.

Abstract

A method and apparatus for determining a gap count for a serial bus network (100) is described. A round-trip delay time for transmitting a packet from a first leaf node to a second leaf node and back over a communication path between the nodes for each pair of leaf nodes (302) in the network is determined. A maximum round-trip delay time (304) for each communication path is calculated. A node latency delay time (306) for each leaf node in the network is determined. A longest maximum round-trip delay time (308) and a longest node latency delay time is selected for the network, and a gap count (310) is calculated using the selected times.

Description

METHOD AND APPARATUS FOR GAP COUNT DETERMINATION
FIELD OF THE INVENTION
The invention relates to bus interfaces in general. In particular, the invention relates to a method and apparatus for determining a gap count for a serial bus.
BACKGROUND OF THE INVENTION
The recognition of the superior quality of digital technologies has resulted in an unprecedented demand for digital products. This is evidenced by the popularity of consumer electronic devices such as audio compact discs, direct broadcast satellite systems, digital video disc (DVD) players, and digital video tape systems, as well as personal computer (PC) peripheral devices such as compact disc read-only memory (CD-ROM) drives, DVD drives, video cameras, musical instrument digital interface (MIDI) devices, and digital scanners.
The popularity of digital devices prompted a need for a uniform digital interface capable of connecting such devices into a single network. Consequently, the Institute of Electrical and Electronics Engineers (IEEE) introduced Standard 1394 titled "IEEE Standard for a High Performance Serial Bus," IEEE Computer Society, December 12, 1995 ("IEEE 1394").
IEEE 1394 enables isochronous service while providing the bandwidth needed for audio, imaging, video, and other streaming data. Isochronous service means it guarantees latency (i.e.. the length of time between a requested action and when the resulting action occurs). Latency is a critical feature in supporting real time video, for example. IEEE 1394 provides a high-speed serial bus with data transfer rates of 100, 200, or 400 mega-bits per second. It is well-known in the art that IEEE 1394 data transfer rates can be improved by optimizing a parameter referred to as a "gap count. " If the gap count is set too low, timing based arbitration breaks down. For instance, some nodes may detect idle time as an arbitration reset gap before others detect a subaction gap. The smaller the gap count is set, the smaller the bus topology must be for the timing to work. If the gap count is set too high, arbitration works, but the bus efficiency suffers from the larger than necessary gaps. Consequently, it is a design goal for IEEE 1394 network designers to set the gap count to the lowest workable value for a particular topology without interfering with the timing of the network. One technique for determining an optimum gap count for a particular serial bus network is described in Annex E of IEEE 1394 itself. Table E-6 of Annex E lists predefined gap counts based upon the longest chain of nodes bounded by a pair of end nodes ("longest daisy chain") in the network, which is often measured in terms of "hops. " For example, a serial bus network having seven nodes in its longest daisy- chain would have a total of six hops, which according to Table E-6 merits a gap count of six. Various techniques exist for determining the number of hops in a network. For example, "self-ID" packets sent by each node can be used to reconstruct the topology of a bus network, or the bus manager can simply assume a maximum number of hops (16) for a given network. A gap count derived using Table E-6 and the various methods for determining hops, however, is unsatisfactory for at least one major reason. Of particular importance in optimizing a gap count is ascertaining a maximum round trip propagation delay for sending a packet of information from one end node to another end node for a given daisy-chain. A minimum gap count is then calculated using the longest round trip propagation delay found in the network, among various other factors. Table E-6 lists a maximum round trip propagation delay for a given number of hops based on the assumption that the length of the transmission medium (e.g. , co- axial cable) between each node is 4.5 meters. The actual length of each cable, however, could range as high as 100 meters or more. Therefore, the maximum round trip propagation delay assumed by Table E-6 could in practice be far less than what is actually incurred in a network. As a result, the gap count derived using Table E-6 could be set low enough to cause timing problems throughout the network. Bill Duckwall in a paper titled "1394a Enhancements" available at "ftp//ftp. symbios.com" (the "Duckwall reference") suggests calculating a gap count using a maximum round-trip delay measured by "PHY pinging. " According to the Duckwall reference, a diagnostic node transmits a special packet containing a target address ("ping packet"). The node starts a timer when transmission is complete. When the target node receives the ping, it sends back a ping response packet. The diagnostic node detects the ping response, stops the timer at start of reception, and calculates from the timer the propagation delay to the target node. The diagnostic node selects the longest delay in the network and sets the gap count accordingly. The technique disclosed in the Duckwall reference, however, is unsatisfactory for a number of reasons. Foremost, the Duckwall reference assumes the diagnostic node is actually one of the end nodes of the daisy chain having the longest delay in the network. This suggests that each end node must have the appropriate hardware and software to perform PHY pinging. This requirement is expensive and redundant. Further, the Duckwall reference assumes that the measured delay is the maximum propagation delay time. The measured delay, however, is merely representative of a single ping of a particular daisy-chain, and therefore may not represent the worst case delay over that particular daisy-chain without further information.
In view of the foregoing, it can be appreciated that a substantial need exists for a method and apparatus for determining an improved gap count for a given network topology that solves the above-discussed problems. SUMMARY OF THE INVENTION
One embodiment of the invention comprises a method and apparatus for determining a gap count for a serial bus network. A round-trip delay time for transmitting a packet from a first leaf node to a second leaf node and back over a communication path between the nodes for each pair of leaf nodes in the network is determined. A maximum round-trip delay time for each communication path is calculated. A node latency delay time for each leaf node in the network is determined. A longest maximum round-trip delay time and a longest node latency delay time is selected for the network, and a gap count is calculated using the selected times.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a diagram of a serial bus network suitable for practicing one embodiment of the invention.
FIG. 2 is a block diagram of a measuring node in accordance with one embodiment of the invention. FIG. 3 is a block flow diagram of the steps performed by a measuring node in accordance with one embodiment of the invention.
FIG. 4 is a block flow diagram of the steps for measuring round-trip delay times when the measuring node is on the path to be measured, in accordance with one embodiment of the invention. FIG. 5 is a block flow diagram of the steps for measuring round-trip delay time when the measuring node is not on the path to be measured, in accordance with one embodiment of the invention. FIG. 6 is a block flow diagram of the steps for determining a maximum round- trip delay for a pair of leaf nodes in accordance with one embodiment of the invention.
FIG. 7 is a serial bus network suitable for practicing another embodiment of the invention.
DETAILED DESCRIPTION
The various embodiments of the present invention comprise a method and apparatus for optimizing a gap count for a serial bus network, especially a network conforming to IEEE 1394. An optimal gap count significantly impacts the data transfer rates for a given network topology. If the gap count is set too low, timing based arbitration breaks down. For example, some nodes may detect idle time as an arbitration reset gap before others detect a subaction gap. The smaller the gap count is set, the smaller the bus topology must be for the timing to work. If the gap count is set too high, arbitration works, but the bus efficiency suffers from the larger than necessary gaps.
FIG. 1 is a block diagram of a serial bus network suitable for practicing one embodiment of the invention. It is worthy to note that any reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment. FIG. 1 shows a serial bus network 100 that conforms to IEEE 1394. Network
100 comprises nodes A, B, C, D and M labeled 102, 104, 106, 108 and 110, respectively. Nodes A, M, B, C and D are connected by links 112, 114, 116 and 118, respectively. Node M (node 110) is a measuring node for network 100, and can be any node in network 100. In this embodiment of the invention, measuring node 110 is the bus manager node since the bus manager node, among other things, is responsible for optimizing performance of network 100. As shown in FIG. 1, each node of network 100 is connected to another node via a communication link. In many instances, each node is connected to more than one node, such as nodes 104 and 110. There are, however, a number of nodes that are connected to only one other node in the network. Such nodes are typically referred to as "leaf nodes. " For example, nodes 102, 106 and 108 are considered leaf nodes since they only connect with one other node. The importance of leaf nodes will be described in further detail later.
FIG. 2 is a block diagram of a measuring node in accordance with one embodiment of the invention. FIG. 2 shows measuring node 110 comprising a processor 202, a memory 204, a bus adapter 206, a gap count module 208, and a PHY ping module 210, each of which is connected to a processor/memory bus 200 and an Input/Output (I/O) bus 212 via bus adapter 206. Further, measuring node 110 contains a bus network interface 216 and memory 218, both of which are connected to I/O bus 212 via I/O controllers 214. The term "PHY" as used herein refers to the physical layer of a network as specified by IEEE 1394. The overall functioning of measuring node 110 is controlled by processor 202, which operates under the control of executed computer program instructions and data stored in memory 204 or memory 218. Memory 204 may be any type of "fast" machine readable storage device, such as random access memory (RAM), read only memory (ROM), programmable read only memory (PROM), erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), and so forth. Memory 218 may be any "slow" machine readable memory such as magnetic storage media (i.e.. a magnetic disk), optical storage media Le^, a CD-ROM or DVD), and so forth.
Processor 202 includes any processor of sufficient processing power to perform the functionality found in measuring node 110. Examples of processors suitable to practice the invention includes the Pentium®, Pentium® Pro, and Pentium® II microprocessors manufactured by Intel Corporation.
Bus network interface 216 controls communications between nodes via links 112, 114, 116 and 118 using the protocols, services and operating procedures set forth in IEEE 1394. Bus network interface 216 also includes a timer 211 for timing a round-trip delay time for packets sent between leaf nodes of a network. I/O controllers 214 control the flow of information between measuring node 110 and bus network interface 216 and memory 218. Bus adapter 206 transfers data back and forth between processor/memory bus 200 and I/O bus 212.
Gap count module 208 and PHY pinging module 210 implement the main functionality for measuring node 110. It is noted that modules 208 and 210 are shown as separate functional modules in FIG. 2. It can be appreciated, however, that the functions performed by these modules can be further separated into more modules, combined together to form one module, or be distributed throughout the system, and still fall within the scope of the invention. Further, the functionality of these modules may be implemented in hardware, software, or a combination of hardware and software, using well-known signal processing techniques. When implemented in software, the computer program segments or instructions are stored in computer readable memory such as memory 204 and memory 218, and are executed by a processor such as processor 202. The operation of these modules will be described in further detail below with reference to FIG 3. FIG. 3 is a block flow diagram of the steps performed by a measuring node in accordance with one embodiment of the invention. The communication path with the longest delay in the network is the one that determines the gap count. Since the actual delay across the physical layer for each node ("PHY delay" or "node latency delay")) and the actual delay across each cable connecting the nodes ("cable delays") are unknown, each leaf to leaf path must be checked and the worst one used. It is worthy to note that the longest delay is not necessarily in the path with the most nodes. The measuring node measures a round trip delay time for a packet traveling over a communication path between a pair of leaf nodes for every pair of leaf nodes in the network at step 302. The measuring node measures round trip delay time by transmitting a ping packet and timing the return of a self-ID packet (IEEE PI 394a) transmitted in response. Alternatively, any PHY packet that provokes a response from the addressed PHY may be used. For example, a remote access packet may be used both to obtain PHY jitter from another PHY and measure the propagation time in the same step. Additional details with respect to step 302 will be discussed later with reference to FIGS. 4 and 5.
Once the measuring node acquires a round trip delay time for a pair of leaf nodes, the measuring node uses the measured propagation times to calculate a maximum round trip time for each pair of leaf nodes at step 304. This is because the measured propagation time changes for each measured ping, and therefore for purposes of setting a gap count cannot be considered the maximum delay time. Rather, it must be assumed to be the shortest time for this particular communication path. To set a gap count, however, a maximum round trip delay for the network must be determined. Therefore, a maximum round trip delay for each communication path must be first be determined. This can be accomplished in two ways, the first of which is described below. The second method is described with reference to FIG. 6 below. The first method for determining a maximum round trip delay for a given communication path is through calculation. The time measured by PHY pinging from the measuring node to another node includes the data end of the PHY ping request, the delays through the measuring node, the cable and PHY propagation delays in both directions, the target arbitration response delay, the PHY ping response time and measurement error. This is represented by the following formula:
PingMeas = DE + LinkToPhyDelBM + 2((hops-l)*(CD + PD)) + 2CD + ArbRespDel + PingRespTime -I- PhyToLinkDelBM + MeasError.
Since the measured propagation time consists essentially of cable delays and PHY delays, the maximum propagation time is calculated by adding jitter terms and subtracting the minimums of the undesired terms from the measured time. Jitter may be obtained from the PHY register 0100^, as identified in IEEE 1394, for each repeating PHY along the path. Thus, the maximum round trip time is calculated using the following equation:
Propmax = PingMeas - DEMin - LinkToPhyDelMingM + 2((hops-l)*(JPD)) - ArbRespDelMin - PingRespTimeMin -PhyToLinkDelMineM.
The minimum propagation time is calculated by subtracting jitter terms and the minimums of the undesired terms from the measured time, as follows:
Propmin = PingMeas - DEMax - LinkToPhyDelMaXβM - 2((hops-l)*(JPD))
- ArbRespDelMax - PingRespTimeMax - PhyToLinkDelMaxBM.
The maximum and minimum round trip delay times for a given communication path are the aggregate cable and PHY delay adjusted for jitter. Any delay caused by arbitration or the PHY/link interface is subtracted out. The Ping Time, measured by link hardware, starts when the most significant bit of the ping packet is transferred from the link to the PHY and ends when a data prefix indication is signaled by the PHY. The term for PHY jitter is the sum of individual PHY jitter for each of the repeating PHYs on the path between the measuring node and the pinged node. This can be obtained by a remote read of the PHY registers. The resultant round-trip delay is expressed in units of microseconds. In addition to determining maximum round trip delays for each communication path between leaf nodes in the network, the response time need for each leaf mode is determined at step 306. This time is referred to as a leaf node latency delay or leaf PHY delay. Each leaf PHY delay can be determined from each leaf node's own PHY register. As stated previously, the path having the worst (i.e.. longest) round trip delay in the network is the one which determines the gap count. Therefore, the measuring node selects the value representing the longest maximum round-trip delay of all the leaf pairs in the network at step 308. The worst leaf PHY delay is also selected at step 308. Using the worst maximum round-trip delay and PHY delay for the network, a gap count (GC) is calculated at step 310 using the following equation:
GC = ((BRMin)*(BRMax)*(RTDelMax + ArbRespDelMaxA + ArbRespDelMaxB) - 51BRMin + 29BRMax)/(32BRMin - 20BRMax).
This formula can be reduced as follows:
GC = 8.196 x (RTDelMax + ArbRespDelMaxA + ArbRespDelMaxB) - 1.833.
The worst case round-trip delay is expressed in microseconds. The PHY delay term accounts for the maximum arbitration response delay of the two leaf nodes. The terms ArbRespDelMaxA and ArbRespDelMaxB may be replaced with the sum of the maximum PHY delays for the two leaf nodes for the worst case path. The resulting Gap Count is rounded to the next highest integer. The Gap Count may be transmitted in a PHY configuration packet to optimize the performance of network 100.
As shown in FIG. 3 and described above, the measuring node determines a round-trip delay for each pair of leaf nodes in a network at step 302. The technique used to determine the round-trip delay, however, varies according to where the measuring node is located with respect to the leaf nodes. The possible topologies resolve into three categories:
1. The measuring node is a leaf and the round-trip delay is to be measured to another leaf;
2. The measuring node is not a leaf but is on the path that connects two leaves whose round-trip delay is to be measured; and
3. The measuring node is neither a leaf nor on the path that connects two leaves whose round-trip delay is to be measured.
With respect to topology 1 , assume that nodes B, C and D are not present, that is, node M and node A are leaf nodes. The round-trip delay is the propagation time measured from node M to node A and back. Topologies 2 and 3 will be described below with reference to FIGS. 4 and 5, respectively.
FIG. 4 is a block flow diagram of the steps for measuring round-trip delay times when the measuring node is on the path to be measured, in accordance with one embodiment of the invention. As shown in FIG. 4, the measuring node sends a ping packet to a first leaf node from a measuring node at a first time at step 402. A response packet is received at the measuring node from the first leaf node at step 404. The measuring node sends a ping packet to a second leaf node from the measuring node at a third time at step 406. A response packet is received at the measuring node from the second leaf node at a fourth time at step 408. The round-trip delay for the path is calculated at step 410 using the following formula:
Round-trip delay = (second time - first time) + (fourth time - third time) 4- 2 x the PHY delay of the measuring node.
For example, assume that the round-trip delay is to be calculated between nodes A and C as shown in FIG. 1. Node M measures the propagation time from itself to node A and from itself to node C. The round-trip delay between the two leaf nodes also needs to account for the PHY delay of node M and is expressed by:
Round-trip delay (A C) = Propagation timeA + Propagation timec + 2 x PHY delayM.
In the formula above, all of the times are maxima, and the measuring node's PHY delay is obtained from its own PHY registers. FIG. 5 is a block flow diagram of the steps for measuring round-trip delay time when the measuring node is not on the path to be measured, in accordance with one embodiment of the invention. In this embodiment of the invention, steps 502, 504, 506 and 508 are similar to steps 402, 404, 406 and 408 described with reference to FIG. 4, respectively. The measuring node then locates an intermediate node that is on the communication path being measured at step 510. The measuring node sends a ping packet to the intermediate node at a fifth time at step 512. The measuring node receives a response packet from the intermediate node at a sixth time at step 514. The measuring node measures the round-trip delay at step 516 using the following formula:
Round-trip delay = (second time - first time) + (fourth time - third time) - 2 x ((sixth time - fifth time) + PHY delay for the intermediate node).
Referring again to FIG. 1, assume the measuring node is to determine a round- trip delay between nodes C and D. Node M measures propagation times to both nodes C and D. The measuring node then measures the propagation time to the node closest to the measuring node that is also on the path between the leaf nodes. In this example it would be node B. These measurements are combined to eliminate the propagation time from the measuring node to node B and the excess PHY delay for node B (measured twice in the propagation times for nodes C and D) as follows:
Round-trip delay {C D) = Propagation time,;. + Propagation timeD - 2 x (Propagation timeB + PHY delayB).
In this case, the propagation times measured for nodes C and D are minima while the propagation times measured to node B is maximum. The PHY delay for node B is obtained by remote access to that node's PHY registers.
Returning again to FIG. 3, the measuring node determines a maximum round- trip delay for each pair of leaf nodes at step 304. The maximum propagation time is calculated by adding jitter terms and subtracting the minimums of the undesired terms from the measured time. Alternatively, this can be accomplished as described with reference to FIG. 6 below.
FIG. 6 is a block flow diagram of the steps for determining a maximum round- trip delay for a pair of leaf nodes in accordance with one embodiment of the invention. The measuring node pings each pair of leaf nodes a plurality of times at step 602. The measuring node then determines an average round-trip delay time and standard deviation for each pair of leaf nodes at step 604. These values would represent actual jitter and are used to replace the calculated jitter terms described previously. This would tighten the bounds on the calculated propagation times and result in the selection of a more optimal gap count.
FIG. 7 is a bus serial network suitable for practicing one embodiment of the invention. FIG. 7 illustrates a network 700 comprising a bus manager node 702, a node A (704), a node B (706) and a node C (708). Lines 710, 712, 714, 716 and 720 are each 4.5 meters long. Line 718 is 100 meters long. Bus manager node 702 incorporates functionality similar to measuring node 110 as described with reference to FIGS. 1 and 2.
A gap count will be determined for network 700 in accordance with the principles of the invention described above. The equations used to derive an optimal gap count are similar to those described with reference to FIGS. 1-6, with some redefined terms, defined values, and suggested values, as shown in Table 1 below. In some instances, the term is a shortened version of a term defined in IEEE 1394'and IEEE P1394a. The subscripts BM, A, B and C refer to a Bus Manager and nodes A, B and C, respectively. It should be noted that the values listed in Table 1 are exemplary only, and can be modified in accordance with changes in the IEEE P1394a specification and still fall within the scope of the invention.
TABLE 1
Figure imgf000016_0001
Figure imgf000017_0001
Figure imgf000018_0001
The following assumptions are made in calculating a gap count for network 700. A Round Trip delay is defined to include round trip cable and PHY propagation delays as follows: RTDel = 2(hops-l) * (CD+PD) + 2CD. To insure that no node sees an arb reset gap before another node sees a subaction gap, Gap Count is set such that ArbResetGapMin > SubactionGapMax. The minimum detection time for arb reset gap is as follows: ArbResetGapMin = (51 + 32GC)/BRMax. The maximum observed subaction gap is as follows: SubactionGapMax = (29 + 16GC)/BRMin + ArbDelMax + RTDelMax + ArbRespDelMaxA + ArbRespDelMaxB, with ArbDelMax = 4GC/BRMin. Thus, for the smallest usable gap count:
(51 + 32GC)/BRMax = (29 + 16GC)/BRMin + ArbDelMax + RTDelMax + ArbRespDelMaxA + ArbRespDelMaxB;
51 BRMin + 32BRMin(GC) = 29BRMax + 16BRMax(GC) + 4BRMax(GC) + (BRMin)*(BRMax)*(RTDelMax + ArbRespDelMaxA + ArbRespDelMaXg) ;
GC(32BRMin - 20BRMax) = (BRMin)*(BRMax)*(RTDelMax + ArbRespDelMaxA + ArbRespDelMaxB) -51BRMin + 29BRMax;
GC = ((BRMin)*(BRMax)*(RTDelMax + ArbRespDelMaxA + ArbRespDelMaXg) - 51 BRMin + 29BRMax)/(32BRMin - 20BRMax). The following assumptions are made in determining a maximum round trip delay for network 700. The time measured by PHY pinging from the Bus Manager to another node is shown by PingMeas = DE + LinkToPhyDe^M + 2((hops-l)*(CD + PD)) + 2CD + ArbRespDel + PingRespTime + PhyToLinkDe^M + MeasError. The calculated maximum propagation time is the measured time plus uncertainties minus the minimums of the undesired terms, as shown in PropMax = PingMeas - DEMin - LinkToPhyDelMinBM + 2((hops-l)*(JPD)) - ArbRespDelMin - PingRespTimeMin -PhyToLinkDelMinBM. The calculated minimum propagation time is the measured time minus uncertainties minus the maximums of the undesired terms, as shown in PropMin = PingMeas - DEMax - LinkToPhyDelMaXβM - 2((hops- 1)*(JPD)) - ArbRespDelMax - PingRespTimeMax - PhyToLinkDelMaxBM.
When pinging from the bus manager node to nodes A and B, the PHY delays seen through node C are along the paths between the port leading to the bus manager and the ports leading to nodes A and B. The PHY delay of interest, however, is the one between the child ports along the path from node A to node B. Thus, the PHY Delay Delta is defined as the difference between the sum of the port to port paths between the bus manager node and nodes A and B minus the port to port path between nodes A and B. It is worthy to note that this value may be different in nodes which have 1394B ports than in 1394A nodes. In this example, the bus manager must ping all the other leaf nodes, A and B.
It must then calculate the maximum round trip delay for all leaf to leaf paths, BM to A, BM to B, and A to B. The biggest round trip delay is then used to calculate a gap count for network 700.
The following additional values are defined for network 700 in Table 2 below. Table 2
Figure imgf000020_0001
The measured round trip time to nodes A, B and C from the bus manager are
PingMeas,, DE + LιnkToPhyDelBM + 2((Hops 1)(CD + PD)) + 2*CD + ArbRespDelA + PιngRespTιmeA -PhγToLιnkDelBVI +MeasError 250nS + 51nS + 8*5 05nS/M~4 5M + 6=n00nS + 100nS + 132nS + 92nS+ lOnS 1417nS
PingMeas,, DE + LιnkToPhyDelBM -r2((Hops-l)(CD +PD)) + 2*CD +
ArbRespDelB + PιngRespTιmeB -r Ph ToLmkDelBM +
MeasError
250nS + 51nS + 6*5 05nS/M~4 5M + 2~5 05nS/M~100m + 6 *
100nS + 100nS + 132nS + 92nS -L 10nS
2381nS PingMeasc = DE+LinkToPhyDelBM+2((Hops-l)(CD+PD)) + 2*CD + ArbRespDelc + PingRespTimec + PhyToLinkDelBM + MeasError
250nS + 51nS + 4 * 5.05nS/M * 4.5M + 2*100nS + lOOnS + 132nS + 92nS + lOnS
926nS
The following equations do not assume the use of statistical methods to eliminate the Phy delay jitter terms. Results may be improved if nodes are pinged repeatedly and statistical methods are used as described with reference to FIG. 6.
PropMaxA = PingMeasA-DEMin-LinkToPhyDelMinBM+2((hops-l)(JPD))- ArbRespDelMin-PingRespTimeMin-PhyToLinkDelMinBM 1417nS-240nS-40nS + 6*20nS-33.3nS-122nS-81nS = 1021nS
PropMaxB = PingMeasB-DEMin-LinkToPhyDelMinBM+2((hops-l)(JPD))- ArbRespDelMin-PingRespTimeMin-PhyToLinkDelMinBM 2381nS-240nS-40nS+6*20nS-33.3nS-122nS-81nS = 1985nS
PropMinc = PingMeasc-DEMax-LinkToPhyDelMaxBM-2((hops-l)(JPD))- ArbRespDelMax-PingRespTimeMax-PhyToLinkDelMaxBM 926nS-260nS-61 nS-2 *20nS- 144nS- 142nS- 102nS = 177nS
The Maximum Round Trip Time Calculations are as follows: RTDelMaxBMA= PropMaxA = 1021nS
RTDelMaxBMB= PropMaxB = 1985nS
PDDeltaMin = PDMinBMA+PDMinBMB-PDMaxAB
= 33.3nS+33.3nS-144nS = -77.4nS
RTDelMaxAB = PropMaxA + PropMaxB-2(PropMinc)-2(PDMinc)-2(PDDeltaMinc) = 1021nS + 1985nS-2(177nS)-2(33.3nS)-2(-77.4nS) = 2740nS
The largest round trip delay calculated for any leaf to leaf path is 2740nS for node A to node B. Gap count is calculated using this value as follows:
GC = ((BRMin)(BRMax)(RTDelMaxAB+ArbRespDelMaxA + ArbRespDelMa xB)-51BRMin + 29BRMax) /(32BRMin-20BRMax) = ((98.294)(98.314)(2.74uS+0.144uS+0.144uS)-51(98.294) +
29*(98.314))/(32(98.294) - 20*(98.314)) 22.98
The gap count in this example must be set to 23 to guarantee node A never sees an arbitration reset gap before node B sees a subaction gap.
Although various embodiments are specifically illustrated and described herein, it will be appreciated that modifications and variations of the present invention are covered by the above teachings and within the purview of the appended claims without departing from the spirit and intended scope of the invention. For example, although network 100 comprises only five nodes, it can be appreciated that a serial bus network can comprise any number of nodes in an infinite variety of patterns and still fall within the scope of the invention. For another example, although a PHY ping packet was used to measure propagation delays for network 100, it can be appreciated that any type of timing packet falls within the scope of the invention.

Claims

What is claimed is: 1. A method for determining a gap count for a serial bus network, comprising: determining a round-trip delay time for transmitting a packet from a first leaf node to a second leaf node and back over a communication path between said nodes for each pair of leaf nodes in the network; calculating a maximum round-trip delay time for each communication path; determining a node latency delay time for each leaf node in the network; selecting a longest maximum round-trip delay time and a longest node latency delay time for the network; and calculating a gap count using said selected times.
2. The method of claim 1 , wherein said determining is performed by a measuring node.
3. The method of claim 1 , wherein said determining a round-trip delay comprises: pinging each pair of leaf nodes a plurality of times; and determining an average round-trip delay time and standard deviation for each pair of leaf nodes.
4. The method of claim 1, wherein said measuring node is one of said first and second leaf nodes, and wherein said determining a round-trip delay comprises: sending a packet to said first leaf node from said second leaf node at a first time; receiving a packet from said first leaf node at said second leaf node at a second time; and measuring said round-trip delay using said first and second times.
5. The method of claim 1, wherein said measuring node is a node other than said first and second leaf nodes, and wherein said determining a round-trip delay comprises: sending a packet to said first leaf node from said measuring node at a first time; receiving a packet from said first leaf node at said measuring node at a second time; sending a packet to said second leaf node from said measuring node at a third time; receiving a packet from said second leaf node at said measuring node at a fourth time; and measuring said round-trip delay using a formula: round-trip delay = (second time - first time) + (fourth time - third time) + 2 x node latency delay of said measuring node.
6. The method of claim 1, wherein said determining a round-trip delay comprises: sending a packet to said first leaf node from said measuring node at a first time; receiving a packet from said first leaf node at said measuring node at a second time; sending a packet to said second leaf node from said measuring node at a third time; receiving a packet from said second leaf node at said measuring node at a fourth time; locating an intermediate node in said communication path between said leaf nodes; sending a packet to said intermediate node from said measuring node at a fifth time; receiving a packet from said intermediate node at said measuring node at a sixth time; and measuring said round-trip delay using a formula: round-trip delay = (second time - first time) + (fourth time - third time) - 2 x ((sixth time - fifth time) + node latency delay for said intermediate node).
7. The method of claim 1 , wherein said calculating uses a formula: Gap Count = 8.196 x (maximum round-trip delay time + 2 x maximum node latency delay) - 1.833.
8. The method of claim 6, further comprising rounding said gap count to a next largest integer.
9. An apparatus for determining a gap count for a serial bus network, comprising: means for determining a round-trip delay time for transmitting a packet from a first leaf node to a second leaf node and back over a communication path between said nodes for each pair of leaf nodes in the network; means for calculating a maximum round-trip delay time for each communication path; means for determining a node latency delay time for each leaf node in the network; means for selecting a longest maximum round-trip delay time and a longest node latency delay time for the network; and means for calculating a gap count using said selected times.
10. The apparatus of claim 9, wherein said means for determining a round-trip delay time is located in a measuring node.
11. The apparatus of claim 9, wherein said means for determining a round-trip delay comprises: means for pinging each pair of leaf nodes a plurality of times; and means for determining an average round-trip delay time and standard deviation for each pair of leaf nodes.
12. The apparatus of claim 9, wherein said measuring node is one of said first and second leaf nodes, and wherein said means for determining a round-trip delay comprises: means for sending a packet to said first leaf node from said second leaf node at a first time; means for receiving a packet from said first leaf node at said second leaf node at a second time; and means for measuring said round-trip delay using said first and second times.
13. The apparams of claim 9, wherein said measuring node is a node other than said first and second leaf nodes, and wherein said means for determining a round-trip delay comprises: means for sending a packet to said first leaf node from said measuring node at a first time; means for receiving a packet from said first leaf node at said measuring node at a second time; means for sending a packet to said second leaf node from said measuring node at a third time; means for receiving a packet from said second leaf node at said measuring node at a fourth time; and means for measuring said round-trip delay using a formula: round-trip delay = (second time - first time) 4- (fourth time - third time) + 2 x node latency delay of said measuring node.
14. The apparatus of claim 9, wherein said means for determining a round-trip delay comprises: means for sending a packet to said first leaf node from said measuring node at a first time; means for receiving a packet from said first leaf node at said measuring node at a second time; means for sending a packet to said second leaf node from said measuring node at a third time; means for receiving a packet from said second leaf node at said measuring node at a fourth time; means for locating an intermediate node in said communication path between said leaf nodes; means for sending a packet to said intermediate node from said measuring node at a fifth time; means for receiving a packet from said intermediate node at said measuring node at a sixth time; and means for measuring said round-trip delay using a formula: round-trip delay = (second time - first time) + (fourth time - third time) - 2 x ((sixth time - fifth time) + node latency delay for said intermediate node).
15. The apparams of claim 9, wherein said means for calculating uses a formula: Gap Count = 8.196 x (maximum round-trip delay time + 2 x maximum node latency delay) - 1.833.
16. The apparams of claim 15, further comprising a means for rounding said gap count to a next largest integer.
17. A computer-readable medium whose contents cause a computer system to determine a gap count for a serial bus network, by: determining a round-trip delay time for transmitting a packet from a first leaf node to a second leaf node and back over a communication path between said nodes for each pair of leaf nodes in the network; calculating a maximum round-trip delay time for each communication path; determining a node latency delay time for each leaf node in the network; selecting a longest maximum round-trip delay time and a longest node latency delay time for the network; and calculating a gap count using said selected times.
18. The computer-readable medium of claim 17, wherein said determining is performed by a measuring.
19. The computer-readable medium of claim 17, wherein said determining a round-trip delay comprises: pinging each pair of leaf nodes a plurality of times; and determining an average round-trip delay time and standard deviation for each pair of leaf nodes.
20. The computer-readable medium of claim 17, wherein said measuring node is one of said first and second leaf nodes, and wherein said determining a round-trip delay comprises: sending a packet to said first leaf node from said second leaf node at a first time; receiving a packet from said first leaf node at said second leaf node at a second time; and measuring said round-trip delay using said first and second times.
21. The computer-readable medium of claim 17, wherein said measuring node is a node other than said first and second leaf nodes, and wherein said determining a round-trip delay comprises: sending a packet to said first leaf node from said measuring node at a first time; receiving a packet from said first leaf node at said measuring node at a second time; sending a packet to said second leaf node from said measuring node at a third time; receiving a packet from said second leaf node at said measuring node at a fourth time; and measuring said round-trip delay using a formula: round-trip delay = (second time - first time) + (fourth time - third time) + 2 x node latency delay of said measuring node.
22. The computer-readable medium of claim 17, wherein said determining a round-trip delay comprises: sending a packet to said first leaf node from said measuring node at a first time; receiving a packet from said first leaf node at said measuring node at a second time; sending a packet to said second leaf node from said measuring node at a third time; receiving a packet from said second leaf node at said measuring node at a fourth time; locating an intermediate node in said communication path between said leaf nodes; sending a packet to said intermediate node from said measuring node at a fifth time; receiving a packet from said intermediate node at said measuring node at a sixth time; and measuring said round-trip delay using a formula: round-trip delay = (second time - first time) + (fourth time - third time) - 2 x ((sixth time - fifth time) + node latency delay for said intermediate node).
23. The computer-readable medium of claim 17, wherein said calculating uses a formula: Gap Count = 8.196 x (maximum round-trip delay time + 2 x maximum node latency delay) - 1.833.
24. The computer-readable medium of claim 23, further comprising rounding said gap count to a next largest integer.
25. A computer for determining a gap count for a serial bus network, comprising: a memory containing: a round-trip delay time module; a maximum round-trip delay time module; a node latency delay time module; a selection module; a gap count module; and a processor for executing said modules.
26. A measuring node for a serial bus network, comprising: a pinging module having an output for a round-trip delay time; a timer coupled to said pinging module for measuring said round-trip delay time; a gap count determination circuit having an input coupled to said output for receiving said round-trip delay time and calculating a gap count for the network.
27. An apparams determining a gap count for a serial bus network, comprising: at least one pair of leaf nodes; a communication link connecting said leaf nodes; and a measuring node in communication with said leaf nodes, wherein said measuring node determines a round trip delay time between said leaf nodes over said communication path for use in determining the gap count.
PCT/US1999/013930 1998-06-22 1999-06-22 Method and apparatus for gap count determination WO1999067760A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP99930471A EP1093646B1 (en) 1998-06-22 1999-06-22 Method and apparatus for gap count determination
AU47008/99A AU4700899A (en) 1998-06-22 1999-06-22 Method and apparatus for gap count determination
DE69939117T DE69939117D1 (en) 1998-06-22 1999-06-22 METHOD AND DEVICE FOR DETERMINING THE COUNTER COUNTING

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/102,097 1998-06-22
US09/102,097 US6212171B1 (en) 1998-06-22 1998-06-22 Method and apparatus for gap count determination

Publications (1)

Publication Number Publication Date
WO1999067760A1 true WO1999067760A1 (en) 1999-12-29

Family

ID=22288108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1999/013930 WO1999067760A1 (en) 1998-06-22 1999-06-22 Method and apparatus for gap count determination

Country Status (6)

Country Link
US (1) US6212171B1 (en)
EP (1) EP1093646B1 (en)
AT (1) ATE401641T1 (en)
AU (1) AU4700899A (en)
DE (1) DE69939117D1 (en)
WO (1) WO1999067760A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002071699A1 (en) * 2001-03-06 2002-09-12 Koninklijke Philips Electronics N.V. System, method and mesuring node for determining a worst case gap-count value in a multi-station network
EP1087572A3 (en) * 1999-08-31 2004-05-26 Sony Corporation Band with allocation in IEEE 1394 serial bus
DE10322950A1 (en) * 2003-05-22 2004-12-16 Deutsche Thomson-Brandt Gmbh Setting consistent values for parameter in network with distributed stations, e.g. home network, by sending parameter setting message to network stations after detection of inconsistent values
US7028076B2 (en) * 2001-03-09 2006-04-11 Koninklijke Philips Electronics N.V. System of apparatuses that communicate via a bus structure
WO2006050147A2 (en) 2004-10-28 2006-05-11 Telcordia Technologies, Inc. Remote estimation of round-trip delays in a data network

Families Citing this family (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000013423A (en) * 1998-06-26 2000-01-14 Sony Corp Device and method for processing information and providing medium
US6665316B1 (en) * 1998-09-29 2003-12-16 Agilent Technologies, Inc. Organization of time synchronization in a distributed system
JP3494041B2 (en) * 1998-10-27 2004-02-03 セイコーエプソン株式会社 Data transfer control device and electronic equipment
US6601098B1 (en) * 1999-06-07 2003-07-29 International Business Machines Corporation Technique for measuring round-trip latency to computing devices requiring no client-side proxy presence
US6628607B1 (en) 1999-07-09 2003-09-30 Apple Computer, Inc. Method and apparatus for loop breaking on a serial bus
US7006448B1 (en) * 1999-10-01 2006-02-28 Lucent Technologies Inc. System and method for measuring network round trip time by monitoring fast-response operations
US6691096B1 (en) 1999-10-28 2004-02-10 Apple Computer, Inc. General purpose data container method and apparatus for implementing AV/C descriptors
US6671768B1 (en) 1999-11-01 2003-12-30 Apple Computer, Inc. System and method for providing dynamic configuration ROM using double image buffers for use with serial bus devices
US6618750B1 (en) 1999-11-02 2003-09-09 Apple Computer, Inc. Method and apparatus for determining communication paths
US6813663B1 (en) 1999-11-02 2004-11-02 Apple Computer, Inc. Method and apparatus for supporting and presenting multiple serial bus nodes using distinct configuration ROM images
US6636914B1 (en) 1999-11-05 2003-10-21 Apple Computer, Inc. Method and apparatus for arbitration and fairness on a full-duplex bus using dual phases
US6587904B1 (en) 1999-11-05 2003-07-01 Apple Computer, Inc. Method and apparatus for preventing loops in a full-duplex bus
CA2307911A1 (en) * 1999-11-18 2001-05-18 Loran Network Management Ltd. Method for determining the delay and jitter in communication between objects in a connected network
US6618755B1 (en) * 1999-12-07 2003-09-09 Watchguard Technologies, Inc. Automatically identifying subnetworks in a network
US6639918B1 (en) 2000-01-18 2003-10-28 Apple Computer, Inc. Method and apparatus for border node behavior on a full-duplex bus
US7266617B1 (en) 2000-01-18 2007-09-04 Apple Inc. Method and apparatus for border node behavior on a full-duplex bus
US7050453B1 (en) * 2000-02-17 2006-05-23 Apple Computer, Inc. Method and apparatus for ensuring compatibility on a high performance serial bus
US6618785B1 (en) 2000-04-21 2003-09-09 Apple Computer, Inc. Method and apparatus for automatic detection and healing of signal pair crossover on a high performance serial bus
US6718497B1 (en) 2000-04-21 2004-04-06 Apple Computer, Inc. Method and apparatus for generating jitter test patterns on a high performance serial bus
US6747957B1 (en) * 2000-04-28 2004-06-08 Cisco Technology, Inc. Network availability monitor
US7111073B1 (en) * 2000-05-30 2006-09-19 Cisco Technology, Inc. Apparatus for estimating delay and jitter between network routers
JP2002009796A (en) * 2000-06-26 2002-01-11 Sony Corp Data transfer system and data transfer control device, and data transfer method
US6912203B1 (en) * 2000-07-31 2005-06-28 Cisco Technology, Inc. Method and apparatus for estimating delay and jitter between many network routers using measurements between a preferred set of routers
US7013346B1 (en) * 2000-10-06 2006-03-14 Apple Computer, Inc. Connectionless protocol
US7158592B2 (en) * 2000-10-31 2007-01-02 Agere Systems, Inc. Method and apparatus for synchronizing data transfer
JP4097891B2 (en) * 2000-11-27 2008-06-11 三菱電機株式会社 Synchronization system using IEEE 1394
FR2817687B1 (en) * 2000-12-01 2003-02-14 Thomson Csf METHOD FOR SIZING A DETERMINISTIC PACKET SWITCHED TRANSMISSION NETWORK
US6947978B2 (en) * 2000-12-29 2005-09-20 The United States Of America As Represented By The Director, National Security Agency Method for geolocating logical network addresses
US7765422B2 (en) * 2001-01-19 2010-07-27 Alcatel-Lucent Usa Inc. Method of determining a time offset estimate between a central node and a secondary node
US6766407B1 (en) * 2001-03-27 2004-07-20 Microsoft Corporation Intelligent streaming framework
US7225286B2 (en) * 2002-06-24 2007-05-29 Koninklijke Philips Electronics N.V. Method to measure transmission delay between 1394 bridges
US7149917B2 (en) * 2002-07-30 2006-12-12 Cisco Technology, Inc. Method and apparatus for outage measurement
US7257087B2 (en) * 2002-10-04 2007-08-14 Agilent Technologies, Inc. System and method to calculate round trip delay for real time protocol packet streams
CA2525115A1 (en) * 2003-05-09 2004-11-18 Lg Electronics Inc. Recording medium having data structure for managing at least a data area of the recording medium and recording and reproducing methods and apparatuses
US20040225729A1 (en) * 2003-05-09 2004-11-11 Sabiers Mark L. Dynamic display of round-trip times of message sequences
US7353284B2 (en) 2003-06-13 2008-04-01 Apple Inc. Synchronized transmission of audio and video data from a computer to a client via an interface
US7668099B2 (en) * 2003-06-13 2010-02-23 Apple Inc. Synthesis of vertical blanking signal
US8275910B1 (en) 2003-07-02 2012-09-25 Apple Inc. Source packet bridge
US7788567B1 (en) * 2003-11-18 2010-08-31 Apple Inc. Symbol encoding for tolerance to single byte errors
US7995606B1 (en) 2003-12-03 2011-08-09 Apple Inc. Fly-by and ack-accelerated arbitration for broadcast packets
US7308517B1 (en) * 2003-12-29 2007-12-11 Apple Inc. Gap count analysis for a high speed serialized bus
US7237135B1 (en) 2003-12-29 2007-06-26 Apple Inc. Cyclemaster synchronization in a distributed bridge
JP4264035B2 (en) * 2004-06-25 2009-05-13 株式会社東芝 Information processing apparatus, information processing program, and information processing method
US20060168379A1 (en) * 2004-12-13 2006-07-27 Tim Frodsham Method, system, and apparatus for link latency management
US7711008B2 (en) * 2006-01-23 2010-05-04 Ipwireless, Inc. Quasi synchronous transmission in cellular networks
US8159949B2 (en) * 2007-05-03 2012-04-17 Abroadcasting Company Linked-list hybrid peer-to-peer system and method for optimizing throughput speed and preventing data starvation
WO2010001481A1 (en) * 2008-07-04 2010-01-07 富士通株式会社 Information collecting equipment, information collecting program and method
JP5407633B2 (en) * 2008-07-28 2014-02-05 株式会社リコー Communication apparatus, communication system having the same, and communication method
US9015362B2 (en) * 2010-07-16 2015-04-21 International Business Machines Corporation Monitoring network performance and detecting network faults using round trip transmission times
JP2022107993A (en) * 2021-01-12 2022-07-25 ヤマハ株式会社 Signal processing method, signal processing device, and signal processing program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5504757A (en) * 1994-09-27 1996-04-02 International Business Machines Corporation Method for selecting transmission speeds for transmitting data packets over a serial bus
US5687319A (en) * 1994-09-27 1997-11-11 International Business Machines Corporation Method and system for determining maximum cable segments between all possible node to node paths on a serial bus
US5802057A (en) * 1995-12-01 1998-09-01 Apple Computer, Inc. Fly-by serial bus arbitration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991520A (en) * 1996-02-02 1999-11-23 Sony Corporation Application programming interface for managing and automating data transfer operations between applications over a bus structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5504757A (en) * 1994-09-27 1996-04-02 International Business Machines Corporation Method for selecting transmission speeds for transmitting data packets over a serial bus
US5687319A (en) * 1994-09-27 1997-11-11 International Business Machines Corporation Method and system for determining maximum cable segments between all possible node to node paths on a serial bus
US5802057A (en) * 1995-12-01 1998-09-01 Apple Computer, Inc. Fly-by serial bus arbitration

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1087572A3 (en) * 1999-08-31 2004-05-26 Sony Corporation Band with allocation in IEEE 1394 serial bus
US7187655B1 (en) 1999-08-31 2007-03-06 Sony Corporation Information communication method and apparatus
WO2002071699A1 (en) * 2001-03-06 2002-09-12 Koninklijke Philips Electronics N.V. System, method and mesuring node for determining a worst case gap-count value in a multi-station network
US7028076B2 (en) * 2001-03-09 2006-04-11 Koninklijke Philips Electronics N.V. System of apparatuses that communicate via a bus structure
DE10322950A1 (en) * 2003-05-22 2004-12-16 Deutsche Thomson-Brandt Gmbh Setting consistent values for parameter in network with distributed stations, e.g. home network, by sending parameter setting message to network stations after detection of inconsistent values
WO2006050147A2 (en) 2004-10-28 2006-05-11 Telcordia Technologies, Inc. Remote estimation of round-trip delays in a data network
EP1807952A2 (en) * 2004-10-28 2007-07-18 Telcordia Technologies, Inc. Remote estimation of round-trip delays in a data network
EP1807952A4 (en) * 2004-10-28 2010-01-06 Telcordia Licensing Company Ll Remote estimation of round-trip delays in a data network

Also Published As

Publication number Publication date
US6212171B1 (en) 2001-04-03
EP1093646A4 (en) 2005-07-20
AU4700899A (en) 2000-01-10
DE69939117D1 (en) 2008-08-28
ATE401641T1 (en) 2008-08-15
EP1093646A1 (en) 2001-04-25
EP1093646B1 (en) 2008-07-16

Similar Documents

Publication Publication Date Title
US6212171B1 (en) Method and apparatus for gap count determination
US7327692B2 (en) System and method for selecting fibre channel switched fabric frame paths
US7643430B2 (en) Methods and apparatus for determining reverse path delay
EP2044514B1 (en) Methods and apparatus for improved determination of network metrics
JP3415122B2 (en) Apparatus and method for detecting data transmission rate
EP2454852B1 (en) Network transmission capacity measurement
EP1876758B1 (en) Method for probing the peer-to-peer quality of service (QOS)
US7675856B2 (en) Bandwidth estimation in broadband access networks
CN110875915B (en) Data transmission method and device
US8289871B2 (en) Propagation delay time measuring system
US8013614B2 (en) System and method for enhanced accuracy in cable diagnostics of cable length
CN112217686A (en) System, method and device for evaluating round trip delay
JP2001024678A (en) Method for predicting and controlling congestion in data transmission network, and node
WO2001071464A1 (en) Distributing synchronized clock signals in a multiple bus environment
CN111817977A (en) Network congestion control method and device
US7689686B2 (en) Active probing for sustainable capacity estimation of networked dataflows
WO2014095927A1 (en) Probing a network
JP2003534715A (en) Method and system for measuring one-way delay variation
JP3507824B2 (en) Data transmission device and data transmission method
JP4815534B2 (en) Packet delay characteristic measuring apparatus and method
CN112769631B (en) Method for measuring data transmission quality, forwarding device and readable storage medium
JP2004522339A (en) System, method, and measurement node for determining worst case gap count value in a network with multiple stations
JPH10327148A (en) Communication network management method, communication network management system realizing the method and recording medium recording program of the method
MXPA04012696A (en) Data link layer device for a serial communication bus.
Kim et al. One-way delay estimation without clock sychronization

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AL AM AT AU AZ BA BB BG BR BY CA CH CN CU CZ DE DK EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT UA UG UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW SD SL SZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
WWE Wipo information: entry into national phase

Ref document number: 1999930471

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1999930471

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642