UPDATE 2-Ahead of 5G rebound, Nokia royalty deals prop up results

* Q4 operating profits up 7 pct yr/yr

* Beats expectations with one-off patent payment from Huawei

* Sees more network market decline in 2018, insulated by N.America

* CEO expects full-scale 5G rollouts boosting business from 2019

* Shares rise 6.8 pct (Adds comments, detail, background)

HELSINKI, Feb 1 (Reuters) - Telecom network gear maker Nokia posted better-than-expected quarterly profits on Thursday and forecast a recovery in profits by 2020, encouraging investors spooked last year by a weakening equipment market and acquisition integration missteps.

Nokia shares rose 6.8 percent on the results which showed fourth-quarter group operating profit increasing 7 percent to 1.0 billion euros ($1.2 billion), well ahead of a Reuters poll forecast of 888 million euros.

The profits were boosted by a one-off patent payment of 210 million euros from China's Huawei. Operating profit from the networks business fell 25 percent year-on-year.

The network industry, dominated by Huawei, Nokia and Sweden's Ericsson, is weathering the toughest part of a decade-long cycle as demand for 4G gear falls, while spending on new, mass-market 5G networks is unlikely before 2019 or 2020.

Chief Executive Rajeev Suri said that while Nokia's network sales would remain weak during 2018, a potential rebound of spending by operators in North America could lessen the decline.

He added that the company's internal problems convincing U.S. carriers to swap out existing Alcatel equipment for comparable Nokia gear - the main reason for its shares losing a quarter of their value since October - had also eased.

Nokia generated 30 percent of fourth-quarter network sales in North America, up slightly over the third quarter, while Asia-Pacific and Greater China declined.

"For 2019 and 2020, we expect market conditions to improve markedly, driven by full-scale rollouts of 5G networks," Suri told a conference call.

Suri said Nokia's stepped-up capital spending to win future 5G upgrade deals will weigh on the network unit's profitability this year. He forecast an operating margin of 6-9 percent for 2018 before it starts to rebound to around 9-12 percent in 2020.

"It's a bit confusing that they give such precise guidance for long term... because there's no visibility on the market for long-term... Estimates for just one year are difficult, doing it for three years is quite bold," said Mikael Rautanen, analyst at Inderes Equity Research, with a "buy" rating on the stock.

"They had a better quarter in networks than Ericsson, but it's the same story for the outlook."

Nokia has coped with the downturn better than Ericsson - which reported its fifth straight quarter of losses on Wednesday - thanks to its 2016 acquisition of Alcatel-Lucent that broadened Nokia's portfolio.

Rautanen noted that Nokia's profits were boosted by a one-off patent payment of 210 million euros, and the company said its technology licensing business would prop up its profits with sales growth around 10 percent through 2020.

While about 90 percent of the company's sales come from network equipment, licensing payments on Nokia patents are highly profitable, and the company has recently struck licensing deals with all the main handset makers.

The mobile phone patent portfolio stems from the time when Nokia was the world's largest cellphone maker. It withdrew from handset production in 2014.

Nokia bought rival Alcatel-Lucent in 2016 in a 15.6 billion euro all-share-deal and has been working to convince customers since then to switch to Nokia-brand mobile gear.

($1 = 0.8059 euros) (Reporting by Jussi Rosendahl and Tuomas Forsell; Editing by Eric Auchard and Adrian Croft)