Canadian National Railway Co. said its second-quarter net income rose 21% to C$534 million, or C$1.13 per share, from C$387 million or 82 cents per share, a year earlier.