# Patent

## Title
Apparatus and method for actively analyzing a data packet delivery path

## Abstract

A packet transmission diagnostic system transmits diagnostic packets during a communications session in which data packets are transmitted between a source and destination. The diagnostic packets elicit responses from routers along a path between the source and destination. The elicited responses, in the form of packets, are used by the diagnostic system to produce one or more packet-delivery metrics for one or more of the routers along a packet transmission path between the source and destination.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is related to an application entitled, APPARATUS AND METHOD FOR PASSIVELY ANALYZING A DATA PACKET DELIVERY PATH, having the same inventors, assigned to the same assignee, filed on the same date, and hereby incorporated by reference.
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH
Not Applicable
REFERENCE TO MICROFICHE APPENDIX
Not Applicable
BACKGROUND
The present invention relates to packetized data networks, and more particularly, to characterizing one or more hops along a path traversed by a packet as it travels from a source to a destination.
Packet communications systems were originally designed to deliver packets of data that could be fragmented at a source and re-assembled at a destination with little concern for the delays and randomization of packets associated with the traversal of various paths from source to destination. That is, a packet system accepts data packets from a source and sends individual packets that are a part of a larger message through a network of routers. Each packet may take any one of several paths available through the network of routers. The packets may therefore arrive out of sequence, with different delays attributable to the different paths taken. Delivery of the information contained in an email, for example, is not sensitive to the normal delays or disordering of packets associated with such a delivery system.
However, some types of data are more sensitive to delays. Voice data, for example, is very sensitive to loss, latency, and jitter. One way to maximize quality of service and to thereby provide adequate performance for time-critical data, such as voice data, is by policy-based routing. In a policy-based routing scheme, certain packet-types are given higher priority and, therefore, are more likely to traverse the router network without undue latency, loss, or jitter.
Regardless of whether a communications system employs policy-based routing, diagnostic systems are required to determine the overall performance of the network and, in the case of a failure, to locate individual components, such as routers, that have failed. One approach to such network diagnoses is to use a scheme commonly referred to as “Traceroute”. Traceroute sends diagnostic packets having successively higher “time to live” (TTL) values to ports, such as high-numbered ports, unlikely to be providing services, at the destination. Each router that receives a packet decrements the TTL value and passes the packet along. Once the packet's TTL value reaches a threshold, a receiving router returns a “time-expired” message to the source. Eventually, when the source sends a packet having a high enough TTL value, the destination will return an error message indicating that services are not available on the high-address port. In this way, traceroute can delineate a path between a source and a destination through a network. However, there are invariably several possible paths through the network from the source to the destination, and there is no reason to believe that, once a communications session has ended, the traceroute diagnostic packets are going to traverse the same path as previously sent data packets. Additionally, firewalls and other security mechanisms recognize and deny access to traceroute packets. Furthermore, traceroute provides no measure of jitter or latency.
A system and method that provides a measure of loss, latency, and jitter, on a per-hop, and/or per path basis, particularly for time-sensitive packet delivery applications such as voice over Internet protocol (VOIP), would be particularly desirable.
SUMMARY OF THE INVENTION
A packet transmission diagnostic system and method in accordance with the principles of the present invention transmits diagnostic packets during a communications session in which data packets are transmitted between a source and destination. The diagnostic packets elicit responses from routers along a path between the source and destination. The elicited responses, in the form of packets, are used by the diagnostic system to produce a packet-delivery metric for one or more of the routers along a packet transmission path between the source and destination. A system in accordance with the principles of the present invention may include a monitor, which may take the form of a controller configured to operate as a monitor, that monitors call signaling information to determine when a data packet communications session is underway. Once the communications session is underway, the diagnostic system may begin transmitting diagnostic packets, interleaving them with data packets being exchanged during the communications session. A system in accordance with the principles of the present invention may include a controller configured to establish a data packet communications session. Once the communications system is underway, the diagnostic system may begin transmitting diagnostic packets, interleaving them with data packets being exchanged during the communications session.
In accordance with the principles of the present invention, each diagnostic packet has the same format as data packets transmitted during the communications session. In an illustrative embodiment this means that each diagnostic packet is the same length as the data packets and each diagnostic packet includes the same user datagram protocol (UDP) destination port number as the data packets. In a real time protocol (RTP) embodiment, each diagnostic packet includes an RTP header that is valid for the type of data being transmitted during the communications session and includes the same differential services code point as the data packets.
Each diagnostic packet elicits a response from a router along a path between the source and destination. In an illustrative embodiment, each diagnostic packet elicits a response that includes a timestamp and the address of the responding router. The diagnostic packet may be a packet that includes information that elicits an error response from routers along the path. For example, in an RTP/IP embodiment, each diagnostic packet may include in its header a time to live (TTL) value that generates an error response packet from a router along the path. By varying the TTL value, such error response packets may be elicited from each router along the path. By transmitting diagnostic packets that elicit a plurality of responses from an individual router, the system may compute the jitter attributable to a particular “hop” or router. Latency, loss, and jitter may also be measured by the return (or lack of return) of elicited packets.
Basic diagnostic configurations include: peer-to-peer active, peer-to-peer passive, single point active, and single point passive. In active configurations, a diagnostic element initiates a call for diagnostic purposes. In passive configurations, diagnostic elements monitor ongoing calls and employ them for diagnostic purposes. Peer-to-peer configurations employ diagnostic elements at both the transmitting and receiving ends. Single point configurations employ a diagnostic element at one end of the path. Because diagnostic packets are sent during an established communications session, the number of “hops” (n+1, where n is the number of routers along a path between the source and destination) in a path may be determined from the system's signaling path. In an illustrative peer-to-peer active testing embodiment, diagnostic elements located at either end of a path under test monitor diagnostic packets. In such an embodiment, the transmitting diagnostic element informs the receiving diagnostic element of the diagnostic packet's originating TTL value. The receiving diagnostic element notes the packet's received TTL value, and the difference between the originating and received values yields the number of hops between the transmitting and receiving diagnostic elements. The receiving diagnostic element may communicate this information to the transmitting diagnostic element, thereby eliminating the need for the transmitting diagnostic element to discover the number of hops by incrementing diagnostic packets' TTL values. That is, the diagnostic system therefore need not gradually increase the diagnostic packets' TTL value and need not send the diagnostic packets to a port that is unlikely to be offering services. Additionally, because the diagnostic packets are sent during a communications session and are of the same format as data packets, the packets are undetectable by firewalls and other security mechanisms and may, therefore, reach destinations that conventional diagnostic packets may not be able to reach. Peer-to-peer passive, single point active, and single point passive embodiments would employ the altered (incremented or decremented) TTL value method to determine the number of hops in the path.



BRIEF DESCRIPTION OF DRAWINGS
The foregoing and other objects of this invention, the various features thereof, as well as the invention itself, may be more fully understood from the following description, when read together with the accompanying drawings in which:
The conceptual block diagram of FIGS. 1A through 1E illustrate the major components of a packet communications system that employs a diagnostic method and apparatus in accordance with the principles of the present invention;
The block diagram of FIG. 2 illustrates the major components of a controller such as may be employed by a diagnostic system in accordance with the principles of the present invention;
The signal flow graph of FIG. 3 illustrates the process of exchanging diagnostic packets during a communications session in accordance with the principles of the present invention;
The block diagram of FIG. 4 illustrates key components of a diagnostic packet such as may be employed by a diagnostic system in accordance with the principles of the present invention;
The block diagram of FIG. 5A illustrates key components of an RTP diagnostic packet such as may be employed by a diagnostic system in accordance with the principles of the present invention;
The block diagram of FIG. 5B illustrates key components of a return packet such as may be elicited by a diagnostic packet in accordance with the principles of the present invention; and
The flow chart of FIG. 6 illustrates the process by which a diagnostic system in accordance with the principles of the present invention may evaluate a packet communications system.



DESCRIPTION
The block diagram of FIG. 1 depicts a packet communications system 100 that employs a diagnostic system an method in accordance with the principles of the present invention. A data source 102 communicates with a data destination 104 by sending packets of data through a network of routers 106. In this illustrative example only five routers A, B, C, D, and E, are shown. As is known in the art, there may be hundreds of routers in a network and a packet may traverse dozens of routers on its way from a source to a destination. Routers maintain routing tables that allow them to pass packets from router and, eventually, to a destination.
In the illustrative example of FIG. 1A, a packet may travel from the source to the destination through a variety of paths. For example, a packet may travel from the source 102 to the destination 104 through routers A,B, and C; through routers A,D,B, and C, or through routers A,D,E, and C. Additionally, a signaling path 108 may wind through a variety of routers, and provides signaling information, such as “Off Hook”, “Answer”, for example, to source and destination. A diagnostic system 110 in accordance with the present invention may be located at a source 102 (as illustrated) or at other locations throughout the network, including the destination 104, for example. The diagnostic system includes a controller 112 and an interface 114 to the source 102 and network. As will be described in greater detail below, the controller 112 may be configured to operate as a monitor, a packet source, and/or a call establishment mechanism. The interface 114 provides access to the data packet transmission resources and signaling resources of the network. The diagnostic system 110 may be connected, through the interface 114, in series with or in parallel with the source 102. The interface 114 may be through a communications adapter 290 or a bus 230, as described in the discussion related to FIG. 2, for example.
The diagnostic system 110 may operate in a passive manner, detecting the establishment of a communications session, then injecting diagnostic packets into the data stream once the communications session has commenced. The diagnostic packets may be sent at any time during the communications session, that is, for example, before, interleaved with, or after data packets are sent. Alternatively, the diagnostic system 110 may operate in an active mode, employing the signaling path 108 to establish a communications session, then proceeding to send diagnostic packets. In addition to diagnostic packets, in an active mode, the diagnostic system 110 generates and sends data packets having the same characteristics as data packets that would otherwise be transmitted by the source 102 or destination 104. For example, if the source were communicating media packets, such as voice, video, or audio packets, the diagnostic system would generate packets having the same characteristics as those packets and send them during a communication session established by the diagnostic system 110. The diagnostic system would also, after establishing the communications session, transmit diagnostic packets during the communications session. As with the passive operation, the diagnostic system would generate and send diagnostic packets during the communications session, before, interleaves with, or after the data packets. As with the passive mode of operation, the diagnostic packets would exhibit the same characteristics as the data packets.
Each diagnostic packet elicits a response from a router along a path between the source 102 and destination 104. The responses elicited by the diagnostic packets are in the form of packets that include time stamps and the address of the router returning the packet. Diagnostic packets may be in the form of packets which cause a router to generate and return an “error packet” that includes the router's address and a time stamp. FIG. 1B depicts a system in which diagnostic elements are arranged in a peer-to-peer active testing configuration. FIG. 1C depicts a system in which a diagnostic element is arranged in a single point active testing mode. FIG. 1D depicts a system in which diagnostic elements are arranged in a peer-to-peer passive testing mode, and FIG. 1E depicts a system in which a diagnostic element is arranged in a single point passive testing mode.
The conceptual block diagram of FIG. 2 illustrates the system architecture for a computer system 200 on which a controller in accordance with the principles of the present invention may be implemented. The exemplary computer system of FIG. 2 is for descriptive purposes only. Although the description may refer to terms commonly used in describing particular computer systems, the description and concepts equally apply to other systems, including systems having architectures dissimilar to FIG. 2.
Computer system 200 includes a central processing unit (CPU) 205, which may be implemented with a conventional microprocessor, a random access memory (RAM) 210 for temporary storage of information, and a read only memory (ROM) 215 for permanent storage of information. A memory controller 220 is provided for controlling RAM 210.
A bus 230 interconnects the components of computer system 200. A bus controller 225 is provided for controlling bus 230. An interrupt controller 235 is used for receiving and processing various interrupt signals from the system components.
Mass storage may be provided by diskette 242, CD ROM 247, or hard drive 252. Data and software may be exchanged with computer system 200 via removable media such as diskette 242 and CD ROM 247. Diskette 242 is insertable into diskette drive 241 which is, in turn, connected to bus 230 by a controller 240. Similarly, CD ROM 247 is insertable into CD ROM drive 246 which is, in turn, connected to bus 230 by controller 245. Hard disc 252 is part of a fixed disc drive 251 which is connected to bus 230 by controller 250.
User input to computer system 200 may be provided by a number of devices. For example, a keyboard 256 and mouse 257 are connected to bus 230 by controller 255. An audio transducer 296, which may act as both a microphone and a speaker, is connected to bus 230 by audio controller 297, as illustrated. It will be obvious to those reasonably skilled in the art that other input devices, such as a pen and/or tabloid may be connected to bus 230 and an appropriate controller and software, as required. DMA controller 260 is provided for performing direct memory access to RAM 210. A visual display is generated by video controller 265 which controls video display 270. Computer system 200 also includes a communications adaptor 290 which allows the system to be interconnected to a local area network (LAN) or a wide area network (WAN), schematically illustrated by bus 291 and network 295. An input interface 299 operates in conjunction with an input device 293 to permit a user to send information, whether command and control, data, or other types of information, to the system 200. The input device and interface may be any of a number of common interface devices, such as a joystick, a touch-pad, a touch-screen, a speech-recognition device, or other known input device. The interface 114 to the network and source 102 may be an interface to the bus 230, to the input interface 299, or combinations thereof, for example.
FIG. 3 provides an overview of the process whereby a communications session is established and diagnostic packets are utilized in accordance with the principles of the present invention. In step 1 the source 102 signals an “off hook” condition to the packet network 106 through the signaling path 108. In step 2 the packet network passes the “off hook” signal to the destination 104. In response to the “off hook” signal from the source 102, in step 3 the destination 104 returns and “Answer” signal through the signaling path 108 to the network 106. In step 4 the “Answer” signal is passed to the source 102, thereby establishing a communications session. Once a connection session has been established in this manner, the source may begin transmitting data packets. A diagnostic system in accordance with the principles of the present invention sends diagnostic packets during a communications session, as defined by the period between the “Answer” of step 4 and the termination of the session by an “on hook” condition established by either the source or destination in step 5.
A diagnostic packet 400, such as may be employed by a diagnostic system in accordance with the principles of the present invention, includes a header 402 that contains components as depicted by the block diagram of FIG. 4. Each header 402 includes a field 404 that elicits a response from at least one router along a communications path from a source to a destination. The elicited responses include a timestamp and the address of the router that returns the response packet. The length of the diagnostic packet, which may be indicated by a header entry 406 is the same as data packets sent during a communications session. Additionally, the data type, as indicated by a header entry 408, is a valid entry for the type of data being transmitted during the communications session.
The block diagram of FIG. 5A illustrates the components of a real time protocol (RTP) diagnostic packet 500 in accordance with the principles of the present invention. In this illustrative embodiment, the diagnostic packet includes a header that includes a time to live (TTL) value 502 that is set to elicit an error response from a router along the path between the source and destination of a communications session. A diagnostic packet source in accordance with the principles of the present invention creates a diagnostic packet having a TTL value that will be decremented as the packet traverses a path between the source and destination. The diagnostic packet source sets the TTL value so that the packet causes a router along the way to respond with a “time expired” error packet. Each time-expired error packet includes a time stamp, and the address of the router sending the error packet. The diagnostic packet 500 is of the same length as data packets being transmitted. A data type field 504 is set to the same value as that of data packets being transmitted during the communications session. The data type may indicate that the data is voice data or video data, for example. The differential services field 506 is also set to the same value as that of the data being transmitted during the communications session. This field may allow policy-based preferential routing, giving higher priority to voice packets than to email packets, for example. The header also includes source 508 and destination 510 addresses. Diagnostic packets are indistinguishable from the regular, in-session, packets.
FIG. 5B is a block diagram that illustrates a response packet elicited by an RTP diagnostic packet in accordance with the principles of the present invention. In this illustrative embodiment, the returned packet is an ICMP packet 512 that includes a type field 514, a code field 516, and a time stamp 518. The type and code fields identify the returned packet as an ICMP “time exceeded” or type 11, error packet. The time stamp may be used by a diagnostic system in accordance with the principles of the present invention to determine latency and jitter during a communications session.
The flow chart of FIG. 6 depicts the process of determining the performance of a packet network in accordance with the principles of the present invention. The process begins in step 600 then proceeds to step 602 where the diagnostic system either establishes or detects the establishment of a communications session between a source and a destination. A controller, such as the controller 212 described in relation to the discussion of FIGS. 1 and 2, may be configured to establish and/or detect such an establishment of a communications session, evidenced by the “Answer” of a destination, as described in the discussion related to FIG. 3. From step 602, the process proceeds to step 604, where the diagnostic system determines the number of routers, or “hops”, between the source and destination. As previously described, this information may be obtained from signaling information available through a signaling path, such as the path 108 described in relation to the discussion of FIG. 1 in a peer-to-peer active testing configuration, whereby a transmitting diagnostic element indicates to a receiving diagnostic element an initial TTL value and the receiving diagnostic element determines the number of hops from the difference between the originating and received TTL values.
From step 604 the process proceeds to step 606, where the diagnostic system determines packet parameters, such as packet length and type of service, by examining a data packet that has been transmitted by a source. As described in the discussion of FIG. 4, diagnostic packets produced by the diagnostic system match the length, data type, and differential services value, of the data packets communicated during a session. If the diagnostic system established, rather than detected, the establishment of the communications session, the diagnostic system produces both the “data” and diagnostic packets and ensures a match between length, data type, and differential services value of the diagnostic and data packets.
From step 606 the process proceeds to step 608 where the diagnostic system sends diagnostic packets that elicit responses from every router along at least one path between the source and destination. In an embodiment in which the source and destination are communicating voice data over Internet protocol, the diagnostic system may employ packets having time to live (TTL) values that prompt routers along the path to return ICMP “time exceeded” error messages. Since the diagnostic system has determined the number of hops along the path between the source and destination in step 604, the diagnostic system may generate and send diagnostic packets having all the TTL values required to elicit responses from all the routers along a communications path in any order. That is, unlike conventional systems, the diagnostic system needn't send packets that address high port numbers, with increasing TTL values, until the destination is reached.
From step 608 the process proceeds to step 610, where the diagnostic system analyzes the returned packets. For example, latency and loss figures may be computed by transmitting a statistically significant number of diagnostic packets and examining the time stamps of returned packets, or, in the case of loss calculations, determining the number of diagnostic packets that don't receive responses. A jitter figure may be associated with each router along the route by analyzing the time stamps of a statistically significant number of packets returned by each router. Loss, latency, and jitter may be computed for each router, as well as for the entire path.
From step 610 the process proceeds to step 612 where a measure of service for each hop and/or for the entire path is developed and reported. The report may be made to a system monitor that can modify the network in order to improve service, for example. From step 612, the process proceeds to end in step 614.
A software implementation of the above described embodiment(s) may comprise a series of computer instructions either fixed on a tangible medium, such as a computer storage readable media, e.g. diskette, CD-ROM, ROM, or fixed disc, or computer readable transmission media transmittable to a computer system, via a modem or other interface device, such as communications adapter connected to the network over a medium. Medium can be either a tangible medium, including but not limited to, optical or analog communications lines, or may be implemented with wireless techniques, including but not limited to microwave, infrared or other transmission techniques. The series of computer instructions embodies all or part of the functionality previously described herein with respect to the invention. Those skilled in the art will appreciate that such computer instructions can be written in a number of programming languages for use with many computer architectures, operating systems, or protocols. Further, such instructions may be stored using any memory technology, present or future, including, but not limited to, semiconductor, magnetic, optical or other memory devices, or transmitted using any communications technology, present or future, including but not limited to optical, infrared, microwave, or other transmission technologies. It is contemplated that such a computer program product may be distributed as a removable media with accompanying printed or electronic documentation, e.g., shrink wrapped software, preloaded with a computer system, e.g., on system ROM or fixed disc, or distribution from a server or electronic bulletin board over a network, e.g., the Internet or World Wide Web.
Although various exemplary embodiments of the invention have been disclosed, it will be apparent to those skilled in the art that various changes and modifications can be made which will achieve some of the advantages of the invention without departing from the spirit and scope of the invention. It will be apparent to those reasonably skilled in the art that other components performing the same functions may be suitably substituted. Further, the methods of the invention may be achieved in either all software implementations, using the appropriate object or processor instructions, or in hybrid implementations that utilize a combination of hardware logic, software logic and/or firmware to achieve the same results. Processes illustrated through the use of flow charts may not be strictly linear processes and alternative flows may be implemented within the scope of the invention. The specific configuration of logic and/or instructions utilized to achieve a particular function, as well as other modifications to the inventive concept are intended to be covered by the appended claims.
The foregoing description of specific embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed, and many modifications and variations are possible in light of the above teachings. The embodiments were chosen and described to best explain the principles of the invention and its practical application, and to thereby enable others skilled in the art to best utilize the invention. The invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. It is intended that the scope of the invention be limited only by the claims appended hereto.

## Claims

1. In a packet network communications system, a method of analyzing packet-delivery performance along intermediate path segments during a communications session between a source and destination for a predetermined application, comprising the steps of:
(A) establishing a communications session between a source and a destination by a call signaling exchange between the source and the destination, the communications session being that period between a call answer signal from the destination and a call termination condition;
(B-1) sending data packets between the source and the destination during the communications session;
(B-2) sending diagnostic packets from the source during the same packet communication session in which the data packets are transmitted between the source and destination, each diagnostic packet being of same format as data packets delivered during the communications session, each diagnostic packet eliciting a response from a router along a path between the source and destination; and
(C) analyzing the responses from routers along at least one path to produce a packet-delivery metric for one or more of the routers along one or more paths between the source and the destination,
wherein each diagnostic packet is of the same length as data packets being transmitted in the communications session, each diagnostic packet including: the same user datagram protocol (UDP) destination port number as data packets, the same differential services code point as the data packets, and a real time protocol (RTP) header that is valid for the data being transmitted in the communications session.

2. The method of claim 1 further comprising the step of:
(D) obtaining information from the destination through out-of-band signaling and using the information to determine the number of routers between the source and destination.

3. The method of claim 2 wherein the out of band signaling returns the time to live (TTL) value of an RTP packet at the destination, the difference between the TTL value at the destination and the TTL value at the source indicating the number of routers along a path from the source to the destination.

4. The method of claim 2 wherein each diagnostic packet contains a flag in its header, the value of which is modified by each router is passes through and which elicits a response from a router whenever the received value of the flag reaches a threshold.

5. The method of claim 4 wherein the flag is a TTL flag and each router decrements the value of the flag as a packet passes through the router.

6. The method of claim 4 wherein the elicited response is an error response packet that includes a timestamp.

7. The method of claim 5 wherein the elicited response is an Internet control message protocol (ICMP) time exceeded packet that includes a timestamp and the Internet protocol (IP) address of the router sending the ICMP packet as the source address.

8. The method of claim 7 wherein the data packets are media packets.

9. The method of claim 7 wherein the diagnostic packets elicit at least one response from each router along one or more paths between the source and destination.

10. The method of claim 1 further comprising the step of:
(E) from the analysis of step (C), identifying one or more routers whose performance is diminished in comparison to one or more other routers delivering said data packets.

11. The method of claim 1 wherein the response elicited by a diagnostic packet is a returned packet that includes a timestamp.

12. The method of claim 1 wherein the data packets are routed on a policy basis and the diagnostic packets include the same policy attributes.

13. The method of claim 12 wherein the policy basis is a quality of service policy.

14. The method of claim 13 wherein the data packets are voice packets.

15. The method of claim 13 wherein the data packets are video packets.

16. The method of claim 13 wherein the data packets are audio packets.

17. The method of claim 14 wherein the data packets are real time protocol (RTP) packets sent over Internet protocol (IP).

18. The method of claim 1 further comprising the step of:
(F) signaling an on-hook condition to close the communications session.

19. The method of claim 1 further comprising the step of:
(G) transmitting a plurality of diagnostic packets to a router and determining the jitter attributable to the router from timestamps within the elicited packets.

20. The method of claim 1 further comprising the step of:
(H) determining the delay from timestamps within elicited packets.

21. The method of claim 1 further comprising the step of:
(I) determining loss from the number of transmitted packets that don't elicit a response.

22. The method of claim 1 wherein the packets are Internet protocol (IP) packets.

23. The method of claim 1 wherein the packets are hypertext transfer protocol (HTTP) packets.

24. In a packet network communications system, a method of analyzing packet-delivery performance along intermediate path segments during a communications session between a source and destination for a predetermined application, comprising the steps of:
(A) establishing a communication session between a source and a destination by a call signaling exchange between the source and the destination, the communications session being that period between a call answer signal from the destination and a call termination condition
(B-1) sending data packets between the source and the destination during the communications session;
(B-2) sending diagnostic packets from the source during the same communication session in which the data packets are transmitted between the source and destination, each diagnostic packet being transmitted in the communications session, each diagnostic packing including: the same user datagram protocol (UDP) destination port number as data packets, the same differential services code point as the data packets, and a real time protocol (RTP) header that is valid for the data being transmitted in the communications session, each diagnostic packet eliciting a response from a router along a path between the source and destination;
(C) analyzing the responses from routers along at least one path to produce a packet-delivery metric for one or more of the routers along one or more paths between the source and the destination; and
(D) obtaining information from the destination through out-of-band signaling and using the information to determine the number of routers between the source and destination, the out of band signaling returns the time to live (TTL) value of an RTP packet at the destination, the difference between the TTL value at the destination and the TTL value at the source indicating the number of routers along a path from the source to the destination.

25. The method of claim 24 wherein the step of establishing a packet communications session includes the step of:
employing call signaling to transmit an off hook signal to the destination and receive an answer signal from the destination.

26. The method of claim 25 wherein the data packets are routed on a policy basis and the diagnostic packets include the same policy attributes.

27. The method of claim 25 wherein the policy basis is a quality of service policy.

28. The method of claim 25 wherein the data packets are voice packets.

29. The method of claim 28 wherein the data packets are real time protocol (RTP) packets sent over Internet protocol (IP).

30. The method of claim 25 wherein the data packets are video packets.

31. The method of claim 25 wherein the data packets are audio packets.

32. An apparatus, having a computer readable storage medium, for analyzing packet-delivery performance along intermediate path segments during a communications session between a source and destination for a predetermined application, comprising:
a controller for establishing a communications session between a source and a destination by a call signaling exchange between the source and the destination, the communications session being that period between a call answer signal from the destination and a call termination condition;
a diagnostic packet source for sending data packets and diagnostic packets from the source during the same communication session in which data packets are transmitted between the source and destination, each diagnostic packet being of same format as data packets delivered during the communications session, each diagnostic packet eliciting a response from a router along a path between the source and destination;
the controller also for analyzing the responses from routers along at least one path to produce a packet-delivery metric for one or more of the routers along one or more paths between the source and the destination, and
wherein the diagnostic packet source is for producing each diagnostic packet the same length as data packets being transmitted in the communications session, each diagnostic packet including: the same user datagram protocol (UDP) destination port number as data packets, the same differential services code point as the data packets, and a real time protocol (RTP) header that is valid for the data being transmitted in the communications session.

33. The apparatus of claim 32 wherein the controller is for obtaining information from the destination through out-of-band signaling and to use the information to determine the number of routers between the source and destination.

34. The apparatus of claim 33 wherein the out-of-band signaling returns the time to live (TTL) value of an RTP packet at the destination, and the controller is for suing the difference between the TTL value at the destination and the TTL value at the source to determine the number of routers along a path from the source to the destination.

35. The apparatus of claim 33 wherein each diagnostic packet contains a flag in its header, the value of which is modified by each router it passes through and which elicits a response from a router whenever the received value of the flag reaches a threshold.

36. The apparatus of claim 35 wherein the flag is a TTL flag that each router decrements as a packet passes through the router.

37. The apparatus of claim 35 wherein the diagnostic packet source is for sending a diagnostic packet that elicits a response in the form of an error response packet that includes a timestamp.

38. The apparatus of claim 36 wherein diagnostic packet source is for sending a diagnostic packet that elicits a response in the form of an Internet control message protocol (ICMP) time exceeded packet that includes a timestamp and the Internet protocol (IP) address of the router sending the ICMP packet as the source address.

39. The apparatus of claim 38 wherein the data packets are media packets.

40. The apparatus of claim 38 wherein the diagnostic packet source is for sending diagnostic packets that elicit at least one response from each router along one or more paths between the source and destination.

41. The apparatus of claim 32 wherein the controller is for identifying one or more routers along a path between the source and destination whose performance is diminished in comparison to one or more other routers delivering said data packets.

42. The apparatus of claim 32 wherein the diagnostic packet source is for sending a diagnostic packet that elicits a response in the form of a returned packet that includes a timestamp.

43. The apparatus of claim 32 wherein the data packets are routed on a policy basis and the diagnostic packet source is for sending a diagnostic packet that includes the same policy attributes.

44. The apparatus of claim 43 wherein the policy basis is a quality of service policy.

45. The apparatus of claim 44 wherein the data packets are voice packets.

46. The apparatus of claim 45 wherein the data packets are real time protocol (RTP) packets sent over Internet protocol (IP).

47. The apparatus of claim 44 wherein the data packets are video packets.

48. The apparatus of claim 44 wherein the data packets are audio packets.

49. The apparatus of claim 32 wherein the controller is for signaling an on-hook condition to close the communications session.

50. The apparatus of claim 32 wherein the controller is for transmitting a plurality of diagnostic packets to a router and to determine the jitter attributable to the router from timestamps within the elicited packets.

51. The apparatus of claim 32 wherein the controller is for determining a delay metric from timestamps within elicited packets.

52. The apparatus of claim 32 wherein the controller is for determining loss from the number of transmitted packets that don't elicit a response.

53. The apparatus of claim 32 wherein the diagnostic packets source is for sending Internet protocol (IP) packets.

54. The apparatus of claim 32 wherein the diagnostic packet source is for sending hypertext transfer protocol (HTTP) packets.

55. In a packet network communications system, an apparatus, having a computer readable storage medium, for analyzing packet-delivery performance along intermediate path segments during a communications session between a source and destination for a predetermined application, comprising:
a controller for establishing a communications session between a source and a destination by a call signaling exchange between the source and the destination, the communications session being that period between a call answer signal from the destination and a call termination condition;
a diagnostic packet source for sending data packets and diagnostic packets from the source during the same communication session in which data packets are transmitted between the source and destination, each diagnostic packet being of the same length and format as data packets being transmitted in the communications session, each diagnostic packet including: the same user datagram protocol (UDP) destination port number as data packets, the same differential services code point as the data packets, and a real time protocol (RTP) header that is valid for the data being transmitted in the packet communications session, each diagnostic packet eliciting a response from a router along a path between the source and destination;
a controller for analyzing the responses from routers along at least one path to produce a packet-delivery metric for one or more of the routers along one or more paths between the source and the destination; and
the controller also for obtaining information from the destination through out-of-band signaling and to use the information to determine the number of routers between the source and destination, the difference between the TTL value at the destination and the TTL value at the source indicating the number of routers along a path from the source to the destination.

56. The apparatus of claim 55 wherein the data packets are routed on a policy basis and the diagnostic packet source is for sending diagnostic packets that include the same policy attributes.

57. The apparatus of claim 56 wherein the diagnostic packet source is for sending diagnostic packets wherein the policy basis is a quality of service policy.

58. The apparatus of claim 55 wherein the data packets are voice packets.

59. The apparatus of claim 58 wherein the data packets are real time protocol (RTP) packets sent over Internet protocol (IP).

60. The apparatus of claim 55 wherein the data packets are video packets.

61. The apparatus of claim 55 wherein the data packets are audio packets.

62. The apparatus of claim 55 wherein source and destination are diagnostic elements, the source diagnostic element is for signaling to the destination diagnostic element the TTL value at the source, the destination diagnostic element configured to determine the number of hops between the source and destination by the difference between the TTL value at the source and the received TTL value and to signal the number of hops to the source diagnostic element.

63. The apparatus of claim 55 wherein the source diagnostic element is for transmitting diagnostic packets to elicit response from routers without regard to TTL value.