# US 2021/0345221 A1 · Message sending method and related device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0345221 A1
- Document ID: US20210345221A1
- Status: Published application
- Kind: A1
- Application number: 17/373,945
- Filed: 2021-07-13
- Published: 2021-11-04
- Earliest claimed: 2019-01-17
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Yuan Huang
- Web page: https://patentgrep.com/patent/US20210345221A1

## CPC

- H04L 69/18: Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
- H04W 40/24: Connectivity information management, e.g. connectivity discovery or connectivity update
- H04L 61/4511: using domain name system [DNS]
- H04W 4/12: Messaging; Mailboxes; Announcements
- H04W 8/26: Network addressing or numbering for mobility support
- H04L 2101/677: Multiple interfaces, e.g. multihomed nodes
- H04W 88/06: adapted for operation in multiple networks {or having at least two operational modes}, e.g. multi-mode terminals
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

The embodiment of the present application discloses a message sending method and a related device. The method comprises the following steps: parsing a domain name system (DNS) message to obtain the network domain name of the to-be-visited network in the DNS message; determining a target communication link in a plurality of connected communication links according to the network domain name; and sending the DNS message to a target DNS server through the target communication link. The embodiment of the present application is beneficial to improving the success rate of DNS message parsing when an electronic device communicates to a plurality of communication links.

## Claims

### Claim 1

A message sending method, applied to an electronic device, the method comprising:
parsing a domain name system (DNS) message, and acquiring a network domain name of a to-be-accessed network from the DNS message;
determining, based on the network domain name, a target communication link from a plurality of communication links having been connected; and
sending the DNS message to a target DNS server through the target communication link.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining, based on the network domain name, the target communication link from the plurality of communication links having been connected comprises:
searching a blacklist based on the network domain name;
determining a plurality of first reference communication links from the plurality of communication links having been connected in response to detecting that the network domain name is included in the blacklist, wherein the plurality of first reference communication links are classified into a first type of communication links; and
determining the target communication link from the plurality of first reference communication links.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining the target communication link from the plurality of first reference communication links comprises:
acquiring a plurality of link identifiers of the plurality of first reference communication links;
determining, from the plurality of link identifiers, a target link identifier matched with the network domain name; and
taking a communication link corresponding to the target link identifier as the target communication link.

### Claim 4 (depends on 2)

The method according to claim 2, wherein determining the target communication link from the plurality of first reference communication links comprises:
determining the first communication link as the target communication link in a condition that a first communication link is included in the plurality of first reference communication links.

### Claim 5 (depends on 2)

The method according to claim 2, wherein after searching the blacklist based on the network domain name, the method further comprises:
determining a plurality of second reference communication links from the plurality of communication links having been connected in response to detecting that the network domain name is not included in the blacklist, wherein the plurality of second reference communication links are classified into a second type of communication links; and
determining the target communication link from the plurality of second reference communication links.

### Claim 6 (depends on 5)

The method according to claim 5, wherein determining the target communication link from the plurality of second reference communication links comprises:
determining corresponding channels used by each of the plurality of second reference communication links;
determining respective channel quality parameters of the channels used by each second reference communication link; and
determining the target communication link according to the channel quality parameters.

### Claim 7 (depends on 5)

The method according to claim 5, wherein after sending the DNS message to a target DNS server through the target communication link, the method further comprises:
listing the network domain name corresponding to the DNS message into the blacklist in response to receiving a message of failing to parse the DNS message from the target DNS server.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
transporting the DNS message from an application layer of an operating system to a network layer via a transport layer; and
in the network layer, when the DNS message is transported to a Hook at OUTPUT for sending local data packets in firewall architecture, performing operations of the parsing a DNS message, and acquiring a network domain name of a to-be-accessed network from the DNS message and the determining, based on the network domain name, a target communication link from a plurality of communication links having been connected by executing a preset processing function.

### Claim 9

An electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and when the one or more programs are executed, the processor is configured to:
parse a domain name system (DNS) message, and acquire a network domain name of a to-be-accessed network from the DNS message;
determine a target communication link from a plurality of communication links having been connected based on the network domain name; and
send the DNS message to a target DNS server through the target communication link.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein, in determining the target communication link from the plurality of communication links having been connected based on the network domain name, the processor is configured to:
search a blacklist based on the network domain name;
determine a plurality of first reference communication links from the plurality of communication links having been connected in response to detecting that the network domain name is included in the blacklist, wherein the plurality of first reference communication links are classified into a first type of communication links; and
determine the target communication link from the plurality of first reference communication links.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein, in determining the target communication link from the plurality of first reference communication links, the processor is configured to:
acquire a plurality of link identifiers of the plurality of first reference communication links;
determine a target link identifier matched with the network domain name from the plurality of link identifiers; and
take a communication link corresponding to the target link identifier as the target communication link.

### Claim 12 (depends on 10)

The electronic device according to claim 10, wherein, in determining the target communication link from the plurality of first reference communication links, the processor is configured to:
determine the first communication link as the target communication link in a condition that a first communication link is included in the plurality of first reference communication links.

### Claim 13 (depends on 10)

The electronic device according to claim 10, wherein, after searching the blacklist based on the network domain name, the processor is further configured to:
determine a plurality of second reference communication links from the plurality of communication links having been connected in response to detecting that the network domain name is not included in the blacklist, wherein the plurality of second reference communication links are classified into a second type of communication links; and
determine the target communication link from the plurality of second reference communication links.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein, in determining the target communication link from the plurality of second reference communication links, the processor is configured to:
determine corresponding channels used by each of the plurality of second reference communication links;
determine respective channel quality parameters of the channels used by each second reference communication link; and
determine the target communication link according to the channel quality parameters.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein, after sending the DNS message to the target DNS server through the target communication link, the processor is further configured to:
list the network domain name corresponding to the DNS message into the blacklist in response to receiving, through a communication unit, a message of failing to parse the DNS message from the target DNS server.

### Claim 16 (depends on 9)

The electronic device according to claim 9, wherein the processor is further configured to:
transport the DNS message from an application layer of Linux operating system to a network layer via a transport layer; and
in the network layer, when the DNS message is transported to a Hook at OUTPUT for sending local data packets in firewall architecture, perform operations of the parsing a DNS message, and acquiring a network domain name of a to-be-accessed network from the DNS message and the determining, based on the network domain name, a target communication link from a plurality of communication links having been connected by executing a preset processing function.

### Claim 17

A non-transitory computer-readable storage medium, storing a computer program for electronic data exchange, wherein the computer program, when executed by a computer, causes the computer to perform:
parsing a domain name system (DNS) message, and acquiring a network domain name of a to-be-accessed network from the DNS message;
determining, based on the network domain name, a target communication link from a plurality of communication links having been connected; and
sending the DNS message to a target DNS server through the target communication link.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein, determining, based on the network domain name, the target communication link from the plurality of communication links having been connected comprises:
searching a blacklist based on the network domain name;
determining a plurality of first reference communication links from the plurality of communication links having been connected in response to detecting that the network domain name is included in the blacklist, wherein the plurality of first reference communication links are classified into a first type of communication links;
acquiring a plurality of link identifiers of the plurality of first reference communication links;
determining, from the plurality of link identifiers, a target link identifier matched with the network domain name; and
taking a communication link corresponding to the target link identifier as the target communication link.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein, determining, based on the network domain name, the target communication link from the plurality of communication links having been connected comprises:
searching a blacklist based on the network domain name;
determining a plurality of second reference communication links from the plurality of communication links having been connected in response to detecting that the network domain name is not included in the blacklist, wherein the plurality of second reference communication links are classified into a second type of communication links;
determining corresponding channels used by each of the plurality of second reference communication links;
determining respective channel quality parameters of the channels used by each second reference communication link; and
determining the target communication link according to the channel quality parameters.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the computer program, when executed by the computer, further causes the computer to perform:
listing the network domain name corresponding to the DNS message into the blacklist in response to receiving a message of failing to parse the DNS message from the target DNS server.
