WO2012109917A1 - 网络中的报文转发方法、装置和系统 - Google Patents

网络中的报文转发方法、装置和系统 Download PDF

Info

Publication number
WO2012109917A1
WO2012109917A1 PCT/CN2011/081381 CN2011081381W WO2012109917A1 WO 2012109917 A1 WO2012109917 A1 WO 2012109917A1 CN 2011081381 W CN2011081381 W CN 2011081381W WO 2012109917 A1 WO2012109917 A1 WO 2012109917A1
Authority
WO
WIPO (PCT)
Prior art keywords
dns
information
forwarding policy
dns server
request packet
Prior art date
Application number
PCT/CN2011/081381
Other languages
English (en)
French (fr)
Inventor
王琪
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012109917A1 publication Critical patent/WO2012109917A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4552Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a packet forwarding method, apparatus, and system in a network.
  • the home network refers to a family information platform that integrates the home control network and the multimedia information network. It implements information equipment, communication equipment, entertainment equipment, household appliances, automation equipment, lighting equipment, monitoring equipment, water and electricity heat in the family.
  • a system for interconnecting and managing devices such as table devices, and for sharing data and multimedia information.
  • the home network system constitutes an intelligent family device, which improves the quality of family life, study, work and entertainment, and is the development direction of the digital family.
  • Customer Premise Equipment such as PC, mobile phone, set-top box (STB), etc.
  • HGW Home Gateway
  • DNS Domain Name System
  • an embodiment of the present invention provides a method, a device, and a system for forwarding a packet in a network, so that each CPE in the home network can more flexibly access multiple services provided by the operator, thereby improving the service experience of the user.
  • an embodiment of the present invention provides a packet forwarding method in a network, where the network includes a client device, an access device, and a DNS server, and the client device passes the access device and the Multiple DNS servers are connected, and the method includes:
  • An embodiment of the present invention provides an access device, where the access device is connected to a client device and multiple DNS servers, and the access device includes:
  • a user side interface configured to receive a DNS request packet of the client device
  • a matching module configured to extract the matching information from the DNS request packet according to the pre-configured DNS forwarding policy, and obtain the DNS server information corresponding to the matching information according to the DNS forwarding policy;
  • the network side interface is configured to forward the DNS request packet to a DNS server corresponding to the DNS server information.
  • An embodiment of the present invention provides a packet forwarding system, where the system includes a client device, an access device, and multiple DNS servers, the access device and the client device, and the multiple DNSs.
  • the server is connected to the access device, and the access device is configured to receive a DNS request packet of the client device, extract the matching information from the DNS request packet according to the pre-configured DNS forwarding policy, and obtain the foregoing according to the DNS forwarding policy. Matching the DNS server information corresponding to the information; sending the DNS request message to the DNS server corresponding to the DNS server information.
  • the packet forwarding method, device, and system in the network provided by the embodiments of the present invention may select different DNS servers according to different types of DNS request packets, but do not limit them to a fixed DNS server, and implement the home network.
  • Each CPE can access multiple services provided by the operator more flexibly. For example, the same CPE can access different service networks at the same time, which improves the user experience.
  • FIG. 1 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network architecture according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a packet in a network according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention
  • Schematic diagram of the structure of the access device
  • FIG. 9 is a schematic structural diagram of an access device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network architecture according to an embodiment of the present invention.
  • the network may specifically include a client device, an access device, and multiple DNS servers, where the access device may be an Optical Line Terminal (OLT), and the terminal device may be a PC and/or Or STB, etc.
  • OLT Optical Line Terminal
  • Step 101 After receiving the DNS request packet of the client device, the access device obtains the matching information from the DNS request packet according to the pre-configured DNS forwarding policy.
  • the DNS forwarding policy in this embodiment may include a domain name classification and forwarding policy, a Session Initiation Protocol (hereinafter referred to as SIP) classification and forwarding policy, a virtual local area network (Virtual Local Area Network (hereinafter referred to as VLAN) classification and forwarding policy, and an Ethernet Network (Ethernet; hereinafter referred to as: ETH) port classification forwarding policy and media access control (Media Access Control; hereinafter referred to as MAC) address classification forwarding policy.
  • SIP Session Initiation Protocol
  • VLAN Virtual Local Area Network
  • ETH Ethernet Network
  • MAC Media Access Control
  • the DNS forwarding policy can be pre-configured by the network management system (hereinafter referred to as NMS) according to the actual requirements, and the configured DNS forwarding policy is pre-delivered to the access device and activated.
  • NMS network management system
  • the matching information is extracted from the DNS request packet according to the DNS forwarding policy, which may be:
  • the pre-configured DNS forwarding policy is a domain name classification forwarding policy
  • the access device extracts the domain name information from the DNS request packet as the matching information.
  • the access device When the pre-configured DNS forwarding policy is a SIP classification forwarding policy, the access device extracts the IP address information from the DNS request as the matching information.
  • the access device When the pre-configured DNS forwarding policy is a VLAN classification forwarding policy, the access device extracts the VLAN identification information from the DNS request packet as the matching information.
  • the access device extracts port information from the DNS request packet as matching information.
  • Step 105 The access device acquires the DNS server information corresponding to the matching information according to the pre-configured DNS forwarding policy.
  • the access device After receiving the DNS request packet sent by each CPE, the access device extracts the matching information from the DNS request packet according to the configured DNS forwarding policy, and performs matching processing on the matching information according to the DNS forwarding policy, thereby obtaining the DNS server information corresponding to the DNS request packet.
  • Step 110 The access device forwards the DNS request packet to the DNS server corresponding to the DNS server information.
  • the DNS server information may be specifically an IP address of the DNS server, and the access device forwards the DNS request packet to the corresponding DNS server according to the DNS server information, so as to flexibly forward the DNS request packet.
  • the DNS request packet is forwarded to a different DNS server according to the pre-configured DNS forwarding policy, and is not limited to a fixed DNS server, so that each CPE in the home network can access the provider more flexibly.
  • a variety of services, such as the same CPE, can access different service networks at the same time, improving the user experience.
  • An embodiment of the present invention provides a packet forwarding method in a network.
  • FIG. 3 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention. The method provided in this embodiment may specifically include the following steps:
  • Step 301 The NMS sends a DNS forwarding policy to the access device, and activates the DNS forwarding policy.
  • each flexibly configured DNS forwarding policy is configured on the NMS, and then
  • the NMS sends the configured DNS forwarding policy to the access device.
  • the DNS forwarding policy in this embodiment is a domain name classification and forwarding policy.
  • the NMS sends the configured domain name classification and forwarding policy to the access device, and activates the domain name classification and forwarding policy delivered to the access device.
  • the domain name classification and forwarding policy can be flexibly added, and the matching and matching can be performed according to the longest matching principle, or the corresponding DNS server can be matched according to the ending information of the domain name, for example, the domain name ending with ".com” Corresponding to DNS server 1, the domain name ending with ".voip.ctc" corresponds to DNS server 2, and the domain name ending with ".iptv.ctc" points to DNS server 3.
  • Step 302 The access device acquires an IP address of the DNS server from the upstream server.
  • the DNS server information in this step is the IP address of each DNS server.
  • Step 303 The access device configures an IP address of a DNS server on each client terminal device as its own IP address.
  • the access device in this embodiment interacts with the client through the Dynamic Host Configuration Protocol (DHCP) and configures the IP address of the DNS server on the client device as itself. IP address.
  • DHCP Dynamic Host Configuration Protocol
  • Step 304 The access device captures a DNS request packet sent by the client device, and extracts corresponding domain name information from the received DNS request packet.
  • the HGW captures the DNS request packet sent by the client device, and extracts the domain name information carried in the DNS request packet as the matching information.
  • Step 305 The access device performs matching processing on the domain name information according to the pre-configured domain name classification forwarding policy, and obtains the DNS server information corresponding to the domain name information.
  • the access device performs the matching process on the obtained domain name information according to the configured domain name classification and forwarding policy, and obtains the DNS server information corresponding to the domain name information by matching, where the DNS server information is specifically the IP address of the DNS server.
  • the IP address of the DNS server corresponding to each DNS request packet can be obtained.
  • Step 306 The access device forwards the DNS request packet to the corresponding DNS server.
  • the access device After the IP address of the corresponding DNS server is obtained through the above steps, the access device forwards the captured DNS request packet to the DNS server to implement flexible forwarding of the packet.
  • the DNS request packet is matched by the pre-configured domain name classification and forwarding policy, and the IP address of the corresponding DNS server is obtained according to the matching result, and the DNS request packet is forwarded to the corresponding DNS according to the IP address of the DNS server.
  • the server is configured to implement access to the corresponding service network.
  • This embodiment selects different DNS servers according to different types of DNS request packets, but does not limit it to a fixed DNS server, and implements each CPE in the home network. You can access multiple services provided by the carrier more flexibly. For example, the same CPE can access different service networks at the same time, which improves the user experience.
  • FIG. 4 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention.
  • the method provided in this embodiment may specifically include the following steps:
  • Step 401 The NMS sends a DNS forwarding policy to the access device, and activates the DNS forwarding policy.
  • each of the flexibly configured DNS forwarding policies is configured on the NMS, and then the NMS sends the configured DNS forwarding policy to the access device.
  • the DNS forwarding policy in this embodiment is specifically a SIP classification and forwarding policy.
  • the NMS sends the configured SIP classification and forwarding policy to the access device, and activates the SIP classification and forwarding policy delivered to the access device.
  • the SIP classification forwarding policy may specifically match the corresponding DNS server according to the IP address segment where the IP address is located, for example, the DNS request packet from the IP address segment 192.168.1.2-192.168.1.10 corresponds to the DNS.
  • Server 1 the DNS request message from the IP address segment 192.168.1.11-192.168.1.20 corresponds to the DNS server 2.
  • Step 402 The access device obtains the IP address of the DNS server from the upstream server. This step is similar to the foregoing step 302, and details are not described herein.
  • Step 403 The access device configures the IP address of the DNS server on each client terminal device as its own IP address. This step is similar to the previous step 303, and details are not described herein.
  • Step 404 The access device captures a DNS request packet sent by the client device, and extracts corresponding IP address information from the received DNS request.
  • DNS request messages can be captured by the access device.
  • the access device captures the DNS request packet sent by the client device, and extracts the IP address carried in the DNS request packet.
  • the IP address can be the IP address of the client device.
  • Step 405 The access device performs matching processing on the IP address information according to the pre-configured SIP classification forwarding policy, and obtains the DNS server information corresponding to the IP address information.
  • the access device performs matching processing on the obtained IP address information according to the configured SIP classification and forwarding policy, and obtains the DNS server information corresponding to the IP address information by matching, where the DNS is located.
  • the server information is specifically the IP address of the DNS server.
  • the IP address of the DNS server corresponding to each DNS request packet can be obtained through matching.
  • Step 406 The access device forwards the DNS request packet to the corresponding DNS server. This step is similar to the step 306, and is not described here.
  • the pre-configured SIP classification forwarding policy pair is used in this embodiment.
  • the DNS request packet is matched, and the IP address of the corresponding DNS server is obtained according to the matching result. Then, the DNS request packet is forwarded to the corresponding DNS server according to the IP address of the DNS server, so as to implement access to the corresponding service network.
  • This embodiment selects different DNS servers according to different types of DNS requests, but does not limit it to a fixed DNS server, so that each CPE in the home network can more flexibly access multiple types provided by the operator. Services, such as the same CPE, can access different service networks at the same time, improving the user's service experience.
  • FIG. 5 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention. The method provided may include the following steps:
  • Step 501 The NMS sends a DNS forwarding policy to the access device, and activates the DNS forwarding policy.
  • the DNS forwarding policy in this embodiment is specifically a VLAN classification and forwarding policy.
  • the NMS sends the configured VLAN classification and forwarding policy to the access device, and activates the VLAN classification and forwarding policy delivered to the access device.
  • the VLAN classification forwarding policy may specifically match the corresponding DNS server according to the VLAN identifier (tag) used by the client device.
  • the DNS request packet with the VLAN tag number 10 corresponds to the DNS server 1 and the VLAN.
  • the DNS request packet with a tag of 20 corresponds to the DNS server 2
  • the DNS request packet with the VLAN tag of 30 corresponds to the DNS server 3.
  • Step 502 The access device obtains the IP address of the DNS server from the upstream server. This step may be similar to the foregoing step 302, and details are not described herein again.
  • Step 503 The access device configures the IP address of the DNS server on each client terminal device as its own IP address. This step is similar to the step 303, and is not described here.
  • Step 504 The access device captures a DNS request packet sent by the client device, and extracts corresponding VLAN tag information from the received DNS request.
  • the DNS request packet of the client device can be captured by the access device.
  • the access device captures the DNS request packet sent by the client device, and extracts the VLAN tag information carried in the DNS request packet.
  • the different client device types use different VLANs, and correspondingly have different VLAN tag information.
  • the VLAN tag information carried in the packets from the PC is 10
  • the VLAN tag information carried in the packets from the STB is 30. .
  • Step 505 The access device performs matching processing on the VLAN tag information according to the pre-configured VLAN classification forwarding policy, and obtains the DNS server information corresponding to the VLAN tag information.
  • the access device performs the matching process on the obtained VLAN tag information according to the configured VLAN classification forwarding policy, and obtains the DNS server information corresponding to the VLAN tag information by matching, where the DNS server information is specifically the IP address of the DNS server.
  • the IP address of the DNS server corresponding to each DNS request packet can be obtained through matching.
  • Step 506 The access device forwards the DNS request packet to the corresponding DNS server. This step is similar to the step 306, and is not described here.
  • the packet forwarding method in the network provided by the embodiment, after receiving the DNS request packet, performs matching processing on the DNS request packet through the pre-configured VLAN classification forwarding policy, according to the matching result. Obtain the IP address of the corresponding DNS server, and then forward the DNS request packet to the corresponding DNS server according to the IP address of the DNS server to implement access to the corresponding service network.
  • This embodiment reports the DNS request according to different types.
  • the CPE can be used to access different services. , improve the user's business experience.
  • FIG. 6 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention, which may specifically include the following steps:
  • Step 601 The NMS sends a DNS forwarding policy to the access device, and activates the DNS forwarding policy.
  • the flexible configuration of the DNS forwarding policy is configured on the NMS, and then the NMS sends the configured DNS forwarding policy to the access device.
  • the DNS forwarding policy in this embodiment is an ETH port classification and forwarding policy.
  • the NMS sends the configured ETH port classification and forwarding policy to the access device, and activates the ETH port classification and forwarding policy.
  • the ETH port classification forwarding policy may specifically match the corresponding DNS server according to the ETH port where the client device is located. For example, the DNS request packet from the ETH1 port corresponds to the DNS server 1 and the DNS from the ETH2 port. The request message corresponds to the DNS server 2, and the DNS request message from the ETH3 port corresponds to the DNS server 3.
  • Step 602 The access device obtains the IP address of the DNS server from the upstream server. This step is similar to the foregoing step 302, and details are not described herein.
  • Step 603 The access device configures the IP address of the DNS server on each client terminal device as its own IP address. This step is similar to the previous step 303, and is not described here.
  • Step 604 The access device captures a DNS request packet sent by the client device, and extracts corresponding port information from the received DNS request packet.
  • the DNS request message of the client device can be captured by the access device.
  • the access device captures the DNS request packet sent by the client device, and extracts the port information carried in the DNS request packet.
  • the port type information carried in the DNS request message from the PC is the ETH1 port
  • the port information carried in the DNS request message from the STB is the ETH2 port.
  • Step 605 The access device performs matching processing on the port information according to the pre-configured ETH port classification forwarding policy, and obtains the DNS server information corresponding to the port information.
  • the access device performs the matching process on the obtained port information according to the configured ETH port classification and forwarding policy, and obtains the DNS server information corresponding to the port information by matching, where the DNS server information is specifically the IP address of the DNS server.
  • the IP address of the DNS server corresponding to each DNS request packet can be obtained through matching.
  • Step 606 The access device forwards the DNS request packet to the corresponding DNS server. This step is similar to the step 306, and is not described here.
  • the packet forwarding method in the network provided by the embodiment, after receiving the DNS request packet, performs matching processing on the DNS request packet through the pre-configured ETH port classification forwarding policy, and obtains the IP address of the corresponding DNS server according to the matching result. The address is forwarded to the corresponding DNS server according to the IP address of the DNS server to implement access to the corresponding service network.
  • This embodiment selects different DNS servers according to different types of DNS request packets.
  • the CPE in the home network can access multiple services provided by the operator more flexibly, for example, the same CPE can access different service networks at the same time, thereby improving the user experience. .
  • FIG. 7 is a flowchart of a packet forwarding method in a network according to an embodiment of the present invention, which may specifically include the following steps: Step 701: The NMS sends a DNS forwarding policy to the access device, and activates the DNS forwarding policy.
  • each of the flexibly configured DNS forwarding policies is configured on the NMS, and then the NMS sends the configured DNS forwarding policy to the access device.
  • the DNS forwarding policy in this embodiment is specifically a MAC address classification and forwarding policy, and the NMS sends the configured MAC address classification and forwarding policy to the access device, and activates the MAC address classification and forwarding policy.
  • the classification forwarding policy may specifically match the corresponding DNS server according to the MAC address of the client device, for example, the DNS request packet with the MAC address 00-E0-4C-XX-XX corresponds to the DNS server 1
  • the DNS request message with the MAC address 00-25-9E-XX-XX corresponds to the DNS server 2.
  • Step 702 The access device obtains the IP address of the DNS server from the upstream server. This step is similar to the foregoing step 302, and details are not described herein.
  • Step 703 The access device configures the IP address of the DNS server on each client terminal device as its own IP address. This step is similar to the step 303, and is not described here.
  • Step 704 The access device captures a DNS request packet sent by the client device, and extracts corresponding MAC information from the received DNS request packet.
  • the DNS request packet of the client device can be captured by the access device.
  • the access device captures the DNS request packet sent by the client device, and extracts the MAC address carried in the DNS request packet.
  • different client devices have different MAC addresses.
  • Step 705 The access device performs a matching process on the MAC address according to the pre-configured MAC address classification forwarding policy, and obtains the DNS server information corresponding to the MAC address.
  • the access device performs matching processing on the obtained port information according to the configured MAC address classification and forwarding policy, and obtains the DNS server information corresponding to the MAC address by matching, where
  • the DNS server information is specifically the IP address of the DNS server.
  • the IP address of the DNS server corresponding to each DNS request packet can be obtained through matching.
  • Step 706 The access device forwards the DNS request packet to the corresponding DNS server. This step is similar to the step 306, and is not described here.
  • the packet forwarding method in the network provided by the embodiment, after receiving the DNS request packet, performs matching processing on the DNS request packet through the pre-configured MAC address classification and forwarding policy, and obtains the IP address of the corresponding DNS server according to the matching result. The address is forwarded to the corresponding DNS server according to the IP address of the DNS server to implement access to the corresponding service network.
  • This embodiment selects different DNS servers according to different types of DNS request packets.
  • the CPE in the home network can access multiple services provided by the operator more flexibly, for example, the same CPE can access different service networks at the same time, thereby improving the user experience. .
  • FIG. 8 is a schematic structural diagram of an access device according to an embodiment of the present invention.
  • the access device provided in this embodiment may specifically perform the steps in the first embodiment of the foregoing method. I will not repeat them here.
  • the access device may be connected to the client device and multiple domain name DNS servers, and may specifically include a user side interface 800, a matching module 801, and a network side interface 802.
  • the user side interface 800 is configured to receive a request message of the client device.
  • the matching module 801 is configured to use the pre-configured DNS forwarding policy from the DNS request packet.
  • the matching information is extracted, and the DNS server information corresponding to the matching information is obtained according to the DNS forwarding policy.
  • the network side interface 802 is configured to forward the DNS request message to a DNS server corresponding to the DNS server information.
  • FIG. 9 is a schematic structural diagram of an access device according to an embodiment of the present invention.
  • the matching module 801 in this embodiment may specifically include an extracting unit 811 and an obtaining unit 812.
  • the extracting unit 811 is configured to extract corresponding domain name information from the received DNS request message.
  • the obtaining unit 812 is configured to obtain the DNS server information corresponding to the domain name information according to the pre-configured domain name classification forwarding policy.
  • the extracting unit 811 is configured to extract corresponding IP address information from the received DNS request message.
  • the obtaining unit 812 is configured to obtain the DNS server information corresponding to the IP address information according to the pre-configured session initial protocol SIP classification forwarding policy.
  • the extracting unit 811 is configured to extract corresponding virtual local area network VLAN identification information from the received DNS request message.
  • the obtaining unit 812 is configured to obtain the DNS server information corresponding to the VLAN identification information according to the pre-configured VLAN classification forwarding policy.
  • the extracting unit 811 is configured to extract corresponding port information from the received DNS request message.
  • the obtaining unit 812 is configured to obtain the DNS server information corresponding to the port information according to the pre-configured ETH port classification forwarding policy.
  • the extracting unit 811 is configured to extract corresponding media access control MAC address information from the received DNS request message.
  • the obtaining unit 812 is configured to obtain the DNS server corresponding to the MAC address information according to the pre-configured MAC address classification forwarding policy.
  • the access device provided in this embodiment may select different according to different types of DNS requests.
  • the DNS server is not limited to a fixed DNS server, so that each CPE in the home network can more flexibly access multiple services provided by the operator. For example, the same CPE can simultaneously access different service networks, thereby improving users. Business experience.
  • the embodiment further provides a packet forwarding system, which may specifically include a client device, an access device, and multiple domain name system DNS servers, where the access device is connected to the client device and multiple DNS servers, where The device is configured to receive a DNS request packet of the client device, extract the matching information from the DNS request packet according to the pre-configured DNS forwarding policy, and obtain the DNS server corresponding to the matching information according to the DNS forwarding policy. The information is sent to the DNS server corresponding to the DNS server information.
  • a packet forwarding system may specifically include a client device, an access device, and multiple domain name system DNS servers, where the access device is connected to the client device and multiple DNS servers, where The device is configured to receive a DNS request packet of the client device, extract the matching information from the DNS request packet according to the pre-configured DNS forwarding policy, and obtain the DNS server corresponding to the matching information according to the DNS forwarding policy. The information is sent to the DNS server corresponding to the DNS server information.
  • the medium can be a read only memory, a random access memory, a magnetic or optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种网络中的报文转发方法、装置和系统,网络包括客户端设备、接入设备和多个DNS服务器,客户端设备通过所述接入设备与多个DNS服务器相连,方法包括:接收客户端设备的DNS请求报文;根据预先配置的DNS转发策略从DNS请求报文中提取匹配信息,并根据DNS转发策略获取匹配信息对应的DNS服务器信息;将DNS请求报文发送给DNS服务器信息对应的DNS服务器上。本实施例还提供了一种接入设备和报文转发系统。本实施例实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务。

Description

网絡中的报文转发方法、 装置和系统
本申请要求于 2011年 2月 18日提交中国专利局、申请号为 201110040565.9、 发明名称为"网络中的报文转发方法、装置和系统"的中国专利申请的优先权,其 全部内容通过引用结合在本申请中。 技术领域
本发明实施例涉及通信技术, 尤其涉及一种网络中的报文转发方法、 装置 和系统。
背景技术
家庭网络是指融合家庭控制网络和多媒体信息网络于一体的家庭信息化平 台, 是在家庭范围内实现信息设备、 通信设备、 娱乐设备、 家用电器、 自动化 设备、 照明设备、 监控装置、 水电气热表设备等设备的互连和管理, 以及数据 和多媒体信息共享的系统。 家庭网络系统构成了智能化家庭设备, 提高了家庭 生活、 学习、 工作、 娱乐的品质, 是数字化家庭的发展方向。 在家庭网络的多 业务融合场景中, 家庭内各种客户终端设备 ( Customer Premise Equipment; 以 下简称: CPE ), 如 PC、 手机、 机顶盒(Set Top Box; 以下简称: STB )等, 需 要能访问运营商提供的多种业务, 以形成融合方便的业务体验。 且绝大部分运 营商使用不同的虚拟专用网络( Virtual Private Network; 以下简称: VPN )来实 现不同的业务。 在现有技术中, 家庭网关 (Home Gateway; 以下简称: HGW )针对 CPE 的不同类型来提供不同的域名系统(Domain Name System; 以下简称: DNS ) 服务器, 使得不同的 CPE能够访问不同的业务网络。 然而,现有技术中同一个 CPE中的所有业务固定选择一个 DNS服务器,无 法根据业务类型来选择不同的 DNS服务器, 使得用户不能对多业务网络进行方 便地访问, 灵活性较低, 大大降低了融合方便的业务体验。
发明内容
本发明实施例在于提供一种网络中的报文转发方法、 装置和系统, 实现 家庭网络中的各 CPE可以更灵活地访问运营商提供的多种业务,提高用户的 业务体验。 为了实现上述目的, 本发明实施例提供了一种网络中的报文转发方法, 所 述网络包括客户端设备、 接入设备和 DNS服务器, 所述客户端设备通过所述接 入设备与所述多个 DNS服务器相连, 所述方法包括:
接收客户端设备的 DNS请求报文;
根据预先配置的 DNS转发策略从所述 DNS请求报文中提取匹配信息, 并 根据所述 DNS转发策略获取所述匹配信息对应的 DNS服务器信息;
将所述 DNS请求报文发送给所述 DNS服务器信息对应的 DNS服务器上。 本发明实施例提供了一种接入设备, 所述接入设备连接客户端设备以及多 个 DNS服务器, 所述接入设备包括:
用户侧接口, 用于接收客户端设备的 DNS请求报文;
匹配模块, 用于根据预先配置的 DNS转发策略从所述 DNS请求报文中提 取匹配信息, 并根据所述 DNS转发策略获取所述匹配信息对应的 DNS服务器 信息;
网络侧接口, 用于将所述 DNS请求报文转发到所述 DNS服务器信息对应 的 DNS服务器上。
本发明实施例提供了一种报文转发系统, 所述系统包括客户端设备、 接入 设备和多个 DNS服务器, 所述接入设备与所述客户端设备以及所述多个 DNS 服务器相连, 所述接入设备, 用于接收客户端设备的 DNS请求报文, 根据预先 配置的 DNS转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS 转发策略获取所述匹配信息对应的 DNS服务器信息; 将所述 DNS请求报文发 送给所述 DNS服务器信息对应的 DNS服务器上。 本发明实施例提供的网络中的报文转发方法、装置和系统,可以根据不同类 型的 DNS请求报文来选择不同的 DNS服务器, 而未将其限定为固定的 DNS服 务器, 实现了家庭网络中的各 CPE可以更灵活地访问运营商提供的多种业务,如 同一 CPE可以同时访问不同的业务网络, 提高了用户的业务体验。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明一个实施例提供的网络中的报文转发方法的流程图; 图 2为本发明实施例提供的网络架构的示意图; 图 3为本发明一个实施例提供的网络中的报文转发方法的流程图; 图 4为本发明一个实施例提供的网络中的报文转发方法的流程图; 图 5为本发明一个实施例提供的网络中的报文转发方法的流程图; 图 6为本发明一个实施例提供的网络中的报文转发方法的流程图; 图 7为本发明一个实施例提供的网络中的报文转发方法的流程图; 图 8为本发明一个实施例提供的接入设备的结构示意图;
图 9为本发明一个实施例提供的接入设备的结构示意图。
具体实施例 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
本发明实施例提供一种网络中的报文转发方法, 图 1为本发明一个实施例 提供的网络中的报文转发方法的流程图, 图 2为本发明实施例所提供的网络架 构的示意图, 如图 2所示, 该网络可以具体包括客户端设备、 接入设备和多个 DNS服务器,其中,接入设备可以是光线路终端 ( Optical Line Terminal, OLT ) , 终端设备可以是 PC和 /或 STB等。
本实施例提供的方法可以具体包括如下步骤:
步骤 101 , 接入设备接收到客户端设备的 DNS请求报文后, 根据预先配置 的 DNS转发策略从 DNS请求报文中获取匹配信息。
本实施例中的 DNS 转发策略可以包括域名分类转发策略、 会话初始协议 ( Session Initiation Protocol; 以下简称: SIP )分类转发策略、虚拟局域网( Virtual Local Area Network; 以下简称: VLAN )分类转发策略、 以太网 (Ethernet; 以 下简称: ETH )端口分类转发策略和介质访问控制( Media Access Control; 以下 简称: MAC )地址分类转发策略。
DNS转发策略可以由网络管理系统( Network Management System; 以下简 称: NMS )根据实际需要进行预先配置, 并将配置的 DNS转发策略预先下发到 接入设备, 并对其进行激活。
本步骤中根据 DNS转发策略从 DNS请求报文中提取匹配信息具体可以是: 当预先配置的 DNS转发策略为域名分类转发策略时, 接入设备从 DNS请 求报文中提取域名信息作为匹配信息;
当预先配置的 DNS转发策略为 SIP分类转发策略时, 接入设备从 DNS请 求 中提取 IP地址信息作为匹配信息;
当预先配置的 DNS转发策略为 VLAN分类转发策略时, 接入设备从 DNS 请求报文中提取 VLAN标识信息作为匹配信息;
当预先配置的 DNS转发策略为 ETH端口分类转发策略时,接入设备从 DNS 请求报文中提取端口信息作为匹配信息。
步骤 105, 接入设备根据所述预先配置的 DNS转发策略获取所述匹配信息 对应的 DNS服务器信息。
本步骤为接入设备在接收到各 CPE发送的 DNS请求报文后, 根据配置的 DNS转发策略从 DNS请求报文中提取匹配信息, 并根据 DNS转发策略对匹配 信息进行匹配处理, 进而得到该 DNS请求报文对应的 DNS服务器信息。
步骤 110, 接入设备将 DNS请求报文转发到 DNS服务器信息对应的 DNS 服务器上。
该 DNS服务器信息可以具体为 DNS服务器的 IP地址,接入设备根据该 DNS 服务器信息将该 DNS请求报文转发到对应的 DNS服务器上, 实现 DNS请求报 文的灵活转发。
本实施例根据预先配置的 DNS转发策略将 DNS请求报文转发给不同的 DNS 服务器, 而未将其限定为固定的 DNS服务器, 实现了家庭网络中的各 CPE可以 更灵活地访问运营商提供的多种业务, 如同一 CPE可以同时访问不同的业务网 络, 提高了用户的业务体验。 本发明一个实施例提供一种网络中的报文转发方法, 图 3为本发明一个实 施例提供的网络中的报文转发方法的流程图, 本实施例提供的方法可以具体包 括如下步骤:
步骤 301 , NMS向接入设备下发 DNS转发策略, 并激活该 DNS转发策略。 在本实施例中, 各灵活配置的 DNS转发策略在 NMS上进行配置, 然后由
NMS将配置的 DNS转发策略下发到接入设备。 本实施例中的 DNS转发策略具 体为域名分类转发策略, NMS将配置的域名分类转发策略下发到接入设备, 并 激活下发到接入设备上的域名分类转发策略。 在本实施例中, 域名分类转发策 略可以灵活添加, 可以按照最长匹配原则进行查找匹配, 也可以具体为根据域 名的结尾信息来匹配对应的 DNS服务器, 如以 ".com" 结尾的域名则对应指向 DNS 服务器 1 ,以 ".voip.ctc"结尾的域名则对应指向 DNS服务器 2,以 ".iptv.ctc" 结尾的域名则指向 DNS服务器 3。
步骤 302, 接入设备从上游服务器获取 DNS服务器的 IP地址。
本步骤中的 DNS服务器信息为各 DNS服务器的 IP地址。
步骤 303 ,接入设备将各客户终端设备上的 DNS服务器的 IP地址配置为自 身的 IP地址。
在客户端上线后, 本实施例中的接入设备通过动态主机配置协议 ( Dynamic Host Configuration Protocol; 以下简称: DHCP )和客户端进行交互, 将客户端 设备上的 DNS服务器的 IP地址配置为自身的 IP地址。
步骤 304 ,接入设备捕获客户端设备发出的 DNS请求报文,从接收到的 DNS 请求报文中提取对应的域名信息。
通过上述对客户端设备中 DNS 服务器的地址的配置, 使得客户端设备的 DNS请求报文可以被接入设备捕获。 HGW捕获到客户端设备发出的 DNS请求 报文, 从该 DNS请求报文中提取其中携带的域名信息作为匹配信息。
步骤 305,接入设备根据预先配置的域名分类转发策略对域名信息进行匹配 处理, 并获取所述域名信息对应的 DNS服务器信息。
本步骤为接入设备根据配置的域名分类转发策略对获取到的域名信息进行 匹配处理, 通过匹配获取到域名信息对应的 DNS服务器信息, 此处的 DNS服 务器信息具体为 DNS服务器的 IP地址, 通过匹配可以获取到各 DNS请求报文 对应的 DNS服务器的 IP地址。
步骤 306, 接入设备将 DNS请求报文转发到对应的 DNS服务器上。
在通过上述步骤获取到对应的 DNS服务器的 IP地址后, 接入设备将捕获到 的 DNS请求报文转发到该 DNS服务器上, 实现报文的灵活转发。
本实施例通过预先配置的域名分类转发策略对 DNS请求报文进行匹配处理, 根据匹配结果获取对应的 DNS服务器的 IP地址, 再根据该 DNS服务器的 IP地 址将 DNS请求报文转发到对应的 DNS服务器上, 以实现对相应的业务网络的访 问; 本实施例根据不同类型的 DNS请求报文来选择不同的 DNS服务器, 而未将 其限定为固定的 DNS服务器, 实现了家庭网络中的各 CPE可以更灵活地访问运 营商提供的多种业务,如同一 CPE可以同时访问不同的业务网络,提高了用户的 业务体验。
本发明一个实施例提供一种网络中的报文转发方法, 图 4为本发明一个实 施例提供的网络中的报文转发方法的流程图, 本实施例提供的方法可以具体包 括如下步骤:
步骤 401 , NMS向接入设备下发 DNS转发策略, 并激活该 DNS转发策略。 在本实施例中, 各灵活配置的 DNS转发策略在 NMS上进行配置, 然后由 NMS将配置的 DNS转发策略下发到接入设备。 本实施例中的 DNS转发策略具 体为 SIP分类转发策略, NMS将配置的 SIP分类转发策略下发到接入设备, 并 激活下发到接入设备上的 SIP分类转发策略。 在本实施例中, SIP分类转发策略 可以具体为根据 IP地址所处的 IP地址段来匹配对应的 DNS服务器, 如来自 IP 地址段 192.168.1.2-192.168.1.10的 DNS请求报文则对应指向 DNS 服务器 1 ,来 自 IP地址段 192.168.1.11-192.168.1.20的 DNS请求报文则对应指向 DNS服务器 2。
步骤 402, 接入设备从上游服务器获取 DNS服务器的 IP地址, 本步骤可以 与上述步骤 302类似, 此处不再赘述。
步骤 403 ,接入设备将各客户终端设备上的 DNS服务器的 IP地址配置为自 身的 IP地址, 本步骤可以与上述步骤 303类似, 此处不再赘述。
步骤 404 ,接入设备捕获客户端设备发出的 DNS请求报文,从接收到的 DNS 请求 中提取对应的 IP地址信息。
通过上述对客户端设备中 DNS 服务器的地址的配置, 使得客户端设备的
DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的 DNS请 求报文, 从该 DNS请求报文中提取其中携带的 IP地址, 该 IP地址可以为客户 端设备的 IP地址。
步骤 405 , 接入设备根据预先配置的 SIP分类转发策略对 IP地址信息进行 匹配处理, 并获取所述 IP地址信息对应的 DNS服务器信息。
本步骤为接入设备根据配置的 SIP分类转发策略对获取到的 IP地址信息进 行匹配处理,通过匹配获取到 IP地址信息对应的 DNS服务器信息,此处的 DNS 服务器信息具体为 DNS服务器的 IP地址, 通过匹配可以获取到各 DNS请求报 文对应的 DNS服务器的 IP地址。
步骤 406, 接入设备将 DNS请求报文转发到对应的 DNS服务器上, 本步骤 可以与上述步骤 306类似, 此处不再赘述。
本实施例在接收到 DNS请求报文后, 通过预先配置的 SIP分类转发策略对
DNS请求报文进行匹配处理, 根据匹配结果获取对应的 DNS服务器的 IP地址, 再根据该 DNS服务器的 IP地址将 DNS请求报文转发到对应的 DNS服务器上, 以实现对相应的业务网络的访问; 本实施例根据不同类型的 DNS请求 4艮文来选 择不同的 DNS服务器, 而未将其限定为固定的 DNS服务器, 实现了家庭网络中 的各 CPE可以更灵活地访问运营商提供的多种业务, 如同一 CPE可以同时访问 不同的业务网络, 提高了用户的业务体验。
本发明一个实施例提供一种网络中的报文转发方法, 图 5为本发明一个实 施例提供的网络中的报文转发方法的流程图, 所提供的方法可以具体包括如下 步骤:
步骤 501 , NMS向接入设备下发 DNS转发策略, 并激活该 DNS转发策略。 本实施例中的 DNS转发策略具体为 VLAN分类转发策略, NMS将配置的 VLAN分类转发策略下发到接入设备, 并激活下发到接入设备上的 VLAN分类 转发策略。 在本实施例中, VLAN分类转发策略可以具体为根据客户端设备所 使用的 VLAN标识( tag )来匹配对应的 DNS服务器,如 VLAN tag为 10的 DNS 请求报文则对应指向 DNS 服务器 1 , VLAN tag为 20的 DNS请求报文则对应 指向 DNS服务器 2, VLAN tag为 30的 DNS请求报文则对应指向 DNS服务器 3。 步骤 502, 接入设备从上游服务器获取 DNS服务器的 IP地址, 本步骤可以 与上述步骤 302类似, 此处不再赘述。
步骤 503 ,接入设备将各客户终端设备上的 DNS服务器的 IP地址配置为自 身的 IP地址, 本步骤可以与上述步骤 303类似, 此处不再赘述。
步骤 504 ,接入设备捕获客户端设备发出的 DNS请求报文,从接收到的 DNS 请求 4艮文中提取对应的 VLAN tag信息。
通过上述对客户端设备中 DNS 服务器的地址的配置, 使得客户端设备的 DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的 DNS请 求报文, 从该 DNS请求报文中提取其中携带的 VLAN tag信息。 其中, 不同的 客户端设备类型使用不同的 VLAN, 相应地具备不同的 VLAN tag信息, 如来自 PC的报文中携带的 VLAN tag信息为 10, 来自 STB的报文中携带的 VLAN tag 信息为 30。
步骤 505,接入设备根据预先配置的 VLAN分类转发策略对 VLAN tag信息 进行匹配处理, 并获取所述 VLAN tag信息对应的 DNS服务器信息。
本步骤为接入设备根据配置的 VLAN分类转发策略对获取到的 VLAN tag 信息进行匹配处理, 通过匹配获取到 VLAN tag信息对应的 DNS服务器信息, 此处的 DNS服务器信息具体为 DNS服务器的 IP地址, 通过匹配可以获取到各 DNS请求报文对应的 DNS服务器的 IP地址。
步骤 506, 接入设备将 DNS请求报文转发到对应的 DNS服务器上, 本步骤 可以与上述步骤 306类似, 此处不再赘述。
本实施例提供的网络中的报文转发方法, 在接收到 DNS请求报文后, 通过 预先配置的 VLAN分类转发策略对 DNS请求报文进行匹配处理, 根据匹配结果 获取对应的 DNS服务器的 IP地址,再根据该 DNS服务器的 IP地址将 DNS请求 报文转发到对应的 DNS服务器上, 以实现对相应的业务网络的访问; 本实施例 根据不同类型的 DNS请求报文来选择不同的 DNS服务器, 而未将其限定为固定 的 DNS服务器, 实现了家庭网络中的各 CPE可以更灵活地访问运营商提供的多 种业务, 如同一 CPE可以同时访问不同的业务网络, 提高了用户的业务体验。
本发明一个实施例提供一种网络中的报文转发方法, 图 6为本发明一个实 施例提供的网络中的报文转发方法的流程图, 可以具体包括如下步骤:
步骤 601 , NMS向接入设备下发 DNS转发策略, 并激活该 DNS转发策略。 在本实施例中, 各灵活配置的 DNS转发策略在 NMS上进行配置, 然后由 NMS将配置的 DNS转发策略下发到接入设备。 本实施例中的 DNS转发策略具 体为 ETH端口分类转发策略, NMS将配置的 ETH端口分类转发策略下发到接 入设备, 并激活该 ETH端口分类转发策略。 在本实施例中, ETH端口分类转发 策略可以具体为根据客户端设备所在的 ETH端口来匹配对应的 DNS服务器, 如来自 ETH1端口的 DNS请求报文则对应指向 DNS 服务器 1 ,来自 ETH2端口 的 DNS请求报文则对应指向 DNS服务器 2, 来自 ETH3端口的 DNS请求报文 则对应指向 DNS服务器 3。
步骤 602, 接入设备从上游服务器获取 DNS服务器的 IP地址, 本步骤可以 与上述步骤 302类似, 此处不再赘述。
步骤 603 ,接入设备将各客户终端设备上的 DNS服务器的 IP地址配置为自 身的 IP地址, 本步骤可以与上述步骤 303类似, 此处不再赘述。
步骤 604 ,接入设备捕获客户端设备发出的 DNS请求报文,从接收到的 DNS 请求报文中提取对应的端口信息。 通过上述对客户端设备中 DNS 服务器的地址的配置, 使得客户端设备的 DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的 DNS请 求报文, 从该 DNS请求报文中提取其中携带的端口信息。 其中, 不同的客户端 设备类型对应不同的 ETH端口,如来自 PC的 DNS请求报文中携带的端口信息 为 ETH1端口, 来自 STB的 DNS请求 文中携带的端口信息为 ETH2端口。
步骤 605, 接入设备根据预先配置的 ETH端口分类转发策略对端口信息进 行匹配处理, 并获取所述端口信息对应的 DNS服务器信息。
本步骤为接入设备根据配置的 ETH端口分类转发策略对获取到的端口信息 进行匹配处理, 通过匹配获取到端口信息对应的 DNS服务器信息, 此处的 DNS 服务器信息具体为 DNS服务器的 IP地址, 通过匹配可以获取到各 DNS请求报 文对应的 DNS服务器的 IP地址。
步骤 606, 接入设备将 DNS请求报文转发到对应的 DNS服务器上, 本步骤 可以与上述步骤 306类似, 此处不再赘述。
本实施例提供的网络中的报文转发方法, 在接收到 DNS请求报文后, 通过 预先配置的 ETH端口分类转发策略对 DNS请求报文进行匹配处理, 根据匹配结 果获取对应的 DNS服务器的 IP地址,再根据该 DNS服务器的 IP地址将 DNS请 求报文转发到对应的 DNS服务器上, 以实现对相应的业务网络的访问; 本实施 例根据不同类型的 DNS请求报文来选择不同的 DNS服务器, 而未将其限定为固 定的 DNS服务器, 实现了家庭网络中的各 CPE可以更灵活地访问运营商提供的 多种业务, 如同一 CPE可以同时访问不同的业务网络, 提高了用户的业务体验。
本发明一个实施例提供一种网络中的报文转发方法, 图 7为本发明一个实 施例提供的网络中的报文转发方法的流程图, 可以具体包括如下步骤: 步骤 701 , NMS向接入设备下发 DNS转发策略, 并激活该 DNS转发策略。 在本实施例中, 各灵活配置的 DNS转发策略在 NMS上进行配置, 然后由 NMS将配置的 DNS转发策略下发到接入设备。 本实施例中的 DNS转发策略具 体为 MAC地址分类转发策略, NMS将配置的 MAC地址分类转发策略下发到 接入设备, 并激活该 MAC地址分类转发策略。 在本实施例中, 分类转发策略可 以具体为根据客户端设备的 MAC地址来匹配对应的 DNS服务器, 如 MAC地 址为 00-E0-4C-XX-XX的 DNS请求报文则对应指向 DNS 服务器 1 , MAC地址 为 00-25-9E-XX-XX的 DNS请求报文则对应指向 DNS服务器 2。
步骤 702, 接入设备从上游服务器获取 DNS服务器的 IP地址, 本步骤可以 与上述步骤 302类似, 此处不再赘述。
步骤 703 ,接入设备将各客户终端设备上的 DNS服务器的 IP地址配置为自 身的 IP地址, 本步骤可以与上述步骤 303类似, 此处不再赘述。
步骤 704 ,接入设备捕获客户端设备发出的 DNS请求报文,从接收到的 DNS 请求报文中提取对应的 MAC信息。
通过上述对客户端设备中 DNS 服务器的地址的配置, 使得客户端设备的 DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的 DNS请 求报文, 从该 DNS请求报文中提取其中携带的 MAC地址。 其中, 不同的客户 端设备具有不同的 MAC地址。
步骤 705 , 接入设备根据预先配置的 MAC地址分类转发策略对 MAC地址 进行匹配处理, 并获取所述 MAC地址对应的 DNS服务器信息。
本步骤为接入设备根据配置的 MAC 地址分类转发策略对获取到的端口信 息进行匹配处理, 通过匹配获取到 MAC地址对应的 DNS服务器信息, 此处的 DNS服务器信息具体为 DNS服务器的 IP地址,通过匹配可以获取到各 DNS请 求报文对应的 DNS服务器的 IP地址。
步骤 706, 接入设备将 DNS请求报文转发到对应的 DNS服务器上, 本步骤 可以与上述步骤 306类似, 此处不再赘述。
本实施例提供的网络中的报文转发方法, 在接收到 DNS请求报文后, 通过 预先配置的 MAC地址分类转发策略对 DNS请求报文进行匹配处理,根据匹配结 果获取对应的 DNS服务器的 IP地址,再根据该 DNS服务器的 IP地址将 DNS请 求报文转发到对应的 DNS服务器上, 以实现对相应的业务网络的访问; 本实施 例根据不同类型的 DNS请求报文来选择不同的 DNS服务器, 而未将其限定为固 定的 DNS服务器, 实现了家庭网络中的各 CPE可以更灵活地访问运营商提供的 多种业务, 如同一 CPE可以同时访问不同的业务网络, 提高了用户的业务体验。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以 通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介 质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包 括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。
本发明一个实施例提供一种接入设备, 图 8为本发明一个实施例提供的接入 设备的结构示意图,本实施例提供的接入设备可以具体执行上述方法实施例一中 的各个步骤, 此处不再赘述。
本实施例提供的接入设备可以连接客户端设备以及多个域名 DNS服务器, 可以具体包括用户侧接口 800、 匹配模块 801、 网络侧接口 802。
其中, 用户侧接口 800, 用于接收客户端设备的请求报文。
匹配模块 801用于根据预先配置的 DNS转发策略从所述 DNS请求报文中 提取匹配信息, 并根据所述 DNS转发策略获取所述匹配信息对应的 DNS服务 器信息。
网络侧接口 802用于将所述 DNS请求报文转发到所述 DNS服务器信息对 应的 DNS服务器上。
图 9为本发明一个实施例提供的接入设备的结构示意图, 本实施例中的匹配 模块 801可以具体包括提取单元 811和获取单元 812。
其中,提取单元 811用于从接收到的 DNS请求报文中提取对应的域名信息。 获取单元 812用于根据预先配置的域名分类转发策略获取所述域名信息对应的 DNS服务器信息。
或者,提取单元 811用于从接收到的 DNS请求报文中提取对应的 IP地址信 息。 获取单元 812用于根据预先配置的会话初始协议 SIP分类转发策略获取所 述 IP地址信息对应的 DNS服务器信息。
或者, 提取单元 811用于从接收到的 DNS请求报文中提取对应的虚拟局域 网 VLAN标识信息。 获取单元 812用于根据预先配置的 VLAN分类转发策略获 取所述 VLAN标识信息对应的 DNS服务器信息。
或者,提取单元 811用于从接收到的 DNS请求报文中提取对应的端口信息。 获取单元 812用于根据预先配置的 ETH端口分类转发策略获取所述端口信息对 应的 DNS服务器信息。
或者, 提取单元 811用于从接收到的 DNS请求报文中提取对应的介质访问 控制 MAC地址信息。 获取单元 812用于根据预先配置的 MAC地址分类转发策 略获取到所述 MAC地址信息对应的 DNS服务器。
本实施例提供的接入设备, 可以根据不同类型的 DNS请求 4艮文来选择不同 的 DNS服务器, 而未将其限定为固定的 DNS服务器, 实现了家庭网络中的各 CPE可以更灵活地访问运营商提供的多种业务, 如同一 CPE可以同时访问不同 的业务网络, 提高了用户的业务体验。
本实施例还提供了一种报文转发系统, 该系统可以具体包括客户端设备、 接入设备和多个域名系统 DNS服务器, 接入设备与客户端设备以及多个 DNS 服务器相连, 其中, 接入设备, 用于接收客户端设备的 DNS请求报文, 根据预 先配置的 DNS转发策略从所述 DNS请求报文中提取匹配信息,并根据所述 DNS 转发策略获取所述匹配信息对应的 DNS服务器信息; 将所述 DNS请求报文发 送给所述 DNS服务器信息对应的 DNS服务器上。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是 可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读 存储介质中, 上述提到的存储介质可以是只读存储器, 随机存储器、 磁盘或光 盘等。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案,而非对其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理 解: 其依然可以对前述实施例所记载的技术方案进行修改, 或者对其中部分技术 特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发 明实施例技术方案的精神和范围。

Claims

权利要求书
1、 一种网络中的报文转发方法, 其特征在于, 所述网络包括客户端设备、 接入设备和多个域名系统 DNS服务器, 所述客户端设备通过所述接入设备与所 述多个 DNS服务器相连, 所述方法包括:
接收客户端设备的 DNS请求报文;
根据预先配置的 DNS转发策略从所述 DNS请求报文中提取匹配信息, 并 根据所述 DNS转发策略获取所述匹配信息对应的 DNS服务器信息;
将所述 DNS请求报文发送给所述 DNS服务器信息对应的 DNS服务器上。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述根据预先配置的 DNS 转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS转发策略获 取所述匹配信息对应的 DNS服务器信息具体包括:
从所述 DNS请求报文中提取域名信息;
根据预先配置的域名分类转发策略获取所述域名信息对应的 DNS服务器信 息。
3、 根据权利要求 1 所述的方法, 其特征在于, 所述根据预先配置的 DNS 转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS转发策略获 取所述匹配信息对应的 DNS服务器信息具体包括:
从所述 DNS请求报文中提取 IP地址信息;
根据预先配置的会话初始协议 SIP分类转发策略获取所述 IP地址信息对应 的 DNS服务器信息。
4、 根据权利要求 1 所述的方法, 其特征在于, 所述根据预先配置的 DNS 转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS转发策略获 取所述匹配信息对应的 DNS服务器信息具体包括:
从所述 DNS请求报文中提取虚拟局域网 VLAN标识信息;
根据预先配置的 VLAN分类转发策略获取所述 VLAN标识信息对应的 DNS 服务器信息。
5、 根据权利要求 1 所述的方法, 其特征在于, 所述根据预先配置的 DNS 转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS转发策略获 取所述匹配信息对应的 DNS服务器信息具体包括:
从所述 DNS请求报文中提取端口信息;
根据预先配置的以太网 ETH 端口分类转发策略获取所述端口信息对应的 DNS服务器信息。
6、 根据权利要求 1 所述的方法, 其特征在于, 所述根据预先配置的 DNS 转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS转发策略获 取所述匹配信息对应的 DNS服务器信息具体包括:
从所述 DNS请求报文中提取介质访问控制 MAC地址信息;
根据预先配置的 MAC地址分类转发策略获取到所述 MAC地址信息对应的 DNS服务器。
7、 一种接入设备, 其特征在于, 所述接入设备连接客户端设备以及多个域 名系统 DNS服务器, 所述接入设备包括:
用户侧接口, 用于接收客户端设备的 DNS请求报文;
匹配模块, 用于根据预先配置的 DNS转发策略从所述 DNS请求报文中提 取匹配信息, 并根据所述 DNS转发策略获取所述匹配信息对应的 DNS服务器 信息;
网络侧接口, 用于将所述 DNS请求报文转发到所述 DNS服务器信息对应 的 DNS服务器上。
8、 根据权利要求 7所述的装置, 其特征在于, 所述匹配模块包括: 提取单元, 用于从所述 DNS请求报文中提取域名信息; 获取单元, 用于根据预先配置的域名分类转发策略获取所述域名信息对应 的 DNS服务器信息; 或者, 提取单元, 用于从所述 DNS请求报文中提取 IP地址信息; 获取单元, 用于根据预先配置的会话初始协议 SIP分类转发策略获取所述 IP地址信息对应的 DNS服务器信息; 或者, 提取单元,用于从所述 DNS请求报文中提取对应的虚拟局域网 VLAN标识 信息;
获取单元, 用于根据预先配置的 VLAN分类转发策略获取所述 VLAN标识 信息对应的 DNS服务器信息; 或者, 提取单元, 用于从所述 DNS请求报文中提取端口信息; 获取单元, 用于根据预先配置的以太网 ETH端口分类转发策略获取所述端 口信息对应的 DNS服务器信息; 或者, 提取单元,用于从所述 DNS请求报文中提取介质访问控制 MAC地址信息; 获取单元, 用于根据预先配置的 MAC地址分类转发策略获取到所述 MAC 地址信息对应的 DNS服务器。
9、 一种报文转发系统, 其特征在于, 所述系统包括客户端设备、 接入设备 和多个域名系统 DNS 服务器, 所述接入设备与所述客户端设备以及所述多个 DNS服务器相连, 所述接入设备, 用于接收客户端设备的 DNS请求报文, 根据 预先配置的 DNS转发策略从所述 DNS请求报文中提取匹配信息, 并根据所述 DNS转发策略获取所述匹配信息对应的 DNS服务器信息; 将所述 DNS请求报 文发送给所述 DNS服务器信息对应的 DNS服务器上。
PCT/CN2011/081381 2011-02-18 2011-10-27 网络中的报文转发方法、装置和系统 WO2012109917A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110040565.9 2011-02-18
CN2011100405659A CN102137011A (zh) 2011-02-18 2011-02-18 网络中的报文转发方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2012109917A1 true WO2012109917A1 (zh) 2012-08-23

Family

ID=44296670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081381 WO2012109917A1 (zh) 2011-02-18 2011-10-27 网络中的报文转发方法、装置和系统

Country Status (2)

Country Link
CN (1) CN102137011A (zh)
WO (1) WO2012109917A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666269A (zh) * 2022-04-11 2022-06-24 浪潮思科网络科技有限公司 一种基于ip子网的vlan的报文转发方法、装置、设备及介质
CN114745353A (zh) * 2022-04-11 2022-07-12 北京英迪瑞讯网络科技有限公司 IPv4端访问IPv4/IPv6网络的流量调度方法

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137011A (zh) * 2011-02-18 2011-07-27 华为技术有限公司 网络中的报文转发方法、装置和系统
CN103685583B (zh) * 2012-09-05 2018-02-23 阿里巴巴集团控股有限公司 一种域名解析的方法和系统
CN110071986A (zh) * 2013-08-14 2019-07-30 阿里巴巴集团控股有限公司 一种用于域名解析的系统
CN103618805A (zh) * 2013-12-17 2014-03-05 南京智微亚通信科技有限公司 一种无线远程管理系统及其控制方法
CN105763660A (zh) * 2014-12-17 2016-07-13 中兴通讯股份有限公司 一种域名解析方法及装置
CN106487938B (zh) * 2015-08-24 2019-11-26 南京中兴软件有限责任公司 域名的转发方法及装置
CN105704246A (zh) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 一种基于sdn架构的网络分流装置和方法
CN107124370B (zh) * 2017-05-05 2020-01-03 网宿科技股份有限公司 机顶盒及其流量管控方法和业务请求流量管控系统
CN109151085B (zh) * 2017-06-15 2022-06-10 中兴通讯股份有限公司 域名查询请求的发送方法及装置
CN108011932B (zh) * 2017-11-22 2020-11-27 新华三技术有限公司 接入处理方法及装置
CN109495602B (zh) * 2018-12-14 2022-03-18 锐捷网络股份有限公司 一种网络接入异常的处理方法及装置
CN110099138A (zh) * 2019-04-09 2019-08-06 烽火通信科技股份有限公司 一种处理带vlan tag的dhcp数据的方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255987A (zh) * 1998-02-09 2000-06-07 株式会社Ibi 因特网实名计算机网络连接方法及其计算机网络系统
CN1581836A (zh) * 2003-08-11 2005-02-16 三星电子株式会社 域名服务系统及其方法
US20090241167A1 (en) * 2008-03-21 2009-09-24 Howard Moore Method and system for network identification via dns
CN101710905A (zh) * 2009-12-17 2010-05-19 中国联合网络通信集团有限公司 一种基于策略的地址解析控制方法与系统
CN102137011A (zh) * 2011-02-18 2011-07-27 华为技术有限公司 网络中的报文转发方法、装置和系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141396B (zh) * 2007-09-18 2010-12-15 华为技术有限公司 报文处理方法和网络设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255987A (zh) * 1998-02-09 2000-06-07 株式会社Ibi 因特网实名计算机网络连接方法及其计算机网络系统
CN1581836A (zh) * 2003-08-11 2005-02-16 三星电子株式会社 域名服务系统及其方法
US20090241167A1 (en) * 2008-03-21 2009-09-24 Howard Moore Method and system for network identification via dns
CN101710905A (zh) * 2009-12-17 2010-05-19 中国联合网络通信集团有限公司 一种基于策略的地址解析控制方法与系统
CN102137011A (zh) * 2011-02-18 2011-07-27 华为技术有限公司 网络中的报文转发方法、装置和系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666269A (zh) * 2022-04-11 2022-06-24 浪潮思科网络科技有限公司 一种基于ip子网的vlan的报文转发方法、装置、设备及介质
CN114745353A (zh) * 2022-04-11 2022-07-12 北京英迪瑞讯网络科技有限公司 IPv4端访问IPv4/IPv6网络的流量调度方法
CN114666269B (zh) * 2022-04-11 2024-05-14 浪潮思科网络科技有限公司 一种基于ip子网的vlan的报文转发方法、装置、设备及介质

Also Published As

Publication number Publication date
CN102137011A (zh) 2011-07-27

Similar Documents

Publication Publication Date Title
WO2012109917A1 (zh) 网络中的报文转发方法、装置和系统
US9596211B2 (en) Cloud based customer premises equipment
US8369246B2 (en) Method and apparatus for sending and receiving multicast packets on a multicast tree
EP3328004A1 (en) Broadband access
US8068486B2 (en) Method and device for service binding
US12021561B1 (en) Data provisioning
US9705706B2 (en) Multiple prefix connections with translated virtual local area network
WO2009094928A1 (fr) Procédé et équipement de transmission d'un message basé sur le protocole de tunnel de niveau 2
WO2008017270A1 (fr) Procédé, dispositif et système ethernet supportant un acheminement multidiffusion à source spécifique
WO2012130142A1 (zh) 用户业务接入方法、系统和接入设备
WO2009067871A1 (fr) Procédé, système et dispositif de gestion de sécurité d'accès d'utilisateur
WO2011153679A1 (zh) 业务配置方法、设备和系统
CN102447565B (zh) 一种在宽带接入网实现组播控制的方法和系统
WO2009030173A1 (fr) Procédé de traitement et dispositif pour la configuration de raccordement qinq
US11265244B2 (en) Data transmission method, PNF SDN controller, VNF SDN controller, and data transmission system
WO2015018069A1 (zh) 网络终端获取业务的方法、设备、系统
WO2017166936A1 (zh) 一种实现地址管理的方法、装置、aaa服务器及sdn控制器
WO2006122502A1 (fr) Méthode de transmission de message en couche 2 et dispositif d’accès
CN105812252A (zh) 一种家庭网关、系统以及终端访问组播业务的方法
WO2014015786A1 (zh) 一种hfc网络中的二层接入方法、设备及系统
JP2017522751A (ja) ストリーミング要求に応答するための方法および装置、アクセスノードならびにそれを動作させるための方法
WO2007041942A1 (fr) Système pour ethernet de support de la transmission de la multidiffusion spécifique à une source et procédé idoine
WO2012041168A1 (zh) 用于IPv6网络的网络连接处理方法及其装置
CN104660446B (zh) N:1保护场景下dhcp中继实现系统及方法
WO2013127160A1 (zh) 自动发现dlna设备的方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11858814

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11858814

Country of ref document: EP

Kind code of ref document: A1