CN110601984B - Method and device for acquiring local service and generating link local address - Google Patents
Method and device for acquiring local service and generating link local address Download PDFInfo
- Publication number
- CN110601984B CN110601984B CN201910891163.6A CN201910891163A CN110601984B CN 110601984 B CN110601984 B CN 110601984B CN 201910891163 A CN201910891163 A CN 201910891163A CN 110601984 B CN110601984 B CN 110601984B
- Authority
- CN
- China
- Prior art keywords
- service
- local
- address
- link
- user equipment
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/741—Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/30—Types of network names
- H04L2101/38—Telephone uniform resource identifier [URI]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请实施例提供一种获取本地服务、生成链路本地地址的方法及装置,应用于用户设备,所述方法包括:在所述用户设备接入IPv6网络后,确定是否接收到路由器通告报文,其中,所述路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;若没有接收到所述路由器通告报文,获取目标本地服务对应的链路本地地址,其中,所述链路本地地址中嵌入有目标本地服务对应的服务描述信息;基于所述链路本地地址,获取所述目标本地服务。如此,通过链路本地地址来获取本地服务,能够实现不依赖于DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可获取到所需的目标本地服务。
The embodiments of the present application provide a method and apparatus for acquiring local services and generating a link-local address, which are applied to user equipment. The method includes: after the user equipment accesses an IPv6 network, determining whether a router advertisement message is received , wherein the router advertisement message carries a uniform resource identifier URI used to indicate a local service entry; if the router advertisement message is not received, obtain the link-local address corresponding to the target local service, wherein the The link local address is embedded with service description information corresponding to the target local service; the target local service is acquired based on the link local address. In this way, by obtaining the local service through the link-local address, it is possible to obtain the required target local service only by accessing the IPv6 network without relying on other servers such as the DNS server and the DHCP server.
Description
技术领域technical field
本申请涉及互联网技术领域,尤其涉及一种获取本地服务、生成链路本地地址的方法及装置。The present application relates to the field of Internet technologies, and in particular, to a method and apparatus for acquiring local services and generating link-local addresses.
背景技术Background technique
近年来,越来越多的人们由于生活工作的需要频繁在各地往来,然而诸如本地时间服务、本地紧急通讯服务、本地网络认证服务、本地地理信息服务等本地服务往往会随着用户所在的地理位置的不同而发生改变。In recent years, more and more people frequently travel around due to the needs of life and work. However, local services such as local time service, local emergency communication service, local network authentication service, local geographic information service, etc. changes depending on the location.
目前,主要是通过DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)或者DNS(Domain Name System,域名系统)来获取本地服务,但是,由于这些实施方案要依赖于DNS服务器、DHCP服务器等其它服务,体系结构较为复杂,不利于部署,使得用户设备支持度较差,常常会出现用户设备在某地接入IPv6(Internet Protocol Version 6,互联网协议第6版)网络后无法获取到对应的本地服务的问题。At present, local services are mainly obtained through DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) or DNS (Domain Name System, Domain Name System). However, since these implementations depend on DNS server, DHCP server and other services, The architecture is complex, which is not conducive to deployment, and makes the user equipment less supported. It often occurs that the user equipment cannot obtain the corresponding local service after connecting to the IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) network in a certain place. question.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供一种获取本地服务、生成链路本地地址的方法及装置,通过链路本地地址来获取本地服务,能够实现不依赖于DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可获取到所需的目标本地服务。In view of this, the embodiments of the present application provide a method and device for obtaining a local service and generating a link-local address, and obtaining a local service through a link-local address can realize that it does not depend on other servers such as a DNS server and a DHCP server, and only You need to access the IPv6 network to obtain the required target local services.
本申请实施例主要提供如下技术方案:The embodiments of the present application mainly provide the following technical solutions:
第一方面,本申请实施例提供了一种获取本地服务的方法,应用于用户设备,所述方法包括:在所述用户设备接入IPv6网络后,确定是否接收到路由器通告报文,其中,所述路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;若没有接收到所述路由器通告报文,获取目标本地服务对应的链路本地地址,其中,所述链路本地地址中嵌入有目标本地服务对应的服务描述信息;基于所述链路本地地址,获取所述目标本地服务。In a first aspect, an embodiment of the present application provides a method for obtaining a local service, which is applied to a user equipment. The method includes: after the user equipment accesses an IPv6 network, determining whether a router advertisement message is received, wherein, The router advertisement message carries a uniform resource identifier URI used to indicate a local service entry; if the router advertisement message is not received, obtain the link-local address corresponding to the target local service, wherein the link-local The address is embedded with service description information corresponding to the target local service; based on the link local address, the target local service is acquired.
第二方面,本申请实施例提供了一种生成链路本地地址的方法,应用于用户设备,所述方法包括:在所述用户设备接入IPv6网络后,获得所述用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,所述服务描述信息包括:服务标识和通讯协议;将所述服务描述信息嵌入至所述IPv6地址的后64位中,生成上述的获取本地服务的方法中所述的链路本地地址。In a second aspect, an embodiment of the present application provides a method for generating a link local address, which is applied to a user equipment. The method includes: after the user equipment accesses an IPv6 network, obtaining an IPv6 address corresponding to the user equipment The service description information corresponding to the target local service, wherein the service description information includes: a service identifier and a communication protocol; the service description information is embedded in the last 64 bits of the IPv6 address, and the above-mentioned obtaining local service is generated. The link-local address as described in the method.
第三方面,本申请实施例提供了一种获取本地服务的装置,应用于用户设备,所述装置包括:确定单元,用于在所述用户设备接入互联网协议第6版IPv6网络后,确定是否接收到路由器通告报文,其中,所述路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;第一获取单元,用于若所述确定单元确定未接收到所述路由器通告报文,获取目标本地服务对应的链路本地地址,其中,所述链路本地地址中嵌入有目标本地服务对应的服务描述信息;第二获取单元,用于基于所述链路本地地址,获取所述目标本地服务。In a third aspect, an embodiment of the present application provides an apparatus for obtaining a local service, which is applied to a user equipment. The apparatus includes: a determining unit, configured to determine after the user equipment accesses the Internet Protocol Version 6 IPv6 network. Whether a router advertisement message is received, wherein the router advertisement message carries a uniform resource identifier URI used to indicate a local service entry; the first obtaining unit is used for if the determining unit determines that the router has not been received a notification message to obtain a link-local address corresponding to the target local service, wherein the link-local address is embedded with service description information corresponding to the target local service; a second obtaining unit is configured to, based on the link-local address, Get the target local service.
第四方面,本申请实施例提供了一种生成链路本地地址的装置,应用于用户设备,所述装置包括:获得单元,用于在所述用户设备接入IPv6网络后,获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,所述服务描述信息包括:服务标识和通讯协议;生成单元,用于将所述服务描述信息嵌入至所述IPv6地址的后64位中,生成上述的获取本地服务的方法中所述的链路本地地址。In a fourth aspect, an embodiment of the present application provides an apparatus for generating a link-local address, which is applied to a user equipment, the apparatus includes: an obtaining unit, configured to obtain a corresponding link of the user equipment after the user equipment accesses an IPv6 network The service description information corresponding to the IPv6 address and the target local service, wherein the service description information includes: a service identifier and a communication protocol; a generating unit is used to embed the service description information into the last 64 bits of the IPv6 address , and generate the link-local address described in the above-mentioned method for obtaining a local service.
第五方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在用户设备执行上述的获取本地服务的方法或上述的生成链路本地地址的方法的步骤。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where the storage medium includes a stored program, wherein when the program runs, the user equipment where the storage medium is located is controlled to perform the above-mentioned method of obtaining a local service. The steps of the method or the above method of generating a link-local address.
第六方面,本申请实施例提供了一种用户设备,所述用户设备包括:至少一个处理器;以及与所述处理器连接的至少一个存储器、总线;其中,所述处理器、存储器通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的程序指令,以执行上述的获取本地服务的方法或上述的生成链路本地地址的方法的步骤。In a sixth aspect, an embodiment of the present application provides a user equipment, the user equipment includes: at least one processor; and at least one memory and a bus connected to the processor; wherein the processor and the memory pass through all the The bus completes mutual communication; the processor is configured to invoke the program instructions in the memory to execute the steps of the above-mentioned method for acquiring a local service or the above-mentioned method for generating a link-local address.
本申请实施例提供的获取本地服务、生成链路本地地址的方法及装置,在用户设备接入IPv6网络后,用户设备确定是否接收到路由器通告报文,其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;若用户设备确定并未接收到该路由器通告报文,则用户设备获取目标本地服务对应的链路本地地址,其中,链路本地地址中嵌入有目标本地服务对应的服务描述信息;最后,基于该链路本地地址来获取目标本地服务。这样,通过携带有本地服务的服务描述信息的链路本地地址来获取本地服务,能够有效避免依赖DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可获取到所需的目标本地服务,体系结构较为简单,方便部署。According to the method and apparatus for obtaining local services and generating link-local addresses provided by the embodiments of the present application, after the user equipment accesses the IPv6 network, the user equipment determines whether to receive a router advertisement message, wherein the router advertisement message carries information for Indicates the Uniform Resource Identifier URI of the local service entry; if the user equipment determines that the router advertisement message has not been received, the user equipment obtains the link-local address corresponding to the target local service, wherein the link-local address is embedded with the target local The service description information corresponding to the service; finally, the target local service is obtained based on the link local address. In this way, the local service can be obtained through the link-local address carrying the service description information of the local service, which can effectively avoid relying on other servers such as DNS server and DHCP server, and only need to access the IPv6 network to obtain the required target local service. , the architecture is relatively simple and easy to deploy.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的其他优点可通过在说明书、权利要求书以及附图中所描述的方案来实现和获得。Other features and advantages of the present application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present application. Other advantages of the present application may be realized and attained by the means described in the specification, claims and drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide an understanding of the technical solutions of the present application, and constitute a part of the specification. They are used to explain the technical solutions of the present application together with the embodiments of the present application, and do not constitute a limitation on the technical solutions of the present application.
图1为本申请实施例中的获取本地服务的方法的流程示意图一;FIG. 1 is a schematic flowchart 1 of a method for obtaining a local service in an embodiment of the present application;
图2为本申请实施例中的链路本地地址的示意图一;2 is a schematic diagram 1 of a link-local address in an embodiment of the present application;
图3为本申请实施例中的链路本地地址的示意图二;3 is a schematic diagram 2 of a link-local address in an embodiment of the present application;
图4为本申请实施例中的获取本地服务的方法的流程示意图二;4 is a second schematic flowchart of a method for obtaining a local service in an embodiment of the present application;
图5为本申请实施例中的生成链路本地地址的方法的流程示意图;5 is a schematic flowchart of a method for generating a link-local address in an embodiment of the present application;
图6为本申请实施例中的获取本地服务的装置的结构示意图;6 is a schematic structural diagram of an apparatus for obtaining a local service in an embodiment of the present application;
图7为本申请实施例中的生成链路本地地址的装置的结构示意图;7 is a schematic structural diagram of an apparatus for generating a link-local address in an embodiment of the present application;
图8为本申请实施例中的用户设备的结构示意图。FIG. 8 is a schematic structural diagram of a user equipment in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
本申请实施例提供一种获取本地服务的方法。在实际应用中,该获取本地服务的方法应用于用户设备。图1为本申请实施例中的获取本地服务的方法的流程示意图一,参见图1所示,该获取本地服务的方法可以包括:The embodiment of the present application provides a method for obtaining a local service. In practical applications, the method for obtaining local services is applied to user equipment. FIG. 1 is a schematic flowchart 1 of a method for obtaining a local service in an embodiment of the present application. Referring to FIG. 1 , the method for obtaining a local service may include:
S101:在用户设备接入IPv6网络后,确定是否接收到路由器通告报文;S101: After the user equipment accesses the IPv6 network, determine whether a router advertisement message is received;
其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI。Wherein, the router advertisement message carries the uniform resource identifier URI used to indicate the local service entry.
具体地,若用户设备确定其并未接收到路由器发布的路由器通告报文,则执行S102~S103。Specifically, if the user equipment determines that it has not received the router advertisement message advertised by the router, S102 to S103 are executed.
S102:获取目标本地服务对应的链路本地地址;S102: Obtain the link-local address corresponding to the target local service;
其中,链路本地地址中嵌入有目标本地服务对应的服务描述信息。The link-local address is embedded with service description information corresponding to the target local service.
这里,服务描述信息可以包括:服务标识和通讯协议。Here, the service description information may include: a service identifier and a communication protocol.
在实际应用中,服务标识为用于表征本地服务的标识。具体来说,服务标识可以为字符串标识,也可以为数字标识,当然,也可以为其它能够唯一标识本地服务的标识。这里,本申请实施例不做具体限定。In practical applications, the service identifier is an identifier used to characterize the local service. Specifically, the service identifier can be a character string identifier, or a digital identifier, and of course, can also be other identifiers that can uniquely identify a local service. Here, the embodiments of the present application do not make specific limitations.
举例来说,以本地紧急通讯服务中的火警报警服务为例,则该火警报警服务对应的服务标识可以设置为“FIRE”,也可以设置为“119”。当然,也可以设置为其它。For example, taking the fire alarm service in the local emergency communication service as an example, the service identifier corresponding to the fire alarm service may be set to "FIRE" or "119". Of course, it can also be set to other.
在实际应用中,通讯协议指的是用户设备访问本地服务所需要遵循的通讯、入口端口、解析协议等。In practical applications, the communication protocol refers to the communication, entry port, parsing protocol, etc. that the user equipment needs to follow to access the local service.
示例性地,以本地紧急通讯服务中的火警报警服务为例,假设是利用WWW(WorldWide Web,万维网)网页来实现火警报警服务,则火警报警服务的通讯协议可以定义为“TCP_WWW_XML”,其中,该通讯协议“TCP_WWW_XML”指的是使用TCP(Transmission ControlProtocol,传输控制协议)技术以及HTTP(HyperText Transfer Protocol,超文本传输协议)技术,访问80端口的WWW服务,获得的内容为XML(Extensible Markup Language,可扩展标记语言)文档。Exemplarily, taking the fire alarm service in the local emergency communication service as an example, it is assumed that the WWW (WorldWide Web, World Wide Web) web page is used to realize the fire alarm service, then the communication protocol of the fire alarm service can be defined as "TCP_WWW_XML", wherein, The communication protocol "TCP_WWW_XML" refers to the use of TCP (Transmission Control Protocol) technology and HTTP (HyperText Transfer Protocol, hypertext transfer protocol) technology to access the WWW service on
在实际应用中,参见图2所示,IPv6协议中规定,IPv6地址具有128位,可以分成两个部分:用于网络路由的前64位子网前缀(subnet prefix)和用于子网内寻址的后64位接口标识(Interface Id,IID)组成。一般而言,子网前缀是在进行IPv6组网时,用户设备通过运营商、地区互联网注册中心(Regional Internet Registry,RIR)、互联网数字分配机构(The Internet Assigned Numbers Authority,IANA)等一层一层分配得来,而接口标识的生成方案是IPv6所独有的问题,可以通过用户设备以无状态生成方式来生成接口标识,也可以通过DHCP服务器以有状态生成方式来生成接口标识。那么,在面向IPv6网络时,为了避免对DHCP服务器、DNS服务器等其它服务器的依赖,可以由用户设备以无状态生成方式将本地服务对应的服务描述信息编码到IPv6地址中来生成链路本地地址,这样,由于是直接将服务描述信息编码到链路本地地址的后64位中了,那么,在用户设备获取到该链路本地地址后,用户设备就可以通过访问该链路本地地址来获取到与服务描述信息对应的本地服务。In practical applications, as shown in Figure 2, it is stipulated in the IPv6 protocol that an IPv6 address has 128 bits and can be divided into two parts: the first 64-bit subnet prefix used for network routing and the subnet prefix used for intra-subnet addressing. The last 64-bit interface identifier (Interface Id, IID) is composed. Generally speaking, the subnet prefix is a layer-by-layer method of the user equipment through the operator, the Regional Internet Registry (RIR), and the Internet Assigned Numbers Authority (IANA) during IPv6 networking. The generation scheme of the interface identifier is a unique problem of IPv6. The interface identifier can be generated by the user equipment in a stateless generation method, or by a DHCP server in a stateful generation method. Then, when facing the IPv6 network, in order to avoid dependence on other servers such as DHCP server and DNS server, the user equipment can encode the service description information corresponding to the local service into the IPv6 address in a stateless generation mode to generate the link-local address , in this way, since the service description information is directly encoded into the last 64 bits of the link-local address, after the user equipment obtains the link-local address, the user equipment can obtain the link-local address by accessing the link-local address. to the local service corresponding to the service description information.
下面以具体实例对如何获取目标本地服务对应的链路本地地址进行介绍。The following describes how to obtain the link-local address corresponding to the target local service by taking a specific example.
在本申请另一实施例中,上述S102可以包括以下步骤1021~1022:In another embodiment of the present application, the foregoing S102 may include the following steps 1021-1022:
步骤1021:获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,服务描述信息包括:服务标识和通讯协议;Step 1021: Obtain the IPv6 address corresponding to the user equipment and the service description information corresponding to the target local service, wherein the service description information includes: a service identifier and a communication protocol;
具体来说,在用户设备接入到IPv6网络中后,用户设备就可以自动获得到自身的IPv6地址。接下来,作为示例,在用户需要目标本地服务时,用户可以通过输入操作向用户设备输入目标本地服务对应的服务描述信息,或者,用户可以在用户设备上进行选择操作来选出目标本地服务对应的服务描述信息,这样,用户设备就可以根据用户的输入操作或者选择操作,获得用户需要获取的目标本地服务所对应的服务描述信息。从而,用户设备就获得了用户设备所对应的IPv6地址和目标本地服务所对应的服务描述信息。Specifically, after the user equipment accesses the IPv6 network, the user equipment can automatically obtain its own IPv6 address. Next, as an example, when the user needs the target local service, the user may input the service description information corresponding to the target local service to the user equipment through an input operation, or the user may perform a selection operation on the user equipment to select the corresponding target local service In this way, the user equipment can obtain the service description information corresponding to the target local service that the user needs to acquire according to the user's input operation or selection operation. Thus, the user equipment obtains the IPv6 address corresponding to the user equipment and the service description information corresponding to the target local service.
步骤1022:将目标本地服务对应的服务描述信息嵌入至IPv6地址的后64位中,生成目标本地服务对应的链路本地地址。Step 1022: Embed the service description information corresponding to the target local service into the last 64 bits of the IPv6 address to generate a link local address corresponding to the target local service.
在具体实施过程中,上述步骤1022可以包括:对服务描述信息进行编码,获得链路本地地址的接口标识;将IPv6地址中的子网前缀与链路本地地址的接口标识进行拼接,生成目标本地服务对应的链路本地地址。In a specific implementation process, the above step 1022 may include: encoding the service description information to obtain the interface identifier of the link-local address; splicing the subnet prefix in the IPv6 address and the interface identifier of the link-local address to generate the target local address The link-local address corresponding to the service.
作为示例,为了更好地将所获得的链路本地地址的接口标识与现有的各种接口标识区分,可以将链路本地地址的后64位中的前48位设置为基于服务描述信息生成的编码信息,并将该链路本地地址的后64位中的后16位设置为由本领域技术人员根据实际经验预先设置的编码信息,即根据服务描述信息生成的编码信息和预先设置的编码信息来生成链路本地地址。这样,由于服务描述信息包括:服务标识和通讯协议,那么,以服务标识和通讯协议分别编码为24位编码信息为例,从而,在具体实施过程中,上述对服务描述信息进行编码,获得链路本地地址的接口标识的步骤,就可以包括:对服务标识进行编码,获得服务标识所对应的24位编码信息;对通讯协议进行编码,获得通讯协议所对应的24位编码信息;将服务标识所对应的24位编码信息、通讯协议所对应的24位编码信息和预先设置的16位编码信息进行拼接,获得链路本地地址的接口标识。As an example, in order to better distinguish the obtained interface identifier of the link-local address from various existing interface identifiers, the first 48 bits of the last 64 bits of the link-local address can be set to be generated based on the service description information. and set the last 16 bits of the last 64 bits of the link-local address as the encoding information preset by those skilled in the art according to actual experience, that is, the encoding information generated according to the service description information and the preset encoding information to generate link-local addresses. In this way, since the service description information includes: the service identifier and the communication protocol, then, taking the service identifier and the communication protocol encoded as 24-bit encoded information as an example, thus, in the specific implementation process, the above-mentioned service description information is encoded to obtain the chain. The step of identifying the interface identification of the road local address may include: encoding the service identification to obtain the 24-bit encoded information corresponding to the service identification; encoding the communication protocol to obtain the 24-bit encoded information corresponding to the communication protocol; The corresponding 24-bit encoded information, the 24-bit encoded information corresponding to the communication protocol, and the preset 16-bit encoded information are spliced to obtain the interface identifier of the link local address.
举例来说,参见图3所示,为了将所生成的链路本地地址的接口标识与现有的各种IPv6地址的接口标识区分,本申请发明人在具体实施过程中发现可以将预先设置的16位编码信息均设置为0,那么,所生成的链路本地地址的接口标识的前24位为服务标识所对应的24位编码信息、所生成的链路本地地址的接口标识的中间的24位为通讯协议所对应的24位编码信息、所生成的链路本地地址的接口标识的后16位为0。For example, as shown in FIG. 3 , in order to distinguish the interface identifier of the generated link-local address from the interface identifiers of various existing IPv6 addresses, the inventor of the present application found in the specific implementation process that the pre-set interface identifier can be used. The 16-bit encoded information is all set to 0, then, the first 24 bits of the interface identifier of the generated link-local address are the 24-bit encoded information corresponding to the service identifier, and the middle 24 of the interface identifier of the generated link-local address. The bit is the 24-bit encoded information corresponding to the communication protocol, and the last 16 bits of the interface identifier of the generated link-local address are 0.
又举例来说,为了将链路本地地址的接口标识与现有的各种IPv6地址的接口标识区分,除了可以将预先设置的16位编码信息均设置为0之外,还可以设置由服务标识所对应的24位编码信息和通讯协议所对应的24位编码信息所组成的前48位中的6个字节中,任意一个字节都不能为0xFF,且第一个字节非0,这样,所得到的链路本地地址的接口标识与大部分具有特殊语义接口标识生成方案都能够进行区分。例如,本申请发明人在实施本申请实施例的过程中发现,在IVI地址生成方案中,不存在接口标识的后16位为0的情况,这里,IVI是一种基于SIIT(Stateless IP/ICMP Translation,无状态IP/ICMP翻译)的协议转换技术,可以解决IPv6网络与IPv4网络数据包的网络层翻译;而在轻量级4over6(IPv4 overIPv6)方案中,接口标识的前16位均为0;而在EUI64(64-bit Extended UniqueIdentifier,64位扩展唯一标识符)中,接口标识的中间16位为0xFFFE;此外,其它一些人工指定的接口标识大多数都是使用了后16位作为IPv4地址的部分或者作为数字标识,这一预留地址空间也不与子网内任播地址相冲突。因此,经本申请发明人在具体实施过程中验证可知,本申请实施例中的链路本地地址的接口标识可以很好地与现有的各种接口标识区分,进而基于该链路本地地址就可以很有效地实现获取本地服务。For another example, in order to distinguish the interface identifier of the link-local address from the interface identifiers of various existing IPv6 addresses, in addition to setting the preset 16-bit encoded information to 0, it is also possible to set the service identifier by the service identifier. Among the 6 bytes in the first 48 bits composed of the corresponding 24-bit encoded information and the 24-bit encoded information corresponding to the communication protocol, any byte cannot be 0xFF, and the first byte is not 0, so , the interface identifier of the obtained link-local address can be distinguished from most of the interface identifier generation schemes with special semantics. For example, the inventor of the present application found in the process of implementing the embodiments of the present application that in the IVI address generation scheme, there is no situation where the last 16 bits of the interface identifier are 0. Here, IVI is an SIIT (Stateless IP/ICMP) based solution. Translation, stateless IP/ICMP translation) protocol conversion technology, which can solve the network layer translation of IPv6 network and IPv4 network data packets; and in the lightweight 4over6 (IPv4 overIPv6) scheme, the first 16 bits of the interface identifier are all 0 ; In EUI64 (64-bit Extended UniqueIdentifier, 64-bit Extended Unique Identifier), the middle 16 bits of the interface identifier are 0xFFFE; in addition, most of the other manually specified interface identifiers use the last 16 bits as the IPv4 address This reserved address space does not conflict with anycast addresses within the subnet. Therefore, as verified by the inventor of the present application in the specific implementation process, the interface identifier of the link-local address in the embodiment of the present application can be well distinguished from the existing various interface identifiers, and then based on the link-local address Obtaining local services can be implemented very efficiently.
在实际应用中,本地服务的服务标识可以为字符串标识,也可以为数字标识,那么,为了获得服务标识所对应的24位编码信息,当服务标识为字符串标识时,可以通过字符串编码方式来对服务标识进行编码;当服务标识为数字标识时,也可以通过数字编码方式来对服务标识进行编码。当然,还可以通过其它编码方式来对服务标识进行编码,这里,本申请实施例不做具体限定。In practical applications, the service identifier of the local service can be a string identifier or a digital identifier. Then, in order to obtain the 24-bit encoding information corresponding to the service identifier, when the service identifier is a string identifier, the string encoding can be used. The service identifier is encoded by the method; when the service identifier is a digital identifier, the service identifier can also be encoded by the digital encoding method. Certainly, the service identifier may also be encoded in other encoding manners, which are not specifically limited in this embodiment of the present application.
下面以具体实例对如何对服务标识进行编码进行介绍。The following describes how to encode the service identifier with a specific example.
首先,以具体实例介绍如何通过字符串编码方式来对服务标识进行编码。First of all, how to encode the service identifier through the string encoding method is introduced with a specific example.
作为示例,当服务标识为字符串标识时,可以使用6位编码的字符串编码方式来进行编码。其中,服务标识中的每个字符可以被映射为6位编码信息,但是,当需要将服务标识编码为24位编码信息时,表明使用6位编码的字符串编码后最多可容纳4个字符,此时,如果可容纳的字符长度不够,即服务标识的长度比字符串编码后的长度要长时,就需要在尾部补充额外的停止符。As an example, when the service identifier is a character string identifier, a 6-bit encoding string encoding method can be used for encoding. Among them, each character in the service ID can be mapped to 6-bit encoded information, but when the service ID needs to be encoded into 24-bit encoded information, it indicates that the 6-bit encoded string can accommodate up to 4 characters after encoding. At this time, if the length of the characters that can be accommodated is not enough, that is, when the length of the service ID is longer than the length of the encoded string, an extra stop character needs to be added at the end.
进一步地,当服务标识为字符串标识时,为了避免与IPv6网络的设置相冲突,在具体实施过程中可以避免使用像“000000”、“111111”这样的6位编码。Further, when the service identifier is a character string identifier, in order to avoid conflict with the settings of the IPv6 network, 6-bit codes such as "000000" and "111111" can be avoided in the specific implementation process.
示例性地,可以取DNS可能使用的“a-z(不区分大小写)、0-9、-”这37个字符进行映射,再加上服务标识的长度较长时所需要的额外的停止符,因此,总共的字符可以为38个。从而,可以得到如下表1所示的6位编码的编码表。接下来,以本地服务为本地火警报警服务为例,假设该火警报警服务的服务标识为“FIRE”,那么,通过该编码表对服务标识进行编码之后,就可以获得该服务标识所对应的24位编码信息为0x454740。Exemplarily, the 37 characters "a-z (case-insensitive), 0-9, -" that may be used by DNS can be used for mapping, plus the extra stop character required when the length of the service identifier is long, Therefore, the total number of characters can be 38. Thus, the encoding table of 6-bit encoding as shown in Table 1 below can be obtained. Next, take the local service as the local fire alarm service as an example, assuming that the service identifier of the fire alarm service is "FIRE", then, after encoding the service identifier through the coding table, the 24 corresponding to the service identifier can be obtained. The bit encoding information is 0x454740.
表1Table 1
其次,以具体实例介绍通过数字编码方式来对服务标识进行编码。Secondly, the encoding of the service identifier by means of digital encoding is introduced with a specific example.
作为示例,可设置每一个服务标识与一个大于0的正整数相对应,例如,仍然以本地服务为本地火警报警服务为例,可以设置该火警报警服务的服务标识为1,则该火警报警服务的服务标识所对应的24位编码信息(即3字节编码信息)为0x000001。需要说明的是,以上数字仅用于举例,本申请实施例对此不作具体限定。As an example, each service identifier can be set to correspond to a positive integer greater than 0. For example, still taking the local service as the local fire alarm service as an example, the service identifier of the fire alarm service can be set to 1, then the fire alarm service The 24-bit encoding information (that is, 3-byte encoding information) corresponding to the service identifier of , is 0x000001. It should be noted that the above numbers are only used for examples, and are not specifically limited in the embodiments of the present application.
在实际应用中,为了获得本地服务的通讯协议所对应的24位编码信息,可以通过字符串编码方式来对通讯协议进行编码,也可以通过数字编码方式来对通讯协议进行编码,当然,还可以为其它编码方式来对通讯协议进行编码,这里,本申请实施例不做具体限定。In practical applications, in order to obtain the 24-bit encoded information corresponding to the communication protocol of the local service, the communication protocol can be encoded by the string encoding method, or the communication protocol can be encoded by the digital encoding method. Of course, you can also The communication protocol is encoded for other encoding manners, which is not specifically limited in this embodiment of the present application.
举例来说,仍然以本地紧急通讯服务中的火警报警服务为例,假设是利用WWW网页来实现火警报警服务的,则可以将该火警报警服务的通讯协议定义为“TCP_WWW_XML”,在实际应用中,由于通讯协议往往所包含的字符串往往比较长,为了便于进行编码,可以采用数字编码方式来对通讯协议进行编码。示例性地,可以将通讯协议以整体方式进行编码,如可以直接将“TCP_WWW_XML”编码为1,则编码后的通信协议对应的24位编码信息(3字节编码信息)可以为0x000001,也可以将通讯协议以分别编码的方式进行编码,即可以将协议、端口、解析格式这三部分进行分别编码,如将TCP编码为1、将WWW编码为1、将XML编码为1为例,则编码后的通信协议对应的24位编码信息(3字节编码信息)可以为0x010101。For example, still taking the fire alarm service in the local emergency communication service as an example, assuming that the fire alarm service is realized by using the WWW webpage, the communication protocol of the fire alarm service can be defined as "TCP_WWW_XML". In practical applications , because the character string contained in the communication protocol is often relatively long, in order to facilitate the encoding, the communication protocol can be encoded by using a digital encoding method. Exemplarily, the communication protocol can be encoded in an integral manner, for example, "TCP_WWW_XML" can be directly encoded as 1, then the 24-bit encoded information (3-byte encoded information) corresponding to the encoded communication protocol can be 0x000001, or The communication protocol is encoded in a separate encoding method, that is, the three parts of the protocol, the port, and the parsing format can be encoded separately. The 24-bit encoded information (3-byte encoded information) corresponding to the latter communication protocol may be 0x010101.
再举例来说,以目标本地服务是火警报警服务为例,并假设火警报警服务对应的服务标识为“FIRE”,火警报警服务对应的通讯协议为“TCP_WWW_XML”,那么,首先基于上表1所示的编码表通过字符串编码方式对火警报警服务的服务标识进行编码,可得到火警报警服务的服务标识所对应的24位编码信息(即3字节编码信息)为0x454740;再通过数字编码方式对火警报警服务的通讯协议进行编码,可得到火警报警服务的通讯协议所对应的24位编码信息(即3字节编码信息)为0x000001,则通过WWW进行火警报警的本地火警报警服务对应的链路本地地址就可以为fe80::4547:4000:1:0这一地址。那么,当用户需要进行火警报警时,就可以通过用户设备访问该链路本地地址的80端口,使用WWW形式直接报警。For another example, take the target local service as the fire alarm service as an example, and assume that the service identifier corresponding to the fire alarm service is "FIRE", and the communication protocol corresponding to the fire alarm service is "TCP_WWW_XML", then, based on the above table 1. The coding table shown in the code table encodes the service ID of the fire alarm service by string coding, and the 24-bit coding information (that is, 3-byte coding information) corresponding to the service ID of the fire alarm service can be obtained as 0x454740; By coding the communication protocol of the fire alarm service, the 24-bit encoded information (that is, the 3-byte encoded information) corresponding to the communication protocol of the fire alarm service can be obtained as 0x000001, then the chain corresponding to the local fire alarm service of the fire alarm through WWW The local address of the road can be the address of fe80::4547:4000:1:0. Then, when the user needs to perform a fire alarm, he can access the 80 port of the local address of the link through the user equipment, and use the WWW form to directly alarm.
S103:基于链路本地地址,获取目标本地服务。S103: Obtain the target local service based on the link-local address.
在实际应用中,目标本地服务可以为本地DNS服务、本地NTP(Network TimeProtocol,网络时间协议)服务、本地网络认证服务、本地网络故障报修服务、本地地理信息服务、本地紧急通讯服务、本地商业服务、本地网络收费服务中的一种或多种。当然,还可以为其它类型的服务,如本地生活信息服务等,这里,本申请实施例不做具体限定。In practical applications, the target local service can be a local DNS service, a local NTP (Network Time Protocol) service, a local network authentication service, a local network fault report service, a local geographic information service, a local emergency communication service, and a local business service. , one or more of local network charging services. Of course, other types of services, such as local life information services, etc., may also be used, which are not specifically limited in this embodiment of the present application.
举例来说,本地DNS服务可用于提供DNS服务器地址;本地NTP服务可用于将用户设备的时钟与本地时间同步;本地网络认证服务可用于提供网络认证服务器地址;本地网络故障报修服务可以用于提供本地的网络故障报修号码;本地地理信息服务可用于提供用户设备当前所处的地理位置的经度信息、纬度信息以及高度信息;本地紧急通信服务可用于提供火警号码、报警号码、紧急救助号码等紧急通讯号码;本地商业服务可用于提供本地周边的购物、出行等商业信息;本地网络收费服务可用于提供本地网络收费信息和流程信息;本地生活信息服务可用于提供日常生活、天气等信息。For example, the local DNS service can be used to provide the DNS server address; the local NTP service can be used to synchronize the clock of the user equipment with the local time; the local network authentication service can be used to provide the network authentication server address; the local network fault report service can be used to provide The local network fault repair number; the local geographic information service can be used to provide the longitude, latitude and altitude information of the current geographic location of the user equipment; the local emergency communication service can be used to provide emergency numbers such as fire alarm numbers, alarm numbers, and emergency rescue numbers. Communication number; local business services can be used to provide business information such as shopping and travel around the local area; local network charging services can be used to provide local network charging information and process information; local life information services can be used to provide daily life, weather and other information.
在具体实施过程中,上述S103可以包括:通过通讯协议,访问链路本地地址,获取服务标识所对应的目标本地服务。In a specific implementation process, the above S103 may include: accessing the link-local address through a communication protocol, and obtaining the target local service corresponding to the service identifier.
具体来说,在IPv6网络中,由于用户设备通过S102所获取到的链路本地地址的接口标识中嵌入了服务描述信息,即在IPv6地址的后64位中编码了服务描述信息,其中该服务描述信息包括:服务标识以及通讯协议,那么,用户设备可以直接通过该通讯协议,访问该链路本地地址,从而获得该服务标识所表示的相应的本地服务。这样,就可以实现在未进行网络认证前,在不利用任何其他服务如域名解析、局域网内域名解析等服务的情况下获取本地相关的服务,如紧急通讯服务、报警服务等等。Specifically, in an IPv6 network, since the interface identifier of the link-local address obtained by the user equipment through S102 is embedded with service description information, that is, the service description information is encoded in the last 64 bits of the IPv6 address. The description information includes: a service identifier and a communication protocol. Then, the user equipment can directly access the link-local address through the communication protocol to obtain the corresponding local service represented by the service identifier. In this way, it is possible to obtain local related services, such as emergency communication services, alarm services, etc., without using any other services such as domain name resolution, domain name resolution within a local area network, etc., before network authentication is performed.
至此,便完成了基于携带有本地服务对应的服务描述信息的链路本地地址来获取本地服务的过程。So far, the process of acquiring the local service based on the link-local address carrying the service description information corresponding to the local service is completed.
由上述内容可知,本申请实施例提供的获取本地服务的方法,在用户设备接入IPv6网络后,用户设备可以确定是否接收到路由器通告报文,其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;若用户设备确定其并未接收到该路由器通告报文,则用户设备获取目标本地服务对应的链路本地地址,其中,链路本地地址中嵌入有目标本地服务对应的服务描述信息;最后,就可以基于该链路本地地址来获取目标本地服务。这样,通过携带有本地服务的服务描述信息的链路本地地址来获取本地服务,能够有效避免依赖DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可获取到所需的目标本地服务,体系结构较为简单,方便部署。It can be seen from the above that, in the method for obtaining local services provided by the embodiments of the present application, after the user equipment accesses the IPv6 network, the user equipment can determine whether to receive a router advertisement The uniform resource identifier URI of the service entry; if the user equipment determines that it has not received the router advertisement message, the user equipment obtains the link-local address corresponding to the target local service, wherein the link-local address is embedded with the target local service Corresponding service description information; finally, the target local service can be obtained based on the link local address. In this way, the local service can be obtained through the link-local address carrying the service description information of the local service, which can effectively avoid relying on other servers such as DNS server and DHCP server, and only need to access the IPv6 network to obtain the required target local service. , the architecture is relatively simple and easy to deploy.
基于前述实施例,本申请实施例提供一种获取本地服务的方法。可以应用于以下场景中:预先在路由器通告中加入了用于指示本地服务入口的URI,在用户设备接入IPv6网络,且已完成网络认证的情况下,用户设备接收到路由器发送的该携带有用于指示本地服务入口的URI的路由器通告报文,这样,用户设备就可以通过访问该URI来获取所需的本地服务。Based on the foregoing embodiments, the embodiments of the present application provide a method for acquiring a local service. It can be applied to the following scenarios: a URI for indicating the local service entry is added to the router advertisement in advance, and when the user equipment accesses the IPv6 network and has completed network authentication, the user equipment receives the URI sent by the router. In this way, the user equipment can obtain the required local service by accessing the URI.
图4为本申请实施例中的获取本地服务的方法的流程示意图二,参见图4所示,该获取本地服务的方法可以包括:FIG. 4 is a second schematic flowchart of a method for acquiring a local service in an embodiment of the present application. Referring to FIG. 4 , the method for acquiring a local service may include:
S101:在用户设备接入IPv6网络后,确定是否接收到路由器通告报文;S101: After the user equipment accesses the IPv6 network, determine whether a router advertisement message is received;
其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;这里,URI为本地服务入口URI,其中包含各种本地配置、使用、信息等方面的相关内容。The router advertisement message carries a Uniform Resource Identifier URI for indicating a local service entry; here, the URI is a local service entry URI, which includes various local configuration, usage, information and other related content.
在实际应用中,在部署IPv6网络时,可以预先在路由器通告中加入了用于指示本地服务入口的URI,而由于路由器会以预设时间间隔定期发送路由器通告报文,那么,在用户设备接入IPv6网络并且完成网络认证后,用户设备就可能会接收到该路由器通告报文。In practical applications, when deploying an IPv6 network, a URI for indicating the local service entry can be added to the router advertisement in advance. Since the router will periodically send router advertisement packets at preset time intervals, then when the user equipment receives After entering the IPv6 network and completing network authentication, the user equipment may receive the router advertisement message.
作为示例,该路由器通告包含本地信息(LOCAL_INFO)选项,该选项的内容为一URI地址,该选项的长度(包括类型和长度字段)以8字节为单位,不足部分用0填充。As an example, the router advertisement includes a local information (LOCAL_INFO) option, the content of which is a URI address, the length of the option (including the type and length fields) is in units of 8 bytes, and the insufficient part is padded with 0.
需要说明的是,这里,本申请实施例中通过在路由器通告报文中使用一个8字节的选项来提供一个用于指示本地服务入口的URI,再由该URI对应的本地服务主页提供各个本地服务,而并不是直接在路由器通告报文中使用一个1字节的选项来提供一个本地服务,这样,在用于指示本地服务入口的URI不变的情况,无需频繁地对路由器通告报文进行设置,就可以非常方便地实现增加、删除、修改所支持的本地服务,进而,在需要支持更多本地服务时可扩展性较高。It should be noted that, in this embodiment of the present application, an 8-byte option is used in the router advertisement message to provide a URI for indicating a local service entry, and then the local service home page corresponding to the URI provides each local service. service, rather than using a 1-byte option directly in the router advertisement message to provide a local service, so that the URI used to indicate the local service entry does not need to be changed frequently. Setting, it is very convenient to add, delete, and modify the supported local services, and further, when more local services need to be supported, the scalability is high.
具体来说,若通过执行S101确定用户设备获得了携带有用于指示本地服务入口的URI的路由器通告报文,则可以执行S401~S403,基于该URI来获取本地服务;而若通过执行S101确定用户设备并未获得携带有用于指示本地服务入口的URI的路由器通告报文,则可以执行S102~S103,基于链路本地地址来获取本地服务。Specifically, if it is determined by executing S101 that the user equipment has obtained a router advertisement message carrying a URI for indicating a local service entry, S401 to S403 can be executed to obtain a local service based on the URI; and if it is determined by executing S101 that the user equipment If the device has not obtained the router advertisement message carrying the URI used to indicate the local service entry, it may execute S102 to S103 to obtain the local service based on the link-local address.
S401:对路由器通告报文进行解析,获得URI;S401: Parse the router advertisement message to obtain a URI;
作为示例,在非紧急情况下,为了获取到更为详细丰富的本地服务,若用户设备确定接收到携带有用于指示本地服务入口的URI的路由器通告报文,则可以从该路由器通告报文中解析出该URI。As an example, in a non-emergency situation, in order to obtain more detailed and rich local services, if the user equipment determines that it has received a router advertisement message carrying a URI indicating the entry of the local service, it can retrieve the router advertisement message from the router advertisement message. Parse out the URI.
S402:基于URI,访问用于提供本地服务的本地服务主页;S402: Based on the URI, access the home page of the local service for providing the local service;
S403:从本地服务主页中获取目标本地服务。S403: Obtain the target local service from the local service homepage.
在具体实施过程中,上述本地服务主页可以包括:本地域名系统DNS服务、本地网络时间协议NTP服务、本地网络认证服务、本地网络故障报修服务、本地地理信息服务、本地紧急通讯服务、本地商业服务、本地网络收费服务中的一种或多种。当然,还可以本地服务主页还可以提供其它本地服务,这里,本申请实施例不做具体限定。In the specific implementation process, the above-mentioned local service homepage may include: local domain name system DNS service, local network time protocol NTP service, local network authentication service, local network fault repair service, local geographic information service, local emergency communication service, local business service , one or more of local network charging services. Certainly, the local service homepage may also provide other local services, which are not specifically limited in the embodiments of the present application.
作为示例,该本地服务主页可作为浏览器主页展示,在用户设备访问该URI后,用户设备就可以向用户展示该本地服务主页,其中该本地服务主页中可以展示有多个本地服务,用户可以在该本地服务主页上进行操作,用户设备根据用户的操作从本地服务主页中获取目标本地服务。As an example, the local service homepage can be displayed as a browser homepage, and after the user equipment accesses the URI, the user equipment can display the local service homepage to the user, wherein the local service homepage can display multiple local services, and the user can The operation is performed on the local service homepage, and the user equipment obtains the target local service from the local service homepage according to the user's operation.
由上述内容可知,本申请实施例提供的获取本地服务的方法,通过将服务标识和通讯协议编码为链路本地地址,可以方便用户设备在未进行上网认证前就可以在不依赖于DNS、DHCP、路由器通告等基础设施的情况下,获取不需要访问互联网就可以实现的本地服务,如紧急通讯服务、报警服务等;而在上网认证后,进一步地还可以通过访问路由器通告报文中所携带的用于指示本地服务入口的URI,来获取更为详细的本地服务。It can be seen from the above content that the method for obtaining a local service provided by the embodiment of the present application, by encoding the service identifier and the communication protocol into the link local address, can facilitate the user equipment to be able to use the DNS, DHCP, etc. In the case of infrastructures such as router advertisements and router advertisements, local services that can be realized without accessing the Internet, such as emergency communication services, alarm services, etc.; The URI used to indicate the local service entry to get more detailed local services.
基于同一发明构思,本申请实施例提供一种生成链路本地地址的方法。图5为本申请实施例中的生成链路本地地址的方法的流程示意图,参见图5所示,该生成链路本地地址的方法可以包括:Based on the same inventive concept, the embodiments of the present application provide a method for generating a link-local address. FIG. 5 is a schematic flowchart of a method for generating a link-local address in an embodiment of the present application. Referring to FIG. 5 , the method for generating a link-local address may include:
S501:在用户设备接入IPv6网络后,获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息;S501: After the user equipment accesses the IPv6 network, obtain the IPv6 address corresponding to the user equipment and the service description information corresponding to the target local service;
其中,服务描述信息包括:服务标识和通讯协议。Wherein, the service description information includes: service identification and communication protocol.
这里,服务标识为用于表征本地服务的标识。通讯协议指的是访问本地服务所需要遵循的通讯、入口端口、解析协议。Here, the service identifier is an identifier used to characterize a local service. The communication protocol refers to the communication, entry port, and resolution protocol that needs to be followed to access local services.
S502:将服务描述信息嵌入至IPv6地址的后64位中,生成链路本地地址。S502: Embed the service description information into the last 64 bits of the IPv6 address to generate a link-local address.
在本申请另一实施例中,上述S502可以包括以下步骤5021~5022:In another embodiment of the present application, the foregoing S502 may include the following steps 5021-5022:
步骤5021:对服务描述信息进行编码,获得链路本地地址的接口标识;Step 5021: Encode the service description information to obtain the interface identifier of the link-local address;
步骤5022:将IPv6地址中的子网前缀与链路本地地址的接口标识进行拼接,生成链路本地地址。Step 5022: Concatenate the subnet prefix in the IPv6 address with the interface identifier of the link-local address to generate the link-local address.
为了更好地将所获得的链路本地地址的接口标识与现有的各种接口标识区分,可以将链路本地地址的后64位中的前48位设置为基于服务描述信息生成的编码信息,并将该链路本地地址的后64位中的后16位设置为由本领域技术人员根据实际经验预先设置的编码信息,即根据服务描述信息生成的编码信息和预先设置的编码信息来生成链路本地地址。这样,由于服务描述信息包括:服务标识和通讯协议,那么,在具体实施过程中,上述步骤5021可以包括:对服务标识进行编码,获得服务标识所对应的24位信息;对通讯协议进行编码,获得通讯协议所对应的24位信息;将服务标识所对应的24位信息、通讯协议所对应的24位信息和预先设置的16位信息依次拼接,获得链路本地地址的接口标识。In order to better distinguish the obtained interface identifier of the link-local address from various existing interface identifiers, the first 48 bits of the last 64 bits of the link-local address can be set as the encoded information generated based on the service description information , and set the last 16 bits of the last 64 bits of the link-local address as the encoding information preset by those skilled in the art according to actual experience, that is, the encoding information generated according to the service description information and the preset encoding information to generate the link Road local address. In this way, since the service description information includes: the service identifier and the communication protocol, then, in the specific implementation process, the above step 5021 may include: encoding the service identifier to obtain 24-bit information corresponding to the service identifier; encoding the communication protocol, Obtain the 24-bit information corresponding to the communication protocol; splicing the 24-bit information corresponding to the service identifier, the 24-bit information corresponding to the communication protocol, and the preset 16-bit information in turn to obtain the interface identifier of the link-local address.
需要说明的是,本申请实施例中的链路本地地址与上述一个或多个实施例中的是一致的,对于本申请实施例中未披露的技术细节,请参照上述一个或多个实施例中链路本地地址的描述而理解,这里,本申请实施例不再做过多赘述。It should be noted that the link-local addresses in the embodiments of this application are consistent with those in one or more of the above embodiments. For technical details not disclosed in the embodiments of this application, please refer to the above-mentioned one or more embodiments It should be understood from the description of the link-local address in the middle of the present application, which is not repeated in this embodiment of the present application.
由上述内容可知,本申请实施例提供的生成链路本地地址的方法,在用户设备接入IPv6网络后,获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,服务描述信息包括:服务标识和通讯协议,然后将服务描述信息嵌入至IPv6地址的后64位中,生成链路本地地址。这样,通过将目标本地服务所对应的描述信息编码到链路本地地址中,就可以实现不依赖DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可基于获取该链路本地地址到所需的目标本地服务,体系结构较为简单,方便部署。It can be seen from the above that, in the method for generating a link local address provided by the embodiments of the present application, after the user equipment accesses the IPv6 network, the IPv6 address corresponding to the user equipment and the service description information corresponding to the target local service are obtained, wherein the service description information Including: service identification and communication protocol, and then embedding the service description information into the last 64 bits of the IPv6 address to generate a link-local address. In this way, by encoding the descriptive information corresponding to the target local service into the link local address, it is possible to realize that it does not depend on other servers such as DNS server and DHCP server, and only needs to access the IPv6 network to obtain the link local address based on the The required target local service has a relatively simple architecture and is easy to deploy.
基于同一发明构思,作为对上述方法的实现,本申请实施例提供了一种获取本地服务的装置。在实际应用中,该获取本地服务的装置可应用于用户设备中。图6为本申请实施例中的获取本地服务的装置的结构示意图,参见图6所示,该装置60可以包括:确定单元601,用于在用户设备接入互联网协议第6版IPv6网络后,确定是否接收到路由器通告报文,其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;第一获取单元602,用于若确定单元确定未接收到路由器通告报文,获取目标本地服务对应的链路本地地址,其中,链路本地地址中嵌入有目标本地服务对应的服务描述信息;第二获取单元603,用于基于链路本地地址,获取目标本地服务。Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application provides an apparatus for acquiring a local service. In practical applications, the apparatus for obtaining local services can be applied to user equipment. FIG. 6 is a schematic structural diagram of an apparatus for obtaining a local service according to an embodiment of the present application. Referring to FIG. 6 , the
在本申请实施例中,第一获取单元,用于获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,服务描述信息包括:服务标识和通讯协议;将服务描述信息嵌入至IPv6地址的后64位中,生成链路本地地址。In the embodiment of the present application, the first obtaining unit is configured to obtain the IPv6 address corresponding to the user equipment and the service description information corresponding to the target local service, wherein the service description information includes: a service identifier and a communication protocol; the service description information is embedded in the In the last 64 bits of the IPv6 address, a link-local address is generated.
在本申请实施例中,第一获取单元,用于对服务描述信息进行编码,获得链路本地地址的接口标识;将IPv6地址中的子网前缀与链路本地地址的接口标识进行拼接,生成链路本地地址。In the embodiment of the present application, the first obtaining unit is configured to encode the service description information to obtain the interface identifier of the link-local address; splicing the subnet prefix in the IPv6 address and the interface identifier of the link-local address to generate Link-local address.
在本申请实施例中,第一获取单元,用于对服务标识进行编码,获得服务标识所对应的24位编码信息;对通讯协议进行编码,获得通讯协议所对应的24位编码信息;将服务标识所对应的24位编码信息、通讯协议所对应的24位编码信息和预先设置的16位编码信息进行拼接,获得链路本地地址的接口标识。In the embodiment of the present application, the first obtaining unit is used to encode the service identifier to obtain the 24-bit encoded information corresponding to the service identifier; to encode the communication protocol to obtain the 24-bit encoded information corresponding to the communication protocol; The 24-bit encoded information corresponding to the identifier, the 24-bit encoded information corresponding to the communication protocol, and the preset 16-bit encoded information are spliced to obtain the interface identifier of the link-local address.
在本申请实施例中,第二获取单元,用于通过通讯协议,访问链路本地地址,获取服务标识所对应的目标本地服务。In the embodiment of the present application, the second obtaining unit is configured to access the link local address through the communication protocol, and obtain the target local service corresponding to the service identifier.
在本申请其它实施例中,上述获取本地服务的装置,还可以包括:解析单元,用于若确定单元确接收到路由器通告报文,对路由器通告报文进行解析,获得URI;访问单元,用于基于URI,访问用于提供本地服务的本地服务主页;第三获取单元,用于从本地服务主页中获取目标本地服务。In other embodiments of the present application, the above-mentioned apparatus for obtaining a local service may further include: a parsing unit, configured to parse the router advertisement packet if the determination unit does receive the router advertisement packet, and obtain the URI; the access unit, which uses based on the URI, to access the local service home page for providing local services; the third obtaining unit is used to obtain the target local service from the local service home page.
在本申请实施例中,上述本地服务主页,可以包括:本地域名系统DNS服务、本地网络时间协议NTP服务、本地网络认证服务、本地网络故障报修服务、本地地理信息服务、本地紧急通讯服务、本地商业服务、本地网络收费服务中的一种或多种。In the embodiment of the present application, the above-mentioned local service homepage may include: local domain name system DNS service, local network time protocol NTP service, local network authentication service, local network fault repair service, local geographic information service, local emergency communication service, local One or more of commercial services and local network charging services.
基于同一发明构思,作为对上述方法的实现,本申请实施例提供了一种生成链路本地地址的装置。在实际应用中,该生成链路本地地址的装置可应用于用户设备中。图7为本申请实施例中的生成链路本地地址的装置的结构示意图,参见图7所示,该装置70可以包括:获得单元701,用于在用户设备接入互联网协议第6版IPv6网络后,获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,服务描述信息包括:服务标识和通讯协议;生成单元702,用于将服务描述信息嵌入至IPv6地址的后64位中,生成上述一个或多个实施例中的链路本地地址。Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application provides an apparatus for generating a link-local address. In practical applications, the apparatus for generating a link-local address can be applied to user equipment. FIG. 7 is a schematic structural diagram of an apparatus for generating a link-local address in an embodiment of the present application. Referring to FIG. 7 , the
在本申请实施例中,生成单元,用于对服务描述信息进行编码,获得链路本地地址的接口标识;将IPv6地址中的子网前缀与链路本地地址的接口标识进行拼接,生成链路本地地址。In the embodiment of the present application, a generating unit is configured to encode the service description information to obtain the interface identifier of the link-local address; splicing the subnet prefix in the IPv6 address and the interface identifier of the link-local address to generate the link local address.
在本申请实施例中,生成单元,用于对服务标识进行编码,获得服务标识所对应的24位编码信息;对通讯协议进行编码,获得通讯协议所对应的24位编码信息;将服务标识所对应的24位编码信息、通讯协议所对应的24位编码信息和预先设置的16位编码信息进行拼接,获得链路本地地址的接口标识。In the embodiment of the present application, the generating unit is used to encode the service identifier to obtain 24-bit encoded information corresponding to the service identifier; to encode the communication protocol to obtain the 24-bit encoded information corresponding to the communication protocol; The corresponding 24-bit encoded information, the 24-bit encoded information corresponding to the communication protocol, and the preset 16-bit encoded information are spliced to obtain the interface identifier of the link-local address.
基于同一发明构思,本申请实施例提供一种用户设备。图8为本申请实施例中的用户设备的结构示意图,参见图8所示,该用户设备80包括:至少一个处理器81;以及与处理器81连接的至少一个存储器82、总线83;其中,处理器81、存储器82通过总线83完成相互间的通信;处理器81用于调用存储器82中的程序指令,以执行上述一个或多个实施例中的获取本地服务的方法的步骤。Based on the same inventive concept, an embodiment of the present application provides a user equipment. FIG. 8 is a schematic structural diagram of a user equipment in an embodiment of the present application. Referring to FIG. 8 , the
相应地,基于同一发明构思,本申请实施例还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行上述一个或多个实施例中的获取本地服务的方法的步骤。Correspondingly, based on the same inventive concept, an embodiment of the present application further provides a processor for running a program, wherein the steps of the method for obtaining a local service in one or more of the foregoing embodiments are executed when the program is running.
上述处理器可由中央处理器(Central Processing Unit,CPU)、微处理器(MicroProcessor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。存储器可能包括计算机可读介质中的非永久性存储器,随机存储器(Random Access Memory,RAM)和/或非易失性内存等形式,如只读存储器(Read Only Memory,ROM)或闪存(Flash RAM),存储器包括至少一个存储芯片。The above-mentioned processor can be a central processing unit (Central Processing Unit, CPU), a microprocessor (MicroProcessor Unit, MPU), a digital signal processor (Digital Signal Processor, DSP), or a field programmable gate array (Field Programmable Gate Array, FPGA) ) and so on. The memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory (Flash RAM). ), the memory includes at least one memory chip.
需要说明的是,在本申请实施例中,如果以软件功能模块的形式实现上述一个或多个实施例中的获取本地服务的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台用户设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例方法的全部或部分。It should be noted that, in the embodiments of the present application, if the method for obtaining local services in one or more of the above embodiments is implemented in the form of software function modules, and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium and include several instructions for A user equipment (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the methods of the various embodiments of the present application.
相应地,基于同一发明构思,本申请实施例再提供一种计算机可读存储介质,上述计算机可读存储介质包括存储的程序,其中,在程序运行时控制存储介质所在用户设备执行上述一个或多个实施例中的获取本地服务的方法的步骤。Correspondingly, based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein, when the program runs, the user equipment where the storage medium is located is controlled to execute one or more of the above-mentioned storage medium. The steps of the method for obtaining a local service in one embodiment.
这里需要指出的是:以上装置、用户设备或计算机可读存储介质实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置、用户设备或计算机可读存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the descriptions of the above embodiments of the apparatus, user equipment or computer-readable storage medium are similar to the descriptions of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the embodiments of the apparatus, user equipment or computer-readable storage medium of the present application, please refer to the description of the method embodiments of the present application for understanding.
本申请描述了多个实施例,但是该描述是示例性的,而不是限制性的,并且对于本领域的普通技术人员来说显而易见的是,在本申请所描述的实施例包含的范围内可以有更多的实施例和实现方案。尽管在附图中示出了许多可能的特征组合,并在具体实施方式中进行了讨论,但是所公开的特征的许多其它组合方式也是可能的。除非特意加以限制的情况以外,任何实施例的任何特征或元件可以与任何其它实施例中的任何其他特征或元件结合使用,或可以替代任何其它实施例中的任何其他特征或元件。This application describes a number of embodiments, but the description is exemplary rather than restrictive, and it will be apparent to those of ordinary skill in the art that within the scope of the embodiments described in this application can be There are many more examples and implementations. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Unless expressly limited, any feature or element of any embodiment may be used in combination with, or may be substituted for, any other feature or element of any other embodiment.
本申请包括并设想了与本领域普通技术人员已知的特征和元件的组合。本申请已经公开的实施例、特征和元件也可以与任何常规特征或元件组合,以形成由权利要求限定的独特的发明方案。任何实施例的任何特征或元件也可以与来自其它发明方案的特征或元件组合,以形成另一个由权利要求限定的独特的发明方案。因此,应当理解,在本申请中示出和/或讨论的任何特征可以单独地或以任何适当的组合来实现。因此,除了根据所附权利要求及其等同替换所做的限制以外,实施例不受其它限制。此外,可以在所附权利要求的保护范围内进行各种修改和改变。This application includes and contemplates combinations with features and elements known to those of ordinary skill in the art. The embodiments, features and elements that have been disclosed in this application can also be combined with any conventional features or elements to form unique inventive solutions as defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other inventive arrangements to form another unique inventive arrangement defined by the claims. Accordingly, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not to be limited except in accordance with the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
此外,在描述具有代表性的实施例时,说明书可能已经将方法和/或过程呈现为特定的步骤序列。然而,在该方法或过程不依赖于本文所述步骤的特定顺序的程度上,该方法或过程不应限于所述的特定顺序的步骤。如本领域普通技术人员将理解的,其它的步骤顺序也是可能的。因此,说明书中阐述的步骤的特定顺序不应被解释为对权利要求的限制。此外,针对该方法和/或过程的权利要求不应限于按照所写顺序执行它们的步骤,本领域技术人员可以容易地理解,这些顺序可以变化,并且仍然保持在本申请实施例的精神和范围内。Furthermore, in describing representative embodiments, the specification may have presented methods and/or processes as a particular sequence of steps. However, to the extent that the method or process does not depend on the specific order of steps described herein, the method or process should not be limited to the specific order of steps described. Other sequences of steps are possible, as will be understood by those of ordinary skill in the art. Therefore, the specific order of steps set forth in the specification should not be construed as limitations on the claims. Furthermore, the claims directed to the method and/or process should not be limited to performing their steps in the order written, as those skilled in the art will readily appreciate that these orders may be varied and still remain within the spirit and scope of the embodiments of the present application Inside.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, functional modules/units in the systems, and devices can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data flexible, removable and non-removable media. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910891163.6A CN110601984B (en) | 2019-09-20 | 2019-09-20 | Method and device for acquiring local service and generating link local address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910891163.6A CN110601984B (en) | 2019-09-20 | 2019-09-20 | Method and device for acquiring local service and generating link local address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110601984A CN110601984A (en) | 2019-12-20 |
CN110601984B true CN110601984B (en) | 2020-10-23 |
Family
ID=68861553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910891163.6A Active CN110601984B (en) | 2019-09-20 | 2019-09-20 | Method and device for acquiring local service and generating link local address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110601984B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352748B (en) * | 2020-02-26 | 2023-12-05 | 北京思特奇信息技术股份有限公司 | Interface calling method and device, electronic equipment and storage medium |
CN112702191B (en) * | 2020-12-11 | 2023-07-21 | 福建天晴在线互动科技有限公司 | Link tracking method and terminal |
CN119254744B (en) * | 2024-12-04 | 2025-02-18 | 浙江竞高信息技术有限公司 | Equipment networking method and system based on IPv6 protocol |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938735A (en) * | 2012-11-15 | 2013-02-20 | 北京邮电大学 | Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix |
CN108881520A (en) * | 2018-08-30 | 2018-11-23 | 中国联合网络通信集团有限公司 | A kind of distribution method and SMF, communication system of the address IPv6 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7376745B2 (en) * | 2002-05-15 | 2008-05-20 | Canon Kabushiki Kaisha | Network address generating system, network address generating apparatus and method, program and storage medium |
US7734745B2 (en) * | 2002-10-24 | 2010-06-08 | International Business Machines Corporation | Method and apparatus for maintaining internet domain name data |
CN101179603B (en) * | 2006-11-09 | 2011-06-08 | 上海贝尔阿尔卡特股份有限公司 | Method and device for controlling user network access in IPv6 network |
US8316137B2 (en) * | 2008-06-24 | 2012-11-20 | Qualcomm Incorporated | Method and apparatus for ensuring IPv6 uniqueness in a mobile subnetted environment |
CN102457548B (en) * | 2010-10-20 | 2015-05-20 | 中兴通讯股份有限公司 | Method and device for obtaining IPv6 (Internet Protocol version 6) interface identifier |
WO2015054882A1 (en) * | 2013-10-18 | 2015-04-23 | 华为技术有限公司 | Network device communication method and network device |
CN107547528B (en) * | 2017-08-18 | 2020-04-24 | 新华三技术有限公司 | IPv6 stateless address allocation method and device |
-
2019
- 2019-09-20 CN CN201910891163.6A patent/CN110601984B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938735A (en) * | 2012-11-15 | 2013-02-20 | 北京邮电大学 | Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix |
CN108881520A (en) * | 2018-08-30 | 2018-11-23 | 中国联合网络通信集团有限公司 | A kind of distribution method and SMF, communication system of the address IPv6 |
Also Published As
Publication number | Publication date |
---|---|
CN110601984A (en) | 2019-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108848100B (en) | A stateful IPv6 address generation method and device | |
US10033818B2 (en) | Using listen ranges to deliver content to electronic devices from local caching servers | |
US9729413B2 (en) | Apparatus and method for identifying domain name system tunneling, exfiltration and infiltration | |
CN110601984B (en) | Method and device for acquiring local service and generating link local address | |
US12010091B2 (en) | Topic handling in MQTT networks | |
US11438427B2 (en) | Discovery of resources in a local network | |
US20120290701A1 (en) | Domain name system, information processing method and apparatus of domain name system | |
JP2018518867A5 (en) | ||
US9467416B2 (en) | Methods and systems for dynamic domain name system (DDNS) | |
CN102790813A (en) | Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network | |
WO2017161965A1 (en) | Method, device, and system for dynamic domain name system (dns) redirection | |
CN108696601A (en) | Detect the hardware address conflict in computer network | |
CN103167045A (en) | Method of choosing network layer protocol, domain name server (DNS), and domain-name management system | |
CN102299974B (en) | A kind of method and apparatus realizing IPv6 prefix assignment | |
CN106576120A (en) | Internet protocol address allocation method and router | |
CN102547553B (en) | Method, system and device for accessing service based on wireless application protocol (WAP) | |
CN103118145A (en) | IPv4-over-IPv6 multi-tunnel automatic establishment method based on DNS (domain name system) | |
CN104506665B (en) | Distinguish method and system in a kind of IPv4/IPv6 addresses | |
CN114731338B (en) | System and method for controlling load of domain name system server | |
CN114268605B (en) | Intelligent DNS realization method and device and computer storage medium | |
CN114285796B (en) | Routing addressing method and system based on geospatial identification | |
CN104767759A (en) | Edge device registration method and device | |
US20030046428A1 (en) | Method for generating domain name for device intermittently connected to fixed network | |
KR101303030B1 (en) | Method for operating and searching host in internet protocol version 6 network | |
WO2017121134A1 (en) | Method for node identification and service advertisement in communication networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |