The present invention relates to communication or data or information exchange within an Electronic System and/or between two, or more, Electronic Systems in general and, more particularly, to packet-based transport systems where Packets of a first communication protocol get transported via a second packet-based transport protocol.
In telecommunications which is communication or data or information exchange within, over, or among electronic systems typically packet-based transport is used. A Packet is sometimes also called a Message, a Payload Data Unit, or a Protocol Data Unit, or a Packet Data Unit, or a PDU, and is a unit of information that is delivered among peer entities of a communication network. In a layered system according to the Open Systems Interconnection (OSI) model, a Packet is a unit of data which is specified in a protocol of a given layer and which consists of protocol-control information, such as, for example, a network address, and zero, or more, user data.
Various packet-based transport methods are known in the art, for example, GSM, UMTS, LTE, 5G, CAN, CCLink-IE, Modbus-TCP, MOST, Flexray, LIN, AFDX, IIC, HDBase-T, Ethernet, EtherCat, ProfiNET, Sercos, TTCAN, UDP, TCP/IP, IPSec, PATA, SATA, PCIe, SDI, NVMe, MIPI CSI-2, GMSL, FPD-III, BroadR-Reach, WiFi, Bluetooth, and many others.
Sometimes, it becomes necessary to transport a Packet of one given protocol over a network that utilizes a Second Protocol. This is, sometimes, referred to as transporting, tunneling or encapsulation.
The challenges in transporting, tunneling, or encapsulating, Packets of a First Protocol over a Second Protocol are manifold, and non-trivial to solve in practical Electronic System implementations.
Problems include, for example:
Packet Loss: in packet-based transport Packet Loss occurs when a Packet must be considered encumbered or invalid due to signal integrity issues or failing integrity checks, like Cyclic Redundancy Check (CRC), for example. If the First Protocol is loss-less, then every Packet considered invalid by a receiver must be resent by the transmitter of the Packet, while the original ordering of the Packet flow must also be maintained. This can be done by resending the entire, ordered sequence of Packets starting with the invalid Packet. Or, it can be done, for example, by just resending the invalid Packet in which case the receiver must insert the resent Packet back into the ordered sequence position where it replaces the invalid Packet. Those and other approaches known in the art each have their individual benefits and individual drawbacks depending on communication overhead, bandwidth and latency demands, and other technical and cost requirements, and are non-trivial to solve for a given protocol.
Rate Matching: In a loss-less protocol the transmitter must match the rate of Packets sent to the rate at which the receiver can digest the Packets. This concept goes with a technique called flow control. Various approaches for flow control are known in the art: XON/XOFF, reject/resend, or credit-based flow control. Another technique known in the art for rate matching is using buffers, or queues, to temporarily hold one, or more, Packets that cannot be digested by the receiver at the moment, although such techniques will only work for small rate differences and over short moments in time, as otherwise the buffers need to be unpractically large.
Starvation and Deadlocks: Starvation and/or deadlocks can occur in such buffered, or queued, packet-based transport systems, and is, for example, described in U.S. Pat. No. 5,961,623 by James et al., which is hereby included in its entirety by reference or in the book from Addison-Wesley “PCI Express System Architecture” by Ravi Budruk et al. which is hereby included in its entirety by reference, or in the book from Addison-Wesley “PCI System Architecture”, Fourth Edition by Tom Shanley et al which is hereby included in its entirety by reference.
Re-packetizing: Re-packetizing is the process of taking Packets of a First Protocol, stripping the headers of the First Protocol, effectively extracting the payload, adding headers of the Second Protocol, and sending the result as Packets of a Second Protocol. Re-packetizing in form of encapsulation is also the process of taking one, or more, Packets of a First Protocol and putting them inside, as payload, of one, or more, Packets of a Second Protocol for transport. Re-packetizing is also called encapsulation when it refers to the process of receiving Packets of a Second Protocol and to extract Packets of a First Protocol from the payload of Packets of a Second Protocol. In most Electronic Systems the Packets of a First Protocol and the Packets of a Second Protocol will be different in size (as measure in multiples of bits and/or Bytes), leading to one of the two situations: i) Either the Packet of the First Protocol is smaller in size than the Packet of the Second Protocol, then every single Packet of the First Protocol can be transported by a single Packet of the Second Protocol. In some practical cases this may be desirable as Packets of a First Protocol can get sent without delay, thereby keeping the added latency of transporting, or encapsulation, low. However, depending on the protocol overhead of Second Protocol this may come at the disadvantage of wasting network bandwidth. In such practical cases it may be advantageous to aggregate two, or more, Packets of a First Protocol, into the payload of one Packet of the Second Protocol, as long as the aggregated Packets fit into the payload of one Packet of the Second Protocol, and transport them together. ii) If the Packets of a First Protocol are larger in size than the Packets of a Second Protocol, then every single Packet of the First Protocol must be split into two, or more, portions each small enough in size to fit the payload of a single Packet of the Second Protocol. This is sometimes referred to as segmentation. Aggregation and segmentation can also be combined to create maximum sized Packets of a Second Protocol.
Real-time behavior: In a distributed system there may be the need to transport Packets within a particular, predetermined latency, allowing receipt within a particular predetermined deadline. This concept is well-known from Field Buses such as CAN, EtherCat, ProfiNET and, recently, has been introduced to Ethernet in form of Time-Sensitive Networking (TSN). Typically, real-time behavior in a networked system comprises the following elements: Transport medium (such as Ethernet, for example), Time Synchronization, Traffic Classification (also known as Priority Handling), Frame Preemption, Traffic Shaping and Scheduled Traffic. Time Synchronization is, for example, described in standards IEEE 1588v2 or IEEE 802.1AS which are hereby included in its entirety by reference. Traffic Classification is, for example, described in standards IEEE 802.1Qav or IEEE 802.1Qch which are hereby included in their entirety by reference. Frame Preemption is, for example, described in standards IEEE 802.3br and IEEE 802.1Qbu which are hereby included in its entirety by reference. Scheduled Traffic is, for example, described in standards IEEE 802.1Qav which is hereby included in its entirety by reference. Recently, this was also standardized for the use of so-called Industrial Ethernet, for example in IEEE 802.1Q or amendment IEEE 802.1Qbv which are hereby included in their entirety by reference.
With recent advancements in semiconductor technology and Electronic System processing it now becomes feasible to transport Packets of a First Protocol over a Second Protocol, cost and energy efficiently. Various approaches are known in the art: In IEEE Standard 1722-2016, which is hereby included in its entirety by reference, an Audio-Video-Broadcast Transport Protocol is defined which can, for example, transport other protocols, such as CAN or IEEE 1394 Firewire.
In U.S. Pat. No. 5,961,623 by James et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 7,581,044 by Davis, which is hereby included in its entirety by reference or in U.S. Pat. No. 7,443,869 by Solomon et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2007/0121495 by Breti et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2014/0237156 by Regula et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2004/0019729 by Kelley et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2002/0146022 by Van Doren et al., which is hereby included in its entirety by reference techniques are presented to avoid deadlocks and/or starvation for packet-based transport using one single protocol, namely PCI Express. However, none of those publications addresses any aspects when Packets of a First Protocol get transported over a Second Protocol.
In United States Patent Application Number 2011/0064089 by Hidaka et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2011/0185163 by Hidaka et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2013/0086295 by Hidaka et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 9,348,396 by Higuchi et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 8,533,381 by Uehara et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 8,949,499 by Freking et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2006/0126612 by Sandy et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2012/0110233 by Higuchi et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2007/0198763 by Suzuki et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2017/0109310 by Takahashi et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2014/0245053 by Yoshikawa et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 9,264,384 by Sundaresan et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 7,480,303 by Ngai, which is hereby included in its entirety by reference or in U.S. Pat. No. 9,191,109 by Zbinden et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2008/0291994 by Lida et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2017/0163744 by Lida et al., which is hereby included in its entirety by reference or in United States Patent Application Number 2011/0317587 by Lida et al., which is hereby included in its entirety by reference or in U.S. Pat. No. 9,064,058 by Daniel, which is hereby included in its entirety by reference techniques are presented for transporting Packets of a First Protocol for example by encapsulating them into Packets of a Second Protocol.
This includes techniques for addressing, or for routing. However, none of those publications addresses any aspects of avoiding deadlocks and/or starvation.
At the same time, combining techniques for packet-based transport of Packets of a First Protocol via a Second Protocol with techniques for avoiding deadlocks and/or starvations is not trivial as the deadlock and starvation avoiding techniques of First Protocol are in most cases neither applicable nor practicable to the Second Protocol. For example, techniques for avoiding deadlocks and/or starvation applicable to the PCI Express protocol cannot be applied to the TCP/IP protocol, as we will demonstrate later. This creates the need for solutions that effectively can avoid deadlocks and/or starvation when Packets of a First Protocol get transported over a Second Protocol and, at the same time, are efficient with regards to bandwidth and/or latency in terms of re-packetizing.
PCB is a Printed Circuit Board.
ECU is an Electronic Control Unit and is a generic term for any embedded system that controls one or more of the electrical systems or subsystems in a motor vehicle.
PLC is a Programmable Logic Controller and is a digital computer used for automation of electromechanical processes, such as control of machinery on factory assembly lines, amusement rides, or light fixtures.
A Programmable Circuit is an integrated digital and/or analog circuit device which can be user-programmed without a manufacturing step, typically by uploading a configuration bit file into the device after power-up.
FPGA is a Field-Programmable Gate-Array, a special digital Programmable Circuit device.
FPAA is a Field-Programmable Analog-Array, a special analog Programmable Circuit device.
PLD is a Programmable Logic Device, another special Programmable Circuit device.
CPLD is a Complex Programmable Logic Device, another special Programmable Circuit device.
FSM is a Finite State Machine which can be implemented in a digital circuit.
CPU is a Central Processing Unit, typically a Von-Neumann data processing machine.
DSP is a Digital Signal Processor, a CPU highly optimized towards processing digital signal values.
ASIC is an Application Specific Integrated Circuit which is a digital, or mixed-signal, or analog integrated circuit optimized and built for a specific application.
ASSP is an Application-Specific Standard Processor which is an integrated digital circuit device which comprises one, or more, CPUs, plus application-specific circuitry.
Microcontroller is a digital and/or mixed-signal integrated circuit device which comprises one, or more, CPUs plus special-purpose peripherals and inputs/outputs.
SOC is a System-on-a-Chip which is a digital and/or mixed-signal integrated circuit device which comprises one, or more, CPUs, special-purpose peripherals, inputs/outputs, application-specific circuitry, memory, etc.
PSOC is a Programmable System-on-a-Chip, a SOC which is implemented using Programmable Circuits.
HDL is Hardware Description Language which is a human and machine readable language typically used to describe the behavior, structure, concurrency, and/or timing of integrated digital, or analog, circuitry. Examples of HDL are VHDL, Verilog, SystemVerilog, SystemC, or C, or C++.
VHDL is VHSIC hardware description language which is the HDL specified and standardized, for example, by IEEE 1076-2008, which is hereby included in its entirety by reference.
Verilog is the HDL specified and standardized for example, by IEEE 1364-2005, which is hereby included in its entirety by reference.
SystemVerilog is the HDL specified and standardized, for example, by IEEE 1800-2009, which is hereby included in its entirety by reference.
SystemC is the HDL specified and standardized, for example, by IEEE 1666-2005, which is hereby included in its entirety by reference.
PLB is Processor Local Bus which is defined by IBM's CoreConnect on-chip architecture.
AXI is the Advanced eXtensible Interface which is part of the Advanced Microcontroller Bus Architecture (AMBA) defined by ARM Ltd.
RAM is Random Access Memory which typically is volatile digital storage, such as DDR2 RAM or DDR3 RAM or LPDDR RAM.
OS is Operating System which is Software code for resource, task, and user management of a data processing system.
Router is a device or an application that forwards data packets between computer networks, creating an overlay internetwork.
A Bridge applies a forwarding technique used in packet-switched computer networks and typically makes no assumptions about where in a network a particular address is located.
A Tunnel is using a networking protocol where one network protocol (the delivery protocol) encapsulates a different payload protocol, for example to carry a payload over an incompatible delivery-network, or to provide a secure path through an untrusted network.
GSM stands for Global System for Mobile Communications and is a standard set developed by the European Telecommunications Standards Institute to describe technologies for second generation digital cellular networks.
UMTS stands for Universal Mobile Telecommunications System and is a third generation mobile cellular technology for networks based on the GSM standard.
LTE stands for Long-Term Evolution and is a fourth generation mobile cellular technology for networks based on the GSM standard.
CAN is Controller Area Network which is a vehicle bus standard ISO 11898 designed to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer.
MOST is Media Oriented Systems Transport which is a high-speed multimedia network technology optimized by the automotive industry.
Flexray is an automotive network communications protocol developed by the FlexRay Consortium, and which is currently being converted into an ISO standard.
LIN is Local Interconnect Network which is a vehicle bus standard or computer networking bus-system used within current automotive network architectures.
AFDX is Avionics Full-Duplex Switched Ethernet which is a data network for safety-critical applications that utilizes dedicated bandwidth while providing deterministic Quality of Service. AFDX is based on IEEE 802.3 Ethernet technology and is described specifically by the ARINC 664 specification. Safety can be Functional Safety, as it is, for example, defined in ISO Standards 61508 or EN 262626, which are hereby included by reference in their entirety.
SPI is Serial Peripheral Interface Bus which is a synchronous serial data link standard, named by Motorola, that operates in full duplex mode.
IIC is Inter-Integrated Circuit which is a multi-master serial single-ended computer bus invented by Philips that typically is used to attach low-speed peripherals.
GPIO is General Purpose Input/Output is generic pins on an integrated circuit whose behavior (including whether it is an input or output pin) can be controlled through software.
Ethernet is a family of computer networking technologies for local area networks and is standardized in IEEE 802.3 and in IEEE 802.1.
EtherCat is Ethernet for Control Automation Technology which is an open high performance Ethernet-based fieldbus system.
ProfiNET is the open industrial Ethernet standard of PROFIBUS & PROFINET International for automation.
Sercos is Serial Real-Time Communication System Interface which is a globally standardized open digital interface for the communication between industrial controls, motion devices (drives) and input output devices (I/O) and is classified as standard IEC 61491 and EN 61491.
BroadR-Reach is an Ethernet physical layer standard designed for use in automotive connectivity applications. Originally invented by Broadcom Ltd. it has evolved into an open standard by the IEEE as 100Base-T1 in 802.3bw-2015 Clause 96, or as 1000Base-T1, for example.
TTCAN is Time-Triggered communication on CAN which is defined by the ISO 11898-4 standard.
CANOpen is a communication protocol and device profile specification for embedded systems used in automation. The basic CANopen device and communication profiles are given in the CiA 301 specification released by CAN in Automation.
SDI is the Serial Digital Interface, in form of SDI, HD-SDI, 3G-SDI, 6G-SDI, specified by the Society of Motion Picture and Television Engineers (SMPTE) for as SMTPE 292M or SMPTE 372M or SMPTE 424M or SMPTE ST 2081 or SMPTE ST 2082, which are hereby included by reference in their entirety.
MIPI CSI-2 is the Camera Serial Interface specification of the Mobile Industry Processor Interface (MIPI) Alliance and defines an interface between a camera and a CPU. It has been, for example, specified in 2019 in CSI-2 v3.0 Specification, which is hereby included by reference.
GMSL or Gigabit Multimedia Serial Link is a serialized high-speed interface from Maxim Integrated.
FPD-III or Flat Panel Display Link is a high-speed digital video interface created by National Semiconductor in 1996 and is now a free and open standard.
HDBase-T or HDBaseT or HDBT is a commercial connectivity standard and transmission protocol, defined by the HDBaseT Alliance.
UDP is User Datagram Protocol which is one of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet.
TCP/IP is Transmission Control Protocol/Internet Protocol is a descriptive framework for the Internet Protocol Suite of computer network protocols created in the 1970s by DARPA. TCP/IP has four abstraction layers and is defined in RFC 1122.
TSN is Time-Sensitive Networking which enables real-time functionality for Ethernet and which is defined by a set of Standards such as IEEE 1588, IEEE 802.1AS, IEEE 802.1Q-2018, and others.
DCTCP is Data Center Transmission Control Protocol is a modification to conventional TCP described, for example, in “Data Center TCP (DCTCP)” by M. Alizadeh et al., in Proceedings of SIGCOMM 2010 which is hereby included by reference.
DetNet is Deterministic Networking described by the IETF DetNet Working Group as an implementation of deterministic data paths for real-time applications using Internet Protocol (IP) over TSN. It is, for example, described in IETF RFC 8655 which is hereby included by reference.
QUIC is a general purpose transport layer protocol initially designed by Google and, for example, specified by the IETF in “QUIC: A UDP-Based Multiplexed and Secure Transport” which is hereby included by reference.
IPSec is Internet Protocol Security which is a protocol suite for securing Internet Protocol (IP) communications by authenticating and encrypting each IP packet of a communication session. IPsec also includes protocols for establishing mutual authentication between agents at the beginning of the session and negotiation of cryptographic keys to be used during the session.
RS232 is Recommended Standard 232 which is the traditional name for a series of standards for serial binary single-ended data and control signals connecting between a DTE (Data Terminal Equipment) and a DCE (Data Circuit-terminating Equipment).
RS485 also known as EIA-485, also known as TIA/EIA-485 is a standard defining the electrical characteristics of drivers and receivers for use in balanced digital multi-point systems. This standard is published by the ANSI Telecommunications Industry Association/Electronic Industries Alliance (TIA/EIA).
USB is Universal Serial Bus which is an industry standard developed in the mid-1990s that defines the cables, connectors and communications protocols used in a bus for connection, communication and power supply between computers and electronic devices.
PATA is Parallel ATA which is an interface standard for the connection of storage devices such as hard disks, solid-state drives, floppy drives, and optical disc drives in computers.
SATA is Serial Advanced Technology Attachment which is a computer bus interface for connecting host bus adapters to mass storage devices such as hard disk drives and optical drives.
PCIe also known as PCI Express (Peripheral Component Interconnect Express) is a computer expansion bus standard maintained and developed by the PCI Special Interest Group.
NVMe also known as NVM Express (Non-Volatile Memory Express) is a protocol typically used for Solid-State Drives. It can be transported via PCIe or via so-called Fabrics such as Infiniband or Ethernet. It is standardized, for example by the NVM Express Workgroup in “NVM Express Base Specification Revision 1.4,” which is hereby included by reference in its entirety, and standardized in “NVM Express over Fabrics Revision 1.1,” which is hereby included by reference in its entirety.
WiFi is a mechanism that allows electronic devices to exchange data wirelessly over a computer network using the IEEE 802.11 family of standards.
Bluetooth is a proprietary open wireless technology standard for exchanging data over short distances, creating personal area networks with high levels of security, a standard which is maintained by the Bluetooth Special Interest Group. 5G, or 5G NR, is the fifth generation technology standard for cellular networks by the International Telecommunication Union.
Heterogeneous packet-based transport systems enable implementing Electronic Systems as so-called distributed systems. Multiple subsystems which utilize a First Protocol for localized communication internally can then be connected with each other using a different Second Protocol, which allows communication over distances, more cost and energy-efficiently. Examples of protocols which have advantages for localized, or short-range, communication are: MOST, FlexRay, LIN, CAN, IIC, PATA, SATA, PCI Express, NVMe, SDI, MIPI CSI-2, GMSL, FPD-III, Bluetooth. Examples of protocols which are advantageous for more long-range distributed communications are: GSM, UMTS, LTE, AFDX, HD-BaseT, Ethernet, EtherCat, ProfiNET, Sercos, UDP, TCP/IP, TSN, DCTCP, DetNet, QUIC, 5G, WiFi.
As outlined above, for proper functioning deadlocks and/or starvation must be avoided while, at the same time, requirements for bandwidth and latency must be met.
One embodiment of this invention is the system of
UP 1002 receives Packets of the First Protocol 1011 from RC 1001, re-packetizes those into Packets of the Second Protocol 1012, and transmits the Packets of the Second Protocol 1012 to DN 1003. UP 1002 further receives Packets of the Second Protocol 1012 from DN 1003, re-packetizes those into Packets of the First Protocol 1011, and transmits the Packets of the First Protocol 1011 to RC 1001. Similarly, DN 1003 receives Packets of the First Protocol 1011 from EP 1004, re-packetizes those into Packets of the Second Protocol 1012, and transmits the Packets of the Second Protocol 1012 to UP 1002. DN 1003 further receives Packets of the Second Protocol 1012 from UP 1002, re-packetizes those into Packets of the First Protocol 1011, and transmits the Packets of the First Protocol 1011 to EP 1004.
Within the distributed switch 1000, UP 1002 and DN 1003 are working in concert to avoid any deadlocks and/or starvation while, at the same time, re-packetization is performed.
If Bluetooth or USB or PATA or SATA or CAN or LIN, for example, are used for protocol 1011, then RC 1001 can be referred to as Host or Master, and EP 1004 can be referred to as Device. If PCI Express is used as protocol 1011, then RC 1001 can be referred to as the PCI Express Root Complex, or the PCI Express RC, and EP 1004 can be referred to as the PCI Express Endpoint or the PCI Express EP or can be another PCI Express Upstream Port (as PCI Express allows a tree-like topology), and UP 1002 can be referred to as the UP, and DN 1003 can be referred to as the PCI Express Downstream Port or DN, and switch 1000 can be referred to as a so-called Transparent PCI Express Switch.
One other embodiment of this invention is the system of
In such a system, UP 2002 receives Packets of the First Protocol 2011 from RC 2001, re-packetizes those into Packets of the Second Protocol 2012, and transmits the Packets of the Second Protocol 2012 to DN 2003, DN 2005, and so on. UP 2002 further receives Packets of the Second Protocol 2012 from DN 2003 or DN 2005, resp., re-packetizes those into Packets of the First Protocol 2011, and transmits the Packets of the First Protocol 2011 to RC 2001. Similarly, D N 2003 receives Packets of the First Protocol 2011 from EP 2004, re-packetizes those into Packets of the Second Protocol 2012, and transmits the Packets of the Second Protocol 2012 to UP 2002. DN 2003 further receives Packets of the Second Protocol 2012 from UP 2002, re-packetizes those into Packets of the First Protocol 2011, and transmits the Packets of the First Protocol 2011 to EP 2004. And, similarly, DN 2005 receives Packets of the First Protocol 2011 from EP 2006, re-packetizes those into Packets of the Second Protocol 2012, and transmits the Packets of the Second Protocol 2012 to UP 2002. DN 2005 further receives Packets of the Second Protocol 2012 from UP 2002, re-packetizes those into Packets of the First Protocol 2011, and transmits the Packets of the First Protocol 2011 to EP 2006.
Within the distributed switch 2000, UP 2002 and the two, or more, DN (DN 2003, DN 2005, etc.) are working in concert to avoid any deadlocks and/or starvation while, at the same time, re-packetiziation is performed.
If Bluetooth or USB or PATA or SATA or CAN or LIN, for example, are used for protocol 2011, then RC 2001 can be referred to as Host or Master, and the two, or more, EP (EP 2004, EP 2006, etc.) can be referred to as Device. If PCI Express is used as protocol 2011, then RC 2001 can be referred to as the PCI Express RC, and the two, or more, EP (EP 2004, EP 2006, etc.) each can be referred to as the PCI Express EP or can be another UP (as PCI Express allows a tree-like topology), and UP 2002 can be referred to as the UP, and the two, or more, DN (DN 2003, DN 2005, etc.) each can be referred to as the DN, and switch 2000 can be referred to as a so-called Transparent PCI Express Switch. Yet another embodiment of this invention is the system of
In such a system, UP 3002 receives Packets of the First Protocol 3011 from RC 3001, re-packetizes those into Packets of the Second Protocol 3012, and transmits the Packets of the Second Protocol 3012 to SW 3007. UP 3002 further receives Packets of the Second Protocol 3012 from SW 3007 re-packetizes those into Packets of the First Protocol 3011, and transmits the Packets of the First Protocol 3011 to RC 3001. Similarly, DN 3003 receives Packets of the First Protocol 3011 from EP 3004, re-packetizes those into Packets of the Second Protocol 3012, and transmits the Packets of the Second Protocol 3012 to SW 3007. DN 3003 further receives Packets of the Second Protocol 3012 from SW 3007, re-packetizes those into Packets of the First Protocol 3011, and transmits the Packets of the First Protocol 3011 to EP 3004. And, similarly, DN 3005 receives Packets of the First Protocol 3011 from EP 3006, re-packetizes those into Packets of the Second Protocol 3012, and transmits the Packets of the Second Protocol 3012 to SW 3007. DN 3005 further receives Packets of the Second Protocol 3012 from SW 3007, re-packetizes those into Packets of the First Protocol 3011, and transmits the Packets of the First Protocol 3011 to EP 3006. Within the distributed switch 3000, UP 3002 and the two, or more, DN (DN 3003, DN 3005, etc.) are working in concert to avoid any deadlocks and/or starvation while, at the same time, re-packetization is performed.
If Bluetooth or USB or PATA or SATA or CAN or LIN, for example, are used for protocol 3011, then RC 3001 can be referred to as Host or Master, and the two, or more, EP (EP 3004, EP 3006, etc.) each can be referred to as Device. If PCI Express is used as protocol 3011, then RC 3001 can be referred to as the PCI Express RC, and the two, or more, EP (EP 3004, EP 3006, etc.) each can be referred to as the PCI Express EP or can be another UP (as PCI Express allows a tree-like topology), and UP 3002 can be referred to as the UP, and the two, or more, DN (DN 3003, DN 3005, etc.) each can be referred to as the DN, and switch 3000 can be referred to as a so-called Transparent PCI Express Switch. If GSM or UMTS or LTE or AFDX or Ethernet or EtherCat or ProfiNET or HDBase-T or Sercos or UDP or TCP/IP or WiFi is used for Second Protocol 3012, then SW 3007 can be either a transparent networking switch for the Second Protocol 3012, being totally unaware of the fact that the First Protocol 3011 is tunneled via the Second Protocol 3012. Or, SW 3007 can be a smart switch which is aware of the fact that the First Protocol 3011 is tunneled via the Second Protocol 3012. In this case, SW 3007 has mechanisms as described below to avoid any deadlocks and/or starvation within the distributed switch 3000.
And yet another embodiment of this invention is the system of
In such a system, UP 4002 receives Packets of the First Protocol 4011 from RC 4001, re-packetizes those into Packets of the Second Protocol 4012, and transmits the Packets of the Second Protocol 4012 to SW 4007. UP 4002 further receives Packets of the Second Protocol 4012 from SW 4007 re-packetizes those into Packets of the First Protocol 4011, and transmits the Packets of the First Protocol 4011 to RC 4001. Similarly, UP 4009 receives Packets of the First Protocol 4011 from RC 4008, re-packetizes those into Packets of the Second Protocol 4012, and transmits the Packets of the Second Protocol 4012 to SW 4007. UP 4009 further receives Packets of the Second Protocol 4012 from SW 4007 re-packetizes those into Packets of the First Protocol 4011, and transmits the Packets of the First Protocol 4011 to RC 4008. Similarly, DN 4003 receives Packets of the First Protocol 4011 from EP 4004, re-packetizes those into Packets of the Second Protocol 4012, and transmits the Packets of the Second Protocol 4012 to SW 4007. DN 4003 further receives Packets of the Second Protocol 4012 from SW 4007, re-packetizes those into Packets of the First Protocol 4011, and transmits the Packets of the First Protocol 4011 to EP 4004. And, similarly, DN 4005 receives Packets of the First Protocol 4011 from EP 4006, re-packetizes those into Packets of the Second Protocol 4012, and transmits the Packets of the Second Protocol 4012 to SW 4007. DN 4005 further receives Packets of the Second Protocol 4012 from SW 4007, re-packetizes those into Packets of the First Protocol 4011, and transmits the Packets of the First Protocol 4011 to EP 4006. Within the distributed switch 4000, the two, or more, UP (UP 4002, UP 4009, etc.) and the two, or more, DN (DN 4003, DN 4005, etc.) are working in concert to avoid any deadlocks and/or starvation while, at the same time, re-packetization is performed.
If Bluetooth or USB or PATA or SATA or CAN or LIN, for example, are used for protocol 4011, then the two, or more, RC (RC 4001, RC 4008, etc.) each can be referred to as Host or Master, and the two, or more, EP (EP 4004, EP 4006, etc.) each can be referred to as Device. If PCI Express is used as protocol 4011, then the two, or more, RC (RC 4001, RC 4008, etc.) each can be referred to as the PCI Express RC, and the two, or more, EP (EP 4004, EP 4006, etc.) each can be referred to as the PCI Express EP or can be another UP (as PCI Express allows a tree-like topology), and the two, or more UP (UP 4002, UP 4009, etc.) each can be referred to as the UP, and the two, or more, DN (DN 4003, DN 4005, etc.) each can be referred to as the DN, and switch 4000 can be referred to as a so-called Non-Transparent PCI Express Switch. If GSM or UMTS or LTE or AFDX or Ethernet or EtherCat or ProfiNET or HDBase-T or Sercos or UDP or TCP/IP or WiFi is used for Second Protocol 4012, then SW 4007 can be either a transparent networking switch for the Second Protocol 4012, being totally unaware of the fact that the First Protocol 4011 is tunneled via the Second Protocol 4012. Or, SW 4007 can be a smart switch which is aware of the fact that the First Protocol 4011 is tunneled via the Second Protocol 4012. In this case, SW 4007 has mechanisms as described below to avoid any deadlocks and/or starvation within the distributed switch 4000.
And yet another embodiment of this invention is the system of
Now, within the distributed switch 5000 lies another distributed switch 5020, where UP-DN 5003 receives Packets of the First Protocol 5012 from UP-UP 5002, re-packetizes those into Packets of the third protocol 5013, and transmits the Packets of the third protocol 5013 to DN-UP 5004. UP-DN 5003 further receives Packets of the third protocol 5013 from DN-UP 5004, re-packetizes those into Packets of the Second Protocol 5012, and transmits the Packets of the Second Protocol 5012 to UP-UP 5002. Similarly, DN-UP 5004 receives Packets of the Second Protocol 5012 from DN-DN 5005, re-packetizes those into Packets of the third protocol 5013, and transmits the Packets of the third protocol 5013 to UP-DN 5003. DN-UP 5004 further receives Packets of the third protocol 5013 from UP-DN 5003, re-packetizes those into Packets of the Second Protocol 5012, and transmits the Packets of the Second Protocol 5012 to DN-DN 5005.
Within the distributed switch 5000, and within the distributed switch 5020, UP-UP 5002 and DN-DN 5005, and UP-DN 5003 and DN-UP 5004, resp., are working in concert to avoid any deadlocks and/or starvation while, at the same time, re-packetization is performed.
If Bluetooth or USB or PATA or SATA or CAN or LIN, for example, are used for protocol 5011, then RC 5001 can be referred to as Host or Master, and EP 5006 can be referred to as Device. If PCI Express is used as protocol 5011, then RC 5001 can be referred to as the PCI Express RC, and EP 5006 can be referred to as the PCI Express EP or can be another UP (as PCI Express allows a tree-like topology), and UP-UP 5002 can be referred to as the UP, and DN-DN 5005 can be referred to as the DN, and switch 5000 can be referred to as a so-called Transparent PCI Express Switch.
AFDX or Ethernet or EtherCat or ProfiNET or HDBase-T or Sercos or TSN can, for example, be used for Second Protocol 5012, while another protocol such as GSM or UMTS or LTE or 5G or AFDX or Ethernet or EtherCat or ProfiNET or HDBase-T or Sercos or TSN or UDP or TCP/IP or WiFi can, for example, be used for the third protocol 5013.
This concept of distributed switches within other distributed switches can be called nesting, such distributed switches can then be called nested distributed switches. The concept of building nested distributed switches can be applied to systems with one, or more, RC, and to one, or more, EP. Using additional different protocols, this technique of building nested distributed switches can be done repeatedly (i.e. nested repeatedly), as long as appropriate packet-based transport is used. Obviously, this can be used to transport one, or more, different protocols as a First Protocol over a Second Protocol, or even over a Third Protocol.
The key to building distributed switches, for example distributed switch 1000 or distributed switch 2000 or distributed switch 3000 or distributed switch 4000 or distributed switch 5000 or distributed switch 5020, lies in proper techniques for re-packetizing as well as for avoiding deadlocks and/or starvation. For simplicity, in the following we will describe techniques based on PCI Express as an example for the First Protocol, and TCP/IP as an example for the Second Protocol. Those skilled in the art will readily understand the spirit of the invention and will be able to relate to the various embodiments of this invention when using other packet-based transport for the First Protocol and/or for the Second Protocol and/or for the Third Protocol.
In one embodiment, this invention is a distributed switch, which can be, for example distributed switch 1000 or distributed switch 2000 or distributed switch 3000 or distributed switch 4000 or distributed switch 5000 or distributed switch 5020, is the distributed switch 6000 of
As shown, RC 6001 and EP 6004 are connected via distributed switch 6000. Or more precisely, the Egress Port 6101 of the RC 6001 sends Packets of the First Protocol via the connection 6111 to the Ingress Port 6202 of the UP 6002, and the Ingress Port 6201 of the RC 6001 receives Packets of the First Protocol via the connection 6211 from the Egress Port 6102 of UP 6002. Similarly, the Ingress Port 6204 of the EP 6004 receives Packets of the First Protocol from the Egress Port 6103 of the DN 6003, via connection 6114. The Egress Port 6104 of the EP 6004 sends Packets of the First Protocol to the Ingress Port 6203 of the DN 6003 via connection 6214. Within the distributed switch 6000, the Egress Port 6301 of the UP 6002 sends Packets of the Second Protocol via the connection 6112 to the Ingress Port 6402 of the DN 6003, and the Ingress Port 6302 of the UP 6002 receives Packets of the Second Protocol via connection 6212 from the Egress Port 6401 of the DN 6003.
PCI Express is a communication protocol based on a packet switching network with multiple protocol layers defining different packet types. For this discussion, the interesting packet type is the Transaction Layer Packet (TLP), which is the highest level packet of PCI Express and travels End-to-End between communication partners across the network. Below the Transaction Layer the Data Link Layer with associated Data Link Layer Packets (DLLP) is responsible for encapsulating and transporting the Transaction Layer Packets Point-to-Point between directly connected link partners. As PCI Express is a packet switching protocol providing reliable communication, Flow Control is necessary to slow down, or backpressure, the Transaction Layer Packet source, if the Transaction Layer Packet sink cannot process Transaction Layer Packets fast enough. Unlike, for example, in the case of TCP/IP, the PCI Express Flow Control is not operating End-to-End, but only Point-to-Point. This creates additional causes for deadlocks and/or starvation when PCI Express is used as the First Protocol which gets transported or tunneled or encapsulated over TCP/IP as the Second Protocol.
The transmit logic of every PCI Express Egress Port, e.g. 6101 of
Keep in mind, that it is mandatory in PCI Express for requesters of completions to have enough space readily available to receive completions, and, therefore, advertise infinite completion credits.
In PCI Express, for example, the different credit groups are: Non-posted request Transaction Layer Packets (requests triggering a completion Transaction Layer Packet as a response—NP), posted request Transaction Layer Packets (requests without a completion Transaction Layer Packet response), and completion Transaction Layer Packets sent in response to a non-posted request Transaction Layer Packet (CPL). As mentioned, each of these three groups can have separate credits for headers and data payload. Although there are these six different, separate flow control categories and flow control counters, PCI Express still enforces certain ordering rules on Transaction Layer Packets even across different Transaction Layer Packet groups. Now, situations can arise, where the credits of one flow control credit group are exhausted, and a Transaction Layer Packet of that same group is to be transmitted next. That Transaction Layer Packet cannot get sent out by the Egress Port logic, e.g. within 6101 in
The most basic ordering algorithm that can be implemented and complies with all but one PCI Express ordering rule is to not change the order of Transaction Layer Packets when processing them. This means the Transaction Layer Packets will be taken out of the Receive FIFO Buffer of the Ingress Port in exactly the same order they have been inserted into the Transmit FIFO Buffer of the Egress Port. While this approach works very well in most applications, it has two potential problems, which are addressed in the PCI Express Specification. First of all, system deadlocks can arise, which led to a mandatory PCIe reordering rule, and secondly, performance is not optimal in certain scenarios, which led to optional reordering rules.
A deadlock situation can arise if two communication participants act according to the producer consumer model described for PCI. Assume one device sends a non-posted read request to the other communication participant, expecting the matching completion Transaction Layer Packet to be received. At the same time, many non-posted read requests are received by the PCI Express device that just sent its own read request. Assume Receive FIFO Buffer flow control credits for non-posted requests are exhausted because of the many incoming requests. If the device is built such, that it only continues to process further received non-posted requests once it received the completion for its own read request, then the PCI Express communication will be blocked forever: No non-posted credits will become available and no completion will be sent to the respective Receive FIFO Buffer.
The Egress Port 7103 comprises a Transmit FIFO Buffer 7190 which receives Packets from up-stream, buffers the Packets, and eventually sends the Packets to the flow control unit (FCU) 7010. FCU 7010 determines whether Packets can leave the Transmit FIFO Buffer 7190 to be sent out via First Protocol 7011, or not. If Packets get sent out, then they are received by Receive FIFO Buffer 7290 of the Ingress Port 7204. In a credit-based Flow Control technique two, or more, Flow Control Counters, namely no parse header (NPH) Counter 7120, completion header (CPLH) Counter 7130, etc., determine whether FCU 7010 can send out the next Packet. The Flow Control Counters receive updated Flow Control values (or credits) from the Flow Control Status Buffers of the Ingress Port 7204, namely NPH Status Buffer 7220, CPLH Status Buffer 7230, etc. During startup, the Flow Control Status Buffers are initialized with initial values. During operation, the Flow Control Status Buffers are updated with regards to how many Packets of a certain type have been consumed by the application down-stream.
In this example, deadlocks can now occur, if Ingress Port 7204 has only room for a total of 4 so-called NP Packets, while at the same time 4 NP Packets (7291, 7292, 7293, 7294) are already stored in the Receive Buffer 7290 and, therefore, the NPH Counter 7120 has no more credits left (value 0). Now, if one more NP Packet 7191 sits in the Transmit Buffer 7190 waiting to be sent, NP Packet 7191 will not get sent out due to missing credits for NP Packets. Further, if the application down-stream of Ingress Port 7204 is not consuming any NP Packets, maybe because it waits for so-called CPL Packets, the packet-based transport over protocol 7011 will be stalled in a deadlock. The solution to resolve such deadlocks is to let CPL Packet 7192 bypass, or overtake, NP Packet 7191, effectively causing the application down-stream to continue with its process and, eventually, to consume one more NP Packet, thereby, resolving the deadlock.
The PCI Express Specification, for example, demands that completion (and also posted request) Transaction Layer Packets must be able to bypass any non-posted request Transaction Layer Packets. However, they don't have to bypass them in general and always, as this would significantly hurt bandwidth performance, but solely in case of imminent system deadlock.
Multiple options exist to implement this bypassing, overtaking or re-ordering. A simple approach, known in the art, is to always forward any present posted Transaction Layer Packets and completion Transaction Layer Packets before any non-posted requests. While this satisfies all PCI Express ordering and deadlock prevention requirements, it is not optimal with regards to performance: Non-posted requests are small (typically three or four doublewords), while completions and posted requests can be large (up to 4 kByte). As many completers need to take actions with larger latencies when receiving a non-posted request (for example read from DRAM or even backend storage) it is beneficial for response latency to get this request to the completer as soon as possible. Having it overtaken by other, larger Transaction Layer Packets for long times leads to starvation and performance degradation.
Therefore, a simple approach for bypassing, overtaking or re-ordering is known in the art, which is sometimes referred to as cascaded buffers, and which is shown in Egress Port logic 8000 of
In case of insufficient non-posted credits, any non-posted (NP) TLP present at the head of the first Transmit FIFO Buffer 8190 is forwarded via Demultiplexer 8020 into the second Transmit FIFO Buffer 8290, which is used exclusively for non-posted (NP) Transaction Layer Packets. This may now bring the next Packet to the head of the first Transmit FIFO Buffer 8190, and, if it is not a NP TLP, effectively bypassing or overtaking the former Packet via path 8111 and, therefore, may resolve a possible deadlock. As soon as non-posted credits are available again, for example controlled by signal 8050, the Packets in the second Transmit FIFO Buffer 8290 will be sent out over protocol 8012, via path 8311, then via Multiplexer 8030, then via path 8411, and via FCU 8040. Emptying the second Transmit FIFO Buffer 8290 may, preferably, happen with higher priority to achieve highest possible performance. Whether the second Transmit FIFO Buffer 8290 has data available and is used to send data is controlled by the empty flag 8295 and the control element 8115, which also takes available credits into account. In case of any other insufficient credit, the FCU 8040 will block the flow, and the Packet will not be sent out, but held in the first Transmit FIFO Buffer 8190.
The above technique will not be able to predictively avoid deadlocks and/or starvation in the case when a First Protocol such as PCI Express (with point-to-point Flow Control) gets transported or tunneled or encapsulated over TCP/IP (with end-to-end Flow Control) as a Second Protocol, because the Transmit FIFO Buffer 8290 needs to be unpractically large. Other, novel techniques are needed.
In one embodiment of this invention the distributed switch, for example, distributed switch 1000 or distributed switch 2000 or distributed switch 3000 or distributed switch 4000 or distributed switch 5000 or distributed switch 5020 or distributed switch 6000 implement the Egress Port logic 9000 shown in
In one embodiment of this invention, the Decision 9115 selects TLP from Transmit FIFO Buffer 9290, if the Sequence Number of the next Transaction Layer Packet of Transmit FIFO Buffer 9290 is lower than the Sequence Number from the next Transaction Layer Packet in Transmit FIFO Buffer 9190 and if NP credits are available. Eventually, the FCU 9210 sends the Transaction Layer Packet out via protocol 9011, which can be, for example, protocol 6111 or protocol 6211 or protocol 6114 or protocol 6214 of
As we will demonstrate later the Egress Port logic 9000 of
In one embodiment of this invention, to transport Packets of a First Protocol over Packets of a Second Protocol, the Packets of a First Protocol are re-packetized at least twice: At least once on the sender side, and at least once more on the receiver side, as it is described, for example, by Packetization Unit 19000 in
Packetization Unit 19000 comprises a Transmit Packet Engine 19002 which receives Packets of a First Protocol 19011 and packetizes them into Packets of a Second Protocol 19012 and a Receive Packet Engine 19003 which receives the Packets of a Second Protocol 19012 and re-packetizes them back into Packets of a First Protocol 19011.
Transmit Packet Engine 19002 can be implemented, for example, within the Egress Port logic located within UP 1002 of
To facilitate re-transmission, re-ordering, bypassing, or overtaking in packet-based transport, or to facilitate implementations in digital circuitry or in Programmable Logic using clock-domain crossings, both, the Transmit Packet Engine 19002 and the Receive Packet Engine 19003, can use FIFO buffers for ingress and egress communication, thus can have Receive FIFO Buffer 19022, or Receive FIFO Buffer 19023, resp., and can have Transmit FIFO Buffer 19032, or Transmit FIFO Buffer 19033, resp.
In one embodiment of this invention, re-packetization within Receive Packet Engine 19003 extracts the Packets of a First Protocol from the payload of the Packets of a Second Protocol. If Packets of a First Protocol have been segmented over multiple Packets of a Second Protocol, then the Receive Packet Engine needs to re-assemble the Packets of a First Protocol and transmit the Packets of a First Protocol as soon as possible, every single time a complete Packet of the First Protocol is re-assembled, to avoid any additional latencies.
In another embodiment of this invention, the Receive Packet Engine will send out the Packets of a First Protocol in accordance to a predetermined minimum and maximum latency, to facilitate a deterministic latency behavior.
While protocols do not support Frame Preemption (or, sometimes also called Packet Preemption), which means that the transmission of a subsequent packet may interrupt the transmission of a preceding packet, Frame Preemption can be used when encapsulation Packets of a First Protocol over Packets of a Second Protocol. TSN, for example, comprises the option for one datastream to preempt frames (or packets) of another datastream. Thus, in TSN a single level of preemption is allowed. Now, with regards to our invention, if a First Protocol allows Frame Preemption but the Second Protocol does not, then multiple packets of the second protocol can just represent the datastream. However, if the Second Protocol also allows Frame Preemption then different Packets of the First Protocol may preempt Packets of each other (which, btw. introduces fragmentation).
The method of preemption may be used to respect different priorities within a second protocol carrying first level protocols.
Obviously, by achieving a deterministic latency behaviour certain real-time behaviour is also achieved. And, obviously, certain time information, sometimes referred to as timestamping, can be extracted, forwarded and/or transported, and used for synchronization with a common clock (sometimes known as the Grandmaster Clock) and/or for tracking duration for sending and receiving packets in the network. For example, TSN in accordance to IEEE 1588v2, or IEEE 802.1AS, supports time synchronization using particular packets defined within the protocol. Or, PCIe according to the PCIe Base Specification 3.1, or newer, supports the concept Precision Time Measurement (PTM) for time synchronization and packet travel times. In the heterogeneous packet-based transport system according to one embodiment of this invention such time synchronization packets of the First Protocol can be encapsulated and transported, or tunneled, via Packets of a Second Protocol. And, the Ingress Port of a distributed switch receiving Packets of the First Protocol can also be used for identifying the time synchronization packets of the First Protocol, can further extract the time information for setting an synchronized clock internal to the distributed switch, and can compute time synchronization packets of the Second Protocol from the time synchronization packets of the First Protocol to send time synchronization packets of the Second Protocol natively over the Second Protocol. One benefit of such a heterogeneous time synchronization scheme is to increase the time precision by reducing transport latencies.
In one embodiment of this invention, the Packetization Unit 19000 can have a Database 19009 to hold a selection of software programs for a CPU inside the Transmit Packet Engine 19002, or configuration information for Programmable Logic inside the Transmit Packet Engine 19002, or other algorithms or methods for controlling how Packets of a First Protocol get packetized into Packets of a Second Protocol by the Transmit Packet Engine. The contents of the Database then controls how packetization occurs in response to system requirements, for example, as packetizing Packets of a First Protocol into Packets of a Second Protocol can have significant positive, or negative, effects on the distributed system's behavior, including bandwidth and propagation latency, or other real-time and real-time networking behavior.
In another embodiment of this invention the Packetization Unit 19000 can have a Database 19009 that is controlling the Transmit Packet Engine 19002 to optimize for maximum transport bandwidth: Since each of the Packets of a Second Protocol adds protocol overhead, generating more Packets of a Second Protocol reduces the overall bandwidth of Packets of a First Protocol that can be transported over a fixed rate network of the Second Protocol. With respect to increasing the bandwidth it is therefore beneficial to pack as many Packets of a First Protocol into as few Packets of a Second Protocol as possible. This can be done by aggregating multiple Packets of a First Protocol into a single Packet of the Second Protocol. However, the Packets of a First Protocol do not necessarily arrive in a continuous stream but with pauses. In case of a pause, while the Transmit Packet Engine generates as large Packets of a Second Protocol as possible, the Transmit Packet Engine has to wait for new Packets of a First Protocol to become available for packetization. This waiting, in the worst case, can create infinite blocking, if no new Packets of a First Protocol become available. Therefore, a timeout can be used, which triggers transmission of a Packet of the Second Protocol even if Packet of the Second Protocol could still hold one, or more Packets of a First Protocol. The waiting, of course, can have a negative effect on the propagation latency of individual Packets of a First Protocol. In the worst case, some Packets of a First Protocol are delayed up to the timeout value, which again reduces overall system performance.
In yet another embodiment of this invention the Packetization Unit 19000 can have a Database 19009 that is controlling the Transmit Packet Engine 19002 to optimize for maximum transport bandwidth while maintaining lowest possible propagation delays for selected Packets of a First Protocol: Thus, instead of a fixed aggregation timeout for all types of Packets of a First Protocol, more advanced algorithms which are aware of the details of the First Protocol allow to tradeoff between bandwidth and latency, for example as follows: Using the example of PCI Express, read request latency is crucial to system performance. An advanced algorithm for the Transmit Packet Engine can switch to a smaller aggregation timeout once it encounters that a read request is to be packetized. Or, sometimes interrupt latency is an important factor of system performance. Since interrupts happen relatively seldom compared to other types of traffic, the bandwidth impact is relatively low, when sending a Packet of the First Protocol, which holds an interrupt, out as immediately after it has been packetized into a Packet of the Second Protocol.
In yet another embodiment of this invention, the Packetization Unit 19000 can have a Database 19009 that is controlling the Transmit Packet Engine 19002 to handle certain predetermined Packets of a First Protocol differently than other Packets of a First Protocol, using techniques such as Deep Packet Inspection or Quality-of-Service or adaptive techniques or Deep-Learning techniques. For example, in modern PCI
Express interrupts are signaled following the so-called MSI or so-called MSI-X scheme, which means they look like any other PCI Express Packet for a memory write, but memory writes with a payload of exactly four Bytes that are always propagating in the upstream direction towards the RC. These properties can be used, for example, by an algorithm to detect Packets of a First Protocol that relate to PCI Express interrupts and use a low-latency approach for packetization.
Adding application software knowledge, an algorithm of Database 19009 can, for example, further inspect the target address of the PCI Express memory write. In the case of PCI Express interrupts a particular, predetermined address matches one of many of the RC MSI or MSI-X triggering addresses, which are known to the application software. All other PCI Express Packets which do not target the addresses, can be dealt with differently, for example by optimizing for bandwidth.
Some protocols require additional so called sideband signals, which are external signals or internal states that are not part of the regular Packets of a First Protocol, but need to be transported or tunneled or encapsulated over the Second Protocol. Therefore, in yet another embodiment of this invention the Transmit Packet Engine 19002 can have an optional input 19017 for the sideband signals, and the Receive Packet Engine 19003 can have an optional output 19017 for the sideband signals. For the example of PCI Express these sideband signals include, but are not limited to, the reset signal PERST #, the power management related signals CLKREQ # and WAKE #, and for PCI Express switches the change of the internal power states of the up-stream and the downstream ports. These sideband signals can be treated as Packets, or as non-packet-based, direct signals, and the Transmit Packet Engine 19002 can take the value of the sideband signals and can transport them via the Second Protocol 19012 to the Receive Packet Engine 19003 which then unpacks the sideband signals values and outputs them accordingly.
When building a heterogeneous packet-based transport system, for example the system shown in
In one other embodiment, our invention uses the technique described in
In accordance to one embodiment of this invention, and utilizing the techniques described in
In utilizing the techniques described before, from FIFO buffer 11193 and from FIFO buffer 11293 etc. the decision logic (DEC) 11115, which can, for example, be Decision 9115 from
In accordance to one embodiment of this invention, each connection, from the Transmit Packet Engines to the Receive Packet Engines, can be a separate and independent packet-based transport based on the Second Protocol, over one, or more, physical or virtual, connections. Such an independent packet-based transport can be referred to as a Session in protocols like, for example, TCP/IP or HDBaseT. Each different Session can use an independent Flow Control and can utilize one or more packet-based transports. For the example of PCI Express, to implement deadlock avoidance in a heterogeneous packet-based transport system in accordance to one embodiment of this invention, one possible implementation would, for example, choose two pairs of buffers with respective two packet-based transport of the Second Protocol, the packet-based transport 11412 transporting only non-NP Transaction Layer Packets and the packet-based transport 11512 transporting only NP Transaction Layer Packets. Since NP and non-NP Transaction Layer Packets are transported in separate and independent packet-based transports of the Second Protocol, there is no requirement for re-ordering within each of the packet-based transports. Because the Egress Port 11301 attaches a unique and monotonically incrementing by one Sequence Number to each Transaction Layer Packet, generated by the Sequence Number Generator 11095, the Ingress Port 11402 can restore the Transaction Layer Packet order and adhere to the PCI Express specification requirements. The Ingress Port 11402 can also decide to forward Transaction Layer Packets of the non-NP buffer 11192 before the NP Transaction Layer Packets of buffer 11292 to avoid deadlock.
The foregoing discussion discloses and describes merely exemplary methods and embodiments. As will be understood by those familiar with the art, the disclosed subject matter may be embodied in other specific forms without departing from the spirit or characteristics thereof. Accordingly, the present disclosure is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims. Various applications can benefit from such a heterogeneous packet-based transport. In one embodiment, this invention can not only be used to connect one or more EP with one or more RC but it can also be used to connect multiple RC with each other by transporting the packets of a First Protocol, which can be PCIe, for example, over a Second Protocol, which can be TCP/IP, for example. This is shown in
For example, for applications which utilize PCIe as the First Protocol and which require a high level of reliability and/or High Availability and/or Functional Safety the PTNB 13011 and PNTB 13014 can be a PCIe Primary Non-Transparent Bridge and the SNTB 13013 and the SNTB 13012 can be a PCIe Secondary Non-Transparent Bridge, both of which also can perform safety checks between the PCIe domain of the RC directly connected to it and the PCIe domain remotely connected. Safety checks can be, for example, memory addresses to be within a predetermined address range, validity of in-band or side-band signals, etc.
Obviously, more than two RC can be connected via such a distributed switch. This is, for example, described in
In another embodiment, this invention can, obviously, transport Packets of multiple different First Protocols over a Second Protocol, concurrently. This is described, for example, in
Optionally, within the distributed multi-protocol switch 15000 the Packets of the Second Protocol can be transported via the Multi-Connect 15020 which, for example, can be an On chip Network such as AXI or a hardware/software Crossbar or a Layer-2 Ethernet network switch. Furthermore, both, UP 15002 and DN 15003 can implement different scheduling and/or traffic shaping and/or frame preemption and/or aggregation in order to give the Packets of the First Protocol associated with RC115001 and EP115004 higher or lower priority over the Packets of the other First Protocol associated with RC215051 and EP215054.
For example, the applications communicating via Packets of the First Protocol (such as PCIe, or CAN, or LIN, for example) associated with RC115001 and EP115004 may require tunneling immediately and without packet loss, while other applications communicating via Packets of the other First Protocol (such as MIPI CSI-2, SDI, for example) associated with RC215051 and EP215054 may be more tolerant to deadlines and/or even to packet loss. The transport of Packets of the Second Protocol then can be lossless, or lossy, for example using UDP or TCP. Obviously the concepts described above can be combined, for example, one can combine the concept of
In yet another embodiment, this invention is a distributed, disaggregated storage system using Flash Memory or Storage Class Memory or NVMe Solid-State Drives (SSD). In such an embodiment, according to
Yet another embodiment of this invention is a distributed real-time networking system which uses a real-time transport for the underlying Third Protocol to transport Packets of a Second Protocol which by themselves transport Packets of multiple different First Protocols. In automotive or industrial networks this may, for example, transport PCIe, MIPI-CSI-2, CAN, LIN, BroadR-Reach as multiple First Protocols over TCP/IP as a Second Protocol over TSN as a Third Protocol to combine the benefits of lossless transport of TCP/IP with real-time behaviour of TSN to tunnel so-called short-range protocols to achieve longer ranges. Or, another benefit is to reduce the amount of different cables, each transporting one single First Protocol, by aggregating all those individual protocols and tunneling them over one single cable, which can be less weight or less cost. Another advantage of such real-time multi-protocol heterogeneous packet-based transport where TSN is used for the Second or for the Third Protocol is the possibility to also utilize certain functionality described in the IEEE Standards for TSN (such as Traffic Shaping, Scheduling, Preemption, Precision Timing) to transport protocols which do not have such features, like PCIe, for example. Or a precision time protocol such as IEEE 1588 or IEEE 802.1AS can be used to add timing behavior to protocols which originally do not have such features, like PCIe, for example. Or features like packet duplication and re-routing enhancing reliability, as it is described in IEEE 802.1CB, for example, can be used and provided for protocols which originally do not have such features, like PCIe, for example. However, even when using TSN or DetNet or DCTCP the key challenge still remains to avoid deadlocks at connection and at system-level by using the concepts described in
Obviously, the distributed switch 16000 can also form a dual ring topology by adding connections, which is connection 16212, connection 16213, connection 16234, connection 16214, respectively, between each switch, which is SW 16041, or SW 16042, or SW 16043, or SW 16044, as it is shown in
In yet another embodiment, this invention can be used to implement time synchronization between two, or more, Time Domains within a heterogenous packet-based transport system, where time information, which can be, for example, clock, phase and/or time-of-day (TOD), is synchronized via so-called Time Packets. The Time Packets can, for example, be PCIe Precision Time Measurement (PTM) packets or IEEE 1588 (PTPv2) based packets or IEEE 802.1AS packets. Obviously, this includes PCIe PTM packets encapsulated into Packets of a First Protocol which can be, for example, TSN. A Time Domain is a subsystem of components connected via the same protocol where one, or more, the components use one, or more, local clocks each as a local representation of time and where the one, or more, local clocks can get synchronized via Time Packets of the protocol.
Unfortunately, precise time synchronization within a heterogeneous packet-based transport system is not trivial if one and the same Time Domain using a First Protocol is connected via a Second Protocol (or, similarly, via a Third or Fourth Protocol). This is shown in
Distributed switch 18000 internally transports Packets of a First Protocol over Packets of a Second Protocol and, thereby, is in a different Second Time Domain. The challenge now arises from the fact that for proper time synchronization of all components in the First Time Domain (here, RC 18001 and RC/EP 18004) the transport delays (or transport latencies, or transport duration) of the Packets of the Second Protocol within the distributed switch 18000 are unknown and not trivial to obtain from the perspective of the First Time Domain. Therefore, the straight-forward solution of simply encapsulating the Time Packets of the First Protocol into Packets of the Second Protocol for time synchronization between RC 18001 and RC/EP 18004 may not provide sufficient time precision. Hence, a more precise time synchronization for a real-time multi-protocol heterogeneous packet-based transport system is needed.
Yet another embodiment of this invention is the real-time multi-protocol heterogeneous packet-based transport system according to
Here, the Egress Port 18101 of RC 18001 can send Time Packets as Packets of a First Protocol via the connection 18111 to the Ingress Port 18202 of UP 18011, and the Ingress Port 18201 of RC 18001 can receive Time Packets as Packets of the First Protocol via connection 18211 from the Egress Port 18102 of UP 18011. Similarly, the Ingress Port 18204 of RC/EP 18004 can receive Time Packets as Packets of the First Protocol via connection 18114 from the Egress Port 18103 of DN 18018 and the Egress Port 18104 can send Time Packets as Packets of the First Protocol via connection 18214 to the Ingress Port 18203 of DN 18018. Within the distributed switch 18000, the Egress Port 18301 of UP 18011 can further send Time Packets as Packets of the Second Protocol via the connection 18112 and connection 18118 (via Multi-Connect 18020) to the Ingress Port 18402 of DN 18018. Within the distributed switch 18000 the Ingress Port 18302 of UP 18011 can receive Time Packets as Packets of the Second Protocol via connection 18212 coming from connection 18218 (via Multi-Connect 18020) of the Egress Port 18401 of DN 18018.
The—optional—Multi-Connect 18020 within the distributed switch 18000 can transport Packets of the Second Protocol and, for example, can be an On chip Network such as AXI or a hardware crossbar or a software crossbar or a network switch with timing capabilities, for example TSN capabilities.
For precision time synchronization between multiple Time Domains, each component, RC 18001, UP 18011, Multi-Connect 18020, DN 18018, RC/EP 18004, can have local representations of the global time using one, or more, local clocks. For example, RC 18001 can include local clock 18501, or UP 18011 can include local clock 18512 and/or local clock 18532, or Multi-Connect 18020 can include local clock 18520, or DN 18018 can include local clock 18541 and/or local clock 18523, or RC/EP 18004 can include local clock 18504. In addition to these system-internal clocks optional reference clocks as described above can be a Grandmaster Clock and can be synchronized with via a time synchronization protocol, for example via PCIe PTM, via PTPv2, via pulse per second (PPS) plus a reference clock plus TOD using, for example, interfaces such as UART, SPI, I2C, RIG, etc., or via various versions of the RIG protocol group, or GPS time signals, or via other time synchronization protocols. Reference clocks can, for example, be reference clock 18502 connected to RC 18001 in the First Time Domain, reference clock 18505 connected to RC/EP 18004, also in the First Time Domain, or reference clock 18030 with local time 18530 connected via 18602 to Multi-Connect 18020 located in a second Time Domain.
For precise time synchronization a distributed switch of a heterogeneous packet-based transport system, for example distributed switch 18000, can detect the transport delays from an upstream switch port, for example UP 18011 to a downstream switch port, for example, DN 18018, or vice versa, using various concepts known in the art: For example, UP 18011 can read a start time from local clock 18532 and, at the same time, can send a Time Packet to DN 18018. Upon receipt, DN 18018 reads its own local clock 18541 and, at the same time, can respond by sending a Time Packet back to UP 18011. Upon receipt, UP 18011 can read a stop time from local clock 18532 and, at the same time, can send another Time Packet back to DN 18018. Finally, upon receipt of that Time Packet DN 18018 can read a stop time from local clock 18541. The outcome is that, UP 18011 and DN 18018 each can now compute a round-trip time by each subtracting their start time from their stop time. The transport delay can then be precisely estimated as one half of the round-trip time. Obviously, this symmetric approach can be made even more precise by using multiple rounds, or by other means known in the art. With the transport delays known within the distributed switch a precise time synchronization can then be performed between components of the First Time Domain.
Or, time can be synchronized within a single network or across multiple networks with a synchronization mechanism in place at the networks' boundaries, for example, as it is shown by the reference clock 18002 where local time information of its local clock 18502 is facilitated by RC 18001 to adjust its local clock 18501 as it is communicated via a timing protocol 18601. The time information of clock 18501 may then be used to further synchronize the time information via the First Protocol, which can, for example, be PCIe, to UP 18011 and its local clock 18512. Because RC 18001 can also receive time information via the First Protocol from UP 18011 an algorithm based on clock stability estimation and each clocks distance to an atomic clock in protocol hops. Stratum 1, for example, an atomic clock based time source, or GNSS synchronized clock, or radio clock, and/or Stratum 2, a time server connected to one or more atomic clocks, and/or Stratum 3, connected to one or more Stratum 2 servers and so on. One example of such an algorithm is the best master clock (BMC) algorithm of PTPv2. To provide highest precision within time distribution networks, packet transport delays are communicated along with the timestamp information contained within the time synchronization protocols packets. This requires the components within a heterogeneous packet-based transport system to provide such time information on a packet by packet (or for less precision, on average or typical) granularity, which also requires the components to actively participate in the time distribution network and each to control a local clock. A distributed switch, for example distributed switch 18000, can maintain multiple time domains and can keep those synchronized as it interfaces with multiple protocols, such as a First Protocol, a Second Protocol, etc, at the same time. A distributed switch can also distribute separate clock information and can span multiple physical devices, which, respectively, can maintain their own clock information. According to one embodiment of this invention, distributed switch can, for example, keep its internal clocks synchronized via the Second Protocol, which can, for example, be TSN/PTPv2. A distributed switch can further use this time information to provide transition durations to Time Packets of the First Protocol, which can, for example, be PCIe PTM, the Time Packets of the First Protocol passing through the distributed switch. For example, RC/EP 18004 can send PCIe PTM Time Packets to RC 18001 via distributed switch 18000. Furthermore, distributed switch 18000 can act as a clock master to synchronize with components from two, or more, Time Domains, with the option of using external reference clock information instead of a local clock.
In yet one other embodiment this invention is a heterogeneous automotive network of so-called zonal gateways where multiple computers or CPUs or GPUs or FPGAs or SoCs are connected to a zonal gateway via a First Protocol, which can, for example, be PCIe or MIPI CSI-2 or CAN or LIN or SATA or NVMe or SDI or GMSL or FPD-III or IIC or Bluetooth, and where the zonal gateways are connected with each other via a Second Protocol, which can, for example, be TCP/IP or Ethernet or TSN, and where Packets of the First Protocol are transported via Packets of the Second Protocol and where Time Packets of the First Protocol and/or Time Packets of the Second Protocol can be used for precision time synchronization to deliver real-time behavior.
Obviously, for all the above embodiments relating to real-time applications or precision time synchronization, our solution on how to avoid deadlocks also applies to Time Packets and encapsulation of Time Packets.
Number | Name | Date | Kind |
---|---|---|---|
5961623 | James et al. | Oct 1999 | A |
6587441 | Urban et al. | Jul 2003 | B1 |
7111163 | Haney | Sep 2006 | B1 |
7443869 | Solomon et al. | Oct 2008 | B2 |
7480303 | Ngai | Jan 2009 | B1 |
7581044 | Davis | Aug 2009 | B1 |
7991993 | Josset et al. | Aug 2011 | B2 |
8284790 | Kommidi | Oct 2012 | B1 |
8533381 | Uehara et al. | Sep 2013 | B2 |
8949499 | Freking et al. | Feb 2015 | B2 |
9064058 | Daniel | Jun 2015 | B2 |
9191109 | Zbinden et al. | Nov 2015 | B2 |
9264384 | Sundaresan et al. | Feb 2016 | B1 |
9294506 | Swartz | Mar 2016 | B2 |
9348396 | Higuchi et al. | May 2016 | B2 |
9729408 | Breslin et al. | Aug 2017 | B2 |
10686711 | Voleti et al. | Jun 2020 | B2 |
20020015422 | Inada et al. | Feb 2002 | A1 |
20020146022 | Van Doren et al. | Oct 2002 | A1 |
20040019729 | Kelley et al. | Jan 2004 | A1 |
20040131074 | Kurth | Jul 2004 | A1 |
20040215955 | Tamai et al. | Oct 2004 | A1 |
20060062224 | Levy et al. | Mar 2006 | A1 |
20060072615 | Narad et al. | Apr 2006 | A1 |
20060126612 | Sandy et al. | Jun 2006 | A1 |
20060136715 | Han et al. | Jun 2006 | A1 |
20060206655 | Chappell et al. | Sep 2006 | A1 |
20070121495 | Breti et al. | May 2007 | A1 |
20070147378 | Elgebaly et al. | Jun 2007 | A1 |
20070198763 | Suzuki et al. | Aug 2007 | A1 |
20080291994 | Lida et al. | Nov 2008 | A1 |
20110064089 | Hidaka et al. | Mar 2011 | A1 |
20110090880 | Abraham et al. | Apr 2011 | A1 |
20110185163 | Hidaka | Jul 2011 | A1 |
20110317587 | Lida et al. | Dec 2011 | A1 |
20120057546 | Wang et al. | Mar 2012 | A1 |
20120072719 | Hui et al. | Mar 2012 | A1 |
20120078994 | Jackowski et al. | Mar 2012 | A1 |
20120110233 | Higuchi et al. | May 2012 | A1 |
20120296952 | Pope et al. | Nov 2012 | A1 |
20130086295 | Hidaka et al. | Apr 2013 | A1 |
20130188511 | Avni et al. | Jul 2013 | A1 |
20130265883 | Henry et al. | Oct 2013 | A1 |
20140115219 | Ajanovic | Apr 2014 | A1 |
20140237156 | Regula et al. | Aug 2014 | A1 |
20140245053 | Yoshikawa et al. | Aug 2014 | A1 |
20140304450 | Maeda et al. | Oct 2014 | A1 |
20160179738 | Guddeti | Jun 2016 | A1 |
20170010931 | Takahashi et al. | Apr 2017 | A1 |
20170163744 | Lida et al. | Jun 2017 | A1 |
20190012290 | Watanabe | Jan 2019 | A1 |
20190036894 | Wang et al. | Jan 2019 | A1 |
20200106748 | Newell et al. | Apr 2020 | A1 |
Number | Date | Country | |
---|---|---|---|
20220311715 A1 | Sep 2022 | US |
Number | Date | Country | |
---|---|---|---|
62547399 | Aug 2017 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 17018962 | Sep 2020 | US |
Child | 17744176 | US | |
Parent | 16055864 | Aug 2018 | US |
Child | 16892177 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16892177 | Jun 2020 | US |
Child | 17018962 | US |