It took Milos Raonic a little while to find his rhythm after an unexpected layoff at the start of the BNP Paribas Open in Indian Wells, Calif.

Once he did, the was able to outserve Marin Cilic in a matchup of two of the hardest hitters on the ATP Tour.

The Canadian advanced to the fourth round at Indian Wells on Tuesday after coming back from a set down and upsetting No. 12 Cilic 3-6, 6-4, 6-3.

Raonic, seeded 17th at the Tennis Garden, was playing his first singles match of the tournament after a first-round bye and a walkover in the second round after French opponent Michael Llodra withdrew injured.

Raonic, from Thornhill, Ont., said that finally getting singles action five days into the tournament was not an ideal scenario.

"I didn't start with any rhythm, I didn't have a match really to pick up off," he said. "Marin plays really well, very consistent. He changes up quickly, so he moves well for a tall guy. I was trying to force a little bit too much [in the first set].

"I was rushing in the beginning. I wasn't getting good position; wasn't moving well. It was just everything connected to poor shot selection and poor execution."

Raonic will meet eighth seed Jo-Wilfried Tsonga in the next round. Tsonga and Raonic faced off in the second round of the London Olympics, with the Frenchman finally prevailing 25-23 in the third set.

Raonic sees little similarities in the Olympic battle on Wimbledon's grass and the upcoming match.

"I don't know about him, but I know I'm definitely a lot more comfortable on hard courts," Raonic said. "He's playing well. He's been playing well consistently since the start of this year.

"I've just got to get out there and focus. We're both going to be trying to get ahead in the points early. He's very athletic. I just have to go out there and try to get ahead and play as much as I can on my terms.

"I'm going to have to serve well, take care of my serve like I was able to today, especially after the first game of the second set, and try sort of to get ahead on his second-serve points."

Tuesday's contest quickly turned into a predictable battle of huge serves, with Raonic earning victory with 16 aces — his last one on match point — while his opponent managed eight.

Raonic lost his only service game when Cilic took a 4-2 lead on the way to winning the opening set. Raonic broke Cilic once per set in the last two as he turned the tables and headed for victory.

Raonic's victory gave him his best finish at the event after stalling in the third round at the last two editions.

He now stands 1-1 with Cilic after losing to the six-foot-six Croatian two years ago in Valencia.

Prior to the match, Raonic was able to get some doubles action under his belt. Raonic and Spain's Feliciano Lopez lost in the doubles second round after beating Toronto's Daniel Nestor and Mahesh Bhupathi in their opener.

Djokovic, Andy Murray also move on

Top-ranked Novak Djokovic reached the fourth round at the BNP Paribas Open on Tuesday when he beat Grigor Dimitrov 7-6 (4), 6-1 for his 20th consecutive victory.

Defending women's champion Victoria Azarenka extended her own streak despite a nagging right ankle problem, routing Urszula Radwanska 6-3, 6-1 for her 17th straight win. Urszula's sister, third-seeded Agnieszka Radwanska, was beaten by No. 13 Maria Kirilenko, 6-1, 4-6, 7-5.

No. 3 Andy Murray beat Yen-Hsun Lu of Taiwan 6-3, 6-2 in their first meeting in five years, and No. 8 Caroline Wozniacki played the late match against No. 10 Nadia Petrova.

Djokovic trailed 5-3 in the first set when the 21-year-old Bulgarian committed six double faults, including four in one game, to help the Serb force the tiebreaker. Djokovic won it on a backhand error by the youngest player remaining in the draw.

"It was not really a beautiful match to watch," Djokovic said. "There were a lot of unforced errors, and we both look quite sluggish on the court."

Dimitrov was broken twice in the second set while falling to 1-17 against top-10 opponents.

"He did all the work making winners and making unforced errors," Djokovic said. "I just needed to hang in there and try to be patient."

Djokovic moves on to play Sam Querrey, a 7-6 (5), 6-7 (7), 7-5 winner over Marinko Matosevic.

Djokovic hasn't lost since Oct. 31, when Querrey beat him at the indoors Paris Masters.

"He does everything really well: unbelievable forehand, unbelievable backhand, moves around the court great, returns great. It's tough to pick on something," Querrey said. "I might have to go outside of my comfort zone a little bit and do things I don't like to do, and hopefully it will pay off for me."

Querrey is poised to take over as the top-ranked American in the men's game — albeit not in the top 10 — from Mardy Fish, who lost 7-6 (4), 7-6 (0) to No. 8 seed Jo-Wilfried Tsonga.

"The most important thing is your world ranking," Querrey said. "If you're top 10 I think you're seen a little differently."

Azarenka was clearly bothered by her right ankle, wincing after shots. She also has a stuffy nose.

"I could overcome those things and manage to take these chances in the important moments and really go for my shots, to make that happen, not to wait for her mistake," she said. "Because at some point I was waiting for her mistake, and I can't do that. She wasn't missing because she's a very, very consistent player, so I decided to just take everything in my own hands and see where it takes me."

Sharapova joins Azarenka in quarter-finals

No. 2 Maria Sharapova joined Azarenka in the quarter-finals with a 7-5, 6-0 win over Lara Arruabarrena-Vecino of Spain, someone she had never played before.

Sharapova trailed 2-0 and 3-2 in the first set before rallying on a cloudless day in the desert when temperature reached the lower 90s.

"Just didn't get a good rhythm on her game from the beginning," she said. "Maybe I was going for the lines a little bit more than I had to, especially in the first few games when you don't know too much about your opponent or haven't played her.

"Towards the end of the first and beginning of the second set I really stepped it up, was being more aggressive, and really gave myself a better margin than I did throughout the first set."

Tsonga has beaten Fish all four times they have played. The Frenchman next plays 17th-seeded Milos Raonic, who outlasted Marin Cilic 3-6, 6-4, 6-3.

"I'm going to have to serve well and try to get ahead on his second-serve points," Raonic said about Tsonga. "When he's making his first serves he serves really well and it's tough."

Fish lost in the third round for the second straight year. He is playing his first tournament since last September after being sidelined with a heart condition, although he hasn't disclosed the exact nature of the problems.

"I certainly missed playing tennis for a living. I certainly missed making money, got bills to pay," he said. "It's a tough thing because the last time that I was on the tennis court was some of the worst times I have ever had. That part is very hard to deal with. It's not easy to come back from that. This week is a good step in the right direction."

Fish is still in contention in doubles with partner James Blake, and he plans to play in Key Biscayne, Fla., next week.

In other men's matches, No. 7 Juan Martin del Potro beat Bjorn Phau 6-2 7-5; 19th-seeded Tommy Haas got by No. 11 Nicolas Almagro 6-3, 6-7 (2), 7-6 (2), and Carlos Berlocq defeated No. 16 Kei Nishikori 6-2, 6-2.

On the women's side, fifth-seeded Petra Kvitova beat No. 19 seed Klara Zakopalova 6-2, 6-3; No. 7 Sam Stosur got by No. 24 Mona Barthel 4-6, 6-2, 6-3; and sixth-seeded Sara Errani defeated No. 9 Marion Bartoli 6-3, 6-2. Errani next faces Sharapova.