This application is the US National Stage of International Application No. PCT/EP2006/064257, filed Jul. 14, 2006 and claims the benefit thereof. The International Application claims the benefits of German application No. 10 2005 037 376.3 DE filed Aug. 8, 2005, both of the applications are incorporated by reference herein in their entirety.
The invention relates to a method and a device for applying a stamp to any Ethernet frames in conjunction with a standard Ethernet controller.
A method or apparatus of this kind is used in local area networks, particularly in distributed systems in automation for which a precise time base is important. Automation systems are here to be understood as systems which use technical means to carry out particular operations partly or wholly according to predefined programs without human intervention. In this context, the term operations denotes e.g. manufacturing processes, assembly processes, transportation processes, quality control processes, etc. which take place particularly in an industrial environment.
Highly accurate Ethernet synchronization e.g. by means of the Precision Time Protocol (PTP) specified in IEEE 1588 requires time stamping of the Ethernet telegrams at the time of reception. Increasing the telegram length in order to add the stamp is not supported by the Media Access Controllers (MACs).
The known solutions apply the time stamp as a prefix or postfix to the Ethernet frame, which means that standard Ethernet controllers can no longer be used. This problem is solved in a proprietary manner by additional hardware which is generally connected to the Media Independent Interface (MII) between an Ethernet controller and a “Physical Layer” (PHY).
US 2003/0115369 A1 discloses a method wherein, by means of an “epoch packet” which marks the start of a frame having a plurality of time slots, a plurality of devices connected to a network are assigned said time slots together with an offset and the duration of the relevant time slot during which packets may be transmitted onto the network. The epoch packets themselves are e.g. standard Ethernet frames, the time slot information constituting to some extent the application data of the Ethernet frame. The actual time stamping for synchronization is performed here by a governor which provides the incoming epoch packets in a bus adapter of the relevant device with a time stamp after the media access controller incorporated in the adapter has removed the headers of the Ethernet frames.
An object of the invention is to provide any Ethernet frames with a stamp, in particular a time stamp, it being possible to use standard Ethernet controllers defined by the general Ethernet standard IEEE 802.X.
This object is achieved by a method for applying a stamp to any Ethernet frames in conjunction with a standard Ethernet controller, said Ethernet controller being operated in so-called RAW mode in which e.g. no media access control (MAC) destination address filtering is performed, and the stamp is entered in an area of the MAC destination address of the Ethernet frame.
This object is further achieved by an apparatus for applying a stamp to any Ethernet frames in conjunction with a standard Ethernet controller, said apparatus being provided between an Ethernet controller operated in so-called RAW mode in which e.g. no media access control (MAC) destination address filtering is performed, and a “Physical Layer” (PHY), and incorporates means of entering the stamp in an area of the MAC destination address of the Ethernet frame.
Every Ethernet controller supports the so-called RAW mode in which checking of the Ethernet telegram is reduced to a minimum. If the Ethernet controller is operated in this mode and checking of the MAC destination address is shifted to the apparatus for stamping any Ethernet frames, the 6-byte MAC destination address is available for stamping. By means of the selected location of the apparatus between Ethernet controller and PHY, the apparatus can manipulate the data flow between Ethernet controller and PHY as required.
In a particularly advantageous embodiment, four bytes of the six-byte MAC destination address are provided for the stamp, while the remaining two bytes encode the original MAC destination address, which means that the full functionality of the MAC destination address, such as a plurality of unicast addresses or additional multicast addresses, is retained, as the stamp can be extracted by software at each Ethernet controller and the Ethernet frame can be re-provided with the original MAC destination address.
In a likewise advantageous embodiment, the apparatus and also the PHY can be controlled via reading and writing by the Serial Management Interface (SMI) protocol of the Media Independent Interface (MII) specified in the general Ethernet standard IEEE 802.X, by means of which a 32×32×2 byte address space is read and write addressable, and for its control e.g. the (28-31)×YY×2 byte address space is provided, which means that another 28 PHYs [(0-27)×YY×2 bytes] remain selectable.
The apparatus advantageously has means of entering the time stamp for the Precision Time Protocol (PTP) specified in IEEE 1588. This functionality is available on every conceivable Ethernet controller with SMI.
Multicast telegrams are provided in many Ethernet protocols, the apparatus advantageously being usable as a pre-filter for load reduction at the local interface.
The invention will now be described and explained in greater detail with reference to the accompanying drawings, in which:
Due to the selected location on the MII, the described method and apparatus are independent of the physical transmission type, glass fiber or copper, and of the transmission speed, 10 MBd to 10 GBd, as in all operating modes a MII or GMII is defined in the general Ethernet standard IEEE 802.X.
The embodiments described have further advantages in terms of the simple hardware integration, low costs and large number of possible uses.
To summarize, the invention relates to a method and apparatus for stamping any Ethernet frames. The object of the invention is to provide any Ethernet frames with in particular a time stamp, it being possible to use standard Ethernet controllers defined according to IEEE 802.X. This object is achieved by a novel method in such a way that the stamp is applied between an Ethernet controller operated in RAW mode and a “Physical Layer” to an area of the Media Access Control (MAC) destination address, while the original MAC destination address is advantageously encoded in the remaining area.
| Number | Date | Country | Kind |
|---|---|---|---|
| 10 2005 037 376.3 | Aug 2005 | DE | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/EP06/64257 | 7/14/2006 | WO | 00 | 10/25/2007 |