(19)
(11)EP 2 589 178 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
10.04.2019 Bulletin 2019/15

(21)Application number: 11801427.3

(22)Date of filing:  30.06.2011
(51)International Patent Classification (IPC): 
H04L 7/00(2006.01)
H04J 3/06(2006.01)
H04L 29/06(2006.01)
(86)International application number:
PCT/US2011/042629
(87)International publication number:
WO 2012/003344 (05.01.2012 Gazette  2012/01)

(54)

PACKET PROTOCOL PROCESSING WITH PRECISION TIMING PROTOCOL SUPPORT

PAKETPROTOKOLLVERARBEITUNG MIT PRÄZISIONSZEITEINSTELLUNGSPROTOKOLLUNTERSTÜTZUNG

TRAITEMENT DE PROTOCOLE PAR PAQUETS AVEC UN SUPPORT DE PROTOCOLE DE TEMPS DE PRÉCISION


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(30)Priority: 30.06.2010 US 828190

(43)Date of publication of application:
08.05.2013 Bulletin 2013/19

(73)Proprietor: Microsemi Solutions SDN. BHD.
Bayan Baru, Penang 11950 (MY)

(72)Inventors:
  • SWARTZENTRUBER, Ron
    Amesbury, Massachusetts 01913 (US)
  • LOPOULOS, Wiliam, D.
    Tyngsboro, Massachusetts 01879 (US)

(74)Representative: Graham Watt & Co LLP 
St. Botolph's House 7-9 St. Botolph's Road
Sevenoaks TN13 3AJ
Sevenoaks TN13 3AJ (GB)


(56)References cited: : 
WO-A1-01/33774
US-A1- 2003 007 489
US-A1- 2005 232 290
US-A1- 2010 034 212
US-A1- 2002 072 346
US-A1- 2005 036 512
US-A1- 2009 010 259
US-B1- 6 789 116
  
      
    Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


    Description

    BACKGROUND OF THE INVENTION



    [0001] The present invention relates generally to processing of data packets pursuant to communication protocols and, more particularly, to processing of data packets for a precision timing protocol.

    [0002] It may be advantageous for devices in a communication network to utilize a common time base. The common time base may be used, for example, to trigger coordinated events in a network of sensors or to coordinate actions of controllers in an industrial system. In addition to sensors and controllers, the system may include computers and communication devices, such as routers.

    [0003] The electronics industry has developed several standard protocols for use in synchronizing clocks, for example, the OAM functions and mechanisms of ITU-T Recommendation Y.1731 and the Precision Time Protocol (PTP) of IEEE standard 1588. The timing protocols may include sending timing-related messages between nodes in a communication network. The timing-related messages may include, for example, a node transmitting a time-stamped packet to supply its timebase to another node and a node transmitting a packet requesting the receiving node to reply with the time of receipt. Unfortunately, the use of possibly multiple timing related protocols may present difficulties.

    [0004] In addition, the timing-related messages may be communicated using one or more protocols. Information in communication networks is formatted according to communication protocols. Communication protocols are commonly described in published standards. Many communication networks send and receive the information in packets. The communication protocols specify where various pieces of information are placed in the packets. For example, an identifier of the sender of the packet, an identifier of the intended recipient of the packet, and the message to be communicated may be placed in the packet in three locations defined by the communication protocol.

    [0005] Unfortunately, each communication protocol may establish its own unique definition of where the various pieces of information are placed within a packet. Moreover, a communication network may use multiple protocols. Furthermore, multiple protocols may be used in sending one packet with a packet formatted according to a first protocol encapsulated in a packet formatted according to a second protocol, which is encapsulated in a packet formatted according to a third protocol, and so on. In addition, some network devices may process some packets which do require timing related actions and some packets which do not.

    [0006] US 6,789,116 discloses a processor for processing contents of packets passing through a connection point on a computer network. US 2005/0036512 discloses a system and method of end-to-end clock recovery for media streaming.

    BRIEF SUMMARY OF THE INVENTION



    [0007] According to an aspect of the present invention, there is provided: a method of determining how to adjust a time stamp, comprising: providing a packet comprising the time stamp to a plurality of sequentially arranged comparison blocks, sequentially performing a comparison of information in the provided packet to respective sets of parameter values by at least some of the sequentially arranged comparison blocks, each of said sets of parameter values representing a particular one of a plurality of protocols; providing, by each of the comparison blocks other than an ultimate comparison block, an offset indicator to a subsequent comparison block of the plurality of sequentially arranged comparison blocks, said information in the provided packet selected responsive to said offset indicator; and determining, by the ultimate comparison block, an action to take with respect to the time stamp.

    [0008] Conveniently, the method further comprises: determining a start of a frame signal of said provided packet; and aligning data of a frame of the provided packets in accordance with the start of frame signal.

    [0009] Preferably, the method further comprises: modifying the time stamp based on the determined action. Conveniently, the method further comprises: forming a signature identifying the packet by selecting portions of the packet by at least one of the comparison blocks.

    [0010] According to a further aspect of the present invention, there is provided: a physical layer device comprising: a plurality of sequentially arranged comparison blocks each configured to compare information in the provided packet to a respective set of parameter values, each of the respective sets of parameter values representing a particular one of a plurality of protocols, wherein each of the comparison blocks, other than an ultimate comparison block, provides an offset indicator to a subsequent comparison block of the plurality of sequentially arranged comparison blocks, said information in the provided packet selected responsive to said offset indicator; and circuitry arranged to modify the time stamp in the provided packets responsive to an ultimate comparison block.

    [0011] Preferably, the physical layer device further comprises a control circuitry arranged to control an order of operation of the comparison blocks. Conveniently, the physical layer device further comprises a signature block configured to produce a signature of a frame of the provided packets from signature components, and where at least one of the comparison blocks is further configured to select portions of the packet for the signature components.

    [0012] Preferably, the physical layer device further comprises: start of frame circuitry for determining a start of a frame signal of provided packets; and alignment circuitry for aligning data of a frame of the provided packets in accordance with the start of frame signal.

    [0013] These and other aspects of the invention are more fully comprehended upon review of this disclosure. The invention is defined by the appended claims. Any other reference to embodiments not falling within the scope of the claims is to be understood as examples useful for understanding the invention.

    BRIEF DESCRIPTION OF THE FIGURES



    [0014] 

    FIG. 1 is a block diagram of a device for extracting parameters from timing messages and determining timing related actions in accordance with aspects of the invention;

    FIG. 2 is a block diagram of a timing message classifier in accordance with aspects of the invention;

    FIG. 3 is a block diagram of a communication network node in accordance with aspects of the invention;

    FIG. 4 is a flowchart of a process for classifying packets and extracting information from timing messages in accordance with aspects of the invention; and

    FIG. 5 is a diagram of exemplary frame header matching in accordance with aspects of the invention.


    DETAILED DESCRIPTION



    [0015] FIG. 1 is a block diagram of a device for extracting parameters from timing messages and determining timing related actions in accordance with aspects of the invention. The device may be part of an integrated circuit, for example, an Ethernet physical layer circuit (PHY). In many embodiments the device may be comprised of electronic circuitry, although in some embodiments the device may include both hardwired circuitry and programmable elements, for example as determined by registers or through the use of a processor configured or configurable by program instructions in addition to other circuitry, and in some embodiments the functions of the device may be implemented solely by a processor configured by program instructions.

    [0016] The device of FIG. 1 includes a start of frame (SOF) detection block 111 to receive input packets from a communication network and identify where the received packets start. An alignment module 113 uses the identified starts of the packets, in some embodiments, to align the packets with a bus boundary. The bus with the aligned packets is passed to a classifier, or as, illustrated in the embodiment of FIG. 1, a set of classifiers 115a-b that parse and classify the packets to extract timing parameters for subsequent processing and determine timing related actions. The classifiers may also pass portions of the packets to a signature block 117 which combines the portions to form a signature that may be used to identify individual ones of the packets.

    [0017] In more detail, in some embodiments, the SOF detection block 111 receives the input packets on an input bus and detects when SOF signals occur in the input packets. The input bus may have a bit width wider than the units of information, commonly bytes, used in the packets. For example, an embodiment of the device receiving input packets at 10 Gbit/s may use a 32-bit wide input bus resulting in values being on the input bus for a relatively long period. The SOF detection block 111 may receive packets from a 10-gigabit media independent interface (XGMII).

    [0018] The SOF detection block 111 detects an SOF according to the protocol with which the packets are formatted. For example, when the received packets are Ethernet packets, SOF is detected when a start frame delimiter (SFD) follows a packet preamble. When a packet is formatted with multiple protocols, frame start is detected for an outer protocol of the multiple protocols.

    [0019] The SOF detection block 111 sends a signal indicating detections of an SOF along with the packets to the alignment block 113. The signal indicating detections of an SOF may signal a position on the bus conveying the packet information in addition to when a start of frame occurs. For example, in a device with a 32-bit bus and locations for starts of packets on 8-bit boundaries, the signal indicating detections of an SOF may signal one of four positions for the start of a frame.

    [0020] The alignment module 113 places the first information of the frame on a bus in the location corresponding to the first received bits. The aligned information from the alignment module 113 is supplied to the classifiers 115a-b. In an embodiment classifying timing messages from Ethernet frames, the aligner places the first byte of the frame after the SFD in the least significant byte of the bus. In some embodiments, packets may be supplied from the SOF detection block 111 with their starting information aligned to the bus boundary, for example, when sizes of the bus from the SOF detection block 111 and the units of information in the packets match. In these embodiments, the alignment module may be omitted. The buses input to the SOF detection block 111, between the SOF detection block 111 and the alignment module 113, and between the alignment module 113 and the classifiers 115a-b may have the same or differing bit widths.

    [0021] The classifiers 115a-b process the aligned packets to identify parameters from timing messages and determine timing related actions for subsequent processing. Each classifier parses each aligned packet to determine whether a timing message is included in the packet. The classifier may extract timing actions and timing parameters when a timing message is included in the packet. Whether the classifier extracts timing actions and parameters may additionally depend on a classification of the packet. A packet may be classified, for example, using label values in a multiprotocol label switching (MPLS) header, values of host addresses or ports in an Internet protocol header, values of MAC addresses in an Ethernet header, or values of PTP domain numbers. In some embodiments, packets are classified using flows defined by values of a field or a combination of fields from the protocols used to format a packet. Each classifier may operate on multiple combinations of protocols and field values for the protocols.

    [0022] Operation of the classifiers is configured by a set of parameters. The parameters may be supplied by a processor or other components in a circuit, for example, user programmable registers, incorporating the device. The parameters indicate locations of fields within the protocols being classified, field values, such as bit values with bit masks or value ranges, and what actions to take when a field matches a parameter. The actions may include a pointer to another set of parameters to use in further classifying the packet.

    [0023] Devices may include differing numbers of classifiers depending on the number of protocols, formats, and flow combinations from which timing actions and parameters are to be extracted. In various embodiments the classifiers operate on the same packets simultaneously or substantially simultaneously. In embodiments with multiple classifiers, when more than one classifier positively identifies timing actions and parameters from one packet, which results are sent from the device is determined based on a prioritization. An embodiment may prioritize based on an ordering of the classifiers.

    [0024] In some embodiments, the classifiers 115a-b also extract portions of the packets to create a signature that identifies the packet. The portions extracted are also determined by configuration parameters of the classifier. The signature portions of the packet are extracted as the corresponding portion is received by the classifier. The portions are sent to the signature block 117. The signature block 117 combines the portions to form a signature for the packet. In some embodiments, the signature block 117 may select only some of the signature portions sent from the classifiers to use in forming the signature. For example, the classifier 115 may receive eight sequential bytes from an IP header containing a source address and a destination address, and the signature block 117 may select the first byte of the source address and the first two bytes of the destination address for use in assembling the signature. Embodiment may form the signature by concatenating the selected signature portions. Other embodiment may use a hash function to form the signature.

    [0025] Signature portions are received and assembled by the signature block 117 for each classifier present in an embodiment of the device. The signature block 117 sends the assembled signature from the device according to which of the classifiers produces timing actions and parameters. In some embodiments of a device for extracting actions and parameters from timing messages, signature assembly may be performed in each of the classifiers.

    [0026] FIG. 2 is a block diagram of an embodiment of a timing message classifier in accordance with aspects of the invention. The timing message classifier may be used as a classifier 115a-b in the device illustrated in FIG. 1. The timing message classifier includes a plurality of matching stages that process received packets according to protocols used to format the packets or messages in the packets. Each stage may process the packets for one protocol or, depending on parameters provided to the stage, for multiple similar protocols. Additionally, an embodiment may include some matching stages that are dedicated to processing particular protocols and other stages that are more generally configurable to process various protocols. The processing may include parsing, classifying, and extracting fields from the packets.

    [0027] A first matching stage 213 processes the packets according to an outer protocol and determines whether additional processing is to be performed for the packet and what the additional processing will be. When additional processing is to be performed, the stage supplies a pointer identifying the location in the packet where the additional processing should begin. A final matching stage 221 performs its processing according to a timing protocol and may identify timing parameters and associated timing actions to be sent from the timing message classifier.

    [0028] Intermediate matching stages may be included in the timing message classifier. The embodiment of FIG. 2 includes a second matching stage 215, a third matching stage 217, and a fourth matching stage 219 as intermediate matching stages. Each intermediate matching stage processes received packets according to an intervening protocol used to format the received packets. Each matching stage may supply portions of the packets to a signature block 225 where the portions are combined to create a signature that may be used to identify a specific packet. An example packet that includes an IEEE 1588 timing message, encapsulated in an Internet protocol, encapsulated in an Ethernet protocol may be processed in the first matching stage 213 for the Ethernet encapsulation, in the second matching stage 215 for the Internet protocol encapsulation, and in the final matching stage 221 for the IEEE 1588 timing message.

    [0029] A controller 223 controls operations of the matching stages. The controller 223 may supply values used in the processing of the matching stages and control the sequence in which the matching stages process the packets. The controller 223 may also enable operation of the matching stages. After the starting information in a packet is processed in the first matching stage 213, the controller 223 may enable a next matching stage based on results from the first matching stage. The controller 223 supplies a pointer included in the results to the next matching stage to signal where in the packet the next matching stage should perform its matching operations. Subsequent matching stages may similarly be enabled by the controller. In other words, the controller 223 enables the matching stages to operate on the packet to determine timing parameters and associated timing actions from the combined results of the matching stages. The sequence of matching stages may be considered a linked list.

    [0030] In more detail, each matching stage compares the information in the packets to sets of parameter values. The parameter values specify where in the packet and how matching is to be performed and what action results when a match is determined. One embodiment includes eight sets of parameters and performs comparisons for each of eight flows concurrently. When matches are determined to multiple sets of parameter values, the matching stage selects one of the matches based on a priority ordering of the sets of parameters.

    [0031] Each set of parameter values includes one or more field locations identifying an offset relative to the point in the packet where matching for the next stage will begin. In some embodiments, a field location in a matching stage may be fixed, for example, to a zero offset or to the location of a particular field in a communication protocol. In particular, when a matching stage is dedicated to a particular protocol, some parameters may be fixed or calculated from characteristics of the protocol. For each of the field locations, the parameter values include key values for matching. The key values may be ranges with a match determined when the information in the packet at the identified field location is between minimum and maximum values. The key values may also be bit values with bit masks with a match determined with the information in the packet at the identified field location equals the bit values at unmasked bit positions. Range and bit value keys may be combined with a match determined disjunctively or conjunctively.

    [0032] Some embodiments include, in the parameter sets, values specifying field locations and lengths for producing a packet signature. The matching stage supplies values from the packet at specified location having the specified length to the signature block 225.

    [0033] Each set of parameter values also includes values specifying subsequent actions when a match is determined. For the first matching stage and any intermediate matching stages, the subsequent action may specify a next matching stage and an offset from which the next matching stage should perform its matching. Alternatively, the controller 223 may specify the next matching stage. The offset is relative to the point in the packet that the matching stage began its matching operations.

    [0034] The final matching stage includes parameters specifying actions that determine outputs produced by the classifier. The outputs may include timing parameters taken from locations in the packet specified by parameters. The outputs include actions related to timing operations such as adding or subtracting combinations of selected ones of the output timing values, a local time value, and selected offset of correction values. When no match is determined a no-operation action may be signaled.

    [0035] In some embodiments, the matching stages have functions dedicated to particular protocols. For example, ones of the matching stages may include specialized sets of parameters appropriate for classifying values in an Ethernet header and others of the matching stages may include specialized sets of parameters appropriate for classifying values in an IP header. Accordingly, the set of parameters may differ in numbers of values and ranges of values possible.

    [0036] The number of parameters, in some embodiments, may be reduced by sharing values for multiple uses. For example, two field locations parameters may be used with the same matching values to match to either a destination or a source address. The number of parameters, in some embodiments, may also be reduced by using default values, for example, performing a matching operation using an offset location of zero.

    [0037] FIG. 3 is a block diagram of a communication network node in accordance with aspects of the invention. The node includes a first line card 301 and a second line card 341. Other embodiments may have a greater number of line cards. Each line card is coupled to a physical medium, such as a fiber optic link, and to a system card 321. The line cards transmit and receive packets over the physical media and supply and receive packets to and from the system card. The line cards may process some of the information before transmitting it on the physical media or supplying it to the system card.

    [0038] The system card illustrated in the embodiment of FIG. 3 includes a switching fabric 325 that routes packets between the line cards. A control processor 323 is included in system card and configures operation of the switching fabric. The control processor may additionally process packets identified by the line cards for additional processing of timing information.

    [0039] The first line card 301 is coupled to the system card 321 by a packet processing block 307 that may modify packets according to requirements of the line card and the system card. A line-card control processor 309 provides programmable operations for the line card such as setting configurations and handling exceptions from other blocks of the line card. A media access control (MAC) block 305 that performs operations for the Ethernet MAC sublayer. The first line card uses a gigabit Ethernet PHY 303 to couple to the physical medium. Packets arriving at the line card are generally received by the PHY, transferred to the MAC block and then to the system card. Packets from the line card are generally transmitted by the PHY after being transferred from the system via the MAC block.

    [0040] The gigabit Ethernet PHY 303 includes circuitry to provide processing for timing protocols. In particular, the PHY may include devices for extracting timing messages and determining timing related actions as illustrated in FIG. 1. The PHY may also include a timing message classifier as illustrated in FIG. 2. Other circuitry in the PHY may perform timing related actions, for example, modifying a time stamp parameter according to a delay in the node. Some embodiments of the first line card may couple to multiple physical media links and include a corresponding number of PHYs. Each physical medium link may be associated with a port of the line card. The multiple PHYs may be integrated in one integrated circuit. The circuitry to provide processing for timing protocols in multiple PHYs may use common configuration parameters. The configuration parameters may also be partially shared between PHYs, for example, a set of parameters for matching may be shared by multiple PHYs with each PHY have an unshared parameter to enable use of the matching parameters. Additionally, one circuit may provide processing for timing parameters for packets associated with multiple physical media links, or be configurable for use with one of multiple links.

    [0041] The second line card 341 is similar to the first line card 301. However, the second line includes a 10 gigabit Ethernet PHY 343. The other components of the line card may also differ from those of the first line card for the higher data rate. As with the gigabit Ethernet PHY of the first line card, the 10 gigabit Ethernet PHY 343 includes circuitry to provide processing for timing protocols. In particular, the PHY may include devices for extracting timing messages and determining timing related actions as illustrated in FIG. 1. The PHY may also include a timing message classifier as illustrated in FIG. 2. Some embodiments may include multiple PHYs integrated in one integrated circuit.

    [0042] FIG. 4 is a flowchart of a process for classifying packets and extracting information from timing messages in accordance with aspects of the invention. The process may be implemented in a PHY device and more particularly may be implemented by the devices of FIG. 1 or FIG. 2. Additionally, the process may be implemented using specialized hardware, a processor programmed by instructions, or a combination. Generally, the process is supplied packets of information and identifies timing parameters and associated actions that may be contained in the packets and that should be identified or supplied for subsequent performance of the actions.

    [0043] In block 411, the process performs matching for a first protocol. The first protocol is an outer, or lower layer, protocol according to which the packet is supplied to the process. The packet is classified by comparing portions of the packet to sets of parameters that specify values at various locations in the packet that are considered matching. Associated with the sets of parameters for matching are values that identify a next stage of processing. For example, when the packet follows an Ethernet standard, the process may compare a location in the packet having an Ethertype value to 0x8847 and when there is match, determine that the next stage should be one for MPLS and the process may compare the location in the packet having the Ethertype value to 0x88F7 and when there is match, determine that the next stage should be a timing stage to analyze an IEEE 1588 message.

    [0044] In block 413, the process determines what stage should be performed next based on the results of the matching performed in block 411. In the embodiment illustrated in FIG. 4, there are five possible next stages. Other embodiments may include a different number of stages. When there are no matches in block 411, the process determines that there is no next stage for the packet and returns. When the match determined in block 411 indicates that the next stage should be the timing stage, the process continues to block 451. Otherwise, the process continues block 421 to perform a second matching operation, block 431 to perform a third matching operation, or block 441 to perform a fourth matching operation.

    [0045] In block 421, the process performs matching for a second protocol. The matching begins at an offset from a start of the packet determined in block 411. The offset may point to a header formatted according to the second protocol. Similar to block 411, the process compares portions of the packet to sets of parameters that specify what values at various locations in the packet are considered matching and when a match occurs, identifies a next stage of processing.

    [0046] In block 423, the process determines what stage should be performed next based on the results of the matching performed in block 421. In the embodiment illustrated in FIG. 4, there are three possible next stages. When there are no matches in block 421, the process determines that there is no next stage for the packet and returns. When the match determined in block 421 indicates that the next stage should be the timing stage, the process continues to block 451. Otherwise, the process continues block 431 to perform a third matching operation. Other embodiments of the process may include block 441 as a possible next stage.

    [0047] In block 431, the process performs matching for a third protocol. The matching begins at an offset from a start of the packet determined in the prior matching block. The offset may point to a header formatted according to the third protocol. Similar to blocks 411 and 421, the process compares portions of the packet to sets of parameters that specify what values at various locations in the packet are considered matching and when a match occurs, identifies a next stage of processing.

    [0048] In block 433, the process determines what stage should be performed next based on the results of the matching performed in block 431. In the embodiment illustrated in FIG. 4, there are three possible next stages. When there were no matches in block 431, the process determines that there is no next stage for the packet and returns. When the match determined in block 431 indicates that the next stage should be the timing stage, the process continues to block 451. Otherwise, the process continues block 441 to perform a fourth matching operation. Other embodiments of the process may include other possible next stages, for example, block 421.

    [0049] In block 441, the process performs matching for a fourth protocol. The matching begins at an offset from a start of the packet determined in the prior matching block. The offset may point to a header formatted according to the fourth protocol. Similar to other matching blocks, the process compares portions of the packet to sets of parameters that specify what values at various locations in the packet result are considered matching and when a match occurs, identifies a next stage of processing.

    [0050] In block 443, the process determines what stage should be performed next based on the results of the matching performed in block 441. In the embodiment illustrated in FIG. 4, there are two possible next stages. When the match determined in block 431 indicates that the next stage should be the timing stage, the process continues to block 451; otherwise, the process returns. Other embodiments of the process may include other possible next stages, for example, blocks 421, 431, and 441 may be performed in various orders.

    [0051] In block 451, the process determines timing actions for the packet. The process may also determine parameters from the packet for use in performing the timing actions. For example, a time action may indicate how a time stamp parameter should be modified. The process determines the timing parameters and actions by comparing portions of the packet to sets of parameters that correspond to various timing actions. When a match occurs, specific portions of the packet may also be supplied as parameters for the timing actions. The process performs block 451 relative to a location in the packet specified by the preceding matching stage. The location may be location of a timing message, for example, a message formatted according to IEEE 1588 or ITU-T Y.1731. Thereafter, the process returns.

    [0052] FIG. 5 shows an example of a frame header matching scheme which may be used in accordance with aspects of the invention. The matching scheme may be implemented, for example, by use of comparison blocks of the circuitry of FIG. 2. In using the circuitry of FIG. 2, the controller block may have or be provided, for example, through the use of user programmable registers, an indication of a target protocol encapsulation for the comparison blocks to utilize. In some embodiments, the registers may contain matching patterns, an order for use of the matching patterns, and, in some embodiments, offsets and possibly bit masks to utilize in performing matching.

    [0053] In the example of FIG. 5, three matches are checked, for example, to determine if a PTP over MPLS/PWE packet is being processed. Each match may be checked, for example, using three of the comparison blocks of the circuitry of FIG. 2, with the controller block commanding non-use of a fourth comparison block (or alternatively a bit masking pattern that masks all bits subject to matching). If three matches are detected, a subsequent block may examine portions of the packet relating to PTP information of the message and, in some embodiments, determine appropriate actions to take regarding the PTP information. For ease of illustration, the three section are shown overlapping; however, the sections of packets used for matching generally distinct.

    [0054] Continuing with reference to the example of FIG. 5, a first comparison determines if N1 bytes match predetermined bytes of a packet header, beginning at an offset O1. In many embodiments, the offset O1 is zero so that the first comparison begins with the start of the packet header. As illustrated in FIG. 5, two of the bytes in the packet header include an x, indicating that values of those bytes are irrelevant for purposes of determining if the predetermined bytes of the packet header match the N1 bytes. The first comparison may be used, for example, to determine a type of packet indicated by an Ethertype field in the packet header.

    [0055] A second comparison determines if N2 bytes match predetermined bytes of the packet header, beginning at an offset O2, with four of the bytes being irrelevant for purposes of determining if the predetermined bytes of the packet header match the N2 bytes. The second comparison may be used, for example, to determine if the packet header is indicative of a packet carried over a Multi-Protocol Label Switched network. An embodiment may use comparisons specialized for matching a stack of MPLS labels. For example, the comparison may search for a label value or range of values beginning at the top or bottom of the stack and determine a match depending on the location of a label within the stack.

    [0056] A third comparison determines if N3 bytes match predetermined bytes of the packet header, beginning at an offset O3, with four of the byes being irrelevant for purposes of determining if the predetermined bytes of the packet header match the N3 bytes. The third comparison may be used, for example, to determine if the packet header is indicative of a pseudowire Ethernet packet.

    [0057] As illustrated in FIG. 5, each successive offset for each successive comparison is larger than prior offsets. In various embodiments, however, successive offsets may be smaller than prior offsets. For many embodiments, the offset corresponds to a size of the header for the protocol used. Similarly, the number of bytes to be matched may also vary, or be the same, depending on particular protocols.

    [0058] Although the invention has been discussed with respect to various embodiments, it should be recognized that the invention comprises the novel and non-obvious claims supported by this disclosure.


    Claims

    1. A method of determining how to adjust a time stamp, comprising:

    providing a packet comprising the time stamp to a plurality of sequentially arranged comparison blocks (213, 215, 217, 219, 221),

    sequentially performing a comparison of information in the provided packet to respective sets of parameter values by at least some of the sequentially arranged comparison blocks, each of said sets of parameter values representing a particular one of a plurality of communication protocols;

    providing, by each of the comparison blocks other than an ultimate comparison block (221), an offset indicator to a subsequent comparison block of the plurality of sequentially arranged comparison blocks, said information in the provided packet selected responsive to said offset indicator; and

    determining, by the ultimate comparison block, an action to take regarding modification of the time stamp.


     
    2. The method of claim 1, further comprising:

    determining a start of a frame signal of said provided packet; and

    aligning data of a frame of the provided packets in accordance with the start of frame signal.


     
    3. The method of claim 1, further comprising modifying the time stamp based on the determined action.
     
    4. The method of claim 1, further comprising forming a signature (225) identifying the packet by selecting portions of the packet by at least one of the comparison blocks.
     
    5. A physical layer, PHY, device comprising:

    a plurality of sequentially arranged comparison blocks (213, 215, 217, 219, 221) each configured to compare information in the provided packet to a respective set of parameter values, each of the respective sets of parameter values representing a particular one of a plurality of communication protocols, wherein each of the comparison blocks, other than an ultimate comparison block, configured to provide an offset indicator to a subsequent comparison block of the plurality of sequentially arranged comparison blocks, said information in the provided packet selected responsive to said offset indicator; and

    circuitry arranged to modify the time stamp in the provided packets responsive to an ultimate comparison block.


     
    6. The physical layer device of claim 5, further comprising a control circuitry (223) arranged to control an order of operation of the comparison blocks.
     
    7. The physical layer device of claim 5, further comprising a signature block (117) configured to produce a signature of a frame of the provided packets from signature components, and
    where at least one of the comparison blocks is further configured to select portions of the packet for the signature components.
     
    8. The physical layer device of any of claims 5 - 7 further comprising:

    start of frame circuitry (111) for determining a start of a frame signal of provided packets; and

    alignment circuitry (113) for aligning data of a frame of the provided packets in accordance with the start of frame signal.


     


    Ansprüche

    1. Verfahren zur Bestimmung, wie ein Zeitstempel anzupassen ist, umfassend:

    Bereitstellen eines Pakets umfassend den Zeitstempel für mehrere sequenziell angeordnete Vergleichsblöcke (213, 215, 217, 219, 221),

    sequenzielles Durchführen eines Vergleichs von Informationen in dem bereitgestellten Paket mit entsprechenden Mengen von Parameterwerten durch mindestens einige der sequenziell angeordneten Vergleichsblöcke, wobei jeder der Sätze von Parameterwerten ein bestimmtes Protokoll aus mehreren Kommunikationsprotokollen darstellt;

    Bereitstellen eines Versatzindikators durch jeden der Vergleichsblöcke außer einem letzten Vergleichsblock (221) für einen nachfolgenden Vergleichsblock der mehreren sequenziell angeordneten Vergleichsblöcke, wobei die Informationen in dem bereitgestellten Paket in Reaktion auf den Versatzindikator ausgewählt werden; und

    Bestimmen einer durch den letzten Vergleichblock zu ergreifenden Aktion bezüglich der Änderung des Zeitstempels.


     
    2. Verfahren nach Anspruch 1, ferner umfassend:

    Bestimmen eines Starts eines Rahmensignals des bereitgestellten Pakets; und

    Ausrichten von Daten eines Rahmens der bereitgestellten Pakete gemäß dem Start des Rahmensignals.


     
    3. Verfahren nach Anspruch 1, ferner umfassend das Ändern des Zeitstempels basierend auf der ermittelten Aktion.
     
    4. Verfahren nach Anspruch 1, ferner umfassend das Bilden einer Signatur (225), um das Paket durch das Auswählen von Abschnitten des Pakets durch wenigstens einen der Vergleichsblöcke zu identifizieren.
     
    5. Bitübertragungsschichtvorrichtung (PHY-Vorrichtung), umfassend:

    mehrere sequenziell angeordnete Vergleichsblöcke (213, 215, 217, 219, 221), die jeweils konfiguriert sind, um Informationen in dem bereitgestellten Paket mit einem jeweiligen Satz von Parameterwerten zu vergleichen, wobei jeder der jeweiligen Sätze von Parameterwerten ein bestimmtes Protokoll aus mehreren Kommunikationsprotokollen darstellt, wobei jeder der Vergleichsblöcke mit Ausnahme eines letzten Vergleichsblocks so konfiguriert ist, dass er einen Versatzindikator für einen nachfolgenden Vergleichsblock der mehreren sequenziell angeordneten Vergleichsblöcken bereitstellt, wobei die Informationen in dem bereitgestellten Paket in Reaktion auf den Versatzindikator ausgewählt werden; und

    eine Schaltung, die angeordnet ist, um den Zeitstempel in den bereitgestellten Paketen als Reaktion auf einen letzten Vergleichsblock zu modifizieren.


     
    6. Bitübertragungsschichtvorrichtung nach Anspruch 5, ferner eine Steuerschaltung (223) umfassend, die eingerichtet ist, um eine Reihenfolge des Betriebes der Vergleichsblöcke zu steuern.
     
    7. Bitübertragungsschichtvorrichtung nach Anspruch 5, ferner umfassend einen Signaturblock (117), der zum Erzeugen einer Signatur eines Rahmens der bereitgestellten Pakete aus Signaturkomponenten konfiguriert ist, und wobei mindestens einer der Vergleichsblöcke ferner konfiguriert ist, um Abschnitte des Pakets für die Signaturkomponenten auszuwählen.
     
    8. Bitübertragungsschichtvorrichtung nach einem der Ansprüche 5 bis 7, ferner umfassend:

    Start der Rahmenschaltung (111) zum Bestimmen eines Starts eines Rahmensignals von bereitgestellten Paketen; und

    Ausrichtungsschaltung (113) zum Ausrichten von Daten eines Rahmens der bereitgestellten Pakete in Übereinstimmung mit dem Start des Rahmensignals.


     


    Revendications

    1. Procédé permettant de déterminer la manière de régler une estampille temporelle, comprenant :

    la fourniture d'un paquet comprenant l'estampille temporelle à une pluralité de blocs de comparaison agencés séquentiellement (213, 215, 217, 219, 221),

    l'exécution séquentielle d'une comparaison des informations dans le paquet fourni à des ensembles respectifs de valeurs des paramètres au moyen d'au moins certains des blocs de comparaison agencés séquentiellement, chacun desdits ensembles de valeurs des paramètres représentant un protocole de communication particulier parmi une pluralité de protocoles de communication ;

    la fourniture, au moyen de chacun des blocs de comparaison autres qu'un bloc de comparaison ultime (221), d'un indicateur de décalage à un bloc de comparaison suivant parmi la pluralité de blocs de comparaison agencés séquentiellement, lesdites informations dans le paquet fourni étant sélectionnées en réponse audit indicateur de décalage ; et

    la détermination, au moyen du bloc de comparaison ultime, d'une action à entreprendre concernant la modification de l'estampille temporelle.


     
    2. Procédé selon la revendication 1, comprenant en outre :

    la détermination d'un début d'un signal de trame dudit paquet fourni ; et

    l'alignement des données d'une trame des paquets fournis conformément au début du signal de trame.


     
    3. Procédé selon la revendication 1, comprenant en outre la modification de l'estampille temporelle sur la base de l'action déterminée.
     
    4. Procédé selon la revendication 1, comprenant en outre la formation d'une signature (225) identifiant le paquet en sélectionnant des parties du paquet au moyen d'au moins un des blocs de comparaison.
     
    5. Dispositif à couche physique, PHY, comprenant :

    une pluralité de blocs de comparaison agencés séquentiellement (213, 215, 217, 219, 221), chacun étant configuré pour comparer des informations dans le paquet fourni à un ensemble respectif de valeurs des paramètres, chacun des ensembles respectifs de valeurs des paramètres représentant un protocole de communication particulier parmi une pluralité de protocoles de communication, chacun des blocs de comparaison, autre qu'un bloc de comparaison ultime, étant configuré pour fournir un indicateur de décalage à un bloc de comparaison suivant parmi la pluralité de blocs de comparaison agencés séquentiellement, lesdites informations dans le paquet fourni étant sélectionnées en réponse audit indicateur de décalage ; et

    un ensemble de circuits agencé pour modifier l'estampille temporelle dans les paquets fournis en réponse à un bloc de comparaison ultime.


     
    6. Dispositif à couche physique selon la revendication 5, comprenant en outre un ensemble de circuits de commande (223) agencé pour commander un ordre de fonctionnement des blocs de comparaison.
     
    7. Dispositif à couche physique selon la revendication 5, comprenant en outre un bloc-signature (117) configuré pour produire une signature d'une trame des paquets fournis à partir d'éléments de signature, et
    où au moins un des blocs de comparaison est en outre configuré pour sélectionner des parties du paquet pour les éléments de signature.
     
    8. Dispositif à couche physique selon l'une quelconque des revendications 5 à 7 comprenant en outre :

    un début d'un ensemble de circuits de trame (111) pour déterminer un début d'un signal de trame de paquets fournis ; et

    un ensemble de circuits d'alignement (113) destiné à aligner des données d'une trame des paquets fournis conformément au début du signal de trame.


     




    Drawing




















    Cited references

    REFERENCES CITED IN THE DESCRIPTION



    This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

    Patent documents cited in the description