CN102238238A - Method and device for accessing local network equipment - Google Patents
Method and device for accessing local network equipment Download PDFInfo
- Publication number
- CN102238238A CN102238238A CN2010101542042A CN201010154204A CN102238238A CN 102238238 A CN102238238 A CN 102238238A CN 2010101542042 A CN2010101542042 A CN 2010101542042A CN 201010154204 A CN201010154204 A CN 201010154204A CN 102238238 A CN102238238 A CN 102238238A
- Authority
- CN
- China
- Prior art keywords
- address
- local network
- network device
- femtocell
- user terminal
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例公开一种访问本地网络设备的方法和装置,涉及通信领域。以解决现有技术中由于必须输入本地网络设备的IP地址才能访问该设备,而造成的操作复杂的问题。本发明提供的技术方案包括:Femtocell接收用户终端发送的包含域名的解析请求,所述域名为所述用户终端所要访问的本地网络设备的域名;并从预先建立的地址映射表中查询所述域名对应的IP地址,所述IP地址为所述本地网络设备的IP地址;Femtocell将查询到的IP地址发送给用户终端,通知用户终端根据本地网络设备的IP地址对本地网络设备进行访问。本发明提供的技术方案可以应用在移动终端对本地网络中的数字家庭设备DHD进行访问的技术领域中。
The embodiment of the invention discloses a method and a device for accessing local network equipment, which relate to the communication field. In order to solve the problem in the prior art that the operation is complicated because the IP address of the local network device must be input to access the device. The technical solution provided by the present invention includes: Femtocell receives a resolution request sent by a user terminal that includes a domain name, and the domain name is the domain name of a local network device to be accessed by the user terminal; and queries the domain name from a pre-established address mapping table The corresponding IP address, the IP address being the IP address of the local network device; the Femtocell sends the queried IP address to the user terminal, and notifies the user terminal to access the local network device according to the IP address of the local network device. The technical solution provided by the present invention can be applied in the technical field where the mobile terminal accesses the digital home device DHD in the local network.
Description
技术领域 technical field
本发明涉及通信领域,尤其涉及一种访问本地网络设备的方法和装置。The invention relates to the communication field, in particular to a method and device for accessing local network equipment.
背景技术 Background technique
Femtocell(飞蜂窝)技术是一种扩展移动通信室内覆盖的解决方案。在Femtocell的整体网络架构中,传统的数据业务需要依次经过本地网、IP网、移动核心网,最终到达目的IP网络。Femtocell (flying honeycomb) technology is a solution for extending indoor coverage of mobile communications. In the overall network architecture of Femtocell, traditional data services need to pass through the local network, IP network, and mobile core network in sequence, and finally reach the destination IP network.
GI接口(GPRS interface)是GPRS与外部数据网之间的接口,各种协议的封装、解封装、地址转换(如私有网IP地址转换为公有网IP地址)等操作都可以在GI接口上进行。GI interface (GPRS interface) is the interface between GPRS and the external data network. Operations such as encapsulation, decapsulation, and address conversion (such as converting a private network IP address to a public network IP address) of various protocols can be performed on the GI interface. .
在Femtocell中集成GI接口后,就可以使移动终端直接访问同一本地网络中的其它设备,而不用再途径外部的IP宽带网和移动核心网。图1所示的是用户设备(User Equipment,UE)访问数字家庭设备(Digital Home Device,DHD)的示意图。After the GI interface is integrated in the Femtocell, the mobile terminal can directly access other devices in the same local network without going through the external IP broadband network and mobile core network. FIG. 1 is a schematic diagram of a user equipment (User Equipment, UE) accessing a digital home device (Digital Home Device, DHD).
在实现本发明的过程中,发明人发现,用户使用UE访问DHD时,必须输入该DHD的设备地址,例如,http://192.168.1.100。这种数字形式的IP地址需要经过查询后才能获取,并且,该IP地址有时候可能发生变化,很难被记忆,这样就增加了用户操作的复杂性。In the process of implementing the present invention, the inventors found that when the user accesses the DHD using the UE, the device address of the DHD must be input, for example, http://192.168.1.100. The IP address in digital form can only be obtained after being queried, and the IP address may change sometimes, making it difficult to remember, which increases the complexity of user operations.
发明内容 Contents of the invention
本发明的实施例提供一种访问本地网络设备的方法和装置,能够简化用户的输入操作。Embodiments of the present invention provide a method and device for accessing local network equipment, which can simplify user input operations.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
一种访问本地网络设备的方法,应用于Femtocell中,包括:A method for accessing local network equipment, applied in Femtocell, including:
Femtocell接收用户终端发送的包含域名的解析请求,所述域名为所述用户终端所要访问的本地网络设备的域名;The Femtocell receives the resolution request sent by the user terminal and includes the domain name, and the domain name is the domain name of the local network device to be accessed by the user terminal;
Femtocell从预先建立的地址映射表中查询所述域名对应的IP地址,所述IP地址为所述本地网络设备的IP地址;Femtocell queries the IP address corresponding to the domain name from a pre-established address mapping table, and the IP address is the IP address of the local network device;
Femtocell将所述查询到的本地网络设备的IP地址发送给所述用户终端,通知所述用户终端根据所述本地网络设备的IP地址对所述本地网络设备进行访问。The Femtocell sends the queried IP address of the local network device to the user terminal, and notifies the user terminal to access the local network device according to the IP address of the local network device.
一种访问本地网络设备的装置,应用于Femtocell中,包括:A device for accessing local network equipment, applied in Femtocell, including:
第一接收单元,用于接收用户终端发送的包含域名的解析请求,所述域名为所述用户终端所要访问的本地网络设备的域名;The first receiving unit is configured to receive a resolution request sent by the user terminal that includes a domain name, where the domain name is the domain name of a local network device to be accessed by the user terminal;
查询单元,用于从预先建立的地址映射表中查询由所述第一接收单元接收的域名对应的IP地址,所述IP地址为所述本地网络设备的IP地址;a query unit, configured to query an IP address corresponding to the domain name received by the first receiving unit from a pre-established address mapping table, where the IP address is the IP address of the local network device;
第一发送单元,用于将所述查询到的本地网络设备的IP地址发送给所述用户终端,通知所述用户终端根据所述本地网络设备的IP地址对所述本地网络设备进行访问。The first sending unit is configured to send the queried IP address of the local network device to the user terminal, and notify the user terminal to access the local network device according to the IP address of the local network device.
本发明实施例提供的访问本地网络设备的方法和装置,通过预先设置的地址映射表,可以将设备的域名转换为对应的IP地址,使得在本地网络中就可以实现简单易用的域名解析。当用户访问本地网络中的某个设备时,只需要输入该设备的域名,而不是复杂难记的IP地址,使得用户输入更加简便。本发明的实施例提供的访问本地网络设备的方法和装置,能够简化用户的输入操作。The method and device for accessing local network devices provided by the embodiments of the present invention can convert the domain name of the device into a corresponding IP address through a preset address mapping table, so that easy-to-use domain name resolution can be realized in the local network. When a user accesses a certain device in the local network, he only needs to enter the domain name of the device instead of a complicated and hard-to-remember IP address, which makes the user input easier. The method and device for accessing local network equipment provided by the embodiments of the present invention can simplify user input operations.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例的本地网络结构;Fig. 1 is the local network structure of the embodiment of the present invention;
图2为本发明实施例提供的访问本地网络设备的方法流程图;FIG. 2 is a flowchart of a method for accessing a local network device provided by an embodiment of the present invention;
图3为本发明另一个实施例提供的访问本地网络设备的方法流程图;FIG. 3 is a flowchart of a method for accessing a local network device according to another embodiment of the present invention;
图4为本发明实施例提供的访问本地网络设备的装置结构示意图一;FIG. 4 is a schematic structural diagram of an apparatus for accessing a local network device provided by an embodiment of the present invention;
图5为本发明实施例提供的访问本地网络设备的装置结构示意图二;FIG. 5 is a second schematic structural diagram of an apparatus for accessing a local network device provided by an embodiment of the present invention;
图6为本发明实施例提供的访问本地网络设备的装置结构示意图三;FIG. 6 is a third structural diagram of an apparatus for accessing a local network device provided by an embodiment of the present invention;
图7为本发明实施例提供的访问本地网络设备的装置结构示意图四;FIG. 7 is a fourth structural schematic diagram of an apparatus for accessing a local network device provided by an embodiment of the present invention;
图8为本发明实施例中UE使用域名访问DHD的通信流程。FIG. 8 is a communication flow of a UE using a domain name to access a DHD in 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 making creative efforts belong to the protection scope of the present invention.
为了解决现有技术中由于必须输入本地网络设备的IP地址才能访问该设备,从而造成的操作复杂的问题,本发明实施例提供一种访问本地网络设备的方法和装置,以下所述实施例均应用在Femtocell中。In order to solve the problem of complicated operation in the prior art because the IP address of a local network device must be entered to access the device, the embodiment of the present invention provides a method and device for accessing a local network device. The following embodiments are all Applied in Femtocell.
如图2所示,本发明实施例提供的访问本地网络设备的方法,包括:As shown in Figure 2, the method for accessing a local network device provided by an embodiment of the present invention includes:
步骤101,Femtocell接收用户终端发送的包含域名的解析请求,所述域名为所述用户终端所要访问的本地网络设备的域名;
在本发明实施例中,当用户终端想要访问同一个本地网络中的数字家庭设备(Digital Home Device,DHD)时,可以输入DHD的域名,该域名直观地反映了DHD的名称或所具有的业务,使用户不需要输入难以记忆的数字形式的IP地址。并由Femtocell接收包含此域名的解析请求,以便找到该域名对应的IP地址。In the embodiment of the present invention, when the user terminal wants to access a digital home device (Digital Home Device, DHD) in the same local network, the domain name of the DHD can be input, which intuitively reflects the name of the DHD or the Business, so that users do not need to enter IP addresses in the form of numbers that are difficult to remember. And the Femtocell receives the resolution request containing the domain name, so as to find the IP address corresponding to the domain name.
步骤102,Femtocell从预先建立的地址映射表中查询所述域名对应的IP地址,所述IP地址为所述本地网络设备的IP地址;
在本发明实施例中,所述地址映射表是由Femtocell预先建立的,反映了本地网络中每个设备的IP地址和该设备域名的对应关系。当Femtocell接收到解析请求时,会在所述地址映射表中查询,并将查询到的IP地址返回给用户终端。In the embodiment of the present invention, the address mapping table is pre-established by the Femtocell, reflecting the correspondence between the IP address of each device in the local network and the domain name of the device. When the Femtocell receives the resolution request, it will query in the address mapping table, and return the IP address found in the query to the user terminal.
步骤103,Femtocell将所述查询到的本地网络设备的IP地址发送给所述用户终端,通知所述用户终端根据所述本地网络设备的IP地址对所述本地网络设备进行访问。In
在本发明实施例中,用户终端将Femtocell返回的IP地址作为目的IP地址,并将包括用户终端自身的IP地址和上述目的IP地址的访问请求发送给Femtocell,由Femtocell对用户终端的IP地址进行转换后发送到本地网络中。具有目的IP地址的设备收到此访问请求后,返回响应消息,完成一次通信过程,以实现用户终端对本地网络设备进行访问的目的。In the embodiment of the present invention, the user terminal uses the IP address returned by the Femtocell as the destination IP address, and sends an access request including the IP address of the user terminal itself and the above-mentioned destination IP address to the Femtocell, and the Femtocell performs a check on the IP address of the user terminal. After conversion, it is sent to the local network. After receiving the access request, the device with the destination IP address returns a response message and completes a communication process, so as to realize the purpose of the user terminal to access the local network device.
本发明实施例提供的访问本地网络设备的方法,通过预先设置的地址映射表,可以将设备的域名转换为对应的IP地址,使得在本地网络中就可以实现简单易用的域名解析。当用户访问本地网络中的某个设备时,只需要输入该设备的域名,而不是复杂难记的IP地址,使得用户输入更加简便。本发明的实施例提供的访问本地网络设备的方法,能够简化用户的输入操作。The method for accessing a local network device provided by the embodiment of the present invention can convert the domain name of the device into a corresponding IP address through the preset address mapping table, so that easy-to-use domain name resolution can be realized in the local network. When a user accesses a certain device in the local network, he only needs to enter the domain name of the device instead of a complicated and hard-to-remember IP address, which makes the user input easier. The method for accessing local network equipment provided by the embodiments of the present invention can simplify user input operations.
为了使本领域技术人员能够更清楚地理解本发明实施例提供的技术方案,下面通过具体的实施例,对本发明另一个实施例提供的访问本地网络设备的方法进行详细说明。In order to enable those skilled in the art to understand the technical solutions provided by the embodiments of the present invention more clearly, the method for accessing a local network device provided by another embodiment of the present invention will be described in detail below through specific embodiments.
如图3所示,本发明另一个实施例提供的访问本地网络设备的方法,包括:As shown in FIG. 3, the method for accessing a local network device provided by another embodiment of the present invention includes:
步骤201,用户设备(User Equipment,UE)发送包含域名的解析请求;Step 201, a user equipment (User Equipment, UE) sends a resolution request including a domain name;
在本发明实施例中,UE向Femtocell发送包含域名的解析请求。Femtocell相当于一个家用型的3G微基站,它通过宽带互联网接入到移动核心网,为家庭环境提供3G移动通信业务。在Femtocell中集成GI接口功能后,使得UE能够直接访问本地网络中的DHD设备,而不用途径宽带互联网和移动核心网。所述DHD设备,主要是指通用即插即用(Universal Plug and Play,UPnP)媒体服务设备,可以实现媒体的便捷播放。所述媒体服务设备是UPnP规范制定的一种设备形态,能够实现AV转换、录像调度、连接管理和呈现目录内容等业务功能。由于DHD设备的IP地址难以记忆,而且,很多用户甚至不知道怎样查询所述设备的IP地址,因此,本实施例中,将本地网络中的每个DHD设备都预先设定一个简单直观的域名,例如,DHD-MEDIA,用户要访问某个设备时,只需要输入该设备的域名即可。例如,用户用手机访问本地网络中的某个DHD时,只需要在手机中输入http://DHD-MEDIA,手机会向Femtocell发送一个包含DHD-MEDIA的域名解析请求,请求将该域名解析为对应的IP地址。需要说明的是,所述域名可以是DHD本身的设备名,也可以是该DHD具有的某项业务名,取名规则只要使用户觉得简单直观即可。In the embodiment of the present invention, the UE sends a resolution request including the domain name to the Femtocell. Femtocell is equivalent to a home-type 3G micro base station, which is connected to the mobile core network through the broadband Internet to provide 3G mobile communication services for the home environment. After the GI interface function is integrated in the Femtocell, the UE can directly access the DHD equipment in the local network without going through the broadband Internet and the mobile core network. The DHD device mainly refers to a universal plug and play (Universal Plug and Play, UPnP) media service device, which can realize convenient playback of media. The media service device is a device form stipulated by the UPnP specification, which can realize business functions such as AV conversion, video scheduling, connection management and presentation of directory content. Since the IP address of the DHD device is difficult to remember, and many users do not even know how to query the IP address of the device, therefore, in this embodiment, each DHD device in the local network is preset with a simple and intuitive domain name , for example, DHD-MEDIA, when the user wants to access a certain device, he only needs to enter the domain name of the device. For example, when a user uses a mobile phone to access a DHD in the local network, he only needs to enter http://DHD-MEDIA in the mobile phone, and the mobile phone will send a domain name resolution request containing DHD-MEDIA to the Femtocell, requesting that the domain name be resolved to corresponding IP address. It should be noted that the domain name may be the device name of the DHD itself, or a certain service name of the DHD, and the naming rules only need to be simple and intuitive for the user.
步骤202,Femtocell接收用户终端发送的包含域名的解析请求,所述域名为所述用户终端所要访问的本地网络设备的域名;Step 202, the Femtocell receives the resolution request sent by the user terminal and includes the domain name, and the domain name is the domain name of the local network device to be accessed by the user terminal;
在本发明实施例中,Femtocell在指定的端口(通常是UDP 53)上监听步骤201中由用户终端发送的解析请求。In the embodiment of the present invention, the Femtocell monitors the resolution request sent by the user terminal in step 201 on a specified port (usually UDP 53).
步骤203,Femtocell从预先建立的地址映射表中查询所述域名对应的IP地址,所述IP地址为所述本地网络设备的IP地址;Step 203, the Femtocell queries the IP address corresponding to the domain name from the pre-established address mapping table, and the IP address is the IP address of the local network device;
在本发明实施例中,所述地址映射表是由Femtocell预先建立的,反映了本地网络中每个设备的IP地址和该设备域名的对应关系。Femtocell可以通过主动查询的方式来建立该地址映射表,也可以通过接收本地网络中各个设备的业务上报消息来建立该地址映射表,下面对这两种方法进行具体描述:In the embodiment of the present invention, the address mapping table is pre-established by the Femtocell, reflecting the correspondence between the IP address of each device in the local network and the domain name of the device. The Femtocell can establish the address mapping table by actively inquiring, or by receiving the service report message of each device in the local network. The following two methods are described in detail:
方法一,Femtocell以IP多播的形式向本地网络中发送业务查询请求,查询哪些DHD具有Femtocell要求的某种业务,具有该业务功能的DHD以IP单播的形式向Femtocell回复响应消息,该响应消息中包含了该DHD的IP地址和该DHD预先被设置的域名,即通过此响应消息,Femtocell可以获知具有所述业务的DHD的IP地址和域名,并将这两者之间建立对应关系。当Femtocell查询完所有的业务功能后,这些对应关系就构成了一个地址映射表。Method 1: Femtocell sends a service query request to the local network in the form of IP multicast to query which DHDs have a certain service required by Femtocell, and the DHD with this service function replies to Femtocell with a response message in the form of IP unicast, the response The message includes the IP address of the DHD and the pre-configured domain name of the DHD, that is, through this response message, the Femtocell can learn the IP address and domain name of the DHD with the service, and establish a corresponding relationship between them. After the Femtocell queries all the service functions, these correspondences form an address mapping table.
方法二,由于本地网络中的DHD会以IP多播的形式定期向网络中发送业务上报消息,以报告自身具有哪些业务功能。所以Femtocell可以主动监听这些业务上报消息,以便获取所述业务上报消息中所包含的DHD的IP地址和域名,从而建立它们之间的对应关系,即建立一个地址映射表。所述业务上报消息的类型为数字生活网络联盟(Digital Living Network Alliance,DLNA)协议,DLNA协议是目前家庭网络中普遍使用的一种标准协议,DLNA底层基于UPnP来实现,因此基于此协议,能够使本发明实施例得到更广泛地应用。The second method is that the DHD in the local network will regularly send a service report message to the network in the form of IP multicast to report which service functions it has. Therefore, the Femtocell can actively monitor these service reporting messages, so as to obtain the IP address and domain name of the DHD contained in the service reporting messages, so as to establish a corresponding relationship between them, that is, to establish an address mapping table. The type of the service reporting message is the Digital Living Network Alliance (DLNA) protocol. The DLNA protocol is a standard protocol commonly used in home networks at present. The bottom layer of DLNA is implemented based on UPnP. Therefore, based on this protocol, it can The embodiment of the present invention can be applied more widely.
当Femtocell接收到解析请求时,会在所述地址映射表中查找解析请求中包含的域名所对应的IP地址,找到后会即刻返回给UE。如果在所述地址映射表中找不到该域名对应的IP地址,Femtocell会将该解析请求转发给移动核心网中的DNS服务器,由该DNS服务器来完成解析任务。所述DNS服务器的IP地址包含在所述解析请求中,是在UE完成上网准备的流程中由移动核心网为其分配的,同时分配给UE的还有该UE自身的IP地址。Femtocell在转发所述解析请求时遵循Femtocell中GI接口的转发规则,即一种路由策略,该转发规则确定了对于某一个目标网络,是采用GI接口转发还是通过移动核心网转发。当DNS服务器获取所述域名对应的IP地址后,将此IP地址返回给Femtocell,再由Femtocell将此IP地址发送给UE。When the Femtocell receives the resolution request, it will search the address mapping table for the IP address corresponding to the domain name included in the resolution request, and will return it to the UE immediately after finding it. If the IP address corresponding to the domain name cannot be found in the address mapping table, the Femtocell will forward the resolution request to the DNS server in the mobile core network, and the DNS server will complete the resolution task. The IP address of the DNS server is included in the resolution request, and is allocated by the mobile core network when the UE completes the process of preparing for accessing the Internet, and at the same time, the IP address of the UE itself is also allocated to the UE. When the Femtocell forwards the parsing request, it follows the forwarding rule of the GI interface in the Femtocell, that is, a routing policy. The forwarding rule determines whether to use the GI interface for forwarding or forward through the mobile core network for a certain target network. After obtaining the IP address corresponding to the domain name, the DNS server returns the IP address to the Femtocell, and then the Femtocell sends the IP address to the UE.
需要说明的是,一个DHD可以注册多项业务,同一个DHD的多项不同业务可以对应该设备唯一的IP地址。例如,某个DHD的域名为DHD-MEDIA,并且它具有三个业务A,B,C,它们对应同一个IP地址192.168.1.100,当用户输入http://DHD-MEDIA/B时,Femtocell会将其解析成http://192.168.1.100/B再返回给用户UE。It should be noted that one DHD can register multiple services, and multiple different services of the same DHD can correspond to the unique IP address of the device. For example, the domain name of a certain DHD is DHD-MEDIA, and it has three services A, B, and C, which correspond to the same IP address 192.168.1.100. When the user enters http://DHD-MEDIA/B, Femtocell will It is parsed into http://192.168.1.100/B and returned to the user UE.
上述两种建立地址映射表的方法可以分别应用于不同时段,例如,当Femtocell刚开机时,可以用主动查询的方式来建立地址映射表,以后可以通过监听网络中的业务上报消息,来实时地更新此地址映射表。The above two methods of establishing the address mapping table can be applied to different time periods respectively. For example, when the Femtocell is just powered on, the address mapping table can be established by actively querying, and then the address mapping table can be established in real time by listening to the service reporting messages in the network. Update this address mapping table.
步骤204,Femtocell将所述查询到的本地网络设备的IP地址发送给所述用户终端;Step 204, the Femtocell sends the queried IP address of the local network device to the user terminal;
在本实施例中,Femtocell将通过查找方式解析出的IP地址192.168.1.100发送给UE。In this embodiment, the Femtocell sends the IP address 192.168.1.100 resolved through the search to the UE.
步骤205,Femtocell接收所述用户终端发送的访问请求,所述访问请求中包含所述用户终端的IP地址和所述本地网络设备的IP地址;Step 205, the Femtocell receives the access request sent by the user terminal, and the access request includes the IP address of the user terminal and the IP address of the local network device;
在本发明实施例中,UE访问DHD设备是通过Femtocell进行访问的,即UE需要将访问请求消息先发送给Femtocell,由Femtocell完成网络地址转换(Network Address Translation,NAT)后再进行转发。所述访问请求中包含该UE自身的IP地址(源IP地址,用Sip=UEIP表示)、所要访问的DHD的IP地址(目的IP地址,用Dip=DHDIP表示)、请求消息报文的源端口号(Sport)、目的端口号(Dport)和所述报文的IP协议类型。In the embodiment of the present invention, the UE accesses the DHD device through the Femtocell, that is, the UE needs to send the access request message to the Femtocell first, and the Femtocell completes the Network Address Translation (NAT) before forwarding. The access request includes the UE's own IP address (source IP address, represented by Sip=UEIP), the IP address of the DHD to be accessed (destination IP address, represented by Dip=DHDIP), the source port of the request message message number (Sport), destination port number (Dport) and the IP protocol type of the message.
步骤206,Femtocell将所述用户终端的IP地址转换成Femtocell的IP地址;Step 206, the Femtocell converts the IP address of the user terminal into the IP address of the Femtocell;
在本发明实施例中,Femtocell接收到所述访问请求后,用自身的IP地址替换该访问请求报文的源IP地址,并且对所述报文的源端口号(TCP或者UDP协议的源端口号)使用Femtocell端口池中的一个端口natport进行替换,如图8所示。与此同时,Femtocell还需要根据上述参数建立一个转发表项,即将所述参数信息、所述替换信息都记录下来,以便后续进行网络地址逆变换时有据可依。In the embodiment of the present invention, after the Femtocell receives the access request, it replaces the source IP address of the access request message with its own IP address, and the source port number of the message (the source port of TCP or UDP protocol) number) is replaced by a port natport in the Femtocell port pool, as shown in Figure 8. At the same time, the Femtocell also needs to establish a forwarding table item according to the above parameters, that is, record the parameter information and the replacement information, so as to provide evidence for the subsequent inverse transformation of the network address.
步骤207,Femtocell根据所述本地网络设备的IP地址找到所述本地网络设备,以实现所述用户终端向所述本地网络设备发送访问信息;Step 207, the Femtocell finds the local network device according to the IP address of the local network device, so that the user terminal sends access information to the local network device;
步骤208,所述本地网络设备根据所述Femtocell的IP地址找到Femtocell,Femtocell根据所述用户终端的IP地址找到所述用户终端,以实现所述本地网络设备向所述用户终端返回应答消息。Step 208, the local network device finds the Femtocell according to the IP address of the Femtocell, and the Femtocell finds the user terminal according to the IP address of the user terminal, so that the local network device returns a response message to the user terminal.
在本发明实施例中,Femtocell将进行网络地址转换后的访问请求根据目的IP地址发送给目的DHD,该DHD响应所述访问请求,并将响应消息返回给Femtocell。该响应消息中的目的IP地址为Femtocell的IP地址,源IP地址为DHD的IP地址,源端口号为Dport,目的端口号为natport。Femtocell对该响应消息的报文进行网络地址的逆变换,即通过查询步骤206中的转发表项,使用转发表项中的源IP地址、源端口号来替换响应消息报文中的目的IP地址、目的端口号,最后由Femtocell将进行网络地址转换后的响应消息发送给UE,如图8所示。重复步骤205至步骤207的过程,可以完成UE与DHD的多次通信。In the embodiment of the present invention, the Femtocell sends the access request after network address translation to the destination DHD according to the destination IP address, and the DHD responds to the access request and returns a response message to the Femtocell. The destination IP address in the response message is the IP address of the Femtocell, the source IP address is the IP address of the DHD, the source port number is Dport, and the destination port number is natport. Femtocell carries out the inverse conversion of the network address of the message of this response message, namely by querying the forwarding table item in step 206, using the source IP address and source port number in the forwarding table item to replace the destination IP address in the response message message , the destination port number, and finally the Femtocell sends the response message after network address translation to the UE, as shown in FIG. 8 . By repeating the process from step 205 to step 207, multiple communications between the UE and the DHD can be completed.
本发明实施例提供的访问本地网络设备的方法,通过预先设置的地址映射表,可以将设备的域名转换为对应的IP地址,使得在本地网络中就可以实现简单易用的域名解析。当用户访问本地网络中的某个设备时,只需要输入该设备的域名,而不是复杂难记的IP地址,使得用户输入更加简便。本发明的实施例提供的访问本地网络设备的方法,能够简化用户的输入操作。The method for accessing a local network device provided by the embodiment of the present invention can convert the domain name of the device into a corresponding IP address through the preset address mapping table, so that easy-to-use domain name resolution can be realized in the local network. When a user accesses a certain device in the local network, he only needs to enter the domain name of the device instead of a complicated and hard-to-remember IP address, which makes the user input easier. The method for accessing local network equipment provided by the embodiments of the present invention can simplify user input operations.
如图4所示,本发明实施例还提供一种访问本地网络设备的装置,包括:As shown in FIG. 4, an embodiment of the present invention also provides an apparatus for accessing a local network device, including:
第一接收单元30l,用于接收用户终端发送的包含域名的解析请求,所述域名为所述用户终端所要访问的本地网络设备的域名;The
查询单元302,用于从预先建立的地址映射表中查询由所述第一接收单元301接收的域名对应的IP地址,所述IP地址为所述本地网络设备的IP地址;A
第一发送单元303,用于将由所述查询单元302获得的本地网络设备的IP地址发送给所述用户终端,通知所述用户终端根据所述本地网络设备的IP地址对所述本地网络设备进行访问。The
进一步地,如图5所示,所述装置还包括:Further, as shown in Figure 5, the device also includes:
第二发送单元304,用于向本地网络发送业务查询请求;The
第二接收单元305,用于接收本地网络中具有所述业务的设备的响应消息,所述响应消息中包含所述设备的IP地址和所述设备的域名;The
第一建立单元306,用于根据由所述第二接收单元305接收的响应消息建立所述地址映射表。The
以上三个单元是Femtocell通过主动查询的方式来完成地址映射表的建立过程。The above three units are the process of establishing the address mapping table by the Femtocell through active query.
或者,如图6所示,所述装置还包括:Or, as shown in Figure 6, the device also includes:
第三接收单元307,用于接收本地网络中每个设备定期发送的业务上报消息,所述业务上报消息中包含所述设备的IP地址和所述设备的域名;The
第二建立单元308,用于根据由所述第三接收单元307接收的业务上报消息建立所述地址映射表。The
以上两个单元是Femtocell通过接收业务上报消息的方式来完成地址映射表的建立过程。The above two units are for the Femtocell to complete the process of establishing the address mapping table by receiving service report messages.
进一步地,如图7所示,所述装置还包括:Further, as shown in Figure 7, the device also includes:
第四接收单元309,用于接收所述用户终端发送的访问请求,所述访问请求中包含所述用户终端的IP地址和所述本地网络设备的IP地址;The
转换单元310,用于将由所述第四接收单元309接收的用户终端的IP地址转换为Femtocell的IP地址;A
第一查找单元311,用于根据由所述第四接收单元309接收的本地网络设备的IP地址找到所述本地网络设备,以实现所述用户终端向所述本地网络设备发送访问信息;The
第二查找单元312,用于在所述本地网络设备根据所述Femtocell的IP地址找到Femtocell之后,根据由所述第四接收单元309接收的用户终端的IP地址找到所述用户终端,以实现所述本地网络设备向所述用户终端返回应答消息。The
以上所述装置的具体实现方式可以参见步骤201~步骤208所述的方法部分,此处不再赘述。For the specific implementation manner of the above-mentioned apparatus, reference may be made to the method part described in steps 201 to 208, which will not be repeated here.
本发明实施例提供的访问本地网络设备的装置,通过预先设置的地址映射表,可以将设备的域名转换为对应的IP地址,使得在本地网络中就可以实现简单易用的域名解析。当用户访问本地网络中的某个设备时,只需要输入该设备的域名,而不是复杂难记的IP地址,使得用户输入更加简便。本发明的实施例提供的访问本地网络设备的装置,能够简化用户的输入操作。The device for accessing local network devices provided by the embodiments of the present invention can convert the domain name of the device into a corresponding IP address through the preset address mapping table, so that easy-to-use domain name resolution can be realized in the local network. When a user accesses a certain device in the local network, he only needs to enter the domain name of the device instead of a complicated and hard-to-remember IP address, which makes the user input easier. The device for accessing local network equipment provided by the embodiments of the present invention can simplify user input operations.
本发明提供的技术方案可以应用在移动终端对本地网络中的数字家庭设备DHD进行访问的技术领域中。The technical solution provided by the present invention can be applied in the technical field where the mobile terminal accesses the digital home device DHD in the local network.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于计算机可读存储介质中,如ROM/RAM、磁碟或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM/RAM, disk or disc, etc.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101542042A CN102238238A (en) | 2010-04-23 | 2010-04-23 | Method and device for accessing local network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101542042A CN102238238A (en) | 2010-04-23 | 2010-04-23 | Method and device for accessing local network equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102238238A true CN102238238A (en) | 2011-11-09 |
Family
ID=44888433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010101542042A Pending CN102238238A (en) | 2010-04-23 | 2010-04-23 | Method and device for accessing local network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102238238A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023778A (en) * | 2012-12-05 | 2013-04-03 | 华为技术有限公司 | Method and device for selecting path for router |
CN103248664A (en) * | 2012-02-14 | 2013-08-14 | 中兴通讯股份有限公司 | Processing method for domain name information, wireless router and client |
CN103763189A (en) * | 2014-01-09 | 2014-04-30 | 华为技术有限公司 | Application resource access method and router |
CN103973836A (en) * | 2014-05-23 | 2014-08-06 | 杭州智屏科技有限公司 | Domain name preprocessing method based on client side |
US9479970B2 (en) | 2011-10-31 | 2016-10-25 | Huawei Technologies Co, Ltd. | Bearer switching method, home NodeB gateway, and home NodeB |
CN111400388A (en) * | 2020-03-20 | 2020-07-10 | 北京东方金信科技有限公司 | Method and system for uniformly connecting and sharing multiple data sources |
CN112752300A (en) * | 2020-12-29 | 2021-05-04 | 锐捷网络股份有限公司 | Method and device for realizing local distribution |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7313631B1 (en) * | 1999-09-06 | 2007-12-25 | University Of Bristol | DNS updating in communication network |
CN101340639A (en) * | 2008-08-18 | 2009-01-07 | 深圳华为通信技术有限公司 | Access method, system and device for a wireless router |
CN101360094A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Method for automatically discovering femtocell configuration server |
CN101631133A (en) * | 2008-07-15 | 2010-01-20 | 华为技术有限公司 | Domain name analyzing system, equipment and method |
-
2010
- 2010-04-23 CN CN2010101542042A patent/CN102238238A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7313631B1 (en) * | 1999-09-06 | 2007-12-25 | University Of Bristol | DNS updating in communication network |
CN101360094A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Method for automatically discovering femtocell configuration server |
CN101631133A (en) * | 2008-07-15 | 2010-01-20 | 华为技术有限公司 | Domain name analyzing system, equipment and method |
CN101340639A (en) * | 2008-08-18 | 2009-01-07 | 深圳华为通信技术有限公司 | Access method, system and device for a wireless router |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9479970B2 (en) | 2011-10-31 | 2016-10-25 | Huawei Technologies Co, Ltd. | Bearer switching method, home NodeB gateway, and home NodeB |
CN103248664A (en) * | 2012-02-14 | 2013-08-14 | 中兴通讯股份有限公司 | Processing method for domain name information, wireless router and client |
CN103023778A (en) * | 2012-12-05 | 2013-04-03 | 华为技术有限公司 | Method and device for selecting path for router |
CN103023778B (en) * | 2012-12-05 | 2016-02-03 | 华为技术有限公司 | route selection method and device |
CN103763189A (en) * | 2014-01-09 | 2014-04-30 | 华为技术有限公司 | Application resource access method and router |
CN103763189B (en) * | 2014-01-09 | 2017-11-17 | 华为技术有限公司 | A kind of application resource access method and router |
CN103973836A (en) * | 2014-05-23 | 2014-08-06 | 杭州智屏科技有限公司 | Domain name preprocessing method based on client side |
CN111400388A (en) * | 2020-03-20 | 2020-07-10 | 北京东方金信科技有限公司 | Method and system for uniformly connecting and sharing multiple data sources |
CN112752300A (en) * | 2020-12-29 | 2021-05-04 | 锐捷网络股份有限公司 | Method and device for realizing local distribution |
CN112752300B (en) * | 2020-12-29 | 2022-09-20 | 锐捷网络股份有限公司 | Method and device for realizing local distribution |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9307039B2 (en) | Method, system, push client, and user equipment for service communication | |
Jara et al. | Glowbal IP: An adaptive and transparent IPv6 integration in the Internet of Things | |
CN101296203B (en) | Device, system and method for automatically configuring application terminal in family network | |
JP5335886B2 (en) | Method and apparatus for communicating data packets between local networks | |
CN101212384B (en) | Method, system and device for realizing home network interconnection | |
CN113411215B (en) | Time-sensitive network centralized user configuration method and system based on OPC UA | |
US7864709B2 (en) | Method and apparatus for looking up configuration information for a network node | |
US20100077023A1 (en) | Method and Apparatus for Establishing a Session | |
US20080215668A1 (en) | Communication device, system and method for managing local network device remotely | |
CN103109517B (en) | Method, terminal and system for dual-stack terminal accessing server | |
US20050278646A1 (en) | Spontaneous discovery of remote service profiles | |
EP2922321A1 (en) | 6lowpan network-based service discovery method and apparatus | |
KR100512959B1 (en) | Multi home service system | |
CN102238238A (en) | Method and device for accessing local network equipment | |
CN102790813B (en) | Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network | |
CN104969515B (en) | Method and gateway for processing DNS request | |
KR20030058396A (en) | Mobile Terminal, System and Method for connecting Network by using the same | |
WO2012103721A1 (en) | Method and device for terminal to visit digital household devices | |
WO2011157126A2 (en) | Packet forwarding method and inter-network routing apparatus | |
TWI469605B (en) | Network address translation system and method | |
WO2011144152A1 (en) | Method for providing information, home gateway and home network system | |
CN102263653A (en) | A management system and method for ubiquitous network equipment identification | |
CN102104512A (en) | Method and equipment for determining interface information | |
WO2015043550A1 (en) | Multimedia sharing method, registration method, server and proxy server | |
CN101754318A (en) | Bypass data transmission method and system, and access point network device |
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: 20111109 |