[go: up one dir, main page]

CN102137011A - Message forwarding method, device and system for network - Google Patents

Message forwarding method, device and system for network Download PDF

Info

Publication number
CN102137011A
CN102137011A CN2011100405659A CN201110040565A CN102137011A CN 102137011 A CN102137011 A CN 102137011A CN 2011100405659 A CN2011100405659 A CN 2011100405659A CN 201110040565 A CN201110040565 A CN 201110040565A CN 102137011 A CN102137011 A CN 102137011A
Authority
CN
China
Prior art keywords
dns
information
forwarding
request message
dns server
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2011100405659A
Other languages
Chinese (zh)
Inventor
王琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2011100405659A priority Critical patent/CN102137011A/en
Publication of CN102137011A publication Critical patent/CN102137011A/en
Priority to PCT/CN2011/081381 priority patent/WO2012109917A1/en
Pending legal-status Critical Current

Links

Images

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]

Landscapes

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

Abstract

The embodiment of the invention discloses a message forwarding method, a message forwarding device and a message forwarding system for a network. The network comprises customer premise equipment, access equipment and a plurality of domain name system (DNS) servers, wherein the customer premise equipment is connected with the plurality of DNS servers by the access equipment. The method comprises the following steps of: receiving a DNS request message from the customer premise equipment; extracting matching information from the DNS request message according to a pre-configured DNS forwarding strategy, and acquiring DNS server information corresponding to the matching information according to the DNS forwarding strategy; and transmitting the DNS request message to the DNS server corresponding to the DNS server information. The embodiment also provides the access equipment and the message forwarding system. In the embodiment of the invention, each piece of customer premise equipment (CPE) in the home network can flexibly access a plurality of services provided by a provider.

Description

网络中的报文转发方法、装置和系统Message forwarding method, device and system in network

技术领域technical field

本发明实施例涉及通信技术,尤其涉及一种网络中的报文转发方法、装置和系统。The embodiments of the present invention relate to communication technologies, and in particular to a message forwarding method, device and system in a network.

背景技术Background technique

家庭网络是指融合家庭控制网络和多媒体信息网络于一体的家庭信息化平台,是在家庭范围内实现信息设备、通信设备、娱乐设备、家用电器、自动化设备、照明设备、监控装置、水电气热表设备等设备的互连和管理,以及数据和多媒体信息共享的系统。家庭网络系统构成了智能化家庭设备,提高了家庭生活、学习、工作、娱乐的品质,是数字化家庭的发展方向。在家庭网络的多业务融合场景中,家庭内各种客户终端设备(Customer PremiseEquipment;以下简称:CPE),如PC、手机、机顶盒(Set Top Box;以下简称:STB)等,需要能访问运营商提供的多种业务,以形成融合方便的业务体验。且绝大部分运营商使用不同的虚拟专用网络(Virtual Private Network;以下简称:VPN)来实现不同的业务。Home network refers to a home information platform that integrates home control network and multimedia information network. The interconnection and management of equipment such as table equipment, as well as the system of data and multimedia information sharing. The home network system constitutes an intelligent home device, which improves the quality of family life, study, work, and entertainment, and is the development direction of the digital home. In the multi-service convergence scenario of the home network, various customer terminal equipment (Customer Premise Equipment; hereinafter referred to as: CPE) in the home, such as PCs, mobile phones, set-top boxes (hereinafter referred to as: STB), etc., need to be able to access the Provide a variety of services to form an integrated and convenient service experience. And most operators use different virtual private networks (Virtual Private Network; hereinafter referred to as: VPN) to realize different services.

在现有技术中,家庭网关(Home Gateway;以下简称:HGW)针对CPE的不同类型来提供不同的域名系统(Domain Name System;以下简称:DNS)服务器,使得不同的CPE能够访问不同的业务网络。In the prior art, a home gateway (Home Gateway; hereinafter referred to as: HGW) provides different domain name system (Domain Name System; hereinafter referred to as: DNS) servers for different types of CPE, so that different CPEs can access different service networks .

然而,现有技术中同一个CPE中的所有业务固定选择一个DNS服务器,无法根据业务类型来选择不同的DNS服务器,使得用户不能对多业务网络进行方便地访问,灵活性较低,大大降低了融合方便的业务体验。However, in the prior art, one DNS server is fixedly selected for all services in the same CPE, and different DNS servers cannot be selected according to service types, so that users cannot conveniently access multi-service networks, and the flexibility is low, which greatly reduces the Integrate convenient business experience.

发明内容Contents of the invention

本发明实施例在于提供一种网络中的报文转发方法、装置和系统,实现家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,提高用户的业务体验。Embodiments of the present invention provide a message forwarding method, device and system in a network, so that each CPE in a home network can more flexibly access various services provided by operators, and improve user service experience.

为了实现上述目的,本发明实施例提供了一种网络中的报文转发方法,所述网络包括客户端设备、接入设备和DNS服务器,所述客户端设备通过所述接入设备与所述多个DNS服务器相连,所述方法包括:In order to achieve the above object, an embodiment of the present invention provides a packet forwarding method in a network, the network includes a client device, an access device, and a DNS server, and the client device communicates with the DNS server through the access device A plurality of DNS servers are connected, and the method includes:

接收客户端设备的DNS请求报文;Receive the DNS request message of the client device;

根据预先配置的DNS转发策略从所述DNS请求报文中提取匹配信息,并根据所述DNS转发策略获取所述匹配信息对应的DNS服务器信息;Extract matching information from the DNS request message according to a pre-configured DNS forwarding strategy, and obtain DNS server information corresponding to the matching information according to the DNS forwarding strategy;

将所述DNS请求报文发送给所述DNS服务器信息对应的DNS服务器上。Send the DNS request message to the DNS server corresponding to the DNS server information.

本发明实施例提供了一种接入设备,所述接入设备连接客户端设备以及多个DNS服务器,所述接入设备包括:An embodiment of the present invention provides an access device, the access device is connected to a client device and multiple DNS servers, and the access device includes:

用户侧接口,用于接收客户端设备的DNS请求报文;The user-side interface is used to receive the DNS request message of the client device;

匹配模块,用于根据预先配置的DNS转发策略从所述DNS请求报文中提取匹配信息,并根据所述DNS转发策略获取所述匹配信息对应的DNS服务器信息;A matching module, configured to extract matching information from the DNS request message according to a pre-configured DNS forwarding strategy, and obtain DNS server information corresponding to the matching information according to the DNS forwarding strategy;

网络侧接口,用于将所述DNS请求报文转发到所述DNS服务器信息对应的DNS服务器上。A network side interface, configured to forward the DNS request message to a DNS server corresponding to the DNS server information.

本发明实施例提供了一种报文转发系统,所述系统包括客户端设备、接入设备和多个DNS服务器,所述接入设备与所述客户端设备以及所述多个DNS服务器相连,所述接入设备,用于接收客户端设备的DNS请求报文,根据预先配置的DNS转发策略从所述DNS请求报文中提取匹配信息,并根据所述DNS转发策略获取所述匹配信息对应的DNS服务器信息;将所述DNS请求报文发送给所述DNS服务器信息对应的DNS服务器上。An embodiment of the present invention provides a message forwarding system, the system includes a client device, an access device, and multiple DNS servers, the access device is connected to the client device and the multiple DNS servers, The access device is configured to receive a DNS request message from a client device, extract matching information from the DNS request message according to a pre-configured DNS forwarding policy, and obtain the matching information corresponding to the DNS forwarding policy according to the DNS forwarding policy. DNS server information; sending the DNS request message to the DNS server corresponding to the DNS server information.

本发明实施例提供的网络中的报文转发方法、装置和系统,可以根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。The message forwarding method, device, and system in the network provided by the embodiments of the present invention can select different DNS servers according to different types of DNS request messages, without limiting them to fixed DNS servers, and realize the DNS server in the home network. Each CPE can more flexibly access multiple services provided by the operator, such as the same CPE can access different service networks at the same time, which improves the user's service experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明一个实施例提供的网络中的报文转发方法的流程图;Fig. 1 is the flowchart of the message forwarding method in the network that one embodiment of the present invention provides;

图2为本发明实施例提供的网络架构的示意图;FIG. 2 is a schematic diagram of a network architecture provided by an embodiment of the present invention;

图3为本发明一个实施例提供的网络中的报文转发方法的流程图;Fig. 3 is the flowchart of the message forwarding method in the network that one embodiment of the present invention provides;

图4为本发明一个实施例提供的网络中的报文转发方法的流程图;FIG. 4 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention;

图5为本发明一个实施例提供的网络中的报文转发方法的流程图;FIG. 5 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention;

图6为本发明一个实施例提供的网络中的报文转发方法的流程图;FIG. 6 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention;

图7为本发明一个实施例提供的网络中的报文转发方法的流程图;FIG. 7 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention;

图8为本发明一个实施例提供的接入设备的结构示意图;FIG. 8 is a schematic structural diagram of an access device provided by an embodiment of the present invention;

图9为本发明一个实施例提供的接入设备的结构示意图。Fig. 9 is a schematic structural diagram of an access device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例提供一种网络中的报文转发方法,图1为本发明一个实施例提供的网络中的报文转发方法的流程图,图2为本发明实施例所提供的网络架构的示意图,如图2所示,该网络可以具体包括客户端设备、接入设备和多个DNS服务器,其中,接入设备可以是光线路终端(Optical Line Terminal,OLT),终端设备可以是PC和/或STB等。An embodiment of the present invention provides a method for forwarding packets in a network. FIG. 1 is a flowchart of a method for forwarding packets in a network according to an embodiment of the present invention. FIG. 2 is a schematic diagram of a network architecture provided by an embodiment of the present invention. , as shown in Figure 2, the network may specifically include a client device, an access device, and multiple DNS servers, wherein the access device may be an optical line terminal (Optical Line Terminal, OLT), and the terminal device may be a PC and/or or STB etc.

本实施例提供的方法可以具体包括如下步骤:The method provided in this embodiment may specifically include the following steps:

步骤101,接入设备接收到客户端设备的DNS请求报文后,根据预先配置的DNS转发策略从DNS请求报文中获取匹配信息。Step 101: After receiving the DNS request message from the client device, the access device acquires matching information from the DNS request message according to a pre-configured DNS forwarding policy.

本实施例中的DNS转发策略可以包括域名分类转发策略、会话初始协议(Session Initiation Protocol;以下简称:SIP)分类转发策略、虚拟局域网(Virtual Local Area Network;以下简称:VLAN)分类转发策略、以太网(Ethernet;以下简称:ETH)端口分类转发策略和介质访问控制(Media AccessControl;以下简称:MAC)地址分类转发策略。The DNS forwarding strategy in this embodiment may include domain name classification forwarding strategy, Session Initiation Protocol (Session Initiation Protocol; hereinafter referred to as: SIP) classification forwarding strategy, Virtual Local Area Network (Virtual Local Area Network; hereinafter referred to as: VLAN) classification forwarding strategy, Ethernet Network (Ethernet; hereinafter referred to as: ETH) port classification forwarding strategy and Media Access Control (Media Access Control; hereinafter referred to as: MAC) address classification forwarding strategy.

DNS转发策略可以由网络管理系统(Network Management System;以下简称:NMS)根据实际需要进行预先配置,并将配置的DNS转发策略预先下发到接入设备,并对其进行激活。The DNS forwarding policy can be pre-configured by the Network Management System (NMS) according to actual needs, and the configured DNS forwarding policy is delivered to the access device in advance and activated.

本步骤中根据DNS转发策略从DNS请求报文中提取匹配信息具体可以是:In this step, according to the DNS forwarding policy, the matching information extracted from the DNS request message may specifically be:

当预先配置的DNS转发策略为域名分类转发策略时,接入设备从DNS请求报文中提取域名信息作为匹配信息;When the pre-configured DNS forwarding policy is the domain name classification forwarding policy, the access device extracts the domain name information from the DNS request message as matching information;

当预先配置的DNS转发策略为SIP分类转发策略时,接入设备从DNS请求报文中提取IP地址信息作为匹配信息;When the pre-configured DNS forwarding policy is the SIP classification forwarding policy, the access device extracts the IP address information from the DNS request message as matching information;

当预先配置的DNS转发策略为VLAN分类转发策略时,接入设备从DNS请求报文中提取VLAN标识信息作为匹配信息;When the pre-configured DNS forwarding policy is the VLAN classification forwarding policy, the access device extracts VLAN identification information from the DNS request message as matching information;

当预先配置的DNS转发策略为ETH端口分类转发策略时,接入设备从DNS请求报文中提取端口信息作为匹配信息。When the pre-configured DNS forwarding policy is the ETH port classification forwarding policy, the access device extracts port information from the DNS request packet as matching information.

步骤105,接入设备根据所述预先配置的DNS转发策略获取所述匹配信息对应的DNS服务器信息。Step 105, the access device acquires DNS server information corresponding to the matching information according to the pre-configured DNS forwarding policy.

本步骤为接入设备在接收到各CPE发送的DNS请求报文后,根据配置的DNS转发策略从DNS请求报文中提取匹配信息,并根据DNS转发策略对匹配信息进行匹配处理,进而得到该DNS请求报文对应的DNS服务器信息。In this step, after receiving the DNS request message sent by each CPE, the access device extracts matching information from the DNS request message according to the configured DNS forwarding policy, and performs matching processing on the matching information according to the DNS forwarding policy, and then obtains the DNS server information corresponding to the DNS request message.

步骤110,接入设备将DNS请求报文转发到DNS服务器信息对应的DNS服务器上。Step 110, the access device forwards the DNS request message to the DNS server corresponding to the DNS server information.

该DNS服务器信息可以具体为DNS服务器的IP地址,接入设备根据该DNS服务器信息将该DNS请求报文转发到对应的DNS服务器上,实现DNS请求报文的灵活转发。The DNS server information may specifically be the IP address of the DNS server, and the access device forwards the DNS request message to the corresponding DNS server according to the DNS server information, so as to implement flexible forwarding of the DNS request message.

本实施例根据预先配置的DNS转发策略将DNS请求报文转发给不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。This embodiment forwards the DNS request message to different DNS servers according to the pre-configured DNS forwarding policy, and does not limit it to a fixed DNS server, so that each CPE in the home network can more flexibly access the DNS server provided by the operator. Multiple services, such as the same CPE can access different service networks at the same time, which improves the user's service experience.

本发明一个实施例提供一种网络中的报文转发方法,图3为本发明一个实施例提供的网络中的报文转发方法的流程图,本实施例提供的方法可以具体包括如下步骤:An embodiment of the present invention provides a message forwarding method in a network. FIG. 3 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention. The method provided in this embodiment may specifically include the following steps:

步骤301,NMS向接入设备下发DNS转发策略,并激活该DNS转发策略。In step 301, the NMS issues a DNS forwarding policy to the access device, and activates the DNS forwarding policy.

在本实施例中,各灵活配置的DNS转发策略在NMS上进行配置,然后由NMS将配置的DNS转发策略下发到接入设备。本实施例中的DNS转发策略具体为域名分类转发策略,NMS将配置的域名分类转发策略下发到接入设备,并激活下发到接入设备上的域名分类转发策略。在本实施例中,域名分类转发策略可以灵活添加,可以按照最长匹配原则进行查找匹配,也可以具体为根据域名的结尾信息来匹配对应的DNS服务器,如以“.com”结尾的域名则对应指向DNS服务器1,以“.voip.ctc”结尾的域名则对应指向DNS服务器2,以“.iptv.ctc”结尾的域名则指向DNS服务器3。In this embodiment, each flexibly configured DNS forwarding policy is configured on the NMS, and then the NMS delivers the configured DNS forwarding policy to the access device. The DNS forwarding policy in this embodiment is specifically a domain name classification forwarding policy. The NMS delivers the configured domain name classification forwarding policy to the access device, and activates the domain name classification forwarding policy delivered to the access device. In this embodiment, domain name classification and forwarding policies can be added flexibly, search and match can be performed according to the longest match principle, or can specifically match the corresponding DNS server according to the end information of the domain name, such as domain names ending with ".com". Correspondingly point to DNS server 1, domain names ending with ".voip.ctc" point to DNS server 2, and domain names ending with ".iptv.ctc" point to DNS server 3.

步骤302,接入设备从上游服务器获取DNS服务器的IP地址。Step 302, the access device obtains the IP address of the DNS server from the upstream server.

本步骤中的DNS服务器信息为各DNS服务器的IP地址。The DNS server information in this step is the IP address of each DNS server.

步骤303,接入设备将各客户终端设备上的DNS服务器的IP地址配置为自身的IP地址。Step 303, the access device configures the IP address of the DNS server on each client terminal device as its own IP address.

在客户端上线后,本实施例中的接入设备通过动态主机配置协议(Dynamic Host Configuration Protocol;以下简称:DHCP)和客户端进行交互,将客户端设备上的DNS服务器的IP地址配置为自身的IP地址。After the client goes online, the access device in this embodiment interacts with the client through the Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol; hereinafter referred to as: DHCP), and configures the IP address of the DNS server on the client device as its own IP address.

步骤304,接入设备捕获客户端设备发出的DNS请求报文,从接收到的DNS请求报文中提取对应的域名信息。Step 304, the access device captures the DNS request message sent by the client device, and extracts corresponding domain name information from the received DNS request message.

通过上述对客户端设备中DNS服务器的地址的配置,使得客户端设备的DNS请求报文可以被接入设备捕获。HGW捕获到客户端设备发出的DNS请求报文,从该DNS请求报文中提取其中携带的域名信息作为匹配信息。Through the above configuration of the address of the DNS server in the client device, the DNS request message of the client device can be captured by the access device. 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 matching information.

步骤305,接入设备根据预先配置的域名分类转发策略对域名信息进行匹配处理,并获取所述域名信息对应的DNS服务器信息。Step 305, the access device performs matching processing on the domain name information according to the pre-configured domain name classification and forwarding policy, and acquires DNS server information corresponding to the domain name information.

本步骤为接入设备根据配置的域名分类转发策略对获取到的域名信息进行匹配处理,通过匹配获取到域名信息对应的DNS服务器信息,此处的DNS服务器信息具体为DNS服务器的IP地址,通过匹配可以获取到各DNS请求报文对应的DNS服务器的IP地址。This step is for the access device to match the obtained domain name information according to the configured domain name classification and forwarding policy, and obtain the DNS server information corresponding to the domain name information through matching. The DNS server information here is specifically the IP address of the DNS server. Matching can obtain the IP address of the DNS server corresponding to each DNS request message.

步骤306,接入设备将DNS请求报文转发到对应的DNS服务器上。Step 306, the access device forwards the DNS request message to the corresponding DNS server.

在通过上述步骤获取到对应的DNS服务器的IP地址后,接入设备将捕获到的DNS请求报文转发到该DNS服务器上,实现报文的灵活转发。After obtaining the IP address of the corresponding DNS server through the above steps, the access device forwards the captured DNS request message to the DNS server, so as to implement flexible forwarding of the message.

本实施例通过预先配置的域名分类转发策略对DNS请求报文进行匹配处理,根据匹配结果获取对应的DNS服务器的IP地址,再根据该DNS服务器的IP地址将DNS请求报文转发到对应的DNS服务器上,以实现对相应的业务网络的访问;本实施例根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。In this embodiment, the DNS request message is matched through the pre-configured domain name classification and forwarding strategy, the IP address of the corresponding DNS server is obtained according to the matching result, and the DNS request message is forwarded to the corresponding DNS server according to the IP address of the DNS server. On the server, to realize the visit to corresponding business network; This embodiment selects different DNS servers according to different types of DNS request messages, and does not limit it to a fixed DNS server, and realizes each CPE in the home network It can more flexibly access multiple services provided by operators, such as the same CPE can access different service networks at the same time, which improves the user's service experience.

本发明一个实施例提供一种网络中的报文转发方法,图4为本发明一个实施例提供的网络中的报文转发方法的流程图,本实施例提供的方法可以具体包括如下步骤:An embodiment of the present invention provides a method for forwarding messages in a network. FIG. 4 is a flowchart of a method for forwarding messages in a network provided by an embodiment of the present invention. The method provided in this embodiment may specifically include the following steps:

步骤401,NMS向接入设备下发DNS转发策略,并激活该DNS转发策略。In step 401, the NMS issues a DNS forwarding policy to the access device, and activates the DNS forwarding policy.

在本实施例中,各灵活配置的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。In this embodiment, each flexibly configured DNS forwarding policy is configured on the NMS, and then the NMS delivers the configured DNS forwarding policy to the access device. The DNS forwarding policy in this embodiment is specifically a SIP classification forwarding policy, and the NMS delivers the configured SIP classification forwarding policy to the access device, and activates the SIP classification forwarding policy delivered to the access device. In this embodiment, the SIP classification and forwarding strategy can specifically match the corresponding DNS server according to the IP address segment where the IP address is located. For example, the DNS request message from the IP address segment 192.168. For server 1, the DNS request message from the IP address range 192.168.1.11-192.168.1.20 is correspondingly directed to DNS server 2.

步骤402,接入设备从上游服务器获取DNS服务器的IP地址,本步骤可以与上述步骤302类似,此处不再赘述。In step 402, the access device acquires the IP address of the DNS server from the upstream server. This step may be similar to the above step 302, and will not be repeated here.

步骤403,接入设备将各客户终端设备上的DNS服务器的IP地址配置为自身的IP地址,本步骤可以与上述步骤303类似,此处不再赘述。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 may be similar to the above step 303, and will not be repeated here.

步骤404,接入设备捕获客户端设备发出的DNS请求报文,从接收到的DNS请求报文中提取对应的IP地址信息。Step 404, the access device captures the DNS request message sent by the client device, and extracts the corresponding IP address information from the received DNS request message.

通过上述对客户端设备中DNS服务器的地址的配置,使得客户端设备的DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的DNS请求报文,从该DNS请求报文中提取其中携带的IP地址,该IP地址可以为客户端设备的IP地址。Through the above configuration of the address of the DNS server in the client device, the DNS request message of the client device can be captured by the access device. The access device captures the DNS request message sent by the client device, and extracts the IP address carried therein from the DNS request message, where the IP address may be the IP address of the client device.

步骤405,接入设备根据预先配置的SIP分类转发策略对IP地址信息进行匹配处理,并获取所述IP地址信息对应的DNS服务器信息。Step 405, the access device performs matching processing on the IP address information according to the pre-configured SIP classification and forwarding policy, and obtains DNS server information corresponding to the IP address information.

本步骤为接入设备根据配置的SIP分类转发策略对获取到的IP地址信息进行匹配处理,通过匹配获取到IP地址信息对应的DNS服务器信息,此处的DNS服务器信息具体为DNS服务器的IP地址,通过匹配可以获取到各DNS请求报文对应的DNS服务器的IP地址。This step is for the access device to match the obtained IP address information according to the configured SIP classification and forwarding strategy, and obtain the DNS server information corresponding to the IP address information through 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 message can be obtained through matching.

步骤406,接入设备将DNS请求报文转发到对应的DNS服务器上,本步骤可以与上述步骤306类似,此处不再赘述。Step 406, the access device forwards the DNS request message to the corresponding DNS server, this step may be similar to the above step 306, and will not be repeated here.

本实施例在接收到DNS请求报文后,通过预先配置的SIP分类转发策略对DNS请求报文进行匹配处理,根据匹配结果获取对应的DNS服务器的IP地址,再根据该DNS服务器的IP地址将DNS请求报文转发到对应的DNS服务器上,以实现对相应的业务网络的访问;本实施例根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。In this embodiment, after receiving the DNS request message, the DNS request message is matched through the pre-configured SIP classification and forwarding strategy, and the IP address of the corresponding DNS server is obtained according to the matching result, and then the IP address of the DNS server is set to The DNS request message is forwarded to the corresponding DNS server to achieve access to the corresponding service network; this embodiment selects different DNS servers according to different types of DNS request messages, and does not limit it to a fixed DNS server , so that each CPE in the home network can more flexibly access various services provided by the operator, such as the same CPE can access different service networks at the same time, which improves the user's service experience.

本发明一个实施例提供一种网络中的报文转发方法,图5为本发明一个实施例提供的网络中的报文转发方法的流程图,所提供的方法可以具体包括如下步骤:An embodiment of the present invention provides a method for forwarding messages in a network. FIG. 5 is a flowchart of a method for forwarding messages in a network provided by an embodiment of the present invention. The provided method may specifically include the following steps:

步骤501,NMS向接入设备下发DNS转发策略,并激活该DNS转发策略。In step 501, the NMS issues a DNS forwarding policy to the access device, and activates the DNS forwarding policy.

本实施例中的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。The DNS forwarding policy in this embodiment is specifically a VLAN classification forwarding policy, and the NMS delivers the configured VLAN classification forwarding policy to the access device, and activates the VLAN classification forwarding policy delivered to the access device. In this embodiment, the VLAN classification and forwarding strategy can specifically match the corresponding DNS server according to the VLAN identifier (tag) used by the client device, such as a DNS request message with a VLAN tag of 10 correspondingly pointing to DNS server 1, VLAN A DNS request message with a tag of 20 is correspondingly directed to DNS server 2, and a DNS request message with a VLAN tag of 30 is correspondingly directed to DNS server 3.

步骤502,接入设备从上游服务器获取DNS服务器的IP地址,本步骤可以与上述步骤302类似,此处不再赘述。In step 502, the access device acquires the IP address of the DNS server from the upstream server. This step may be similar to the above step 302, and will not be repeated here.

步骤503,接入设备将各客户终端设备上的DNS服务器的IP地址配置为自身的IP地址,本步骤可以与上述步骤303类似,此处不再赘述。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 may be similar to the above step 303, and will not be repeated here.

步骤504,接入设备捕获客户端设备发出的DNS请求报文,从接收到的DNS请求报文中提取对应的VLAN tag信息。Step 504, the access device captures the DNS request message sent by the client device, and extracts the corresponding VLAN tag information from the received DNS request message.

通过上述对客户端设备中DNS服务器的地址的配置,使得客户端设备的DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的DNS请求报文,从该DNS请求报文中提取其中携带的VLAN tag信息。其中,不同的客户端设备类型使用不同的VLAN,相应地具备不同的VLAN tag信息,如来自PC的报文中携带的VLAN tag信息为10,来自STB的报文中携带的VLAN tag信息为30。Through the above configuration of the address of the DNS server in the client device, the DNS request message of the client device can be captured by the access device. The access device captures the DNS request message sent by the client device, and extracts the VLAN tag information carried in the DNS request message. Among them, different types of client devices use different VLANs and have different VLAN tag information accordingly. For example, the VLAN tag information carried in the message from the PC is 10, and the VLAN tag information carried in the message from the STB is 30. .

步骤505,接入设备根据预先配置的VLAN分类转发策略对VLAN tag信息进行匹配处理,并获取所述VLAN tag信息对应的DNS服务器信息。Step 505, the access device performs matching processing on the VLAN tag information according to the pre-configured VLAN classification forwarding policy, and obtains DNS server information corresponding to the VLAN tag information.

本步骤为接入设备根据配置的VLAN分类转发策略对获取到的VLANtag信息进行匹配处理,通过匹配获取到VLAN tag信息对应的DNS服务器信息,此处的DNS服务器信息具体为DNS服务器的IP地址,通过匹配可以获取到各DNS请求报文对应的DNS服务器的IP地址。This step is for the access device to match the obtained VLANtag information according to the configured VLAN classification and forwarding strategy, and obtain the DNS server information corresponding to the VLAN tag information through matching. The DNS server information here is specifically the IP address of the DNS server. The IP address of the DNS server corresponding to each DNS request message can be obtained through matching.

步骤506,接入设备将DNS请求报文转发到对应的DNS服务器上,本步骤可以与上述步骤306类似,此处不再赘述。In step 506, the access device forwards the DNS request message to the corresponding DNS server. This step may be similar to the above step 306 and will not be repeated here.

本实施例提供的网络中的报文转发方法,在接收到DNS请求报文后,通过预先配置的VLAN分类转发策略对DNS请求报文进行匹配处理,根据匹配结果获取对应的DNS服务器的IP地址,再根据该DNS服务器的IP地址将DNS请求报文转发到对应的DNS服务器上,以实现对相应的业务网络的访问;本实施例根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。The message forwarding method in the network provided by this embodiment, after receiving the DNS request message, performs matching processing on the DNS request message through the pre-configured VLAN classification forwarding strategy, and obtains the IP address of the corresponding DNS server according to the matching result , and forward the DNS request message to the corresponding DNS server according to the IP address of the DNS server, so as to realize the access to the corresponding service network; the present embodiment selects different DNS servers according to different types of DNS request messages, It is not limited to a fixed DNS server, so that each CPE in the home network can more flexibly access various services provided by the operator, such as the same CPE can access different service networks at the same time, which improves the user's service experience.

本发明一个实施例提供一种网络中的报文转发方法,图6为本发明一个实施例提供的网络中的报文转发方法的流程图,可以具体包括如下步骤:An embodiment of the present invention provides a message forwarding method in a network. FIG. 6 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention, which may specifically include the following steps:

步骤601,NMS向接入设备下发DNS转发策略,并激活该DNS转发策略。In step 601, the NMS issues a DNS forwarding policy to the access device, and activates the DNS forwarding policy.

在本实施例中,各灵活配置的DNS转发策略在NMS上进行配置,然后由NMS将配置的DNS转发策略下发到接入设备。本实施例中的DNS转发策略具体为ETH端口分类转发策略,NMS将配置的ETH端口分类转发策略下发到接入设备,并激活该ETH端口分类转发策略。在本实施例中,ETH端口分类转发策略可以具体为根据客户端设备所在的ETH端口来匹配对应的DNS服务器,如来自ETH1端口的DNS请求报文则对应指向DNS服务器1,来自ETH2端口的DNS请求报文则对应指向DNS服务器2,来自ETH3端口的DNS请求报文则对应指向DNS服务器3。In this embodiment, each flexibly configured DNS forwarding policy is configured on the NMS, and then the NMS delivers the configured DNS forwarding policy to the access device. The DNS forwarding policy in this embodiment is specifically the ETH port classification forwarding policy, and the NMS delivers the configured ETH port classification forwarding policy to the access device, and activates the ETH port classification forwarding policy. In this embodiment, the ETH port classification and forwarding strategy can specifically match the corresponding DNS server according to the ETH port where the client device is located. The request message is correspondingly directed to DNS server 2, and the DNS request message from the ETH3 port is correspondingly directed to DNS server 3.

步骤602,接入设备从上游服务器获取DNS服务器的IP地址,本步骤可以与上述步骤302类似,此处不再赘述。In step 602, the access device acquires the IP address of the DNS server from the upstream server. This step may be similar to the above step 302, and will not be repeated here.

步骤603,接入设备将各客户终端设备上的DNS服务器的IP地址配置为自身的IP地址,本步骤可以与上述步骤303类似,此处不再赘述。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 may be similar to the above step 303, and will not be repeated here.

步骤604,接入设备捕获客户端设备发出的DNS请求报文,从接收到的DNS请求报文中提取对应的端口信息。Step 604, the access device captures the DNS request message sent by the client device, and extracts corresponding port information from the received DNS request message.

通过上述对客户端设备中DNS服务器的地址的配置,使得客户端设备的DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的DNS请求报文,从该DNS请求报文中提取其中携带的端口信息。其中,不同的客户端设备类型对应不同的ETH端口,如来自PC的DNS请求报文中携带的端口信息为ETH1端口,来自STB的DNS请求报文中携带的端口信息为ETH2端口。Through the above configuration of the address of the DNS server in the client device, the DNS request message of the client device can be captured by the access device. The access device captures the DNS request message sent by the client device, and extracts the port information carried in the DNS request message. Different client device types correspond to different ETH ports. For example, the port information carried in the DNS request message from the PC is the ETH1 port, and the port information carried in the DNS request message from the STB is the ETH2 port.

步骤605,接入设备根据预先配置的ETH端口分类转发策略对端口信息进行匹配处理,并获取所述端口信息对应的DNS服务器信息。Step 605, the access device performs matching processing on the port information according to the pre-configured ETH port classification and forwarding policy, and obtains DNS server information corresponding to the port information.

本步骤为接入设备根据配置的ETH端口分类转发策略对获取到的端口信息进行匹配处理,通过匹配获取到端口信息对应的DNS服务器信息,此处的DNS服务器信息具体为DNS服务器的IP地址,通过匹配可以获取到各DNS请求报文对应的DNS服务器的IP地址。This step is for the access device to match the obtained port information according to the configured ETH port classification and forwarding strategy, and obtain the DNS server information corresponding to the port information through matching. The DNS server information here is specifically the IP address of the DNS server. The IP address of the DNS server corresponding to each DNS request message can be obtained through matching.

步骤606,接入设备将DNS请求报文转发到对应的DNS服务器上,本步骤可以与上述步骤306类似,此处不再赘述。In step 606, the access device forwards the DNS request message to the corresponding DNS server. This step may be similar to the above step 306 and will not be repeated here.

本实施例提供的网络中的报文转发方法,在接收到DNS请求报文后,通过预先配置的ETH端口分类转发策略对DNS请求报文进行匹配处理,根据匹配结果获取对应的DNS服务器的IP地址,再根据该DNS服务器的IP地址将DNS请求报文转发到对应的DNS服务器上,以实现对相应的业务网络的访问;本实施例根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。The message forwarding method in the network provided by this embodiment, after receiving the DNS request message, performs matching processing on the DNS request message through the pre-configured ETH port classification forwarding strategy, and obtains the IP address of the corresponding DNS server according to the matching result address, and forward the DNS request message to the corresponding DNS server according to the IP address of the DNS server, so as to realize the access to the corresponding service network; the present embodiment selects different DNS servers according to different types of DNS request messages. , instead of limiting it to a fixed DNS server, so that each CPE in the home network can access various services provided by the operator more flexibly, such as the same CPE can access different service networks at the same time, which improves the service experience of users .

本发明一个实施例提供一种网络中的报文转发方法,图7为本发明一个实施例提供的网络中的报文转发方法的流程图,可以具体包括如下步骤:An embodiment of the present invention provides a message forwarding method in a network. FIG. 7 is a flowchart of a message forwarding method in a network provided by an embodiment of the present invention, which may specifically include the following steps:

步骤701,NMS向接入设备下发DNS转发策略,并激活该DNS转发策略。In step 701, the NMS issues a DNS forwarding policy to the access device, and activates the DNS forwarding policy.

在本实施例中,各灵活配置的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。In this embodiment, each flexibly configured DNS forwarding policy is configured on the NMS, and then the NMS delivers the configured DNS forwarding policy to the access device. The DNS forwarding policy in this embodiment is specifically a MAC address classification forwarding policy, and the NMS delivers the configured MAC address classification forwarding policy to the access device, and activates the MAC address classification forwarding policy. In this embodiment, the classified forwarding strategy can specifically match the corresponding DNS server according to the MAC address of the client device, such as a DNS request message with a MAC address of 00-E0-4C-XX-XX correspondingly pointing to DNS server 1 , the DNS request message with the MAC address 00-25-9E-XX-XX is correspondingly directed to the DNS server 2.

步骤702,接入设备从上游服务器获取DNS服务器的IP地址,本步骤可以与上述步骤302类似,此处不再赘述。In step 702, the access device acquires the IP address of the DNS server from the upstream server. This step may be similar to the above step 302, and will not be repeated here.

步骤703,接入设备将各客户终端设备上的DNS服务器的IP地址配置为自身的IP地址,本步骤可以与上述步骤303类似,此处不再赘述。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 may be similar to the above step 303, and will not be repeated here.

步骤704,接入设备捕获客户端设备发出的DNS请求报文,从接收到的DNS请求报文中提取对应的MAC信息。Step 704, the access device captures the DNS request message sent by the client device, and extracts the corresponding MAC information from the received DNS request message.

通过上述对客户端设备中DNS服务器的地址的配置,使得客户端设备的DNS请求报文可以被接入设备捕获。接入设备捕获到客户端设备发出的DNS请求报文,从该DNS请求报文中提取其中携带的MAC地址。其中,不同的客户端设备具有不同的MAC地址。Through the above configuration of the address of the DNS server in the client device, the DNS request message of the client device can be captured by the access device. The access device captures the DNS request message sent by the client device, and extracts the MAC address carried in the DNS request message. Wherein, different client devices have different MAC addresses.

步骤705,接入设备根据预先配置的MAC地址分类转发策略对MAC地址进行匹配处理,并获取所述MAC地址对应的DNS服务器信息。Step 705, the access device performs matching processing on the MAC address according to the pre-configured MAC address classification and forwarding policy, and acquires DNS server information corresponding to the MAC address.

本步骤为接入设备根据配置的MAC地址分类转发策略对获取到的端口信息进行匹配处理,通过匹配获取到MAC地址对应的DNS服务器信息,此处的DNS服务器信息具体为DNS服务器的IP地址,通过匹配可以获取到各DNS请求报文对应的DNS服务器的IP地址。This step is for the access device to match the obtained port information according to the configured MAC address classification and forwarding strategy, and obtain the DNS server information corresponding to the MAC address through matching. The DNS server information here is specifically the IP address of the DNS server. The IP address of the DNS server corresponding to each DNS request message can be obtained through matching.

步骤706,接入设备将DNS请求报文转发到对应的DNS服务器上,本步骤可以与上述步骤306类似,此处不再赘述。In step 706, the access device forwards the DNS request message to the corresponding DNS server. This step may be similar to the above step 306, and will not be repeated here.

本实施例提供的网络中的报文转发方法,在接收到DNS请求报文后,通过预先配置的MAC地址分类转发策略对DNS请求报文进行匹配处理,根据匹配结果获取对应的DNS服务器的IP地址,再根据该DNS服务器的IP地址将DNS请求报文转发到对应的DNS服务器上,以实现对相应的业务网络的访问;本实施例根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。The message forwarding method in the network provided by this embodiment, after receiving the DNS request message, performs matching processing on the DNS request message through the pre-configured MAC address classification forwarding strategy, and obtains the IP address of the corresponding DNS server according to the matching result address, and forward the DNS request message to the corresponding DNS server according to the IP address of the DNS server, so as to realize the access to the corresponding service network; the present embodiment selects different DNS servers according to different types of DNS request messages. , instead of limiting it to a fixed DNS server, so that each CPE in the home network can access various services provided by the operator more flexibly, such as the same CPE can access different service networks at the same time, which improves the service experience of users .

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

本发明一个实施例提供一种接入设备,图8为本发明一个实施例提供的接入设备的结构示意图,本实施例提供的接入设备可以具体执行上述方法实施例一中的各个步骤,此处不再赘述。An embodiment of the present invention provides an access device. FIG. 8 is a schematic structural diagram of the access device provided by an embodiment of the present invention. The access device provided in this embodiment can specifically perform the steps in the first embodiment of the above method. I won't repeat them here.

本实施例提供的接入设备可以连接客户端设备以及多个域名DNS服务器,可以具体包括用户侧接口800、匹配模块801、网络侧接口802。The access device provided in this embodiment can be connected to a client device and multiple domain name DNS servers, and can specifically include a user-side interface 800 , a matching module 801 , and a network-side interface 802 .

其中,用户侧接口800,用于接收客户端设备的请求报文。Wherein, the user-side interface 800 is configured to receive a request message from a client device.

匹配模块801用于根据预先配置的DNS转发策略从所述DNS请求报文中提取匹配信息,并根据所述DNS转发策略获取所述匹配信息对应的DNS服务器信息。The matching module 801 is configured to extract matching information from the DNS request message according to a pre-configured DNS forwarding strategy, and obtain DNS server information corresponding to the matching information according to the DNS forwarding strategy.

网络侧接口802用于将所述DNS请求报文转发到所述DNS服务器信息对应的DNS服务器上。The network side interface 802 is configured to forward the DNS request message to the DNS server corresponding to the DNS server information.

图9为本发明一个实施例提供的接入设备的结构示意图,本实施例中的匹配模块801可以具体包括提取单元811和获取单元812。FIG. 9 is a schematic structural diagram of an access device provided by an embodiment of the present invention. The matching module 801 in this embodiment may specifically include an extraction unit 811 and an acquisition unit 812 .

其中,提取单元811用于从接收到的DNS请求报文中提取对应的域名信息。获取单元812用于根据预先配置的域名分类转发策略获取所述域名信息对应的DNS服务器信息。Wherein, 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 DNS server information corresponding to the domain name information according to a pre-configured domain name classification and forwarding policy.

或者,提取单元811用于从接收到的DNS请求报文中提取对应的IP地址信息。获取单元812用于根据预先配置的会话初始协议SIP分类转发策略获取所述IP地址信息对应的DNS服务器信息。Alternatively, 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 DNS server information corresponding to the IP address information according to a pre-configured SIP classification and forwarding policy.

或者,提取单元811用于从接收到的DNS请求报文中提取对应的虚拟局域网VLAN标识信息。获取单元812用于根据预先配置的VLAN分类转发策略获取所述VLAN标识信息对应的DNS服务器信息。Alternatively, 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 DNS server information corresponding to the VLAN identification information according to a pre-configured VLAN classification and forwarding policy.

或者,提取单元811用于从接收到的DNS请求报文中提取对应的端口信息。获取单元812用于根据预先配置的ETH端口分类转发策略获取所述端口信息对应的DNS服务器信息。Alternatively, 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 DNS server information corresponding to the port information according to a pre-configured ETH port classification and forwarding policy.

或者,提取单元811用于从接收到的DNS请求报文中提取对应的介质访问控制MAC地址信息。获取单元812用于根据预先配置的MAC地址分类转发策略获取到所述MAC地址信息对应的DNS服务器。Alternatively, the extracting unit 811 is configured to extract corresponding 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 and forwarding policy.

本实施例提供的接入设备,可以根据不同类型的DNS请求报文来选择不同的DNS服务器,而未将其限定为固定的DNS服务器,实现了家庭网络中的各CPE可以更灵活地访问运营商提供的多种业务,如同一CPE可以同时访问不同的业务网络,提高了用户的业务体验。The access device provided in this embodiment can select different DNS servers according to different types of DNS request messages, without limiting it to a fixed DNS server, so that each CPE in the home network can access the operating system more flexibly. Multiple services provided by the provider, such as the same CPE can access different service networks at the same time, which improves the user's service experience.

本实施例还提供了一种报文转发系统,该系统可以具体包括客户端设备、接入设备和多个域名系统DNS服务器,接入设备与客户端设备以及多个DNS服务器相连,其中,接入设备,用于接收客户端设备的DNS请求报文,根据预先配置的DNS转发策略从所述DNS请求报文中提取匹配信息,并根据所述DNS转发策略获取所述匹配信息对应的DNS服务器信息;将所述DNS请求报文发送给所述DNS服务器信息对应的DNS服务器上。This embodiment also provides a message forwarding system. The system may specifically include a client device, an access device, and multiple domain name system DNS servers. The access device is connected to the client device and multiple DNS servers, wherein the access device An ingress device, configured to receive a DNS request message from a client device, extract matching information from the DNS request message according to a pre-configured DNS forwarding policy, and obtain a DNS server corresponding to the matching information according to the DNS forwarding policy information; sending the DNS request message to the DNS server corresponding to the DNS server information.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A message forwarding method in a network is characterized in that the network comprises a client device, an access device and a plurality of Domain Name System (DNS) servers, the client device is connected with the DNS servers through the access device, and the method comprises the following steps:
receiving a DNS request message of client equipment;
extracting matching information from the DNS request message according to a pre-configured DNS forwarding strategy, and acquiring DNS server information corresponding to the matching information according to the DNS forwarding strategy;
and sending the DNS request message to a DNS server corresponding to the DNS server information.
2. The method according to claim 1, wherein the extracting matching information from the DNS request packet according to a preconfigured DNS forwarding policy, and the obtaining DNS server information corresponding to the matching information according to the DNS forwarding policy specifically includes:
extracting domain name information from the DNS request message;
and acquiring DNS server information corresponding to the domain name information according to a pre-configured domain name classification forwarding strategy.
3. The method according to claim 1, wherein the extracting matching information from the DNS request packet according to a preconfigured DNS forwarding policy, and the obtaining DNS server information corresponding to the matching information according to the DNS forwarding policy specifically includes:
extracting IP address information from the DNS request message;
and acquiring DNS server information corresponding to the IP address information according to a pre-configured SIP classification forwarding strategy.
4. The method according to claim 1, wherein the extracting matching information from the DNS request packet according to a preconfigured DNS forwarding policy, and the obtaining DNS server information corresponding to the matching information according to the DNS forwarding policy specifically includes:
extracting VLAN identification information of a virtual local area network from the DNS request message;
and obtaining DNS server information corresponding to the VLAN identification information according to a preset VLAN classification forwarding strategy.
5. The method according to claim 1, wherein the extracting matching information from the DNS request packet according to a preconfigured DNS forwarding policy, and the obtaining DNS server information corresponding to the matching information according to the DNS forwarding policy specifically includes:
extracting port information from the DNS request message;
and acquiring DNS server information corresponding to the port information according to a pre-configured Ethernet ETH port classification forwarding strategy.
6. The method according to claim 1, wherein the extracting matching information from the DNS request packet according to a preconfigured DNS forwarding policy, and the obtaining DNS server information corresponding to the matching information according to the DNS forwarding policy specifically includes:
extracting Medium Access Control (MAC) address information from the DNS request message;
and acquiring the DNS server corresponding to the MAC address information according to a pre-configured MAC address classification forwarding strategy.
7. An access device, wherein the access device connects a client device and a plurality of Domain Name System (DNS) servers, the access device comprising:
the user side interface is used for receiving a DNS request message of the client equipment;
the matching module is used for extracting matching information from the DNS request message according to a pre-configured DNS forwarding strategy and acquiring DNS server information corresponding to the matching information according to the DNS forwarding strategy;
and the network side interface is used for forwarding the DNS request message to a DNS server corresponding to the DNS server information.
8. The apparatus of claim 7, wherein the matching module comprises:
an extracting unit, configured to extract domain name information from the DNS request packet;
the acquisition unit is used for acquiring DNS server information corresponding to the domain name information according to a pre-configured domain name classification forwarding strategy; or,
an extracting unit, configured to extract IP address information from the DNS request packet;
an obtaining unit, configured to obtain, according to a pre-configured session initiation protocol SIP classification forwarding policy, DNS server information corresponding to the IP address information; or,
an extracting unit, configured to extract corresponding VLAN identification information from the DNS request message;
the obtaining unit is used for obtaining DNS server information corresponding to the VLAN identification information according to a preset VLAN classification forwarding strategy; or,
an extracting unit, configured to extract port information from the DNS request packet;
the device comprises an acquisition unit, a forwarding unit and a forwarding unit, wherein the acquisition unit is used for acquiring DNS server information corresponding to port information according to a pre-configured Ethernet ETH port classification forwarding strategy; or,
an extracting unit, configured to extract medium access control MAC address information from the DNS request message;
and the obtaining unit is used for obtaining the DNS server corresponding to the MAC address information according to a pre-configured MAC address classification forwarding strategy.
9. A message forwarding system is characterized in that the system comprises client equipment, access equipment and a plurality of Domain Name System (DNS) servers, wherein the access equipment is connected with the client equipment and the DNS servers, and is used for receiving a DNS request message of the client equipment, extracting matching information from the DNS request message according to a pre-configured DNS forwarding strategy and acquiring DNS server information corresponding to the matching information according to the DNS forwarding strategy; and sending the DNS request message to a DNS server corresponding to the DNS server information.
CN2011100405659A 2011-02-18 2011-02-18 Message forwarding method, device and system for network Pending CN102137011A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011100405659A CN102137011A (en) 2011-02-18 2011-02-18 Message forwarding method, device and system for network
PCT/CN2011/081381 WO2012109917A1 (en) 2011-02-18 2011-10-27 Message forwarding method, apparatus and system in network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100405659A CN102137011A (en) 2011-02-18 2011-02-18 Message forwarding method, device and system for network

Publications (1)

Publication Number Publication Date
CN102137011A true CN102137011A (en) 2011-07-27

Family

ID=44296670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100405659A Pending CN102137011A (en) 2011-02-18 2011-02-18 Message forwarding method, device and system for network

Country Status (2)

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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012109917A1 (en) * 2011-02-18 2012-08-23 华为技术有限公司 Message forwarding method, apparatus and system in network
CN103618805A (en) * 2013-12-17 2014-03-05 南京智微亚通信科技有限公司 Wireless remote management system and control method thereof
CN105704246A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Network distribution device and method based on SDN architecture
WO2016095751A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Domain name analysis method and apparatus
WO2017032145A1 (en) * 2015-08-24 2017-03-02 中兴通讯股份有限公司 Domain name forwarding method and apparatus
CN107124370A (en) * 2017-05-05 2017-09-01 网宿科技股份有限公司 Set top box and its traffic management and control method and service request traffic management and control system
CN103685583B (en) * 2012-09-05 2018-02-23 阿里巴巴集团控股有限公司 Domain name resolution method and system
CN108011932A (en) * 2017-11-22 2018-05-08 新华三技术有限公司 Access processing method and device
CN109151085A (en) * 2017-06-15 2019-01-04 中兴通讯股份有限公司 The sending method and device of inquiry of the domain name request
CN109495602A (en) * 2018-12-14 2019-03-19 锐捷网络股份有限公司 A kind of processing method and processing device of network insertion exception
CN110071986A (en) * 2013-08-14 2019-07-30 阿里巴巴集团控股有限公司 A system for domain name resolution
WO2020206849A1 (en) * 2019-04-09 2020-10-15 烽火通信科技股份有限公司 Method and system for processing dhcp data with vlan tag
CN114666269A (en) * 2022-04-11 2022-06-24 浪潮思科网络科技有限公司 VLAN message forwarding method, device, equipment and medium based on IP subnet

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745353B (en) * 2022-04-11 2024-06-25 北京英迪瑞讯网络科技有限公司 Flow scheduling method for IPv4 terminal to access IPv4/IPv6 network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255987A (en) * 1998-02-09 2000-06-07 株式会社Ibi Method for connection for computer network on internet by real name and computer network system thereof
CN1581836A (en) * 2003-08-11 2005-02-16 三星电子株式会社 Domain name service system and method
CN101141396A (en) * 2007-09-18 2008-03-12 华为技术有限公司 Packet processing method and network device
US20090241167A1 (en) * 2008-03-21 2009-09-24 Howard Moore Method and system for network identification via dns
CN101710905A (en) * 2009-12-17 2010-05-19 中国联合网络通信集团有限公司 Address resolution control method and system based on tactics

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137011A (en) * 2011-02-18 2011-07-27 华为技术有限公司 Message forwarding method, device and system for network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255987A (en) * 1998-02-09 2000-06-07 株式会社Ibi Method for connection for computer network on internet by real name and computer network system thereof
CN1581836A (en) * 2003-08-11 2005-02-16 三星电子株式会社 Domain name service system and method
CN101141396A (en) * 2007-09-18 2008-03-12 华为技术有限公司 Packet processing method and network device
US20090241167A1 (en) * 2008-03-21 2009-09-24 Howard Moore Method and system for network identification via dns
CN101710905A (en) * 2009-12-17 2010-05-19 中国联合网络通信集团有限公司 Address resolution control method and system based on tactics

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012109917A1 (en) * 2011-02-18 2012-08-23 华为技术有限公司 Message forwarding method, apparatus and system in network
CN103685583B (en) * 2012-09-05 2018-02-23 阿里巴巴集团控股有限公司 Domain name resolution method and system
CN110071986A (en) * 2013-08-14 2019-07-30 阿里巴巴集团控股有限公司 A system for domain name resolution
CN103618805A (en) * 2013-12-17 2014-03-05 南京智微亚通信科技有限公司 Wireless remote management system and control method thereof
CN105763660A (en) * 2014-12-17 2016-07-13 中兴通讯股份有限公司 Domain name analysis method and device
WO2016095751A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Domain name analysis method and apparatus
WO2017032145A1 (en) * 2015-08-24 2017-03-02 中兴通讯股份有限公司 Domain name forwarding method and apparatus
CN106487938A (en) * 2015-08-24 2017-03-08 中兴通讯股份有限公司 The retransmission method of domain name and device
CN106487938B (en) * 2015-08-24 2019-11-26 南京中兴软件有限责任公司 The retransmission method and device of domain name
CN105704246A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Network distribution device and method based on SDN architecture
CN107124370B (en) * 2017-05-05 2020-01-03 网宿科技股份有限公司 Set top box and flow management and control method and service request flow management and control system thereof
CN107124370A (en) * 2017-05-05 2017-09-01 网宿科技股份有限公司 Set top box and its traffic management and control method and service request traffic management and control system
CN109151085A (en) * 2017-06-15 2019-01-04 中兴通讯股份有限公司 The sending method and device of inquiry of the domain name request
CN108011932A (en) * 2017-11-22 2018-05-08 新华三技术有限公司 Access processing method and device
CN109495602A (en) * 2018-12-14 2019-03-19 锐捷网络股份有限公司 A kind of processing method and processing device of network insertion exception
CN109495602B (en) * 2018-12-14 2022-03-18 锐捷网络股份有限公司 Method and device for processing network access abnormity
WO2020206849A1 (en) * 2019-04-09 2020-10-15 烽火通信科技股份有限公司 Method and system for processing dhcp data with vlan tag
CN114666269A (en) * 2022-04-11 2022-06-24 浪潮思科网络科技有限公司 VLAN message forwarding method, device, equipment and medium based on IP subnet
CN114666269B (en) * 2022-04-11 2024-05-14 浪潮思科网络科技有限公司 VLAN message forwarding method, device, equipment and medium based on IP subnet

Also Published As

Publication number Publication date
WO2012109917A1 (en) 2012-08-23

Similar Documents

Publication Publication Date Title
CN102137011A (en) Message forwarding method, device and system for network
US10439862B2 (en) Communication terminal with multiple virtual network interfaces
US9100352B2 (en) Method, device, and system for forwarding packet
US12021561B1 (en) Data provisioning
US9705706B2 (en) Multiple prefix connections with translated virtual local area network
EP3328004A1 (en) Broadband access
CN108566451B (en) Message processing method, access controller and network node
CN104521189B (en) The network terminal obtains method, equipment, the system of business
US20130173797A1 (en) Cloud based customer premises equipment
US20070276957A1 (en) Apparatus and method for providing data session source device information
US20110202670A1 (en) Method, device and system for identifying ip session
EP2680495A1 (en) Method, system, and access device for user service access
CN105338125B (en) Message processing method and device
EP2675117A1 (en) Routing method and device for host in multi-homing site
WO2014015786A1 (en) Two-layer access method, device and system in hfc network
EP3701683B1 (en) Cable modem interface mask based virtual local area network mapping
WO2012041168A1 (en) Processing method for network connection for ipv6 network and device thereof
CN113225238B (en) Message transmission method, access node, access controller and access system
CN105306353A (en) Method, equipment and system for forwarding message
CN107547467A (en) A kind of circuit authentication method, system and controller
CN102255814A (en) Method, device and system for selecting transfer path
CN103297299B (en) Automatically the method and system of DLNA device are found
CN108322400B (en) Packet processing method, system and routing device
CN104253761B (en) A kind of method and device of bandwidth coordinated signals
WO2017012443A2 (en) Message transmission method, access node, access controller and access system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110727