Senior debt is basically either directly secured by specific assets/collateral or is the first to get paid out in case of a default. Junior debt is typically unsecured(no specific collateral) and goes after other, senior unsecured debt has been paid off.
When you hear about a company's credit rating, its usually the rating of the senior unsecured(so the "safest" bonds that aren't secured by specific assets).
Suppose we divide the repayments into 5 bonds. If 20% of the money comes in, it goes to the first bond. Then the next 20% to the next, and so on. The later bonds are called subordinate - they only pay if the other ones already were paid off. Because they are riskier, the later ones aren't worth as much.
The actual rules are more complex than this toy example. But that's the basic idea. And this is how a risky loan is sold to different investors at different prices with different tolerances for risk/return.
“Extra levels of credit protection” means the tranches being sold to investors have features (e.g., senior ranking, collateral, covenants) that reduce default risk. Banks typically retain the subordinated (riskier) portion, which absorbs losses first, allowing the sold tranche to appear safer.
(o1)