Business processing method, ont and user equipment

By storing the mapping between domain names and private network IP addresses locally in the ONT, business messages are routed, which solves the problem of increased communication costs caused by the introduction of vCPE and improves communication reliability and user experience.

CN119276833BActive Publication Date: 2026-01-09HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310835709.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2026-01-09
Estimated Expiration
2043-07-07

AI Technical Summary

Technical Problem

In the communications field, introducing virtual customer premises equipment (vCPE) to improve the user experience of cloud services will increase communication costs.

Method used

By using an optical network terminal (ONT) to offload service messages, and by utilizing the mapping between domain names and private network IP addresses stored locally in the ONT, private network IP addresses can be directly provided to user equipment, reducing dependence on public network IP addresses and avoiding the introduction of vCPE.

Benefits of technology

It reduces communication costs and improves communication reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276833B_ABST
    Figure CN119276833B_ABST
Patent Text Reader

Abstract

The first aspect of the application provides a service processing method applied to the field of communication. The service processing method comprises the following steps: an ONT receives a DNS query message from a user equipment. The DNS query message contains a first domain name of a target equipment. The user equipment and the target equipment are in the same local area network. The ONT sends a first DNS response message to the user equipment. The first DNS response message contains a first private network IP address of the target equipment. The first private network IP address is obtained according to the first domain name by querying a locally saved correspondence between domain names and private network IP addresses. The first private network IP address is used for the user equipment to send a first service message to the target equipment. In the application, the service message is shunted through the ONT, so that the cost of communication can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication, and in particular to a service processing method, an ONT and a user equipment. BACKGROUND

[0002] In the field of communication, an optical network terminal (ONT) connects a public network through a traditional online channel. A user equipment accesses the public network through the ONT. In order to improve the experience of users on cloud services, a logical channel of layer 2 can be added to the ONT. One end of the logical channel is connected to the ONT, and the other end is connected to a virtual customer premises equipment (vCPE). Service messages of the user equipment accessing the cloud service network and accessing the public network are first forwarded to the vCPE through the ONT. The vCPE distributes the service messages to the cloud service network or the public network according to the internet protocol (IP) addresses of the service messages.

[0003] In actual application, the introduction of the vCPE increases the cost of communication. SUMMARY

[0004] The present application provides a service processing method, an ONT and a user equipment, which realizes the distribution of service messages through the ONT, and can reduce the cost of communication.

[0005] The first aspect of the present application provides a service processing method. The service processing method comprises the following steps: an ONT receives a domain name service (DNS) query message from a user equipment. The DNS query message contains a first domain name of a destination equipment. The user equipment and the destination equipment are in the same local area network. The ONT sends a first DNS response message to the user equipment. The first DNS response message contains a first private internet protocol (IP) address of the destination equipment. The first private IP address is obtained by the ONT from a correspondence between domain names and private IP addresses saved locally according to the first domain name. The first private IP address is used for the user equipment to send a first service message to the destination equipment.

[0006] In an optional mode of the first aspect, the service processing method further includes the following step: if the correspondence between the domain name and the private network IP address does not include the IP address corresponding to the first domain name, the ONT sends a second DNS response message to the user equipment. The second DNS response message contains the first public network IP address of the destination device. The first public network IP address is obtained by the ONT from the DNS server according to the first domain name. The first public network IP address is used by the user equipment to send a second service message to the destination device. In the present application, when the user equipment cannot send a service message to the destination device through the first private network IP address, the user equipment can send a service message to the destination device through the first public network IP address. Therefore, the present application can improve the reliability of communication.

[0007] In an optional mode of the first aspect, before the ONT receives the DNS query message from the user equipment, the service processing method further includes the following steps: the ONT receives a dynamic host configuration protocol (DHCP) request from the destination device. The DHCP request includes the first domain name. The ONT sends a DHCP response to the destination device. The DHCP response includes the first private network IP address allocated by the ONT to the destination device.

[0008] In an optional mode of the first aspect, before the ONT receives the DNS query message from the user equipment, the service processing method further includes the following steps: the ONT receives a first message from the destination device. The first message includes the first domain name and the first private network IP address.

[0009] In an optional mode of the first aspect, before the ONT receives the DNS query message from the user equipment, the service processing method further includes the following steps: the ONT sends a probe request to the destination device. If a probe response is not received within a specified time, the ONT deletes the correspondence between the first domain name and the first private network IP address or marks the status of the correspondence between the first domain name and the first private network IP address as invalid. In the present application, through the probe request, it can be determined whether the first private network IP address is reachable. When the first private network IP address is not reachable, the user equipment can transmit a service message through the first public network IP address. Therefore, the present application can improve the reliability of communication.

[0010] In an optional mode of the first aspect, a value of a time to life (TTL) field in the first DNS response message is 0. In actual application, in order to reduce the number of DNS queries, the user equipment can save the obtained IP address for use next time when the same domain name is accessed. However, in the present application, when the first private network IP address is unreachable, if the user equipment uses the last saved first private network IP address to transmit the first service message, the destination equipment cannot receive the first service message. Therefore, by setting the valid time length of the first DNS response message, the reliability of communication can be improved.

[0011] The second aspect of the present application provides a service processing method. The service processing method comprises the following steps: a user equipment sends a DNS query message to an ONT. The DNS query message contains a first domain name of a destination equipment. The user equipment and the destination equipment are in the same local area network. The user equipment receives a first DNS response message from the ONT. The first DNS response message contains a first private network IP address of the destination equipment. The first private network IP address is obtained by the ONT from a locally saved correspondence between domain names and private network IP addresses according to the first domain name. The first private network IP address is used for the user equipment to send a first service message to the destination equipment.

[0012] In an optional mode of the second aspect, the service processing method further comprises the following steps: the user equipment receives a second DNS response message from the ONT. The second DNS response message contains a first public network IP address of the destination equipment. The first public network IP address is obtained by the ONT from a DNS server according to the first domain name. The first public network IP address is used for the user equipment to send a second service message to the destination equipment.

[0013] In an optional mode of the second aspect, a value of a TTL field in the first DNS response message is 0.

[0014] In an optional mode of the second aspect, the service processing method further comprises the following steps: the user equipment generates the first service message through a first application. When the user equipment obtains a private network IP address corresponding to the first domain name, the user equipment determines to be in a first function state. When the user equipment obtains a public network IP address corresponding to the first domain name, the user equipment determines to be in a second function state. In the present application, the state of the user equipment is determined by the IP address, and different services are provided according to the state of the user equipment, so that the user experience can be improved.

[0015] In an optional mode of the second aspect, in the first function state, the user equipment displays that the first application is in a high-speed channel state. In the second function state, the user equipment displays that the first application is not in the high-speed channel state. By displaying that the first application is in the high-speed channel state, the user experience can be improved.

[0016] The third aspect of the present application provides an ONT. The ONT comprises a transceiver and a network interface. The transceiver is configured to receive a DNS query message from a user equipment. The DNS query message comprises a first domain name of a destination equipment. The user equipment and the destination equipment are in the same local area network. The transceiver is further configured to send a first DNS response message to the user equipment. The first DNS response message comprises a first private IP address of the destination equipment. The first private IP address is obtained from a correspondence between domain names and private IP addresses stored locally according to the first domain name. The transceiver is further configured to receive a first service message from the user equipment. The first service message is destined to the first private IP address. The network interface is configured to send the first service message to the destination equipment.

[0017] In an optional mode of the third aspect, if the correspondence between domain names and private IP addresses does not comprise an IP address corresponding to the first domain name, the transceiver is further configured to send a second DNS response message to the user equipment. The second DNS response message comprises a first public IP address of the destination equipment. The first public IP address is obtained from a DNS server according to the first domain name. The transceiver is further configured to receive a second service message from the user equipment. The second service message is destined to the first public IP address. The network interface is further configured to send the second service message to the destination equipment.

[0018] In an optional mode of the third aspect, the network interface is further configured to receive a DHCP request from the destination equipment. The DHCP request comprises the first domain name. The network interface is further configured to send a DHCP response to the destination equipment. The DHCP response comprises a first private IP address allocated to the destination equipment by the ONT.

[0019] In an optional mode of the third aspect, the network interface is further configured to receive a first message from the destination equipment. The first message comprises the correspondence between the first domain name and the first private IP address.

[0020] In an optional mode of the third aspect, the ONT further comprises a processor. The network interface is further configured to send a probe request to the destination equipment. If a probe response is not received within a specified time, the processor is configured to delete the correspondence between the first domain name and the first private IP address or mark the correspondence between the first domain name and the first private IP address as invalid.

[0021] The fourth aspect of the present application provides a user equipment. The user equipment comprises a receiver and a transmitter. The transmitter is configured to send a DNS query message to an ONT. The DNS query message comprises a first domain name of a destination device. The user equipment and the destination device are in the same local area network. The receiver is configured to receive a first DNS response message from the ONT. The first DNS response message comprises a first private IP address of the destination device. The first private IP address is obtained by the ONT from a locally stored correspondence between domain names and private IP addresses according to the first domain name. The first private IP address is used by the user equipment to send a first service message to the destination device.

[0022] In an optional mode of the fourth aspect, the receiver is configured to receive a second DNS response message from the ONT. The second DNS response message comprises a first public IP address of the destination device. The first public IP address is obtained by the ONT from a DNS server according to the first domain name. The first public IP address is used by the user equipment to send a second service message to the destination device.

[0023] In an optional mode of the fourth aspect, the user equipment is installed with a first application. The user equipment further comprises a processor. The first application is configured to generate the first service message. When the first domain name corresponds to a private IP address, the processor is configured to determine a first function state. When the first domain name corresponds to a public IP address, the processor is configured to determine a second function state.

[0024] In an optional mode of the fourth aspect, the user equipment further comprises a display screen. In the first function state, the display screen is configured to show that the first application is in a high-speed channel. In the second function state, the display screen is configured to show that the first application is not in the high-speed channel.

[0025] The fifth aspect of the present application provides a computer storage medium. The computer storage medium stores instructions. When the instructions are executed on a computer, the computer performs the method of the first aspect or any one of the implementation manners of the first aspect; or the computer performs the method of the second aspect or any one of the implementation manners of the second aspect.

[0026] The sixth aspect of the present application provides a computer program product. When the computer program product is executed on a computer, the computer performs the method of the first aspect or any one of the implementation manners of the first aspect; or the computer performs the method of the second aspect or any one of the implementation manners of the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0027] Figure 1 The first structural schematic diagram of a communication system provided by the embodiment of the present application is shown.

[0028] Figure 2 A first flowchart of a service processing method provided by an embodiment of the present application is shown in FIG. 1.

[0029] Figure 3 A second flowchart of a service processing method provided by an embodiment of the present application is shown in FIG. 2.

[0030] Figure 4 A third flowchart of a service processing method provided by an embodiment of the present application is shown in FIG. 3.

[0031] Figure 5 A second structure diagram of a communication system provided by an embodiment of the present application is shown in FIG. 4.

[0032] Figure 6 A first structure diagram of an ONT provided by an embodiment of the present application is shown in FIG. 5.

[0033] Figure 7 A second structure diagram of an ONT provided by an embodiment of the present application is shown in FIG. 6.

[0034] Figure 8 A structure diagram of a user equipment provided by an embodiment of the present application is shown in FIG. 7. DETAILED DESCRIPTION

[0035] The present application provides a service processing method, an optical network terminal (ONT) and a user equipment. The service processing method can reduce the cost of communication by implementing service message distribution on the ONT. It should be understood that "first", "second" or "target" and the like used in the present application are only used for distinguishing purposes of description, and cannot be understood as indicating or implying relative importance, nor can be understood as indicating or implying sequence. In addition, repeated reference numbers and / or letters are used in multiple drawings of the present application for the sake of simplicity and clarity. The repetition does not indicate strict limiting relationship between various embodiments and / or configurations. In the field of communication, in order to improve user experience of cloud services, a two-layer logical channel can be added to the ONT. One end of the logical channel is connected to the ONT, and the other end is connected to a virtual customer user equipment (vCPE). The vCPE is used to distribute service messages of the user equipment according to destination internet protocol (IP) addresses of the service messages. However, the introduction of the vCPE can increase the cost of communication.

[0036] Therefore, the present application provides a service processing method. The service processing method is applied to an ONT, a user equipment or a destination equipment in a communication system. Figure 1 A first structure diagram of a communication system provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the communication system includes an ONT 100, a user equipment 200 and a destination equipment 300. Figure 1As shown, the communication system includes a user device 101, an ONT 102 and a destination device 103 in the same LAN. The user device 101 is a notebook computer, a desktop computer or a mobile phone, etc. The destination device 103 is another ONT or a server, etc. The ONT 102 and the destination device 103 are connected through a first channel. The first channel is a layer 2 channel or a layer 3 channel, such as a virtual private network (VPN) tunnel. The ONT 102 includes a corresponding public IP address and is connected to the public network through a second channel. The second channel is a layer 3 channel. The destination device 103 also includes a corresponding public IP address and is able to receive service messages from the public network through the public IP address.

[0037] It should be understood that in the present application, the first channel and the second channel are logically different channels. Therefore, the first channel and the second channel can share the same network interface in the ONT. For example, the first channel and the second channel share the same network interface of a network card in the ONT or the same network interface of an optical module in the ONT. The network interface is also referred to as a network port. The first channel and the second channel can also use different network interfaces in the ONT. For example, the network interfaces include a first network interface and a second network interface. The ONT includes a first network card and a second network card. The first channel uses the first network interface of the first network card. The second channel uses the second network interface of the second network card.

[0038] It should be understood that the present application does not limit whether the user device 101 and the destination device 103 in the same LAN are in the same region. When the user device 101 and the destination device 103 are in the same region, for example, the user device 101 and the destination device 103 are physically in the same home, the user device 101 and the destination device 103 can form a LAN through a network cable or wireless WIFI, etc. When the user device 101 and the destination device 103 are not in the same region, the user device 101 and the destination device 103 can form a LAN through a dedicated line or by establishing a tunnel, etc. For the convenience of management, the VLAN identifier (ID) of the user device 101 and the destination device 103 connected to the ONT can be different or the same.

[0039] Figure 2 The first flowchart of the service processing method provided by the present application is shown in FIG. 1. As shown, the service processing method includes the following steps. In step 201, the user device sends a domain name service (DNS) query message to the ONT, containing a first domain name. Figure 2

[0040] ​Before the user equipment accesses the first domain name, the user equipment needs to acquire the internet protocol (IP) address corresponding to the first domain name. If the user equipment does not acquire the IP address corresponding to the first domain name, or the IP address corresponding to the first domain name acquired by the user equipment has expired, the user equipment sends a DNS query message to the ONT. The DNS query message is also referred to as a DNS request or a DNS request packet. The DNS query message contains the first domain name of the destination device. The DNS query message is used to query the IP address corresponding to the first domain name.

[0041] In step 202, the ONT sends a first DNS response message to the user equipment, containing the first private network IP address corresponding to the first domain name.

[0042] The ONT locally saves the correspondence between the domain name and the private network IP address. The private network IP address is also referred to as a local area network IP address. After receiving the DNS query message from the user equipment, the ONT queries the correspondence to determine whether the first private network IP address corresponding to the first domain name is included in the correspondence. If the first private network IP address corresponding to the first domain name is included in the correspondence, and the state of the correspondence between the first domain name and the first private network IP address is valid, the ONT sends a first DNS response message to the user equipment, and the user equipment does not query the public network IP address corresponding to the first domain name from the DNS server. The DNS response message is also referred to as a DNS response packet or a DNS response packet. The first DNS response message contains the first private network IP address corresponding to the first domain name. If the first private network IP address corresponding to the first domain name is not included in the correspondence, or the state of the correspondence between the first domain name and the first private network IP address is invalid, the ONT forwards the DNS query message to the DNS server. The DNS server replies with a second DNS response message according to the DNS query message. The second DNS response message contains the first public network IP address of the destination device. The ONT sends the second DNS response message to the user equipment.

[0043] In step 203, the user equipment sends a first service message to the ONT.

[0044] After receiving the first DNS response message or the second DNS response message, the user equipment learns the media access control (MAC) address corresponding to the first private network IP address or the first public network IP address. For example, the user equipment sends a broadcast address resolution protocol (ARP) packet. The ARP packet contains the first private network IP address. The ONT broadcasts the ARP packet in the local area network after receiving the ARP packet. The destination device in the local area network can also receive the ARP packet. The destination device replies to the ARP response according to the ARP packet. The ARP response contains the MAC address corresponding to the first private network IP address, i.e., the MAC address of the destination device. The user equipment sends the first service message or the second service message to the ONT. The destination IP address of the first service message is the first private network IP address. The destination MAC address of the first service message is the MAC address of the destination device. When the ONT serves as the gateway of the user equipment, the user equipment obtains the MAC address of the ONT device. If the IP address obtained by the user equipment is the first public network IP address, the user equipment fills the MAC address of the ONT into the destination MAC address of the packet. Therefore, the destination IP address of the second service message is the first public network IP address. The destination MAC address of the first service message is the MAC address of the ONT.

[0045] In step 204, the ONT sends the first service message to the destination device.

[0046] After receiving the service message from the user equipment, the ONT determines the destination MAC address or the destination IP address of the service message. When the destination MAC address of the service message is the MAC address of the destination device and the destination IP address is the first private network IP address, the ONT forwards the service message to the network interface corresponding to the first channel according to the destination MAC address or the destination IP address of the service message. For example, the first VPN tunnel is established between the ONT and the destination device. The ONT adds a first virtual extensible local area network (VxLAN) header to the outer layer of the first service message. The ONT transmits the first service message carrying the first VxLAN header through the first VPN tunnel. For another example, the first channel and the second channel use different network interfaces in the ONT. The ONT establishes a dedicated line with the destination device through the second network interface. The ONT directly transmits the first service message through the dedicated line. At this time, the ONT can not need to make any modification to the first service message, such as modifying the source IP address. When the destination MAC address of the service message is the MAC address of the ONT and the destination IP address is the first public network IP address, the ONT forwards the service message to the network interface corresponding to the second channel according to the destination MAC address or the destination IP address of the service message. For example, the ONT modifies the source IP address of the second service message to the public network IP address of the ONT, and transmits the second service message with the modified source IP address to the public network through the second channel. For another example, the ONT establishes a second VPN tunnel with the receiving device of the second service message. The ONT adds a second VxLAN header to the outer layer of the second service message. The ONT transmits the second service message carrying the second VxLAN header through the second VPN tunnel.

[0047] In the embodiments of the present application, for the service message accessing the public network (for example, the second service message), that is, the service message with the destination IP address being the public network IP address, the ONT sends the service message to the public network through the second channel. For the service message accessing the destination device through the first private network IP address, the ONT sends the service message to the destination device through the first channel. Therefore, the embodiments of the present application realize the distribution of the service message through the ONT. Through the distribution of the service message by the ONT, the vCPE can be avoided, thereby reducing the cost of communication.

[0048] According to Figure 1 As described above, the user equipment, the ONT and the destination device are located in the same local area network. Therefore, the user equipment, the ONT and the destination device include different private network IP addresses. In order to avoid the conflict of the private network IP addresses, the allocation device containing the private network IP addresses is included in the local area network. The allocation device is the ONT or other devices. When the allocation device is the ONT or other devices, the ONT obtains the correspondence between the first domain name and the first private network IP address in different ways. This is described below.

[0049] In the first mode, the allocation device is an ONT. In this mode, the ONT receives a second message from the destination device. The second message contains a first domain name. The ONT allocates a first private network IP address for the destination device according to the second message, and locally saves a correspondence between the first domain name and the first private network IP address. The following describes an example in which the second message is a dynamic host configuration protocol (DHCP) request. Figure 3 A second flowchart of a service processing method provided by an embodiment of the present application is shown in FIG. 3. As shown in FIG. 3, the service processing method includes the following steps. Figure 3

[0050] In step 301, the destination device sends a DHCP request to the ONT, which contains a first domain name.

[0051] After the destination device accesses a local area network in which the ONT is located, the destination device sends a DHCP request to the ONT. The DHCP request contains a first domain name. For example, the DHCP request includes a plurality of options fields. The plurality of options fields includes a host name field. The host name field is also referred to as an option 12 host name field. The host name field carries the first domain name. In actual applications, the DHCP request can also include device authentication information. For example, the plurality of options fields also includes a vendor class identifier field. The vendor class identifier field is also referred to as an option 60 vendor class identifier field. The vendor class identifier field carries the device authentication information. The device authentication information includes a device type or identity information of the destination device, etc.

[0052] In step 302, the ONT sends a DHCP response to the destination device, which contains a first private network IP address allocated by the ONT for the destination device.

[0053] ​The ONT verifies the device authentication information. If the verification is passed, the ONT sends a DHCP response to the destination device. The DHCP response contains a first private IP address allocated to the destination device by the ONT. If the verification is not passed, the ONT discards the DHCP request or replies a rejection message. If the ONT has already allocated a first private IP address to the destination device and has a record of the correspondence between the first domain name and the first private IP address, the ONT and the destination device can determine the destination of the DHCP request by agreement. For example, if the DHCP request carries the first identification, the ONT does not allocate a private IP address to the destination device again, but updates the correspondence. The updated correspondence includes the correspondence between the first domain name and the first private IP address. If the DHCP request does not carry the first identification, the ONT allocates a private IP address to the destination device again and updates the correspondence. The updated correspondence includes the correspondence between the first domain name and the first private IP address. It should be understood that the two first private IP addresses allocated to the destination device by the ONT can be different.

[0054] The description of steps 303-305 is similar to the description of steps 201-204 in the foregoing Figure 2 Therefore, the description of steps 303-305 can refer to the description of steps 201-204. For example, the description of step 303 can refer to the description of step 201. For another example, the description of step 305 can refer to the description of steps 203 and 204.

[0055] In the second mode, the allocation device allocates the first private IP address to other devices. The other devices are devices in the local area network except the ONT, such as other DHCP servers. In this mode, after the other devices allocate the first private IP address to the destination device, the destination device sends a first message to the ONT. The first message includes the first domain name and the first private IP address. The embodiments of the present application do not limit the format of the first message. After receiving the first message, the ONT saves the correspondence between the first domain name and the first private IP address locally. When the domain name of the destination device is changed, the destination device sends the first message to the ONT again. The re-sent first message includes the updated domain name and the first private IP address. The ONT updates the correspondence according to the re-sent first message.

[0056] In other embodiments, the ONT can also generate the correspondence between the domain name and the private IP by configuration from a WEB graphical user interface (GUI), a network management device or a command line interface (CLI). For example, the network management device configures the private IP address and the domain name correspondence to the ONT through a TR-069 protocol message. Similarly, the ONT can also update the correspondence between the domain name and the private IP through a new configuration.

[0057] In the embodiments of the present application, in order to improve the user experience, the ONT can transmit the first service message to the destination device through the first channel. However, if the first channel fails, the ONT still transmits the first service message through the first channel, which can result in the first service message being unreachable, thereby reducing the reliability of communication. Therefore, in other embodiments, the ONT can detect whether the first channel is working normally. Figure 4 A third flowchart of the service processing method provided by the embodiments of the present application is shown in FIG. 4. As shown in FIG. 4, the service processing method comprises the following steps. Figure 4

[0058] In step 401, the ONT sends a detection request to the destination device.

[0059] The ONT locally stores the correspondence between the domain name and the private IP address. The correspondence comprises one or more sub-correspondences. Each sub-correspondence comprises a correspondence between a private IP address and a domain name. The ONT needs to maintain the reachability of the private IP address in each sub-correspondence through the detection request. The embodiments of the present application only take the first private IP address as an example for description. The ONT periodically sends a detection request, such as a PING request, to the destination device through the first channel.

[0060] In step 402, the destination device sends a detection response to the ONT.

[0061] In step 403, the ONT deletes the correspondence between the first domain name and the first private IP address, without receiving the detection response.

[0062] After the destination device receives the detection request, the destination device will reply with a detection response. However, if the network interface connected to the second channel in the destination device fails, or the second channel fails, the destination device cannot normally receive the detection request and will not reply with a detection response. If the detection response is not received within a specified time, the ONT deletes the correspondence between the first domain name and the first private IP address in the correspondence or marks the status of the correspondence between the first domain name and the first private IP address as invalid. If the detection response is received within the specified time, the ONT continues to maintain the status of the correspondence between the first domain name and the first private IP address as valid. ​

[0063] The description of steps 404-407 is similar to the description of steps 201-204. Figure 2 Therefore, the description of steps 404-407 can refer to the description of steps 201-204. For example, the description of step 404 can refer to the description of step 201. For another example, the description of steps 405 and 406 can refer to the description of step 202. For another example, the description of step 407 can refer to the description of steps 203 and 204.

[0064] In the communication system of the embodiment of the present application, the user equipment 101 can access the destination device 103 through the ONT 102. In actual application, the user equipment 101 can also access the destination device 103 without the ONT 102. For example, the user equipment 101 is a mobile phone, and the user equipment 101 accesses the destination device 103 through a base station. Figure 1 The second structural diagram of the communication system provided by the embodiment of the present application is shown in FIG. 4. As shown in FIG. 4, after the user equipment 101 is disconnected from the ONT 102, the user equipment 101 can access the destination device 103 through a public network. Figure 5 Figure 5 In the communication system of the embodiment of the present application, the user equipment 101 can access the destination device 103 through the ONT 102. In actual application, the user equipment 101 can also access the destination device 103 without the ONT 102. For example, the user equipment 101 is a mobile phone, and the user equipment 101 accesses the destination device 103 through a base station.

[0065] In the embodiment of the present application, when the user equipment 101 accesses the destination device 103 through other ways, the user equipment 101 accesses the destination device 103 through the first public IP address of the destination device 103. According to the description of steps 201-204, when the user equipment 101 accesses the destination device 103 through the ONT 102, the user equipment 101 accesses the destination device 103 through the first private IP address or the first public IP address of the destination device 103. In order to improve user experience, the user equipment 101 can provide different services for users according to the used IP address. For example, the user equipment 101 generates a first service message through a first application. When the IP address corresponding to the first domain name obtained by the user equipment is a private network address, that is, the user equipment 101 accesses the destination device 103 through the first private IP address of the destination device 103, the user equipment determines to be in a first function state. When the IP address corresponding to the first domain name obtained by the user equipment is a public network address, that is, the user equipment 101 accesses the destination device 103 through the first public IP address of the destination device 103, the user equipment determines to be in a second function state. Figure 2

[0066] ​​In different functional states, the user equipment 101 can provide different services for the user. Different services refer to different interfaces and / or functions. For example, in a first functional state, the user equipment 101 allows a file larger than a target threshold size to be transmitted to a destination device. In a second functional state, the user equipment 101 does not allow a file larger than the target threshold size to be transmitted to the destination device. For another example, in the first functional state, the user equipment 101 does not limit the traffic or rate cap of the first application. In the second functional state, the user equipment 101 limits the traffic or rate cap of the first application. For another example, in the first functional state, the user equipment 101 shows that the first application is in a high-speed channel state; in the second functional state, the user equipment 101 shows that the first application is not in the high-speed channel state. The embodiments of the present application do not limit how the user equipment 101 shows whether the first application is in the high-speed channel state. For example, the first application is a video application, in the first functional state, the first application provides N selectable video resolution options. In the second functional state, the first application provides M selectable video resolution options. N and M are both integers greater than 0. N is greater than M. For example, the N selectable video resolution options include 720P and 1080P. The M selectable video resolution options include 720P. Wherein, 720P refers to a video with a resolution of 1280*720. 1080P refers to a video with a resolution of 1280*720. Alternatively, in the first functional state, the user equipment 101 displays the word "in high-speed channel" through the first application. In the second functional state, the user equipment 101 does not display the word "in high-speed channel" through the first application.

[0067] In actual applications, in order to reduce the number of DNS queries, the user equipment can save the obtained IP address for use next time when accessing the same domain name. However, in the embodiments of the present application, if the first channel fails, the user equipment still accesses the destination device through the first private IP address, which will cause the first service message to be unreachable. If the first channel is not in a failure state, the user equipment still accesses the destination device through the first public IP address, which will reduce the user experience. Therefore, in other embodiments, the value of the time to life (TTL) field in the first DNS response message is 0. The DNS protocol message includes a resource record (RR) field. The RR field includes a domain name field, a query type field, a query class field, a TTL field, a resource data length field, and a resource data field. The value in the TTL field represents the life cycle of the resource record. When the value of the TTL field is 0, the user equipment will only use the obtained first public IP address or first private IP address in this session access. When the user equipment needs to access the first domain name next time, the user equipment will reacquire the IP address corresponding to the first domain name through the DNS query message.

[0068] The preceding paragraphs described the service processing methods provided in this application. The following paragraphs describe the ONT and user equipment provided in this application. Figure 6 This is a first structural schematic diagram of an ONT provided in an embodiment of this application. (See attached diagram.) Figure 6 As shown, ONT 102 includes a transceiver 601 and a network interface 602. The transceiver 601 can be an optical transceiver module. ONT 102 communicates with the user equipment through the transceiver 601 and connects to the destination device through the network interface 602. The user equipment and the destination device are on the same local area network. In this embodiment, the transceiver 601 is used to receive DNS query messages from the user equipment. The DNS query message contains the first domain name of the destination device. The transceiver 601 is also used to send a first DNS response message to the user equipment. The first DNS response message contains the first private network IP address of the destination device. The first private network IP address is obtained by querying the locally stored mapping between domain names and private network IP addresses based on the first domain name. The transceiver 601 is also used to receive a first service message from the user equipment. The destination IP address of the first service message is the first private network IP address. The network interface 602 is used to send the first service message to the destination device.

[0069] Figure 7 This is a second structural diagram of the ONT provided in an embodiment of this application. (See diagram below.) Figure 7 As shown, ONT 102 includes a transceiver 601, a processor 701, a memory 702, a service offloading circuit 703, and a network interface 602. The processor 701 can be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. The processor 701 may further include a hardware chip or other general-purpose processor. The aforementioned hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The memory 702 can be volatile memory or non-volatile memory, or may include both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), or flash memory, etc. The volatile memory can be random access memory (RAM).

[0070] The ONT 102 communicates with the user equipment through the transceiver 601, and connects the destination device and the public network through the network interface 602. For example, the ONT 102 connects the destination device through the network port 1 in the network interface 602. The ONT 102 connects the public network through the network port 2 in the network interface. For another example, the ONT 102 connects the destination device and the public network through the network port 1 in the network interface 602. The user equipment and the destination device are in the same local area network. In the embodiment of the present application, the transceiver 601 is configured to receive a DNS query message from the user equipment. The DNS query message contains a first domain name of the destination device. The memory 702 stores a correspondence between the domain name and the private IP address. The processor 701 is configured to receive the DNS query message from the transceiver 601, and determine whether the first private IP address corresponding to the first domain name is included in the correspondence. If the first private IP address corresponding to the first domain name is included in the correspondence, and the status of the correspondence between the first domain name and the first private IP address is valid, the processor 701 is further configured to generate a first DNS response message. The first DNS response message contains the first private IP address corresponding to the first domain name. The processor 701 is further configured to transmit the first DNS response message to the transceiver 601. If the first private IP address corresponding to the first domain name is not included in the correspondence, or the status of the correspondence between the first domain name and the first private IP address is invalid, the processor 701 is further configured to forward the DNS query message to a DNS server through the network interface 602. The network interface 602 is configured to receive a second DNS response message from the DNS server. The second DNS response message contains a first public IP address of the destination device. The transceiver 601 is further configured to send the first DNS response message or the second DNS response message to the user equipment.

[0071] The transceiver 601 is further configured to receive a first service message or a second service message from the user equipment. The destination IP address of the first service message is the first private IP address of the destination device. The destination IP address of the second service message is the first public IP address of the destination device. The transceiver 601 is further configured to transmit the first service message or the second service message to the service shunting circuit 703. The service shunting circuit 703 selects a corresponding transmission channel according to the destination IP address or the destination MAC address of the service message. For example, the first channel uses the network port 1 in the network interface 602. The second channel uses the network port 2 in the network interface 602. The service shunting circuit 703 transmits the first service message to the network port 1 or transmits the second service message to the network port 2. It should be understood that after selecting the transmission channel, the service shunting circuit 703 or other circuits can process the service message, for example, add a VxLAN header. The network port in the network interface 602 can be an interface on a different network card or optical module. For example, the network port 1 is a first network interface of a first network card; the network port 2 is a second network interface of a second network card. The network interface 602 is configured to output the service message.

[0072] It should be understood that, regarding Figure 6 or Figure 7 The description of ONT 102 is similar to the description of the aforementioned business processing method. Therefore, the description of ONT 102 can be referenced from the description of ONT 102. Figures 1-5 The description of any of the figures is provided. For example, network interface 602 is also used to receive a DHCP request from the destination device. The DHCP request includes a first domain name. Network interface 602 is also used to send a DHCP response to the destination device. The DHCP response includes a first private network IP address assigned to the destination device by ONT. As another example, network interface 602 is also used to send a probe request to the destination device. If a probe response is not received within a specified time, processor 701 is used to delete the mapping between the first domain name and the first private network IP address or mark the mapping between the first domain name and the first private network IP address as invalid.

[0073] Figure 8 This is a schematic diagram of the structure of a user equipment provided in an embodiment of this application. Figure 8 As shown, User Equipment 101 includes a receiver 801 and a transmitter 802. Receiver 801 can be an optical receiver or a wireless receiver. Transmitter 802 can be an optical transmitter or a wireless transmitter. Transmitter 802 is used to send a DNS query message to the ONT. The DNS query message contains the first domain name of the destination device. The User Equipment and the destination device are on the same local area network. Receiver 801 is used to receive a first DNS response message from the ONT. The first DNS response message contains the first private IP address of the destination device. The first private IP address is obtained by the ONT by querying the locally stored mapping between domain names and private IP addresses based on the first domain name. The first private IP address is used by User Equipment 101 to send a first service message to the destination device.

[0074] It should be understood that, regarding Figure 8 The description of user equipment 101 is similar to the description of the aforementioned service processing method. Therefore, the description of user equipment 101 can be referenced from the description of... Figures 1-5The description of any one of the figures. For example, the receiver 801 is configured to receive a second DNS response message from the ONT. The second DNS response message comprises a first public IP address of a destination device. The first public IP address is obtained by the ONT from the DNS server according to the first domain name. The first public IP address is used by the user device to send a second service message to the destination device. For another example, the user device 101 further comprises a processor. The first application is configured to generate the first service message. When the first domain name corresponds to a private IP address, the processor is configured to determine that the user device 101 is in a first function state. When the first domain name corresponds to a public IP address, the processor is configured to determine that the user device 101 is in a second function state. In different function states, the user device 101 can provide different services for the user. For another example, the user device 101 further comprises a display screen. In the first function state, the display screen is configured to show that the first application is in a high-speed channel. In the second function state, the display screen is configured to show that the first application is not in a high-speed channel.

[0075] The above merely describes specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. A service processing method characterized by, The method comprises: An optical network terminal (ONT) receives a domain name service (DNS) query message from a user equipment, the DNS query message containing a first domain name of a destination equipment; The user equipment and the destination equipment are in the same local area network (LAN); The ONT sends a first DNS response message to the user equipment, wherein the first DNS response message contains a first private internet protocol (IP) address of the destination equipment; the first private IP address is obtained from a correspondence between domain names and private IP addresses stored locally by the ONT according to the first domain name; and the first private IP address is used by the user equipment to send a first service message to the destination equipment.

2. The service processing method according to claim 1, characterized by, The method further comprises: If the correspondence between domain names and private IP addresses does not include an IP address corresponding to the first domain name, the ONT sends a second DNS response message to the user equipment, wherein the second DNS response message contains a first public IP address of the destination equipment; the first public IP address is obtained from a DNS server according to the first domain name; and the first public IP address is used by the user equipment to send a second service message to the destination equipment.

3. The service processing method according to claim 1 or 2, characterized by, Before the ONT receives the DNS query message from the user equipment, the method further comprises: The ONT receives a dynamic host configuration protocol (DHCP) request from the destination equipment, the DHCP request including the first domain name; The ONT sends a DHCP response to the destination equipment, the DHCP response including the first private IP address allocated to the destination equipment by the ONT.

4. The service processing method according to claim 1 or 2, characterized by, Before the ONT receives the DNS query message from the user equipment, the method further comprises: The ONT receives a first message from the destination equipment, the first message including the first domain name and the first private IP address.

5. The service processing method according to any one of claims 1 to 4, characterized by, Before the ONT receives the DNS query message from the destination equipment, the method further comprises: The ONT sends a probe request to the destination equipment; If a probe response is not received within a specified time, the ONT deletes the correspondence between the first domain name and the first private IP address or marks the correspondence between the first domain name and the first private IP address as invalid.

6. The service processing method according to any one of claims 1 to 5, characterized by, A value of a time to live (TTL) field in the first DNS response message is 0.

7. A service processing method characterized by, The method comprises: A user equipment sends a domain name service (DNS) query message to an optical network terminal (ONT), the DNS query message containing a first domain name of a destination equipment; The user equipment and the destination equipment are in the same local area network (LAN); The user equipment receives a first DNS response message from the ONT, wherein the first DNS response message contains a first private internet protocol (IP) address of the destination equipment; The first private IP address is obtained by the ONT from a correspondence between domain names and private IP addresses stored locally by the ONT according to the first domain name; and the first private IP address is used by the user equipment to send a first service message to the destination equipment.

8. The service processing method according to claim 7, characterized by, The method further comprises: The user equipment receives a second DNS response message from the ONT, the second DNS response message containing a first public IP address of the destination device; the first public IP address is obtained by the ONT from a DNS server according to the first domain name; and the first public IP address is used by the user equipment to send a second service message to the destination device.

9. The service processing method according to claim 7 or 8, characterized by, The value of a life cycle TTL field in the first DNS response message is 0.

10. The transaction processing method according to any one of claims 7 to 9, wherein, The method further comprises: The user equipment generates the first service message through a first application; When the user equipment obtains a private network address corresponding to the first domain name, the user equipment determines to be in a first function state; When the user equipment obtains a public network address corresponding to the first domain name, the user equipment determines to be in a second function state.

11. The service processing method according to claim 10, wherein In the first function state, the user equipment shows that the first application is in a high-speed channel state, and in the second function state, the user equipment shows that the first application is not in a high-speed channel state.

12. An optical network terminal (ONT) comprising: The transceiver is configured to receive a domain name service (DNS) query message from a user equipment, the DNS query message containing a first domain name of a destination device; the user equipment and the destination device are in a same local area network (LAN); The transceiver is further configured to send a first DNS response message to the user equipment, wherein the first DNS response message contains a first private network Internet Protocol (IP) address of the destination device; the first private network IP address is obtained from a correspondence between domain names and private network IP addresses stored locally according to the first domain name; The transceiver is further configured to receive a first service message from the user equipment, the destination IP address of the first service message being the first private network IP address; The network interface is configured to send the first service message to the destination device.

13. The ONT according to claim 12, wherein If the correspondence between domain names and private network IP addresses does not include an IP address corresponding to the first domain name, the transceiver is further configured to send a second DNS response message to the user equipment, wherein the second DNS response message contains a first public IP address of the destination device; the first public IP address is obtained from a DNS server according to the first domain name; The transceiver is further configured to receive a second service message from the user equipment, the destination IP address of the second service message being the first public IP address; The network interface is further configured to send the second service message to the destination device.

14. The ONT according to claim 12 or 13, wherein The network interface is further configured to receive a dynamic host configuration protocol (DHCP) request from the destination device, the DHCP request including the first domain name. ​ The network interface is further configured to send a DHCP response to the destination device, the DHCP response comprising the first private IP address allocated to the destination device by the ONT.

15. The ONT of claim 12 or 13, wherein, The network interface is further configured to receive a first message from the destination device, the first message comprising the first domain name and the first private IP address.

16. The ONT according to any one of claims 12 to 15, characterized by, The ONT further comprises a processor; The network interface is further configured to send a probe request to the destination device; If a probe response is not received within a specified time, the processor is configured to delete or mark as invalid the correspondence between the first domain name and the first private IP address.

17. A user equipment, comprising: Comprising a receiver and a transmitter, wherein: The transmitter is configured to send a domain name service (DNS) query message to an optical network terminal (ONT), the DNS query message containing a first domain name of a destination device; the user device and the destination device being in the same local area network (LAN); The receiver is configured to receive a first DNS response message from the ONT, the first DNS response message containing a first private Internet Protocol (IP) address of the destination device; the first private IP address being obtained by the ONT from a correspondence between domain names and private IP addresses stored locally by the ONT according to the first domain name; the first private IP address being used by the user device to send a first service message to the destination device.

18. The user device of claim 17, wherein, The receiver is further configured to receive a second DNS response message from the ONT, the second DNS response message containing a first public IP address of the destination device; The first public IP address being obtained by the ONT from a DNS server according to the first domain name; the first public IP address being used by the user device to send a second service message to the destination device.

19. The user equipment of claim 17 or 18, wherein, The user device has a first application installed therein, and further comprises a processor; The first application is configured to generate the first service message; When the IP address corresponding to the first domain name obtained by the user device is a private IP address, the processor is configured to determine a first functional state; When the IP address corresponding to the first domain name obtained by the user device is a public IP address, the processor is configured to determine a second functional state.

20. The user equipment of claim 19, wherein, The user device further comprises a display screen; In the first functional state, the display screen is configured to show that the first application is in a high-speed channel, and in the second functional state, the display screen is configured to show that the first application is not in a high-speed channel.

Citation Information

Patent Citations

  • Method, device and system for vicariously managing ONU (Optical Network Unit) by OLT (Optical Line Terminal)

    CN102149024A

  • Automatic configuration method and system of ONT

    CN106888408A