# US 2015/0103656 A1 · End-to-End Credit Recovery

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0103656 A1
- Document ID: US20150103656A1
- Status: Published application
- Kind: A1
- Application number: 14/511,155
- Filed: 2014-10-09
- Published: 2015-04-16
- Earliest claimed: 2013-10-10
- Assignees: Brocade Communications Systems, Inc.
- Applicants: Brocade Communications Systems, Inc.
- Inventors: Narasimha Golla; John Terry; Kung-Ling Ko; Abhay Gupta
- Web page: https://patentgrep.com/patent/US20150103656A1

## CPC

- H04L 47/39: {Credit based}
- H04L 47/18: {End to end}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Packets or data units and their related credit returns each include an assigned phase value. When a credit test is desired, the phase value of outgoing data units is changed, for example from 0 to 1, and a new counter is set to a value of the outstanding credits having the original phase value. With each original phase credit received, the counter value is decremented. When a credit having the new phase value is received, the counter value indicates the amount of any credit error and appropriate corrections may be made.

## Claims

### Claim 1

A method comprising:
transmitting data units having a first phase value, wherein each transmitted data unit occupies a credit;
receiving return credits having a phase value equal to the phase value of a corresponding received data unit;
transmitting data units having a second phase value;
generating a counter value equal to a number of outstanding credits when beginning to transmit data units having the second phase value; and
decrementing the counter value for each return credit received having the first phase value.

### Claim 2 (depends on 1)

The method of claim 1, wherein the decrementing stops when a return credit having a second phase value is received.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
determining if the counter value is non-zero when decrementing stops; and
generating an interrupt upon determining that the counter value is non-zero when decrementing stops.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
addressing the non-zero credit condition by a processor in response to the interrupt.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
setting a timer corresponding to the expected time it will take for both a first data unit to be transmitted and a return credit corresponding to the first data unit to be received.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
allocating a number of starting credits; and
wherein the number of outstanding credits is calculated by subtracting the number of credits that have not been returned from the number of starting credits.

### Claim 7

A network device comprising:
a processor; and
a network port coupled to said processor, said network port:
transmitting data units having a first phase value, wherein each transmitted data unit occupies a credit;
receiving return credits having a phase value equal to the phase value of a corresponding received data unit;
transmitting data units having a second phase value;
generating a counter value equal to a number of outstanding credits when beginning to transmit data units having the second phase value; and
decrementing the counter value for each return credit received having the first phase value.

### Claim 8 (depends on 7)

The network device of claim 7, wherein the decrementing stops when a return credit having a second phase value is received.

### Claim 9 (depends on 8)

The network device of claim 8, the network port further:
determining if the counter value is non-zero when decrementing stops; and
generating an interrupt upon determining that the counter value is non-zero when decrementing stops.

### Claim 10 (depends on 9)

The network device of claim 9, further comprising:
a non-transitory memory coupled to the processor and storing instructions for addressing the non-zero credit condition by a processor in response to the interrupt,
wherein said instructions are executed by the processor in response to the interrupt.

### Claim 11 (depends on 7)

The network device of claim 7, the network port further:
setting a timer corresponding to the expected time it will take for both a first data unit to be transmitted and a return credit corresponding to the first data unit to be received.

### Claim 12 (depends on 7)

The network device of claim 7, wherein the non-transitory memory further includes instructions for the processor to allocate a number of starting credits; and
wherein the number of outstanding credits is calculated by subtracting the number of credits that have not been returned from the number of starting credits.
