# linkSpeedBps

Canonical: https://docs.shumoku.dev/en/library/api/linkSpeedBps
Language: en

@shumoku/core · 0.4.0 · function

# linkSpeedBps

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L73)

Resolve a link's nominal speed (bits/sec). Reads per-endpoint module standards (the canonical source) and falls back to runtime \`rateBps\` when neither end has a module set. For symmetric links both endpoints return the same speed; for asymmetric links (BiDi etc.) we pick the lower of the two (conservative for utilization math).

```
linkSpeedBps(link: Link | null | undefined): number | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `link` | `Link | null | undefined` | No additional description. | `—` |

## Returns

```
number | undefined
```

[`libs/@shumoku/core/src/layout/link-utils.ts:73`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L73)
