Save the bones for the broth. After the roast is carved, gather every bone with the meat still clinging to it, crack the ribs at the joints, and bag them for the freezer or the stockpot.
Parboil the cooked bones. Cover with cold water in the stockpot, bring to a hard boil for 5 minutes, then drain and rinse the bones and the pot clean of scum and loose fat.
Char the onion and ginger. Over an open flame or under the broiler, blacken the onion halves cut-side down and the ginger halves until the surfaces are deeply charred and the kitchen smells sweet and smoky.
Toast the spices. In a dry skillet, toast the star anise, cinnamon, cloves, coriander seed, and fennel seed until fragrant, about 1–2 minutes, then tip into a spice bag or tea ball.
Start clear. Return the bones to the clean pot with the charred onion and ginger and 3½ quarts (3.3 L) cold water; bring slowly to a bare simmer and skim as the foam rises.
Add the spices late enough to stay bright. Add the spice bag after the first 30 minutes of simmering, so the aromatics stay clear rather than turning muddy.
Strain without pressing. After 2½–3 hours, lift out the bones and aromatics, then strain the broth through a fine sieve lined with cheesecloth; do not press the solids, or the broth clouds.
Defat. Chill the broth until the fat sets on top, then lift it off — or skim the warm broth carefully if serving the same day.
Balance in the phở order. Return the broth to a simmer and season in this order: fish sauce first, then the rock sugar, then the salt — tasting after each addition, until the broth is savory, rounded, and bright.
Hold for its service. Keep the broth hot for a full phở bowl with noodles and the saved prime rib meat, or ladle it plain into mugs as a sipping broth.